Skip to content
TestLookupTestLookup
Search Ctrl K

Search TestLookup

Enter a term to search the local static index.

    PolicyKindBudget

    Fields

    Failure budget for one excludable failure kind.

    3 fields
    downgrade_to
    string
    max_failures
    integer
    min_confidence_to_excuse
    integer or null
    Raw schema (JSON)
    {
      "description": "Failure budget for one excludable failure kind (US-9.3).\n\n``max_failures`` is the count of failures of this kind the gate will\nexcuse from the NO_GO trigger. ``downgrade_to`` is deliberately a\nsingle-value Literal: a NO_GO may be softened at most to CONDITIONAL_GO —\nnever to GO — so the schema itself makes the hard rule unrepresentable.\n\n``min_confidence_to_excuse`` (AI-4, optional): when set, a failure only\ncounts toward this kind's excusable budget if its per-failure kind\nconfidence (the evidence-checklist confidence, falling back to the\nclassifier confidence) is at or above the floor. Below-floor and\nunknown-confidence failures count as product — conservative. ``None``\n(the default) applies no floor: verdicts are byte-identical to the\npre-AI-4 US-9.3 behaviour (pinned by tests/test_kind_gate_policy.py).",
      "properties": {
        "downgrade_to": {
          "const": "CONDITIONAL_GO",
          "default": "CONDITIONAL_GO",
          "title": "Downgrade To",
          "type": "string"
        },
        "max_failures": {
          "default": 0,
          "minimum": 0,
          "title": "Max Failures",
          "type": "integer"
        },
        "min_confidence_to_excuse": {
          "anyOf": [
            {
              "maximum": 100,
              "minimum": 0,
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Min Confidence To Excuse"
        }
      },
      "title": "PolicyKindBudget",
      "type": "object"
    }

    3 endpoints send or return this schema, on its own or inside another schema.