docs: finish the DESIGN/TESTING split (§6-§13)

Protocol, client, ops and milestone sections keep their rules and gate criteria;
message-size measurements, close-assertion detail, the test nginx, the restore
drill, the slow-log provenance and the M3/M4 gate mechanics move to TESTING.
DESIGN §10 becomes a pointer section that keeps 10.1-10.4 so existing refs
resolve.
This commit is contained in:
2026-11-17 23:22:48 +01:00
parent e9c29675de
commit 6bfb032548
2 changed files with 48 additions and 257 deletions
+8 -9
View File
@@ -553,19 +553,18 @@ from the prototype, what was missing, what the M3 build added, and the tools it
## 13. Build status and milestones
**Rule:** DESIGN §13 (milestones and their accept criteria). Gate mechanics and measured results:
**Rule:** DESIGN §13 (milestones and their accept criteria).
- **M1.** `geometry.nim`, `tgeometry.nim`, the mutation script and the shared-endpoint arm test.
- **M3 accept result.** Measured 2026-11-15: `devbox run test` exit 0 (Nim suite all pass; 103 Node
harness tests) and `devbox run mutation` exit 0 (control passes, all 63 mutations fail at least one
expected test). The nine groups map to their proving tests in `tools/groups.mjs`;
`tools/groups.test.mjs` fails if a group or its named evidence test disappears.
- **M4 client gates.** (a) automated headless-Chromium test with mobile emulation (viewport, dpr, CPU
- **M4 gate harness.** (a) automated headless-Chromium test with mobile emulation (viewport, dpr, CPU
and network throttle) against the real server path (nginx HTTP/2 + caching); (b) one manual run on
the owner's 5-year-old Android phone. The 2026-11-08 prototype phone run is evidence, not the gate
(HTTP/1.1, no-store, zoom 0.5 only, first cold load up to 3.3 s). If either fails, the fallback in
DESIGN §13 applies.
- **M5 accept.** Concurrency 60 s x3 with p99 <= the prototype's 4.98 ms + 50%; the slow-client test
(§10.3); nginx closes a dead `/ws` within its configured timeout; stats computed outside the lock.
- **M6 accept.** Deployed behind HTTPS; direct `/_tiles/` 404; WS upgrade works; phone sign-in works;
no secret in the access log; backup and restore drill passes.
(HTTP/1.1, no-store, zoom 0.5 only, first cold load up to 3.3 s).
- **M4/M5 proving harnesses.** Headless e2e (§10.3 Browser e2e), the independent traffic audit
(§10.3) and the slow-client test (§10.3) are the gates' harnesses; the pass criteria stay in DESIGN
§13.
- **M6 proof.** `/_tiles/` 404 and the log grep (§10.3 Logs), the WS upgrade (§10.3 Protocol), and the
restore drill (§11.2).