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 -1
View File
@@ -255,7 +255,12 @@ feat/findings-tree-v2 merged (FindingsTreePicker tracked in HEAD); all work belo
- [x] R4.7b `src/bin/report_compare.rs` (feature `cli`, the only std::fs file): seed sheet from `supabase/seed/anatomical-sheets/equine/draft` (ref, document, map; no asset), arguments relative to `INIT_CWD`, folders expanded, size pre-check, exit code; `scripts/report-compare.sh` (rust-env + cargo run --release --features cli) behind the root `report:compare`; rust-check feature lists widened to `cli`
- [x] R4.7c cargo `tests/pdf_compare.rs`: the 230 O10 invocations in-process (158 undeclared rows exact: stdout, stderr, exit; 72 declared rows against the Rust wording per A.3 class), scenario PDF digests = `inputs`, the 11 scenario cases named for the ledger, one spawn of the real binary (usage, INIT_CWD, output = in-process); ledger rows 135–145 targets filled, `scripts/r4-ledger.mjs` regenerated
- [x] R4.7d (done 2026-10-19; STOP before R4.8) docs: RUST.md §10.9 (binary, parity 158/72, A.3 lines as printed, timing), CLAUDE.md (command, map), fixtures README if touched, memory journal; rust-check + pnpm check green; report, STOP before R4.8
- [ ] R4.8 deletions + docs + ledger census
- [ ] R4.8 deletions + docs + ledger census (owner go 2026-10-19, R4.7 validated; stop before R4.9)
- [x] R4.8a test read-back without pdf-lib and without the TS engine: `tests/helpers/pdfFile.ts` (reader of the writer's own files: objects, dicts, Flate streams via zlib, pages in order, Info, annots, XObject sizes), `pdfRead.ts` on it, `goldens.ts` (`readLinks` on it; `snapshotView` from the session's request SVGs captured at the rasteriser; `recordDrawing` dropped), `tests/helpers/pdfImport.ts` (`importReportFromPdf` = the module's `SheetHandle.import_pdf` + the worker's `pdfImportOf`; `importAttachment` = `sheet.ops.importArchive`), `@faunosteo/core-wasm/n-1` exports the frozen O11 scanner (`readAttachmentBytes`); suites rewritten: pdf.goldens (2×1 PNG decode read from the XObject), pdf.roundtrip (foreign PDFs = the r4/read fixtures), archive.envelopes + n-1.reader (N-1 scanner), migration.leaves, goldenReports, helpers/sheet (labels from `@/pdf/labels`), core-wasm pdf-export.session (request SVG vs the frozen R3 compose oracle)
- [x] R4.8b deletions after the consumer audit (grep census per package): `packages/pdf/**` (engine, tests, R3/R4 oracle generators, helpers), `apps/app/src/pdf/import.ts`, `apps/app/scripts/compare-reports.ts` + `compare/*`, `tests/unit/{scripts.compare,pdf.import,pdf.export.app,r4.compare-oracles,r4.tolerance-oracles,r4.writer-oracles}.test.ts`, `tests/helpers/r4-draw.ts` (what survives moves), `packages/core-wasm/tests/pdf-export.ts-engine.test.ts`; deps: `@faunosteo/pdf` (app, core-wasm), `pdf-lib` + `tsx` + app `report:compare` script (app), Dockerfile COPY line; `pnpm install` → lockfile without pdf-lib, @pdf-lib/*, @resvg/resvg-js; `@xmldom/xmldom` only under packages/anatomy (R5); `packages/anatomy` render untouched
- [x] R4.8c ledger: `scripts/r4-ledger.mjs` reads the frozen 301 cases from the committed TSV (no vitest run of deleted suites), re-derives dispositions (deleted suites → `deleted` with their cargo / vitest target, N-1 switch noted, read-back notes), census: every cargo target in `cargo test --list`, every vitest target in the live report, counts = 301; TSV regenerated
- [x] R4.8d non-regression proofs (owner §3): grep census test (no `@faunosteo/pdf`, `pdf-lib`, `@faunosteo/domain` import under apps/app/src, packages/core-wasm/src; the import worker path, the export session path and the root `report:compare` script named by a test), wasm:build, rust-check, pnpm check, pnpm check:all (app image, worker test + image), N-1 reader suites, O2/O3/O7/O8 fixtures still read, 612 leaves, rescue copies and quarantine suites
- [x] R4.8e (done 2026-10-19; STOP before R4.9) docs: RUST.md §10.10 (deleted files and packages, dependencies removed, Rust-only features, TS still legitimate with reasons, tests, risks, R5 prerequisites), CLAUDE.md (stack table, map, PDF conventions, workflow lines), DEPLOY.md (module size, rollback), PDF-FORMAT, PDF_IMPORT_HARDENING §5, TEST_STRATEGY, WORKSPACE, packages/README, fixtures README, CHANGELOG (Unreleased), README; memory (BDR, journal); report, STOP before R4.9
- [ ] R4.9 verifier + security + owner final acceptance → merge on owner signal
- [ ] outside R4 (owner 2026-10-17, non-blocking): worker container ignores SIGTERM (Docker kill after 10 s; chore, e.g. `init: true`); README test counter stale (367 vs 1,015)
- [ ] R5 curation pipeline + importer + upload tool: seed golden regenerated once (new `documentSha256`, D-R5), `packages/anatomy` + `packages/domain` deleted, docs map; all before Step 13