docs(coverage): say "declared domain or IP root" for auto-scope roots (F8)

declaredScopeFilter treats only root_domain, subdomain, ip and cidr rows as
roots. A declared company, icp or keyword row does not make an auto row
count, but the add_task_scope description said "a goal target or scope
added here or manually". The description and the code comments now say
"declared domain or IP root" and name the kinds that act as roots.
This commit is contained in:
BaaRai
2026-11-12 09:38:52 +01:00
parent 37fab18809
commit cd8a830b53
5 changed files with 16 additions and 15 deletions
+1 -1
View File
@@ -760,7 +760,7 @@ WHERE t.active_llm_profile_id IS NULL
-- side-effect-derived assets do not enter the scope (the hook sits at the handler top level; derivation is internal to the db layer).
-- Agent-filled (source='agent'): add_task_scope adds company/root_domain/subdomain/ip.
-- Coverage = among assets matching active rows (denominator), the share anchored by fact nodes (numerator).
-- An auto row is active only under a declared (non-auto) root of the same task (declaredScopeFilter in task_scope.go).
-- An auto row is active only under a declared (non-auto) domain or IP root of the same task (declaredScopeFilter in task_scope.go).
CREATE TABLE IF NOT EXISTS task_scope (
id BIGSERIAL PRIMARY KEY,
task_id BIGINT NOT NULL REFERENCES tasks(id) ON DELETE CASCADE,