chore(memory): V1-2.2 closure, mutations rerun on final code, BDR-092, LRN-108, V1-2.3 contract

This commit is contained in:
bchanot committed 2026-11-01 16:38:53 +01:00
1 parent 0edef2f66d
commit 5eca08688a
7 files changed
+123 -10

No files matched your search

@@ -12,7 +12,7 @@ nonzero (the layer's rule), stroke out. Conservative widest-disc search (disc cr
off, arcs add an f32 drift bound), refuses in doubt (0.03 px band measured). Caps: 4 096 vertices, 4 096 cells, 2²⁵ edge
distances per sheet, over them refused. Arcs as browsers store them: nonzero radius below 2⁻²⁰ unreadable, endpoints equal in f32 draw no arc, the spread of
one-ulp variants added to the deviation and their extremes to the bounds. Codes
`annotation.geometry.interior_too_small` / `verification.validation.marker_interior_too_small` (proposal).
`annotation.geometry.interior_too_small` / `verification.validation.marker_interior_too_small` (approved by the owner 2026-11-01).
## Threshold
@@ -29,7 +29,7 @@ Equine at 320 widest disc: caudal 4.951 px, sacral 11.30, thoracic 11.47, cervic
test on a 90 % ring, fill only and as shipped; equine zones take a real press.
- Chromium touch adjustment: a tap up to ~10 px around a point's disc goes to the point (chromium-320/375, not
webkit-375); every equine zone keeps a tappable interior (320: caudal 18/21 … cervical 195/195).
- Mutations: 29 killed, 2 equivalent (Z22 prune, Z25 unreachable).
- Mutations, rerun on the final code `c73415a` (closure): 29 killed, 2 equivalent (Z22 prune, Z25 unreachable); see Closure.
- References: no frozen oracle, golden, N-1 copy, seed or PDF digest touched; app 566 incl. PDF suites pass.
- Ignored cargo tests: one timing test (`pdf_serialize::l_report_with_real_rasters_costs_what_it_costs`) × 3 feature
runs; passed in release (5.2 s).
@@ -49,3 +49,19 @@ Equine at 320 widest disc: caudal 4.951 px, sacral 11.30, thoracic 11.47, cervic
check:all passed: cargo 2 350 passed, 0 failed, 3 ignored (one timing test × 3 runs); core-wasm 65, supabase 128, app 566;
e2e:ui 227 (incl. canvas-clicks 99 and interior-clicks 102, six projects); Docker app image, worker test and image.
e2e:shell 86 on the isolated sandbox. WASM 580 428 B gzip -9 native, 580 522 in the app image (margin 19 478 B).
## Closure (owner brief « Validation définitive V1-2.2 », 2026-11-01)
- Owner verdict: VERIFIED on `c73415a` (BDR-092, V1-2 contract §17.7). Codes `interior_too_small` /
`marker_interior_too_small` approved. Six LOWs accepted and still tracked (TODO V1-2 section), never declared fixed.
- Verifier history: on `8dd2d78` ECARTS(3), three documentation gaps fixed in `03be75b` (the earlier result is not a
conformity). Fresh verifier on the closed state (`de2dfb3..e190dfc`): I1-I6 and I8 MET, I7 ECARTS(1): Z7, Z19, Z24
of the mutation script anchored on code that left with `03be75b` / `86dce16`, so the recorded count was not
reproducible on the final HEAD. Fixed: anchors moved to the final code, whole script rerun on `c73415a`: 29 killed,
Z22 and Z25 equivalent. Z23 survived its integration suite there (the `f32` spread of `86dce16` refuses those arcs on
its own) and is killed by the unit test `a_tiny_arc_radius_is_not_read`; the script now runs it on `--lib`. The
final conformity therefore rests on this rerun plus the verifier's other findings (cargo 17 + 19 tests, Playwright
interior-clicks 102 on six projects, WASM 580 428 B native, references diff empty).
- Security: three passes PASS, no MEDIUM open on `86dce16`; `c73415a` = one LOW fix (sampling skipped).
- Gates on `c73415a`: check:all passed; e2e:shell 86 on the isolated sandbox; WASM 580 522 B gzip in the app image.
- Memory: LRN-108 (Chromium touch adjustment, observation only, never a selection contract).
@@ -1,7 +1,9 @@
# V1-2.2 last MEDIUM (brief « fermeture du dernier MEDIUM », 2026-11-01), mutation run: Z = the
# interior rule (anatomy::interior, path outline, frame placement, codes), plus the 2026-11-01
# decision mutants whose anchors this change moved (S1, S8, F16). Z23-Z25 cover the fixes after the
# security review of 8dd2d78. Each mutant is applied to its
# security review of 8dd2d78. Z7, Z19, Z24 re-anchored on the final code c73415a (verifier
# 2026-11-01: their first anchors left with 03be75b and 86dce16); Z23 run on the unit suite since 86dce16, whose
# f32 spread refuses the same arcs on its own in sheet_marker_visibility. Each mutant is applied to its
# source file, its cargo suite runs, the file is restored. Run from the repo root.
import subprocess
F='crates/core/src/anatomy/frame.rs'
@@ -17,7 +19,7 @@ muts=[
('Z4 every point inside',I,' if inside { nearest } else { -nearest }',' if inside || true { nearest } else { -nearest }',VIS),
('Z5 closing edge dropped',I,' for (&a, &b) in closing.zip(subpath.iter()) {',' for (&a, &b) in closing.skip(1).zip(subpath.iter().skip(1)) {','--lib'),
('Z6 deviation not taken off',I,' let radius = clearance(outline, rule, centre) - outline.deviation;',' let radius = clearance(outline, rule, centre);','--lib'),
('Z7 chord deviation not recorded',P,' self.outline.deviation = self.outline.deviation.max(bend * step * step / 8.0);\n','','--lib'),
('Z7 chord deviation not recorded',P,' self.outline.deviation = self.outline.deviation.max(deviation);\n','','--lib'),
('Z8 one chord per curve',P,' let count = wanted.clamp(1.0, MAX_CURVE_CHORDS as f64) as usize;',' let count = wanted.clamp(1.0, 1.0) as usize;',VIS),
('Z9 budget never spent',I,' budget.work -= evaluated * edges;\n','','--lib'),
('Z10 vertex overflow ignored',I,' !outline.overflow && self.cells(edge_count(outline)) > 0',' self.cells(edge_count(outline)) > 0',VIS),
@@ -29,12 +31,12 @@ muts=[
('Z16 tolerance in units, not px',F,' let tolerance = INTERIOR_TOLERANCE_PX / scale;',' let tolerance = INTERIOR_TOLERANCE_PX;',VIS),
('Z17 closepath keeps the subpath',P,' self.quadratic_control = None;\n self.open_subpath();\n }',' self.quadratic_control = None;\n }','--lib'),
('Z18 cubic bend underestimated',P,' let bend = 6.0\n',' let bend = 1.0\n','--lib'),
('Z19 arc bend on the smaller radius',P,' let count = self.chords(ellipse.rx.max(ellipse.ry) * ellipse.sweep * ellipse.sweep);',' let count = self.chords(ellipse.rx.min(ellipse.ry) * ellipse.sweep * ellipse.sweep);','--lib'),
('Z19 arc bend on the smaller radius',P,' let radius = ellipse.rx.max(ellipse.ry);\n let spread',' let radius = ellipse.rx.min(ellipse.ry);\n let spread','--lib'),
('Z20 unmeasured accepted',F,' return Placement::InteriorUnmeasured;',' return Placement::InFrame;',VIS),
('Z21 cells past the cap',I,' || evaluated + 4 > affordable\n','','--lib'),
# Security review of 8dd2d78 (MEDIUM tiny arc radius, LOWs), fixed after the first run.
('Z23 tiny arc radius read',P,' if tiny(arc.rx) || tiny(arc.ry) {\n return None;\n }\n','',VIS),
('Z24 arc f32 drift dropped',P,' radius * ARC_F32_DRIFT,',' 0.0,','--lib'),
('Z23 tiny arc radius read',P,' if tiny(arc.rx) || tiny(arc.ry) {\n return None;\n }\n','','--lib'),
('Z24 arc f32 drift dropped',P,' radius * ARC_F32_DRIFT + spread,',' spread,','--lib'),
# Equivalent: bounds and outline share one reader, a path with bounds always has an outline.
('Z25 path without outline accepted (equivalent)',F,' _ => Placement::InteriorUnmeasured,',' _ => Placement::InFrame,',VIS),
# Second security review (03be75b): f32 endpoint equality, arc f32 spread.