docs(docs): RUST.md §10.10 R4.8 record (deleted, replaced, kept with reasons, census, non-regression table, risks, R5 prerequisites); CLAUDE.md, README, WORKSPACE, packages/README, TEST_STRATEGY, PDF-FORMAT, DEPLOY rollback R4 note and module size, hardening §5 pdf-lib closed, fixtures README, CHANGELOG R4 entry; TODO R4.8 closed; memory BDR-064, journal

This commit is contained in:
bchanot committed 2026-10-19 12:17:02 +02:00
1 parent e88769a707
commit f36dbdd4ae
13 files changed
+238 -62

No files matched your search

+6
View File
@@ -10,6 +10,12 @@ Versions follow [Semantic Versioning](https://semver.org/).
- Improve Safari/iOS PDF download reliability by attaching the download link to the document during activation and delaying object URL revocation by 30 seconds. The file name and content remain unchanged.
### Changed (Rust R4, PDF core, 2026-10-18 to 2026-10-19; on `feature/rust-r4-pdf-core`, not merged)
- **The PDF archives are read, written and checked by the Rust core** (`crates/core/src/pdf`, `docs/development/RUST.md` §10). Import: the attachment is located by the core's byte scan, inflated under the 16 MiB cap, probed as JSON and read by the R2 layered reader, inside a module worker created for the file and terminated after it (R4.3; the rescue copy follows the same path). Export: an incremental session in the page's engine composes each view, takes the browser's rasters one by one, decodes and writes each image on arrival, and hands the file out in parts (R4.6; no raster and no second copy of the file kept). `pnpm report:compare` runs the core's `report-compare` binary (R4.7). The PDFs are the ones the TypeScript engine wrote: same streams, images, links, metadata and attachment, pixel-identical through poppler on the reference reports; three declared differences only (`Producer`/`Creator` now `Faunosteo`, the attachment's report in contract key order, hostile files refused where the TypeScript repaired them).
- **Removed at R4.8** (2026-10-19): `packages/pdf` (the TypeScript engine and its tests), `pdf-lib`, `@pdf-lib/*` and `@resvg/resvg-js`, the TypeScript CLI `apps/app/scripts/compare-reports.ts`, the application's TypeScript import path and its dependency on `@faunosteo/domain`, the oracle generators. Kept: the frozen oracles, goldens and fixture PDFs, the frozen N-1 readers (`packages/core-wasm/tests/n-1`: the Zod schemas and the byte-scan reader of the R3 build), `packages/anatomy` and `packages/domain` for the curation pipeline until R5.
- Old browsers (Firefox 102 to 112, Safari 16.0 to 16.3) gain the import and the logos; module workers need Firefox 114 (OD-1). Memory: the import worker holds one copy of the file; the export's linear memory stays reserved in the page until reload (OD-2), about 62 MiB for a 44 MiB file; the per-export growth of the browser's own process in Chromium is an open reserve (BDR-063). Module 1,535,289 B raw, 519,795 B gzip (budget 600 KB).
### Changed (Rust R3, anatomy core, 2026-10-15; validated by the owner's LAN acceptance and merged 2026-10-17)
- **The editor canvas draws what the Rust core composes** (`crates/core/src/anatomy`): one SVG reader for every drawing the product shows (bounds checked by a markup scanner before any XML parser, the engine's allowlist matched the same way, a reference graph refusing cycles and expansions over 50,000 elements, a serialiser that re-reads to the same tree), the annotation layer and the view composition, reached through the new `view.canvas` operation and memoised per view. The canvas keeps its in-place selection styling, click and tooltip delegation. The browser-side denylist and the app's dependency on the TypeScript renderer are gone; the PDF engine and the curation pipeline keep the TypeScript renderer until R4 and R5.