Skip to main content

Module browser_capture_card

Module browser_capture_card 

Source
Expand description

Browser capture of a card: a page that shows a card once (a virtual-card page, a bank’s “show card details”) goes into the Vault as one new card entry, each part read from the element the agent names for it (docs/specs/SPEC_VAULT_CARD_ENTRIES_FULL_CARD_DATA_AND_AUTOFILL_2026_11_08.md, §5 item 4).

The host reads each element’s whole text or value (a card’s number shows as “4242 4242 4242 4242”, an expiry as “03/30”), srv settles them like any card (digits, month and year, brand, reminder date) and stores one entry in one transaction, then the host marks every element it read as holding a Vault value. The parts never reach the agent; the answer is the entry’s id and the names of the parts. The parts must all be on one site: the host says which site each frame is, never the page.

Functions§

capture_card 🔒
card_rule 🔒
The capture rule a card request describes: a new card, each part named, none of them read from an output. Checked like a command’s (capture::plan): known parts, the number, the expiry given one way.
gathered 🔒
What each part’s element read: the value, and the origin of the frame it is in, checked to be one site.
store_card 🔒
Stores the card: the fields and expiry date the agent gave go with it. Returns the entry’s id and label.