Live loop-ul dumpa frame-uri pe schimbare de culoare în samples/, iar userul copia manual cele utile în calibration/frames/ pentru labelling și regresie. Pas inutil — acum scrie direct în corpus. - samples_dir → calibration/frames/ (mkdir parents=True) - stub capture (ATM_STUB_CAPTURE pentru smoke test Linux) citește din aceeași locație - 8 PNG-uri orfane din samples/ (20260421_*) mutate în corpus - CLAUDE.md clarifică: filename = culoarea detectată (poate fi greșită); calibration_labels.json rămâne singurul ground truth (manual) Impact zero pe validate-calibration (iterează peste labels.json, ignoră fișiere extra) și test_scenarios_regression.py (referă doar frame-uri curate din scenarios.json). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
calibration/ — frame corpus for validation & regression
Two artifacts, one frame pool:
calibration_labels.json— per-frame color labels. Used byatm validate-calibrationto check the current palette classifies known-good dots correctly before a live session.scenarios.json— ordered frame sequences per FSM scenario (full cycle, phase skip, catchup, post-fire suppression). Consumed bytests/test_scenarios_regression.pywhich runs each sequence through the fullDetector → _handle_tickpipeline and asserts color, FSM reason/state, emitted alerts, and scheduler on/off.
Frames live in calibration/frames/ and are self-contained: purging
logs/fires/ or samples/ does not break either artifact.
calibration_labels.json schema
Schema
A JSON array of entries. Each entry:
| Field | Type | Required | Description |
|---|---|---|---|
path |
string | yes | Path to a PNG frame (relative to CWD or absolute). |
expected |
string | yes | Expected color name: one of turquoise, yellow, dark_green, dark_red, light_green, light_red, gray. |
note |
string | no | Freeform annotation; shown in SUGGESTIONS output. |
Usage
atm validate-calibration calibration/calibration_labels.json
Exit codes:
0— every sample PASS1— one or more FAIL2— label file missing or malformed JSON
Adding new samples
- Find a screenshot in
logs/fires/whose dot color you can verify by eye. - Copy it into
calibration/frames/— this directory is self-contained sologs/fires/andsamples/can be emptied without breaking validation. - Append an entry with
path(pointing tocalibration/frames/...),expected, and an optionalnote. - Re-run validation. If it FAILs, the SUGGESTIONS section will tell you the
RGB distance between the observed pixel and the expected color's center —
use that as input for
atm calibrate.