Concepts

The path of one request

What happens to an intent between the agent and the chain, stage by stage.

Every intent takes the same path, whether it came from the chat or from POST /v1/intents. This page follows one intent through it: a transfer of 20 USDC.

  1. Intenta JSON object from the agent
  2. Parseheld against the TIS v1 schema
  3. Compilean unsigned v0 message
  4. Analyzeprograms, outflow, approvals
  5. Evaluatesix checks
  6. Recordthe PDR with its digests
  7. Signonly on allow

Intent

The agent's whole output is one JSON object:

json
{
  "tis": "1",
  "action": "transfer",
  "params": {
    "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
    "to": "Ab1XnH9iBX4oMEGnEwtK5nreu8HZ6ucCNbQxty7YmTTp",
    "amount": "20"
  },
  "reason": "User asked to pay the vendor 20 USDC."
}

reason is the agent's own account of why. The engine stores it and no rule reads it.

Parse

The engine holds the object against the TIS v1 schema. The schema is strict: an unknown key, a missing field or an amount like "20 USDC" fails it.

An intent that fails here is still recorded. Its record has schema: fail with one line per problem, the other transaction rules are n/a with the detail nothing was compiled, and message_digest is null.

An intent with action: "none" is a reply with nothing to sign. It gets no record.

Compile

The engine builds the transaction the intent describes: a v0 message with the agent wallet as fee payer and only signer. Every message starts with two ComputeBudget instructions, the unit limit and the unit price. TIS v1 lists what each action compiles to.

This transfer compiles to 4 instructions: the two ComputeBudget instructions, an idempotent create of the recipient's associated token account, and a transferChecked.

An intent that parses can still fail to compile: an amount with more decimals than the mint has, a mint that does not exist on the cluster, a swap with no route. Each is recorded as a schema failure.

The API then simulates the unsigned message against the chain. A message that fails in simulation, for example one that sends more SOL than the wallet holds, is also recorded as a schema failure, with the reason in the detail.

Analyze

From here on the engine reads the compiled message and nothing else. The intent's own fields are not consulted again.

It readsHow
ProgramsThe program of every top-level instruction, with addresses resolved through the message's lookup tables.
InstructionsEach one is classified as a kind the engine reads, or as unknown. The rules lists the kinds.
OutflowThe SOL and tokens that leave the agent wallet. With a simulation of the message, outflow is the drop in the wallet's balances from before to after. Without one it is decoded from the instructions. The record's outflow.source says which.
ApprovalsEach token approval with its delegate, its amount and whether it is unlimited.

Evaluate

The six rules run in a fixed order against those facts, the policy in force and what the wallet already sent in the last 24 hours. Every rule runs every time; a failure does not stop the ones after it.

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

The decision is deny if any check is fail, and allow otherwise.

Record

The engine writes the Policy Decision Record: the intent as received, the checks, the decision and three SHA-256 digests.

DigestBinds the record to
tis_digestthe exact intent
message_digestthe exact bytes of the compiled message
policy_digestthe exact policy, also cited by policy_version

Sign

A record's transaction has one of five states.

StateMeaning
sealedThe decision was deny. Nothing was signed.
signedThe signer signed the message of an allow record.
sentThe signed transaction was sent to the cluster.
confirmedThe cluster confirmed it. signature is set.
failedIt did not land or the chain refused it. error says why in one sentence.

On allow the API asks the signer to sign the record, sends the signed transaction once and answers. The answer usually carries sent, sometimes already confirmed. The API keeps following the transaction until it is confirmed or failed, and GET /v1/records/{id} returns the state it has reached.

If the signer refuses or does not answer, the record keeps its allow decision and its transaction is failed, with an error that starts Not signed:. Nothing was sent.

The 24-hour window

What the wallet already sent is summed from its allow records of the last 24 hours whose transactions did not fail. Each record adds its own outflow. A record whose transaction failed does not count, and neither does a withdrawal.

The engine judges one intent per agent wallet at a time, so two intents sent together cannot both fit under the same remaining cap.