Repository navigation
Record what each carrier hands the agent for one comment - #1056
Merged
Merged
Conversation
A new snapshot test posts one comment and records, side by side, what `leaf wait`, the Codex queue (its `codex queue` message and the `leaf delivery read` it names) and the Codex App Server (`turn/start`) put in front of the agent, with deliveries decoded to YAML and handling clauses as prose. It shows today's three deliveries carrying the same host-conditional acknowledgement and reply clauses, and is the review surface for moving those into the carriers. TODO.md's entry for that move is rewritten around the carrier design. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
leaf-agent
approved these changes
Sep 24, 2026
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.
Adds a snapshot test that posts one comment and records what each of Leaf's three carriers puts in front of the agent:
leaf wait's output, the Codex queue'scodex queue --messagepointer plus theleaf delivery readit names, and the Codex App Serverturn/startparams. Each is taken from the code that carrier runs (cmd_wait,prepare_codex_delivery,cmd_delivery_read,app_server_turn_start_params), and the test asserts the App Server tool output equals whatleaf delivery readprints.The recording shows all three carriers delivering identical handling clauses today, including the hedged acknowledgement clause and the App-Server-conditional reply clause, which apply only to
leaf waitand App Server respectively. The TODO entry is rewritten as "Let the carrier say how its delivery is acknowledged": move those rules out of the registry into what the carrier writes, and review the change as a per-carrier diff of this snapshot.Snapshot:
tests/_regtest_outputs/test_interact_contract.test_each_carrier_hands_the_agent_what_the_snapshot_shows__0/snapshot.yaml🤖 Generated with Claude Code