chore(memory): V1-2.2 closure, mutations rerun on final code, BDR-092, LRN-108, V1-2.3 contract
This commit is contained in:
1 parent
0edef2f66d
commit
5eca08688a
7 files changed
+123
-10
No files matched your search
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user