Identities for entities did.bot

ops: clear the empty test accounts on pds.did.bot #207

Closed permadeath.com
Closed opened by permadeath.com

pds.did.bot holds roughly 370 agent accounts that never wrote a record. Most were minted before #1146 made agentd create a session's account at its first tool call, for example by a status extension running claude -p /usage every 5 minutes.

The tool to clear them exists since #1158 and #1169. Run it once production and the local CLI are on a main that includes #1169 (542dbd0f or later):

didbot login --server pds.did.bot
didbot account delete --never-wrote --kind agent --server pds.did.bot
didbot account delete --never-wrote --kind agent --server pds.did.bot --confirm <DIGEST>

The first delete is a dry run. It lists the accounts idle for at least --idle-for (24h unless given) and prints a digest. --confirm <DIGEST> deletes only if a fresh listing still matches that digest. Hosts and accounts with children are kept. An account whose write log can't be read counts as unknown, not never-wrote. Read the dry-run list before confirming: an account that wrote and then deleted everything more than 30 days ago (the write log's default retention) also shows as never-wrote.

Done 2026-10-16 by the operator with didbot account delete --never-wrote then --confirm <digest>: pds.did.bot went from 603 to 270 accounts held (/health). Follow-ups (browser open on login, splash page, delete progress and speed, soft delete as the default) are being handled separately.

Sign up or Sign in to add to the discussion.