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

11 KiB
Raw Blame History

optimize: CLARIDEN, 2026-10-01 → 2026-11-02

Result: modification kept Tools changed: scripts/ranges.py, GUIDE.md

The range

CLARIDEN 2026-10-01T00:00Z → 2026-11-02T00:00Z, 31 labels, before → end (found; correct):

  • Displacement: 1422/1422 (100 %) → same; 1422/4213 (34 %) → 1422/3215 (44 %)
  • No data: 24/24 (100 %) → same; 24/29 (83 %) → same
  • Obstruction: 1/5 (20 %) → same; 1/9 (11 %) → same
  • Perturbation: — ; 0/92 (0 %) → same
  • Target issue: 4068/4068 (100 %) → same; 4068/4213 (97 %) → same
  • Thermal displacement: 0/33 (0 %) → same; 0/204 (0 %) → 0/183 (0 %)
  • Visibility: 3/87 (3 %) → same; 3/3 (100 %) → same

Elsewhere

           Total        Displacement          correct   57 →  58 %
           Total        Thermal displacement  found     82 →  81 %  (16 instants lost)
           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)
           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

What changed

  • S1 (260d942), scripts/displacement.py, _pieces: the step condition was step <= abs(d) / 2 and is now step <= PIECE * ampl / 2; in a piece, a day-to-day step larger than half the minimum piece (1.75 daily amplitudes) is a jump, however long the drift around it.
  • S2 (9577c52), scripts/thermal_displacement.py, slides: a slide instant now needs the raw positions and the corrected curves to move away on the same axis (x with corr_x, y with corr_y).
  • S3 (d967fd2), scripts/displacement.py, drift: removed if is_reference(ms): continue (pruning, no figure changed).
  • S4 (b9d7aea), scripts/thermal_displacement.py, _signs: len(before) >= 3 became before (pruning, no figure changed).

Upgrader: changed. Validator: keep.

For the user to decide

Limits (modification):

  • CLARIDEN-35 (2026-10-27T12:00Z → 12:20Z, Target issue): the label rests on PR-284's spot being weaker on the thumbnails since 24/10, with no rejection. It would take the images or a long-term error_value trend per sensor.
  • CLARIDEN-65 (2026-10-29T23:50Z → 2026-10-30T00:10Z, Target issue): a change of starting position (configuration) with no movement of the raw positions. It would take the configuration or the raw positions next to the relative displacement.
  • CLARIDEN-68 (2026-10-31T09:20Z → 15:00Z, Thermal displacement): the camera scale and pan follow the housing temperature for one late morning, with no daily cycle. It would take the housing temperature and the camera pose, which the detectors do not read.
  • Visibility labels CLARIDEN-12, 55, 61, 69, 70, 71: the cause is not established even for the analyst (the "usual group" bump, nothing on the images). The error_value barely moves, so they are recognised by their signature on the curves.
  • The report says the D-302-B and PR_BG jumps between two levels (1/10, 5/10, 11/10, 14/10) belong to that target and no label covers them. The detectors' Perturbation of 05/10 10:30–23:50 is one of them.
  • The report names CLARIDEN-14 for the 06→11/10 drift. The labels file has CLARIDEN-74 at those bounds, which I took as the same label.

For the user to decide (modification):

  • BACK_H and the "Jump, not back yet" variety: removing them changes no figure on the benchmark, and the CLAUDE.md pruning rule would remove them. I kept them because labeling/families.md lists the variety for the client, and without it the jumps of the last 24 h in live use would be called "Lasting shift ... for more than a day". Remove it if the variety is no longer wanted (and update families.md).
  • S2 loses 16 labelled Thermal instants in total (WYOMING 10, MICHIGAN 1, NEBRASKA 1, LENZSPITZE 4), all under the regression limits: slide instants where the raw and corrected moves were on different axes. MICHIGAN Thermal correct gains 18 points. I read a cross-axis move as not being the camera carrying the curves; another reading would keep it.

Reservations (validator):

  • 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.

Not fixed

  • The remaining drift pieces at CLARIDEN (D-301-C 29/09→07/10 and 07→25/10, D-303-C 06→25/10, D-304-B 30/09→23/10, D-306-B 07→25/10): slow creeps of 3.5 to 4 daily amplitudes over 2 to 3 weeks. The pruned labels count them as the targets' back-and-forth wandering, apart from the two 4- to 5-day drifts. Tried: taking the shortest pieces first (same gain as S1, nothing more) and a retreat test inside the pieces (all pass, between 0.15 and 0.31). A maximum duration would drop CLARIDEN-74, whose targets only reach PIECE over a longer run (a found regression). The same thing happens at MICHIGAN (pieces of 25 days around the 4-day MICHIGAN-19).
  • The two remaining Thermal extras (10-01, 10-24): isolated slide instants joined within a day. A 3 h join lost LENZSPITZE (−25 points found, 573 instants) and WYOMING (−20 points): regression.
  • Visibility misses (8 labels) and the Perturbation at 31/10 22:50 that depends on them: the error_value signal is under the diffuse threshold and below a window-wide baseline (see Diagnosis). A baseline local in time (for example the median of the day before) is a new mechanism that would need its own benchmark trial.
  • Obstruction from a single rejected reference inside a Visibility label (PR-295, 31/10): Obstruction and Visibility look the same from one sensor's error_value. The families document decides by what is in front of the reference, which only the images show.

