diff --git a/.claude/tasks/TODO.md b/.claude/tasks/TODO.md index fb2c9884..dc2c92c5 100644 --- a/.claude/tasks/TODO.md +++ b/.claude/tasks/TODO.md @@ -276,8 +276,13 @@ feat/findings-tree-v2 merged (FindingsTreePicker tracked in HEAD); all work belo - [x] R4.10c fix A: serve.mjs mirrors nginx.conf cache headers (/assets/ immutable); regression harness `scripts/browser/r4-offline-import.mjs` (J1.7 offline on the 3 engines + header check) - [x] R4.10d anomaly B diagnosis: editor export always embeds the bundled branding (Step 6 rule, unchanged since 66909b6); archived branding reused only by `export_from_envelope` (cargo); J2.3 expectation wrong (R4.6 wording) → owner decision, no code change - [x] R4.10e gates: verifier CONFORME 7/7; security PASS, 2 LOW applied (immutable by resolved folder, harness child cleanup) + targeted re-gate; mini-recette `R4_MINI_RECETTE.md`; LRN-066; commits 63034e1..baebb98 - - [ ] R4.10f owner: mini-recette M1-M6 on the devices; decision on J2.3 (keep the rule and correct the expected result, or reuse the archived branding on re-export); Safari iOS J1/J2 still NON TESTÉ; gitleaks `[gated]` marker still pending → STOP, no merge, no R5 - - [ ] owner actions: add `[gated 2026-10-18]` to `.gitleaks.toml` allowlist description (security BLOCK); `[gated]` clarification for the 21 R4.8-deleted test files if wanted (verifier floor); open UFW 4173 for the recette session; J1 + J2 on the OD-6 devices + - [x] R4.10f owner decisions (2026-10-21): J2.3 option 1 (editor export keeps the application's current branding; the archive keeps its data for a faithful reproduction); J1.7 stays open (cache fix accepted, picker freeze unexplained, Ctrl+O = a clue not a proof, network-share hypothesis not confirmed); Safari iOS pending (real device, no simulator for memory); gitleaks marker authorised again; R4.8 deletion trace to verify; ZenQuality footer logo to diagnose + - [ ] R4.10g J2.3 docs per option 1: R4_J2.md expected result (logos of the application's current branding, the archive's `null` slots not reused), R4_J2_RESULTS.md (declared cell = acceptable under the rule, subject to the logos matching the expected branding), RUST.md §10.12 decision line, mini-recette J2.3 line; no engine, golden or oracle change + - [ ] R4.10h `.gitleaks.toml`: the exact `[gated 2026-10-18]` marker in the one allowlist description, scope unchanged + - [ ] R4.10i R4.8 deletion trace: 23 test files deleted by 0dc1ba2 (one commit, nothing else on the branch); 22 traced case by case in LEDGER.tsv (ported / replaced / deleted with a target), the glue's `pdf-export.ts-engine.test.ts` traced in RUST.md §10.10 and R4.8b; approval = contract 2026-10-20 header (« Je valide officiellement R4.8 … les remplacements de tests sont approuvés ») + BDR-064; RUST.md §10.11 says 21 → corrected to 23; no new deletion + - [ ] R4.10j ZenQuality footer logo: diagnosis (hotlink since caac149 2026-05-21; the DEPLOY.md CSP is the VPS reverse proxy's, docker/nginx.conf carries none; faunosteo.com today sends no CSP header; the PDF uses the bundled `zenquality-logo-fr.png`, unaffected; seen by the R2 and R4 CSP proofs as the known violation, never a J1/J2 item) → fix: the exact remote file bundled under `src/assets/brand/`, Footer `?url` import like the partner logo (same pixels, no branding change); `components.Footer` test (no external image source); `r4-app-csp.mjs` drops the known-host exception (any violation is a problem); build:preview + r4-app-csp + r4-offline-import re-run; CSP unchanged + - [ ] R4.10k gates: verifier on the contract, security gate on the diff; docs (RUST.md §10.12, CHANGELOG), memory; report → STOP: owner's M1-M5 + Safari before any R4 close; no merge, no R5, no release, no deploy + - [ ] owner actions: open UFW 4173 for the recette session, then delete the rule; J1 + J2 on the OD-6 devices - [ ] 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/.claude/tasks/contracts/2026-10-21-rust-r4-decisions-1500.md b/.claude/tasks/contracts/2026-10-21-rust-r4-decisions-1500.md new file mode 100644 index 00000000..3268fd3a --- /dev/null +++ b/.claude/tasks/contracts/2026-10-21-rust-r4-decisions-1500.md @@ -0,0 +1,43 @@ +# Contract: R4.10 owner decisions (J2.3 option 1, gitleaks marker, R4.8 trace, ZenQuality logo) and the J1.7 rectification + +Base: 1814a8d on `feature/rust-r4-pdf-core`. Date: 2026-10-21. + +## REQUEST (verbatim, owner, two messages) + +Message 1, « Décisions R4.10 et préparation de la mini-recette »: + +- J2.3: « Je choisis définitivement l'option 1. Conserver le comportement historique : les nouveaux exports effectués depuis l'éditeur utilisent le branding actuel de Faunosteo, même lorsque le document importé provient d'une archive sans logos. […] Corrige uniquement l'attendu incorrect de J2.3 et les documents de recette associés. Ne modifie ni le comportement du moteur, ni les goldens, ni les oracles pour ce point. » +- J1.7: « J'accepte le correctif des en-têtes de cache du serveur de recette et les contrôles de sécurité associés. […] Ne considère pas J1.7 comme définitivement validé. […] Ne suppose pas que la piste du partage réseau est confirmée. Le test Ctrl+O est un indice de diagnostic, pas une preuve suffisante à lui seul. Préserve les résultats actuels des tests automatisés. » +- Safari iOS: « La validation Safari iOS réelle reste en attente. […] Un simulateur iPhone ne remplacera pas les mesures de mémoire sur matériel réel. » +- Marqueurs: « Je réitère mon autorisation d'ajouter le marqueur exact `[gated 2026-10-18]` à l'exception strictement ciblée de `.gitleaks.toml`. […] Applique-la sans élargir la portée de l'exception. Vérifie également que l'autorisation des 21 suppressions de tests de R4.8 est correctement tracée, sans créer de nouvelle suppression. » +- ZenQuality: « Vérifie son impact réel sur l'application et sur les exports PDF. Précise si cette ressource est effectivement absente du rendu en build de production et pourquoi les recettes précédentes n'ont pas détecté ce problème. Si un défaut est confirmé, présente un correctif ciblé. Privilégie une ressource locale embarquée, si possible et autorisée, plutôt qu'un assouplissement injustifié de la CSP. Ne modifie pas le branding produit sans décision préalable. » +- Livraison: « Mets à jour les documents correspondant à mes décisions. Exécute les vérifications ciblées nécessaires et conserve les audits précédents. Ne transforme pas les tests headless en résultats humains. Attends mon retour sur M1 à M5 et Safari avant de conclure R4. Reste sur feature/rust-r4-pdf-core. Aucune fusion dans develop. Ne commence pas R5. Ne publie pas la release 0.2.0. Ne déploie rien sur faunosteo.com. » + +Message 2, « Rectification définitive J1.7 / M1 / M2 »: + +« Lorsque la connexion réseau du système est coupée, le sélecteur de fichiers met environ une minute à s'ouvrir, aussi bien depuis Ctrl+O dans un onglet vide que depuis le bouton « Importer » de Faunosteo. Une fois le sélecteur ouvert, les imports hors ligne fonctionnent normalement. Résultats corrigés : M1 : PASS avec délai d'environ 60 secondes. M2 : PASS avec délai d'environ 60 secondes. J1.7 : PASS fonctionnel, avec réserve de performance concernant l'ouverture du sélecteur. M3 : NON TESTÉ. M4/M5 : NON TESTÉ dans la mini-recette ; les validations J1 antérieures restent déclarées. Le comportement est constaté hors de Faunosteo également. […] Conserve la correction des en-têtes Cache-Control […]. Mets à jour les résultats et le suivi R4.10, sans présenter l'origine exacte des 60 secondes comme prouvée. Ne lance pas de nouvelle modification applicative pour ce symptôme sans preuve d'un défaut de Faunosteo. Ma décision J2.3 reste l'option 1 […]. Les tests sur Safari iOS restent à effectuer. Aucune fusion R4 dans develop, aucun démarrage R5, aucune modification de production sans mon autorisation. » + +## FILE SCOPE + +- `docs/development/R4_J2.md` (J2.3 expected result), `R4_J2_RESULTS.md`, `R4_J1_RESULTS.md`, `R4_MINI_RECETTE.md`, `RUST.md` §10.11 (count), §10.12 (decisions, C paragraph), `CHANGELOG.md`, `CLAUDE.md` (map line) +- `.gitleaks.toml` (the one description string) +- `apps/app/src/components/brand/Footer.tsx`, `apps/app/src/assets/brand/zenquality-logo-horizontal.png` (new), `apps/app/tests/unit/components.Footer.test.tsx` (new) +- `scripts/browser/r4-app-csp.mjs`, `scripts/browser/results/2026-10-21-r4-{csp,offline-import}.json` (new) +- `.claude/tasks/TODO.md`, memory + +Out of scope: `crates/**`, `packages/**`, `apps/app/src/pdf/**`, the goldens, the oracles, the R4 digests, DEPLOY.md's CSP, `docker/nginx.conf`, any deletion. + +## ACCEPTANCE CRITERIA + +1. J2.3: `R4_J2.md` expects the application's current branding (the four logos of J2.1) on the export of `r3-demo.fr.nologos.pdf`; `R4_J2_RESULTS.md` records the owner's observation as acceptable under that rule, subject to the logos being the current branding, with the original FAIL declaration kept in the note; no file under `crates/`, `packages/`, `apps/app/src/pdf/`, `apps/app/tests/fixtures/goldens/`, `crates/core/tests/oracles/` changed (`git diff --stat 1814a8d`). +2. `.gitleaks.toml`: the allowlist description starts with `[gated 2026-10-18]`; `paths` unchanged, no other key added (`git diff 1814a8d -- .gitleaks.toml` is one line changed). +3. R4.8 trace: `git log --diff-filter=D --name-only --format= 66909b6..HEAD -- '*.test.ts' '*.test.tsx'` lists 23 files, all from 0dc1ba2; RUST.md §10.11 states 23 (and that the verifier counted 21), the ledger traces 22 of them case by case (`awk -F'\t' 'NR>1{print $1}' crates/core/tests/pdf/LEDGER.tsv | sort -u` contains every deleted path but `packages/core-wasm/tests/pdf-export.ts-engine.test.ts`, which §10.10 names); no file deleted by the diff from 1814a8d. +4. J1.7 recorded as the owner rectified it: `R4_J1_RESULTS.md` J1.7 cells for Firefox and Brave read PASS with the picker-delay note, the declared column a PASS with a performance reserve, the note keeps the first FAIL and says the cause of the delay is not established; `R4_MINI_RECETTE.md` §3 holds M1 PASS ~60 s, M2 PASS ~60 s, M3 NON TESTÉ, M4/M5 NON TESTÉ, M6 NON TESTÉ; no application change for the symptom (criterion 1's path list plus `apps/app/src/app/routes/HomeRoute.tsx` and `apps/app/src/core/**` unchanged). +5. ZenQuality: `Footer.tsx` has no `http` image source (`grep -n "src=" apps/app/src/components/brand/Footer.tsx`), imports `@/assets/brand/zenquality-logo-horizontal.png?url`; the file is a valid PNG 1024 × 237 whose sha256 is `8625f6b16022494ab376d94d86fa85cd54aa3d5280e3ceb27531ff33538c0f85`; `components.Footer.test.tsx` passes (`cd apps/app && ./node_modules/.bin/vitest run tests/unit/components.Footer.test.tsx`) and fails when `src={zenQualityUrl}` is replaced by the old URL (prove by a temporary edit, reverted); `DEPLOY.md` unchanged; `apps/app/src/pdf/branding.ts` unchanged. +6. CSP proof: `scripts/browser/r4-app-csp.mjs` holds no `KNOWN_IMAGE_HOST` and treats every document violation, CSP console message and report as a problem; `scripts/browser/results/2026-10-21-r4-csp.json` has 12 runs, every `problems` empty, every `documentViolations` and `consoleCsp` empty; `2026-10-21-r4-offline-import.json` has 6 runs with empty `problems`. +7. The app suite, typecheck and lint green: `pnpm typecheck`, `pnpm lint`, `cd apps/app && ./node_modules/.bin/vitest run` (59 files, 429 cases); the headless results are never written into a device cell of the results grids (every device cell of `R4_J1_RESULTS.md` and `R4_J2_RESULTS.md` other than J1.7 Firefox and Brave stays `NON TESTÉ` or `not applicable`). +8. Docs: RUST.md §10.12 carries the J2.3 decision, the J1.7 rectification (cause not claimed) and the C paragraph (impact, where the policy lives, the live site's header, why the recettes did not report it, the fix and its proofs); CHANGELOG Unreleased has the footer entry; CLAUDE.md map line names the footer logo. + +## CLARIFICATIONS + +Q: apply the fix or only present it? / A: the owner asked for a targeted fix with a bundled resource and no branding change; the bundled file is the exact remote file, so the picture does not change; applied on the branch, reversible by the owner. [gated 2026-10-21, owner's message 1] diff --git a/CHANGELOG.md b/CHANGELOG.md index a1239549..23d1153e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,10 @@ Versions follow [Semantic Versioning](https://semver.org/). ## [Unreleased] +### Fixed (2026-10-21, on `feature/rust-r4-pdf-core`, not merged) + +- The footer's « Propulsé par ZenQuality » logo is bundled with the application instead of loaded from zenquality.fr: the documented production CSP (`img-src 'self' data: blob:`) refused the external image and showed the alt text in its place. Same picture, no policy change; the exported PDF never depended on it. + ### Fixed (2026-10-18) - 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. diff --git a/CLAUDE.md b/CLAUDE.md index 4eddf01e..79f47ff8 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -193,7 +193,7 @@ faunosteo/ ├─ public/ ← favicons, env.js, site header logo only (PDF logos live in src/assets/brand; no anatomy asset) ├─ vite/sheet-bundle.ts ← Vite plugin: `virtual:faunosteo-sheet` (SHEET_BUNDLE=draft|none) ├─ src/ -│ ├─ assets/brand/ ← the four PDF branding logos, bundled by Vite (?inline / ?raw / ?url), never fetched +│ ├─ assets/brand/ ← the four PDF branding logos and the footer's ZenQuality logo, bundled by Vite (?inline / ?raw / ?url), never fetched (production CSP img-src 'self') │ ├─ app/ │ │ ├─ App.tsx ← root router │ │ ├─ useUnsavedGuard.ts ← beforeunload while the report is unsaved, called once in App diff --git a/docs/development/R4_J1_RESULTS.md b/docs/development/R4_J1_RESULTS.md index d9ef59f6..8abb8dc6 100644 --- a/docs/development/R4_J1_RESULTS.md +++ b/docs/development/R4_J1_RESULTS.md @@ -32,7 +32,7 @@ named the browser (J1.7). Brave is outside the OD-6 list, reported as run. | 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É | FAIL | FAIL | NON TESTÉ | NON TESTÉ | FAIL | +| 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é | @@ -42,10 +42,18 @@ named the browser (J1.7). Brave is outside the OD-6 list, reported as run. Notes (FAIL, incidents, timings, memory warnings, reloads): -- J1.7 FAIL on Brave and Firefox (owner, 2026-10-21): surface 2 (production - build, port 4173, production CSP); offline, « Importer » does not open the - file picker and the browser becomes unusable. Diagnosis and fix: RUST.md - §10.12; the mini-recette `R4_MINI_RECETTE.md` runs it again. +- J1.7 (owner, 2026-10-21, Brave and Firefox, surface 2: production build, + port 4173, production CSP). First declared FAIL: offline, « Importer » did + not open the file picker and the browser seemed unusable. Rectified the + same day after the mini-recette (`R4_MINI_RECETTE.md`, M1 and M2): with + the system's network cut, the file picker takes about one minute to open, + from Ctrl+O in an empty tab as from the Faunosteo button alike; once open, + the offline import works. Functional PASS with a performance reserve on + the picker's opening. The behaviour is seen outside Faunosteo, so no + proof of an application defect remains; the cause of the delay is not + established (not measured, not traced). Diagnosis: RUST.md §10.12; the + recette server's cache headers fix stays (a demonstrated, separate + defect). - 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). diff --git a/docs/development/R4_J2.md b/docs/development/R4_J2.md index 8de8a609..75de826a 100644 --- a/docs/development/R4_J2.md +++ b/docs/development/R4_J2.md @@ -56,7 +56,7 @@ and whether the tab survived. |---|---|---| | J2.1 | FR export: import `1-reference/r3-demo.fr.logos.pdf`, tap « Exporter en PDF » | a download named `bilan--.pdf`; opened, 7 pages identical to the imported file: the same texts, the four logos (header, footer, ZenQuality, the partner drawing), the anatomy views with the observation's zones highlighted in the accent colour, the severity pill, the conclusion page, the pagination « n / 7 » | | J2.2 | EN export: switch the language to English in the editor, export again | the same pages in English (« GENERAL VIEW », « FINDINGS — », « Powered by »); the animal and practitioner names unchanged | -| J2.3 | Without logos: import `r3-demo.fr.nologos.pdf`, export | the header shows the site name as text, the footer the credit texts (« zenquality.fr », « @paws.iin.harmony ») in place of the logos; no alert | +| J2.3 | Archive without logos: import `r3-demo.fr.nologos.pdf` (its archived branding has the four logo slots empty), export | the exported file carries the application's current branding, the four logos as in J2.1 (header, footer, ZenQuality, the partner drawing), not the archive's empty slots; no alert. Owner decision 2026-10-21 (RUST.md §10.12): a new export from the editor is a new document with the current branding; the archive keeps its own data for a faithful reproduction by the tool (`export_from_envelope`) | | J2.4 | Links: in the exported file of J2.1, tap the header logo and the two footer credits | they open `faunosteo.com`, `zenquality.fr` and the partner's Instagram page | | J2.5 | Real rasters: import `r3-real.v2full-obs1.fr.logos.pdf`, export, zoom at 400 % on the main view of the first observation | the drawing is crisp (1200 px wide raster), the highlighted zones and the halo as in the imported file | | J2.6 | Large export on the phone (E4): import `2-large/L.fr.logos.pdf`, export | the download arrives (note the time; the development machine takes 7 s in Chromium); the tab survives, no reload, no memory warning; the file opens with 61 pages | diff --git a/docs/development/R4_J2_RESULTS.md b/docs/development/R4_J2_RESULTS.md index fee39753..075c4460 100644 --- a/docs/development/R4_J2_RESULTS.md +++ b/docs/development/R4_J2_RESULTS.md @@ -20,7 +20,7 @@ outside the OD-6 list, reported as run. |---|---|---|---|---|---|---| | 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 without logos | NON TESTÉ | NON TESTÉ | NON TESTÉ | NON TESTÉ | NON TESTÉ | FAIL | +| 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) | | 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é | @@ -35,11 +35,15 @@ outside the OD-6 list, reported as run. Notes (FAIL, incidents, timings, memory warnings, reloads): -- J2.3 FAIL (owner, 2026-10-21): after importing `r3-demo.fr.nologos.pdf`, +- J2.3 (owner, 2026-10-21): after importing `r3-demo.fr.nologos.pdf`, the exported PDF shows the graphic logos in the header and the footer. + Declared FAIL against the R4.6 expected result, which was wrong. Diagnosis: RUST.md §10.12 (the editor export embeds the application's - bundled branding, never the imported archive's; the expected result - written at R4.6 does not match that rule); owner decision pending. + bundled branding, never the imported archive's). Owner decision, option 1: + 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. Recommendation (filled after the run): accept R4.6 as is / accept with follow-ups / do not accept, and why. diff --git a/docs/development/R4_MINI_RECETTE.md b/docs/development/R4_MINI_RECETTE.md index 3a9824ca..9806d769 100644 --- a/docs/development/R4_MINI_RECETTE.md +++ b/docs/development/R4_MINI_RECETTE.md @@ -1,9 +1,9 @@ # R4 mini-recette after R4.10 (J1.7 and its dependencies) Re-runs only what R4.10 touched: the offline import (J1.7) and the import -path it shares with J1.1 and J1.13. Diagnosis: RUST.md §10.12. J2.3 waits -for the owner's decision on the branding of a re-export; nothing to run for -it until then. +path it shares with J1.1 and J1.13. Diagnosis: RUST.md §10.12. J2.3 is +settled by the owner's decision (option 1, the expected result corrected in +R4_J2.md): nothing to run for it. ## 1. Setup (computer, development machine) @@ -37,7 +37,24 @@ limitation to note. If M1 opens but M2 hangs, the defect is Faunosteo's and R4.10 continues. If M2 passes from the local copy but failed from the share at J1, the kit's location caused it. -## 3. What to report +## 3. Results (owner, 2026-10-21, Firefox and Brave, kit stored locally) + +| Check | Result | +|---|---| +| M1 | PASS, the dialog opens after about 60 s | +| M2 | PASS, the dialog opens after about 60 s, then the import works | +| M3 | NON TESTÉ | +| M4, M5 | NON TESTÉ in the mini-recette; the earlier J1 declarations stand | +| M6 | NON TESTÉ (iPhone not available) | + +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 +Faunosteo defect remains for this symptom; the cause of the delay is not +established and is not claimed. J1.7 is a functional PASS with a +performance reserve (`R4_J1_RESULTS.md`). No application change for this +symptom without proof of a Faunosteo defect. + +## 4. What to report Per check and browser: PASS / FAIL / NON TESTÉ; the operating system of the computer and the browser versions; how the network was cut (Wi-Fi off, diff --git a/docs/development/RUST.md b/docs/development/RUST.md index 40844df5..ed89f666 100644 --- a/docs/development/RUST.md +++ b/docs/development/RUST.md @@ -2226,10 +2226,15 @@ core alone no longer compiled with no feature (`facade::restore_copy` used the feature-gated reader's cap; the workspace run unified the wasm crate's features and hid it from `rust:check` and `check:all`): fixed, and `rust:check` now lints the core alone; pass 2 found the §6 register without -the J2 merge-gate row: added; pass 3 CONFORME 16/16. The floor lists the 21 -test files R4.8 deleted (approved in the owner's brief, every case in the -ledger with a present target): they clear formally only with the owner's -own `[gated]` line. Security, fresh: pass 1 BLOCK(1) on the R4.1 +the J2 merge-gate row: added; pass 3 CONFORME 16/16. The floor lists the +test files R4.8 deleted (23 by `git log --diff-filter=D` on 0dc1ba2, the +one deleting commit of the branch; the verifier counted 21): approved in +the owner's brief, 22 traced case by case in the ledger with a present +target, the glue's `pdf-export.ts-engine.test.ts` traced in §10.10; the +owner's written approval is the R4.9 contract's header (2026-10-20) and +BDR-064. The floor clears formally only with the owner's own `[gated]` +line; the owner asked (2026-10-21) for the trace to be verified, not for +a marker. Security, fresh: pass 1 BLOCK(1) on the R4.1 `.gitleaks.toml` path allowlist, which carries no owner `[gated]` marker (the owner approved it on 2026-10-18; only the owner adds the marker), and a MEDIUM, the recette server bound every interface on an empty `--host`; @@ -2282,6 +2287,17 @@ dialog opening on a network folder (the kit read from a share) but nothing proves it yet: the mini-recette's discriminating step settles it (Ctrl+O offline in an empty tab, the kit copied to a local folder). +Settled by the owner (2026-10-21, mini-recette M1 and M2 on Firefox and +Brave, the kit stored locally): with the system's network cut, the file +dialog takes about one minute to open, from Ctrl+O in an empty tab as from +the Faunosteo button alike, and the offline import then works. The +symptom exists outside Faunosteo, so no proof of an application defect +remains; J1.7 is a functional PASS with a performance reserve on the +picker's opening. The cause of the minute is not established (the share +hypothesis is not confirmed; nothing was measured or traced) and no +application change follows without proof of a Faunosteo defect. The +recette server's cache fix stays: a demonstrated defect on its own. + **B. J2.3, export without logos (FAIL).** The reference file `1-reference/r3-demo.fr.nologos.pdf` carries an archive whose branding has the four logo slots `null` (the R3 oracle's `nologos` mode: the logo fetch @@ -2300,3 +2316,41 @@ result of J2.3 written at R4.6 was wrong: it described the oracle's rules and the expected result untouched); an owner decision is needed: keep the rule and correct the expected result of J2.3, or make a re-export of an imported bilan reuse the archived branding (a product change). +Owner decision (2026-10-21): option 1. A new export from the editor is a +new document with the application's current branding; the archive keeps +its own branding for a faithful reproduction by the tool +(`export_from_envelope`). Only the expected result of J2.3 and the recette +documents changed; the owner's observed result is acceptable under the +corrected rule, subject to the logos shown being the current branding. + +**C. The footer's ZenQuality logo under the production CSP (2026-10-21, +owner's ask).** `Footer.tsx` loaded « Propulsé par » from +`https://zenquality.fr/assets/logo-horizontal-1024.png` since the footer +exists (caac149, 2026-05-21), and DEPLOY.md's CSP, `img-src 'self' data: +blob:`, dates from the same day (98117b3). Impact: on an origin that sends +that policy, the image is refused and its slot shows the alt text +« ZenQuality » (or the browser's broken-image mark); the link itself still +works, nothing else on the page depends on it. The exported PDF is not +affected: `pdf/branding.ts` embeds the bundled `zenquality-logo-fr.png`, +never a fetched file. Where the policy lives: the VPS reverse proxy +(DEPLOY.md, nginx Option A or Caddy), not `docker/nginx.conf`, which sets +no CSP; `faunosteo.com` answered with no `Content-Security-Policy` header +on 2026-10-21 (HEAD request), so the live site does not refuse it today. +Why the recettes did not report it: the J1 / J2 checklists carry no +footer item, and the development server (`pnpm dev`) sets no policy; the +headless CSP proofs did see it, on every page since the R2 app-image proof +(§8) and in `r4-app-csp.mjs` (§10.3), recorded as "the one known +violation" and excluded from their verdict. Fix (R4.10j): the same file +bundled under `src/assets/brand/zenquality-logo-horizontal.png` (1024 × +237, the bytes fetched from zenquality.fr on 2026-10-21, sha256 +`8625f6b1…`) and imported with `?url` like the partner's drawing, so the +pixels do not change and the CSP stays as documented; the hotlink no longer +sends the visitor's address to a third party either. +`components.Footer` pins it (every footer image served by the application; +the test fails on the hotlinked version); `r4-app-csp.mjs` drops its +known-host exception, any violation is now a problem: 12 passes, no +violation, no report (`results/2026-10-21-r4-csp.json`); +`r4-offline-import.mjs` 6 runs as expected on the same build +(`results/2026-10-21-r4-offline-import.json`). The two `?inline` PDF logos +and the `fr` variant are untouched: the footer shows the file it always +showed.