Ports didbot's Spaces implementation to the November 12 alpha (9bd8007) and the November 24 URI update (at:space/, atproto PR 6010), and makes the deployment a repo host for its agents as well as the authority for the spaces they author. The alpha's renames and shapes are applied throughout: authorizeSpaceSync, listWriters, notifyRepoUpdate, notifyCredentialsRevoked, putMembers/removeMembers, checkAccess, the new errors, the space output fields, STAR repoRev writer rows, and space-type title. Notification registration rides on authorizeSpaceSync as an endpoint/token pair, confirmed with confirmRegistration, renewed with the credential, and delivered through notifySpaceUpdate. MACs are RFC 9421 hmac-sha256 signatures over Atproto-Space-Commit and Atproto-Space-Record, keyed by HPKE secret export from the hpke crate, and credential signatures are found by tag.
Space refs are at:space/{spaceDid}/{spaceType}/{skey}, and a record appends /{authorDid}/{collection}/{rkey}. The removed at://.../space/... spelling is refused, including in a replayed log. The store plans each mutation under its state lock, appends and fsyncs under a writer lock, and applies only after the bytes are safe, so a disk sync no longer stalls readers. Account erasure removes the account's member rows and every repo it authored, marks its live writer rows removed at a new spaceRev, keeps the repoRemoved tombstone, and queues one durable repoRemoved notice per live registration. A migration import into a live space is accepted only when every live writer row matches the archive exactly, because revisions from two hosts do not order; a stale or incomplete archive is InvalidSpaceMeta. An unknown entry kind before a damaged tail refuses the log instead of truncating it, and inspection audit rows are kept for at least 90 days. Public token and revocation writes are bounded: delegation and attestation lifetimes are at most 300 seconds, a jti at most 256 bytes, a delegation is spent only after authorization, and one revocation request names at most 1,000 JTIs written in one commit. The vector generator is checked in at scripts/space-vectors/verify.mjs and re-derives the KEM, MAC and HTTP-signature values from the pinned TypeScript packages.
Operator record inspection stays a separate, flag-gated observability path: [spaces] operator_record_inspection = true enables didbot space records|record|inspections and the dashboard panel, each requiring a reason and writing a durable audit row before the answer. Tests cover the protocol, store, routes, notifier, migration, dashboard, CLI and vendored lexicons; the space, adversarial and notifier suites, the full didbot-pds and didbot-serve libraries, and prek run --all-files pass.
🤖 Generated with Claude Code