Contract §17.10 (V1-2.1 VERIFIED at ac71c5b, V1-2.2, V1-2.4 approved), §3 EN « Permission », §12.3 M7 admin reads, §16.6 SQL and working-copy action, §16.2 state; step contract and plan.
2.3 KiB
2.3 KiB
Plan: V1-2.5 administration space, rights, species, MFA, catalogue
Contract .claude/tasks/contracts/2026-11-02-v1-2-5-admin-catalogue.md (C1 to C12). Branch
feature/v1-2-anatomical-sheets, sandbox only. One slice = one coherent change, committed and pushed when its
own checks pass. Slices A, B and C have no dependency on each other; D needs B and C; E to I need D.
| Slice | Content | Criteria | Checks |
|---|---|---|---|
| A | GoTrue MFA behaviour on the sandbox: packages/supabase/tests/sandbox/mfa-behaviour.sandbox.ts with the existing mfa.ts / totp.ts; findings written into IDENTITY.md. STOP for the owner if aal1 enrols a second factor or removes a verified one |
C1 | sandbox suite |
| B | M7 supabase/migrations/20261102100000_sheet_admin_reads.sql: list_official_sheets_admin(), get_official_sheet_admin(sheet_id); pgTAP 022; types; sandbox fresh + upgrade from M6 |
C9 | PGlite, db:sandbox test-db, db:types --check |
| C | Core op sheet.empty (wraps create_empty_sheet_document: species, names, slug), wasm facade, ts-rs types |
C5 | rust:check, wasm:build, core-wasm proofs |
| D | packages/supabase: MFA wrappers (list, enrol, challenge and verify, unenrol, assurance level), species, working copy, account lookup, M7 reads, catalogue reads (versions of a sheet, drawing download), closed failure kinds; unit tests |
C1-C9 | test:run, typecheck, lint |
| E | Shell: nav entries and their hints (own grants + roles), guards RequireCatalog and RequireAdmin (step-up), « Accès non autorisé » page, routes |
C3, C4 | unit, e2e |
| F | Mon compte, Sécurité: factor list, enrolment (QR, secret once), verification, naming, removal; step-up screen | C2 | unit, e2e |
| G | Administration page (board 10), species screens, rights screen | C4, C6, C7 | unit, e2e |
| H | Sheets list with filters, creation (inline species), overview, working copy action | C5 | unit, e2e |
| I | Catalogue list (board 01), sheet page (board 02, 03), version page; PreviewSheet load path, canvas with zoom and pan |
C8 | unit, e2e |
| J | e2e:shell journeys A0, A1, S1, P1, access per right, MFA, refresh, axe, viewports, FR/EN |
C11 | pnpm e2e:shell |
| K | Docs, check:all, fresh verifier + security, memory, checkpoint report with the label proposals |
C10-C12 | all gates |