chore(memory): V1-2.6 owner arbitrations, plan revised, re-check REMAINING(1)

This commit is contained in:
bchanot committed 2026-11-03 22:04:29 +01:00
1 parent ee6decbe4e
commit f34381c242
5 files changed
+235 -44

No files matched your search

@@ -160,6 +160,18 @@ committed Inkscape 1.4.3 export (`crates/core/tests/fixtures/svg/exports/inkscap
cleaning offered) plus a hostile file; the owner may import a drawing of their own at the trial.
Q: Undo / redo control (not on board 04) / A: [gated 2026-11-03] two icon buttons « Annuler » and « Rétablir »
in the tool column under the zoom, plus Ctrl+Z and Ctrl+Shift+Z.
Q: Plan approval (8 visible choices, rescue copy) / A: [gated 2026-11-03] owner brief « GO propriétaire V1-2.6 »:
plan, lots A-M, C1-C24 and the 8 choices approved; M8 on the throwaway sandbox only; no JSON export button for the
recovery copy; local recovery kept with exact messages on its state and limits; a local restore never silently
overwrites a newer server revision; execution gated on a targeted independent re-check of the six FATAL fixes.
Q: Re-check REMAINING(2) (default radius out of frame; pending copy overwritten) / A: [gated 2026-11-03] owner
brief « arbitrages propriétaire sur REMAINING(2) »: radius `min(12 + 0.03 × max(w, h), min(w, h) / 2)` in the
drawing's frame, the clicked position kept when a valid radius exists, a position correction shown and confirmed,
never silent, never below the core's minimums, never `out_of_frame`, the core keeps the authority; editing blocked
while a recovery offer is unanswered (« Restaurer la copie » / « Ignorer la copie », consultation allowed); conflict
N from `draft_version.revision`, author and date from `draft_last_save`, failed read → « Recharger » / « Réessayer »,
« Garder ma version » disabled; two-copy cap kept with no automatic eviction of an unresolved copy; AAL2 residual
risk recorded, not fixed; second targeted re-check, then execution without a new authorisation if conforming.
## ACCEPTANCE CRITERIA
@@ -258,6 +270,41 @@ checked across develop, main, feature/v1-1, feature/v1-2: next free were BDR-099
owner.
24. Constraints: work on `feature/v1-2-anatomical-sheets` only, regular commits and pushes, no merge, no DEV
operation, no DEV worker, no DEV migration, no production deployment, no V1-2.7 work.
25. [gated 2026-11-03] The plan's eight visible choices are built as approved; no JSON export or import of the
recovery copy; every message about the copy says it is temporary, limited to this tab and not saved on the
server, and reads the real write flag.
26. [gated 2026-11-03] Default point: radius `r0 = min(12 + 0.03 × max(w, h), min(w, h) / 2)` in the view's frame
as composed by the core (composed root `viewBox`, origin kept); the clicked position is kept with r0 when the
circle fits, else with a smaller radius when the core accepts it; otherwise a corrected position is shown
beside the original click and used only after an explicit confirmation, with a cancel; no point is ever
created `out_of_frame` or `too_small` by the page's defaults, and no geometry commit leaves the changed
annotation `out_of_frame` (rolled back before anything is kept); the decision is the core's report, TypeScript
holds no copy of the frame or size rules; Node-core unit tests cover 40×30, 20×20, 100×300, very elongated
frames, non-zero origins, clicks on edges and corners, equality at the edge, 0.01 rounding and large
coordinates.
27. [gated 2026-11-03] A recovery offer left unanswered blocks every document change: the store refuses commit,
undo, redo, save and submit, and the copy is neither written nor removed; consultation stays; « Restaurer la
copie » goes through the core and keeps the copy's base revision as the expected revision (`staleBase` when
older, never converted to the server's); « Ignorer la copie » is confirmed, removes the copy and resumes from
the server version; a copy the core refuses is reported, kept, never applied, and editing stays blocked until
it is ignored.
28. [gated 2026-11-03] A copy is removed only by a successful save leaving nothing unsaved, or a confirmed
« Annuler les modifications », « Ignorer la copie », « Recharger » or « Abandonner cette copie »; never on
undo, never by automatic eviction; at most two copies of other versions of the account; when the cap or the
storage quota prevents keeping the current copy, the page says so and lists the other copies for an explicit,
confirmed abandonment; unit tests for the cap, the quota and pending copies.
29. [gated 2026-11-03] Conflict dialog: N from `draft_version.revision`, author and date from `draft_last_save`
only when its revision is N, never invented; a failed read offers « Recharger » and « Réessayer » only, with
« Garder ma version » disabled; a confirmed replacement saves with `expected_revision = N` under the server's
atomic check, and a new concurrent save re-opens the dialog instead of writing.
30. [gated 2026-11-03] Tests named by the owner, in e2e on a fresh sandbox: concurrent save between two sessions,
older-copy restore, a pending offer blocking edits, permission changes during an open session (grant revoked,
grant expired, admin role removed), drawing import (hostile and valid), keyboard-only paths, a point near the
edge of a detail crop (correction confirmed and cancelled); the full non-equine journey (C21).
31. [gated 2026-11-03] Records: the AAL2 residual risk (catalogue RPCs check the token's `aal2` claim, not the live
session, until the token expires after a factor removal) written in the V1-2 contract §13 as a production
prerequisite, not declared fixed, no authentication change in V1-2.6; the LRN-095 and BLK-013 id collisions
with develop recorded for the reconciliation before the merge, registries not renumbered.
## FILE SCOPE
@@ -267,7 +314,8 @@ checked across develop, main, feature/v1-1, feature/v1-2: next free were BDR-099
- apps/app/tests/unit: editor tests; apps/app/e2e/shell: editor specs and support helpers; e2e fixtures
- packages/supabase/src: sheet asset register / upload / confirm accessors and kinds, exports, unit tests
- packages/core-wasm/src: a TS wrapper only if the glue needs one (no Rust change planned)
- docs: BROWSER_TESTS.md, V1-2 contract state lines (§16.7), design README / REVUE pointers, owner test
- docs: BROWSER_TESTS.md, V1-2 contract state lines (§16.7) and §13 residual risks (AAL2 line, [gated 2026-11-03]),
ANNOTATION-RENDERING.md editor overlay section, design README / REVUE pointers, owner test
procedure, label proposals under .claude/audits
- .claude/tasks (plan, TODO), .claude/memory (through memory.sh)
- NOT in scope: crates/**, supabase/migrations/** (except a read migration if the owner chooses it),