Record the 50-round route-D fidelity report

This commit is contained in:
gloamxun committed 2026-10-28 12:19:20 +08:00
1 parent d4c16b69b4
commit f39733a283
1 file changed
+63
+63
View File
@@ -0,0 +1,63 @@
# Route-D 50-round fidelity report
## Status
The 50-round goal window ends with the goal **not fully complete**. The current
PDF is the best verified build; no unsafe layout experiment was kept.
## Verified artifacts
- `a_template_for_the_arxiv_route_d_fixed.pdf` — 3 pages, Times body,
CMMI/CMSY math, author-year references with DOI, centred table, framed rule
figure, ORCID badges.
- `a_template_for_the_arxiv_comparison.pdf` — TeX Live vs route-D side by side.
## Metrics
- Workspace tests: **1084 passed / 0 failed**
- 438 engine / 451 core / 67 server / 71 v1 / 42 oracle / 10 route-D
integration / 4 / 1
- Fidelity harness: 3 vs 3 pages, 1246 vs 1251 words, ratio **0.8514**
- Formula band ink bbox:
- TeX `x=184..519, y=230..269`
- route-D `x=201..519, y=241..274`
- Preview latency on the release binary:
- warm 31–50 ms
- cold 560 ms in the final measurement (cold starts vary with project
content and cache state)
## Completed fidelity work
- page frame, running heads, title rules, arXiv title/author layout
- Times Roman/bold/italic metrics; mixed Liberation Serif text with CMMI/CMSY
Type1 math in the same PDF
- real lipsum package text, which fixed the page flow and float placement
- author-year `.bib` citations, DOI suffix, Unicode table cells
- centred table with booktabs rules
- framed raster rule figure; PNG/JPEG images in PDF and SVG preview
- ORCID green badge in PDF XObjects and SVG data URIs
- per-page preview patches and incremental relayout
## Residual gaps
1. 2.1 paragraph is 7 lines vs TeX 6. The final candidate table contains only
`(lines=7, cost=2348)`; a six-line path is not reachable under the current
Times metrics. Glue, tolerance, line penalty and line width experiments were
reverted because they either did nothing or collapsed spaces.
2. Formula body is about 17 pt narrower and 11 pt lower than TeX. The equation
tag itself is within 1 pt horizontally. This needs displaystyle spacing /
fraction-density work, not another tag-layout change.
3. Page-1 word glue is about 2.1 pt vs TeX 2.5 pt.
4. General float placement is not equivalent to TeX; the arXiv sample's
figure/table order is correct.
5. ORCID is a generated green `iD` badge, not the original vector logo.
## Verification commands
```bash
cargo test --workspace --offline
python3 scripts/tex-fidelity.py \
--reference a_template_for_the_arxiv_texlive.pdf \
--candidate a_template_for_the_arxiv_route_d_fixed.pdf \
--json /tmp/fidelity.json
```