Repository navigation
refactor: remove the extension-local payment-card vault - #29
Merged
Merged
Conversation
Understudy stores no website password, token or payment data: users sign in to each site in their own browser and agents reuse that session. The card vault (PAN and CVV in IndexedDB), its protocol-3 commands and capability, the MCP card tools, the payment sensitive mode and their docs go; the unreleased changeset and 0.2.0 changelog entries drop the vault. Each service-worker start deletes the old card database without blocking start-up. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The model-facing texts again say NEVER to type passwords, API keys, card numbers, card security codes or other credentials, and an approval covers only the exact action it names. A click write now covers what the card tests guarded: one execution per grant, an evicted write marked unknown and never retried, a completed result replayed on open, and the journal's filter of obsolete records. Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.
Summary
Removes the extension-local payment-card vault. Understudy stores no website password, API token or payment data, in the extension or in the service: a user signs in to each website in their own Chrome profile and agents reuse that session; a signed-out site needs the user to sign in again. A consumer may store a username, never a password (owner decision, 2 December 2026).
The vault never shipped: npm's latest is
@understudy/protocol0.8.0 (0.9.0 with the card contracts waits in #25), and the Chrome Web Store record is 0.1.2, still in review. So there is no compatibility shim; the pending changeset and the unreleased 0.2.0 changelog entries drop the vault instead.What changes
CardAliasSchema,list_cards,submit_card,cards_result,card_submission_result, thelocal-card-vault-v1capability and thesensitive_modefailure reasons are gone; a test proveslist_cardsandsubmit_cardframes are now rejected.src/payment/and the side panel's card enrolment and deletion UI are deleted, with their messages and background handlers. The payment sensitive mode is removed from the session runtime, session manager, profile client and CDP driver. The exact-origin navigation gate inhandleFetchRequestPausedstill refuses every top-level URLisAllowedTopLevelUrlrefuses; only the payment-specific condition goes. A stored assignment markedsensitiveby a development build is released through the existing window-release path.indexedDB.deleteDatabase("understudy-payment-card-vault")as the first statement ofmain(), fire-and-forget, outside the store start-up gate; it never rejects and logs a fixed message on error orblocked. A development build that enrolled a card leaves no encrypted card data behind.browser_list_cardsandbrowser_submit_cardMCP tools, their outcome texts, the capability check inSessionAgentand the card bookkeeping inAccountAgentare removed; the dashboard's storage disclosure names device credentials and profile configuration only.docs/local-card-vault-security-requirements.mdis deleted; READMEs, RUNBOOK, WEBSTORE, both CLAUDE.md maps, the skill, the technical plan, the rollout runbook andDEFERRED.md(which now records the decision) no longer describe a vault.Deployment notes
devdeploys the staging Worker (deploy.yml). The capability list is a closed enum, so a staging extension built before this change has its device hello closed with 1008 until it is reloaded. Before merging, confirm no staging soak is running; after the staging deploy, reload the staging extensions.dev→masterrelease.Test plan
ci.yml): install, build packages, typecheck, test, build🤖 Generated with Claude Code