Skip to content

Keep each journey sample on the machine that ran it - #1881

Merged
max-sixty merged 5 commits into
mainfrom
thread-title-latency
Oct 6, 2026
Merged

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

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

leaf-dev journey now appends each sample it prints to $XDG_STATE_HOME/leaf-dev/journey.jsonl, one JSON line stamped with the time it ran, and says where on stderr. The file lives outside any checkout, so runs from every worktree on a machine accumulate in one place.

This is a stopgap: CI's samples, including publish-site's on every release, still go nowhere. TODO.md gains "Keep the agent journey's samples" under Development velocity, which asks for a store CI and local runs can both write to and weighs a CI artifact (no token, 90 days) against max-sixty/leaf-assets (keeps history, needs a push token).

notes/user-feedback-responsiveness.md points at the file and says to update its approximate readings only when the samples show a step changed materially and stayed changed, not after one run. dev/AGENTS.md describes the file beside the command.

The journey CLI test now checks that each of its three origins' samples is kept; the suite's state home is already a per-run temporary directory.

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

max-sixty and others added 4 commits October 5, 2026 10:05
The user asked for the durable store to wait as a TODO, given the Worker's
credential proxy, with a temporary store in the meantime.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Until a store CI can write to exists, `leaf-dev journey` appends each sample to
`$XDG_STATE_HOME/leaf-dev/journey.jsonl`, outside any checkout so runs from every
worktree accumulate. The responsiveness note says to update its approximate
readings from those samples once a step has changed materially and stayed
changed.

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 previously approved these changes Oct 6, 2026
@max-sixty
max-sixty merged commit 18142ad into main Oct 6, 2026
5 of 6 checks passed
@max-sixty
max-sixty deleted the thread-title-latency branch October 6, 2026 08:17
max-sixty added a commit that referenced this pull request Oct 7, 2026
`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_

---------

Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
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