Files
aimsight-optimizer/sessions/CLARIDEN_2026-10-01T0000_2026-11-01T0000_20261118T1219Z/validation.md
T

42 lines
3.5 KiB
Markdown
Raw Normal View History

# Validation
**Verdict**: keep
## Answers
1. Loads and runs: benchmark rerun at HEAD (2026-11-18 UTC) is identical to `benchmark-after.txt`, no `skipped` line; `categories.py` on CLARIDEN runs clean; the seven families remain.
2. Nothing goes back: `compare` gives 0 regression before → after and before → each fix (S1..S4); the drops (Thermal displacement, from S2) stay under the thresholds of `CLAUDE.md`.
3. Gain justifies code: complexity 607 → 606 code lines, 46 → 46 constants; S1 changes one bound with an existing constant (Displacement correct, range 34 → 44 %, Total 57 → 58 %), S2 adds 1 line and drops 58 wrongly flagged Thermal displacement instants for 16 found; S3 and S4 are pruning, with no figure changed.
4. No overfitting: S1 ties the step bound to `PIECE * ampl / 2` (an existing constant, a general rule: a jump stays a jump at any piece length); S2 is a physical consistency rule (same axis); no value was cut to fit the range.
5. Target's rules: only `scripts/*.py` and `thresholds.md` touched, `bench/` untouched; no station, sensor or date in any condition (CLARIDEN appears only as a history reference in comments and `thresholds.md`); `PIECE` line and docstrings updated.
## The range
CLARIDEN 2026-10-01T00:00Z → 2026-11-02T00:00Z, before → after:
- Displacement: found 1422/1422 (100 %) → 1422/1422 (100 %); correct 1422/4213 (34 %) → 1422/3215 (44 %) (S1)
- Thermal displacement: found 0/33 → 0/33; correct 0/204 (0 %) → 0/183 (0 %) (S2)
- No data, Obstruction, Perturbation, Target issue, Visibility: unchanged (100/83 %, 20/11 %, —/0 %, 100/97 %, 3/100 %)
## Checks
range: Displacement correct 1422/4213 (34 %) → 1422/3215 (44 %); Thermal displacement correct 0/204 → 0/183.
benchmark, `compare benchmark-before.txt benchmark-after.txt`:
```
CLARIDEN Displacement correct 42 → 44 %
MICHIGAN Thermal displacement found 58 → 54 % (1 instants lost)
MICHIGAN Thermal displacement correct 29 → 47 %
NEBRASKA Thermal displacement found 25 → 22 % (1 instants lost)
NEBRASKA Thermal displacement correct 62 → 58 % (0 instants lost)
Total Displacement correct 57 → 58 %
Total Thermal displacement found 82 → 81 % (16 instants lost)
WYOMING Thermal displacement found 51 → 50 % (10 instants lost)
WYOMING Thermal displacement correct 92 → 91 % (0 instants lost)
0 regression(s); complexity: 607 code lines, 46 constants → 606 code lines, 46 constants
```
Per fix: S1 alone gives the Displacement lines (0 regression, 607 → 607); S2 adds all the Thermal displacement lines (0 regression, 607 → 608); S3 and S4 leave every figure equal to S2 (606 lines).
## Reservations
- S2, Thermal displacement found, under the regression thresholds: Total 82 → 81 % (13766 → 13750 of 16882, 16 instants lost: JUNGFRAU 2101 → 2097, MICHIGAN 15 → 14, NEBRASKA 8 → 7, WYOMING 466 → 456). In exchange 58 fewer wrongly flagged instants (Total correct 20006 → 19948 flagged, 69 % stays 69 %; MICHIGAN correct 29 → 47 %). Raw moves on one axis paired with corrected moves on the other no longer count as camera slides. I did not inspect the labels of these few lost instants: they are below the thresholds.
- The whole-window drift still bounds the step at half the drift, while pieces now use half of `PIECE`. The two bounds are consistent in spirit but not the same; a later pass could unify them.
## Tools
none