chore(memory): BDR-094 V1-2.4 catalogue access UX, journal

This commit is contained in:
bchanot committed 2026-11-02 12:53:29 +01:00
1 parent 7979506f35
commit fdf0f7f023
4 files changed
+22 -1

No files matched your search

+14
View File
@@ -708,3 +708,17 @@ Also kept by owner: per-document-instance prefix required on top of per-view pre
**Rationale**: definitive failures deterministic for frozen input → one child run, not five; transient by environment keeps retries; SQL owns code policy so any worker honours it. Evidence: RUST.md §13.1, V1-2 contract §6.4/§6.5, gates on 3c141c9 (check:all, pgTAP 1898, verify-e2e 10/10, avatar-e2e 5/5, e2e:shell 86, DEV untouched).
**Alternatives**: retry every worker code (five identical runs on deterministic failure, refused by owner); per-call `final` flag in RPC (signature change, rejected); rusage-based timeout classification (needs `unsafe`, deferred by owner).
## BDR-094 — V1-2.4 catalogue access UX (O21): hidden entry, « Accès non autorisé » page, reviewer keeps limited Administration; §6.5 alert divergence recorded (2026-11-02)
- **Status**: accepted
**Decision**: owner brief « V1-2.4 : validation de la décision UX n° 3 » (2026-11-02, on 1a68cd8). Signed-in account without catalogue right (`private.can_read_official_catalog` false, O21):
1. Sidebar and drawer hide « Fiches anatomiques » (`/app/anatomy`; owner's « Catalogue anatomique » = same entry, name kept).
2. Direct URL (`/app/anatomy`, `/:sheetId`, `/versions/:n`) → page « Accès non autorisé »: explanation + link back to `/app`. Same page whether sheet exists or not (no existence oracle).
3. Server checks, capabilities, RLS unchanged; hidden entry protects nothing.
4. Reviewer-only account (`sheet_reviewer` only) keeps « Administration » entry to reach its rounds (boards 07, 09, 10; §11.1 E,V,P; R1 « À relire »), sees no entry or action it cannot use: no « Nouvelle fiche », « Créer une copie de travail », « Accès et habilitations », species creation or activation. Owner chose this reading of « ne pas exposer les entrées d'administration » (AskUserQuestion), boards unchanged.
5. Not signed in → `RequireAuth` → `/login?next=` (IDENTITY.md); signed in, not entitled → « Accès non autorisé ». Never mixed.
Also: G1/G2 corrections validated, conformance 8/8 acknowledged; UX decisions 2-11 of the 2026-11-02 checkpoint list ratified (3 settled here); item 1, labels, open. §6.5 « reported to the operator » for `verification.worker.verdict_refused` diverges from code: worker logs `complete_malformed` at error level, RPC keeps code on round + audit, no notification; recorded, no alert mechanism added. Still open: owner visual validation of 12 boards, 31 FR/EN labels.
**Rationale**: O21 right ≠ authentication ≠ capability (§5.3), so UI must tell the three apart; fail-closed, server decides. Hiding entry for reviewers would cut R1 (no e-mail in V1-2). Implementation (V1-2.5): visibility hint from own `anatomical_catalog_grants` rows (select policy `user_id = auth.uid()`), page decision from server refusal, never the hint.
**Alternatives**: show catalogue page with explanation for everyone (rejected by owner); hide « Administration » from reviewer-only accounts with separate « À relire » entry (needs boards 07, 09, 10 redrawn, not chosen); rename entry « Catalogue anatomique » (design change, not chosen).