From f34381c242fe5a6467346085ec490948a0e1fd10 Mon Sep 17 00:00:00 2001 From: bchanot Date: Tue, 3 Nov 2026 22:04:29 +0100 Subject: [PATCH] chore(memory): V1-2.6 owner arbitrations, plan revised, re-check REMAINING(1) --- .../2026-11-03-v1-2-6-label-proposals.md | 8 + .claude/memory/journal.md | 1 + .claude/tasks/TODO.md | 5 +- .../2026-11-03-v1-2-6-editor-1509.md | 50 +++- .../tasks/plans/2026-11-03-v1-2-6-editor.md | 215 ++++++++++++++---- 5 files changed, 235 insertions(+), 44 deletions(-) create mode 100644 .claude/audits/2026-11-03-v1-2-6-label-proposals.md diff --git a/.claude/audits/2026-11-03-v1-2-6-label-proposals.md b/.claude/audits/2026-11-03-v1-2-6-label-proposals.md new file mode 100644 index 00000000..04838411 --- /dev/null +++ b/.claude/audits/2026-11-03-v1-2-6-label-proposals.md @@ -0,0 +1,8 @@ +# V1-2.6 new FR/EN labels: proposals for the checkpoint + +Ratified wordings used verbatim (REVUE.md, V1-2 contract §17.9, §17.11, L15). Wordings fixed by the owner on +2026-11-03: « Restaurer la copie », « Ignorer la copie » (local recovery offer); « Recharger », « Réessayer », +« Garder ma version » (conflict dialog). Everything below is a proposal, not ratified: it goes to the owner's +separate review and is never declared approved. + +Each lot appends its rows to its own section (key, FR, EN, where it shows). diff --git a/.claude/memory/journal.md b/.claude/memory/journal.md index 5e52be57..3ca9ad62 100644 --- a/.claude/memory/journal.md +++ b/.claude/memory/journal.md @@ -516,3 +516,4 @@ R5.4: `draft/{labels,changelog,review_report,drawing,overlay,app_review,svg_comp - 2026-11-03 V1-2.5 owner checkpoint corrections (f5456f3): three permission states (creation page order loading, server refusal, failed read, editor rule; admin home notice; reloadAccess keeps held roles), Paris end-of-day expiry, species order 0..9999 in M7, labels, TOTP reuse measured (code accepted by several sessions in step N and N+1, refused N+2), lost-factor review = production prerequisite. 2 state-dependent sandbox tests fixed. Gates green on fresh stack, security PASS, verifier CONFORME. V1-2.5 VERIFIED. No DEV, no merge. - 2026-11-03 owner accepted V1-2.5 final checkpoint b4415a3 (V1-2.5 VERIFIED): BDR-099 decisions, LRN-113 TOTP reuse/Storage 409/sandbox order. V1-2.6 editor level 1 authorised (brief « Validation V1-2.5 et autorisation V1-2.6 »). - 2026-11-03 V1-2.6 owner GO conditional on six FATAL re-check. Fresh verifier: REMAINING(2): fixes 1-5 closed, I1-I5 hold; radius fix 6 opens out_of_frame on small frames; I6 broken (pending recovery copy overwritten by first commit). 2 MINOR. LRN-095 collision + BLK-013 trap in TODO. Executor not launched, STOP. +- 2026-11-03 V1-2.6 owner arbitrations on REMAINING(2) integrated (C25-C31, AAL2 risk V1-2 §13 + RR-12, RR-11 collision noted). Second fresh re-check REMAINING(1): F1 accept trusted core silence on unmeasured views (no drawing / no usable frame); 7 MINOR. All integrated in plan; C26 refinement for inherited out-of-frame edits awaits owner. Executor not launched, STOP. diff --git a/.claude/tasks/TODO.md b/.claude/tasks/TODO.md index 329ff537..a1bdd567 100644 --- a/.claude/tasks/TODO.md +++ b/.claude/tasks/TODO.md @@ -671,9 +671,9 @@ Order (BDR-071): P0 docs + decisions → V1-1 clients and animals → V1-2 sheet - [x] L2 expiry end of day Europe/Paris, species order 0..9 999 in M7, labels, TOTP key test: app 696, supabase 148, pgTAP 1965 fresh + upgrade, types match - [x] L3 TOTP reuse measured (code accepted by several sessions in its step and the next, refused at N+2), lost-authenticator review (production prerequisite), decisions in docs; sandbox test 103 + 10 skipped x2 - [x] L4 gates: check:all green (dcb1a94; delta = sandbox test + docs), fresh stack test-db 1965, e2e:shell 110 + 8 skipped, sandbox test 103 + 10 skipped after e2e, upgrade from M6 1965 + types match; security PASS x2; verifier ECARTS(6) -> CONFORME; two state-dependent sandbox tests fixed (0499a39, f5456f3); suites need a fresh stack in order test-db, e2e:shell, test - - [ ] V1-2.6 editor level 1: plan APPROVED by the owner 2026-11-03 (brief « GO propriétaire V1-2.6 »: 13 lots A-M, C1-C24, 8 visible choices, M8 sandbox only, no JSON export button, recovery messages exact), gated on a targeted independent re-check of the six FATAL fixes. Re-check 2026-11-03: REMAINING(2) — fixes 1-5 closed, I1-I5 hold; fix 6 (r = 12 + 3 %) opens `out_of_frame` on frames under ~25.5 units (hitbox r in frame bounds); I6 broken: the first commit overwrites a pending recovery copy before « Restaurer » / « Ignorer »; 2 MINOR (N source when the admin read fails, two-copy cap). Executor NOT launched; STOP for the owner. Contract `.claude/tasks/contracts/2026-11-03-v1-2-6-editor-1509.md`, plan `.claude/tasks/plans/2026-11-03-v1-2-6-editor.md`; sandbox only, no DEV, no worker on DEV, no merge, no V1-2.7; STOP at the V1-2.6 owner checkpoint (trial procedure) + - [ ] V1-2.6 editor level 1: plan APPROVED by the owner 2026-11-03 (brief « GO propriétaire V1-2.6 »: 13 lots A-M, C1-C24, 8 visible choices, M8 sandbox only, no JSON export button, recovery messages exact), gated on a targeted independent re-check of the six FATAL fixes. Re-check 2026-11-03: REMAINING(2) — fixes 1-5 closed, I1-I5 hold; fix 6 (r = 12 + 3 %) opens `out_of_frame` on frames under ~25.5 units (hitbox r in frame bounds); I6 broken: the first commit overwrites a pending recovery copy before « Restaurer » / « Ignorer »; 2 MINOR (N source when the admin read fails, two-copy cap). Executor NOT launched; STOP for the owner. Owner arbitrations 2026-11-03 (« arbitrages propriétaire sur REMAINING(2) »): C25-C31 gated, plan revised; second targeted re-check: REMAINING(1), no BLOCKER, F1 MAJOR (accept trusted the core's silence on unmeasured views) + 7 MINOR, all integrated in the plan; C26 refinement awaits the owner; executor NOT launched, STOP. Contract `.claude/tasks/contracts/2026-11-03-v1-2-6-editor-1509.md`, plan `.claude/tasks/plans/2026-11-03-v1-2-6-editor.md`; sandbox only, no DEV, no worker on DEV, no merge, no V1-2.7; STOP at the V1-2.6 owner checkpoint (trial procedure) - [ ] A M8 draft_last_save · [ ] B sheet asset accessors · [ ] C preview mutators, edit ops, ids · [ ] D editor store, undo, recovery · [ ] E route, modes, tabs · [ ] F Général, Références, Vertèbres · [ ] G views + upload · [ ] H Annotations · [ ] I Constats · [ ] J Vérification + submit · [ ] K e2e · [ ] L owner trial tooling · [ ] M gates, reviews, checkpoint - - [ ] MANDATORY before merging V1-2 into develop (owner 2026-11-03): registry id reconciliation. LRN-095 collides: develop 09655b2 « Port a safe runner verbatim… » (2026-11-02) vs V1-2 « pgTAP across PGlite and the real Supabase image… » (2026-10-28, cited by BDR-084 and the V1-2.1 TODO lines). BLK-013 exists on develop only (« e2e:avatar on develop reached DEV »): `memory.sh` on V1-2 would hand out BLK-013 again, so a V1-2 blocker needs its id checked against develop first. No renumbering during V1-2.6 unless needed; renumber one side and patch its citers at the merge + - [ ] MANDATORY before merging V1-2 into develop (owner 2026-11-03): registry id reconciliation. LRN-095 collides: develop 09655b2 « Port a safe runner verbatim… » (2026-11-02) vs V1-2 « pgTAP across PGlite and the real Supabase image… » (2026-10-28, cited by BDR-084 and the V1-2.1 TODO lines). BLK-013 exists on develop only (« e2e:avatar on develop reached DEV »): `memory.sh` on V1-2 would hand out BLK-013 again, so a V1-2 blocker needs its id checked against develop first. Same for the TODO release-readiness ids: RR-11 is develop's (« sandbox-only e2e follow-ups »), V1-2 uses RR-12. No renumbering during V1-2.6 unless needed; renumber one side and patch its citers at the merge - [ ] V1-2.5 catalogue, admin space, rights, species, MFA · V1-2.6 editor level 1 · V1-2.7 preview, review, publication UI · V1-2.8 equine working copy and review preparation · V1-2.9 FR/EN acceptance and closure (owner checkpoints V1-2.3, V1-2.4, V1-2.6, V1-2.7, V1-2.8, V1-2.9 + each DEV operation of contract §16.11) ## Release readiness track (owner 2026-10-25, distinct from the functional roadmap; nothing here authorises a release or exposure) @@ -688,6 +688,7 @@ Inventory: `.claude/audits/2026-10-25-functional-inventory.md`. Each item: treat - [ ] RR-8 mobile and end-to-end: real-browser e2e for sign-up, login, account, avatar, full editor flow, export, locale, mobile drawer (TEST_STRATEGY §1 `apps/app/e2e`); per-check device results (J1/J2 recorded as a whole) - [ ] RR-9 release 0.2.0 fate (Steps 3–6 on TS engines, 341 commits behind develop): ship, supersede, or rebase; sheet bundle default `none` - [ ] RR-10 census tools maintenance (LOW `#[ignore]` positions) and controlled oracle evolution on a new anatomical changeset +- [ ] RR-12 (RR-11 is taken on develop: « sandbox-only e2e follow-ups ») AAL2 token after factor removal, production security prerequisite (owner 2026-11-03, recorded at V1-2.6, NOT fixed): catalogue and sheet RPCs and Storage policies check the JWT `aal2` claim (`private.has_mfa()`), not the live session (`has_aal2_session()` serves role and rights RPCs only), so a token issued at `aal2` keeps passing them after a factor removal until it expires. Study a live-session check or a revocation strategy compatible with Supabase / GoTrue before production; no authentication change in V1-2.6. Recorded in V1-2 contract §13 ## Phase A — DONE (kept for reference) diff --git a/.claude/tasks/contracts/2026-11-03-v1-2-6-editor-1509.md b/.claude/tasks/contracts/2026-11-03-v1-2-6-editor-1509.md index 0aaaa895..453e5c97 100644 --- a/.claude/tasks/contracts/2026-11-03-v1-2-6-editor-1509.md +++ b/.claude/tasks/contracts/2026-11-03-v1-2-6-editor-1509.md @@ -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), diff --git a/.claude/tasks/plans/2026-11-03-v1-2-6-editor.md b/.claude/tasks/plans/2026-11-03-v1-2-6-editor.md index 0cb2b5f4..85ab38f8 100644 --- a/.claude/tasks/plans/2026-11-03-v1-2-6-editor.md +++ b/.claude/tasks/plans/2026-11-03-v1-2-6-editor.md @@ -22,13 +22,13 @@ here; executors write the code and the tests. Reading list for every executor: t module and its 600 000 B gzip budget are unchanged. - The editor reuses `CataloguePreview` (`apps/app/src/catalogue/preview.ts`), extended, never duplicated: its kept input (`document` text) and drawing list become mutable; `replaceDocument(text)` and `addDrawing(drawing)` call - the glue's `replace_document` / `add_drawing`. A new text is kept only after `replace_document` AND the following - `preview.state` both succeed; when `state` fails without a trap, `replace_document(previous)` rolls the handle + the glue's `replace_document` / `add_drawing`. A new text is kept only after `replace_document`, the following + `preview.state` AND the optional `accept(state)` all succeed (`replaceDocument(text, accept?)`, ruling R2); when `state` fails without a trap, `replace_document(previous)` rolls the handle back, so the handle, the kept input and the store never diverge. The rebuild after a trap (generation change) uses the kept input, so a text or file that trapped is never kept and never re-read automatically (LRN-058). Kept drawings are a map keyed by asset id (a re-added id replaces its entry; the builder counts entries), holding only drawings the core accepted (16 at most; `caps: drawings` gets its own message, a reload frees them). Every - successful `replaceDocument` / `addDrawing` bumps a store counter `handleVersion`. + accepted `replaceDocument` / successful `addDrawing` bumps a store counter `handleVersion` (never a refused one). - The draft handle is built with NO drawing (a draft builds with its drawings missing, §10; `add_drawing` works on a draft and `view.canvas` looks drawings up live), then each downloaded drawing is added with `addDrawing`; a refusal or a failed download becomes that drawing's state (`missing`, `hash mismatch`), never a load failure: one @@ -102,14 +102,69 @@ here; executors write the code and the tests. Reading list for every executor: t - Sélectionner/déplacer, Point, Zone, Accès à une vue détaillée, separator, Zoom (−, +, Ajuster), separator, Annuler, Rétablir. Select: a press on a marker selects it; a drag from a selected circle or polygon moves it as a block (overlay preview; on pointer-up one `update` with coordinates translated by the drawing-unit delta, - rounded to 2 decimals); a drag on empty space pans. Point: one click holds a pending circle (radius = 12 + 3 % of the - frame's smaller side, so the visible disc `2 × max(2, r − 12)` is 6 % of it and passes the 4 px rule; frame = the - composed root's viewBox; unit-tested on 500×380, 640×480, 200×150). Zone and link: clicks add vertices; + rounded to 2 decimals); a drag on empty space pans. Point: one click holds a pending circle placed by the rule + « Default point and the frame » below. Zone and link: clicks add vertices; Enter, a click on the first vertex or « Fermer le tracé » closes (3 vertices at least); Escape or « Annuler le tracé » drops it. A detail-view link opens a direct child of its own view (core rule `annotation.opens_view.invalid`): the link tool is enabled only while the current view has a direct detail child (hint otherwise), and « Vue ouverte » lists only those children, in creation and in properties; every drawing tool is disabled with « Créez d'abord une catégorie d'annotation (onglet Général). » while there is none. +- Default point and the frame (owner 2026-11-03, C26). The frame F = (x, y, w, h) is the composed root's `viewBox` + read from the core's `view.canvas` output (the view's `view_box`, else its drawing's `viewBox`; origin offsets + kept; drawing units), parsed from the attribute TEXT with `Number` (never `viewBox.baseVal`, held in f32). + Measured views only (re-check F1): F is read, and creation or geometry edits are possible, only while the view's + drawing state is `ok` AND the core's report carries no `view.frame.unknown` for that view. The core skips every + other view (no drawing held, missing, hash mismatch, rejected: `frame_faults` frame.rs:281-284; no usable frame: + only `view.frame.unknown`, frame.rs:285-288; the canvas then shows the fallback `0 0 100 100`, compose.rs:43), so + its silence there proves nothing: on such a view the drawing tools, the keyboard « Ajouter … » buttons and the + numeric geometry fields are disabled with the hint « Ce dessin n'est pas mesurable : ajoutez ou corrigez son + illustration (onglet Vues et illustrations) avant de placer ou de déplacer des éléments. », and `accept` refuses + any creation or geometry commit whose view is not measured (checked on the post-commit state, so a commit + cannot rely on a view that the same commit made unmeasurable). Default radius `r0 = min(12 + 0.03 × max(w, h), min(w, h) / 2)`, floored to 0.01. The + page only PROPOSES geometry (arithmetic); the core decides. TypeScript carries no copy of the core's frame or size + rules: no 4 px constant, no preview sizes, no twin radius, no edge tolerance. + - Proposal at click (c = the clicked point, rounded to 0.01; d = its distance to the nearest edge of F): d ≥ r0 → + candidate A (c, r0); d < r0 → candidate B (c, floor₀.₀₁(d)), the clicked position kept with a smaller + radius, only when that radius is at least 0.01 (otherwise straight to C below; the edge is inclusive in the + core, so no extra margin). A click outside F proposes nothing (hint « Cliquez à l'intérieur du dessin. »). Keyboard + « Ajouter un point »: the centre of F with r0 (fits by construction). + - The core decides at « Créer »: the insert runs through `commit(command, { accept })`: `sheet.edit` → + `replaceDocument` → `preview.state`, then `accept(report)` reads the geometry issues whose path names the new + annotation (`editor/issues.ts`); a refusal rolls the handle back with `replaceDocument(previous)` before + anything is kept (no store change, no `handleVersion` bump, no copy write). A new point is refused on + `annotation.geometry.out_of_frame` and `annotation.geometry.too_small`. + - Correction, never silent: when B is refused, or A is refused `out_of_frame` (float edge), the page computes + candidate C (radius r0, centre clamped per axis into [x + r0, x + w − r0] and [y + r0, y + h − r0], rounded + inward to 0.01; when that rounding leaves an empty interval, r0 = min(w, h)/2 with an origin off the 0.01 + grid, the exact clamped value is used: the core accepts any decimals) and shows it in the overlay with the original click marked apart (a hollow cross) and the + message « Le point ne tient pas à l'endroit choisi. Position corrigée proposée : x = …, y = …. » with + « Utiliser cette position » / « Annuler ». Confirm → C is inserted through the same `accept`; the numeric + fields and the properties show C's values only (nothing refers to the click afterwards). « Annuler » keeps the + pending point at the click so the user can change its radius or position, or drop it. A refusal of C, or + `too_small` on A or C (r0 already capped: an extremely elongated frame), creates nothing and shows the core's + issue message beside the creation panel. + - Every later geometry commit (move by drag, numeric cx, cy, r or vertex, vertex added or removed, polygon + replacing a path) uses `accept` too: rolled back when the changed annotation was in frame (or new) before the + commit and the core reports it `out_of_frame` after (message « L'élément sortirait du cadre. »). An annotation + already `out_of_frame` before the commit (inherited, restored) may be edited step by step towards the frame, + keyboard included (C7); its error stays in Vérification until it is inside. [Owner approval pending: this + refines C26's « no geometry commit leaves the changed annotation out_of_frame ».] A radius the user types that + the core reports `too_small` is committed and shown in Vérification (an explicit user value, never an + automatic reduction). Zones and links: the creation insert is refused on `out_of_frame` (tracing kept for + numeric correction or cancel). + - Frame changes (a view's `view_box` update, a drawing set or replaced on a view) use `accept` too: refused when + an annotation of that view that was in frame becomes `out_of_frame`, the refusal listing those annotations. + - No move without intent: numeric fields show the stored number exactly (no display rounding; the equine draft + holds values such as 743.0451049804688) and commit only when the typed number differs from it; a drag starts + only after the pointer travelled 4 CSS px from the press, so a click with jitter on a selected marker never + moves it. + - Unit tests on the Node core (C26): frames 40×30, 20×20, 100×300 (detail crops), 500×380, 640×480, 200×150, very + elongated 1000×30 and 4000×200, non-zero origins (e.g. `-50 20 40 30`); clicks on each edge, each corner, at + distance exactly r0 and r0 − 0.005 from an edge; coordinates near 2^20; r0 = min(w, h)/2 exactly; a non-grid + origin with r0 = min(w, h)/2; unmeasured views (a crop of span 0.5, a drawing without `viewBox`, a missing + drawing: every creation and geometry commit refused); an inherited out-of-frame point repaired by two numeric + commits; a `view_box` change refused when it pushes a point out; each case asserts the proposal, the core's + verdict on it and that no point is ever kept `out_of_frame` by a page action. - Keyboard path (C7): under the canvas, « Ajouter un point », « Ajouter une zone », « Ajouter un accès » hold a pending element at the frame centre (zone and link: a triangle of 10 % of the smaller side) and open the creation panel; then every coordinate is edited in numeric fields (cx, cy, r; rows « n | x | y »; « Ajouter un @@ -154,38 +209,84 @@ here; executors write the code and the tests. Reading list for every executor: t answer`, unsaved = `!sameDocument(current, sentText)`; the recovery copy is removed when unsaved is off, else rewritten on the new revision. `draft.unchanged` sets the saved pair to (`sentText`, the `expected_revision` sent). Other kinds → header notice, document and copy kept. -- Conflict (`draft_conflict`): the page reads `get_official_sheet_admin` (M8 `draft_last_save`) and opens a - dialog: « Une autre session a enregistré la révision N » + « par , le » (a neutral - « depuis une autre session de votre compte » when `saved_by` is the caller); « Recharger » → a confirmation +- Conflict (`draft_conflict`, owner 2026-11-03, C29): the page reads `get_official_sheet_admin` and opens a + dialog. N = `draft_version.revision` of that read; the author and date come from M8 `draft_last_save` only when + its `revision` equals N, otherwise they are omitted (never invented): « Une autre session a enregistré la + révision N » + « par , le » when known (a neutral « depuis une autre session de votre + compte » when `saved_by` is the caller). When that read fails, answers without `draft_version`, or the answer + does not parse, the dialog says « Une autre session a enregistré une version plus récente de ce brouillon. » and + offers « Recharger » and « Réessayer » (repeats the read) only; « Garder ma version » is disabled with the hint + « Révision du serveur inconnue : rechargez ou réessayez. »; no revision number or author is shown. « Recharger » → a confirmation « Abandonner vos modifications et recharger la révision N ? » → reload of the server draft (text and revision from one `get_sheet_version`, the listed drawings the handle lacks downloaded and added), both stacks cleared, copy removed; « Garder ma version » → a confirmation - « Remplacer la révision N (, ) par votre version ? » → save with `expected_revision = N`; a new - conflict re-opens the dialog; « Annuler » changes nothing. -- Local recovery: sessionStorage (the report editor's pattern), key `osteo:sheet-draft::`, - value `{"v":1,"user_id","version_id","revision","written_at","document":,"drawings":[{"asset_id","sha256"}]}` - (revision = the saved revision the edits started from: the copy is identified by version and revision). Written - SYNCHRONOUSLY by a store subscription on each committed change while unsaved, through `writeOrRemove` exported - from `state/persistence.ts`; its boolean is kept in the store. Removed after a successful save that leaves - nothing unsaved, after « Annuler les modifications », after « Ignorer », when undo returns to the saved content, - and after « Recharger ». At most two copies of other versions are kept (oldest removed by `written_at`); copies - of another account are never offered. On opening: a copy of this account and version whose document differs - (`sameDocument`) from the server's is offered in a notice under the header (« Une copie locale non enregistrée - de ce brouillon existe (révision N, ). » with « Restaurer » / « Ignorer »); restore goes through the core - (`replaceDocument`; a refused copy is reported and kept, never applied), downloads the copy's drawings the page - does not hold (`downloadSheetDrawing`), sets unsaved. When the copy's revision R is older than the server's - revision M, the offer names both (« basée sur la révision R ; le serveur est à la révision M ») and, after a - restore, `savedRevision` stays R (the base the copy was written on) with a store flag `staleBase`: the first - save therefore meets `draft_conflict`, whose dialog shows revision M with its author and time (M8) and requires - the « Garder ma version » confirmation before anything is replaced; « Annuler les modifications » with - `staleBase` takes the « Recharger » path (server text and revision M). Nothing is overwritten silently. The offer - shows only in edit mode or `narrow` (a mode that can save); never sent automatically. -- Header status: only the failure variant « Copie locale impossible (stockage plein) » is shown (board 04 keeps - « Révision N · modifications non enregistrées »). Every message that promises kept work reads the real write - flag: session or MFA lost (`session_expired`, `rights.mfa`) and an unsaveable draft (`draft.frozen`, - `sheet.inactive`, `rights.capability`) say « une copie locale existe dans cet onglet » only when the last write - succeeded, otherwise that the unsaved changes cannot be kept. -- Leave guard (`useLeaveGuard`) armed while unsaved. + « Remplacer la révision N (, ) par votre version ? » (author and date only when known) → save with + `expected_revision = N`; the server's atomic revision check decides at write time; a new conflict re-reads and + re-opens the dialog with the new N, never writes; « Annuler » changes nothing. +- Local recovery copy (C13, C27, C28): a TEMPORARY copy in this tab's sessionStorage (the report editor's pattern), + never a server save and never called one. Key `osteo:sheet-draft::`, value + `{"v":1,"user_id","version_id","sheet_id","sheet_name","revision","written_at","document":, + "drawings":[{"asset_id","sha256"}]}` (revision = the saved revision the edits started from; `sheet_name` is a + display label taken at write time). Written SYNCHRONOUSLY by a store subscription on each committed change while + unsaved and no offer is pending, through `writeOrRemove` exported from `state/persistence.ts`; its boolean is + kept in the store. + - Removal, only by an explicit outcome: a successful save that leaves nothing unsaved; « Annuler les + modifications » confirmed; « Ignorer la copie » confirmed; « Recharger » confirmed (conflict); « Abandonner + cette copie » confirmed (cap list below). Never on undo back to the saved content (the copy keeps the last + unsaved document), never by automatic eviction, never while an offer is pending. + - Offer on opening, blocking (owner 2026-11-03): a copy of this account and version whose document differs + (`sameDocument`) from the server's opens the store state `recovery = pending`. While pending (and while + `refused` and `restoring`, below) the STORE refuses every commit, undo, redo, save and submit and every action + that would remove the copy other than « Ignorer la copie » (« Annuler les modifications » included) (kind + `recovery.pending`, not only disabled buttons, keyboard shortcuts included) and the copy subscription neither + writes nor removes. A stored copy that cannot be read (malformed JSON, `v` ≠ 1, `user_id` or `version_id` not + matching its key) is never overwritten: it opens `recovery = refused` with « Ignorer la copie » only (the report + editor's quarantine pattern). The leave guard is armed while unsaved OR while `recovery` is not `none`. + Consultation stays: tabs, selection, list, zoom, pan, properties as text (the read-only field components). + Notice under the header: « Une copie locale temporaire de ce brouillon existe dans cet onglet (révision R, + ). Elle n'est pas enregistrée sur le serveur. Choisissez avant de modifier le brouillon. » (+ « Elle est + basée sur la révision R ; le serveur est à la révision M. » when R < M) with « Restaurer la copie » and + « Ignorer la copie ». + - « Restaurer la copie »: `recovery = restoring` (both buttons disabled) while the copy's document goes through + the core (`replaceDocument` + `preview.state`) and the copy's drawings the page does not hold are downloaded + (`downloadSheetDrawing`) and added (`addDrawing`; a failed one becomes that drawing's state); the continuation + checks the session token and that `recovery` is still `restoring`, then applies the result in ONE store update + (`documentText`, `savedRevision = R`, `staleBase`, unsaved, `recovery = none`) so the synchronous copy + subscription never sees a mixed state; `savedText` stays the server text (it drives « unsaved » and submit). + Unit test: the copy rewritten after an R < M restore still carries R. The expected revision stays the + copy's base R (`savedRevision = R`), never converted to the server's M; when R < M the store flag `staleBase` + is set, so the first save meets `draft_conflict` and its dialog (author and time when known) and needs the + « Garder ma version » confirmation; « Annuler les modifications » with `staleBase` takes the « Recharger » path + (server text and revision M). A copy the core refuses (or that traps) is reported (« La copie locale ne passe + pas le contrôle du document : . Elle est conservée. »), kept, never applied, never re-read automatically + (LRN-058): `recovery = refused`, « Restaurer la copie » disabled, editing stays blocked until « Ignorer la + copie ». + - « Ignorer la copie »: a confirmation « Abandonner la copie locale non enregistrée (révision R, ) ? Elle + sera supprimée de cet onglet. » with « Abandonner la copie » / « Annuler »; confirmed → copy removed, + `recovery = none`, editing resumes from the server version. + - Conflict read checks (re-check G): N is used only when `draft_version.version_id` is the edited version, else + the failed-read variant. A `draft_conflict` answered by `submit_sheet_review` opens the same dialog and never + re-submits automatically; submit is refused while `staleBase` is set (hint « Enregistrez le brouillon avant de + le soumettre. »). + - The offer shows only in edit mode or `narrow`. In a mode that cannot save (`rights`, `frozen`, `historical`, + `inactive`) the copy is left untouched (never offered, written or removed) and the mode notice adds « Une copie + locale non enregistrée de ce brouillon existe dans cet onglet ; elle ne peut pas être utilisée dans cet état. » + - Cap and quota: at most two copies of OTHER versions of the account are kept beside the current one; nothing is + ever evicted automatically (every stored copy is pending or live; resolved copies are removed at resolution). + When writing the current copy is impossible because the cap is reached, or `writeOrRemove` fails (quota), the + write flag is false and a notice lists the account's other copies (« · révision R · », + each with « Ouvrir ce brouillon » and « Abandonner cette copie », the latter confirmed as above); after an + abandonment the current copy is written again at once. Copies of another account are never listed, offered or + removed. Unit tests: cap reached (third version refused, both others kept), quota exceeded (`setItem` throws), + a pending copy kept through commit, undo, redo and save attempts, removal cases, another account's copies + untouched, abandon then retry. +- Header status: failure variants only (board 04 keeps « Révision N · modifications non enregistrées »): + « Copie locale impossible (stockage plein) » and « Copie locale impossible : deux autres brouillons ont déjà une + copie dans cet onglet ». Every message that promises kept work reads the real write flag and says the copy is + temporary and limited to this tab: session or MFA lost (`session_expired`, `rights.mfa`) and an unsaveable draft + (`draft.frozen`, `sheet.inactive`, `rights.capability`) say « une copie locale temporaire existe dans cet onglet » + only when the last write succeeded, otherwise that the unsaved changes cannot be kept. +- Leave guard (`useLeaveGuard`) armed while unsaved or while a recovery offer is not answered (`recovery` ≠ `none`). ### Upload (§9.2-§9.3) - File input (`.svg`, `image/svg+xml`), size ≤ 2 MiB checked before reading; bytes → `clean_svg`. `rejected` → @@ -235,16 +336,16 @@ here; executors write the code and the tests. Reading list for every executor: t | A | M8 `supabase/migrations/20261103100000_sheet_draft_last_save.sql`: redefines `public.get_official_sheet_admin` only (the list and the summary helper untouched) adding `draft_last_save` = `{revision, saved_at, saved_by: private.sheet_admin_person(actor)}` from the newest `audit.audit_logs` row with `resource_type = 'anatomical_sheet_version'`, `resource_id` = the draft, `action = 'anatomical_sheet_version.saved'`, `metadata->>'revision'` = the draft's revision, else null; body otherwise identical to M7; privileges restated as M7 has them. pgTAP `supabase/tests/023_sheet_draft_last_save.sql`: null on a fresh draft, actor and time after a save, the second editor after a second save, null after a non-save content write, same refusals as M7, no new privilege. `packages/supabase` schema `draft_last_save` (nullable). Sandbox fresh + upgrade from M7; `db:types --check`. Contract §12.3 and §16.7 amended (read migration, owner 2026-11-03) | C12, C18 | PGlite, `db:sandbox test-db`, types | | B | `packages/supabase/src/sheets.ts`: `registerSheetAsset`, `listSheetAssets(sheetId)`, `uploadSheetDrawing` (→ `'uploaded' \| 'present'`, `upload.pending_other` on a policy refusal, Storage errors read on HTTP status and body `statusCode`, checked against the installed storage-js error type), `confirmSheetAssetUpload`, `parseSaveAnswer`; new kind `upload.pending_other`; exports; unit tests; sandbox test `packages/supabase/tests/sandbox/sheet-editor-assets.sandbox.ts` with bytes unique per run (pattern of `sheet-fixtures.ts`): register, upload, confirm, row read, second register of a confirmed hash (no upload), second editor on a pending row (`upload.pending_other` with its own statusCode) | C6 | unit, sandbox | | C | `CataloguePreview` extension (mutators, kept input on ok only, accepted drawings only); `editor/core/editOps.ts`, `cleaning.ts`, `editor/ids.ts`, `sameDocument`; `CatalogueCanvas` exports `buildView`; `useFraming` option `canPan`; unit tests on the Node core: rebuild after a forced generation change keeps the replaced text and the added drawing, a refused text is not kept, a bad drawing refused alone, the cleaning preview's scope | C2, C3, C15, C17 | unit | -| D | `editor/state/editorStore.ts`, `undo.ts`, `recovery.ts`, `editor/issues.ts`; `persistence.ts` exports `writeOrRemove`; unit tests: session token drops late answers, commit, refusal unchanged, undo bound, redo cleared, save with commits in flight (sent text kept), save unchanged, conflict paths (reload clears stacks, keep mine with confirmation), recovery write flag, removal cases, restore round trip through the core, older-revision restore, other account ignored, other versions capped at two | C11-C14 | unit | -| E | Route `AdminSheetDraftRoute.tsx`, App.tsx, AppLayout width, header, tabs (wide and narrow), modes and permission states, recovery offer, conflict dialog, leave guard, overview links, A1/W1 landing, shared read-only field components; `readVersion` draft flag + revision; `failureMessage` allowlist; i18n | C1, C11-C13, C16 | unit | +| D | `editor/state/editorStore.ts`, `undo.ts`, `recovery.ts`, `editor/issues.ts`; `persistence.ts` exports `writeOrRemove`; unit tests: session token drops late answers, commit, refusal unchanged, undo bound, redo cleared, save with commits in flight (sent text kept), save unchanged, conflict paths (reload clears stacks, keep mine with confirmation), recovery write flag, removal cases (none on undo back to saved), restore round trip through the core, older-revision restore keeps R and `staleBase`, pending offer refuses commit/undo/redo/save/submit and never writes or removes the copy, refused copy kept and blocking until ignored, ignore needs confirmation, cap and quota with explicit abandonment and no eviction, other account untouched; `commit(command, { accept })` with rollback before anything is kept; `readVersion` draft mode (export, `draft` accepted, `revision`, per-drawing settled results; ruling R1, moved from E); conflict read: N from `draft_version.revision`, author only when `draft_last_save.revision` = N, failed read → no « Garder ma version » | C11-C14, C27-C29 | unit | +| E | Route `AdminSheetDraftRoute.tsx`, App.tsx, AppLayout width, header, tabs (wide and narrow), modes and permission states, blocking recovery offer (« Restaurer la copie » / « Ignorer la copie », consultation only while pending), cap/quota notice with the other copies, conflict dialog (known N and author, failed read with « Recharger » / « Réessayer »), leave guard, overview links, A1/W1 landing, shared read-only field components; `failureMessage` allowlist; i18n | C1, C11-C13, C16, C27-C29 | unit | | F | Général (+ annotation categories), Références, Vertèbres; shared delete-with-dependents dialog | C4, C5 | unit | | G | Vues et illustrations + upload flow | C6, C17 | unit | -| H | `docs/ANNOTATION-RENDERING.md` overlay section first; Annotations: canvas, overlay, tools, list, creation panel, properties panel, keyboard creation, undo/redo controls | C7, C8, C14, C17 | unit | +| H | `docs/ANNOTATION-RENDERING.md` overlay section first; Annotations: canvas, overlay, tools, list, creation panel, properties panel, keyboard creation, undo/redo controls; default point rule with the corrected-position confirmation and the `accept` hook on every geometry commit (« Default point and the frame ») with its Node-core unit tests | C7, C8, C14, C17, C26 | unit | | I | Constats tree | C9 | unit | | J | Vérification panel + submission | C10 | unit | -| K | e2e `apps/app/e2e/shell/editor-*.spec.ts` reusing `createAccount`, `assignRole`, `seedGrant`, `enrolVerifiedFactor`, `stepUpAdmin`, `seedOfficialSheet`, `expectAccessible`, `expectNoHorizontalOverflow`, `dropLateReplays`; adds editor-only helpers. A2 (hostile refused, Inkscape export cleaned, attach, detail view by crop; both upload outcomes accepted), A3 (points, zones, links by clicks and by keyboard, move, numeric edits), A4 (zones, categories, nodes, refs, regions, reorder, mark reviewed, delete with dependents), journey (the brief's §3 steps 1-12 with two editor accounts: creation, upload, detail view, points/zones/links, categories and findings, save, reload with the beforeunload dialog accepted and the recovery offer, conflict, submit, round `verifying` read back in SQL, no error shown while elements are `to_confirm`), access (reviewer-only read-only, editor grant without admin role read-only, account without capability refused), narrow (320, 375, 800 px read-only, no horizontal scroll; 1 024 px edit without horizontal scroll), axe on editor and read-only, the equine working copy opening (sets aside an active copy first, as `sheets-concurrency.sandbox.ts` does); commit latency measured on the equine copy and on a synthetic document near 2 MiB (reported; budget 500 ms per commit on the equine copy); `docs/development/BROWSER_TESTS.md` | C16, C20, C21 | `e2e:shell` on a fresh sandbox | +| K | e2e `apps/app/e2e/shell/editor-*.spec.ts` reusing `createAccount`, `assignRole`, `seedGrant`, `enrolVerifiedFactor`, `stepUpAdmin`, `seedOfficialSheet`, `expectAccessible`, `expectNoHorizontalOverflow`, `dropLateReplays`; adds editor-only helpers. A2 (hostile refused, Inkscape export cleaned, attach, detail view by crop; both upload outcomes accepted), A3 (points, zones, links by clicks and by keyboard, move, numeric edits), A4 (zones, categories, nodes, refs, regions, reorder, mark reviewed, delete with dependents), journey (the brief's §3 steps 1-12 with two editor accounts: creation, upload, detail view, points/zones/links, categories and findings, save, reload with the beforeunload dialog accepted and the recovery offer, conflict, submit, round `verifying` read back in SQL, no error shown while elements are `to_confirm`), access (reviewer-only read-only, editor grant without admin role read-only, account without capability refused), narrow (320, 375, 800 px read-only, no horizontal scroll; 1 024 px edit without horizontal scroll), axe on editor and read-only, the equine working copy opening (sets aside an active copy first, as `sheets-concurrency.sandbox.ts` does); owner tests (C30): concurrent save between two sessions, older-copy restore then save → conflict dialog then « Garder ma version » confirmation, a pending recovery offer blocks editing until answered, permission changes during an open editing session (grant revoked, grant expired, admin role removed: the next save is refused with its message, the copy wording true), a click near the edge of a detail crop (corrected position shown, confirmed, cancelled), hostile and valid drawing imports, keyboard-only creation and numeric edits; commit latency measured on the equine copy and on a synthetic document near 2 MiB (reported; budget 500 ms per commit on the equine copy); `docs/development/BROWSER_TESTS.md` | C16, C20, C21, C26-C30 | `e2e:shell` on a fresh sandbox | | L | Owner trial: `scripts/db-sandbox.sh` subcommands `trial` (its own gateway container `faunosteo_dbsandbox_trial_gateway` on its own loopback port, refusing to start when that container exists, + Vite dev server on 127.0.0.1:5193 whose proxy forwards `/auth/v1`, `/rest/v1` and `/storage/v1` to that gateway so the browser stays same-origin (no CORS change), proven by the manual run; foreground, Ctrl+C stops both), `trial-account ` (password at a hidden prompt, confirmed account, nothing secret printed), `trial-grant ` (email and kind checked against fixed patterns and passed as psql variables; for `sheet_editor` / `sheet_publisher` also `private.assign_platform_role(null, , 'admin')`, the same SQL as the e2e helpers); `docs/development/V1-2-6_OWNER_TRIAL.md` (commands, URL, account, TOTP enrolment, journey, operations, expected results, the freeze after a submission with no worker and no withdrawal, teardown); label proposals file | C23 | script review, manual run on the sandbox | -| M | Gates: fresh sandbox → `test-db` → `e2e:shell` → `test`; `check:all`; `r5:import-equine --check`; fresh verifier + security; docs (contract §16.7 state, TODO, design README pointer); memory; checkpoint report | C18, C22, C24 | all | +| M | Gates: fresh sandbox → `test-db` → `e2e:shell` → `test`; `check:all`; `r5:import-equine --check`; fresh verifier + security; docs (contract §16.7 state, TODO, design README pointer); memory (registry ids checked against develop first: LRN-095 and BLK-013 collide, no renumbering in V1-2.6); checkpoint report | C18, C22, C24, C31 | all | Dependencies: A, B, C independent; D needs A, C; E needs A, B, D; F-J need E; K needs A-J; L needs E; M last. @@ -255,6 +356,12 @@ Dependencies: A, B, C independent; D needs A, C; E needs A, B, D; F-J need E; K - A drawing missing or refused: that view shows its state and the canvas notice; edits continue. - Two tabs on the same draft: each its own copy; the server revision decides (conflict dialog). - A save answer lost (`network`): the next save meets the conflict dialog with the neutral own-account wording. +- Permission lost or draft state changed during an open session (grant revoked or expired, admin role removed, + session or aal2 lost, round opened, sheet archived): the server refuses the next write with its kind; the page + shows the message (copy wording bound to the write flag), never retries or auto-sends, and switches to the + matching read-only mode on `draft.frozen` / `sheet.inactive` / `rights.*`. Residual risk recorded, not fixed + (C31): catalogue RPCs check the token's `aal2` claim (`private.has_mfa()`), not the live session, so a token + issued at `aal2` keeps passing them after a factor removal until it expires. - Escape in a native dialog closes it (LRN-082); e2e waits for a closed dialog before typing (LRN-111) and accepts the beforeunload dialog before a reload. @@ -280,6 +387,13 @@ BDR-094, BDR-096 (boards followed; deviations listed), BDR-097, BDR-099; LRN-010 `docs/development/V1-2-6_OWNER_TRIAL.md`. 8. New closed code `upload.pending_other` (another account's unfinished upload of the same drawing). +All eight approved by the owner 2026-11-03 (« GO propriétaire V1-2.6 »), with: no JSON export or import of the +recovery copy in V1-2.6; exact messages on the copy's state and limits. Owner arbitrations 2026-11-03 on the +re-check (« arbitrages propriétaire sur REMAINING(2) »): default point rule with a confirmed correction, never a +silent move (C26); editing blocked while a recovery offer is unanswered, actions « Restaurer la copie » / +« Ignorer la copie » (C27); no automatic eviction, explicit abandonment on cap or quota (C28); conflict dialog +sources and failed-read variant (C29). + Recorded deviations from board 06 A (owner answer): no « Prévisualiser », no withdrawal before V1-2.7. ## Challenge record (2026-11-03, three lenses, each CONCERNS(4), no BLOCKER tag) @@ -304,4 +418,23 @@ link tool and « Vue ouverte » limited to direct detail children; default radiu asset id; `draft.unchanged` sets the saved pair; policy refusal tries `confirm` once; trial through a Vite proxy (same origin); dropped loads and `close()` free the preview; recovery offer only where saving is possible. The procedure allows one confirmation pass: these fixes go to the gate unchallenged again. Robustness 4: messages read the -write flag (integrated); a downloadable rescue copy (BDR-055 pattern) is a visible choice asked at the gate. +write flag (integrated); a downloadable rescue copy (BDR-055 pattern) is a visible choice asked at the gate (owner: +no export button in V1-2.6). + +Owner-ordered targeted re-check (fresh verifier, 2026-11-03): REMAINING(2): fixes 1-5 closed, invariants I1-I5 +hold; [MAJOR] the 12 + 3 % radius made points `out_of_frame` on frames under about 25.5 units → « Default point +and the frame » (owner formula, core-decided placement, confirmed correction); [MAJOR] I6 broken, a pending copy +overwritten by the first commit → blocking offer, no write while pending; [MINOR] N source on a failed read → +conflict dialog sources and failed-read variant; [MINOR] two-copy cap evicting copies → no eviction, explicit +abandonment. Second targeted re-check ordered by the owner on these two corrections and their interaction with +the five validated invariants. + +Second owner-ordered re-check (fresh verifier, 2026-11-03): REMAINING(1), no BLOCKER; confirmations 2-6 confirmed, +I1-I5 hold; confirmation 1 NOT confirmed: [MAJOR] F1 `accept` read the core's silence as acceptance on views the +core does not measure (no accepted drawing, no usable frame) → measured views only, tools and numeric geometry +disabled elsewhere, `accept` refuses there. MINORs integrated: A (B = floor(d), exact clamp on an empty interval, +F parsed from the attribute text), B (kept input and `handleVersion` only after `accept`), C (exact numeric display, +4 px drag threshold), D (frame changes under `accept`; edits allowed on an annotation already out, owner approval +pending as it refines C26), E (`restoring` state, one store update, `savedText` stays the server's), F (removal +actions refused while pending, unreadable copy kept as refused, leave guard while an offer is open), G +(`version_id` checked, submit conflict uses the dialog, submit refused under `staleBase`). STOP for the owner.