diff --git a/.claude/memory/journal.md b/.claude/memory/journal.md index 37e5d1ae..f1e9b478 100644 --- a/.claude/memory/journal.md +++ b/.claude/memory/journal.md @@ -264,3 +264,4 @@ Owner brief: maintenance before R3. bugfix/r2-maintenance: rustls 0.23.46 (4 adv ## 2026-10-15 (Rust R3 delivered) feature/rust-r3-anatomy-core: plan rev 2 after 3 challengers (32 findings; blocker = roxmltree recursion, measured overflow < 3,000 levels on 1 MiB → markup prescan before any parse). Freeze first: O1 canvas trees, O2 layer order, O3 36 highlights, O4/O5 36 hostile + 10 floods + 4 product SVGs, Chromium refs. Rust reader (prescan, tree, allowlist, reference graph, serialiser), layer, canvas/highlight compose, `view.canvas`; app canvas switched, denylist + anatomy dep deleted. All oracles green, mutation-checked; Chromium DOM = O1, 30/30 pixel-identical; module 396 KB gz (+56). check:all green. Gates dispatched; stop for owner validation, no merge, no R4. +- Same day: gates. Verifier CONFORME 11/11. Security PASS + MEDIUM (prescan closer searched inside its opener, `` hid 5,000 levels → stack overflow) fixed; pass 2 PASS (4M differential docs) + LOW url( whitespace fixed; verifier re-run CONFORME. Final check:all green, Chromium 30/30 identical. BDR-052/053, LRN-056, EVAL-022. Stop: owner LAN validation. diff --git a/.claude/tasks/TODO.md b/.claude/tasks/TODO.md index 782e8335..f19bf5f2 100644 --- a/.claude/tasks/TODO.md +++ b/.claude/tasks/TODO.md @@ -196,7 +196,8 @@ feat/findings-tree-v2 merged (FindingsTreePicker tracked in HEAD); all work belo - [x] R3.3 app switch: canvas on view.canvas, denylist + anatomy dependency removed, hostile bundled sheet test (09a6cf7); app 352 - [x] R3.4 Chromium 156: live DOM = O1 (main, head), 30/30 screenshots pixel-identical, timings vs develop baseline (editor 503 vs 476 ms, detail 143 vs 125 ms at CPU ×4), 50 cycles heap +0.72 MiB nodes +0; CSP proof on the image ALL PASS; owner LAN run pending - [x] R3.5 docs (RUST.md §9, CLAUDE.md, CHANGELOG, PDF_IMPORT_HARDENING, packages/README) (d6b5edb) - - [ ] R3.6 gates: check:all green 1 min 49 s; verifier + security dispatched; stop for owner validation (no merge, no R4) + - [x] R3.6 gates: verifier CONFORME 11/11 ×2; security PASS ×3 (MEDIUM prescan closer desync + 3 LOW fixed: href/url( Unicode spaces, root painting attrs); check:all green 1 min 56 s; Chromium final 30/30 identical, DOM = O1 + - [ ] R3 owner validation (LAN: TEST FONCTIONNEL + TEST GRAPHIQUE), then merge on the owner's go; R4 not started - [ ] R3 follow-ups (owner): EN name of an unnamed trigger (= FR view name since Step 5); degraded canvas notice wording for a rejected drawing; Firefox run; pin roxmltree with the iterative parser when released; engine switch to the Rust reader at R4 closes the PDF-path `` item - [ ] R4 pdf core: reader (Web Worker, BLK-009 browser measurements) + writer (`pdf-writer`, Std14 AFM, draw log; lines/rects/colours golden frozen with the TS engine first, D-R2) + `report-compare` tool; `packages/pdf` deleted; N-1 scanner reads R4 PDFs - [ ] 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 diff --git a/docs/development/RUST.md b/docs/development/RUST.md index 7653c453..8832f1f1 100644 --- a/docs/development/RUST.md +++ b/docs/development/RUST.md @@ -770,7 +770,7 @@ imports it and restyles `data-state` in place as before. - Shipped wasm (`packages/core-wasm/tests/anatomy.test.ts`): the corpus plus floods (99,000 nesting levels, 20,001 nodes, 150,000 `<` in a comment, 257 attributes, 2 MiB + 1, a 12 × 20 `` chain, 1.9 MiB of `>`), each in a - fresh instance (49 cases): a closed outcome, no trap, slowest 24.2 ms, largest linear + fresh instance (50 cases): a closed outcome, no trap, slowest 24 to 37 ms over runs, largest linear memory growth 10.1 MiB. - Runtime: the `SheetHandle` constructor's closed refusal (`: ` from a plain `Error`) is `invalid_sheet`; any other throw (RangeError, @@ -814,7 +814,7 @@ imports it and restyles `data-state` in place as before. | Measure | Value | |---|---| -| shipped module | 1,188,573 B raw, **395,701 B gzip -9** (+55.8 KB over R2; budget 600 KB) | +| shipped module | 1,188,310 B raw, **395,613 B gzip -9** at 23895b9 (+55.7 KB over R2; budget 600 KB; the app image's build root gives 395,541 B) | | sheet handle with the drawing read (Node) | 8 to 10 ms | | `view.canvas` main, first (Node) | 1.2 to 1.4 ms; head warm median 0.85 ms; 143 KiB of SVG | | Chromium, preview build, CPU × 4, medians of 3 | editor to canvas 503 ms (476 ms before R3); detail open 143 ms (125 ms before R3, runs 109 to 157); browser parse + import of the canvas text 21 ms (22 ms) |