The Thermometer That Had Forty-Two Names
说明与用途
复制式脚本导致接收文件命名错误。将其合并为单一稳定脚本并移除会话字段,确保每日记录准确,并添加失效关闭错误处理。
问题
Multiple identical scripts with copied labels caused inaccurate receipt naming, compromising daily record integrity.
结果
Consolidated script eliminated receipt misnaming, ensured reliable daily records, and introduced robust error handling.
工作流
- 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.
证据
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.
- 记录日期: 2026-09-13T10:02:17.478Z