chore(memory): R4.3 closed in the TODO; journal
This commit is contained in:
1 parent
b08373a89b
commit
57125e8975
2 files changed
+6
-5
No files matched your search
@@ -286,3 +286,4 @@ Owner validated R4.0 plan with conditions (BDR-057, plan §A.6, LRN-059/060). R3
|
||||
- 2026-10-18 owner validated R4.1 (fixtures 5.92 MB kept incl. real raster; gitleaks exception OK if narrow; decoy-first OD-4 kept in register, risk to explain before R4.3; UPNG/text oracles kept; headless OK for R4.1). Go R4.2 (reader, inflate, JSON pre-scan, UTF-8 parity, wasm facade, memory protections). Hard stop end of R4.2 before any import switch; budgets whole-browser; gains compared on identical perimeters. No merge, no R5, no release/prod.
|
||||
- 2026-10-18 R4.2 done on feature/rust-r4-pdf-core (21d34fb..): pdf::read (scan, strings, stamp, inflate, probe), json_js, import_pdf, SheetHandle.import_pdf; O7 144/144, O9 38/38, O8 51 (4 declared: 3 OD-4 lone surrogate in overwritten dup value, 1 OD-3 values-1m), reference PDFs all import, through wasm too. OD-3: MAX_JSON_VALUES 400,000 (10 × CAP envelope 39,652), rescue copy guarded, --max-memory 1 GiB trap proven; hostile 16 MiB: 784 MiB → 16 MiB linear. Security gate BLOCK(1) (count stopped past depth cap → bypass) fixed 593893a, re-gate PASS. Browser run 3 engines: 666/678 agree, W4 max 68 MiB, W2 46 ms; open: after-GC residue 11.7 MiB first import (one-time), worker holds file twice on 50 MiB inputs (WebKit 324 MiB). Module 422 KB gzip. STOP before R4.3: owner to confirm thresholds.
|
||||
- 2026-10-18 owner validated R4.2 (BDR-058): thresholds 400,000 / 1 GiB final; R4.3 go on feature branch; app import switch gated on the 20–50 MiB file memory fix (WebKit 324 vs 76 MiB) re-measured on 3 engines, and leak series (init apart, ≥ 5 imports, ≤ 10 MiB recurring). LRN-061, LRN-062 written. Next: R4.3a bytes API + streaming read, worker protocol, HomeRoute, CSP proof, series measurements.
|
||||
- 2026-10-18 R4.3 done on feature/rust-r4-pdf-core (52471db..b08373a): FileBytes sink + import_pdf_bytes/restore_copy_bytes; worker protocol v1 (task/chunk/ack/end → ready/result/failed), page reads file in 1 MiB BYOB chunks (amendment B.1.5: WebKit worker file read ≈180 MiB), client timers + settle-once + terminate, controller, HomeRoute switched, B.1.8 messages pinned on O8/O7/O2/O3 via in-process worker, 6 suites migrated (458 app tests). Security gates: reader PASS after fix, worker PASS 7 LOW → hardenings 8ddf185. Browser proofs on dist: 666/678, W5 0 long tasks, CSP with/without OK; 50 MiB WebKit 145 vs TS 76 (was 324); leak series Chromium OK, Firefox sawtooth reclaimed, WebKit grows with same-tab navigation (control too). DEPLOY note, R4_J1.md + kit script. Open for owner: WebKit large-file gate, WebKit leak criterion. Next: owner decision, J1 on devices.
|
||||
@@ -224,11 +224,11 @@ feat/findings-tree-v2 merged (FindingsTreePicker tracked in HEAD); all work belo
|
||||
- [ ] R4.2e follow-ups for R4.3: worker holds the File ArrayBuffer and its linear copy together (50 MiB file: WebKit content peak 324 MiB vs 76 TS) → release the buffer after the glue copy or read in chunks; after-GC residue 11.7 MiB first import (one-time, +1.9 then −0.2 on repeats) → owner decides the §B.3 criterion; `scripts/browser/lib/import-inputs.mjs` shortcut: copy of import-baseline's listing, fold into one module when import-baseline is retired (R4.8)
|
||||
- [x] R4.2f (done 2026-10-18; RUST.md §10.3 + §10.4; STOP for the owner before R4.3) record: RUST.md §10.3 (reader, parity, budgets, thresholds, residual risks), decoy-first (OD-4) risk explanation + proof it blocks no legitimate Faunosteo document, ledger `ported` targets exist, suites green (rust:check, wasm:build, check); STOP for the owner before R4.3
|
||||
- [ ] R4.3 import worker + rescue copy (B.1.5, OD-1 applied, browser proof per slice from here); owner go 2026-10-18 (BDR-058): switch gated on large-file memory fix + leak series
|
||||
- [ ] R4.3a bytes API: `PdfBytes` sink (reserve ≤ 50 MiB, push chunks) + `SheetHandle.import_pdf_bytes` / `restore_draft_bytes` (strict UTF-8, one BOM, OD-3 guard) so the worker streams `file.stream()` into linear memory, one copy, no JS ArrayBuffer of the file, no JSON wrapping of the copy; Node + browser re-measure of 20–50 MiB files on 3 engines (same perimeter as R4.2e)
|
||||
- [ ] R4.3b worker + client (`apps/app/src/core/worker/`): protocol v1 (B.1.5 items 1–7), controller module-level, timers (start, task 20 s paused when hidden), settle-once, terminate always, failure classification (worker_unavailable / crashed / timeout / read), compiled Module posted, static glue, prefetch after editor load; vitest in-process via spawn seam; no `error` event masked
|
||||
- [ ] R4.3c HomeRoute on the controller (routing on first KiB + size pre-checks unchanged), rescue copy through the worker, B.1.8 messages (OD-5), hydrateImport from the core output; route tests per throwable and phase, settle-once, result after timeout, error after result, unmount, second pick, main runtime untouched; message test over O2/O3/O8/hostile; 612 leaves through the worker; v2/v3 imports preserved
|
||||
- [ ] 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)
|
||||
- [ ] R4.3e 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)
|
||||
- [x] R4.3a bytes API: `PdfBytes` sink (reserve ≤ 50 MiB, push chunks) + `SheetHandle.import_pdf_bytes` / `restore_draft_bytes` (strict UTF-8, one BOM, OD-3 guard) so the worker streams `file.stream()` into linear memory, one copy, no JS ArrayBuffer of the file, no JSON wrapping of the copy; Node + browser re-measure of 20–50 MiB files on 3 engines (same perimeter as R4.2e)
|
||||
- [x] R4.3b worker + client (`apps/app/src/core/worker/`): protocol v1 (B.1.5 items 1–7), controller module-level, timers (start, task 20 s paused when hidden), settle-once, terminate always, failure classification (worker_unavailable / crashed / timeout / read), compiled Module posted, static glue, prefetch after editor load; vitest in-process via spawn seam; no `error` event masked
|
||||
- [x] R4.3c HomeRoute on the controller (routing on first KiB + size pre-checks unchanged), rescue copy through the worker, B.1.8 messages (OD-5), hydrateImport from the core output; route tests per throwable and phase, settle-once, result after timeout, error after result, unmount, second pick, main runtime untouched; message test over O2/O3/O8/hostile; 612 leaves through the worker; v2/v3 imports preserved
|
||||
- [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.5 serialiser (pdf-writer, self-check, from_envelope)
|
||||
|
||||
Reference in new issue
Block a user