Daemon auto-recovery: agent restarts, operator approves via Amber #11
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
The daemon holds secrets in RAM after operator approves via Amber (NIP-46). If the daemon dies (crash, OOM, etc.), secrets are gone and nothing works until the operator manually restarts it.
Current state
avault.py(socket server, NIP-46 client)Desired behavior
avault daemon statusor failedavault get)avault daemon startnsec.enc, decrypts vault, serves via socketThe agent (bot) is responsible for keeping the daemon alive — not systemd. This is intentional: the operator must approve each restart via their signer.
Acceptance criteria
avault daemon startconnects to Amber via NIP-46 and serves secretsavault daemon statusreports whether daemon is runningavault daemon stopwipes secrets and stopsavault getreturns clear error when daemon is down (not silent fallback)