# Trust zones

Which part of Abazi may hold which secret, which part may sign, and exactly what crosses each boundary between the agent, the core, the signer, the owner, the merchant and the public.

<ShortProductTruth>**Your wallet. Not our vault.** The agent holds a credential, not a key. The core decides but cannot sign. Only the signer signs, and only after it has checked the decision again.</ShortProductTruth>

## Six zones [#six-zones]

| Zone | Holds | Can do | Cannot do |
| --- | --- | --- | --- |
| Agent | An Abazi agent credential | Ask to buy, check status and spending, fetch receipts | Sign, move funds, change rules, see a card number or a key |
| Abazi core | Mandates, prices, budgets, ledger, receipts and the receipt signing key | Decide, reserve, record, issue receipts | Sign a payment: it holds no payment keys |
| Signer | Payment signing keys, per-agent spending-wallet keys, card numbers | Recheck and sign one payment at a time | Decide on its own: it signs only a reserved, allowed payment |
| Owner | Passkeys; on Solana, the USDC itself | Sign mandates, approve, pause all payments, remove the on-chain permission, sweep spending wallets | Be bypassed: a hard cap or budget cannot be lifted by anyone, the owner's approval included |
| Merchant | Its payout address and resource | Ask for payment with a 402 response, deliver, refund | Change the price or payout address Abazi pays without being caught by the Catalog check |
| Public | Nothing | Verify any receipt it has a link to | Change anything |

## Signer isolation [#signer-isolation]

Only the signer, also called the executor, loads payment signing keys. The rest of Abazi gets addresses and signatures from it, never keys. Card numbers are fetched from the card issuer just in time inside the signer and passed to the merchant's checkout server to server; they are never stored and never reach the agent. The seed for the spending wallets built on Tether's Wallet Development Kit stays inside the signer zone.

Before it signs, the signer checks again, from the database and not from the request:

1. Payments are not paused, for the organization or for everyone.
2. The agent is active and its mandate version is still in force and not expired.
3. A reservation for this payment is held.
4. The purchase fingerprint (rail, merchant, payout address, asset, network, amount, URL and request body) is the one that was decided.

If any check fails, it refuses with a reason code such as <ReasonCode code="KILL_SWITCH_ACTIVE" /> or <ReasonCode code="APPROVAL_INVALIDATED" />, and the payment is denied without anything being sent.

## Where the money sits [#where-the-money-sits]

**On Solana**, the owner's USDC stays in the owner's account. The owner grants Abazi's signer a capped SPL delegation. Abazi can spend only up to that cap, and the owner can remove the delegation in the wallet at any time.

**On EVM networks and Tron**, each agent pays from its own spending wallet held by Abazi's signer. The owner funds it with only what the agent may spend and can sweep it back.

**On virtual cards**, the money sits in the card program at the card issuer, Lithic, and each authorization comes back to Abazi's policy.

See [Custody and keys](/docs/concepts/custody-and-keys).

## What crosses each boundary [#what-crosses-each-boundary]

| Boundary | What crosses | What never crosses |
| --- | --- | --- |
| Agent → core | A purchase request (service or URL, task, idempotency key) with the agent credential | Prices, payout addresses or limits from the agent: the Catalog and the mandate supply them |
| Core → agent | Status, decision, reason code, next action, receipt id, the purchased resource | Approval links, keys, card numbers |
| Owner → core | Mandates and approvals, each signed with a passkey; the pause switch | The owner's wallet keys |
| Core → signer | The id of an allowed, reserved payment | A request to sign anything else |
| Signer → rail | One signed payment, or a card number to the merchant's checkout server | Keys |
| Merchant → core | A 402 response with payment requirements | A price or payout address that overrides the Catalog: a mismatch is denied with <ReasonCode code="PAYTO_MISMATCH" /> or <ReasonCode code="AMOUNT_MISMATCH" /> |
| Core → public | A receipt, the published receipt keys, the on-chain anchor | The organization's database |

## Example [#example]

A merchant's 402 response starts asking to be paid at a different address than the one in its Catalog listing. The agent cannot see or choose payout addresses, so it simply asks to buy. Abazi compares the 402 response with the listing at step 2 and denies the purchase with <ReasonCode code="PAYTO_MISMATCH" />. The merchant's trust tier resets to UNKNOWN and a risk event is recorded. Nothing was signed, and no key was ever within the agent's reach.

## Failure cases [#failure-cases]

| Situation | What protects the owner |
| --- | --- |
| An agent credential leaks | It can only ask to buy within the mandate; the owner rotates or revokes it. |
| The agent is manipulated by injected text | Shield flags it at steps 3 or 5; the policy, not the model, decides. |
| An approval link is forwarded | Approving needs the approver's passkey; the link expires after <Limit name="approvalTtl" /> and works once. |
| The core is asked to pay something that changed after approval | The signer's fingerprint recheck refuses it. |

## Next steps [#next-steps]

<Cards>
  <Card title="Custody and keys" href="/docs/concepts/custody-and-keys" description="Read how the capped delegation and the spending wallets work, and how to take money back." />
  <Card title="Security model" href="/docs/concepts/security-model" description="See the threats Abazi is built against and the controls for each." />
  <Card title="Rail adapters" href="/docs/architecture/rail-adapters" description="See what the signer hands to each rail and how settlement is confirmed." />
</Cards>

