diff --git a/docs/development/PDF_IMPORT_HARDENING.md b/docs/development/PDF_IMPORT_HARDENING.md index 83995d6a..884d5c53 100644 --- a/docs/development/PDF_IMPORT_HARDENING.md +++ b/docs/development/PDF_IMPORT_HARDENING.md @@ -147,7 +147,7 @@ only; a refused import leaves the tab's texts in place: app suites | 4 | The 1 GiB module ceiling is a safety net, not a tab guarantee | BDR-058 | accepted temporarily | documented as such (RUST.md §10.3); the worker is terminated on timeout or crash, so the main instance never holds the hostile tree; closes with the device run (J1.9, J1.10: no reload, no memory warning) | | 5 | WebKit, a 50 MiB file: 145 MiB of content growth against 76 for the deleted TypeScript reader | BDR-059 | accepted temporarily | the owner kept the 50 MiB cap and refused a streaming scanner at R4.3; the worker reads the file in 1 MiB chunks into linear memory (one copy; the 324 MiB worker-read figure is gone); closes with J1.8 on the iPhone (the tab survives, time noted) or a later streaming scanner | | 6 | WebKit leak criterion (≤ 10 MiB recurring over ≥ 5 imports) not demonstrable headless | BDR-058, BDR-059 | accepted temporarily | headless WebKit has no forced GC; the one-page series levels off and a no-import control grows the same way with navigation (RUST.md §10.5); closes with J1.9 on the iPhone (six L imports, no reload) | -| 7 | Chromium per-export RSS growth ≈ 20 MiB on L (R4.6, same figures in the TypeScript control, plateau after 8) | BDR-063 | see RUST.md §10.11 | the R4.9 memory bench (`scripts/browser/r4-memory-bench.mjs`) separates the module's linear memory, the renderer RSS, the live canvases / images / blobs / object URLs, the transient peak and the four rest windows; verdict and class in RUST.md §10.11, row kept here for the register | +| 7 | Chromium per-export RSS growth ≈ 20 MiB on L (R4.6, same figures in the TypeScript control, plateau after 8) | BDR-063 | accepted temporarily | measured at R4.9 (RUST.md §10.11): the module's linear memory is flat after the init export, every canvas, Blob and object URL is released; a raster-only control with no core call grows the same 20 MiB per step to the same plateau (436 against 437 MiB after 16 steps, last five within 10 MiB): the browser's raster path, bounded; closes with J2.6 / J2.7 on the phones; correction only if a device shows it (one reused canvas, measured first) | | 8 | A hidden tab pauses the task timer: a hostile file keeps the worker busy in the background | RUST.md §10.5 | accepted temporarily | by design (plan §B.1.5 item 3: a phone that switches apps must not lose a legitimate import); the core's own bounds (item 2) cap the work; the worker dies with the tab | | 9 | Timers (10 s start, 20 s task) are hypotheses | RUST.md §10.5, plan §B.3 | blocking before merge | J1.12 on each device gives the slowest legitimate import; the rule (≥ 10 × that) confirms or moves the value before the merge | | 10 | OD-4: an overwritten duplicate key holding a lone surrogate escape is refused where JSON.stringify once dropped it | BDR-057, BDR-058 | fixed with proof | declared (plan §A.3), refused with `error_lone_surrogate`, the file untouched; cargo `pdf_import` (O8 declared rows), app `routes.HomeRoute.messages`; no Faunosteo build writes duplicate keys | @@ -162,4 +162,4 @@ only; a refused import leaves the tab's texts in place: app suites Owner reading at the R4.9 checkpoint: no item in this table is a code change pending in R4; items 3 and 9 are the device run (J1), items 12, 15 and -18 are the public-exposure gate, item 7 is answered by the bench. +18 are the public-exposure gate, item 7 is measured and bounded (the browser's raster path), its device check is J2.6 / J2.7.