Files
hermes-agent/website/docs
kshitijk4poor 52adc43ca0 fix(providers): never reclaim an unproven root; keep live snapshots through data-only uninstall
Review fold on 37f19c9572 (round-2 gate and second-model findings):

- The sweep reclaimed any `owned-*` directory with no owner.lock, so a
  directory a user made with that name was deleted. It now reclaims an owned
  root only when its owner.lock exists and nobody holds it. A process that
  dies between creating its root and locking it now leaks that empty root
  instead.
- `hermes uninstall` (data-only) removed runtime/provider-plugins, including
  the copies live processes import from, because the removal plan protected
  only some runtime files. The snapshot directory is now in the plan's
  protected set; dead roots there are still reclaimed by the next process.
- A claim another sweeper is still deleting can be taken again and deleted
  twice. That costs only the duplicated work, since both deletes ignore
  errors, but the docstring and the previous commit said it could not
  happen; the docstring now says what does.
- The module docstring and _new_root now describe the unswept fallback
  instead of saying every process holds an owner lock, and the plugin-testing
  guide names the Hermes root (not the profile home) as where the copies live.

Part of #156493.
2026-11-19 03:31:38 -08:00
..