Add a rule against unrequested edits to adjacent code - #731
Open
Lockyer228 wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
ponytail:and the repo's own AGENTS.md are explicit that agents must not "improve" adjacent code while fixing a bug — but the skill's Rules never said it. The result is the exact drift the issue names: unrequested edits to neighboring code, comments, or formatting riding along with a real fix.What
Add a
surgical changesrule to the Rules section ofAGENTS.mdandskills/ponytail/SKILL.md:Propagated byte-identically to the seven adapter copies (
.cursor,.windsurf,.clinerules,.agents,.qoder,.github/copilot-instructions,.kiro), percheck-rule-copies.js, and regenerated the.openclaw/skill.Tests
node scripts/check-rule-copies.js→ exit 0 (9 rule invariants intact, no existing rule reworded)node --test tests/openclaw-skills.test.js→ 18/18npm test→ all pass except the pre-existingcsv: correct pandas one-liner passesfailure, which fails identically on the base commit (no pandas installed locally) — unrelated to this change.Fixes #640