Concepts

The rules

The six checks the engine runs on every intent, and what each one reads.

The engine runs six rules on every intent, in this order:

schema
The intent is a valid TIS v1 object.
paused
The owner has not paused the agent wallet.
program_allowlist
Every program the compiled transaction calls is on the owner's list.
daily_spend
SOL leaving the wallet stays under the owner's cap over a rolling 24 hours.
token_limits
Each token leaving the wallet stays under its own cap over a rolling 24 hours. A token with no cap is denied.
no_unlimited_approval
A token approval names an amount.

Each rule answers pass, fail or n/a with one line of detail. All six run every time. The decision is deny if any of them is fail.

The rules read the compiled transaction: the programs it calls, what leaves the wallet, the approvals it grants. The amounts and addresses written in the intent are used to build that transaction and are not read again.

schema

Passes when the intent is a valid TIS v1 object and the engine could compile it.

Fails with one entry per problem, separated by semicolons. A problem in a field starts with the field's path:

RuleResultDetail
schemafailparams.amount: Must be a decimal string in UI units.; Unrecognized key: "memo"
pausedpasswallet is active
program_allowlistn/anothing was compiled
daily_spendn/anothing was compiled
token_limitsn/anothing was compiled
no_unlimited_approvaln/anothing was compiled
decisiondeny

When schema fails there is no transaction, so the four transaction rules are n/a. paused is still checked.

A valid intent that cannot be compiled also fails here. This one names a mint whose decimals the engine does not know: no decimals are known for mint So11111111111111111111111111111111111111112.

paused

Reads paused in the policy. Fails with the owner paused this wallet while it is true. It is never n/a.

program_allowlist

Reads the program of every top-level instruction in the compiled message, with addresses resolved through its lookup tables.

Passes when every one of them is in the policy's programAllowlist. ComputeBudget is always permitted. Fails when a program is missing from the list:

RuleResultDetail
schemapassvalid TIS v1, compiled to 8 instructions
pausedpasswallet is active
program_allowlistfailJupiter v6 not on the allowlist
daily_spendpass0 + 1 of 2 SOL in 24h
token_limitsn/amoves no tokens
no_unlimited_approvaln/agrants no approval
decisiondeny

It also fails when the engine cannot classify an instruction, even if that instruction's program is on the allowlist. The detail then starts cannot classify and names the instruction's index.

Instructions the engine reads

ProgramInstructions
ComputeBudgetrequest heap frame, set unit limit, set unit price, set loaded accounts data size
Systemtransfer
SPL Token, Token-2022Transfer, TransferChecked, Approve, ApproveChecked, Revoke, SyncNative, CloseAccount
Associated Tokencreate, create idempotent
Memoa memo of UTF-8 text
Jupiter v6the exact-in routes: route, shared_accounts_route, route_v2, shared_accounts_route_v2

Any other instruction of these programs, and any instruction of another program, is unknown.

daily_spend

Reads the SOL that leaves the agent wallet in this transaction, the SOL it already sent in the last 24 hours, and the policy's dailySolLamports.

Passes when used plus this transaction is at most the cap. A transaction that brings the total exactly to the cap passes. n/a when the transaction moves no SOL.

RuleResultDetail
schemapassvalid TIS v1, compiled to 3 instructions
pausedpasswallet is active
program_allowlistpassSystem allowed; ComputeBudget always permitted
daily_spendfail0.5 + 1.8 of 2 SOL in 24h
token_limitsn/amoves no tokens
no_unlimited_approvaln/agrants no approval
decisiondeny

The window is a rolling 24 hours. What counts as used is the outflow of the wallet's allowed records whose transactions did not fail.

When outflow comes from a simulation, it is the drop in the wallet's lamport balance, so the network fee and the rent of any account the transaction creates count toward the cap. The API always simulates. This is the daily_spend check of a 0.5 SOL transfer whose network fee was 5001 lamports:

text
0 + 0.500005001 of 2 SOL in 24h

When outflow is decoded, as on /demo, it is the sum of the System transfers out of the wallet.

Fails with cannot read SOL outflow when the engine cannot tell how much SOL leaves, for example when a token account is closed to another address and no simulation was supplied.

token_limits

Reads each token that leaves the agent wallet in this transaction, per mint, with what the wallet already sent of that mint in the last 24 hours and the cap in the policy's tokenLimits.

Passes when every mint stays at or under its cap. n/a when the transaction moves no tokens.

RuleResultDetail
schemapassvalid TIS v1, compiled to 4 instructions
pausedpasswallet is active
program_allowlistpassAssociated Token, SPL Token allowed; ComputeBudget always permitted
daily_spendn/amoves no SOL
token_limitspass0 + 20 of 50 EPjF…Dt1v in 24h
no_unlimited_approvaln/agrants no approval
decisionallow

Fails for a mint that has no entry in tokenLimits, with the detail no cap is set for and the mint. The owner adds a cap for a mint before the agent can send it.

Wrapped SOL is a token here. A transaction that spends a wrapped SOL balance needs a cap for the mint So11111111111111111111111111111111111111112.

Fails with cannot read token outflow when the engine cannot tell what leaves: a plain Transfer that does not name its mint, or a Jupiter route with no simulation.

no_unlimited_approval

Reads every token approval in the compiled message. An approval is unlimited when its amount is the largest u64, 18446744073709551615. In an intent that is "amount": "unlimited".

RuleResultDetail
schemapassvalid TIS v1, compiled to 3 instructions
pausedpasswallet is active
program_allowlistpassSPL Token allowed; ComputeBudget always permitted
daily_spendn/amoves no SOL
token_limitsn/amoves no tokens
no_unlimited_approvalfailunlimited approval to JUP6…TaV4
decisiondeny

Passes for an approval with a smaller amount, with the amount in the detail. n/a when the transaction grants no approval. With blockUnlimitedApprovals set to false in the policy, an unlimited approval passes with the detail unlimited, rule switched off.