Add route-D web contract and experiment matrix

Route-D preview JSON now reports durationMs on the flat, project and edit
paths, and project preview/PDF responses carry X-Preview-Engine (route-d or
v1), including cache hits and silent fallback. The server tests assert the
headers, the duration field and both PDF engines.

docs/WEB_ROUTE_D_EXPERIMENT.md records the audit verdict, the initial contract
probe, the supported/gap matrix, the three-project trial plan and the
prioritised backlog; ROUTE_D_STATUS.md links to it and the test counts move to
1063.
This commit is contained in:
gloamxun committed 2026-10-27 12:23:04 +08:00
1 parent c49afbdecb
commit 1058122388
7 files changed
+190 -20

No files matched your search

+5 -2
View File
@@ -16,13 +16,13 @@ cargo test --workspace --offline
or run `./scripts/verify-route-d.sh`, which executes both.
The workspace currently passes **1062 tests**:
The workspace currently passes **1063 tests**:
| Suite | Tests |
| --- | --- |
| route-D unit (engine) | 442 |
| engine binary unit | 429 |
| server integration | 63 |
| server integration | 64 |
| v1 integration | 71 |
| pdfLaTeX oracle | 42 |
| route-D integration | 10 |
@@ -58,6 +58,9 @@ documents reports 0 warnings and under 1.5 s per preview.
- Geometry-less documents default to Letter (pdfLaTeX's default), not the old
v1 A4 default.
The web experiment matrix, contract findings and trial plan live in
`docs/WEB_ROUTE_D_EXPERIMENT.md`.
## Implemented areas
- **Paragraphs/pages**: Knuth-Plass breaking with prefix-sum candidates,