ThresholdCheck
Fields
The recorded confidence-gate evaluation for one AI output.
4 fields
observed_confidence- integer or null
passed· required- boolean
source· required- string
threshold· required- integer
Raw schema (JSON)
{
"description": "US-15.2 — the recorded confidence-gate evaluation for one AI output.\n\nPersisted verbatim in ``AIAnalysis.routing_metadata[\"threshold_check\"]``\nand ``Defect.policy_evaluation[\"threshold_check\"]``. Built by\n``services.confidence_gate.build_threshold_check`` — keep the shapes in\nsync (four keys, no more).",
"properties": {
"observed_confidence": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Observed Confidence"
},
"passed": {
"title": "Passed",
"type": "boolean"
},
"source": {
"title": "Source",
"type": "string"
},
"threshold": {
"title": "Threshold",
"type": "integer"
}
},
"required": [
"threshold",
"passed",
"source"
],
"title": "ThresholdCheck",
"type": "object"
}Used by endpoints
Section titled “Used by endpoints”3 endpoints send or return this schema, on its own or inside another schema.
POST/api/v1/analyze— Analyze Test CaseGET/api/v1/analyze/{test_case_id}— Fetch existing AI analysis for a test case (no re-run)GET/api/v1/runs/{run_id}/decision-trail— AI decision trail for a test run
Used by schemas
Section titled “Used by schemas”More details
Section titled “More details”- Specification: OpenAPI JSON