Repository navigation
Read the journey's reply breakdowns with response-times' reader, and check every harness's steps with one set of checks - #5265
Merged
Conversation
leaf-agent
approved these changes
Nov 3, 2026
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.
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.
leaf-dev journeycomputed each reply's breakdown twice, and wrote its checks between steps once per harness. This leaves one of each, finishing what #5238 (milestones throughresponse_times.page_timings) and #5255 (shared steps onTerminal) left.How the tooling behaves now
response_times.page_timingstakes a reader of the answering session's record (records). By default it reads the Claude Code transcript on this machine (transcript_of), asleaf-dev response-timesalways has. The journey passes its terminal's record when it builds the sample and keeps each row'sreply.User.commands, thecommandsclosure inuser_atand the journey's ownreply_breakdowncall 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.page_timingsreadsfork_replyrecords. An input a fork of the conversation answered gets no reply breakdown, pickup wait orleaf_commands_s, since the session spent nothing on it. The journey used to apply this rule to the breakdown alone.response-timesapplied 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), soresponse-times' numbers don't move today.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.passedrecords 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.Terminal.titledreads the page server'sthread_title_failedrecord 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_waitnow treats a turn start'soriginas optional, as the module's record contract says. Codex and Pi records reach it now, and they carry none.Checks that changed
shownrows, which used to be counted inrelease's.replycarriescase, and a comment a fork answered has"reply": nullrather than noreplykey.Runs
Each target passed
leaf-dev journeyover HTTP, casewaiting:claude-code(13 steps),codex-queue(8) andcodex-app-server(8) at f2be41a, andpi(6) at 5eae388, whose difference from f2be41a is inresponse-timespaths a journey without forks doesn't read. The three also passed before review, at 45354f0 and ed3cc82. The last commit changes only whattitleddoes when the page server's title fails, checked against a kept run with a failed title. For every run, each comment'sreplyin the kept sample equals the breakdown the old path computes from that run's evidence (the terminal's records intrace.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 -ptimed 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.pyandtest_response_times.pypass. The fork case now goes throughpage_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.