Commit 23f2119
authored
agents.md: ban adding test skips without explicit user request (erigontech#21232)
## Summary
Adds a project-level policy in [agents.md](agents.md) for test skips.
The rule applies to every contributor and to every automated agent (LLM
coding assistants etc.) working in the repo.
## Three-part policy
1. **Why skips are dangerous** — concrete case: erigontech#21153 removed a
`t.Skip` documenting a known parallel-exec SD/CREATE2 bug; the
underlying bug was never actually fixed, so removing the skip suddenly
red'd CI across downstream PRs.
2. **Two valid skip reasons (humans only, with tracking issue)**:
- External test suites we import where we can't pass all the tests yet
- Flakes with very low tolerance (general rule: reproduce locally and
fix; only skip after serious investigation, with the investigation
linked in the tracking issue)
3. **Strict ban for automated agents**: agents must never add a skip,
period. Not as a tactical unblock, not behind a flag, not as an
`AskUserQuestion` option. Default trajectory for a failing test is
investigate → reproduce → fix → verify. If genuinely can't fix
in-session, escalate with investigation findings — never silently mute.
## Why
Skips convert a loud "this is broken" CI signal into silence, then back
into surprise when the skip is later removed. The end state we want:
humans add skips only for the two narrow reasons with tracking issues;
automated agents always go through investigate → reproduce → fix, never
→ skip.
## Test plan
- Docs-only change to `agents.md`; no code paths affected.
- No CI gating to add — this is a behavioural directive for both human
contributors reading the repo's contributor docs and for automated
agents that read `agents.md`/`CLAUDE.md` at session start.1 parent 1cf1ea8 commit 23f2119
1 file changed
Lines changed: 33 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
45 | 78 | | |
46 | 79 | | |
47 | 80 | | |
| |||
0 commit comments