Files
aimsight-optimizer/sessions/NORDEND_2026-08-17T0515_2026-11-07T1400_20261118T1024Z/summary.md
T

8.8 KiB
Raw Blame History

optimize: NORDEND, 2026-08-17 → 2026-11-08

Result: modification kept Tools changed: scripts/inventory.py

The range

Range score, before → end (end = after): no line changed.

  • Displacement: found 0/4 (0 %), correct 0/1 (0 %)
  • No data: found 22/56 (39 %), correct 22/22 (100 %)
  • Obstruction: found 936/2956 (32 %), correct 936/1994 (47 %)
  • Perturbation: found 2/26 (8 %), correct 2/39 (5 %)
  • Target issue: found 4285/7815 (55 %), correct 4285/4290 (100 %)
  • Thermal displacement: found 4779/6940 (69 %), correct 4779/5299 (90 %)
  • Visibility: found 893/2092 (43 %), correct 893/2045 (44 %)

Elsewhere

compare.py benchmark-before.txt benchmark-after.txt prints no changed line, only its last line:

0 regression(s); complexity: 617 code lines, 49 constants → 611 code lines, 48 constants

(The benchmark files also show small changes that compare.py does not list: Total Target issue found 19359/23001 → 19360/23001, correct 19359/19371 → 19360/19372; Total Obstruction correct 1322/4869 → 1322/4873; WILDSTRUBEL only.)

What changed

  • S1 (35b159a): removed the run-level condition share < SHARE in scripts/target_issue.py; it never fired.
  • S2 (0adadd5): removed MIN_HOURS = 3 (the day filter) from scripts/target_issue.py, with its line in thresholds.md.

Upgrader: changed. Validator: keep.

For the user to decide

From the modification, "Limits":

  • NORDEND-24 (2026-08-17T05:15Z → 2026-10-01T00:00Z, Target issue) and NORDEND-152 (2026-10-01T00:00Z → 2026-10-26T20:45Z, Target issue), on the days PR04 is rejected for under 13 %. The label rests on its weak spot on the images and its noisier curve. Seeing it would take a per-target noise level against the neighbours', or the images.
  • NORDEND-169 (2026-10-08T02:15Z → 2026-11-07T14:00Z, Obstruction): the mark on the window in front of PR17 is seen on the night thumbnails. From the measurements, only PR17's error_value doubling (10-08 → 10-25) and its step show it; after 10-26 its error_value is back to its usual level while the label goes on. Seeing it would take the images, or a per-sensor rule on a lasting change of error_value level, which would be a new rule for one case.
  • The sunny-afternoon and dimming Visibility labels (NORDEND-321 to 333, 269, 272, 273): the cause is seen on the thumbnails, and the error_value hardly rises.
  • The context report says NORDEND-283 (CTR01) and NORDEND-284 (PR17) duplicate the extended NORDEND-195 and NORDEND-169 and should be removed. They are not in the labels file read here.

From the modification, "For the user to decide":

  • How the score counts the instants of NORDEND-169 (PR17, Obstruction, 10-08 → 11-07). About 880 of its "found" instants come from Target obscured events on CTR01, PR04, PR09 and PR07, which the labels put in Visibility (NORDEND-167, 173, 174, 213) or in Target issue for PR04 (NORDEND-152). Any change that gives these sensors their right family, or drops their shared episodes, shows up in compare.py as a NORDEND and Total Obstruction "found" regression. CLAUDE.md does not count that as a regression ("an instant found by an event on another sensor"), but the compare tool does. I did not commit such a change; the variants are under Not fixed.

From the validation, "Reservations":

  • WILDSTRUBEL, Obstruction: correct 238/678 → 238/682 (4 more wrongly flagged instants, 35 % unchanged). This is far below the regression thresholds (more than 5 points and more than 20 instants), so I counted it as noise.

