Keep unlocker list working when unlocker metadata is corrupt (closes #42) #61

Open
clawbot wants to merge 1 commits from issue-42-pgp-unlocker-id-panic into next
1 Commits
Author SHA1 Message Date
clawbot c43eb26127 Keep unlocker list working when unlocker metadata is corrupt (closes #42)
check / check (push) Successful in 1m12s
PGPUnlocker.GetID() panicked when its metadata could not be read or
parsed, which took down `secret unlocker list` for every unlocker. It
now warns with the unlocker's directory and returns `pgp-unknown`;
metadata with an empty GPG key ID counts as corrupt too.
ListUnlockers now skips, with a warning, an unlocker whose metadata
file is unreadable or not JSON, as it already did for a missing one.

This is the first half of the issue only. Passing the mnemonic in
memory moved to #60.

Model: opus-5-5
2026-10-03 12:17:04 +00:00