Skip to content

Shorten the delegate brief guide - #1494

Merged
mergify[bot] merged 2 commits into
mainfrom
lean178/1475-delegate-brief-cut
Nov 26, 2026
Merged

mergify[bot] merged 2 commits into
mainfrom
lean178/1475-delegate-brief-cut

Conversation

@eowca

@eowca eowca commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Shorten the delegate brief guide

Context and goal

  • Goal: Reduce the default delegation guide by 688 bytes while keeping dispatched briefs concrete.
  • Problem: The guide repeats a worked brief and copies the coordinator output limits into its template.
  • Context: The template keeps its fields. The dispatcher includes the existing limits in the actual brief, even when the child cannot read the guide.

Closes #1475

Acceptance

  • Delete only the worked example and repeated authority caveat. Replace only the Output field with its source reference. The shared skill bench and doc budgets pass.

Notes

  • Base: 504a97a. The shared v2 bench compares the four cuts together against 29a3f88, whose instruction text matches this base.

Validation

Recorded for 88f19cd43b7a

  • uv run --group dev ruff check src tests: exit 0
  • uv run --group dev tach check: exit 0
  • uv run --python 3.14 python scripts/check_architecture_docs.py: exit 0
  • scripts/size_budget.sh: exit 0
  • uv run --group dev pytest -q: exit 0

Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

Review

  • primary, claude, 2849bb7, request_changes
  • delta, claude, 88f19cd, approve

Co-Authored-By: Codex <noreply@openai.com>

@loopzero-feder-positronics loopzero-feder-positronics Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

loopzero primary review by claude on 2849bb79c7342a73a8d33197891819c90d3ae028, 26.4s: request_changes (0 critical, 1 important, 0 suggestion)

Settings per native call (launch configuration and CLI claims, not backend attestation):

  • Call 1: requested model claude-opus-5-5 (effort medium); CLI-reported model claude-opus-5-5 (effort unknown); configured model claude-opus-5-5 (effort medium)

Native Claude output is retained in the restricted local review receipt.

Comment thread docs/DELEGATION.md Resolved
Co-Authored-By: Codex <noreply@openai.com>

@loopzero-feder-positronics loopzero-feder-positronics Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

loopzero delta review by claude on 88f19cd43b7a8d8ba7cfbdf68c1afe364c87ba03, 22.3s: approve (0 critical, 0 important, 1 suggestion)

Settings per native call (launch configuration and CLI claims, not backend attestation):

  • Call 1: requested model claude-opus-5-5 (effort medium); CLI-reported model claude-opus-5-5 (effort unknown); configured model claude-opus-5-5 (effort medium)

Native Claude output is retained in the restricted local review receipt.

Comment thread docs/DELEGATION.md
Launch policy: Children inherit this rule: never approval-required; use auto only for read-only children and say "read-only, do not edit" in the brief; a child that runs commands or edits inherits the parent's mode, because auto can stall on approval review. After launch, verify pendingRequestCount 0 and a completed tool call.
Waiting: One blocking wait: Codex exec/write_stdin yield >=30 s (>=120 s for builds, tests, CI, review, ready or merge); shell `until <done>; do sleep 30; done`. Claude: background notification or t3_background_wait. Read the completed result once; never use t3_thread_read/task_status for liveness. Every ended turn wakes the parent: end it only with a final result, a blocker or a question, never with a progress note while your own job runs.
Output: Cap at the producer: REST `gh api --jq` selected fields, shell `| head -c 2000`; t3_thread_read limit <=2, maxCharsPerItem <=600.
Output: <Coordinator rollover caps. Use `gh api --jq` at source.>

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion: Output placeholder adds a gh-only capping hint that goes beyond a source reference and is unclear

The acceptance criterion says to replace the Output field with only its source reference. The new value, <Coordinator rollover caps. Use gh api --jq at source.>, also adds a new instruction.

Problems with that addition:

  • It sits inside an angle-bracket placeholder, which the dispatcher replaces. So it is unclear whether the gh api --jq hint should end up in the dispatched brief or is only a note for the dispatcher.
  • "at source" is easy to misread as "in the source reference" when it means "at the producer".
  • It names only the gh method. Line 410 of the same template says sandboxed delegates usually lack network/gh. The other producer caps in core/skills/implement/SKILL.md:42 (| head -c 2000 and the thread-read limits) are left out.

The rollover caps the dispatcher expands already cover these limits.

Smallest fix: keep the field as a pure placeholder, e.g. Output: <limits from [Coordinator rollover](#coordinator-rollover)>. If the producer-side hint matters, write "at the producer" in full, or point to the full rule in implement/SKILL.md, instead of naming only one tool.

@eowca
eowca marked this pull request as ready for review November 26, 2026 07:21
@eowca

eowca commented Nov 26, 2026

Copy link
Copy Markdown
Contributor Author

@Mergifyio queue

@mergify

mergify Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

✅ Merged into main as 1937928 at 07:32 UTC

9 min in the queue, 3 min of it CI.

So far

  • ✅ Entered the queue Thu 26 Nov, 07:24 · rule main · triggered by @eowca with the @mergifyio queue command
  • ✅ Passed · draft #1634
  • ✅ Merged 07:32 · 1937928 · squash
3 merge conditions met
  • github-review-approved · required by GitHub repository ruleset rule main: PR only, Mergify queue, existing checks required
  • any of · required by GitHub repository ruleset rule main: PR only, Mergify queue, existing checks required:
    • check-success = checks
    • check-neutral = checks
    • check-skipped = checks
  • any of · required by GitHub repository ruleset rule main: PR only, Mergify queue, existing checks required:
    • check-success = Loop-zero Eligibility
    • check-neutral = Loop-zero Eligibility
    • check-skipped = Loop-zero Eligibility

Times in UTC · dashboard · how the merge queue works

@mergify mergify Bot added the queued label Nov 26, 2026
@eowca

eowca commented Nov 26, 2026

Copy link
Copy Markdown
Contributor Author

No description provided.

@mergify
mergify Bot merged commit 1937928 into main Nov 26, 2026
17 checks passed
@eowca
eowca deleted the lean178/1475-delegate-brief-cut branch November 26, 2026 07:33
@mergify mergify Bot removed the queued label Nov 26, 2026
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.

Shorten the delegate brief guide without weakening the brief

1 participant