diff --git a/.claude/memory/decisions.md b/.claude/memory/decisions.md index f9fa7c29..1183172e 100644 --- a/.claude/memory/decisions.md +++ b/.claude/memory/decisions.md @@ -501,3 +501,11 @@ Context: owner verdict after R4.10 gates (verifier 8/8 + one formal scope gap = Decision: J1.7 functional PASS, perf reserve (~60 s OS picker offline, same via Ctrl+O outside app); M1/M2 PASS ~60 s; M3 NON TESTÉ = complementary non-blocking, never PASS without run; M4/M5/M6 NON TESTÉ; no app work on 60 s without Faunosteo-specific proof; Cache-Control fix kept. J2.3 option 1 final: editor export = current branding even for logo-less archive; corrected expected result validated; data/oracles/goldens unchanged. ZenQuality logo bundle dcc7940 validated (same image, CSP intact, no zenquality.fr dependency); reintroduction tests + CSP proof (every violation fails, except refusal a negative test expects) kept. `[gated 2026-10-18]` marker valid: marker needs explicit owner decision, writing delegable (Claude wrote it under authorization). R4.8 authorization = exactly 23 test files of 0dc1ba2 (21 = census error, EVAL-025 superseded on count); no further deletion under it. Safari iOS NON TESTÉ until real iPhone results; simulator never memory proof. Recorded: RUST.md §10.11 (marker wording, count) + §10.12 D; R4_MINI_RECETTE, R4_J1/J2 + RESULTS. LEDGER.tsv untouched (generated byte for byte by `scripts/r4-ledger.mjs`). Status: active; R4 close still waits on Safari iOS real device; no merge, no R5, no release. + +## BDR-067 | 2026-10-21 | R4 closed: owner accepts J1/J2 on computer + Android + real iPhone, validates R4.12, authorizes merge into develop with named residual risks + +Context: owner brief « Validation finale de R4 et autorisation de fusion » after R4.12 checkpoint (verifier CONFORME 9/9, security PASS 3 LOW). +Decision: J1 + J2 declared PASS as a whole on iPhone Safari iOS (no per-check split, no model/version/timing/memory given → recorded as missing, never invented); J1.7 PASS w/ picker-delay reserve; J2.3 PASS under approved rule (new export = current branding); M3 NON TESTÉ non-blocking. R4.12 D1/D3/D6 validated. Residual risks accepted for develop merge, open until own deadline (never closed by merge): base image by tag not digest + cosign unchecked (before prod image), semgrep partial parse 2 test files, guardrails WARN `species_select_active` outside diff, device timings/memory unreported (hardening §6 items 5/6/7/9/20), J1.7 cause unknown, BDR-063 Chromium raster growth, D2/D4/D5 deferred. Merge = `gitflow finish` after usual final checks; blocking defect → stop and report. +Alternatives: wait for per-check iPhone measures (rejected by owner: device-level declaration suffices for merge, measures = follow-up); regenerate goldens on any gap (forbidden). +Recorded: RUST.md §10.15 (risk table + checks), PDF_IMPORT_HARDENING.md §7, R4_J1/J2_RESULTS + MINI_RECETTE, CHANGELOG headers, TODO R4.13. +Status: active; limits stay: no release 0.2.0, no deploy, no DNS/server change, no R5 before next owner signal, D2/D4/D5 deferred. diff --git a/.claude/tasks/TODO.md b/.claude/tasks/TODO.md index 9c910370..ebc6623a 100644 --- a/.claude/tasks/TODO.md +++ b/.claude/tasks/TODO.md @@ -203,7 +203,7 @@ feat/findings-tree-v2 merged (FindingsTreePicker tracked in HEAD); all work belo - [x] R3 owner-requested audit of 0279953 (2026-10-15/16): not satisfactory (unsaved draft promise, 4 dead retries, recovery dead end) → fixed 6371523 (BDR-055, BLK-011); verifier CONFORME 12/12, security PASS; residuals in BLK-011 - [x] R3 final checks 2026-10-17 (owner brief 2026-10-16): rescue copy importable from Home, trapping draft held (no reload loop), replace confirmation, guard app-wide → 9bd9aca (BDR-056, BLK-012); verifier CONFORME 10/10, security PASS, check:all green; residuals in BLK-012 - [ ] R3 follow-ups kept by the owner (2026-10-15): worker TLS exercised against a real HTTPS endpoint before the deployment that needs it; roxmltree limits + SVG prescan (pin the iterative release when published); Firefox/WebKit check; SVG references across drawings scoped per view before community uploads (Step 13); WASM size margin (396 of 600 KB) before R4; TypeScript PDF sanitiser still present until R4 - - [ ] 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 + - [x] R4 pdf core (CLOSED 2026-10-21: owner J1 + J2 on computer, Android and real iPhone declared passed, R4.12 validated, merged into develop; RUST.md §10.15): 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 - [x] R4.0 plan (owner go 2026-10-17, arbitrations A1-A13): `.claude/tasks/plans/2026-10-17-rust-r4-pdf-core.md` rev 2 after 3 challengers (correctness 6 major, robustness 10 major, simplicity 3 major; none fatal) on chore/rust-r4-plan; Playwright Firefox 157 installed + proven, WebKit 27.2 downloaded (owner: `sudo apt-get install libevent-2.1-7t64 libmanette-0.2-0`); validated by the owner 2026-10-18 with conditions (plan §A.6, BDR-057) - [x] R3 closed checked 2026-10-18 (8df964b on develop, branch gone); chore/rust-r4-plan finished into develop ae17097 (owner signal 2026-10-18) - [x] Safari PDF download fix (bugfix/pdf-download-webkit, 2b8000e + docs + CHANGELOG in owner wording): owner iPhone run 2026-10-18 all OK (several views, warnings alert, prompt open > 30 s); check green (1015 tests, typecheck, lint, build); merged fcff92b @@ -290,17 +290,18 @@ feat/findings-tree-v2 merged (FindingsTreePicker tracked in HEAD); all work belo - [x] R4.11c (c9dab63) react-router-dom ^7.18.4 (apps/app/package.json + lockfile) - [x] R4.11d (a604c07) worker TLS test: an in-process rustls server with a self-signed certificate (rcgen, dev-dependency) must be refused by `HttpBackend` (certificate validation active); honest limit: proves validation, not the emSign distrust itself - [x] R4.11g owner decisions on the Context7 review (2026-10-21): D1 distroless debian13 now, D3 safeNextPath now, D6 DEPLOY http2 now; D2 outline-hidden + D5 MotionConfig reducedMotion → accessibility chantier (not in R4); D4 config chores → maintenance backlog (below); no major upgrade - - [ ] R4.12 pre-merge fixes D1 / D3 / D6 (one commit each; owner 2026-10-21; then STOP at the pre-merge checkpoint) + - [x] R4.12 pre-merge fixes D1 / D3 / D6 (one commit each; owner 2026-10-21; then STOP at the pre-merge checkpoint; owner validated 2026-10-21) - [x] R4.12a (51a5a80) D3 `safeNextPath`: the returned value is resolved again against the sentinel origin and must stay same-origin and not start with `//` (dot segments `/..//`, `/%2e%2e//`, `/..\\`, tab inside `..`), else fallback; tests: dot segments, double slashes, backslashes, schemes, encodings, valid destinations unchanged; consumer test through LoginRoute (MemoryRouter) with `next=/..//evil.test` → /app - [x] R4.12b (49b1849; e2e:avatar 5/5 on the new image) D1 worker runtime `gcr.io/distroless/static-debian13:nonroot` (provenance: GoogleContainerTools distroless, cosign-signed; same user 65532, no shell, static); worker:test, worker:image `run --check`, sandbox tests; Dockerfile only - [x] R4.12c (60faac8; nginx 1.24 rejects `http2 on`: both forms documented, nginx -t on 1.24 and 1.31) D6 DEPLOY.md: `listen 443 ssl http2;` → `listen 443 ssl;` + `http2 on;` (nginx ≥ 1.25.1 noted); nothing else in the runbook - [x] R4.12d (verifier CONFORME 9/9; security PASS, fuzz 218 inputs 0 escape, 3 LOW; check:all green 18:55:30) gates: check:all on the final state, pnpm audit --prod, cargo deny, worker tests, navigation suites, goldens/oracles unchanged; contract + fresh verifier + security gate; RUST.md §10.14, CHANGELOG, memory → STOP pre-merge checkpoint + - [x] R4.13 close (owner 2026-10-21 « Validation finale de R4 et autorisation de fusion »): recette results consolidated as declared (iPhone Safari iOS J1 + J2 PASS as a whole, missing details listed not invented; J1.7 PASS w/ reserve; J2.3 PASS under the approved rule; M3 NON TESTÉ), RUST.md §10.15 (residual risks table, deadlines), PDF_IMPORT_HARDENING.md §7 (items 3/19 unblocked, 5/6/7/9/20 still open), CHANGELOG headers; final checks on 22bbfb4: check:all green 22:15:50, audit --prod clean, gitleaks 111 commits clean (tree: git-ignored `.env.worker` only), no local path / personal id, merge-tree clean, goldens/oracles/digests untouched, 51 deletions all in 0dc1ba2; then `gitflow finish` → develop (no-ff), branch deleted. Not done: release 0.2.0, deploy, DNS, R5, D2/D4/D5 - [ ] accessibility chantier (owner 2026-10-21, after R4, needs a visual recette): D2 `focus-visible:outline-none` → `outline-hidden` in the 13 files listed in `.claude/audits/CONTEXT7-2026-10-21.md` (keyboard focus, forced-colors, graphic coherence); D5 `` at the root (Dialog scale, ObservationCard height animations, transitions) - [ ] maintenance backlog (owner D4, accepted in principle, not scheduled): apps/app/vitest.config.ts dead `coverage` block (no @vitest/coverage-v8); tests/setup.ts → `@testing-library/jest-dom/vitest`; eslint.config.js `tseslint.config` → `defineConfig`; ui/Input, Select, Textarea `forwardRef` → ref prop (React 19); authStore.ts:95-97 stale deadlock comment; no major upgrade (react-router 8, zod 4, TS 7, vite 8 + vitest 4, ESLint 10, PGlite 0.5 stay out) (`.claude/audits/CONTEXT7-2026-10-21.md`: distroless debian13, Tailwind outline-hidden, safeNextPath dot segments, dead coverage block, jest-dom entry, tseslint defineConfig, forwardRef, DEPLOY http2, reduced motion) → nothing changed until decided - [x] R4.11e checks (rust-check, deny advisories ok, audit --prod clean, app 429, check:all green 17:27:54, goldens untouched, criterion 11 generic; gates dispatched): rust-check, `cargo deny check advisories` clean, `pnpm audit --prod` clean, app suite (routing, auth, redirects), check:all (images, sandbox), goldens and oracles unchanged (git status), contract + fresh verifier + targeted security gate; contract criterion 11 regex made generic (owner §6) - [x] R4.11f docs (RUST.md §10.13, CHANGELOG, contract 1700): RUST.md §10.13 table (advisory, old, new, audit, residual), CHANGELOG, DEPLOY if the TLS note changes; memory; checkpoint table → wait for the owner's signal - - [ ] R4.10m security reserves found by the R4.10l checks, pre-existing, not fixed (dependency upgrades = owner decision, outside R4.10 scope): RUSTSEC-2026-0382 rustls-webpki 0.103.15 + RUSTSEC-2026-0381 webpki-roots 1.0.9 (worker → ureq; `cargo update -p rustls-webpki -p webpki-roots`; advisories warn-only in check:all, release gate blocks); `pnpm audit --prod` 5 (react-router <7.18.2: 2 high, 3 moderate; several RSC/framework-mode only, open-redirect GHSA-wrjc-x8rr-h8h6 applies to ``/`useNavigate`); full audit 57 incl. 2 critical tinypool (vitest, dev only); gitleaks history 561 commits clean, working tree 1 jwt in git-ignored `.env.worker` (never committed) - - [ ] owner actions: open UFW 4173 for the recette session, then delete the rule; J1 + J2 on the OD-6 devices + - [x] R4.10m (closed by R4.11: rustls-webpki 0.103.16 + webpki-roots 1.0.10 in 7a7b71c, react-router-dom 7.18.4 in c9dab63; `pnpm audit --prod` clean at the close; the full audit's 54 advisories are dev tooling only, 26 on the pinned pnpm itself) security reserves found by the R4.10l checks, pre-existing, not fixed (dependency upgrades = owner decision, outside R4.10 scope): RUSTSEC-2026-0382 rustls-webpki 0.103.15 + RUSTSEC-2026-0381 webpki-roots 1.0.9 (worker → ureq; `cargo update -p rustls-webpki -p webpki-roots`; advisories warn-only in check:all, release gate blocks); `pnpm audit --prod` 5 (react-router <7.18.2: 2 high, 3 moderate; several RSC/framework-mode only, open-redirect GHSA-wrjc-x8rr-h8h6 applies to ``/`useNavigate`); full audit 57 incl. 2 critical tinypool (vitest, dev only); gitleaks history 561 commits clean, working tree 1 jwt in git-ignored `.env.worker` (never committed) + - [x] owner actions: J1 + J2 on the OD-6 devices (done 2026-10-21, iPhone included); still owner-side: delete the UFW 4173 rule after the recette sessions (`sudo ufw status numbered`, `sudo ufw delete `) - [ ] owner action (non-blocking): `packages/pdf/node_modules` leftover (13 pnpm symlinks, 6 bin shims, 1 vitest cache file, 0 tracked or useful files) → `rm -rf packages/pdf/node_modules && rmdir packages/pdf` (the recursive delete was refused to Claude by the permission layer) - [ ] outside R4 (owner 2026-10-17, non-blocking): worker container ignores SIGTERM (Docker kill after 10 s; chore, e.g. `init: true`); README test counter stale (367 vs 1,015) - [ ] 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/CHANGELOG.md b/CHANGELOG.md index e5e8d024..8796fabc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,7 +6,7 @@ Versions follow [Semantic Versioning](https://semver.org/). ## [Unreleased] -### Fixed (2026-10-21, on `feature/rust-r4-pdf-core`, not merged) +### Fixed (2026-10-21, R4 close) - Sign-in redirects: a `next` value whose dot segments normalise into `//host` (`/..//host`, `/%2e%2e//host`) now falls back to the dashboard instead of being returned as a protocol-relative path. The worker image runs on `distroless/static-debian13:nonroot` (the Debian 12 tags are no longer updated). DEPLOY.md shows `http2 on;` for nginx 1.25.1 and later and keeps the `listen ... http2` form for nginx 1.24 (`docs/development/RUST.md` §10.14). - Dependencies: `rustls-webpki` 0.103.16 and `webpki-roots` 1.0.10 (RUSTSEC-2026-0382, RUSTSEC-2026-0381; the worker's TLS client), `react-router-dom` 7.18.4 (GHSA-wrjc-x8rr-h8h6, GHSA-chx6-hx7r-mcp5 and three RSC / SSR advisories the application does not reach). A worker test proves the HTTPS client refuses an untrusted server certificate (`docs/development/RUST.md` §10.13). @@ -16,7 +16,7 @@ Versions follow [Semantic Versioning](https://semver.org/). - Improve Safari/iOS PDF download reliability by attaching the download link to the document during activation and delaying object URL revocation by 30 seconds. The file name and content remain unchanged. -### Changed (Rust R4, PDF core, 2026-10-18 to 2026-10-19; on `feature/rust-r4-pdf-core`, not merged) +### Changed (Rust R4, PDF core, 2026-10-18 to 2026-10-19; validated by the owner's device acceptance on the computer, Android and a real iPhone, and merged 2026-10-21) - **The PDF archives are read, written and checked by the Rust core** (`crates/core/src/pdf`, `docs/development/RUST.md` §10). Import: the attachment is located by the core's byte scan, inflated under the 16 MiB cap, probed as JSON and read by the R2 layered reader, inside a module worker created for the file and terminated after it (R4.3; the rescue copy follows the same path). Export: an incremental session in the page's engine composes each view, takes the browser's rasters one by one, decodes and writes each image on arrival, and hands the file out in parts (R4.6; no raster and no second copy of the file kept). `pnpm report:compare` runs the core's `report-compare` binary (R4.7). The PDFs are the ones the TypeScript engine wrote: same streams, images, links, metadata and attachment, pixel-identical through poppler on the reference reports; three declared differences only (`Producer`/`Creator` now `Faunosteo`, the attachment's report in contract key order, hostile files refused where the TypeScript repaired them). - **Removed at R4.8** (2026-10-19): `packages/pdf` (the TypeScript engine and its tests), `pdf-lib`, `@pdf-lib/*` and `@resvg/resvg-js`, the TypeScript CLI `apps/app/scripts/compare-reports.ts`, the application's TypeScript import path and its dependency on `@faunosteo/domain`, the oracle generators. Kept: the frozen oracles, goldens and fixture PDFs, the frozen N-1 readers (`packages/core-wasm/tests/n-1`: the Zod schemas and the byte-scan reader of the R3 build), `packages/anatomy` and `packages/domain` for the curation pipeline until R5. diff --git a/docs/development/PDF_IMPORT_HARDENING.md b/docs/development/PDF_IMPORT_HARDENING.md index f530c618..db15f7bb 100644 --- a/docs/development/PDF_IMPORT_HARDENING.md +++ b/docs/development/PDF_IMPORT_HARDENING.md @@ -165,3 +165,24 @@ 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, 9 and 19 are the device runs (J1 and J2), items 12, 15 and 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. + +## 7. R4 close (2026-10-21, merged into develop) + +The owner ran J1 and J2 on the OD-6 devices (computer with Chrome, Firefox +and Brave; Android with its browser; a real iPhone with Safari iOS) and +reports both recettes as passed with no blocking anomaly +(`R4_J1_RESULTS.md`, `R4_J2_RESULTS.md`, `docs/development/RUST.md` +§10.15). Effect on the §6 table, nothing else changed: + +- Items 3 and 19 (the device runs) no longer block the merge: every device + was run. Their per-check detail (J1.2, J1.10, J2.1 to J2.14 on each + device) was declared as a whole, not individually. +- Items 5, 6, 7, 9 and 20 stay **accepted temporarily**: what closes them + is a measure or an observation on the phone (the J1.8 time and tab + survival, the J1.9 and J1.10 memory behaviour, the J2.6 and J2.7 growth, + the J1.12 timings behind the timer rule, the worker `error` event over + repeated imports), and none was reported. They close when the owner + reports those observations, or at the next device recette. +- Items 12, 15 and 18 (**before public exposure**) are untouched: the + import stays a local-tool feature behind the gate of §5, and the merge + of R4 opens nothing to external users. diff --git a/docs/development/R4_J1_RESULTS.md b/docs/development/R4_J1_RESULTS.md index 9e70dd24..90446762 100644 --- a/docs/development/R4_J1_RESULTS.md +++ b/docs/development/R4_J1_RESULTS.md @@ -21,26 +21,34 @@ a simulator never fills its column and is never a memory proof). The result per check was declared without the split per browser: it sits in the last column. A device cell is filled only where the owner named the browser (J1.7). Brave is outside the OD-6 list, reported as run. +Status 2026-10-21 (R4 close): the owner ran J1 on a real iPhone with +Safari iOS and reports it as passed as a whole, with no blocking anomaly. +The declaration covers the recette, not each check: the iPhone column +carries it as `PASS déclaré` per row, and the details the grid asks for +(iPhone model, iOS and Safari versions, surface, the J1.8 and J1.12 +timings, the J1.9 and J1.10 memory observations, the J1.7 picker delay +on the phone) were not given and are not inferred (note below). | Device, browser, version | Surface (1 dev / 2 prod CSP) | Date | |---|---|---| | (to be confirmed by the owner) | | 2026-10-18 | +| iPhone, Safari iOS (model and versions not given) | not given | 2026-10-21 | -| Check | Computer, Chrome | Computer, Firefox | Computer, Brave (outside OD-6) | iPhone, Safari iOS (not run) | Android, its browser | Declared 2026-10-21, no browser split | +| Check | Computer, Chrome | Computer, Firefox | Computer, Brave (outside OD-6) | iPhone, Safari iOS (run 2026-10-21, declared as a whole) | Android, its browser | Declared 2026-10-21, no browser split | |---|---|---|---|---|---|---| -| J1.1 reference PDFs open the editor | NON TESTÉ | NON TESTÉ | NON TESTÉ | NON TESTÉ | NON TESTÉ | PASS déclaré | -| J1.2 hostile folder: message per file | NON TESTÉ | NON TESTÉ | NON TESTÉ | NON TESTÉ | NON TESTÉ | PASS déclaré | -| J1.3 rescue copies | NON TESTÉ | NON TESTÉ | NON TESTÉ | NON TESTÉ | NON TESTÉ | PASS déclaré | -| J1.4 engine unavailable (`--csp without`) | NON TESTÉ | NON TESTÉ | NON TESTÉ | NON TESTÉ | NON TESTÉ | PASS déclaré | -| J1.5 engine recovered | NON TESTÉ | NON TESTÉ | NON TESTÉ | NON TESTÉ | NON TESTÉ | PASS déclaré | -| J1.6 interrupted import | NON TESTÉ | NON TESTÉ | NON TESTÉ | NON TESTÉ | NON TESTÉ | PASS déclaré | -| J1.7 offline import | NON TESTÉ | PASS, picker delay (see note) | PASS, picker delay (see note) | NON TESTÉ | NON TESTÉ | PASS, performance reserve | -| J1.8 L export (≈ 42 MB) opens, time to the editor | NON TESTÉ | NON TESTÉ | NON TESTÉ | NON TESTÉ | NON TESTÉ | PASS déclaré | -| J1.9 six L imports in a row, tab alive | NON TESTÉ | NON TESTÉ | NON TESTÉ | NON TESTÉ | NON TESTÉ | PASS déclaré | -| J1.10 twenty picks of `values-1m.pdf` | NON TESTÉ | NON TESTÉ | NON TESTÉ | NON TESTÉ | NON TESTÉ | PASS déclaré | -| J1.11 rescue copy under and over the cap | NON TESTÉ | NON TESTÉ | NON TESTÉ | NON TESTÉ | NON TESTÉ | PASS déclaré | -| J1.12 timings (demo, L) | NON TESTÉ | NON TESTÉ | NON TESTÉ | NON TESTÉ | NON TESTÉ | PASS déclaré, « quelques secondes », no measure | -| J1.13 bilan in progress kept after a refused import | NON TESTÉ | NON TESTÉ | NON TESTÉ | NON TESTÉ | NON TESTÉ | PASS déclaré | +| J1.1 reference PDFs open the editor | NON TESTÉ | NON TESTÉ | NON TESTÉ | PASS déclaré | NON TESTÉ | PASS déclaré | +| J1.2 hostile folder: message per file | NON TESTÉ | NON TESTÉ | NON TESTÉ | PASS déclaré | NON TESTÉ | PASS déclaré | +| J1.3 rescue copies | NON TESTÉ | NON TESTÉ | NON TESTÉ | PASS déclaré | NON TESTÉ | PASS déclaré | +| J1.4 engine unavailable (`--csp without`) | NON TESTÉ | NON TESTÉ | NON TESTÉ | PASS déclaré | NON TESTÉ | PASS déclaré | +| J1.5 engine recovered | NON TESTÉ | NON TESTÉ | NON TESTÉ | PASS déclaré | NON TESTÉ | PASS déclaré | +| J1.6 interrupted import | NON TESTÉ | NON TESTÉ | NON TESTÉ | PASS déclaré | NON TESTÉ | PASS déclaré | +| J1.7 offline import | NON TESTÉ | PASS, picker delay (see note) | PASS, picker delay (see note) | PASS déclaré, no delay reported | NON TESTÉ | PASS, performance reserve | +| J1.8 L export (≈ 42 MB) opens, time to the editor | NON TESTÉ | NON TESTÉ | NON TESTÉ | PASS déclaré, no time given | NON TESTÉ | PASS déclaré | +| J1.9 six L imports in a row, tab alive | NON TESTÉ | NON TESTÉ | NON TESTÉ | PASS déclaré, no memory observation given | NON TESTÉ | PASS déclaré | +| J1.10 twenty picks of `values-1m.pdf` | NON TESTÉ | NON TESTÉ | NON TESTÉ | PASS déclaré, no memory observation given | NON TESTÉ | PASS déclaré | +| J1.11 rescue copy under and over the cap | NON TESTÉ | NON TESTÉ | NON TESTÉ | PASS déclaré | NON TESTÉ | PASS déclaré | +| J1.12 timings (demo, L) | NON TESTÉ | NON TESTÉ | NON TESTÉ | PASS déclaré, no measure | NON TESTÉ | PASS déclaré, « quelques secondes », no measure | +| J1.13 bilan in progress kept after a refused import | NON TESTÉ | NON TESTÉ | NON TESTÉ | PASS déclaré | NON TESTÉ | PASS déclaré | Notes (FAIL, incidents, timings, memory warnings, reloads): @@ -59,6 +67,17 @@ Notes (FAIL, incidents, timings, memory warnings, reloads): - J1.12: « quelques secondes » from the pick to the editor, no measure; the 20 s timer is neither confirmed nor moved by it (the §B.3 rule needs the timings). +- iPhone, Safari iOS (owner, 2026-10-21): J1 reported as passed as a + whole, no blocking anomaly. Missing for the per-check justification the + grid asks for, not invented: the iPhone model, the iOS and Safari + versions, the surface (dev or production CSP), the J1.8 and J1.12 + timings, the J1.9 and J1.10 memory observations (tab alive, reloads, + warnings), whether the J1.7 picker delay seen on the computer appears on + the phone. The items of `PDF_IMPORT_HARDENING.md` §6 that close on + these observations (5, 6, 9, 20) stay open (§7 there). -Recommendation (filled after the run): accept R4.3 as is / accept with -follow-ups / do not accept, and why. +Recommendation (owner, 2026-10-21): accept with follow-ups. R4.3 is +accepted on the computer (Chrome, Firefox, Brave), Android and the real +iPhone; the follow-ups are the J1.7 picker-delay reserve (cause not +established), the device timings and memory observations not reported, +and M3 of `R4_MINI_RECETTE.md` not run (complementary, not blocking). diff --git a/docs/development/R4_J2_RESULTS.md b/docs/development/R4_J2_RESULTS.md index 3f0cbe81..51371186 100644 --- a/docs/development/R4_J2_RESULTS.md +++ b/docs/development/R4_J2_RESULTS.md @@ -13,26 +13,34 @@ a simulator never fills its column and is never a memory proof). The result per check was declared without the split per browser: it sits in the last column. Every device cell stays `NON TESTÉ`. Brave is outside the OD-6 list, reported as run. +Status 2026-10-21 (R4 close): the owner ran J2 on a real iPhone with +Safari iOS and reports it as passed as a whole, with no blocking anomaly; +J2.3 passes under the corrected rule (a new export carries the +application's current branding). The declaration covers the recette, not +each check: the iPhone column carries it as `PASS déclaré` per row; the +model, the versions, the surface, the J2.6 time and the memory +observations of J2.6 and J2.7 were not given and are not inferred. | Device, browser, version | Surface (1 dev / 2 prod CSP) | Date | |---|---|---| | (to be given by the owner) | | | +| iPhone, Safari iOS (model and versions not given) | not given | 2026-10-21 | -| Check | Computer, Chrome | Computer, Firefox | Computer, Brave (outside OD-6) | iPhone, Safari iOS (not run) | Android, its browser | Declared 2026-10-21, no browser split | +| Check | Computer, Chrome | Computer, Firefox | Computer, Brave (outside OD-6) | iPhone, Safari iOS (run 2026-10-21, declared as a whole) | Android, its browser | Declared 2026-10-21, no browser split | |---|---|---|---|---|---|---| -| J2.1 FR export identical to the imported demo | NON TESTÉ | NON TESTÉ | NON TESTÉ | NON TESTÉ | NON TESTÉ | PASS déclaré | -| J2.2 EN export | NON TESTÉ | NON TESTÉ | NON TESTÉ | NON TESTÉ | NON TESTÉ | PASS déclaré | -| J2.3 export of an archive without logos | NON TESTÉ | NON TESTÉ | NON TESTÉ | NON TESTÉ | NON TESTÉ | acceptable under the corrected expected result, subject to the logos matching the current branding (owner, 2026-10-21; option 1 final, corrected expected result validated) | -| J2.4 links open the three sites | NON TESTÉ | NON TESTÉ | NON TESTÉ | NON TESTÉ | NON TESTÉ | PASS déclaré | -| J2.5 real rasters crisp at 400 % | NON TESTÉ | NON TESTÉ | NON TESTÉ | NON TESTÉ | NON TESTÉ | PASS déclaré | -| J2.6 L export on the phone (E4), time, tab alive | NON TESTÉ | NON TESTÉ | NON TESTÉ | NON TESTÉ | NON TESTÉ | PASS déclaré | -| J2.7 six demo exports in a row | NON TESTÉ | NON TESTÉ | NON TESTÉ | NON TESTÉ | NON TESTÉ | PASS déclaré | -| J2.8 round trip of an exported file | NON TESTÉ | NON TESTÉ | NON TESTÉ | NON TESTÉ | NON TESTÉ | PASS déclaré | -| J2.9 interrupted export | NON TESTÉ | NON TESTÉ | NON TESTÉ | NON TESTÉ | NON TESTÉ | PASS déclaré | -| J2.10 engine unavailable then recovered | NON TESTÉ | NON TESTÉ | NON TESTÉ | NON TESTÉ | NON TESTÉ | PASS déclaré | +| J2.1 FR export identical to the imported demo | NON TESTÉ | NON TESTÉ | NON TESTÉ | PASS déclaré | NON TESTÉ | PASS déclaré | +| J2.2 EN export | NON TESTÉ | NON TESTÉ | NON TESTÉ | PASS déclaré | NON TESTÉ | PASS déclaré | +| J2.3 export of an archive without logos | NON TESTÉ | NON TESTÉ | NON TESTÉ | PASS déclaré under the corrected rule | NON TESTÉ | PASS under the corrected expected result (owner, 2026-10-21: option 1 final, a new export carries the current Faunosteo branding) | +| J2.4 links open the three sites | NON TESTÉ | NON TESTÉ | NON TESTÉ | PASS déclaré | NON TESTÉ | PASS déclaré | +| J2.5 real rasters crisp at 400 % | NON TESTÉ | NON TESTÉ | NON TESTÉ | PASS déclaré | NON TESTÉ | PASS déclaré | +| J2.6 L export on the phone (E4), time, tab alive | NON TESTÉ | NON TESTÉ | NON TESTÉ | PASS déclaré, no time or memory observation given | NON TESTÉ | PASS déclaré | +| J2.7 six demo exports in a row | NON TESTÉ | NON TESTÉ | NON TESTÉ | PASS déclaré, no memory observation given | NON TESTÉ | PASS déclaré | +| J2.8 round trip of an exported file | NON TESTÉ | NON TESTÉ | NON TESTÉ | PASS déclaré | NON TESTÉ | PASS déclaré | +| J2.9 interrupted export | NON TESTÉ | NON TESTÉ | NON TESTÉ | PASS déclaré | NON TESTÉ | PASS déclaré | +| J2.10 engine unavailable then recovered | NON TESTÉ | NON TESTÉ | NON TESTÉ | PASS déclaré | NON TESTÉ | PASS déclaré | | J2.11 CAP export (computer only) | NON TESTÉ | NON TESTÉ | NON TESTÉ | not applicable | not applicable | PASS déclaré | -| J2.12 views and markers of an observation | NON TESTÉ | NON TESTÉ | NON TESTÉ | NON TESTÉ | NON TESTÉ | PASS déclaré | -| J2.13 attachment listed, properties Faunosteo | NON TESTÉ | NON TESTÉ | NON TESTÉ | NON TESTÉ | NON TESTÉ | PASS déclaré | +| J2.12 views and markers of an observation | NON TESTÉ | NON TESTÉ | NON TESTÉ | PASS déclaré | NON TESTÉ | PASS déclaré | +| J2.13 attachment listed, properties Faunosteo | NON TESTÉ | NON TESTÉ | NON TESTÉ | PASS déclaré | NON TESTÉ | PASS déclaré | | J2.14 `pnpm report:compare` (computer only) | NON TESTÉ | NON TESTÉ | NON TESTÉ | not applicable | not applicable | PASS déclaré | Notes (FAIL, incidents, timings, memory warnings, reloads): @@ -45,7 +53,17 @@ Notes (FAIL, incidents, timings, memory warnings, reloads): the rule stays, the expected result of J2.3 is corrected (R4_J2.md), and the observed result is acceptable under it, subject to the logos shown being the application's current branding (the four logos of J2.1). No - engine, golden or oracle change. + engine, golden or oracle change. Owner, 2026-10-21 (R4 close): J2.3 PASS + under the approved rule. +- iPhone, Safari iOS (owner, 2026-10-21): J2 reported as passed as a + whole, no blocking anomaly. Missing for the per-check justification the + grid asks for, not invented: the iPhone model, the iOS and Safari + versions, the surface, the J2.6 time to the download and whether the tab + survived, the memory observations of J2.6 and J2.7 (reloads, warnings). + Item 7 of `PDF_IMPORT_HARDENING.md` §6 (per-export growth) stays + accepted temporarily for that reason (§7 there). -Recommendation (filled after the run): accept R4.6 as is / accept with -follow-ups / do not accept, and why. +Recommendation (owner, 2026-10-21): accept with follow-ups. R4.6 is +accepted on the computer (Chrome, Firefox, Brave), Android and the real +iPhone, J2.3 under the corrected rule; the follow-ups are the device +timings and memory observations not reported. diff --git a/docs/development/R4_MINI_RECETTE.md b/docs/development/R4_MINI_RECETTE.md index 815d6954..5fe2b25b 100644 --- a/docs/development/R4_MINI_RECETTE.md +++ b/docs/development/R4_MINI_RECETTE.md @@ -45,7 +45,7 @@ at J1, the kit's location caused it. | M2 | PASS, the dialog opens after about 60 s, then the import works | | M3 | NON TESTÉ; a complementary control, not blocking (owner, 2026-10-21), never reported PASS without a run | | M4, M5 | NON TESTÉ in the mini-recette; the earlier J1 declarations stand | -| M6 | NON TESTÉ (iPhone not available); stays so until the owner's results on the real iPhone, a simulator never stands for it | +| M6 | NON TESTÉ as a mini-recette check; the owner's iPhone run of 2026-10-21 reports J1 as passed as a whole (`R4_J1_RESULTS.md`), with no separate M6 report and no picker delay reported on the phone | Reading: M1 and M2 show the same delay, so the file dialog itself is slow to open when the system's network is cut, whatever the page. No proof of a diff --git a/docs/development/RUST.md b/docs/development/RUST.md index 392a2689..04d830a8 100644 --- a/docs/development/RUST.md +++ b/docs/development/RUST.md @@ -905,13 +905,14 @@ imports it and restyles `data-state` in place as before. needs it. - WASM budget: 396 KB of 600 KB used; R4 adds the PDF reader and writer. -## 10. R4: the PDF core in Rust (in progress; R4.1 freeze 2026-10-18, export and `report:compare` switched 2026-10-19) +## 10. R4: the PDF core in Rust (R4.1 freeze 2026-10-18, export and `report:compare` switched 2026-10-19, closed and merged 2026-10-21: §10.15) Plan and contract: `.claude/tasks/plans/2026-10-17-rust-r4-pdf-core.md` (revision 2, validated by the owner 2026-10-18 with the conditions of its -§A.6). Branch `feature/rust-r4-pdf-core`, cut from develop at 66909b6. This -section is a draft until the switch: it records what R4.1 froze and the -TypeScript baselines every later slice is measured against. +§A.6). Branch `feature/rust-r4-pdf-core`, cut from develop at 66909b6. +§10.1 and §10.2 record what R4.1 froze and the TypeScript baselines every +later slice was measured against; the slices follow in order, §10.15 is +the close. ### 10.1 R4.1: what is frozen, and where (no Rust yet) @@ -2386,7 +2387,8 @@ showed. error. No further file may be deleted under this authorization. - Safari iOS stays NON TESTÉ until the owner reports results from the real iPhone. A simulator never stands for it and is never a memory proof; - nothing is reported PASS for it in the meantime. + nothing is reported PASS for it in the meantime (reported the same day, + §10.15). ### 10.13 R4.11: dependency maintenance before the R4 merge (2026-10-21) @@ -2498,3 +2500,64 @@ and in the musl stage); `pnpm audit --prod` clean; `cargo deny check` (all four) ok; the goldens, oracles and the PDF engine untouched (`git diff --stat 8943bf3 -- apps/app/tests/fixtures crates/core/tests crates/core/src` empty). + +### 10.15 R4 closed: device acceptance, residual risks, merge (2026-10-21) + +Owner's final validation (2026-10-21): J1 and J2 run on the computer +(Chrome, Firefox, Brave), on Android with its browser and on a real +iPhone with Safari iOS, reported as passed with no blocking anomaly; the +R4.12 checkpoint and every earlier decision validated; the merge into +develop authorised, subject to the usual final checks. Results as +declared, with what was not given marked as missing rather than +inferred: `R4_J1_RESULTS.md`, `R4_J2_RESULTS.md`, `R4_MINI_RECETTE.md`. + +What the acceptance covers, and its limits: + +- Computer, Android, iPhone: a declaration per recette, no per-check or + per-browser split beyond J1.7. For the iPhone, the model, the iOS and + Safari versions, the surface, the timings (J1.8, J1.12, J2.6) and the + memory observations (J1.9, J1.10, J2.6, J2.7) were not reported. The + plan's OD-6 rule is met at the device level (every listed device was + run on a real machine); the per-check measures it also asked for are + the first follow-up below. +- J1.7: functional PASS with the picker-delay reserve (about 60 s to open + the file dialog with the computer's network cut, seen with Ctrl+O + outside Faunosteo as well); cause not established, no application + change (§10.12). M3 of the mini-recette not run: complementary, not + blocking. +- J2.3: PASS under the approved rule; a new export carries the + application's current branding, the archive keeps its own (§10.12 B). + +Residual risks accepted by the owner for the merge into develop, open +until their own deadline (none is closed by the merge): + +| Risk | Where | Deadline | +|---|---|---| +| Worker base image referenced by tag (`static-debian13:nonroot`), not by digest; cosign signature not checked (no cosign on the build machine) | §10.14 D1 | before a production image is published | +| Semgrep partial parse of two test files (`routes.LoginRoute.test.tsx`, `routes.coreStopped.test.tsx`: the `>()` generic call syntax), test coverage gap only | R4.12 security gate | next security pass | +| Guardrails WARN outside the R4 diff: `SB-POLICY-NOT-OWNER` on `species_select_active` (migration 20261008110000, a catalog read policy by design) | R4.12 security gate, `/guardrails` | its own review, not an R4 item | +| Device timings and memory observations not reported (items 5, 6, 7, 9, 20 of `PDF_IMPORT_HARDENING.md` §6) | `PDF_IMPORT_HARDENING.md` §7 | before the import is offered to external users (item 18) | +| J1.7 picker delay offline, cause not established | §10.12 A | reopened only on a new proven defect | +| Chromium per-export growth of the browser's raster path (BDR-063) | §10.11 | a device observation, then one reused canvas if needed | +| Accessibility (D2 `outline-hidden`, D5 reduced motion) and the D4 configuration chores | `.claude/tasks/TODO.md` | separate chantiers, not scheduled | + +Checks on the final state before the merge (HEAD 22bbfb4, the code state +of 60faac8 plus memory and documentation commits): `pnpm check:all` green +at 22:15:50 (rust-check, types drift, wasm build, app 59 files / 434 +cases, domain 262, core-wasm 58, anatomy 131, supabase 40, app image, +worker test stage with the TLS test, worker image on the Debian 13 +digest `sha256:d62067…3e88`); `pnpm audit --prod` clean (the full audit +lists 54 advisories in the development tooling only: 26 on the pinned +`pnpm` 10.13.1 itself, the rest on vite, vitest and their transitive +packages; none reaches the production bundle); +gitleaks on the 111 commits of the branch: no leak, and on the working +tree one finding in the git-ignored `.env.worker` only; no `/home/` +path, personal identifier or LAN host in a versioned file (the LAN subnet +of ENVIRONMENTS.md and the forge URL of DEPLOY.md predate the branch); +`git merge-tree develop HEAD` clean; the Step 6 goldens untouched since +8b86b92 (identical on develop), the R4 oracles since 4439fd2 and the R4 +digests since d492bf7 (the declared R4.6 re-freeze); 51 deletions on the +branch, all in 0dc1ba2 (R4.8, authorised), none after. Merge: `gitflow +finish` on `feature/rust-r4-pdf-core` (no-ff into develop, branch +deleted local and remote), recorded in `.claude/memory/journal.md`. +Release 0.2.0, faunosteo.com and R5 untouched.