Files
aimsight-optimizer/sessions/JUNGFRAU_2026-09-30T0000_2026-11-01T0000_20261118T1153Z/validation.md
T

4.8 KiB

Validation

Verdict: keep

Answers

  1. Loads and runs: I reran the benchmark at HEAD (0cca2a0) on 2026-11-18. It exited with code 0, printed no skipped line, and gave the same figures as benchmark-after.txt (compare: nothing changed, 607 → 607 lines). No skipped line in any session benchmark either.
  2. Nothing goes back: compare finds 0 regressions from before to after, and 0 from each fix to the next (S1, S2, S3, S4). The drops are all under the thresholds; see Reservations.
  3. The gain justifies the code. S1 adds 1 constant and 3 lines, and Total Displacement correct goes from 41 to 57 % (+16 points). S2 changes a value and adds no constant, and Total No data goes from 45 to 100 % found and 77 to 83 % correct. S3 adds 2 lines and no constant, and Total Perturbation correct goes from 2 to 3 %. S4 removes a rule and changes no figure. Overall: 602 → 607 code lines, 45 → 46 constants.
  4. No overfitting found. RETREAT = 1/3 sits between the labelled drifts (0.25 at most, on 4 stations) and the seasonal wandering (0.39 or more), and the benchmark gives the same figures for any value from 0.25 to 0.38. MISSING = 0.5 is a structural margin (one missing step, with room for timestamp jitter), and labels on 8 stations support it. S3 reuses the existing MERGE value.
  5. The target's rules are respected: only scripts/*.py and thresholds.md change, and bench/ is untouched. No rule depends on a station, sensor or date; "JUNGFRAU 2026-09-30, S" appears only as a history reference. thresholds.md and the docstrings are updated: the RETREAT line is added, and the MISSING and MERGE lines are rewritten.

The range

JUNGFRAU 2026-09-30 → 2026-11-02, before → after (found; correct):

  • Displacement: — ; 0/3100 → 0/2 (S1: the false whole-window drift is gone)
  • No data: 6/29 (21 %) → 29/29 (100 %); 6/6 (100 %) → 29/37 (78 %) (S2)
  • Perturbation: 1/2 (50 %) → 0/2 (0 %); 1/265 → 0/53 (S3)
  • Obstruction, Target issue, Thermal displacement, Visibility: unchanged

Checks

range: Displacement correct 0/3100 → 0/2; No data found 6/29 → 29/29, correct 6/6 → 29/37; Perturbation found 1/2 → 0/2, correct 1/265 → 0/53.

benchmark, compare benchmark-before.txt benchmark-after.txt:

           CLARIDEN     No data               found     62 → 100 %
           FLORIDA      No data               found     29 → 100 %
           FLORIDA      No data               correct  100 →  91 %  (2 instants lost)
           JUNGFRAU     No data               found     21 → 100 %
           JUNGFRAU     No data               correct  100 →  88 %  (4 instants lost)
           JUNGFRAU     Perturbation          found     50 →   0 %  (1 instants lost)
           JUNGFRAU     Perturbation          correct    1 →   0 %  (-115 instants lost)
           LENZSPITZE   No data               found     68 → 100 %
           LENZSPITZE   No data               correct   52 →  56 %
           MICHIGAN     Displacement          correct   16 →  17 %
           NIEDERHORN   No data               found      8 → 100 %
           NORDEND      No data               found     38 → 100 %
           SNCF01       No data               found     40 → 100 %
           SNCF01       No data               correct   63 →  73 %
           Total        Displacement          correct   41 →  57 %
           Total        No data               found     45 → 100 %
           Total        No data               correct   77 →  83 %
           Total        Perturbation          found     11 →  10 %  (1 instants lost)
           Total        Perturbation          correct    2 →   3 %
           WILDSTRUBEL  No data               found     76 → 100 %
           WILDSTRUBEL  No data               correct   74 →  70 %  (5 instants lost)
           WILDSTRUBEL  Perturbation          correct   14 →  17 %

0 regression(s); complexity: 602 code lines, 45 constants → 607 code lines, 46 constants

Each fix against the one before it: S1 Displacement only (MICHIGAN, Total correct); S2 No data only; S3 Perturbation only (JUNGFRAU, Total, WILDSTRUBEL); S4 nothing changed (608 → 607 lines). Each step shows 0 regressions.

Reservations

  • JUNGFRAU, Perturbation found 50 → 0 % (1 instant, label JUNGFRAU-112, 2026-10-09T00:45Z, one measurement). Before, it was found only by chance: a 53 h Perturbation (2026-10-08T07:15Z → 2026-10-10T12:30Z) that S3 now puts into the preceding Visibility event. It is below the thresholds and the long event was not a real reading of the label.
  • No data correct drops by a few instants: FLORIDA 100 → 91 % (2), JUNGFRAU 100 → 88 % (4), WILDSTRUBEL 74 → 70 % (5). These are single missing measurements that are now flagged but not labelled everywhere: the labels are inconsistent from one station to another. The Total still rises (77 → 83 %).

Tools

none