Skip to content

Name the code that chooses for the agent besides refusals, and where a survey finds it - #6630

Merged
max-sixty merged 2 commits into
mainfrom
judgment-survey-misses
Nov 21, 2026
Merged

max-sixty merged 2 commits into
mainfrom
judgment-survey-misses

Conversation

@max-sixty

@max-sixty max-sixty commented Nov 21, 2026 •

Copy link
Copy Markdown
Owner

The refusal survey of 16 November listed findings.py's codes and their hits in agent transcripts, so it missed the two summary mechanisms #6617 later removed that refused nothing: served state's protected, which forced a fold open, and the rule that only a summary's prose read the messages it folded. Neither prints a finding or leaves a trace in a transcript. The third, summary-gap, it found and kept as Max's: #5531, an issue an agent wrote in his name, described the outcome, and an agent's sweep (#6049) made that a refusal.

This adds "Code that chooses for the agent" to root AGENTS.md's "Regular maintenance": the shapes such code takes besides a refusal, each judged by "Leaf's role" whoever asked for it, and where the ones that print nothing show, in what the page draws set against what the agent's write declared. "What it buys" now credits an outcome the maintainer asked for rather than any request.

Worth weighing: an earlier version also added a /developing-leaf section walking findings.py and the served-state schema; Max asked for it to come out. In fresh sessions running his 16 November request on the tree before #6617, that walk found protected once in two runs, against none in five without it, so the bullet alone may leave surveys missing such code.

Max asked for this investigation and for the skill section's removal; nobody else has read it. No tests cover maintainer guidance; pre-commit passes.

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

…a survey finds it

The refusal survey of 16 November listed `findings.py`'s codes and counted
their hits in agent transcripts. It missed two of the three summary
mechanisms #6617 removed, because they refused nothing: served state's
`protected`, which forced a fold open, and the rule that only a summary's
prose read the messages it folded. Neither prints a finding or leaves a
trace in a transcript. The third, `summary-gap`, it found and kept because
#5531, an issue an agent wrote in Max's name, had asked for it.

Root `AGENTS.md`'s "Regular maintenance" gains "Code that chooses for the
agent": besides a refusal, code that overrides what the agent wrote, reads
a meaning off the form of its act, or binds it to a cutoff, each judged by
"Leaf's role" whoever asked for it. `/developing-leaf` gains "Survey what
Leaf decides for the agent", which walks `findings.py` and the served-state
schema and follows each served fact to what the browser draws. "What it
buys" now credits an outcome the maintainer asked for rather than any
request, since an issue's expected behaviour is often its writer's
proposed mechanism.

Evidence, on the tree just before #6617, in fresh sessions with Max's
settings and skills, running his 16 November request whole: `protected`
was found in 0/2 runs with main's instructions, 0/2 with the bullet (and a
CLAUDE.md sentence on provenance), 0/1 with a survey by event kind, and
1/2 with the served-state schema walk. No version found the browser's
prose-only read rule. Asked directly whether to keep the forced-open fold,
15/15 sessions said change it under every version, so the miss is in where
surveys look rather than how they judge. The final wording rephrases the
tested text without changing its claims.

> _This was written by Claude Code on behalf of max-sixty_

Co-Authored-By: Claude Opus 5.5 <[email protected]>
leaf-agent
leaf-agent previously approved these changes Nov 21, 2026
Max asked for the "Survey what Leaf decides for the agent" section to
come out of /developing-leaf. The "Code that chooses for the agent" bullet in root AGENTS.md pointed
to it for where code that prints no finding shows; it now says that in
its own clause: compare what the page draws with what the agent's write
declared.

> _This was written by Claude Code on behalf of max-sixty_

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@max-sixty
max-sixty merged commit 88da2d9 into main Nov 21, 2026
6 checks passed
@max-sixty
max-sixty deleted the judgment-survey-misses branch November 21, 2026 02:17
max-sixty added a commit that referenced this pull request Nov 21, 2026
…6633)

Four places where Leaf's code overruled a write the agent made now let
the write stand, and three of them tell the agent what Leaf did. They
came out of the survey of code that chooses for the agent (#6630); Max
picked "Build the four changes in one PR" on that survey's page.

- **Summaries.** Who changed the thread now decides whether a summary
over it is retired, not whether the summary has prose. The user's
rewrite of a folded message, or their taking back a message the thread
held, retires every summary over it; a label-only fold used to survive
the same rewrite. The agent's own edit leaves its summary standing
(fixing a typo used to drop it), and `thread edit` names the summary the
message sits under (`edit-under-summary`).
- **Turn-end asks.** The turn-end check no longer drops a fork's ask,
telling no one, when its title matches a thread the agent once opened to
ask something. The fork already sees each ended question with its id.
This reverses a decision `clerk.py`'s header stated, which no commit
records Max making.
- **Reply titles.** A reply's `--title` on an already-titled thread now
says which title stands and that `leaf thread edit --title` renames it
(`title-kept`), instead of being ignored.
- **To-do and plan titles.** A to-do's, a reply's `--todo` or a plan
step's title over 80 characters is fitted as a thread title is
(`title-fitted`), instead of refusing the whole reply or plan.

Worth weighing: the summary change still has Leaf retire a summary on
the user's rewrite. Deleting the retirement entirely, so the agent
re-summarizes after any rewrite it hears about, would remove more code;
that isn't what was picked, so it isn't here.

Max asked for this; nobody else has read it. Focused model tests for
folds, summary hints, the clerk, to-dos, the interact layer and forks
pass, as does the one browser summary test whose fixture changed;
pre-commit passes.

> _This was written by Claude Code on behalf of max-sixty_

---------

Co-authored-by: Claude Opus 5.5 <[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