Calibrate
Run a linear calibration loop for codex workflow integrity.
Input Schema
{
"scope": "skills|agents|routing|all",
"pace": "fast|full",
"mode": "ab-test|apply",
"skip_gate": false,
"done_when": "recall and bias scores emitted; proposals written if mode=apply; gate skipped if skip_gate=true"
}
Workflow
- Load calibration task set from
.codex/calibration/tasks.json. - Run
.codex/calibration/run.sh. - Inspect
checks_failedandleaks_found. - Classify gaps as blocking or non-blocking.
- Recommend minimal fixes for blocking gaps.
- Write artifact to
.reports/codex/calibrate/<timestamp>/result.json.
Usage Notes
- Use after any meaningful agent or skill instruction change to confirm routing and output shape still match the configured stack.
- Treat
leaks_foundas the primary drift signal andchecks_failedas the mechanical gate signal. - If the run surfaces missing registration or pattern mismatches, prefer a minimal config fix and rerun before widening the change.
Output Contract
Use shared gate schema from ../_shared/quality-gates.md.
Minimum artifact payload:
{
"status": "pass|fail",
"checks_run": [
"calibration"
],
"checks_failed": [],
"findings": {
"critical": 0,
"high": 0,
"medium": 0,
"low": 0
},
"confidence": 0.0,
"artifact_path": ".reports/codex/calibrate/<timestamp>/result.json"
}