Skip to content

Ask reviewers to read a touched area's AGENTS.md, in root AGENTS.md - #5823

Closed
leaf-agent wants to merge 3 commits into
mainfrom
daily/review-runs-42982158222-review-context
Closed

leaf-agent wants to merge 3 commits into
mainfrom
daily/review-runs-42982158222-review-context

Conversation

@leaf-agent

@leaf-agent leaf-agent commented Nov 11, 2026 •

Copy link
Copy Markdown
Collaborator

Tend's reviews rarely read the AGENTS.md of the areas a diff touches, so they judge architecture without that area's rules. This changes root AGENTS.md's "Read an area's AGENTS.md before changing it" to "before changing or reviewing it". A reviewer changes nothing, so until now no instruction told it to read them.

What it cost. On #5790, a bot PR, both reviews (42781474441, 42783951007) never opened browser/AGENTS.md. The first one passed a head that wrote group visibility through dialogList.children[index] and dropped Lit's ?hidden binding, and it called that a simplification. max-sixty caught that this splits the Page Map's rendering between Lit and manual DOM writes, which breaks browser/AGENTS.md's rule of one Lit renderer per component (comment).

Why root AGENTS.md and not the Tend overlay. This PR first added a "before reading the diff, load /developing-leaf and read each area's AGENTS.md" paragraph to running-tend's Review threshold. #6003 then moved the weighing rules from /developing-leaf into root AGENTS.md, so loading the skill no longer adds them. Its replays also showed that a load step in running-tend usually runs too late: reviews load the overlay in the same turn as the preflight call. Every session already has root AGENTS.md in context, so the rule goes there and the overlay is unchanged.

This touches agent instructions, so it needs the control-plane owner's approval. The next review-runs sweep can check the effect by counting reviews whose logs read a touched area's AGENTS.md. Tracking issue: #5067.

…S.md first

Review sessions mostly skipped the load the review threshold asked for
mid-sentence, and judged architecture without the area rules.
# Conflicts:
#	.claude/skills/running-tend/SKILL.md

@leaf-agent leaf-agent left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

#6003 merged after this PR was opened and removed both its premise and its approach. That PR moved Weigh what a change adds from /developing-leaf into root AGENTS.md and took the "Load /developing-leaf" sentence out of the overlay. So the description's claim that Review threshold "begins 'Load /developing-leaf…'" no longer holds at this PR's base. The rules this paragraph would load the skill for are already in every session's context.

#6003's replays also measured this kind of fix. Most reviews load running-tend in the same turn as the preflight call (32 of 43), so they read the overlay after they have moved on to the review skill's steps. A "load first" section at the top of running-tend fired in 0 of 8 runs where it was batched like that. This review loaded running-tend that way too. A "before reading the diff" step in the overlay therefore probably won't fire in most reviews, so the next review-runs count would mostly measure placement, not wording.

#6003 doesn't cover the other half of this change: reviews don't read the touched area's AGENTS.md (the #5790 miss). That rule fits better in root AGENTS.md's Repository map, which every review already has in context and which currently says "Read an area's AGENTS.md before changing it". Widening that to "before changing or reviewing it" covers the gap the description names (a reviewer changes nothing, so the rule never reached it), without an overlay step. I'll push that change in place of this paragraph and rewrite the description to match.

… the Tend overlay

#6003 moved the weighing rules out of /developing-leaf and showed that a
load step in running-tend usually runs too late, so the overlay paragraph
is dropped. Root AGENTS.md is in every session's context.
@leaf-agent leaf-agent changed the title Have Tend's review load /developing-leaf and the touched areas' AGENTS.md before reading the diff Ask reviewers to read a touched area's AGENTS.md, in root AGENTS.md Nov 15, 2026
@max-sixty

max-sixty commented Nov 16, 2026 •

Copy link
Copy Markdown
Owner

Closing: this PR's remaining line, "Read an area's AGENTS.md before changing or reviewing it", is carried in #6093, which writes down where Leaf's instructions go (by who must act on them) and moves what that misplaces. The /developing-leaf load it first proposed was superseded by #6003, which put the rules Tend's review applies in the root AGENTS.md.

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

@max-sixty max-sixty closed this Nov 16, 2026
max-sixty added a commit that referenced this pull request Nov 16, 2026
…laces (#6093)

"Where instructions live" sorted instructions by kind and never asked
who reads each file, which is how "Weigh what a change adds" ended up in
a skill Tend loaded in 3 of 43 reviews (#6003). The root `AGENTS.md`
reaches every session, subagent and Tend run; `/developing-leaf` reached
45 of 52 interactive sessions and about half the subagents sampled. This
replaces the rule with one that places text by who must act on it and
what missing it costs: an `AGENTS.md` holds what a change could break by
missing (goals, invariants, the criteria a change or review is judged
by, gates), the skill holds how to do a kind of task, and `running-tend`
only what Tend's jobs alone do.

It then moves what that rule misplaces. Into root `AGENTS.md`: the
glossary rule, the picture each UI option carries, the UI-review and
`/ui-sweep` gate, the agent-journey gate for harness changes, when to
score an instruction change, and the shipped-prose defects from
`running-tend`. Into `tests/AGENTS.md`, "Failing tests": choosing a
repair for a red test by the change's intent and the interface, from
`running-tend`. Into the skill: the browser-startup comparison steps and
measuring a removal. Second copies of rules owned by
`browser/AGENTS.md`, `tests/AGENTS.md`, `states.py` and "Where
instructions live" are deleted. "Read an area's `AGENTS.md` before
changing it" gains "or reviewing it", the one line #5823 had left.

What to weigh: root `AGENTS.md` grows by about 2,000 characters for
every session in the repository, and `tests/AGENTS.md` by 1,000;
`running-tend` and the skill shrink by 2,500 together. `running-tend`
changes need the control-plane owner's approval.

Asked for by Max. Codex reviewed it twice and Tend's review once; their
eight findings are folded in, the last giving the scoring criteria one
home in root `AGENTS.md`. Pre-commit passes; nothing here is code.

> _This was written by Claude Code on behalf of max-sixty_
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

review-runs Opened by the tend-review-runs sweep

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants