Contents

Outcomes and follow-up

The demo company

The demo company comes with demonstration agents, which use this interface from inside the platform. Connecting your company’s own agents is part of a company deployment, arranged on request: request a quote.

The answer to an action is the Guardrails decision. A decision never changes: what happens next is read on the approval and on the execution.

The three outcomes

statusIn the consoleWhat follows
ALLOWEDAllowedThe decision has an execution (execution_id), which the agent follows.
REQUIRES_APPROVALApproval requiredThe decision has an approval (approval_id), which waits for an Approver.
DENIEDBlockedNothing is executed and nothing is reserved; reason_codes says why.

When the budget blocks an action, the answer also carries the synarun-budget-level header, with the budget that refused it: AGENT (the agent’s budget), PROJECT (the project’s budget), FIRM (the company’s budget), SINGLE (the budget account itself) or OUTSIDE_FIRM (the agent’s budget account is not under the company’s budget in that currency). The header never holds an amount.

The decision

The decision for the example of Submitting an action, a refund of 350.00 RON that needs approval:

{
  "schema_version": "1.0",
  "decision_id": "2b5181a6-d816-4f50-b5aa-5e228a70acc8",
  "intent_id": "8f87281b-5de3-4abc-bc37-105b8f5e1b66",
  "status": "REQUIRES_APPROVAL",
  "reason_codes": ["POLICY_REQUIRES_APPROVAL"],
  "fp_version": "synarun.afp.v2",
  "action_fingerprint": "sha256:cddd5ebd0c865efd17d552f46f9be7fe265ac410cd85f77f9ff422ef0868297a",
  "policy_snapshot_id": "sha256:e4eacce666cb79a9f60a9bbb692ba4ad68837347307e293978e22fd406bdedce",
  "context_snapshot_id": null,
  "risk": { "level": "MEDIUM", "factors": [] },
  "estimated_exposure": { "amount_minor": 35000, "currency": "RON" },
  "reservation": {
    "reservation_id": "9e80428f-9dd6-4162-897e-025b110e4894",
    "budget_account_id": "cfe17dfa-fd26-4def-a738-78649f58bba0",
    "amount": { "amount_minor": 35000, "currency": "RON" }
  },
  "approval_id": "fb194ac8-0e80-4167-b04a-1ec40b14a9b0",
  "execution_id": null,
  "decided_at": "2026-11-24T10:15:02.418Z",
  "expires_at": "2026-11-25T10:30:02.418Z",
  "trace_id": "af672565be45e99abbbc491917704ba5"
}
  • reason_codes explains the outcome; risk reports the risk separately, because a low-risk action can be blocked and a high-risk one allowed.
  • reservation is the amount reserved from the budget when the decision is taken, before anything is executed.
  • action_fingerprint identifies exactly the action decided; its approval carries the same value.
  • fp_version, policy_snapshot_id and context_snapshot_id are Synarun’s references for the decision: the agent may keep them with its records, but does not need to interpret them.
  • expires_at is the decision’s validity: 15 minutes for an allowed action, the approval’s duration plus 15 minutes for one that needs approval, and the moment of the decision for a blocked one.

The same decision can be read again at any time:

GET /v1/decisions/2b5181a6-d816-4f50-b5aa-5e228a70acc8 HTTP/1.1
Host: synarun-api.example
Authorization: DPoP xNpV-O7gPKnPYmv__XVGDr3WpScgL1WiIPORgCr6Gzw
DPoP: eyJ0eXAiOiJkcG9wK2p3dCIsImFsZyI6IkVkRFNBIiwiandrIjp7…

An action of 120.00 RON, below the approval threshold, is allowed and already has its execution:

{
  "schema_version": "1.0",
  "decision_id": "0f358006-0c24-481d-8a67-e166a6607c08",
  "intent_id": "f00d51ec-6678-4624-9647-1962f8c70788",
  "status": "ALLOWED",
  "reason_codes": [],
  "fp_version": "synarun.afp.v2",
  "action_fingerprint": "sha256:c7785eb7739ed861a6755e6fb5756e807af73273cea35bfb79300e81252275d7",
  "policy_snapshot_id": "sha256:e4eacce666cb79a9f60a9bbb692ba4ad68837347307e293978e22fd406bdedce",
  "context_snapshot_id": null,
  "risk": { "level": "LOW", "factors": [] },
  "estimated_exposure": { "amount_minor": 12000, "currency": "RON" },
  "reservation": {
    "reservation_id": "2f6b1c3d-4e5a-4b7c-8d9e-0a1b2c3d4e5f",
    "budget_account_id": "cfe17dfa-fd26-4def-a738-78649f58bba0",
    "amount": { "amount_minor": 12000, "currency": "RON" }
  },
  "approval_id": null,
  "execution_id": "7ee4153f-e07f-4d88-8b3a-b18ebdda6e5a",
  "decided_at": "2026-11-24T10:20:05.120Z",
  "expires_at": "2026-11-24T10:35:05.120Z",
  "trace_id": "5b4b259d85cdeb63d677955305621027"
}

An action above the agent’s monthly limit is blocked, and the answer carries the synarun-budget-level: AGENT header:

{
  "schema_version": "1.0",
  "decision_id": "3588788f-70f3-42a1-b994-f818f75a17b2",
  "intent_id": "4e1e66b1-6447-486e-87fe-544d063dd686",
  "status": "DENIED",
  "reason_codes": ["BUDGET_INSUFFICIENT"],
  "fp_version": "synarun.afp.v2",
  "action_fingerprint": "sha256:067dc6449dbf90463c975728bcda1ac7fbb3cb549715edb01f126a1d9caf85cd",
  "policy_snapshot_id": "sha256:e4eacce666cb79a9f60a9bbb692ba4ad68837347307e293978e22fd406bdedce",
  "context_snapshot_id": null,
  "risk": { "level": "MEDIUM", "factors": [] },
  "estimated_exposure": { "amount_minor": 780000, "currency": "RON" },
  "reservation": null,
  "approval_id": null,
  "execution_id": null,
  "decided_at": "2026-11-24T10:25:00.000Z",
  "expires_at": "2026-11-24T10:25:00.000Z",
  "trace_id": "e1b528546553a1046ab27c7592597c7e"
}

Reason codes

The codes below are those Synarun emits by itself. The company’s rules may add codes of their own, of the same form: capital letters, digits and _.

CodeWhat it means
DEFAULT_DENYNo rule allowed the action, so it is blocked.
CAPABILITY_NOT_GRANTEDThe action type is not granted to the agent.
CONNECTION_NOT_GRANTEDThe connection is not granted to the agent.
POLICY_FORBIDA rule of the company forbids the action.
POLICY_REQUIRES_APPROVALA rule of the company requires a person’s approval.
BUDGET_INSUFFICIENTThe budget does not cover the action.
BUDGET_NO_VERIFIABLE_LIMITThe action has a financial effect but no ceiling that can be enforced.
BUDGET_EFFECT_NOT_COVEREDThe budget account does not cover this kind of economic effect, for example a commitment on a refund budget.
SESSION_CAP_EXCEEDEDThe session’s cap is exceeded.
AGENT_CAP_EXCEEDEDThe agent’s cap, across all its sessions, is exceeded.
CONTEXT_MISSINGA value that a rule needs is missing.
CONTEXT_STALEA value that a rule needs is no longer current.
CONTEXT_CONFLICTThe values that a rule needs contradict each other.
RISK_THRESHOLDThe risk is above the threshold.
POLICY_ENGINE_ERRORThe rules could not be evaluated, so the action is blocked.
APPROVAL_UNSATISFIABLEThe approval requirements, taken together, leave no person who can approve.
CAPABILITY_SEMANTICS_UNSAFEThe action type, as Synarun verified it, does not meet the conditions for its use.
ECONOMIC_ACCOUNT_NOT_CONFIGUREDNo budget account is set for this agent or this effect.
ECONOMIC_ACCOUNT_AMBIGUOUSSeveral budget accounts are equally valid; Synarun does not choose between them.
ECONOMIC_ACCOUNT_CLAIM_MISMATCHThe account the agent named differs from the one Synarun determined.
SIDE_EFFECT_NEEDS_TARGETThe action has an effect, but its target cannot be determined.
TARGET_UNRESOLVEDAnother execution on the same target does not have a known result yet: a temporary conflict, not a refusal by the rules. The decision may then also carry target_held_by, the identifier of that execution, when it belongs to the same company.
RULE_RESTRICTIONAn automatic rule blocked the action or required its approval.
RISK_TIER_REVIEWThe action’s risk level requires a person’s review.
SCOPE_REF_MISMATCHThe counterparty or contract the agent named differs from the one Synarun identified from the company’s data; the action needs approval.
MODULE_NOT_COVEREDThe installed version of the service module no longer covers this tool, or the module was removed: the tool is stopped until an Owner updates or reinstalls the module.
RF_MODULE_IMPACTNot a refusal but a risk factor: the tool’s security impact, in the installed module, raised the action’s risk above the definition’s.
MCP_BODY_TOO_LARGEThe action’s long text is too large for one sending (over 65,536 bytes in all); shorten it or split it.
CONTENT_SECRETBlocked by Guardrails: the action’s text holds a key or a card number.

Following the approval

An action that needs approval has an approval, which the agent reads:

