Repository navigation
Conversation
[ghstack-poisoned]
PR Status: Approved 🚀Please fix all CI failures and trigger merge by commenting "@pytorchbot merge". ✅ AUTOMATED REVIEW - Ready for human review:
Reviewed commit: 🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/202334
Note: Links to docs will display an error until the docs builds have been completed. ❗ 1 Active SEVsThere are 1 currently active SEVs. If your PR is affected, please view them below: ✅ No FailuresAs of commit e4f3898 with merge base 33ce05e ( 🟡 GREEN LIGHT - PR requires human review:
reason: This comment was automatically generated by Dr. CI and updates every 15 minutes. |
…ll-writer checklist update [ghstack-poisoned]
Rules in CLAUDE.md, skills and REVIEW.md files are applied literally by agents. When a rule tries to settle its edge cases with lists of paths, exemptions or hard limits, each entry is a factual claim that can be wrong or go stale, and every gap or counterexample then reads as a defect. On #202251 this led to a string of review rounds, each adding a more specific exemption that the next round found a counterexample to, until the rule was cut down to a short one. Add an "Agent Guidance" section to CLAUDE.md asking agents that add or rewrite instructions for agents to keep them short and state the intent, spelling out only the edge cases that are known pitfalls. It sits in its own section rather than in Coding Style Guidelines, which covers code changes. Update the skill-writer skill to match: its skeleton template asked for an "edge cases" step and its validation checklist for "edge cases handled". Drop the template step (the template's best practices already list common pitfalls) and make both of its validation checklists ask for stated intent, with edge cases only for known pitfalls. This only changes guidance for authors. The pr-review skill's own rules are unchanged: changing what the automated reviewer flags needs a maintainer's explicit approval and belongs in a separate PR. Test Plan: documentation-only change. Checked the other agent guidance that mentions edge cases for conflicts with the new rule: ``` git grep -n -i "edge case" -- CLAUDE.md '*REVIEW.md' .agents ``` This PR was authored with the help of an AI assistant (Claude). ghstack-source-id: ffacba2 Pull-Request: #202334
There was a problem hiding this comment.
Automated review of e4f3898: nothing blocking; ready for human review.
This PR adds an "Agent Guidance" section to CLAUDE.md asking agents who write instructions for other agents to keep them short, state the intent, and spell out only the edge cases that are known pitfalls. It also updates the skill-writer skill to match, and the review found no issues. Recommendation: Approve.
This review is AI-generated and advisory. Each new automated review replaces the previous one.
Withdrawn: the automated review of e4f3898 found nothing blocking.
Stack from ghstack (oldest at bottom):
Rules in CLAUDE.md, skills and REVIEW.md files are applied literally by
agents. When a rule tries to settle its edge cases with lists of paths,
exemptions or hard limits, each entry is a factual claim that can be
wrong or go stale, and every gap or counterexample then reads as a
defect. On #202251 this led to a string of review rounds, each adding a
more specific exemption that the next round found a counterexample to,
until the rule was cut down to a short one.
Add an "Agent Guidance" section to CLAUDE.md asking agents that add or
rewrite instructions for agents to keep them short and state the intent,
spelling out only the edge cases that are known pitfalls. It sits in its
own section rather than in Coding Style Guidelines, which covers code
changes.
Update the skill-writer skill to match: its skeleton template asked for
an "edge cases" step and its validation checklist for "edge cases
handled". Drop the template step (the template's best practices already
list common pitfalls) and make both of its validation checklists ask for
stated intent, with edge cases only for known pitfalls.
This only changes guidance for authors. The pr-review skill's own rules
are unchanged: changing what the automated reviewer flags needs a
maintainer's explicit approval and belongs in a separate PR.
Test Plan: documentation-only change. Checked the other agent guidance
that mentions edge cases for conflicts with the new rule:
This PR was authored with the help of an AI assistant (Claude).