Skip to content

Commit 5ae36be

Browse files
committed
update AGENTS.md
1 parent 742a36b commit 5ae36be

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

AGENTS.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,14 @@ When unsure, run the tests for the most specific applicable category.
107107

108108
## Change Policy
109109

110+
- For any new feature or bug fix, adding or updating tests is REQUIRED.
111+
- Tests must demonstrate the failure before the change and pass after the change, when feasible.
112+
- Tests may be omitted ONLY IF adding or updating tests is impractical.
113+
- When tests are omitted, clearly explain the reason (e.g., technical constraints, environment limitations).
114+
110115
- Avoid refactoring unrelated to the request.
111-
- For new features or bug fixes, prefer adding a failing test before making the change when feasible.
112-
- After changes, check for duplication and refactor if it is clearly safe.
116+
- After changes, check for duplication and refactor only if it is clearly safe.
117+
- Perform refactoring in a SEPARATE commit from functional changes.
113118
- If uncertain whether refactoring is appropriate, report instead of modifying.
114119

115120
---

0 commit comments

Comments
 (0)