codex-stop-truth-gate
Ask Codex for one more pass when final code-change claims omit validation evidence.
hook
Stop
codex
mode: enforce
config/hook-registry.json (entry) hooks/wagents-hook.py (policy + guard)
Ask Codex for one more pass when final code-change claims omit validation evidence.
Registry Entry
Section titled “Registry Entry”| Field | Value |
|---|---|
| id | codex-stop-truth-gate |
| status_message | Checking final-answer evidence |
| mode | enforce |
| logical_event | Stop |
| command | python3 {repo_root}/hooks/wagents-hook.py codex-stop-truth-gate --harness {harness} |
| timeout | 5 |
| harnesses | ["codex"] |
Full hook config + command reference
{ "id": "codex-stop-truth-gate", "description": "Ask Codex for one more pass when final code-change claims omit validation evidence.", "status_message": "Checking final-answer evidence", "mode": "enforce", "logical_event": "Stop", "command": "python3 {repo_root}/hooks/wagents-hook.py codex-stop-truth-gate --harness {harness}", "timeout": 5, "harnesses": [ "codex" ]}def _policy_codex_stop_truth_gate(payload: NormalizedPayload) -> int: if payload.stop_hook_active: return 0 ... # checks last assistant message for claims without evidence if has_claim and not has_evidence: return _stop_retry(payload, "Add explicit validation evidence (tests, commands, diffs) before stopping.") return 0Command: python3 .../wagents-hook.py codex-stop-truth-gate --harness codex
Resources
Section titled “Resources” Hooks Hub All repo-managed lifecycle hooks.
wagents hooks Inspect and validate hooks via CLI.