Skip to content

Record what each carrier hands the agent for one comment - #1056

Merged
max-sixty merged 2 commits into
mainfrom
codex-app-server-terms
Sep 24, 2026
Merged

max-sixty merged 2 commits into
mainfrom
codex-app-server-terms

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

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's codex queue --message pointer plus the leaf delivery read it names, and the Codex App Server turn/start params. 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 what leaf delivery read prints.

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 wait and 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

max-sixty and others added 2 commits September 23, 2026 16:19
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]>
@max-sixty
max-sixty merged commit 13b95ac into main Sep 24, 2026
5 checks passed
@max-sixty
max-sixty deleted the codex-app-server-terms branch September 24, 2026 00:18
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.

2 participants