Files
hermes-agent/hermes_cli
kshitijk4poor 167a2d00ed fix(curator): purge ages archives by the newer of archived_at and dir mtime
Preferring the usage record's archived_at outright let a stale archived_at
beat a fresh dir mtime: set_state only rewrites archived_at on a state
change, so a skill moved out of .archive by hand (record still "archived")
and archived again keeps the old timestamp and is purged at once, even
though archive_skill just stamped a fresh mtime.

Take the newer of the two signals. Legacy archives (stale mtime, fresh
archived_at) still survive, the stale-record case now survives too, and any
disagreement errs toward keeping the archive, which is the no-data-loss
direction for an irreversible purge.
2026-09-27 02:33:57 +05:30
..
…
…
…
…
…
…
…
…
…
…
…
…