Skip to content

fix(runtime): describe sub-agent authority by spawn capability - #260

Merged
lg2m merged 2 commits into
mainfrom
fix/eng-1010-subagent-authority-guidance
Oct 6, 2026
Merged

lg2m merged 2 commits into
mainfrom
fix/eng-1010-subagent-authority-guidance

Conversation

@lg2m

@lg2m lg2m commented Oct 6, 2026

Copy link
Copy Markdown
Collaborator

D4a.1: capability-aware sub-agent authority guidance

Closes ENG-1010. Spec: existing supervised-delegation D4a authority contract.

What changed

  • Stop calling all children read-only when the exposed spawn schema supports write authority. Explain read defaults and explicit authority: write, reviewer requirements, supervised approval, and serialized writers.
  • Keep read-only descriptions byte-identical when writes are disabled. Authorization, configuration defaults, scheduling and approval enforcement are unchanged.
  • Add two regression tests covering enabled/disabled writes and roster/no-roster tool declarations. Both failed against the original implementation.
  • Bump prompt version 17 → 18 and update prompt identity fixtures. Keep spawn declarations under the existing 2 KiB bound by shortening authority prose.

How verified

  • cargo test -p qq-core authority_guidance — 2 passed.
  • cargo test -p qq-core sequential_children_receive_the_remaining_budget_after_prior_spend — passed (schema-bound regression).
  • cargo test --workspace — final complete run passed. Earlier MCP cancellation and slice-report timing flakes are recorded in the ledger; no unrelated code was changed.
  • cargo fmt --all -- --check — passed.
  • cargo clippy --workspace --all-targets --all-features -- -D warnings — passed.
  • cargo build --workspace — passed.
  • cargo bench -p qq-core --bench plan_compile — 27,565 ns compile / 2,420 ns descriptor digest; estimated plan 34,481 bytes. No paired baseline or performance improvement claimed.

Docs and compatibility

Configuration guide explains opt-in write spawning; supervised-delegation ledger records evidence. Protocol, descriptor encoding and store schema unchanged. Prompt identity changes intentionally. Independent model review attempts were unavailable because the provider rejected both routes.

This fixes guidance, not the active session configuration: users must still enable delegation.write_children and configure reviewer_model to expose write spawning.

ENG-1010 / D4a.1: preserve read defaults and supervised write gates; add capability regressions and bump prompt identity to 18.
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@lg2m
lg2m merged commit a0caa72 into main Oct 6, 2026
6 checks passed
@lg2m
lg2m deleted the fix/eng-1010-subagent-authority-guidance branch October 6, 2026 17:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant