PolicyKindRules
Fields
Opt-in failure-kind weighting for the release gate.
3 fields
enabled- boolean
infrastructure- PolicyKindBudget or null
test_code- PolicyKindBudget or null
Raw schema (JSON)
{
"description": "Opt-in failure-kind weighting for the release gate (US-9.3).\n\nSTRICTLY OPT-IN: ``enabled`` defaults to False and the evaluator treats\na disabled/absent block as byte-identical to today's behaviour (pinned by\n``tests/test_kind_gate_policy.py``). Kinds come from the derived triad in\n``app/services/failure_kind.py`` (AI-classified — never ground truth).\n\nOnly ``infrastructure`` and ``test_code`` may carry budgets. ``product``\nfailures always count and ``unknown`` failures are conservatively counted\nas product — neither is representable here on purpose.",
"properties": {
"enabled": {
"default": false,
"title": "Enabled",
"type": "boolean"
},
"infrastructure": {
"anyOf": [
{
"$ref": "#/components/schemas/PolicyKindBudget"
},
{
"type": "null"
}
]
},
"test_code": {
"anyOf": [
{
"$ref": "#/components/schemas/PolicyKindBudget"
},
{
"type": "null"
}
]
}
},
"title": "PolicyKindRules",
"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/release-gate-policies— Create PolicyPATCH/api/v1/release-gate-policies/{policy_id}— Update PolicyPOST/api/v1/release-gate-policies/simulate— Simulate Policy
Used by schemas
Section titled “Used by schemas”More details
Section titled “More details”- Specification: OpenAPI JSON