Skip to main content

Conto Guard

Conto Guard is a customer-hosted payment gate for agents that use an existing customer-owned card. Conto evaluates purchase policy and atomically claims the approval before the customer’s payment executor can run. Guard is a separate product package:
Conto Guard does not make an existing card non-bypassable. The card can still be used outside the guarded agent path, so every Guard result reports canBypass: true.

What Guard Controls

Guard uses the external-card policy overlay as its policy backend. It does not rename or replace the overlay, checkout relay, or card issuing.

Dashboard

Open Conto Guard in the Conto dashboard to see whether the policy backend is enabled, register or manage masked card aliases, review active agent assignments, and monitor reconciliation work. The dashboard cannot verify that the customer’s credential store is isolated from the agent, so the final deployment check remains a customer responsibility.

Request Path

The customer payment endpoint must be the agent’s only payment tool. Do not import the credential store or executor into the agent process.

Create a Guard

The executor receives the approved merchant and amount. It does not receive the Conto approval token. Guard rejects likely card numbers, credential fields, secrets, and tokens before sending a purchase intent to Conto.

Expose the Agent Tool

Use the framework-neutral handler from the package:
Authentication and a receipt serializer are required. Raw processor responses are never returned by default. Guard scans the serialized receipt and rejects sensitive fields or likely card numbers before responding to the agent.

Handle Uncertain Confirmation

If payment code runs but confirmation to Conto fails, Guard raises ContoGuardConfirmationPendingError. Persist the receipt and confirmation input securely. Retry only guard.retryConfirmation(error). Never execute the purchase again.

Production Checklist

  • Remove raw credentials from agent prompts, tools, environment variables, and readable logs.
  • Remove all unguarded payment tools from the agent.
  • Keep the executor private to the customer-hosted service.
  • Authenticate every request to the Guard endpoint.
  • Use one stable idempotency key per purchase intent.
  • Filter receipt fields returned to the agent.
  • Reconcile confirmation-pending executions.
  • Keep the organization allowlisted until every open request is resolved.