From 2c9d837e7bef09d6c2566aaa6e7f573509b4441d Mon Sep 17 00:00:00 2001 From: bchanot Date: Tue, 17 Nov 2026 01:18:32 +0100 Subject: [PATCH] docs(docs): R4 contract evidence lines, criterion 9 oracle, scope rulings --- .../tasks/contracts/2026-11-17-r4-card-integrity-0004.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.claude/tasks/contracts/2026-11-17-r4-card-integrity-0004.md b/.claude/tasks/contracts/2026-11-17-r4-card-integrity-0004.md index 5f816ed1..ead29cd0 100644 --- a/.claude/tasks/contracts/2026-11-17-r4-card-integrity-0004.md +++ b/.claude/tasks/contracts/2026-11-17-r4-card-integrity-0004.md @@ -89,6 +89,8 @@ Aucune fusion ni intervention sur DEV. ## CLARIFICATIONS - Graphic reference: board 30 `docs/design/v1-2-6-r0/30-catalogue-carte-integrite.png` (approved as is, 2026-11-09). Wording: A10 (`docs/design/v1-2-6-r0/ARBITRAGES.md`), REVUE.md:85. +- Criterion 9: the CHECK greps each dictionary's own quote convention (double quotes in fr.ts for a text holding an apostrophe, single quotes in en.ts); the text is what binds. +- File scope extended by controller rulings (2026-11-17): `apps/app/src/components/ui/Card.tsx` (optional `aria-busy` prop, required by criterion 5), `apps/app/e2e/support/records.ts` (the `capturedId` UUID guard shared by the cleanup of criterion 11 and by `seedGrant`, security LOW). Both additive; flagged to the owner. - D4 ruling: the spec archives its own published sheets (reachable state, out of the catalogue) rather than soft-deleting them, because the application never deletes a sheet that had a published version (§6.9); the owner's authorisation of soft deletion covers it. Its own grant is revoked by id. ## ACCEPTANCE CRITERIA @@ -101,12 +103,15 @@ Aucune fusion ni intervention sur DEV. 7. The check is never bypassed or changed: nothing under `crates/`, `packages/core-wasm/`, `apps/app/src/catalogue/catalogue.ts`, `apps/app/src/catalogue/preview.ts`. CHECK: cd /home/bchanot/Documents/faunosteo-v1-2 && [ -z "$(git diff --name-only b895ecf..HEAD -- crates packages/core-wasm apps/app/src/catalogue/catalogue.ts apps/app/src/catalogue/preview.ts)" ] && echo CHECK_UNTOUCHED EXPECT: CHECK_UNTOUCHED + EVIDENCE: MET exit=0 marker-found :: CHECK_UNTOUCHED 8. The sheet page is unchanged. CHECK: cd /home/bchanot/Documents/faunosteo-v1-2 && [ -z "$(git diff --name-only b895ecf..HEAD -- apps/app/src/app/routes/app/anatomy/SheetRoute.tsx apps/app/src/components/catalogue/CatalogueFailureNotice.tsx apps/app/src/catalogue/useSheetVersion.ts)" ] && echo PAGE_UNCHANGED EXPECT: PAGE_UNCHANGED + EVIDENCE: MET exit=0 marker-found :: PAGE_UNCHANGED 9. One new key with the exact A10 texts, fr / en parity. CHECK: cd /home/bchanot/Documents/faunosteo-v1-2/apps/app && grep -q "'catalogue.card.integrity_failed': \"Contrôle d'intégrité échoué : cette version ne peut pas être affichée.\"" src/i18n/fr.ts && grep -q "'catalogue.card.integrity_failed': 'Integrity check failed: this version cannot be displayed.'" src/i18n/en.ts && echo A10_OK - EXPECT: A10_OK (quote style may differ per the dictionaries' convention; the text is what binds) + EXPECT: A10_OK + EVIDENCE: MET exit=0 marker-found :: A10_OK 10. Browser proof on the sandbox (`apps/app/e2e/shell/catalogue-integrity.spec.ts`): integrity in fr and en at desktop and 375 px (line, « Consulter » opening the unchanged sheet page notice, axe, no sideways scroll, 44 px); network in fr on both projects (abort one version with `route.fallback()` for the rest, remount by search, « Réessayer », focus). Exact counts recorded. 11. D4 / P2: the spec cleans only what it created, by captured id: each own sheet archived through `private.set_sheet_status` and read back, its own grant revoked by id and read back; no statement matches by pattern; a guard before / after shows no pre-existing row changed. 12. P1: `V1-2-6_OWNER_TRIAL.md` §4.16 in French on `pnpm db:sandbox trial` names the sandbox's pre-existing failing entries (anomaly A, by name, from a read-only query) and tells them apart from R4's own behaviour; the offline step names the remount and the wait.