fix(checker): final-review fixes -- regressions, baselines, the PVS carve-out, the headline

- A matching event that now fails outright is a regression: compare_runs
  walks the previous run's matching rows, so a check that collapses to
  one error row no longer hides every field it used to match.  Counts
  moved are taken over the events both runs checked.
- The default baseline is the newest completed run (run.json written) of
  the same scope; a 2,000-event sample is no baseline for a full run.
  changes.md names the previous run's scope.
- The PVS saturation carve-out now needs Blastware's OORANGE, a channel
  Blastware clamped at SFM's ceiling, and SFM's sum within three channels
  at the ceiling -- an unclipped Sensitive-range channel read 8x can no
  longer let an 8x sum through.
- 'Fields fully matching' needs a match: an always-empty element proves
  nothing.  Events without a report are a line of their own.
- CLAUDE.md: histogram PVS described correctly; 35 sub-minute histograms
  plus 2 one-minute no-mic ones, not '~37 sub-minute'.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ALX2R8pghDaZuti9U7mEE9
This commit is contained in:
serversdownandClaude Opus 5.5 committed 2026-10-29 20:11:33 -04:00
1 parent e9d352ad99
commit c0d837c14f
6 files changed
+162 -31

No files matched your search

+20
View File
@@ -123,3 +123,23 @@ def test_sensitive_range_8x_stays_a_mismatch():
def test_every_carveout_has_evidence():
assert all(c.id and c.fields and len(c.evidence) > 40 for c in CARVEOUTS)
def test_pvs_carveout_needs_oorange_from_blastware():
raw = (FIX / "T438HGTZ.B30W").read_bytes()
ref = parse_xml_report_file(FIX / "T438HGTZ_B30W_XML.XML")
ref.scalars["PeakVectorSum"] = "10.392" # a vector sum may exceed the range unclipped
res = {r.field: r for r in compare(sfm_side(raw), ref, CARVEOUTS)}
assert res["PeakVectorSum"].verdict == "mismatch"
def test_pvs_carveout_needs_the_clipped_channel_at_the_ceiling():
# 1.250 range, Blastware PVS OORANGE; an UNclipped channel's 8x value happens to land
# in the 1.250 band -- that must not let SFM's 8x vector sum through.
raw = (FIX / "M007HVWF.K30W").read_bytes()
ref = parse_xml_report_file(FIX / "M007HVWF_K30W_XML.XML")
ref.scalars["TranPPV"] = "0.157"
side = sfm_side(raw)
side.values["TranPPV"] = 1.256
res = {r.field: r for r in compare(side, ref, CARVEOUTS)}
assert res["PeakVectorSum"].verdict == "mismatch"