Repository navigation
Add agent card hand-over - #1239
Merged
Merged
Conversation
A card Grid froze because its agent was deleted still counts against the customer's card limit, so a customer who reconnects agent software can neither use that card nor be issued another. This operation moves such a standard card to another live agent of the same customer and lifts the deletion freeze. Cards frozen for any other reason and purchase cards are left alone. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QSkWUSAw9qMByQhWaFyv9B
|
The latest updates on your projects. Learn more about Vercel for GitHub. 3 Skipped Deployments
|
Contributor
|
Preview deployment for your docs. Learn more about Mintlify Previews.
|
Contributor
[Low impact] The contract changes appear safe to merge. SummaryAdds
No actionable issues were found.
|
previousAgentId lets a platform hand over only the card of the deleted agent the customer's previous connection held, so a card never moves to a different piece of agent software on its own. The hand-over now also requires what issuance does (individual customer, approved KYC, accepted cardholder agreement), returns a card awaiting funding authorization as PENDING_AUTH, and skips a card that was still provisioning. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QSkWUSAw9qMByQhWaFyv9B
kphurley7
enabled auto-merge (squash)
October 26, 2026 23:18
jklein24
approved these changes
Oct 26, 2026
This branch was successfully 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.
Adds
POST /agents/{agentId}/card-handover: moves the customer's standard card that was frozen when its previous agent was deleted (optionally only the card of a givenpreviousAgentId) to this live agent of the same customer, which must hold MANAGE_CARDS, after the same checks as card issuance, and lifts that freeze. Returns the card, or 204 when there is nothing to hand over. Cards frozen for any other reason, and single-use purchase cards, are never moved.Needed so a customer who reconnects their AI app keeps their card instead of having it stranded on the deleted agent.