ABS Core v4.1.0
API Reference

Decision Engine API

Real-time governance decisions for agent actions.

Decision Engine API

The Decision Engine is the core of ABS Core. Call POST /v1/decide before your agent executes any action to get a governance verdict.

Evaluate Action

POST /v1/decide

Evaluates an agent's intended action against all active policies and returns a verdict synchronously.

Request

{
  "agent_id": "payment-bot-01",
  "tenant_id": "fintech-corp",
  "action": {
    "type": "api_call",
    "target": "https://api.stripe.com/v1/charges",
    "method": "POST",
    "payload": {
      "amount": 50000,
      "currency": "BRL"
    }
  },
  "context": {
    "session_id": "018e8f23-1d00-7b50-8a7e-4632c021f000",
    "risk_budget": 100
  }
}

Response

{
  "envelope": {
    "decision_id": "018e8f23-1d00-7b50-8a7e-4632c021f000",
    "execution_status": "ALLOW",
    "risk_score": 35,
    "latency_ms": 12,
    "trace_id": "018e8f23-1d00-7b50-8a7e-4632c021f000",
    "tenant_id": "fintech-corp",
    "policies_evaluated": 3,
    "timestamp": "2026-02-19T22:00:00Z"
  },
  "trace_id": "018e8f23-1d00-7b50-8a7e-4632c021f000"
}

Verdict Values

StatusMeaning
ALLOWAction approved — proceed
DENYAction blocked — policy violation
REQUIRE_APPROVALHeld for human review
ESCALATEForwarded to compliance team

The Decision Engine's WASM policy evaluation completes in 1.2ms median (hot path). The full governance loop — including audit write and secret injection — adds ~18ms at the Cloudflare Edge (23ms median in sidecar deployments). Policies are evaluated in parallel using the WASM kernel.

Query Audit Log

GET /admin/decisions?tenantId=my-org&limit=100

Returns the last N decisions for the authenticated tenant.

{
  "data": [
    {
      "decision_id": "018e8f23-1d00-7b50-8a7e-4632c021f000",
      "tenant_id": "fintech-corp",
      "execution_status": "ALLOW",
      "risk_score": 35,
      "event_type": "api_call",
      "trace_id": "018e8f23-1d00-7b50-8a7e-4632c021f000",
      "created_at": "2026-02-19T22:00:00Z"
    }
  ]
}

On this page