Commit 94ee17a
committed
docs: add Self-Review Discipline section to CLAUDE.md
Honest retro from this PR: review bots (Codex, CodeRabbit) surfaced
~13 valid findings; my own self-reviews surfaced ~3–4. Bots aren't
magic — they run adversarial checks consistently. The agent
guidelines didn't tell future sessions to do the same.
Adds a new "Self-Review Discipline" section between Principles and
Port Rules, covering the six specific blindspots this PR kept hitting:
1. Adversarial input sweep — what inputs would break this regex/
substitution/tokenizer?
2. Emit/parse symmetry — does my parse accept every shape my emit
produces?
3. Pass-interaction check — does my new pass compose cleanly with
every existing pass in the pipeline?
4. Unforgeable sentinels — per-call nonce for any placeholder mapped
back to structured data.
5. Divergence budget — enforce the 2-divergence-per-sync cap against
myself, not just externally.
6. The Codex pre-ship question — "what would Codex find right now?"
Also cross-links from UPSTREAM_SYNC.md "How to land a divergence"
since divergence code is the highest-risk surface for these
blindspots.
https://claude.ai/code/session_01XE1bMoQ5BjCvgi1iLGKKhG1 parent f9a925d commit 94ee17a
2 files changed
Lines changed: 48 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
67 | 111 | | |
68 | 112 | | |
69 | 113 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
114 | 118 | | |
115 | 119 | | |
116 | 120 | | |
| |||
0 commit comments