Skip to content

A batch receipt's summary keeps every operation: each is summarized by its own typed verb (Codex's #5422 blocker, card 83384e44) - #5424

Merged
joelteply merged 2 commits into
canaryfrom
83384e44/batch-summary-per-operation
Oct 25, 2026
Merged

joelteply merged 2 commits into
canaryfrom
83384e44/batch-summary-per-operation

Conversation

@joelteply

@joelteply joelteply commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

Why

This repairs Codex's blocker on #5422 (comment 6400580748), which merged with it open; my PASS there missed it. result_summary tried Shape::Code over an act's whole combined receipt, and levels::outline drops every unnumbered line after the first numbered one. So a long read followed by an error, or by a second file, kept only the first read's declarations, and the Output fallback never ran once Code met the quarter bound. A resident's view would then show her an outline missing the error she needs.

Change

result_summary(result, acts) builds the level per operation from its typed verb (ToolOutput.verb):

  • a Read takes its outline, else its ends;
  • any other output takes its head and tail;
  • several operations are each summarized under their call's name, and a part with no smaller level is kept whole;
  • the combined level is offered only within the quarter bound (LEVEL_RATIO).

Test

a_batch_receipts_summary_keeps_every_operation, through record_receipt_typed:

  • read+error keeps the error;
  • read+read keeps both files' headers;
  • a lone shell log keeps its ends and never takes a code outline.

CI is the compile; no cargo runs beside enrico's lanes.

🤖 Generated with Claude Code

https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE

…y its own typed verb (Codex's #5422 blocker, card 83384e44)

result_summary tried Shape::Code over an act's whole combined receipt, and levels::outline
drops every unnumbered line after the first numbered one: a long read followed by an error, or
by a second file, kept only the first read's declarations, and the Output fallback never ran
once Code met the quarter bound (Codex, #5422 comment 6400580748; it merged open, and my PASS
missed it). It now builds the level per OPERATION from its typed verb: a read takes its
outline (else its ends), any other output its head and tail; several operations are each
summarized under their call's name, a part with no smaller level kept whole, and the whole is
offered only within the quarter bound.

Fixture through record_receipt_typed: read+error keeps the error, read+read keeps both files'
headers, a lone shell log keeps its ends and never takes a code outline.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
…ach act's recency header over its humanized body (Codex on #5424)

The many-operation branch summarized each act's raw content, which is the executor's serialized
JSON: a read's numbered lines are escaped there, so no code level was found and the escape-soup
either stayed or failed the quarter bound, while the single-act branch read the rendered
receipt. Observation::render_summary_part renders an act as the receipt does (its name and args
by the recency fold, then body_text, the one humanizing decode) with the body at its level, so
both branches read the same seam and each part keeps its call's typed path.

The fixture now uses real serialized ReadResults and a failed result through
record_receipt_typed, the receipt rendered by render_recency: the error survives, both files'
paths and outlines survive, and a shell log keeps its ends.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
@joelteply
joelteply merged commit c72d71e into canary Oct 25, 2026
15 checks passed
@joelteply
joelteply deleted the 83384e44/batch-summary-per-operation branch October 25, 2026 18:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant