Files
hermes-agent/cron
teknium1 5ebbcbc8dc fix(cron): an oversized or live-SQLite cron script raises the named refusal, not the lifecycle verdict
`_read_script_for_scanning` returned a lifecycle-shaped sentinel ("hermes gateway
restart") when the job's OWN script was oversized, a device, or a SQLite database
open in this process, so `check_gateway_lifecycle` raised the misattributed
"cron job contains a gateway lifecycle command" error. It now returns
`(text, refusal)` via `_unreadable_reason` and the caller raises the existing
named "could not scan ... <reason>" refusal, matching the referenced-script walk
(#113944 atom 4).

Also adds encoding="utf-8" to the PR's own test file where the Windows footgun
scanner flagged bare write_text()/open() calls.
2026-09-18 09:35:16 -07:00
..