# optimize: NORDEND, 2026-08-23 → 2026-09-05 **Result**: none **Tools changed**: scripts/ranges.py ## The range Unchanged (end = before), `range-before.txt`: | Family | found | correct | |---|---|---| | Displacement | 0/1 (0 %) | — | | No data | 14/14 (100 %) | 14/14 (100 %) | | Obstruction | 16/19 (84 %) | 16/406 (4 %) | | Perturbation | 0/2 (0 %) | 0/5 (0 %) | | Target issue | 0/1224 (0 %) | — | | Thermal displacement | 758/1044 (73 %) | 758/881 (86 %) | | Visibility | 71/103 (69 %) | 71/274 (26 %) | ## Elsewhere No changed line (end = before). 0 regression(s); complexity: 609 code lines, 46 constants → 609 code lines, 46 constants ## What changed No fix: each change and each rule removal the upgrader tried made a regression or gained nothing (thermal wave through the night, RETURN = 0: 5 regressions; whole-scene one-instant obstruction read as Visibility: no gain; pruning `BRIDGE`, `MIN_DAYS`, `WEEK` of `target_issue.py`: regressions). Upgrader: `nothing to change`; validator: not run. ## For the user to decide From the modification, "Limits": - NORDEND-24 (2026-08-17T05:15Z → 2026-10-01T00:00Z, Target issue), its 21-25/08 part: Target issue (the target itself) or Target obscured (something in front) is decided by the cause, seen on the images. The measurements give only the duration (`WEEK`). - NORDEND-316 (2026-08-28T14:15Z → 14:45Z), NORDEND-317 (2026-08-31T14:30Z → 15:00Z), NORDEND-318 (2026-09-01T14:45Z → 15:30Z), Visibility: "whole image less clean in the sun" for one measurement. Telling this apart from a passage hiding many targets (the trains of SNCF01) would take the image of the instant. - NORDEND-53, -248, -253 and -83 were removed by the context; the detectors still flag around NORDEND-53 (PR07 Target obscured and Poor visibility, 24-25/08), -248 and -83 (thermal, 28/08 and 03/09). From the modification, "For the user to decide": - NORDEND-24 (NORDEND, 26/08 → 05/09, Target issue, PR04): the detectors see PR04 as normal there, with a few Brief obstructions. They see 21-25/08 as Target obscured (Obstruction). If the labels' reading is kept (a target whose usual error_value is several times its neighbours' is a Target issue even when rarely rejected), families.md should say so. The same reading covers NORDEND-152 (01/10 → 16/10, PR04). It is the largest missed share of NORDEND Target issue in the benchmark: about 3400 instants. - NORDEND thermal labels (NORDEND-51, -52, -55, -56, -246, -68, -72, -74, -78, -81) run 05:15 → 05:15, nights included, while other stations label part of the day. The detectors' wave ends at 23:00. Covering the nights costs 5 points of Total Thermal correct. - 28/08 and 03/09 (NORDEND-248 and NORDEND-83, removed): the camera path flags the compensated camera movement (D-074, "everything is detected"). The labels keep only what the corrected curves keep. - NORDEND-85 (03/09 16:30, Visibility, cause not established): read as Perturbation, consistent with families.md. Validator's reservations: none (not run). ## Not fixed - **NORDEND-24 (PR04):** no general rule found; see above. - **NORDEND-316, -70, -71, -73, -255, -318, -69:** a weak target rejected while all targets jump at once is read as Obstruction, through the single-instant Obstruction rule of `categories.py` (SNCF01 2026-10-14, S1). Tightening that rule to an obstruction that includes a reference would only move these instants to Perturbation, still not Visibility. - **NORDEND-250, NORDEND-80, NORDEND-251, NORDEND-254:** steps and jumps under `K` and `K_TOGETHER`. Lowering those would bring in the unlabelled short jumps the context says stay within the noise. ## Reading tools **data.py**: unchanged What I decided: - `ranges.py`: changed (S1, a9948d3). Two options of `--labels`, for the size block only: `--smoothing N` (each measurement inside is the median of the N centred on it, the same meaning as in `days.py`) and `--shorter-out` (leaves out, before, inside and after, the measurements inside the shorter labels of the file that overlap the label). The default output is unchanged byte for byte. - `requalify.py`, `thermal_nights.py`, `thermal_days.py`: not added as tools. They are fixed to this station (hard-coded sensors and paths), and the new options of `ranges.py` now cover what they measured. - `scan.py`: left. `ranges.py --rolling N --instants 1 --labels F` already shows the same. - `GUIDE.md`: left untouched, as the request requires (it was already modified). The target's rules want a new option in the guide in the same change. The text is proposed in `tools.md` ("For the user to decide") for the user. What changed: - S1, a9948d3, `scripts/ranges.py`: two new arguments, `--smoothing N` (default 1, i.e. none) and `--shorter-out` (flag, off by default). Both act only in the per-label "size" rows of `--labels` (extreme inside from the level before, net, `>k`). The per-label head line and every other output are unchanged. - With `--shorter-out`, the measurements inside any label of the file that is shorter than the label being measured and overlaps it (`start < end of label` and `end > start of label`) are dropped from before, inside and after. A label that only touches it, such as the previous day's label, is not dropped. - With `--smoothing N`, each measurement inside becomes the median of the N measurements centred on it, taken from the kept series. - The header line says which options are on. The docstring and usage line describe both options. ## Scripts of the agents From the modification, in `sessions/NORDEND_2026-08-23T0515_2026-09-04T0615_20261118T1542Z/tools/`: - `dayshare.py `: each sensor's share of rejected measurements per UTC day. Worth keeping for Target issue work. - `dayratio.py `: table of each sensor's daily median error_value/threshold. Worth keeping. - `daynoise.py [sensors]`: table of the daily median step of corr per sensor. Worth keeping. - `brief_share.py `: the Brief obstructions of every station, bucketed by share of sensors × label family. Single-use. - `episodes_at.py `: the raw episodes of each detector over a span, before categories.py. Worth keeping. - `table.py `: the diagnosis table and the missed labels. Worth keeping. Validation: not run. ## Errors - None missing. The validator was not run (upgrader verdict `nothing to change`, no fix commit). - Files already modified: detectors: none; tools: `GUIDE.md` (left as it is). - Detectors base `0a76627f50195a9fefed42fb263aa11a469fff9d`; `git -C detectors log --oneline ..HEAD`: empty. - Tools base `fc305697f731f1236cff51cfa01b21669f70efd9`; `git -C tools log --oneline ..HEAD`: - a9948d3 improve: S1