verify_turn
Fact-check claims about code changes before reporting completion. Each claim is verified against repository, working tree, and logs to produce supported or contradicted verdicts.
Instructions
Fact-check your own claims about code you changed, BEFORE telling the user a change is done — to catch over-claims (wrong values, routes or functions you said you added/removed). HOW TO CALL: extract the concrete factual claims from what you're about to say and pass them in claims (one short sentence each) — you parse them far more reliably than truth can re-parse prose, and it's free since you're already writing the message. Also pass the raw message as a backstop. Each claim is checked against the indexed repo + working-tree git diff + logs and gets a cited supported / contradicted / refused verdict. Deterministic: the verdict comes from evidence, not from a model — so listing a claim can't make it pass. 'refused' means unverifiable, NOT confirmed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| claims | No | RECOMMENDED. The individual factual claims from your message, each as a short self-contained sentence (e.g. ["I set MAX_RETRIES to 5", "I added the /v1/refund route", "I removed the parse_legacy function"]). You (the calling model) extract these from your own message — it's free and far more reliable than truth re-parsing your prose. Only list checkable state claims; skip vague/subjective ones. truth still decides each verdict from real evidence, not from your wording. | |
| local_log | No | Optional path to a local log file for usage/error claims. | |
| message | Yes | What the agent is about to claim about its work (the raw prose). Always include this — truth scans it as a backstop so claims you forget to list still get checked. | |
| repo | No | Absolute path to the repo root being worked on. Strongly recommended: truth opens <repo>/.truth and diffs that working tree. If omitted, the server's working directory is used, which may be wrong. |