GET /v1/approvals/fb194ac8-0e80-4167-b04a-1ec40b14a9b0 HTTP/1.1
Host: synarun-api.example
Authorization: DPoP xNpV-O7gPKnPYmv__XVGDr3WpScgL1WiIPORgCr6Gzw
DPoP: eyJ0eXAiOiJkcG9wK2p3dCIsImFsZyI6IkVkRFNBIiwiandrIjp7…
{
  "schema_version": "1.0",
  "approval_id": "fb194ac8-0e80-4167-b04a-1ec40b14a9b0",
  "intent_id": "8f87281b-5de3-4abc-bc37-105b8f5e1b66",
  "decision_id": "2b5181a6-d816-4f50-b5aa-5e228a70acc8",
  "action_fingerprint": "sha256:cddd5ebd0c865efd17d552f46f9be7fe265ac410cd85f77f9ff422ef0868297a",
  "state": "PENDING",
  "state_reason": null,
  "requested_at": "2026-11-24T10:15:02.418Z",
  "expires_at": "2026-11-25T10:15:02.418Z",
  "execution_id": null
}
  • PENDING: it waits for an Approver, at most 24 hours; then it becomes EXPIRED, and the reservation is released.
  • APPROVED, then CONSUMED: the approval led to an execution, whose identifier appears in execution_id.
  • REJECTED, EXPIRED, INVALIDATED, WITHDRAWN, CANCELLED, REVOKED_FOR_CAUSE: nothing is executed; state_reason says why.

The approval authorizes exactly the action decided, with the same action_fingerprint. If what it covers changes before the execution, for example the company’s rules for this action or the connection, the approval becomes INVALIDATED; a new action is evaluated anew. The approver cannot change the action: if they want something else, they reject it, and the agent submits a new action. The agent never learns who approved.

Following the execution

GET /v1/executions/7ee4153f-e07f-4d88-8b3a-b18ebdda6e5a HTTP/1.1
Host: synarun-api.example
Authorization: DPoP xNpV-O7gPKnPYmv__XVGDr3WpScgL1WiIPORgCr6Gzw
DPoP: eyJ0eXAiOiJkcG9wK2p3dCIsImFsZyI6IkVkRFNBIiwiandrIjp7…
{
  "schema_version": "1.0",
  "execution_id": "7ee4153f-e07f-4d88-8b3a-b18ebdda6e5a",
  "intent_id": "f00d51ec-6678-4624-9647-1962f8c70788",
  "decision_id": "0f358006-0c24-481d-8a67-e166a6607c08",
  "approval_id": null,
  "provenance": { "session_id": "36c830b0-81a5-446f-a290-c7146dbb2a4c", "credential_id": "agc-5d0e8f3a-6b1c-4e2d-9f70-81a2b3c4d5e6" },
  "capability": { "id": "plati.refund.create", "version": "1.0.0" },
  "state": "SUCCEEDED",
  "revocation": null,
  "hold_for_human": false,
  "attempts": [
    {
      "attempt": 1,
      "dispatched_at": "2026-11-24T10:20:06.031Z",
      "ended_at": "2026-11-24T10:20:06.412Z",
      "outcome": "CONFIRMED_SUCCESS",
      "unknown_cause": null,
      "error_code": null,
      "external_operation_id": "re_sim_8c41e07b2d9f36a5c1e4b7d0",
      "connector": { "connector_id": "plati_sim", "version": "1.0.0", "artifact_digest": "sha256:665615a68bdcb647811418455e0c36b99b9987c2b8076fee98bdef7dd64b996c" },
      "certificate_id": null
    }
  ],
  "reconciliations": [],
  "realized_exposure": { "amount_minor": 12000, "currency": "RON" },
  "budget": { "reservation_id": "2f6b1c3d-4e5a-4b7c-8d9e-0a1b2c3d4e5f", "action": "SETTLE" },
  "error_code": null,
  "created_at": "2026-11-24T10:20:05.120Z",
  "updated_at": "2026-11-24T10:20:06.412Z",
  "trace_id": "5b4b259d85cdeb63d677955305621027"
}
stateWhat it means
AUTHORIZEDThe execution is authorized and has not left yet.
EXECUTINGThe execution has left for the service.
RETRY_SCHEDULEDThe attempt had no effect, and a new attempt is scheduled.
UNKNOWN, RECONCILINGThe result is not known yet and is being checked; the amount stays reserved. Do not treat it as a failure, and do not submit the action again: wait for a final state.
SUCCEEDEDThe service confirmed the effect; realized_exposure is the actual amount, and the rest of the reservation is released.
FAILED, REJECTEDNo effect took place; the reservation is released.
CANCELLED, REVOKED_FOR_CAUSE, INVALIDATEDThe execution stopped before it left; the reservation is released.

attempts lists each attempt; on a confirmed one, external_operation_id is the operation’s reference in the service, here the refund’s. hold_for_human: true means that Synarun cannot establish the result by itself: people of the company establish it, in Operations › Reconciliation.

How often to ask

The interface sends no notifications to the agent: the agent reads the state of the approval and of the execution. Ask at reasonable intervals, within the per-session limit of HTTP requests in Limits; on 429 RATE_LIMITED, wait for the interval in the Retry-After header. Synarun’s demo agents ask for the state of an access request every 30 seconds. A decision, an approval or an execution of another agent gets 404 RESOURCE_NOT_FOUND, the same as one that does not exist.