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).
+1
View File
@@ -506,3 +506,4 @@ R5.4: `draft/{labels,changelog,review_report,drawing,overlay,app_review,svg_comp
- 2026-11-02 V1-2.3 closed (BDR-093, risk register §13.1), e2e:sheet-assets sandbox alias, V1-2.4 maquettes proposal. TWO DEV READ INCIDENTS: old DEV sheet-assets script ran from main checkout at 23:03:49 (executor, backgrounded cd) and 23:10:59 UTC (orchestrator, unquoted heredoc backticks); 13 GET each, no write, DEV not restarted. Stopped, reported to owner.
- 2026-11-02 incident containment: bugfix sheet-assets guard merged into develop 6287e5b (always refuses there), refusals proven without IP sockets, security PASS; incident report reconciled (13 GET each); LRN-110 supersedes LRN-102. V1-2.4 maquettes: design review applied, security PASS on V1-2 runner, verifier ECARTS(1) (§13.1 register in the maquettes commit, owner-ordered). Graphic checkpoint.
- 2026-11-02 V1-2.4 G1/G2 fixed on owner brief: phantom warning board 06 removed, « Mark as reviewed » to arbitrate, fingerprint + verdict_refused messages match code; only 06/12 re-rendered, contact sheet + REVUE.md; fresh verifier CONFORME; 98e8403 pushed. Graphic checkpoint, no approval.
- 2026-11-02 V1-2.4 owner: UX decisions 2-11 ratified, item 3 = hidden catalogue entry + « Accès non autorisé » page, reviewer-only keeps limited Administration (asked: point 4 conflicted with boards 07/09/10), §6.5 alert divergence recorded. BDR-094. Boards unchanged; visual validation + 32 labels open.