Alexander Whitestone
69e10967bd
Forge CI / smoke-and-build (pull_request) Failing after 14s
feat: session garbage collection (#315)
Add garbage_collect() method to SessionDB that cleans up empty and
trivial sessions based on age:
- Empty sessions (0 messages) older than 24h
- Trivial sessions (1-5 messages) older than 7 days
- Sessions with >5 messages kept indefinitely
Add `hermes sessions gc` CLI command with:
- --empty-hours (default: 24)
- --trivial-days (default: 7)
- --trivial-max (default: 5)
- --source filter
- --dry-run preview mode
- --yes skip confirmation
The dry-run flow: preview what would be deleted, ask for confirmation,
then execute. Handles child session FK constraints properly.
7 tests covering: empty/trivial deletion, active session protection,
substantial session preservation, dry-run, source filtering, and child
session handling.
Closes #315
2026-04-13 17:30:39 -04:00
..
2026-04-03 11:14:55 -07:00
2026-04-06 17:17:57 -07:00
2026-04-07 12:04:10 -04:00
2026-03-30 17:34:43 -07:00
2026-03-30 00:02:02 -07:00
2026-03-30 08:10:23 -07:00
2026-03-30 17:39:08 -07:00
2026-03-11 02:56:19 -07:00
2026-03-29 20:10:00 -07:00
2026-03-30 17:07:21 -07:00
2026-04-06 12:09:36 -07:00
2026-04-13 17:29:20 -04:00
2026-03-25 15:02:03 -07:00
2026-04-04 10:43:39 -07:00
2026-03-30 08:10:23 -07:00
2026-03-26 01:34:27 -07:00
2026-04-06 16:49:27 -07:00
2026-03-25 15:02:03 -07:00
2026-04-06 21:26:03 -07:00
2026-04-06 00:08:20 -07:00
2026-04-13 17:30:39 -04:00
2026-03-30 08:10:23 -07:00
2026-04-05 12:34:11 -07:00
2026-04-06 11:25:06 -07:00
2026-04-06 13:20:01 -07:00
2026-04-08 00:49:52 +00:00
2026-04-07 08:40:22 -04:00
2026-03-25 19:47:58 -07:00
2026-04-06 16:40:15 -07:00
2026-04-06 16:40:15 -07:00
2026-04-03 13:10:11 -07:00
2026-04-07 12:58:44 -04:00
2026-04-06 23:01:43 -07:00
2026-04-07 08:40:22 -04:00
2026-04-02 14:00:22 -07:00
2026-03-30 08:37:19 -07:00
2026-03-25 15:54:28 -07:00
2026-04-07 08:40:22 -04:00
2026-04-07 08:40:22 -04:00
2026-03-25 19:47:58 -07:00
2026-03-28 23:47:21 -07:00