Skip to content

refactor(dispatch): make typed scope authoritative across policy and worker context #158

Description

@akougkas

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:dispatchWorker dispatch and fleetarea:engineAgent engine, providers, prompt enveloperefactorInternal restructuring with no intended behavior change

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions