Repository navigation
Say when a finished to-do leaves its section among the open work - #2855
Merged
Merged
Conversation
A long orchestrator session kept a Leaf page through two days of merged
work, and the page ended mostly history: each time a worker's PR landed,
the agent patched one sentence where the item stood ("Landed in #N"),
ended the element's to-do, and moved nothing. Answered asks and finished
rounds stayed in the column; the next round's decision went to chat. About
half of the recent pages with two or more answered asks show the same
shape. The guidance already asked for finished work collapsed after the
open work (#906 targeted this failure), but it sits in SKILL.md and
authoring-revisions.md, read once, hours before the decision.
`leaf task end <page> <todo> done` now says on stderr, after the record,
when the to-do was the last open one on a page element and that element
still stands among the open work, outside any closed `<details>`, later
tab, or hidden element. The note tells the agent to move it, cut to its
outcome, to the finished work unless it is the page's current content.
`task end` now activates the saved source first, as `task open` and
`task start` do, so it reads the page as saved.
SKILL.md's Current principle and "Keep the user current" now state the
goal as focus: what is open and on the user leads the column, finished
work is collapsed, and an update rewrites the page rather than noting the
change where its subject is mentioned. The old "finds each outcome in
place" read as license for in-place notes.
Replays of the session at the turn where the round finished: baseline 0/2
restructured the page; the SKILL.md wording alone 0/2, and with a handoff
clause 0/2; with the `task end` note, 5/5 runs that saw it led with the
open ask and collapsed the finished round (one more run piped stderr into
jq, which hid the note; the record now prints first). The
review-plan-stays-open guardrail passes 2/2 on both arms.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
leaf-agent
reviewed
Oct 14, 2026
leaf-agent
left a comment
Collaborator
There was a problem hiding this comment.
The completion note can direct an agent to move a section that still contains open work.
leaf-agent's review on #2855: a to-do on a section's child, still open, didn't stop the note telling the agent to move and cut the section. The note now reads the On lists (served_state.queues) and stays quiet while any item on either list stands on the element or anything inside it, an open ask included. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
leaf-agent
reviewed
Oct 14, 2026
leaf-agent
left a comment
Collaborator
There was a problem hiding this comment.
An open thread anchored inside the section can still trigger the instruction to move that section to finished work.
leaf-agent's review on #2855: a thread on either On list is queued by its thread id, so a user comment anchored inside the section didn't hold the note. A thread item now counts where its thread is anchored. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
leaf-agent
approved these changes
Oct 14, 2026
max-sixty
added a commit
that referenced
this pull request
Oct 14, 2026
`leaf task end … done` advises moving a finished element out of the open work (#2855). Its words were an inline string in `cli.task_end`; they are now the `finished-in-view` advice finding, so they sit in `findings._TEXT` with every other check's words and carry a code and the element as values. The command still prints them on stderr, after the record. The test now records the advice as a regtest snapshot, as `tests/AGENTS.md` asks of agent-facing text, rather than matching a fragment of it. > _This was written by Claude Code on behalf of max-sixty_ Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
max-sixty
added a commit
that referenced
this pull request
Oct 14, 2026
`developing-leaf` priced a narrow check by how often it fires on pages that already work. It now names the two rates a check or a command's note about what the agent should do next has to clear, precision (the share of firings that were needed, so it doesn't spam the agent) and recall (the share of the failure's occurrences it reaches, so fixing the cases its predicate sees doesn't leave the wider failure looking handled), and asks for an attempt to measure both on real pages and sessions rather than on the failure that prompted it, with a stated estimate where the data isn't there. The case that prompted it: `task end`'s note (#2855) restructured 5 of 5 replays of the session it came from, yet fires only on to-dos opened on a page element, which 7 of 211 pages on this machine had. > _This was written by Claude Code on behalf of max-sixty_ --------- Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
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 left Leaf pages mostly history. In the floating-panel session, every time a worker's PR merged the agent patched one sentence where the item stood ("Landed in #N"), ended the element's to-do, and moved nothing: answered asks and finished rounds stayed in the column, and the next round's decision went only to chat. About half of the recent pages on this machine with two or more answered asks show the same shape. The guidance already asked for finished work collapsed after open work (#906 targeted this failure), but it sits in
SKILL.mdandauthoring-revisions.md, read once, hours before the decision.leaf task end <page> <todo> donenow prints a note on stderr, after the record, when the to-do stood on a page element that still stands among the open work (outside a closed<details>, a later tab, or a hidden element) and nothing on it or inside it, a thread anchored there included, remains on either On list. The note tells the agent to move it, cut to its outcome, to the finished work, unless it is the page's current content.task endnow activates the saved source first, astask openandtask startdo. The code iswork.open_ids,todos.finished_in_view, andcli.task_end.SKILL.md's Current principle and "Keep the user current" now state the goal as focus: what is open and on the user leads the column, finished work is collapsed, and an update rewrites the page rather than noting the change where its subject is mentioned. The old "finds each outcome in place" read as license for in-place notes.authoring-revisions.mdadds a tab as a home for finished work, andconversation-loop.mdties a worker's result to moving what it finished.Replays of the session at the turn where the round finished:
SKILL.mdwording onlytask endnote (prototype, then this code)One further run piped
2>&1intojq, which hid a note printed before the record; the record now prints first. Thereview-plan-stays-openeval, which guards against collapsing what a reader must review, passes 2/2 on both base and candidate.The note only fires for work tracked as to-dos on page elements, which orchestrator sessions use; pages whose agents never open element to-dos rely on the wording alone.