chore(memory): V1-2.2 root visibility evidence, A6 decision, BDR-089/090, LRN-102

This commit is contained in:
bchanot committed 2026-10-30 18:56:49 +01:00
1 parent a095ea0e1b
commit 958228a9de
8 files changed
+140 -9

No files matched your search

@@ -21,7 +21,8 @@ commit `ac71c5b` (V1-2.1 verified by the owner). Diff under review: `ac71c5b..HE
- A3 An invalid draft draws with its issues.
- A4 A document replacement redraws without re-reading the drawings.
- A5 The groups of a derived version that deletes a zone include its removal group.
- A6 Vector-tool exports cleaned and hostile files refused (see owner decision D1 below).
- A6 Vector-tool exports cleaned and hostile files refused (scope: the owner's final decision E1 below, which
replaces D1, B6 and C1 on this point).
- A7 Every edit primitive outputs a strictly parseable document, keeps existing keys and applies the
status rules (property tests).
- A8 Groups, digests and removal groups; the change list; the verdict function tested.
@@ -88,7 +89,7 @@ Brief « V1-2.2 : arbitrages du propriétaire et finalisation » on `17d9199`. D
other function still removed or refused; the cairo export keeps colours, shapes and references; fixpoint.
- B5 `sheet.edit` `remove` refused atomically (`has_dependents`, document unchanged) while `dependents` holds anything
but descendants; a removal never adds a referential issue (property test).
- B6 A6: real Inkscape 1.4.3 exports committed with their generator and provenance; Illustrator and Figma are not
- B6 (A6 scope superseded by E1) A6: real Inkscape 1.4.3 exports committed with their generator and provenance; Illustrator and Figma are not
produced or imitated; A6 stays open until the owner's files arrive.
- B7 Wasm: `--remove-name-section` only; the 600 000-byte cap and `size.test.ts` unchanged.
- B8 Still: no SQL change, no protected reader modified (A13), the N-1 copies and frozen oracle files untouched (declared
@@ -112,7 +113,7 @@ Brief « V1-2.2 : finalisation et intégration A6 Figma » after the final revie
security PASS). Delta under review: `98060d7..HEAD`. The criteria above still hold; these are added, and C1 amends D1
and B6.
- C1 A6 requires Inkscape (met, B6), Figma and Illustrator; Affinity is optional. Figma: the owner's two raw exports
- C1 (superseded by E1 for the A6 scope) A6 requires Inkscape (met, B6), Figma and Illustrator; Affinity is optional. Figma: the owner's two raw exports
`owner/figma-web-20261030-default.svg` and `-ids.svg`, never edited, committed as permanent fixtures with fixed
expectations. Illustrator: the real Adobe Illustrator only (VectorCraft is not equivalent). A6 stays open, and V1-2.2
is not VERIFIED, until the Illustrator exports are committed and pass.
@@ -125,3 +126,17 @@ and B6.
- C4 The audit sentence the floor guard read as a suppression is reworded; the guard is not disabled or waived.
- C5 Still: no SQL change, no protected reader (A13), N-1 copies, frozen oracles or equine historical data modified;
no DEV operation, no merge, no deployment, no V1-2.3.
## Final owner decisions (brief « V1-2.2 : arbitrage définitif A6 et correction visibility », 2026-10-30, on `81f7639`)
- E1 A6 scope, final: the tested perimeter is Figma (the owner's two raw exports
`owner/figma-web-20261030-{default,ids}.svg`), Inkscape 1.4.3 (three real exports and their generator), cairo
1.18.4 and ImageMagick 7.1.2-18 (real exports, `generate.sh`). Adobe Illustrator and Affinity are optional: never
declared compatible or validated without a real export read by the suite; their absence does not block V1-2.2.
The `owner/` folder, its procedure (Illustrator `presentation` / `internal-css`, Affinity `web` / `hq`) and the
suite reading any file put there stay, for a later test.
- E2 Root visibility: a root `visibility` other than `visible` is refused by the shared reader (`root_visibility`)
before a drawing can be verified or published; the cleaning, the verdict, the preview, the canvas and the PDF
snapshot gate answer it; both composers refuse such a root (fail-closed). No historical asset, oracle or golden
changes.
- E3 Still: no SQL change, no DEV operation, no historical resource modified, no merge, no deployment, no V1-2.3.
@@ -0,0 +1,49 @@
# Contract: V1-2.2 root visibility and final A6 perimeter
Owner brief « V1-2.2 : arbitrage définitif A6 et correction visibility », 2026-10-30, on `81f7639`
(branch `feature/v1-2-anatomical-sheets`). Diff under review: the working tree against `81f7639`.
## Problem
Both composers (`crates/core/src/anatomy/compose.rs`) append the engine's marker layer as the drawing
root's last child (PDF view: the drawing's own root; canvas: a root copying its attributes). A root
`visibility="hidden"` was accepted with no removal; the layer inherited it while the drawing's
children set `visible` back, so the markers vanished from the PDF and the canvas.
## Criteria
- R1 The shared reader (`read_svg`) refuses a root `visibility` other than `visible` with a closed,
stable reason `root_visibility`, before a drawing can be verified or published; the cleaning
(`clean_svg`), the verdict, the preview and its canvas, the loaded sheet, the upload tool and the PDF
snapshot gate answer through the same check (no divergent rule).
- R2 No bypass through the forms the reader accepts: letter case, CSS whitespace, character
references, CSS-wide keywords, unreadable values; equivalent styles (root `style`, root `class`,
`<style>`) never reach the root; a descendant's `visibility` cannot reach the layer.
- R3 Targeted: legitimate attributes are not refused without a demonstrated danger; other root
properties (`opacity`, `display`, `filter`, `mask`, `clip-path`, paint) are either already removed or
argued to act on drawing and markers alike, with evidence.
- R4 Both composers refuse such a root (fail-closed); the `osteo-halo` protections of `08efd9a` stay
effective.
- R5 Historical drawings, the equine fingerprint (sha256 `0ea5202f…`), frozen R3/R4 oracles, step6
goldens and N-1 copies unchanged.
- R6 Tests: reproduce the defect first, then the fix; normal drawing, hidden root, descendant
`visible`, styles, other root attributes, cleaning and canonical form, verdict, PreviewSheet, composed
canvas, real PDF export session, equine non-regression, adversarial inputs, targeted mutations,
shipped wasm module.
- R7 A6 final perimeter: Figma, Inkscape, cairo, ImageMagick (real exports, tested). Adobe Illustrator
and Affinity are OPTIONAL: their absence is NOT a gap and must not be reported as one; they must not
be declared compatible or validated anywhere without a real export; fixtures and the `owner/`
procedure stay. Contract core (D1/B6/C1 superseded by E1), V1-2 contract §17.6, RUST.md, READMEs,
TODO and the decisions registry (BDR-090, BDR-088 amended) say so consistently.
- R8 BDR (reserved `osteo-halo`, not `osteo-*`) and LRN (heredoc expansion) recorded factually.
- R9 Docs: RUST.md §12.10, V1-2 contract §9.2 and closed codes, ANNOTATION-RENDERING.
## Out of scope
No SQL, no Supabase DEV, no worker DEV, no historical resource change, no merge, no V1-2.3.
## Clarifications
- The reader-refusal assertions of `svg_reserved_ids.rs` moved, reason-parameterised and unchanged, into
`tests/common/sheet_readers.rs::assert_refused_everywhere` (shared with `svg_root_visibility.rs`); the test count is
unchanged (floor guard: assertion lines 18 → 10 in that file, by design).