diff --git a/.claude/memory/decisions.md b/.claude/memory/decisions.md index 248c4315..f4dc4dd6 100644 --- a/.claude/memory/decisions.md +++ b/.claude/memory/decisions.md @@ -457,3 +457,9 @@ Context: R4.3 checkpoint report (RUST.md §10.5): WebKit 50 MiB file 145 MiB vs Decision: both WebKit reserves accepted provisionally; J1 device acceptance launched on `feature/rust-r4-pdf-core`. PDF cap stays 50 MiB; no streaming scanner in R4.3. Leak criterion unchanged (≤ 10 MiB recurring over ≥ 5 imports after init), same-page measures separated from navigation ones, a no-import control kept; any device overshoot documented and analysed before final acceptance. OD-3 400,000 / 1 GiB, copy cap 16 MiB, worker protections, validated messages kept. J1 focus: Safari iOS, large PDFs, repeated imports, timers. Deliverable: PASS / FAIL / NON TESTÉ per device and scenario, gaps, residual risks, argued recommendation. Not a final validation of R4.3; headless never sufficient; TS reader kept; no merge; stop at J1, no R4.4. Alt rejected: streaming scanner now; lowering the PDF cap; blocking J1 on the WebKit growth. Status: active. Kit generated at ../faunosteo-j1-kit; results template docs/development/R4_J1_RESULTS.md; waiting for the owner's device run. + +## BDR-060 | 2026-10-18 | R4.3 accepted provisionally; iPhone J1 blocking before any R4 merge; R4.4 go + +Context: J1 partial (computer run, no failure; iPhone unavailable, deferred). Owner decision 2026-10-18. +Decision: R4.3 provisionally accepted on the branch, only for scenarios actually run; Safari iOS J1 mandatory before any merge of R4 into develop; BDR-058/059 WebKit memory reserves stay open; headless ≠ device. R4.4 authorised on the same branch per plan: layout, text, AFM, dates, DrawLog, validated against O1, O4, O5 and the Step 6 goldens. No regression on R4.3: reader, worker and memory guarantees untouched unless demonstrated need + prior validation. Automated tests and parity checks at every step; TS reader kept until R4.8. End of R4.4: detailed report (changes, tests, parity, performance, risks, decisions), stop before R4.5. +Status: active. diff --git a/.claude/tasks/TODO.md b/.claude/tasks/TODO.md index 877b8fd7..4f1dbf81 100644 --- a/.claude/tasks/TODO.md +++ b/.claude/tasks/TODO.md @@ -230,7 +230,10 @@ feat/findings-tree-v2 merged (FindingsTreePicker tracked in HEAD); all work belo - [x] R4.3d browser proofs on the production build (SHEET_BUNDLE=draft dist, serve.mjs CSP): import-baseline on the app (3 engines) vs TS baseline; CSP with and without 'wasm-unsafe-eval'; leak series per owner §2 (init cost apart, ≥ 5 imports + idle, ≤ 10 MiB recurring, GC fluctuations repeated); peaks kept; WebKit repetition on dense documents (error events captured) - [x] R4.3e (done 2026-10-18; two WebKit points for the owner: 50 MiB file 145 MiB vs TS 76, leak series not demonstrable headless) record RUST.md §10.5, DEPLOY note (worker CSP, Firefox 114 line per OD-1), PDF_IMPORT_HARDENING §5 results, J1 procedure; announce "TEST FONCTIONNEL DISPONIBLE" with the 7-point checkpoint (BDR-058) - [ ] J1 owner checkpoint (plan A.4) - - [ ] R4.4 layout → draw log + - [ ] R4.4 layout → draw log (owner go 2026-10-18, BDR-060; stop before R4.5) + - [ ] R4.4a `pdf/write/{text,afm_data,dates}.rs`: safe_text (O4 ranges), js_upper (O4 runs/special), js_trim/whitespace, measure = units × (size/1000) with WX||250 + KPX over WinAnsi bytes (O5 tables generated by scripts/r4-afm-data.mjs), wrap_lines (JS \s+), format_date fr/en (O6 grid, years 0-99 → 19xx per A3); cargo tests on O4 measure groups, wrapLines, safeText, upper, O5 widths, O6 + - [ ] R4.4b `pdf/write/{mod,input,draw_log,layout/{header,footer,observation,conclusion}}.rs`: ExportInput (ts-rs) checks (branding/labels, assert_snapshot + read_svg per asset, sheet mismatch, caps), rasters by key + PNG dims (IHDR only; gate at R4.5), DrawLog ops at full precision in TS call order (footers after all pages), links, embeds, warnings; cargo O1 12 logs exact, step6 text/images goldens (24) derived + - [ ] R4.4c record RUST.md §10.6 (modules, parity, declared differences, performance), ledger targets, suites green, STOP before R4.5 - [ ] R4.5 serialiser (pdf-writer, self-check, from_envelope) - [ ] R4.6 app export (session in main instance, owner phone check of L) - [ ] R4.7 report-compare in Rust