Commit f03d7e7
docs(lockdown): CLAUDE.md + banners — block recurrence of legacy-preservation patching (#175)
## Summary
Owner directive 2026-05-27 (received during a session that had just
shipped PR #170 doing exactly the patching the directive forbids):
> We are no longer treating preservation as a proof-engineering problem.
… Do not optimize for smallest patch size. Make sure that never happens
again, and it is very clear what the work is wherever needs documenting;
no further time can be spent on the 'old approach'.
This PR makes the directive impossible to miss across every doc surface
an agent (or human) might encounter when picking up \`formal/\` work.
## What this changes
### NEW: \`CLAUDE.md\` at repo root
Agent-facing guidance with:
- 60-second TL;DR of why preservation in \`Semantics.v\` cannot be
closed.
- Explicit **DO NOT** list (5 items): no closing legacy preservation, no
extending \`Semantics.v\` with closure-supporting lemmas, no closing
\`region_liveness_at_split_l1\` axiom via proof tricks, no following
pre-2026-05-26 closure plans, no patching legacy \`Typing.v\`.
- Affirmative path: read \`PRESERVATION-DESIGN.md\` first; work proceeds
per-layer (L1 / L2 / L3 / L4).
- File reference table marking each \`formal/*.v\` as legacy-frozen vs
active-layered vs forward-looking.
- Two diagnostic questions to ask before touching \`formal/\`.
### Banner: \`formal/PRESERVATION-DESIGN.md\`
CANONICAL banner at top. Same 4-item anti-pattern list as CLAUDE.md plus
the **anti-pattern detector**: "if a session is producing
sibling-region-disjointness side conditions, region-weakening predicates
indexed on syntactic shape, or admit-shuffling between Semantics.v and a
new lemma — escalate to a layer-design discussion."
### Banner: \`formal/PRESERVATION-HANDOFF.md\`
Strengthened from "Superseded" to "ARCHAEOLOGY ONLY — do NOT follow the
closure plans in this file." Keeps the historical 910→12 reduction data
for diagnostic value but explicitly marks it not-a-plan.
### Surgery: \`ROADMAP.adoc\`
- v0.1 "Coq: close preservation to Qed" checkbox rewritten in layered
terms (the work is per-layer derivation, not legacy-theorem closure).
- The 230-line **§ Preservation closure plan** body (5 phases, all aimed
at closing the falsified theorem) is removed. Git history retains it for
forensic value.
- Replaced with a brief "superseded by four-layer redesign" section
pointing at the design doc + CLAUDE.md.
### Memory store
\`~/.claude/.../memory/feedback_ephapax_no_patching_legacy_preservation.md\`
captures the durable directive. The \`MEMORY.md\` index surfaces it in
the always-on disambiguation block alongside the existing
ephapax/affinescript disambiguation entry so future Claude sessions see
it on load.
## What this does NOT change
- No \`.v\` files. The Coq code is untouched.
- No PR closures. PRs landed before this lockdown remain as-is.
- No deletion of \`PRESERVATION-HANDOFF.md\`; the per-case diagnostic
data may still inform layered-design work.
## Test plan
- [x] \`cat CLAUDE.md\` renders sensibly at repo root
- [x] \`PRESERVATION-DESIGN.md\` banner is the first visual block after
the title
- [x] \`ROADMAP.adoc\` no longer contains "Lemma B" / "5-phase" / "close
preservation to Qed" as instructions
- [x] No Coq files modified (no rebuild needed)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 5741ee3 commit f03d7e7
4 files changed
Lines changed: 226 additions & 249 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 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 | + | |
| 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 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
0 commit comments