Repository navigation
feat(delegation): skip the wake for a completion the parent already read - #639
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
Thread transfer impact✅ Thread transfer remains within every enforced ceiling.
Baseline: Scenario and decoded snapshot size10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.
Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed. |
This was referenced Sep 18, 2026
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
A parent that waits for a child inside its own turn and gets the finished result was still woken by the follow-through reactor once that turn ended. The wake carried nothing new and cost a full parent turn each time. This removes it.
Seen live with a paired Claude lead: it called
pair_await, verified the executor's work, answered, and was then woken to say "already completed".How
The reactor already skips a child whose stored
delegation.child-statereceipt has the currentnoticeKeyandbaseline: true. The tools now write that same receipt.consumedDelegationObservation(pure): an observation counts as read only for a finished attempt: completed, error, or interrupted. A running child and a child that needs the user return null, so those wakes still happen.delegationObservationReceipt(pure): the one place the receipt's id and payload are built. The reactor uses it too, so the two writers cannot drift.markDelegationObservationConsumed: dispatches onethread.activity.appendon the parent with a deterministic command id. It never fails a tool call; if the write fails, the cost is the old redundant wake.pair_awaitonce the executor is not running, and fromdelegated_thread_statusanddelegated_thread_result.Activities are stored by id, so the tool's receipt replaces what the reactor recorded while the parent was busy, and either order of the two writes ends the same way. No contract, decider, projector, or migration changes.
Verification
vp test runondelegationFollowThrough.logic.test.ts,DelegationFollowThroughReactor.test.ts, and the pair and delegation toolkits: 172 passed. New cases: the pure rules, one receipt per finishedpair_await/delegated_thread_statusand none for a running child, and a reactor test where a child finishes while the parent is busy, the receipt is rewritten withbaseline: true, and the idle parent is not woken.t3: 0 errors.vp run knip:check: clean.baseline: true, and no wake was delivered.Built test-first: the contract and the failing logic tests were written by the lead and left unchanged (blob
6131d97c), the implementation and handler tests by an Antigravity executor, the reactor test, review, live check and prose by the lead.Part of #622.
Model: Claude Fable 5.1 (lead) with an Antigravity executor, in Pylon via the Claude Code harness.
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.