{
  "schema_version": "1.0.0",
  "service": "agent-decision-gate-api",
  "examples": [
    {
      "name": "healthy_branch_continue",
      "endpoint": "/v1/branches/evaluate",
      "intent": "Check whether a productive branch should continue.",
      "input_fixture": "fixtures/scenarios/normal_continue.json",
      "expected": {
        "permission_decision": "ALLOW",
        "operational_action": "CONTINUE_BRANCH",
        "reason_codes": [
          "BRANCH_HEALTHY"
        ]
      }
    },
    {
      "name": "looping_branch_prune",
      "endpoint": "/v1/branches/evaluate",
      "intent": "Stop repeated low-progress execution before it burns more compute.",
      "input_fixture": "fixtures/scenarios/loop_prune.json",
      "expected": {
        "permission_decision": "ALLOW",
        "operational_action": "PRUNE_BRANCH",
        "reason_codes": [
          "LOOP_DETECTED"
        ]
      }
    },
    {
      "name": "payment_budget_denied",
      "endpoint": "/v1/branches/evaluate",
      "intent": "Deny a payment operation when no USDC budget authorization exists.",
      "input_fixture": "fixtures/scenarios/payment_budget_denied.json",
      "expected": {
        "permission_decision": "DENY",
        "operational_action": "ABSTAIN",
        "reason_codes": [
          "BUDGET_AUTHORIZATION_MISSING"
        ]
      }
    },
    {
      "name": "receipt_verify",
      "endpoint": "/v1/receipts/verify",
      "intent": "Verify that a returned decision receipt has not been tampered with.",
      "request_shape": {
        "receipt": "{receipt returned by /v1/branches/evaluate}"
      },
      "expected": {
        "valid": true
      }
    }
  ]
}