Not fixed

  • PR04's short runs as Target issue (08-21 → 08-25, 10-20 → 10-25). Counting the WEEK on the sensor's degraded days over the whole window, instead of per run, turns them into Target issue (NORDEND Target issue found 55 → 69 %). It also turns the shared runs of CTR01, PR09 and PR07 into Target issue (wrong sensor) and removes the Obstruction instants above: NORDEND Obstruction found 31 → 2 %, Total Obstruction found 31 → 10 %, correct 27 → 18 %. Dropped. WEEK = 5 has the same effect (Total Obstruction found 31 → 23 %): dropped.
  • Only the target's own rejections (rejections at instants when at most 1, 2 or 3 other sensors, or a quarter of the sensors, are rejected), which is the families.md boundary. It removes the shared runs, but also the lost references and twins of the other stations: Total Target issue found 84 → 53 % (at 1 other), 75 % (at 2 or 3); SNCF01 and NIEDERHORN Target issue found down to 0–36 %. At a quarter of the sensors: Total Obstruction found 31 → 20 %. Dropped.
  • SHARE = 0.2 (PR04 10-16 → 10-25 becomes a Degraded target) only adds 60 Target issue instants and costs Total Obstruction correct 27 → 25 %. BRIDGE = 2: NORDEND Target issue found 55 → 66 %, but regressions in NORDEND and Total Obstruction. Dropped (constants tuned to one range anyway).
  • Thermal nights: RETURN = 0 (the contraction runs to the next start) brings NORDEND Thermal found 73 → 100 %, but Total Thermal correct drops 70 → 65 % (FLORIDA, NIEDERHORN, SNCF01, WILDSTRUBEL). The stations label the night differently. Dropped.
  • Poor visibility chained across sensors (09-22 → 09-26): zones that need two sensors high at the same instant, instead of chained runs, raise Total Visibility correct 69 → 76 % but lose found 56 → 52 % (regression). The variant where the core is extended by its spans gives 0 regressions and +1 point Total Visibility correct, but it does not break the 09-22 → 09-26 zone and it produces overlapping duplicate episodes. Not committed.
  • Slow drift of PR16 over the whole benchmark window of NORDEND (08-07 → 11-07, 8549 instants flagged as Displacement, Displacement correct 4/8549 in the benchmark). It does not appear on this range (a window starting 08-14 does not show it), so it is outside the evidence. Worth its own range.
  • No data two-measurement gaps, sunny-afternoon Visibility, one-measurement camera jolts: see Diagnosis; no simple general rule found.

Reading tools

What I decided:

  • scripts/rejections.py (analyst): not added as a new tool. Its output goes into the existing section of inventory.py instead (the simplest: no new tool, no new option, the existing output stays and gets longer).
  • inventory.py: changed (S1), see below.
  • Other tools: left. ranges.py and summary.py did what was asked of them.

What changed:

  • S1, commit 7ada30a (aimsight-tools), scripts/inventory.py, function window, section "Rejected measurements in the window":
    • the sensor line PR04 (N): runs… becomes PR04 (N of M, P %): runs… (M = the sensor's measurements in the window; the runs are unchanged);
    • a new line follows each sensor that has a rejection: PR04 per day, D of T days with a rejection: MM-DD:% MM-DD:% …, the share rejected on each UTC day that has measurements of the sensor;
    • the section title and the module docstring say this.

data.py: unchanged.

(The tools upgrader also leaves to the user one sentence for GUIDE.md, which was already modified and not committed: see "For the user to decide" of tools.md.)

Scripts of the agents

From the modification, "Tools":

  • sessions/NORDEND_2026-08-17T0515_2026-11-07T1400_20261118T1024Z/tools/labels.py: labels of a JSONL touching a range (file FROM TO [chars] [family]). Worth keeping.
  • .../tools/match.py: label by label, the overlapping events (= same family, x other), then events with no label of their family (detectors_dir station labels FROM TO [family]). Worth keeping.
  • .../tools/missed.py: from a match.py output, labels without an event of their family, per family, with durations. Worth keeping.
  • .../tools/daily_reject.py: daily rejection share per sensor (station FROM TO sensors). Worth keeping.
  • .../tools/own_reject.py: daily share of rejections with at most K other sensors rejected at once (station FROM TO sensors K). Kept for the Target issue question.
  • .../tools/daily_error.py: daily median error_value per sensor and its share above visibility's "high" limit (station FROM TO sensors). Useful.
  • .../tools/episodes_of.py: raw episodes of one detector module before categories.py (detectors_dir station module FROM TO [sensor]). Worth keeping.
  • .../tools/variant.sh and replace.py: copy the detectors to a working folder, apply exact replacements, run the range score and the benchmark of the copy (WORK name [file old new]...). Worth keeping for pruning.
  • .../tools/checks.sh: the four checks on the live detectors plus compare (TAG PREV). Specific to this session.

From the validation, "Tools": none.

Errors

none.

  • Files already modified: detectors: none; tools: GUIDE.md (left as it is).
  • Detectors base: 751def06d5c69923316300b38abb030ec770f3f1; git log --oneline <base>..HEAD:
    0adadd5 improve: S2
    35b159a improve: S1
    
  • Tools base: 84cfd6925b8994b149c7361f48253fc28ebd4e14; git log --oneline <tools base>..HEAD:
    7ada30a improve: S1