Canary Guardrail Decision
Compare paired canary and control observation windows against exposure and error-rate guardrails using exact basis-point thresholds.
Custom requests cost 0.04 USDC on Base.
Download example JSON · OpenAPI · Source and usage
Pay with a browser wallet · Open example in checkout
POST a JSON request to /canary-guardrail-decision/v1/check with an x402 V2 client.
Worked example
Request
{
"minimum_requests": 100,
"max_increase_bps": 50,
"windows": [
{
"id": "search",
"control": {
"requests": 1000,
"errors": 10
},
"canary": {
"requests": 1000,
"errors": 20
}
},
{
"id": "checkout",
"control": {
"requests": 1000,
"errors": 10
},
"canary": {
"requests": 99,
"errors": 0
}
},
{
"id": "results",
"control": {
"requests": 1000,
"errors": 10
},
"canary": {
"requests": 1000,
"errors": 15
}
}
]
}Result
{
"decision": "hold",
"windows": [
{
"id": "search",
"status": "breach",
"increase_bps": 100
},
{
"id": "checkout",
"status": "insufficient_exposure",
"increase_bps": null
},
{
"id": "results",
"status": "pass",
"increase_bps": 50
}
]
}Support catalog maintenance through GitHub Sponsors. Sponsor gptenv · Sponsor Jeremy Carter