What happened
The code agent on fullsend#2133 (predecessor to agents#445) added a new mandatory-finding rule for agent behavior definition changes to skills/code-review/SKILL.md. However, it did not add a corresponding procedural section to skills/pr-review/sub-agents/security.md. In the production pipeline, pr-review dispatches dimension-specific sub-agents that never receive code-review/SKILL.md content — so the rule was inert during orchestrated reviews. The review agent flagged this gap in every review cycle from June 10 through July 30 (run 30583297797), and the fix agent's third iteration (June 29, commit 2be0d71) only partially addressed it by adding an Own: clause without a procedural section. Human reviewer waynesun09 independently confirmed this gap on July 29. The result was 6+ review cycles and 3 fix iterations all driven by the same structural omission.
What could go better
The code agent didn't understand the relationship between code-review/SKILL.md (standalone review) and the pr-review orchestrator that delegates to sub-agents in skills/pr-review/sub-agents/. This architectural relationship is not documented anywhere agents can reference. If AGENTS.md explained that changes to review rules in code-review/SKILL.md must be mirrored with procedural sections in the corresponding pr-review sub-agent, the code agent would have produced a complete implementation on the first attempt. Confidence: high — the code agent's reasoning trace (per the review body) showed no awareness of the sub-agent delegation model, and the fix agent's partial fix confirms neither agent understood the full propagation requirement.
Proposed change
Add a section to AGENTS.md (or a dedicated CONTRIBUTING.md section) documenting the review pipeline architecture. Specifically:
- Explain that
skills/code-review/SKILL.md defines review dimensions for standalone use, while skills/pr-review/SKILL.md orchestrates parallel sub-agents that each receive only their own definition file (from skills/pr-review/sub-agents/).
- State the propagation rule: when adding or modifying a review rule in
code-review/SKILL.md, the corresponding pr-review sub-agent must receive a matching procedural section with the category name, severity guidance, and file pattern matching instructions.
- Reference the routing table in
pr-review/SKILL.md (section 3a) that maps categories to sub-agents, and note that new categories must be added to this table.
- Use the existing "Permission and role changes" section in
skills/pr-review/sub-agents/security.md as the model for what a complete procedural section looks like.
This is repo-specific architectural documentation, not an agent definition change.
Validation criteria
The next code agent PR that modifies review rules in code-review/SKILL.md should also include corresponding changes to the relevant pr-review sub-agent definition. Verify by checking the next 3 PRs that touch skills/code-review/SKILL.md — each should include changes to the corresponding sub-agent file if the rule introduces a new category or mandatory-finding directive. Additionally, the review agent should stop flagging 'missing procedural section' as a persistent finding on such PRs.
Generated by retro agent from #445
What happened
The code agent on fullsend#2133 (predecessor to agents#445) added a new mandatory-finding rule for agent behavior definition changes to
skills/code-review/SKILL.md. However, it did not add a corresponding procedural section toskills/pr-review/sub-agents/security.md. In the production pipeline,pr-reviewdispatches dimension-specific sub-agents that never receivecode-review/SKILL.mdcontent — so the rule was inert during orchestrated reviews. The review agent flagged this gap in every review cycle from June 10 through July 30 (run 30583297797), and the fix agent's third iteration (June 29, commit 2be0d71) only partially addressed it by adding anOwn:clause without a procedural section. Human reviewer waynesun09 independently confirmed this gap on July 29. The result was 6+ review cycles and 3 fix iterations all driven by the same structural omission.What could go better
The code agent didn't understand the relationship between
code-review/SKILL.md(standalone review) and thepr-revieworchestrator that delegates to sub-agents inskills/pr-review/sub-agents/. This architectural relationship is not documented anywhere agents can reference. If AGENTS.md explained that changes to review rules incode-review/SKILL.mdmust be mirrored with procedural sections in the correspondingpr-reviewsub-agent, the code agent would have produced a complete implementation on the first attempt. Confidence: high — the code agent's reasoning trace (per the review body) showed no awareness of the sub-agent delegation model, and the fix agent's partial fix confirms neither agent understood the full propagation requirement.Proposed change
Add a section to
AGENTS.md(or a dedicatedCONTRIBUTING.mdsection) documenting the review pipeline architecture. Specifically:skills/code-review/SKILL.mddefines review dimensions for standalone use, whileskills/pr-review/SKILL.mdorchestrates parallel sub-agents that each receive only their own definition file (fromskills/pr-review/sub-agents/).code-review/SKILL.md, the correspondingpr-reviewsub-agent must receive a matching procedural section with the category name, severity guidance, and file pattern matching instructions.pr-review/SKILL.md(section 3a) that maps categories to sub-agents, and note that new categories must be added to this table.skills/pr-review/sub-agents/security.mdas the model for what a complete procedural section looks like.This is repo-specific architectural documentation, not an agent definition change.
Validation criteria
The next code agent PR that modifies review rules in
code-review/SKILL.mdshould also include corresponding changes to the relevantpr-reviewsub-agent definition. Verify by checking the next 3 PRs that touchskills/code-review/SKILL.md— each should include changes to the corresponding sub-agent file if the rule introduces a new category or mandatory-finding directive. Additionally, the review agent should stop flagging 'missing procedural section' as a persistent finding on such PRs.Generated by retro agent from #445