Visit pass
By YSY. 0.7.12.
For ordinary visits, sign a standing allowance with small caps once. Your agent can then visit within those limits with zero taps per visit. If it needs more, it brings the question home for later.
A visit pass is for when you ask for a tighter limit, such as an unfamiliar place or one larger errand, or when you choose to act on an errand your agent brought home. It takes one passkey tap before the errand. Agents should keep ordinary visits on the standing allowance and reserve this option for those cases.
- Name the place, the errand, and the actions the agent may take.
- Set a ten-minute window and start with zero spending. If you ask to allow spending, the preset suggests $10 for the visit and $10 total at that place for the window. You can choose another amount. The total covers any repeat visits in the window.
- Read the place, actions, amount and expiry on your signing page and sign the allowance. You can withdraw it from the same signing setup that publishes your allowance status.
The place still decides what it accepts. The agent brings back any request outside the signed limits for a later decision.
Prepare the signing item
Use the existing standing allowance. In the SDK, call visitPassGrant with a fresh grant name (grantId), at least 16 random bytes encoded as base64url (salt), the verified place's principal identifier (counterparty), its listed placeCategory, the errand's purpose and actions, and the current time in milliseconds (now). For a purpose that allows spending, set spend: true to suggest $10. If the owner asks for a different cap, provide its decimal value and currency in spend. The grant uses the same limit for the seat and the period (`P1D)). The allowance itself expires after ten minutes.
Prepare it close to signing. Put the returned grant in the signing item's grants array. Set payload.grant_digests to an array containing digestOf(grant) and copy the returned valid_from and expires_at into the payload as literal timestamps. Fill in the other allowance fields for the owner's signed visitor card, including shown_to_owner and the issuer's revocation_status address. The signing page checks the digest and displays what the owner is signing. The issuer publishes the current signed status at that address. Reference signing page · Revocation status