Skip to main content

Governance Evaluate

Evaluate an action against the 8 governance laws without executing it. Returns the governance verdict (proceed, escalate, or block) and per-law evaluation results.

This is the primary endpoint of the ARQERA API.

POST /api/v1/ara/governance/evaluate

Request

Headers

HeaderRequiredDescription
X-API-KeyYesYour ARQERA API key (ak_...)
Content-TypeYesapplication/json

Body

{
"action": "email.send",
"description": "Send a welcome email to a new user",
"context": {
"risk_level": "low",
"is_irreversible": false,
"has_approval": false,
"estimated_cost_usd": 0.01
}
}
FieldTypeRequiredDescription
actionstringYesAction identifier (e.g., email.send, data.delete, ai.generate, payment.process)
descriptionstringNoHuman-readable description of the action
contextobjectNoAdditional context for evaluation (see below)

Context Fields

All context fields are optional. Providing more context improves evaluation accuracy.

FieldTypeDescription
risk_levelstring"low", "medium", "high", or "critical"
is_irreversiblebooleanWhether the action cannot be undone
has_approvalbooleanWhether human approval was obtained
estimated_cost_usdnumberEstimated cost of the action in USD
budget_remaining_usdnumberRemaining budget in USD
confidence_scorenumberAI confidence level (0.0 to 1.0)
min_confidencenumberMinimum required confidence threshold
trust_scorenumberActor's trust score (0 to 100)
actor_typestring"human" or "ai_agent"
artifact_typestringEvidence artifact type to produce

Response

200 OK

{
"verdict": "proceed",
"action": "email.send",
"explanation": "All 8 governance laws passed.",
"duration_ms": 12.34,
"evaluated_at": "2026-02-22T10:30:00Z",
"evaluations": [
{
"law_id": "audit_conservation",
"law_name": "Audit Conservation",
"result": "pass",
"reason": "Action produces an auditable trace",
"details": {
"has_tenant": true,
"has_user": true
},
"duration_ms": 0.45
},
{
"law_id": "budget_conservation",
"law_name": "Budget Conservation",
"result": "pass",
"reason": "Within budget allocation",
"details": {},
"duration_ms": 1.23
},
{
"law_id": "evidence_gravity",
"law_name": "Evidence Gravity",
"result": "pass",
"reason": "Evidence chain maintained",
"details": {},
"duration_ms": 0.31
},
{
"law_id": "least_action_path",
"law_name": "Least Action Path",
"result": "pass",
"reason": "Optimal path selected",
"details": {},
"duration_ms": 0.28
},
{
"law_id": "safety_dominance",
"law_name": "Safety Dominance",
"result": "pass",
"reason": "No safety concerns",
"details": {},
"duration_ms": 0.52
},
{
"law_id": "monotonic_truth",
"law_name": "Monotonic Truth",
"result": "pass",
"reason": "Truth invariant maintained",
"details": {},
"duration_ms": 0.19
},
{
"law_id": "bounded_autonomy",
"law_name": "Bounded Autonomy",
"result": "pass",
"reason": "Within autonomy bounds",
"details": {},
"duration_ms": 1.87
}
]
}

Response Fields

FieldTypeDescription
verdictstring"proceed", "escalate", or "block"
actionstringThe action that was evaluated
explanationstringHuman-readable summary of the evaluation
duration_msnumberTotal evaluation time in milliseconds
evaluated_atstringISO 8601 timestamp of the evaluation
evaluationsarrayPer-law evaluation results (see below)

Law Evaluation Object

FieldTypeDescription
law_idstringLaw identifier (e.g., audit_conservation)
law_namestringHuman-readable law name
resultstring"pass", "warn", or "fail"
reasonstringExplanation of why the law passed or failed
detailsobjectAdditional metadata from the law check
duration_msnumberTime taken to evaluate this law

Verdict Logic

ConditionVerdict
All 8 laws passproceed
Any law returns warn (none fail)escalate
Any law returns failblock

429 Too Many Requests

Returned when you exceed your monthly governance evaluation allowance.

{
"detail": "Free tier limit reached. Used 1001/1000 governance evaluations this period. Upgrade at arqera.io/pricing"
}

Additional headers on 429 responses:

HeaderDescription
X-Usage-LimitYour monthly allowance
X-Usage-CurrentYour current usage count
X-Usage-Typegovernance_eval
Retry-AfterSeconds until next billing period

401 Unauthorized

{
"detail": "Invalid or expired API key."
}

422 Validation Error

{
"detail": [
{
"loc": ["body", "action"],
"msg": "field required",
"type": "value_error.missing"
}
]
}

Examples

Low-risk action

curl -s -X POST https://api.arqera.io/api/v1/ara/governance/evaluate \
-H "Content-Type: application/json" \
-H "X-API-Key: $ARQERA_API_KEY" \
-d '{
"action": "data.read",
"description": "Read dashboard metrics"
}'

High-risk irreversible action

curl -s -X POST https://api.arqera.io/api/v1/ara/governance/evaluate \
-H "Content-Type: application/json" \
-H "X-API-Key: $ARQERA_API_KEY" \
-d '{
"action": "data.delete",
"description": "Delete all user data for GDPR request",
"context": {
"risk_level": "high",
"is_irreversible": true,
"has_approval": false
}
}'

AI agent action with cost estimation

curl -s -X POST https://api.arqera.io/api/v1/ara/governance/evaluate \
-H "Content-Type: application/json" \
-H "X-API-Key: $ARQERA_API_KEY" \
-d '{
"action": "ai.generate",
"description": "Generate quarterly financial summary using GPT-4",
"context": {
"actor_type": "ai_agent",
"estimated_cost_usd": 0.15,
"budget_remaining_usd": 50.00,
"confidence_score": 0.92
}
}'

Usage Headers

Every successful response includes usage-related headers when you approach your monthly limit:

HeaderDescription
X-Usage-WarningWarning when at 80% of your monthly allowance
X-Usage-LimitYour monthly governance evaluation limit
X-Usage-CurrentYour current usage count