Files
aimsight-optimizer/sessions/SNCF01_2026-10-14T0645_2026-10-22T1030_20261118T1350Z/validation.md
T

62 lines
4.5 KiB
Markdown
Raw Normal View History

# Validation
**Verdict**: keep
## Answers
1. Loads and runs: benchmark rerun at HEAD `cc9a4d2` (2026-11-18, UTC) is identical to `benchmark-after.txt` and has no `skipped` line. The range rerun is identical to `range-after.txt`.
2. Nothing goes back: `compare` before → after (= before → S1, the only fix) reports 0 regression(s). The only drops are 3 Perturbation "found" instants, all under the thresholds (see Reservations).
3. The gain justifies the code: +2 code lines, no constant. The range gain is tiny (3 wrong Perturbation instants fewer on SNCF01). On the benchmark, though, Perturbation flagged instants go from 754 to 535 (219 wrong ones fewer, on 9 stations). Total Perturbation "correct" goes 4 → 5 %, "found" goes 31 → 28 /358 (-0.8 point). This widens an existing rule; it adds no new one.
4. No overfitting: the condition `h["start"] == h["end"]` (a one-instant Obstruction or Target issue episode) is generic, with no value tuned. It acts the same way on FLORIDA, NORDEND, WILDSTRUBEL, ALASKA and others, not only on the range.
5. Target rules respected: only `scripts/categories.py` was touched, with no station, sensor or date in the code. The docstring cites the run ("SNCF01 2026-10-14, S1"), a short history reference that is allowed. `thresholds.md` is unaffected (no constant).
## The range
SNCF01 2026-10-14T00:00Z → 2026-10-23T00:00Z, per family, found / correct:
| Family | before | after |
|---|---|---|
| Displacement | 361/651 (55 %) / 361/361 (100 %) | unchanged |
| No data | 19/19 (100 %) / 19/27 (70 %) | unchanged |
| Obstruction | 3/6 (50 %) / 3/225 (1 %) | unchanged |
| Perturbation | — / 0/10 (0 %) | — / 0/7 (0 %) |
| Target issue | 651/651 (100 %) / 651/651 (100 %) | unchanged |
| Thermal displacement | 405/442 (92 %) / 405/554 (73 %) | unchanged |
| Visibility | 4/175 (2 %) / 4/14 (29 %) | unchanged |
## Checks
range: only the Perturbation "correct" line changes, 0/10 → 0/7.
benchmark: only Perturbation lines change (complexity 611 → 613 code lines, 47 constants):
- station 1 (first block): 0/9 → line gone (no Perturbation flagged)
- block 2: correct 0/85 → 0/4
- FLORIDA: found 2/22 → 1/22, correct 2/108 → 1/72
- block 4: correct 0/48 → 0/47
- block 5: correct 1/305 → 1/284
- block 7: correct 0/47 → 0/14
- NORDEND: found 2/26 → 1/26, correct 2/40 → 1/19
- block 9: correct 0/64 → 0/50
- WILDSTRUBEL: found 1/44 → 0/44, correct 1/6 → 0/3
- Total: found 31/358 (9 %) → 28/358 (8 %), correct 31/754 (4 %) → 28/535 (5 %)
compare before → after (identical before → S1; `benchmark-S1.txt` = `benchmark-after.txt`):
```
FLORIDA Perturbation found 9 → 5 % (1 instants lost)
FLORIDA Perturbation correct 2 → 1 % (-35 instants lost)
NORDEND Perturbation found 8 → 4 % (1 instants lost)
Total Perturbation found 9 → 8 % (3 instants lost)
Total Perturbation correct 4 → 5 %
WILDSTRUBEL Perturbation found 2 → 0 % (1 instants lost)
WILDSTRUBEL Perturbation correct 17 → 0 % (-2 instants lost)
0 regression(s); complexity: 611 code lines, 47 constants → 613 code lines, 47 constants
```
## Reservations
- Perturbation "found" loses 1 instant on each of 3 stations (Total 9 → 8 %, -0.8 point). Each lost instant is a jump back at the instant of a one-instant Brief obstruction. The detectors now read it as part of that Obstruction (families.md, "a passage in front of a reference that makes the base jump is Obstruction"), but the label keeps it as Perturbation:
- FLORIDA, label FLORIDA-18 (2026-10-09T08:00Z → 13:30Z): the 10:00Z jump (6 sensors) is now in the Brief obstruction at 10:00Z.
- NORDEND, label NORDEND-112 (2026-09-13T04:00Z → 05:15Z): the 04:15Z jump (19 sensors) is now in the Brief obstruction starting at 04:15Z.
- WILDSTRUBEL, label WILDSTRUBEL-153 (2026-10-03T15:15Z → 10-04T15:45Z): the 04:42Z jump is now in the Brief obstruction starting at 04:42Z.
- A side effect seen on NORDEND: the Brief obstruction at 2026-09-08T12:45Z no longer absorbs the jump of 09-05T12:15Z, which now joins an earlier host. The scores do not change because of it.
- Absorbed jumps now widen the `sensors` of the host Obstruction event (e.g. 1 → 7 sensors on FLORIDA 10-09T10:00Z, 1 → 19 on NORDEND 08-31T00:00Z). This follows from the rule. The benchmark does not see it (scored per instant, without the sensors).
## Tools
none