Skip to content

Read the journey's reply breakdowns with response-times' reader, and check every harness's steps with one set of checks - #5265

Merged
max-sixty merged 6 commits into
mainfrom
agent-a90304f4339d92585
Nov 4, 2026
Merged

max-sixty merged 6 commits into
mainfrom
agent-a90304f4339d92585

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

leaf-dev journey computed each reply's breakdown twice, and wrote its checks between steps once per harness. This leaves one of each, finishing what #5238 (milestones through response_times.page_timings) and #5255 (shared steps on Terminal) left.

How the tooling behaves now

  • One reply breakdown. response_times.page_timings takes a reader of the answering session's record (records). By default it reads the Claude Code transcript on this machine (transcript_of), as leaf-dev response-times always has. The journey passes its terminal's record when it builds the sample and keeps each row's reply. User.commands, the commands closure in user_at and the journey's own reply_breakdown call are gone. The per-step timing lines read no session record (no_record). They used to parse the transcript at every step, and cache its first read for the rest of the run, so later reads were stale.
  • One rule for a fork's answer. page_timings reads fork_reply records. An input a fork of the conversation answered gets no reply breakdown, pickup wait or leaf_commands_s, since the session spent nothing on it. The journey used to apply this rule to the breakdown alone. response-times applied it nowhere: it computed a breakdown whose delivery ran past the reply, such as a 4 s reply with 20 s of delivery in the fork test. No page on this machine had a fork reply in the last two weeks (6 hand-overs only), so response-times' numbers don't move today.
  • One set of checks between steps. Terminal.between (dev/leaf_dev/commands/journey.py) requires what every harness must hold after a step. Every comment the steps have named has one answer and a pickup. The claim names the session, with its turn closed. Leaf listens for the session within 60 s. The page server has titled the thread of each comment the step named. Terminal.passed records a step after those checks, setup included. Claude Code adds its checks on Stop hooks, printed deliveries and the rows Leaf puts in the conversation; Codex adds its checks on the claim's turn, the keyed URL and the preview. Pi adds nothing.
  • A failed title fails at once. Terminal.titled reads the page server's thread_title_failed record too, so a step whose title failed stops with the request's error at once, rather than after the 3-minute title patience with no cause.
  • reply_phases.pickup_wait now treats a turn start's origin as optional, as the module's record contract says. Codex and Pi records reach it now, and they carry none.

Checks that changed

  • Codex now requires its adapter to be listening between steps, and Claude Code requires the page server's title on every comment. Both pass live (below).
  • Pi's listening check now waits up to 60 s, Claude Code's existing bound, where before it read once.
  • Claude Code's setup step runs Claude Code's own checks and keeps its own shown rows, which used to be counted in release's.
  • In a sample, reply carries case, and a comment a fork answered has "reply": null rather than no reply key.

Runs

Each target passed leaf-dev journey over HTTP, case waiting: claude-code (13 steps), codex-queue (8) and codex-app-server (8) at f2be41a, and pi (6) at 5eae388, whose difference from f2be41a is in response-times paths a journey without forks doesn't read. The three also passed before review, at 45354f0 and ed3cc82. The last commit changes only what titled does when the page server's title fails, checked against a kept run with a failed title. For every run, each comment's reply in the kept sample equals the breakdown the old path computes from that run's evidence (the terminal's records in trace.jsonl, and the page's log and diagnostics): 12 of 12 for Claude Code, 7 of 7 for each Codex transport and 4 of 4 for Pi. The 16 earlier runs kept on this machine (Claude Code and Codex) agree on all 132 comments.

Across these runs the page server titled all 48 comments within 1.3–3.2 s: Haiku on Claude Code, gpt-6-luna on Codex, gpt-6.1-sol on Pi. In the earlier kept runs, 2 of 27 Claude Code titles failed when claude -p timed out after 60 s on a loaded machine (2026-11-01). The new check fails a Claude Code journey when that happens.

dev/tests/model/test_journey.py and test_response_times.py pass. The fork case now goes through page_timings' rule, and fails without it. The touched product test (test_codex_app_server.py::test_a_completed_stream_reply_survives_the_claim_advancing) and website test (test_website_server.py::test_a_title_written_after_the_reply_is_still_timed) pass by node id.

By line, classified with Python's tokenizer: code −225 +213, docstrings and comments −88 +133, tests −12 +25.

This was written by Claude Code on behalf of max-sixty

@max-sixty
max-sixty merged commit 67f9a46 into main Nov 4, 2026
4 checks passed
@max-sixty
max-sixty deleted the agent-a90304f4339d92585 branch November 4, 2026 00:06
max-sixty added a commit that referenced this pull request Nov 5, 2026
Main moved `journey` and `journey-chart` onto `response_times.page_timings` (#5238,
#5265), so CI's samples now chart through `comment.milestones` and `HARNESS_TARGETS`,
with no reader of the draft's own. A real `publish-site` sample has those milestones.

What changed to fit main, and what running on real samples showed:

- The auto-merge left two `env:` keys on the deployed verify step, which actionlint
  refuses. `NODE_OPTIONS` and `XDG_STATE_HOME` now share one block.
- `--from-ci` orders samples by the instant in `at`. CI writes UTC and a local run
  writes its own zone, so sorting the strings could chart an older version as the
  latest.
- Chart rows keep the order their samples ran in, grouped by target, and the chart
  grows with them. Plot sorted them by release hash into a fixed 240 px, so `--since`
  showed no trend across releases.
- Each budget line has its own dash offset. Title and work started are both at 2 s,
  and one line hid the other.
- The error for nothing to chart stays main's, through `chosen`, and names CI's
  artifacts when `--from-ci` read them.
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