diff --git a/.claude/memory/journal.md b/.claude/memory/journal.md index 71b01702..1a8a4093 100644 --- a/.claude/memory/journal.md +++ b/.claude/memory/journal.md @@ -300,3 +300,7 @@ Owner validated R4.0 plan with conditions (BDR-057, plan §A.6, LRN-059/060). R3 Owner validated R4.8; R4.9 go. check:all green ×2. Memory bench (5 dims, 3 engines, rest windows, Chromium pressure + raster control): linear flat after init, all canvases/Blobs/URLs released, Chromium 20 MiB/L export = browser raster path (control identical, plateau after 8) → accepted temporarily, BDR-065. PDF_IMPORT_HARDENING §6 (20 rows). J1/J2 re-issued (OD-6 list, J1.13, J2.12-14, report:compare dry run identical), kits regenerated outside repo. Gates: verifier ECARTS → no-feature core build fixed + rust-check guard; §6 J2 row; security BLOCK(1) gitleaks marker = owner; serve.mjs wildcard bind fixed (3 re-gates), CLI bounded read. EVAL-025, LRN-065. packages/pdf/node_modules rm refused by permissions → owner. No merge, no R5. + +## 2026-10-21 (R4.10 J1/J2 anomalies) + +Owner results: Chrome/Firefox/Brave/Android run, Safari iOS not; J1.7 FAIL Firefox+Brave, J2.3 FAIL, rest PASS declared without browser split (declared column only, device cells NON TESTÉ). A: repro headless → serve.mjs lacked nginx Cache-Control on /assets/ (Chromium refuses cached worker chunk offline); fixed, harness `r4-offline-import.mjs` 6/6, negative run exit 1; picker freeze not reproducible headless → discriminating step in `R4_MINI_RECETTE.md`. B: nologos reference archive has null logo slots; editor export always uses bundled `loadBranding()` (same at 66909b6); J2.3 expected result wrong since R4.6 → owner decision, no code change. RUST.md §10.12, LRN-066. Gates dispatched. No merge, no R5. diff --git a/.claude/memory/learnings.md b/.claude/memory/learnings.md index 934825cc..9ef3a58d 100644 --- a/.claude/memory/learnings.md +++ b/.claude/memory/learnings.md @@ -498,3 +498,9 @@ Apply: when an implementation is swapped under a test that spied the old one, re - Refusing wildcard binds by string set fails: getaddrinfo accepts `0`, `0x0`, `0.0.0`, `0::`, `::ffff:0.0.0.0`, `::%lo`. Apply: `dns.lookup(host,{all:true})` → refuse if any result in `BlockList(0.0.0.0, ::)` (scope stripped, type from `net.isIPv6(address)`), listen on resolved literal, re-check `server.address()` (its `family` is 'IPv6', lookup's is 6). - Opening before stat-checking type blocks on a FIFO (O_RDONLY): stat path first, then open, then fstat recheck. - Browser RSS growth across exports: run the same raster steps with no core call (control) in the same page; same slope + same plateau = browser cache/allocator, not app retention. FinalizationRegistry counters + createObjectURL/revoke ledger + CDP `Performance.getMetrics` / heap census separate page-held objects from renderer memory; `Memory.simulatePressureNotification critical` tests reclaimability. + +## LRN-066 | 2026-10-21 | Recette server must mirror production cache headers; headless never proves native dialogs + +- Offline import (J1.7) failed on owner's Brave + Firefox but harness server `serve.mjs` sent no `Cache-Control` on `/assets/` while nginx sends `immutable`: Chromium refuses stale cache entry offline (`net::ERR_ABORTED`), Firefox offline mode serves it anyway, WebKit headless never serves worker script from cache offline. Apply: any test server standing in for prod copies prod's cache + CSP lines verbatim and the harness asserts them (`r4-offline-import.mjs`); test "offline" two ways (Playwright `setOffline` + server killed), they differ per engine. +- Headless browsers replace OS file dialogs: a frozen `` picker cannot be reproduced or excluded headless. Apply: write a discriminating human step (Ctrl+O in empty tab offline, kit copied local) instead of claiming a cause. +- Expected recette result written from an oracle fixture (`nologos` = fetch 404 mode) described the fixture, not the product rule (editor export always embeds bundled branding; archived branding only via `export_from_envelope`). Apply: before writing an expected result, trace which code path the recette step actually runs.