Hermes Agent
17c6a566f5
fix(cron): reconcile run history per execution and read it in the owner's scope
...
Review of the run-history fallback:
- Merge agent sessions with script-only output docs per execution instead of
branching on 'any sessions exist': a job converted to no_agent keeps its id
(update_job supports it), so a surviving historical agent session must not
hide newer script-only fires. Same-execution rows dedupe by session span.
- Decode output-doc filenames and read the execution ledger inside the owner
profile's home scope: hermes_time resolves the configured zone through the
current HERMES_HOME, so a cross-profile request decoded with the
dashboard's zone and read the dashboard's executions.db.
- Attach per-run status from the execution ledger (one row per fire) matched
by claim window instead of last_run_at proximity, and surface terminal
attempts with no surviving doc as their own rows — the latest failed run
no longer disappears behind (or relabels) an older successful document.
- Read output docs with encoding='utf-8-sig' (Windows footgun: PowerShell and
some editors BOM files; plain utf-8 breaks on BOM-prefixed docs).
Three regressions cover the converted-job merge, the per-profile timezone
decode, and the missing-newest-doc case.
2026-09-26 17:19:04 -05:00
..
2026-09-24 23:40:17 -04:00
2026-09-24 08:51:52 -04:00
2026-09-24 08:51:52 -04:00
2026-09-24 02:03:59 -04:00
2026-09-24 18:18:28 -04:00
2026-09-23 17:06:48 -07:00
2026-09-24 07:05:56 -04:00
2026-09-25 12:07:32 -05:00
2026-09-24 01:55:51 -04:00
2026-09-25 14:25:49 -05:00
2026-09-24 00:17:13 -07:00
2026-09-27 00:56:11 +05:30
2026-09-24 00:17:13 -07:00
2026-09-23 22:34:54 -04:00
2026-09-26 22:15:19 +05:30
2026-09-25 21:27:06 +05:30
2026-09-24 17:59:37 +05:30
2026-09-24 06:08:20 -04:00
2026-09-24 06:08:20 -04:00
2026-09-26 22:27:13 +05:30
2026-09-24 00:17:13 -07:00
2026-09-26 16:51:19 -05:00
2026-09-27 02:33:57 +05:30
2026-09-26 06:23:43 +05:30
2026-09-24 05:33:01 -05:00
2026-09-26 17:04:59 -05:00
2026-09-25 17:57:38 -05:00
2026-09-24 05:51:58 -04:00
2026-09-25 14:12:27 -04:00
2026-09-24 07:05:56 -04:00
2026-09-25 14:15:22 -04:00
2026-09-24 04:48:00 -04:00
2026-09-25 19:09:03 -05:00
2026-09-24 18:06:48 +05:30
2026-09-24 14:08:03 -04:00
2026-09-24 08:51:52 -04:00
2026-09-24 11:12:27 -04:00
2026-09-24 04:27:31 -05:00
2026-09-26 20:07:47 +05:30
2026-09-27 01:04:39 +05:30
2026-09-25 00:33:42 -04:00
2026-09-24 23:49:18 -04:00
2026-09-25 19:25:40 -05:00
2026-09-24 00:30:45 +00:00
2026-09-26 17:09:16 -05:00
2026-09-25 12:09:37 -05:00
2026-09-24 11:50:30 -04:00
2026-09-24 11:50:30 -04:00
2026-09-24 14:08:03 -04:00
2026-09-24 05:29:08 -05:00
2026-09-25 22:07:48 -04:00
2026-09-25 22:06:58 -04:00
2026-09-25 14:25:16 -05:00
2026-09-24 02:03:59 -04:00
2026-09-23 20:04:27 -04:00
2026-09-26 17:04:25 -05:00
2026-09-25 17:17:48 -05:00
2026-09-25 09:09:44 -04:00
2026-09-23 19:33:40 -07:00
2026-09-26 22:15:19 +05:30
2026-09-24 16:17:47 -04:00
2026-09-23 17:08:21 -07:00
2026-09-25 14:15:22 -04:00
2026-09-24 23:59:55 -04:00
2026-09-24 02:03:03 -07:00
2026-09-24 14:08:03 -04:00
2026-09-24 11:50:29 -04:00
2026-09-24 05:10:12 -04:00
2026-09-25 21:19:04 +05:30
2026-09-24 05:18:38 -04:00
2026-09-27 01:42:52 +05:30
2026-09-25 21:19:04 +05:30
2026-09-24 11:50:29 -04:00
2026-09-25 21:19:04 +05:30
2026-09-25 00:00:09 -04:00
2026-09-27 02:42:27 +05:30
2026-09-24 03:42:38 -04:00
2026-09-26 17:05:07 -05:00
2026-09-26 16:51:19 -05:00
2026-09-27 00:56:11 +05:30
2026-09-24 04:16:45 -04:00
2026-09-24 11:50:30 -04:00
2026-09-26 21:38:28 +05:30
2026-09-24 02:03:58 -04:00
2026-09-27 00:56:11 +05:30
2026-09-25 12:09:37 -05:00
2026-09-24 05:03:23 -04:00
2026-09-23 16:58:39 -07:00
2026-09-25 10:46:54 -05:00
2026-09-27 00:35:39 +05:30
2026-09-27 00:43:39 +05:30
2026-09-27 00:40:21 +05:30
2026-09-24 08:51:52 -04:00
2026-09-24 17:59:37 +05:30
2026-09-24 17:59:37 +05:30
2026-09-25 20:00:57 -05:00
2026-09-24 11:50:30 -04:00
2026-09-25 16:28:14 -05:00
2026-09-24 19:17:34 -04:00
2026-09-24 14:23:48 -04:00
2026-09-24 16:17:35 -04:00
2026-09-24 23:52:31 -04:00
2026-09-24 23:40:03 -04:00
2026-09-24 22:32:57 +05:30
2026-09-25 14:15:22 -04:00
2026-09-24 22:32:57 +05:30
2026-09-25 14:22:12 -04:00
2026-09-24 14:08:21 -04:00
2026-09-23 22:34:54 -04:00
2026-09-24 02:56:08 -07:00
2026-09-27 00:57:22 +05:30
2026-09-27 00:57:22 +05:30
2026-09-27 00:57:22 +05:30
2026-09-24 11:12:27 -04:00
2026-09-24 03:48:31 -04:00
2026-09-25 00:00:09 -04:00
2026-09-24 03:48:31 -04:00
2026-09-24 05:03:23 -04:00
2026-09-24 14:39:30 -04:00
2026-09-23 17:39:15 -07:00
2026-09-24 03:42:38 -04:00
2026-09-23 18:26:45 -07:00
2026-09-25 00:00:09 -04:00
2026-09-23 20:04:27 -04:00
2026-09-24 11:50:30 -04:00
2026-09-24 11:50:30 -04:00
2026-09-24 00:51:07 -04:00
2026-09-24 03:42:38 -04:00
2026-09-25 14:15:22 -04:00
2026-09-25 13:48:40 -04:00
2026-09-25 00:00:09 -04:00
2026-09-24 14:23:48 -04:00
2026-09-24 16:47:38 +05:30
2026-09-24 16:17:16 -04:00
2026-09-26 17:19:04 -05:00
2026-09-24 02:27:45 -05:00
2026-09-25 12:09:37 -05:00
2026-09-24 19:28:05 -05:00
2026-09-24 05:03:23 -04:00
2026-09-26 22:27:13 +05:30
2026-09-24 22:11:12 -04:00
2026-09-24 01:55:51 -04:00
2026-09-25 14:15:22 -04:00