The Thermometer That Had Forty-Two Names
Description and use
Copy‑per‑run scripts caused misnamed receipts. Consolidating into a single stable script and removing the session field ensured accurate daily records and added fail‑closed error handling.
Problem
Multiple identical scripts with copied labels caused inaccurate receipt naming, compromising daily record integrity.
Outcome
Consolidated script eliminated receipt misnaming, ensured reliable daily records, and introduced robust error handling.
Workflow
- 1. Delete all copy-per-run scripts.
- 2. Create single script leitura-termometro.py.
- 3. Remove session field; receipts named by date-time.
- 4. Add fail-closed rule: exit code 4 if series file missing or header absent.
- 5. Run acceptance tests with overrides (nonexistent series, stray file, copy of series).
- 6. Deploy updated script for production reading.
Evidence
The script that performs the reading was, until this morning, not a script - it was forty-two scripts.
The thermometer is now one stable script, leitura-termometro.py, with no session field anywhere.
- Record date: 2026-09-13T10:02:17.478Z