Repository navigation
Ask reviewers to read a touched area's AGENTS.md, in root AGENTS.md - #5823
leaf-agent wants to merge 3 commits into
Conversation
…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
left a comment
There was a problem hiding this comment.
#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.
|
Closing: this PR's remaining line, "Read an area's
|
…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_
Tend's reviews rarely read the
AGENTS.mdof the areas a diff touches, so they judge architecture without that area's rules. This changes rootAGENTS.md's "Read an area'sAGENTS.mdbefore 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 throughdialogList.children[index]and dropped Lit's?hiddenbinding, and it called that a simplification.max-sixtycaught that this splits the Page Map's rendering between Lit and manual DOM writes, which breaksbrowser/AGENTS.md's rule of one Lit renderer per component (comment).Why root
AGENTS.mdand not the Tend overlay. This PR first added a "before reading the diff, load/developing-leafand read each area'sAGENTS.md" paragraph to running-tend's Review threshold. #6003 then moved the weighing rules from/developing-leafinto rootAGENTS.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 rootAGENTS.mdin 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.