agenix-rekey sources were all encrypted to the passphrase-protected master identity, so there was no way to keep material out of this public repo while still letting agents read and edit it. Sources named *.agent.age are now encrypted to both the master identity and a new agent identity, with the recipients in secrets/master.recipients and secrets/agent.recipients. The agent identity is itself an agent-tier secret, deployed to devboxes at /run/agenix/claude/agent-identity. A new agent-secret devshell script reads, writes and edits any agenix-rekey source, encrypting it to the recipients for its tier, so one command serves both tiers. Its rekey subcommand produces the rekeyed outputs for agent-tier secrets without the master passphrase, decrypting each source once, and lists master-tier outputs that still need agenix rekey -a. It writes the same files agenix rekey would, so vanilla agenix rekey -a skips them as already rekeyed. It also git rms committed rekeyed outputs that no host tracks, which the rekeyed-secrets check rejects. README.md and AGENTS.md document the tiers and how agents use them. Test plan: - Built maverick toplevel; the agent identity's rekeyed outputs evaluate to the paths agenix-rekey expects on bob, maverick, merlin and rooster - agent-secret write encrypts *.agent.age files to two recipients and other files to one, write/cat round-trips, an unchanged write leaves the file untouched, and classic agenix files are refused - agent-secret rekey is a no-op on an up-to-date tree, git rms a committed orphan, reports but leaves an uncommitted one, and lists a missing master-tier output - agent-secret edit works with an EDITOR that takes arguments - CI
482 B
482 B