Skip to content

Chart the kept journey samples with leaf-dev journey-chart - #1955

Merged
max-sixty merged 3 commits into
mainfrom
thread-title-latency
Oct 7, 2026
Merged

max-sixty merged 3 commits into
mainfrom
thread-title-latency

Conversation

@max-sixty

@max-sixty max-sixty commented Oct 7, 2026 •

Copy link
Copy Markdown
Owner

leaf-dev journey-chart prints an lf-chart element from the journey samples this machine kept ($XDG_STATE_HOME/leaf-dev/journey.jsonl, #1881), so reading them no longer means copying numbers into a page by hand.

The chart has one row per target at the latest code version that target ran, and a dot for each sign the user saw: the thread's title, Working, the agent's first words (the ephemeral reply from #1926), and the reply. The x-axis is seconds after the comment, on a log scale. A step a run never reached draws no dot. With no samples kept, the command says to run leaf-dev journey first.

Each sample now also records target, which stays the same across runs: cc, codex, local, wrangler, or the website's origin. The chart groups by it, because a local or wrangler run's origin is a fresh port each time. Samples kept before this change name their target by their harness.

Its output on this machine's samples passes leaf page check --render, light and dark.

TODO.md records this as an experiment: whether leaf-dev should draw charts, or only print the rows and leave the chart to the agent writing the page.

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

max-sixty and others added 2 commits October 6, 2026 19:23
Each journey sample has been kept in `$XDG_STATE_HOME/leaf-dev/journey.jsonl`
since #1881, but reading them meant transcribing numbers into a page by hand.
`leaf-dev journey-chart` prints an `lf-chart` element from those samples: one row
per target at the latest code version it ran, and a dot for each sign the user
saw — the thread's title, Working, the agent's first words (an ephemeral reply,
#1926) and the reply — on a log axis of seconds after the comment. A step a run
never reached draws no dot.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>

@leaf-agent leaf-agent left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

chart_rows() uses origin as the target key, but target_session() records the temporary listening URL as origin for local and wrangler. Each local server binds a new port, so two runs of either target at different versions appear as separate rows; the older version is never filtered out. This also makes the chart grow a row for every local run. Record a stable journey target in each sample and group by that identity, while retaining the origin for the remote website label.

A local or wrangler journey serves on a fresh port each run, so its `origin`
differs between runs and `journey-chart` gave every run a row of its own,
never leaving out an older version. Each sample now records `target`, the
same across runs (`cc`, `codex`, `local`, `wrangler`, or the website's
origin), and the chart groups by it. Samples kept before this name their
target by their harness.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@max-sixty
max-sixty merged commit 098fe7b into main Oct 7, 2026
4 checks passed
@max-sixty
max-sixty deleted the thread-title-latency branch October 7, 2026 04: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