docs(docs): RUST.md §10.9 R4.7 record (tool on the core, O10 parity 158/72, A.3 lines as printed, timing), CLAUDE.md map and command, PDF-FORMAT; TODO R4.7 closed; memory BDR-063, journal

This commit is contained in:
bchanot committed 2026-10-19 11:13:42 +02:00
1 parent 02ebf05195
commit 77e11a53e4
6 files changed
+106 -11

No files matched your search

+9 -5
View File
@@ -267,10 +267,11 @@ fallback text and the export reports `logo_failed`.
### Known limits
- pdf-lib is out of the import path (BLK-009): the browser and the
`report:compare` CLI read the attachment by byte scan, so a crafted object
stream is never inflated (tested with a 64 MiB bomb: milliseconds, no
memory growth). pdf-lib stays on the export side, on trusted inputs, and
- pdf-lib is out of the import path (BLK-009): the browser (the core's
reader in a worker since R4.3) and the `report:compare` tool (the same
reader, natively, since R4.7) read the attachment by byte scan, so a
crafted object stream is never inflated (tested with a 64 MiB bomb:
milliseconds, no memory growth). pdf-lib stays on the export side, on trusted inputs, and
in tests that inspect exported files. What remains before external users
(`docs/development/PDF_IMPORT_HARDENING.md` §5): a Worker or server-side
budget for any path that still parses PDF objects, the pdf-lib dependency
@@ -290,7 +291,10 @@ fallback text and the export reports `logo_failed`.
`pnpm report:compare <file.pdf | folder>...` reads the attachment of one or
more PDFs and prints it next to its v3 reading on the bundled reference
sheet. It writes no output file:
sheet (the core's `report-compare` binary since R4.7, `RUST.md` §10.9: the
R4 reader and the R2 layered reader, the same lines as the TypeScript tool
it replaces, three failure lines reworded as declared there). It writes no
output file:
- an envelope prints a header line `archive v1 (snapshot kept)` or
`archive v1 (snapshot rejected: <reason>)`;