Repository navigation
feat(accounts): add reusable host acquisition drivers - #2479
Open
JustYannicc wants to merge 26 commits into
Open
JustYannicc wants to merge 26 commits into
JustYannicc wants to merge 26 commits into
Conversation
This was referenced Oct 31, 2026
Keep v2 protocol 14 frozen, record the interactive host protocol as 15, and adapt account acquisition to the current host crypto and ownership contracts. Update the lifecycle scenario to match v2 user-account ownership. Release-note: Feature: Apps can complete interactive device-code and paste-back account sign-ins.
Preserve v2 protocol 14 as a frozen contract and record combined account features under protocol 15. Keep v2 provider guides, underscored-host support, and Bun package staging with the account-status and provisioned-link behavior. Release-note: Feature: Apps can display bounded account status and declare host-provisioned credentials.
Keep the account acquisition feature on v2 storage and host APIs, and move its host contract to protocol 16. Release-note: Feature: Host-registered sign-in drivers let saved accounts survive app removal and reconnect in place.
It was a local-environment workaround added during the v2 merge and is not part of this change; keep v2's version. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
# Conflicts: # apps/docs/content/concepts/providers-and-accounts.md
Release-note: Feature: Reuse host-backed interactive sign-ins across apps and retain them through app removal.
The GraphQl path alias fixes a v2 baseline typecheck failure that is not part of this change. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Host-backed sign-ins currently inherit the lifetime of the app that acquired them. This adds host-registered acquisition drivers so one saved account can be reused across apps, survive app removal and reconnect in place.
This builds on #2421 and #2428 and retains their commits. This branch merges both prerequisite heads with the pinned
v2base; the acquisition change begins after9869d69228be71dacbec1e6fa86f3e4b7e5f01b2. The complete diff includes those unmerged prerequisites.Review guide
Start with
packages/sdk/src/contracts/account-acquisition-driver.tsand the host-acquisition declaration inpackages/apps. Then follow connection completion, saved bindings, explicit retirement and owner purge. The HTTP scenarios exercise those paths through complete hosted, local and SDK products.What changed
interactive({ label, acquisition: "host" }); they cannot register a backend or choose its implementation.Validation
bun run format,bun run check,bun run apps:protocols,bun run docs:validateandbun run e2e:preparepassed. The check includes all nine typecheck projects, lint, dependency patches, storage checks and the E2E boundary.Fourteen unique selected scenarios passed across hosted and local runs. They cover account reuse, management-app removal, first and last consumer unlinking, reconnect, ownership, private output, stale attempts, deletion retries, owner purge, health and retained storage. The recovery scenarios also prove old and new driver revisions work together, and a retry after the backend applied deletion but returned an error reuses its operation without repeating the effect. A temporary violation of the reusable-link guard caused the initial native completion assertion to return 500 instead of 200. Restoring the implementation made it pass.
Deployed Cloud and real credential providers were not exercised. This public export omits
.github/workflows, so CI selection cannot be validated locally.