Reading tools

What I decided:

  • ranges.py: changed. With --labels, each label now also gets its size: the --top sensor-columns (default 5), each with the level before the label (median of the --margin before its start, default 6h), the extreme inside (signed, in units, in noises, and its instant) and the net change (median of the --margin after the end minus the level before). Over an outage, the net change is given alone. This covers disp_size.py and short_native.py as an option of an existing tool, which ranks before a new tool.
  • GUIDE.md: changed. It now documents --labels (S1) and its size block, with --margin and --top (S2). The user's uncommitted change in GUIDE.md was left out of both commits.
  • disp_size.py, short_native.py: left in the analysis folder, because the option replaces them. Their 1 h rolling median is not carried over: the net change after the label is enough to tell a spike that comes back from a step that holds.
  • month_plot.py: left. It is a hand-picked list of sensors for this range. plot.py --zone, overview.py (pose) and metrics.py (temperature) already show the same things.
  • Nothing removed.

What changed:

  • S1, 72ff921, GUIDE.md, section ranges: [--labels F] added to the synopsis, plus one option bullet describing what the script has done since f5ff319 (labels covering each --instants line; per label, the measurements inside, the largest deviation, the instants beyond --k).
  • S2, af6cf23:
    • scripts/ranges.py: new options --margin DURATION (default 6h) and --top N (default 5), used only with --labels. Under each label line there is now one row per sensor-column, sorted by |extreme| in noises, showing: before (number of measurements in the margin before the start), extreme from their median (units, noises, instant), net (median of the margin after the end minus the level before; units, noises) and after (number of measurements). A label with no measurement inside gets rows with net only, sorted by |net|. The existing label line and every other output are unchanged. The docstring is updated.
    • GUIDE.md: [--labels F [--margin 6h] [--top 5]] in the synopsis. The bullet now covers the size block, how to read extreme against net, and that --start/--end should be widened by the margin.

data.py: unchanged.

Scripts of the agents

Modification:

  • sessions/CLARIDEN_2026-10-01T0000_2026-11-01T0000_20261118T1219Z/tools/drift_dump.py <detectors> <station> <from> <to> [kind|label]: the raw episodes of each detector over a window (3 days of history). Worth keeping.
  • tools/days.py <detectors> <station> <from> <to> [sensors]: the daily levels of the slow drift in daily amplitudes, the whole-window test and the pieces. Worth keeping for drift work.
  • tools/drift_all.py <detectors> <labels folder> <data folder> [stations]: drift episodes against the Displacement labels on every labelled station. Worth keeping.
  • tools/vis_z.py <detectors> <station> <labels.jsonl> <from> <to> [family]: around each label, the median error_value z, the "high" and rejected counts. Worth keeping for Visibility work.
  • tools/slides.py <detectors> <station> <from> <to>: the slide instants of thermal_displacement and their axes. Useful once.
  • tools/groups.py <detectors> <station> <from> <to> and tools/trace.py … <sensor>: the events with their episodes, and where the episodes of one sensor go. Worth keeping.
  • tools/table.py <detectors> <station> <labels.jsonl> <from> <to>: the diagnosis table (labelled, found, flagged, wrongly) with the missed labels and wrong events. Worth keeping.
  • tools/variant.py <src> <dst> <file> <old> <new> … and tools/bench_many.sh <reference> <variants…>: the pruning (one copy per rule, benchmarks 6 at a time, then compare). Worth keeping.

Validation: none.

Tools upgrader (tools.md):

  • sessions/CLARIDEN_2026-10-01T0000_2026-11-01T0000_20261118T1219Z/tools/stage_hunks.py <repo> <file> <text> [--dry]: stages in the git index only the hunks of a file's working diff that do not contain <text>. Use it to commit your own hunks in a file that also carries someone else's uncommitted change. Worth keeping while GUIDE.md is often left modified between sessions.

Errors

None.

  • Files already modified: detectors: none; tools: GUIDE.md (left uncommitted in the working tree; the upgrader committed only its own hunks).
  • Detectors base 0cca2a0f2da0899797a2ed7a39ad6ffa43d316ce, git log --oneline <base>..HEAD:
    b9d7aea improve: S4
    d967fd2 improve: S3
    9577c52 improve: S2
    260d942 improve: S1
    
  • Tools base f5ff3192aec54f6924486695de92c5c4c7d185ee, git log --oneline <tools base>..HEAD:
    af6cf23 improve: S2
    72ff921 improve: S1