Repository navigation
Keep a page on the work as it now stands, and retire what it no longer needs - #6158
Merged
Merged
Conversation
…r needs Session 97499ac5 kept before/after captures of an inspect row at the top of its page, with a paragraph about that row's own CSS, for two hours after another session told it the row was gone. Over those hours the user moved the work on to rebuilding Leaf's choice control. The session appended the rebuild as a new section and recaptured the gone row's "after" with the new CSS, and the title kept asking why the row misaligned. The user asked whether the row was still part of the design, then why it was still on the page. SKILL.md's rule for keeping a page current was in context the whole time, with no compaction. It judged material by whether something had superseded it, and named work landing, a decision acted on and a change of understanding as the moments to reread the whole page. Evidence about a removed row is neither false nor replaced, and a user redirecting the work is none of those moments. Every revision the session made was a targeted read and edit of the region it changed. - SKILL.md, "Respond to input": the page is the one you'd write today for the work as it now stands. A user redirecting the work is one of the moments to reread and update the whole page, and the title and lede name the work as it now stands. Material stays open only while a reader arriving now needs it, however true the rest remains. Results are shown on something that still exists, and material about something since removed goes. - authoring-revisions.md, "Keep the current page current": the same test replaces "material the current state replaces". SKILL.md keeps stating the goal itself, since #4609 measured a pointer to this reference alone at 0 of 4. New eval `page-follows-the-work` replays the page at the minute the rebuild was pushed. Claude Code, runs passing out of runs: | Metric | Before | After | | --- | --- | --- | | The removed row's material is gone or collapsed | 0/14 | 10/10 | | Title and lede present the rebuilt control | 4/14 | 10/10 | | The rebuild is shown before and after (guardrail) | 14/14 | 10/10 | | The history and earlier results stay on the page (guardrail) | 10/10 | 10/10 | A version that made "material about something since removed" only an example of what the reader no longer needs retired the row in 2 of 4 runs, and a shorter version in 4 of 6. Its variant replays the user's comment on the row's "after" an hour earlier. Every run on both arms adds an open section on the removed row's CSS (0/9 before, 0/6 after): the reply delivery's "put the result on the page with what shows it" governs that step, and this change doesn't reach it. The variant stays as a known failure. `important-page-reviewed-at-checkpoints` ran its browser review in 15 of 16 runs before, 7 of 12 with this wording and 13 of 22 across the versions tried. The runs that skip it reason that a page the user won't use after the conversation isn't worth minutes of review. The cause isn't located. `decision-record-after-its-work` and `answer-settles-what-it-carried`, both prompts each, pass on both arms (2 runs each). Across the 14 most recently edited pages on this machine with 15 or more revisions, one reviewer judged 6 to keep earlier-stage material open in the same way, and 6 not.
leaf-agent
reviewed
Nov 16, 2026
leaf-agent
left a comment
Collaborator
There was a problem hiding this comment.
I found nothing to change in the diff. I'm leaving the verdict open for the reason the description gives under "To weigh before merging": important-page-reviewed-at-checkpoints ran its browser review in 15 of 16 runs before and 7 of 12 after, and the clause behind the drop hasn't been found. Whether the new eval's gain is worth that drop is the maintainer's call, so I haven't approved or merged.
max-sixty
added a commit
that referenced
this pull request
Nov 16, 2026
…he work, and wake the session for it (#6160) The turn-end check now catches pages that have fallen behind the work, and Leaf wakes the session so the agent can fix the page before the user returns. **What it names.** The check's `stale` finding is now a goal for the whole page: anything on a page that no longer fits the work as it now stands, wherever it is. That covers words the work has since changed, and finished or dropped work the page still presents as current. A title and opening that still tell finished work as news remain one example. **When the agent hears it.** A finding Leaf can't act on itself is now queued with `wake`. The watch between turns then starts a turn for it once the turn that left it closes, and a session no watch follows is nudged, as a fork's to-do already is. An ask Leaf wrote and a fix it made only tell the agent, as before. On margin-open-cost, the session appended each new request's results at the page's end. The title and opening kept describing #6071, merged hours earlier, while "Which of these should I build?" sat last. The check ran at 21:59 PT and named nothing. Even a finding would have reached the agent only with the user's comment at 00:51. Measured: - Replays of three real turn ends whose page opened on finished work while the next question waited below: this wording named the stale opening in 4 of 7 runs. The explicit title-and-opening rule it replaces named it 7 of 7; wordings with no example named it 0 of 6. - At eight ordinary recent turn ends, it named no opening. The turn-end suite passes, apart from `ask-follow-up`, whose judge splits on the same ask wording on both arms. - Since Nov 10, 121 checks named something only the agent could act on. 26 were heard within a minute, the median waited 5 minutes, 13 waited more than an hour, and 3 were never heard. Each idle wait now becomes a woken turn. - The Claude Code journey passes every step, but its checks named nothing, so it didn't exercise a wake. To weigh: each woken turn spends the session's cached context; I estimate $1–2 a turn. The goal wording also doesn't catch #6158's case, true material about something since removed. Requested by the user's `/diagnose-session` on that page; they approved the wake. Reviewed by Codex. Checks: `tests/model/test_clerk.py`, `tests/model/test_forks.py`, `tests/model/test_wait.py`, the turn-end eval suite, the `claude-code` journey. > _This was written by Claude Code on behalf of max-sixty_
max-sixty
added a commit
that referenced
this pull request
Nov 17, 2026
…e the page-currency goal at its home (#6229) This repairs the drop in checkpoint browser reviews that #6158 introduced. It also states the page-currency goal once, at its home in `authoring-revisions.md`. SKILL.md told the agent to give the browser review's minutes to "pages the user relies on longer". After #6158, more runs read that as reaching beyond the conversation and skipped the review on a page the user had worked on all day. It now weighs the review by how much the user will read the page, within the conversation as much as after it. `important-page-reviewed-at-checkpoints` runs its review in 18 of 18 runs, against 4 of 6 on main and 15 of 16 before #6158. `page-follows-the-work` still retires the removed row in 6 of 6. **What was tried and not kept** (details in the commit): - Cutting SKILL.md's currency paragraph to the bare goal took the removed-row eval from 6/6 to 0/6. - Rewording the reply delivery's "put the result on the page" moved nothing. The eval variant behind it is dropped, because its premise didn't hold. - Giving the turn-end check the agent's currency goal as guidance named nothing new on the turns it had missed. `decision-record-after-its-work` and `answer-settles-what-it-carried` still pass. So does `quick-page-skips-the-browser-review`, the guardrail against reviewing too often, at 4 of 4 runs on both arms. Max asked for this pass in the session. > _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.
Agents keep material on a Leaf page after the work has moved past it, as long as it is still true. SKILL.md asked them to drop "superseded material" and to reread the whole page when work lands, a decision is acted on, or their understanding changes. Session 97499ac5 had that rule in context, yet kept captures of a row another session had removed at the top of its page for two hours while the user moved the work on, under a title still asking why the row misaligned. The row was neither false nor replaced, and a user redirecting the work is none of those three moments.
The rule now keeps material open only while a reader arriving now needs it for the work as it now stands. It also counts the user redirecting the work as a moment to update the whole page, has the title and lede follow the work, and shows results on something that still exists.
authoring-revisions.mdstates the same test.To weigh before merging:
important-page-reviewed-at-checkpointsran its browser review in 15 of 16 runs before and 7 of 12 after. The runs that skip it judge a page the user won't keep as not worth the review, and I haven't found which clause causes that.New eval
page-follows-the-workreplays the failing page: the removed row is retired in 0 of 14 runs before and 10 of 10 after, with its guardrails passing. Its variant, an earlier thread comment, fails on both arms (0/9, 0/6). The reply delivery governs that step.decision-record-after-its-workandanswer-settles-what-it-carriedpass on both arms.Max asked for this through
/diagnose-session. Codex reviewed an earlier draft, and its findings are folded in.