Split docs/DESIGN.md (v0.30, ~300 KB) before /to-spec into three artefacts:
a short current spec (only what is true and binding now),
ADRs under docs/adr/ for the decisions that need their reasoning preserved,
a history file for superseded decisions, the change log and the decision log.
Context: owner decision D2 in docs/ANALYSIS-review.md (2026-11-17). No design decision changes in this task.
Acceptance criteria
No decision changed. Every [FIXED] rule keeps its exact meaning, defaults, limits and cross-references; a diff of normative statements before/after is empty.
Every [FIXED] rule appears exactly once in the current spec. Superseded inline copies move to history; the current spec has one authoritative statement per rule (duplicates resolved by pointing at the surviving block).
ADRs in docs/adr/ for decisions meeting all three tests - hard to reverse, surprising without context, real trade-off. Format per the domain-modeling skill's ADR format (context, decision, consequences, alternatives). Not every FIXED item needs an ADR; routine parameter choices stay in the spec.
History file contains the superseded decisions, the v0.4-v0.30 change log and the dated owner-decision log now in DESIGN section 14, with links to the issues and to the ADRs.
GLOSSARY.md unchanged in meaning. Wording may only move if a term is quoted verbatim in both places; no term is redefined or dropped.
Cross-reference check: every internal section reference resolves in the split files, every #NN issue reference still points at the right decision, and ADRs link to the spec section they constrain (and back).
The new current spec is the single source of truth for /to-spec; docs/ANALYSIS-review.md D2 marked done.
Out of scope
No build tickets (they come from /to-spec).
No change to wall/heights/thickness/status/zoom decisions (D1, D3, D4 stay as recorded).
No new design content.
## Goal
Split `docs/DESIGN.md` (v0.30, ~300 KB) before `/to-spec` into three artefacts:
1. a short **current spec** (only what is true and binding now),
2. **ADRs** under `docs/adr/` for the decisions that need their reasoning preserved,
3. a **history** file for superseded decisions, the change log and the decision log.
Context: owner decision D2 in `docs/ANALYSIS-review.md` (2026-11-17). No design decision changes in this task.
## Acceptance criteria
- [ ] **No decision changed.** Every `[FIXED]` rule keeps its exact meaning, defaults, limits and cross-references; a diff of normative statements before/after is empty.
- [ ] **Every `[FIXED]` rule appears exactly once in the current spec.** Superseded inline copies move to history; the current spec has one authoritative statement per rule (duplicates resolved by pointing at the surviving block).
- [ ] **ADRs in `docs/adr/`** for decisions meeting all three tests - hard to reverse, surprising without context, real trade-off. Format per the `domain-modeling` skill's ADR format (context, decision, consequences, alternatives). Not every FIXED item needs an ADR; routine parameter choices stay in the spec.
- [ ] **History file** contains the superseded decisions, the v0.4-v0.30 change log and the dated owner-decision log now in DESIGN section 14, with links to the issues and to the ADRs.
- [ ] **GLOSSARY.md unchanged in meaning.** Wording may only move if a term is quoted verbatim in both places; no term is redefined or dropped.
- [ ] **Cross-reference check:** every internal section reference resolves in the split files, every `#NN` issue reference still points at the right decision, and ADRs link to the spec section they constrain (and back).
- [ ] The new current spec is the single source of truth for `/to-spec`; `docs/ANALYSIS-review.md` D2 marked done.
## Out of scope
- No build tickets (they come from `/to-spec`).
- No change to wall/heights/thickness/status/zoom decisions (D1, D3, D4 stay as recorded).
- No new design content.
Section numbers are unchanged, so every DESIGN §x.y reference in issues, docs and code still resolves. §12 is now a pointer to the HANDOFF table in history; §14 now holds only open items plus the ADR index. §13 is build status.
ADRs (22)
0001 server-authoritative sight + single egress · 0002 per-recipient views/diffs · 0003 uniform nack · 0004 opaque random token ids · 0005 32 px tile unit · 0006 wall switches/presets/labels · 0007 see-over predicate over a strict polygon · 0008 thick wall = one rectangle · 0009 open door = gap, leaf = body · 0010 wall record as typed columns · 0011 proto 2 · 0012 build thick walls/heights after the M4 playtest · 0013 minimum zoom 0.5 · 0014 accepted wall-sourced status leak · 0015 player marker as the one wall fact · 0016 chunked explored bitmaps · 0017 bounded outbox + stop-feed/resync · 0018 session ≠ key, plaintext keys · 0019 closing message at the mummy pin · 0020 characters separate from tokens · 0021 one global lock v1 · 0022 synchronous=NORMAL, FULL for authoring. Each has tickets, alternatives, consequences and a ## Spec link; the spec's §14 table links back.
Verification
Coverage: every old block containing [FIXED in §1-§11/§13 was matched by opening words against the new spec. 304 old markers: 188 in the new spec, 108 moved verbatim with §12/§14 to history §B/§C, 8 merged into a surviving block. The 22 blocks that changed wording are listed one by one with their surviving statement in the check file.
Dropped as superseded: 12 items, each quoted in history §D with the superseding decision (terrain/preset list, blocked, prop-interpretation, wall height "no column", slow-client close, connection cap 8, message count, prototype gaps, …). Nothing dropped silently.
Refs: every §x.y in the spec and ADRs resolves; no dangling bare x.y section refs. DESIGN 14 comments in tools/groups.* referred to the M3 acceptance record, now §13 (mapped in the check file; docs-only task, code not edited).
GLOSSARY: untouched — no term was quoted verbatim in a way that moved, no links to fix.
Left for the owner
Tag status: section headers keep [PROPOSED] where the design was never explicitly re-fixed (§3.1, §4.3 global lock, §6.2, §7.3, §11.x). Flipping those would be a decision change, so it was not done.
"Exactly once" is enforced at rule level (one authoritative statement). Recipient, wire and storage layers keep their own obligations with pointers to the authority (e.g. marker rule in §5.8, frame in §6.1, table in §3.1, storage in §8).
§10 keeps the full test/acceptance detail rather than ticket-level prose; it can be trimmed further without touching a rule if wanted.
Split done on `main` (not pushed). No design decision changed; verification is in `docs/research/design-split-check.md`.
## Commits
- `7a69779` docs: extract DESIGN history (change log, decision log, superseded text)
- `8aaf03b` docs: add ADRs for the durable design decisions
- `dc16db1` docs: rewrite DESIGN.md as the current-only spec
- `de63364` docs: mark DESIGN split done and record the verification
- `d8c807b` docs: point wall geometry wire validation at 5.7/5.10
- `7468196` docs: record the 22nd reworded block in the split check
- `+` docs: fix the D2 pointer in the history log
## Sizes
| file | before | after |
|---|---|---|
| `docs/DESIGN.md` | 306 288 B, 1105 lines, lines > 4000 chars | 221 355 B, 2611 lines, prose wrapped at 100 (table rows exempt) |
| `docs/DESIGN-history.md` | — | 78 625 B (not normative) |
| `docs/adr/` | — | 22 ADRs, 32 753 B |
Section numbers are **unchanged**, so every `DESIGN §x.y` reference in issues, docs and code still resolves. `§12` is now a pointer to the HANDOFF table in history; `§14` now holds only open items plus the ADR index. `§13` is build status.
## ADRs (22)
0001 server-authoritative sight + single egress · 0002 per-recipient views/diffs · 0003 uniform nack · 0004 opaque random token ids · 0005 32 px tile unit · 0006 wall switches/presets/labels · 0007 see-over predicate over a strict polygon · 0008 thick wall = one rectangle · 0009 open door = gap, leaf = body · 0010 wall record as typed columns · 0011 `proto` 2 · 0012 build thick walls/heights after the M4 playtest · 0013 minimum zoom 0.5 · 0014 accepted wall-sourced status leak · 0015 player marker as the one wall fact · 0016 chunked explored bitmaps · 0017 bounded outbox + stop-feed/resync · 0018 session ≠ key, plaintext keys · 0019 `closing` message at the mummy pin · 0020 characters separate from tokens · 0021 one global lock v1 · 0022 `synchronous=NORMAL`, `FULL` for authoring. Each has tickets, alternatives, consequences and a `## Spec` link; the spec's §14 table links back.
## Verification
- **Coverage:** every old block containing `[FIXED` in §1-§11/§13 was matched by opening words against the new spec. 304 old markers: 188 in the new spec, 108 moved verbatim with §12/§14 to history §B/§C, 8 merged into a surviving block. The 22 blocks that changed wording are listed one by one with their surviving statement in the check file.
- **Dropped as superseded:** 12 items, each quoted in history §D with the superseding decision (`terrain`/preset list, `blocked`, prop-interpretation, wall height "no column", slow-client close, connection cap 8, message count, prototype gaps, …). Nothing dropped silently.
- **Refs:** every `§x.y` in the spec and ADRs resolves; no dangling bare `x.y` section refs. `DESIGN 14` comments in `tools/groups.*` referred to the M3 acceptance record, now §13 (mapped in the check file; docs-only task, code not edited).
- **GLOSSARY:** untouched — no term was quoted verbatim in a way that moved, no links to fix.
## Left for the owner
- Tag status: section headers keep `[PROPOSED]` where the design was never explicitly re-fixed (§3.1, §4.3 global lock, §6.2, §7.3, §11.x). Flipping those would be a decision change, so it was not done.
- "Exactly once" is enforced at rule level (one authoritative statement). Recipient, wire and storage layers keep their own obligations with pointers to the authority (e.g. marker rule in §5.8, frame in §6.1, table in §3.1, storage in §8).
- §10 keeps the full test/acceptance detail rather than ticket-level prose; it can be trimmed further without touching a rule if wanted.
Final byte counts after the last formatting pass: docs/DESIGN.md 221 466 B, docs/DESIGN-history.md 78 707 B, docs/adr/ 32 753 B (22 files), check file 7 689 B. Commit bd32001 updates the table in docs/research/design-split-check.md; nothing else changed.
Final byte counts after the last formatting pass: `docs/DESIGN.md` 221 466 B, `docs/DESIGN-history.md` 78 707 B, `docs/adr/` 32 753 B (22 files), check file 7 689 B. Commit `bd32001` updates the table in `docs/research/design-split-check.md`; nothing else changed.
Follow-up: proof detail split out of DESIGN (docs-only)
DESIGN now states what is true; new docs/TESTING.md states how it is proven. No rule, decision,
threshold or gate criterion changed.
Commits (on main, not pushed):
6837bbc point DESIGN §3-§4 at TESTING for their proofs
39615af add TESTING.md with the proof detail split out of DESIGN
bc10780 point DESIGN §5 at TESTING; move vision/bench proof out
e9c2967 retarget ADR and research refs to TESTING
6bfb032 finish the DESIGN/TESTING split (§6-§13)
1c65531 record the DESIGN/TESTING split ledger
0d5173d trim duplicate statements from TESTING; refresh ledger size
Sizes:docs/DESIGN.md 221 466 B / 2 610 lines → 198 332 B / 2 374 lines (−10.4 %); docs/TESTING.md 36 426 B / 570 lines. Plan + history + ADRs unchanged.
Moved: whole former §10.1-§10.4 (18 964 B) → TESTING §10.1-§10.4; §3.4 threat-table Test column →
TESTING §3.4; perf table/bench scenes and thickness/joint measurements → §5.3/§5.10; concurrency,
commit-cost, SIGKILL, byte-size and tile-leak [MEASURED] runs → §4.3/§4.4/§6.4/§3.3; fault-class,
oracle, differential-test, fixture-churn and migration-test blocks → §5.5/§5.8/§5.9/§10.3; per-section
test pin citations → their section; test nginx, restore drill, SLOW provenance → §11.1-§11.3; M3/M4
measured gate results and harness mechanics → §13.
Kept in DESIGN: all rules; budgets/limits that are requirements (5k-wall < 1 ms target, p99 > 50 ms
trigger, 2x regression threshold, M4/M5/M6 accept criteria, 64 px tile fallback); measured numbers that
back a design choice rather than a gate (§7.2 client perf, §4.3 borrow-not-copy, complexity reading);
§5.2's case list (behaviour). §10 stays as a pointer section that keeps 10.1-10.4 headings, so every
existing DESIGN 10.x reference still resolves; code comments left untouched (mapping 10.x → TESTING
§10.x is in TESTING's header).
FIXED coverage: 189 [FIXED markers before → 187 in DESIGN + 9 in TESTING = 196 after; zero
dropped (each removed block's context has a survivor). Increases are tags now sitting on both a DESIGN
pointer and its TESTING block (§5.3 thickness, §5.9 oracle, §10.4 heading, §11.1 test nginx) plus
TESTING's own tag legend. Tag ledger + moved-block ledger in docs/research/design-split-check.md §6.
Ambiguous (rule vs test), decided: §5.5's [FIXED] regression baseline moved (it defines test
equality, not a product rule); §5.9's oracle spec moved; §5.2 case list stayed; §7.2 measured client
perf stayed (backs design, not a gate).
Verification: no dangling § refs in either file; all TESTING §x / DESIGN §x cross-links
resolve; ADR-0012/0015 ## Spec retargeted; docs/research/walls-sight-thick-low.md retargeted;
§14's 2x-gate pointer now names TESTING §5.3.
## Follow-up: proof detail split out of DESIGN (docs-only)
DESIGN now states **what is true**; new `docs/TESTING.md` states **how it is proven**. No rule, decision,
threshold or gate criterion changed.
**Commits** (on `main`, not pushed):
- `6837bbc` point DESIGN §3-§4 at TESTING for their proofs
- `39615af` add TESTING.md with the proof detail split out of DESIGN
- `bc10780` point DESIGN §5 at TESTING; move vision/bench proof out
- `e9c2967` retarget ADR and research refs to TESTING
- `6bfb032` finish the DESIGN/TESTING split (§6-§13)
- `1c65531` record the DESIGN/TESTING split ledger
- `0d5173d` trim duplicate statements from TESTING; refresh ledger size
**Sizes:** `docs/DESIGN.md` 221 466 B / 2 610 lines → 198 332 B / 2 374 lines (−10.4 %);
`docs/TESTING.md` 36 426 B / 570 lines. Plan + history + ADRs unchanged.
**Moved:** whole former §10.1-§10.4 (18 964 B) → TESTING §10.1-§10.4; §3.4 threat-table `Test` column →
TESTING §3.4; perf table/bench scenes and thickness/joint measurements → §5.3/§5.10; concurrency,
commit-cost, SIGKILL, byte-size and tile-leak `[MEASURED]` runs → §4.3/§4.4/§6.4/§3.3; fault-class,
oracle, differential-test, fixture-churn and migration-test blocks → §5.5/§5.8/§5.9/§10.3; per-section
test pin citations → their section; test nginx, restore drill, SLOW provenance → §11.1-§11.3; M3/M4
measured gate results and harness mechanics → §13.
**Kept in DESIGN:** all rules; budgets/limits that are requirements (5k-wall < 1 ms target, p99 > 50 ms
trigger, 2x regression threshold, M4/M5/M6 accept criteria, 64 px tile fallback); measured numbers that
back a design choice rather than a gate (§7.2 client perf, §4.3 borrow-not-copy, complexity reading);
§5.2's case list (behaviour). §10 stays as a pointer section that keeps 10.1-10.4 headings, so every
existing `DESIGN 10.x` reference still resolves; code comments left untouched (mapping 10.x → TESTING
§10.x is in TESTING's header).
**FIXED coverage:** 189 `[FIXED` markers before → 187 in DESIGN + 9 in TESTING = 196 after; zero
dropped (each removed block's context has a survivor). Increases are tags now sitting on both a DESIGN
pointer and its TESTING block (§5.3 thickness, §5.9 oracle, §10.4 heading, §11.1 test nginx) plus
TESTING's own tag legend. Tag ledger + moved-block ledger in `docs/research/design-split-check.md` §6.
**Ambiguous (rule vs test), decided:** §5.5's `[FIXED]` regression baseline moved (it defines test
equality, not a product rule); §5.9's oracle spec moved; §5.2 case list stayed; §7.2 measured client
perf stayed (backs design, not a gate).
**Verification:** no dangling `§` refs in either file; all `TESTING §x` / `DESIGN §x` cross-links
resolve; ADR-0012/0015 `## Spec` retargeted; `docs/research/walls-sight-thick-low.md` retargeted;
§14's 2x-gate pointer now names TESTING §5.3.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Goal
Split
docs/DESIGN.md(v0.30, ~300 KB) before/to-specinto three artefacts:docs/adr/for the decisions that need their reasoning preserved,Context: owner decision D2 in
docs/ANALYSIS-review.md(2026-11-17). No design decision changes in this task.Acceptance criteria
[FIXED]rule keeps its exact meaning, defaults, limits and cross-references; a diff of normative statements before/after is empty.[FIXED]rule appears exactly once in the current spec. Superseded inline copies move to history; the current spec has one authoritative statement per rule (duplicates resolved by pointing at the surviving block).docs/adr/for decisions meeting all three tests - hard to reverse, surprising without context, real trade-off. Format per thedomain-modelingskill's ADR format (context, decision, consequences, alternatives). Not every FIXED item needs an ADR; routine parameter choices stay in the spec.#NNissue reference still points at the right decision, and ADRs link to the spec section they constrain (and back)./to-spec;docs/ANALYSIS-review.mdD2 marked done.Out of scope
/to-spec).Split done on
main(not pushed). No design decision changed; verification is indocs/research/design-split-check.md.Commits
7a69779docs: extract DESIGN history (change log, decision log, superseded text)8aaf03bdocs: add ADRs for the durable design decisionsdc16db1docs: rewrite DESIGN.md as the current-only specde63364docs: mark DESIGN split done and record the verificationd8c807bdocs: point wall geometry wire validation at 5.7/5.107468196docs: record the 22nd reworded block in the split check+docs: fix the D2 pointer in the history logSizes
docs/DESIGN.mddocs/DESIGN-history.mddocs/adr/Section numbers are unchanged, so every
DESIGN §x.yreference in issues, docs and code still resolves.§12is now a pointer to the HANDOFF table in history;§14now holds only open items plus the ADR index.§13is build status.ADRs (22)
0001 server-authoritative sight + single egress · 0002 per-recipient views/diffs · 0003 uniform nack · 0004 opaque random token ids · 0005 32 px tile unit · 0006 wall switches/presets/labels · 0007 see-over predicate over a strict polygon · 0008 thick wall = one rectangle · 0009 open door = gap, leaf = body · 0010 wall record as typed columns · 0011
proto2 · 0012 build thick walls/heights after the M4 playtest · 0013 minimum zoom 0.5 · 0014 accepted wall-sourced status leak · 0015 player marker as the one wall fact · 0016 chunked explored bitmaps · 0017 bounded outbox + stop-feed/resync · 0018 session ≠ key, plaintext keys · 0019closingmessage at the mummy pin · 0020 characters separate from tokens · 0021 one global lock v1 · 0022synchronous=NORMAL,FULLfor authoring. Each has tickets, alternatives, consequences and a## Speclink; the spec's §14 table links back.Verification
[FIXEDin §1-§11/§13 was matched by opening words against the new spec. 304 old markers: 188 in the new spec, 108 moved verbatim with §12/§14 to history §B/§C, 8 merged into a surviving block. The 22 blocks that changed wording are listed one by one with their surviving statement in the check file.terrain/preset list,blocked, prop-interpretation, wall height "no column", slow-client close, connection cap 8, message count, prototype gaps, …). Nothing dropped silently.§x.yin the spec and ADRs resolves; no dangling barex.ysection refs.DESIGN 14comments intools/groups.*referred to the M3 acceptance record, now §13 (mapped in the check file; docs-only task, code not edited).Left for the owner
[PROPOSED]where the design was never explicitly re-fixed (§3.1, §4.3 global lock, §6.2, §7.3, §11.x). Flipping those would be a decision change, so it was not done.Final byte counts after the last formatting pass:
docs/DESIGN.md221 466 B,docs/DESIGN-history.md78 707 B,docs/adr/32 753 B (22 files), check file 7 689 B. Commitbd32001updates the table indocs/research/design-split-check.md; nothing else changed.Follow-up: proof detail split out of DESIGN (docs-only)
DESIGN now states what is true; new
docs/TESTING.mdstates how it is proven. No rule, decision,threshold or gate criterion changed.
Commits (on
main, not pushed):6837bbcpoint DESIGN §3-§4 at TESTING for their proofs39615afadd TESTING.md with the proof detail split out of DESIGNbc10780point DESIGN §5 at TESTING; move vision/bench proof oute9c2967retarget ADR and research refs to TESTING6bfb032finish the DESIGN/TESTING split (§6-§13)1c65531record the DESIGN/TESTING split ledger0d5173dtrim duplicate statements from TESTING; refresh ledger sizeSizes:
docs/DESIGN.md221 466 B / 2 610 lines → 198 332 B / 2 374 lines (−10.4 %);docs/TESTING.md36 426 B / 570 lines. Plan + history + ADRs unchanged.Moved: whole former §10.1-§10.4 (18 964 B) → TESTING §10.1-§10.4; §3.4 threat-table
Testcolumn →TESTING §3.4; perf table/bench scenes and thickness/joint measurements → §5.3/§5.10; concurrency,
commit-cost, SIGKILL, byte-size and tile-leak
[MEASURED]runs → §4.3/§4.4/§6.4/§3.3; fault-class,oracle, differential-test, fixture-churn and migration-test blocks → §5.5/§5.8/§5.9/§10.3; per-section
test pin citations → their section; test nginx, restore drill, SLOW provenance → §11.1-§11.3; M3/M4
measured gate results and harness mechanics → §13.
Kept in DESIGN: all rules; budgets/limits that are requirements (5k-wall < 1 ms target, p99 > 50 ms
trigger, 2x regression threshold, M4/M5/M6 accept criteria, 64 px tile fallback); measured numbers that
back a design choice rather than a gate (§7.2 client perf, §4.3 borrow-not-copy, complexity reading);
§5.2's case list (behaviour). §10 stays as a pointer section that keeps 10.1-10.4 headings, so every
existing
DESIGN 10.xreference still resolves; code comments left untouched (mapping 10.x → TESTING§10.x is in TESTING's header).
FIXED coverage: 189
[FIXEDmarkers before → 187 in DESIGN + 9 in TESTING = 196 after; zerodropped (each removed block's context has a survivor). Increases are tags now sitting on both a DESIGN
pointer and its TESTING block (§5.3 thickness, §5.9 oracle, §10.4 heading, §11.1 test nginx) plus
TESTING's own tag legend. Tag ledger + moved-block ledger in
docs/research/design-split-check.md§6.Ambiguous (rule vs test), decided: §5.5's
[FIXED]regression baseline moved (it defines testequality, not a product rule); §5.9's oracle spec moved; §5.2 case list stayed; §7.2 measured client
perf stayed (backs design, not a gate).
Verification: no dangling
§refs in either file; allTESTING §x/DESIGN §xcross-linksresolve; ADR-0012/0015
## Specretargeted;docs/research/walls-sight-thick-low.mdretargeted;§14's 2x-gate pointer now names TESTING §5.3.