Repository navigation
Keep figures measured on one machine off the site - #6487
Merged
Merged
Conversation
The Forks tab of How it works opened with three tiles of waits measured
on the maintainer's own sessions (the session's first words in a thread,
a median 35 s and 140 s at p90, against 2.4 s for a fork's working line),
and the take diagram's caption quoted one live run (the line at 4.0 s,
the answer at 9.9 s). Nothing in the tree reproduces those numbers; they
came from logs on one machine, recorded in notes/fork-replies.md. This
removes both, with the paragraph that cited the note for the tiles. The
note stays linked from "Where each rule is written".
A sweep of docs/ and examples/ found no other measurement of this kind:
the examples' latencies and counts belong to their fictional scenarios,
and the remaining durations on How it works are rules the code enforces,
such as the 30 s a line fork has to answer.
AGENTS.md's entry for docs/ now says a figure the site gives about Leaf
is one a reader can reproduce from the tree, and a measurement of
sessions on one machine stays in notes/. An A/B of six headless runs
revising the Forks opening from the note ($11.3): no run in either arm
added a number; without the rule, 2 of 3 still cited the note's
real-page measurements ("tens of seconds", "measured on real pages"),
and with it none of 3 did.
> _This was written by Claude Code on behalf of max-sixty_
leaf-agent
approved these changes
Nov 19, 2026
max-sixty
added a commit
that referenced
this pull request
Nov 19, 2026
…Forks topic (#6489) How it works' Forks topic gains "Anatomy of a fork journey". It follows one thread through every message Leaf, Claude Code and the forks exchanged in a recorded run of the Claude Code agent journey (18 Nov, Claude Code 2.1.328). The section has a timeline with a lane for each of the user, Leaf, the line fork, the working fork and the main thread, followed by each message in order. A coloured rule and tint on each message say who wrote it: Claude Code, Leaf, a model or the user. Leaf's own messages are written from the current code with the run's recorded batches (`dev/leaf_dev/fork-journey.json`), so they stay current. The current code reproduces the run's three deliveries and its line prompt exactly. Only the timings, Claude Code's text and the models' answers are as recorded. The line, work and resume prompt slots moved into the section, so each prompt shows once. The take's sequence diagram stays. Two strings gained a function so the docs can render them: `hook_transport.inline_context`, now the one place a hook's inline delivery is composed, and `forks._given_line`. **To weigh:** the recorded paths are the journey's `/private/var/folders/…` scratch page, which the lede says. The timings are one run on your machine. `AGENTS.md`'s rule for `docs/` (#6487) admits a figure from checked-in data, which `fork-journey.json` is, and here the seconds place one run's events rather than state how fast Leaf is. With #6497 merged, the work and resume previews show the delivery as the fenced block the fork reads, and `inline_context` writes it with `json_block`. Max asked for this after reading the same messages on a Leaf page: "a really really useful way to see the messages … can we consider having this as a part of How It Works on the Fork page with 'Anatomy of a Fork Journey'". Reviewed from light, dark and phone captures, which led to fitting the queued-lines box to its text, and by a reviewer who hadn't seen the work. Tests: both `test_product_page.py` files, `tests/model/test_forks.py`, `test_hooks.py`, `test_session_lifecycle.py`. `page check` is clean. > _This was written by Claude Code on behalf of max-sixty_
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.
Removes the timings on How it works that came only from sessions on Max's machine: the Forks tab's three wait tiles (a median 35 s and 140 s at p90 for the session's first words, against 2.4 s for a fork's working line), the paragraph that cited
notes/fork-replies.mdfor them, and the take diagram caption's single live run (4.0 s and 9.9 s). Nothing in the tree reproduces them. A sweep ofdocs/andexamples/found no other figure of this kind: the examples' latencies belong to their fictional scenarios, and the other durations on How it works are limits the code enforces, such as the 30 s a line fork has to answer.AGENTS.md'sdocs/entry now states the rule: a figure the site gives about Leaf is one a reader can reproduce from the tree, and a measurement of sessions on one machine stays innotes/. In a six-run A/B revising the Forks opening from the note, no run added a number; without the rule 2 of 3 still cited the note's real-page measurements in words, and with it 0 of 3 did.Max asked for it.
tests/model/test_product_page.pypasses.