Problem
Adding typed intent is insufficient if project-rule selection, worker prompt compilation, policy admission, and write enforcement continue deriving paths independently. A declared path must not disappear or change meaning between those boundaries.
Goal
Make structured dispatch intent authoritative for policy-bearing scope and worker context.
Dependencies
Blocked by #155.
Scope
- Select path-scoped project rules from declared relevant/read/write paths.
- Compile worker context from the same canonical path set.
- Use declared write scope for authority admission and write-boundary setup where applicable.
- Carry expected outputs and verification intent into result-contract/review context without turning them into unverifiable claims.
- Define deterministic precedence when fleet contracts, agent profiles, or request-level fields further narrow scope.
Acceptance criteria
Implementation seams
Relevant owners include src/domains/context/project-rules.ts, src/domains/prompts/compiler.ts, dispatch admission/plan compilation, worker-spec construction, and write-boundary enforcement.
Problem
Adding typed intent is insufficient if project-rule selection, worker prompt compilation, policy admission, and write enforcement continue deriving paths independently. A declared path must not disappear or change meaning between those boundaries.
Goal
Make structured dispatch intent authoritative for policy-bearing scope and worker context.
Dependencies
Blocked by #155.
Scope
Acceptance criteria
selectActiveRules,compileWorker, authority admission, and write-boundary enforcement has one canonical owner.Implementation seams
Relevant owners include
src/domains/context/project-rules.ts,src/domains/prompts/compiler.ts, dispatch admission/plan compilation, worker-spec construction, and write-boundary enforcement.