You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: wire cron failure digest into CLI user turn (Closes#433) (#476)
* feat: cron failure records + digest for silent job failures (#433)
- Persist per-job run status under ~/.hermes/cron/failures/ via
save_job_failure/list_job_failures/get_latest_failure.
- run_one_job writes a failure record (last output + traceback) on every
failed run and a success marker on recovery, replacing invisible cron
failures with a durable audit trail.
- Add opt-in cron.failure_digest config key; build_cron_failure_digest()
surfaces recent un-acked failures to the user on the next interaction.
- Recognize circuit_breaker as a known custom-provider config key.
- Add tests covering persistence, latest resolution, run_one_job hooks,
digest gating, and ack behavior.
Closes#433
Co-Authored-By: Hermes Evolution <evolution@hermes.ai>
* feat: wire cron failure digest into CLI user turn (#433)
The persistence and build_cron_failure_digest helper from the first slice
were not connected to any user-interaction path, so the digest never
reached the operator. This change:
- Adds a small lazy-import helper _get_cron_failure_digest_for_user().
- Surfaces the digest at the start of HermesCLI.chat() before the user
message is sent to the agent.
- Prepends the same digest to the model's user_message so the agent sees
the recent cron failures without adding a phantom turn to history.
- Adds integration tests proving the digest reaches run_conversation and
that it is skipped when no digest is available.
Closes#433
Co-Authored-By: Hermes Evolution <evolution@hermes.ai>
---------
Co-authored-by: Hermes Evolution <evolution@hermes.ai>
0 commit comments