Skip to content

fix(pds): detect did:web/did:plc repo DID mismatch after migration#199

Draft
zacbrown wants to merge 1 commit into
ascorbic:mainfrom
zacbrown:fix/repo-did-mismatch
Draft

fix(pds): detect did:web/did:plc repo DID mismatch after migration#199
zacbrown wants to merge 1 commit into
ascorbic:mainfrom
zacbrown:fix/repo-did-mismatch

Conversation

@zacbrown

Copy link
Copy Markdown

A repo lazily created under the pds init did:web default stays keyed to did:web after migrating the account to did:plc, since migrate skips repo import when blocks already exist. All checks passed but the relay rejected the repo at verifyRepoRoot and never onboarded the account.

Fix 1: ensureRepoInitialized throws if loaded repo.did != env.DID.

Fix 2: surface repo DID via checkAccountStatus + MigrationStatus and add checkRepoDidMatches to the activate preflight.

A repo lazily created under the `pds init` did:web default stays keyed to
did:web after migrating the account to did:plc, since migrate skips repo
import when blocks already exist. All checks passed but the relay rejected
the repo at verifyRepoRoot and never onboarded the account.

Fix 1: ensureRepoInitialized throws if loaded repo.did != env.DID.
Fix 2: surface repo DID via checkAccountStatus + MigrationStatus and add
checkRepoDidMatches to the activate preflight.

Signed-off-by: Zac Brown <zacbrown@users.noreply.github.com>
@zacbrown zacbrown marked this pull request as draft June 20, 2026 20:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant