2.5 KiB
2.5 KiB
Contract: V1-2.2 last MEDIUM, zone without interior
Owner brief « V1-2.2 : fermeture du dernier MEDIUM », 2026-11-01, on de2dfb3 (branch
feature/v1-2-anatomical-sheets). Decisions of the previous checkpoint confirmed, not reopened.
Criteria
- I1 Rule: a zone or trigger drawn as a polygon or a path is refused unless its fill, under the
fill rule the layer paints (nonzero: the layer writes none, the root carries none, lot B
isolation), holds a disc of diameter at least
MIN_VISIBLE_PX(4 CSS px) on the smallest preview (main 286 × 310, detail 254 × 191,xMidYMid meet). The stroke never counts. The bounds rule stays and runs first. Circles keep their disc measure. - I2 Measure in the Rust core, conservative: curves and arcs flattened with a proven chord deviation bound subtracted from the radius; a point counts only when inside under the rule and at least the radius away from every edge (implicit closing edges included); deterministic search, capped; over the caps the annotation is refused (fail closed), never accepted.
- I3 Closed codes, the approved ones unchanged: issue
annotation.geometry.interior_too_small, verdictverification.validation.marker_interior_too_small(implementer's proposal; approved by the owner 2026-11-01, brief « Validation définitive V1-2.2 »). Verdict and preview agree. The document and the drawings never rewritten. - I4 Tests: back-and-forth path, near-flat polygon, self-intersection under both rules, curves and arcs of near-zero area, small legitimate filled shapes, drawing transforms and extreme scales, threshold edges, equine non-regression, every case previously accepted wrongly now refused.
- I5 Browser concordance (Chromium, Firefox, WebKit, 320 × 568): for each accepted probe shape real presses inside the Rust witness disc select it; for each refused one the browser's fill-only hit area holds no disc of the threshold; the probe fixture generated by the core and checked for drift.
- I6 WASM ≤ 600 000 B gzip (budget not raised); PDF bytes and historical references unchanged; existing click tests kept.
- I7 Gates: check:all on the final HEAD, e2e:shell on the isolated sandbox, mutations, the three ignored cargo tests documented.
- I8 Docs: ANNOTATION-RENDERING, RUST.md §12.13, V1-2 contract §6.7; LOW overlap recorded as a known limitation (human review identifies fully overlapping markers before publication).
Out of scope
No selection redesign, no SQL, no DEV, no merge, no V1-2.3, no deploy.