Skip to content

feat(agent): sign in with a handle, discovering the PDS from its DID document - #187

Merged
ewanc26 merged 1 commit into
mainfrom
feat/discover-pds
Oct 7, 2026
Merged

ewanc26 merged 1 commit into
mainfrom
feat/discover-pds

Conversation

@ewanc26

@ewanc26 ewanc26 commented Oct 7, 2026

Copy link
Copy Markdown
Owner

What this changes

New wf_agent_login_discovered: resolves a handle (DNS TXT, then /.well-known/atproto-did) or takes a DID, reads its #atproto_pds endpoint, points the agent there, and logs in at that PDS. Before this, the first login went to the host the caller typed, so an account on another PDS could not sign in unless the user typed its PDS.

Verification

test_agent_login_discovered (argument checks, and an unresolvable .invalid handle fails with no PDS reported): ctest passes on the host build. The network path is not run here; the consumers' sign-in is the end-to-end check.

Docs

Header comment on wf_agent_login_discovered; CHANGELOG entry.

Changelog: CHANGELOG.md

Checklist

  • CI is green (CI gate and flow / conventions)
  • No secrets, tokens or signing keys in the diff
  • Tests added or changed with the behaviour; none skipped, disabled or deleted

🤖 Generated with Claude Code

…document

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@ewanc26
ewanc26 merged commit 951e98a into main Oct 7, 2026
17 checks passed
@ewanc26
ewanc26 deleted the feat/discover-pds branch October 7, 2026 22:16
@ewanc26 ewanc26 mentioned this pull request Oct 7, 2026
2 of 3 tasks
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