The Verification Loop: Query, Compute, Check, Review
Learning objective: describe each step an agent may take to check a claim, and where a person takes over.
- Question and periods from the claim
- Read-only query of the package
- Fixed-formula calculation
- Evidence check: enough or not
- Draft with sources, or a list of missing evidence
- Human review and decision
| Tool | Kind | What it does |
|---|---|---|
| get_period_kpi(period_id, building_id) | Read-only query | Returns one period's totals, coverage, evidence ids and versions |
| get_evidence(evidence_id) | Read-only query | Returns one evidence record, or found: false with a reason |
| compare_periods(b, c) | Local fixed formula | Returns the change percentage, or empty with the reasons it is blocked (compare-periods-1.0) |
| score_evidence(b, c) | Local fixed formula | Returns the three sub-scores and the total (evidence-score-1.0) |
- An agent interleaves reasoning with tool actions; here the actions are restricted to the four tools above
- A claim is verified by retrieving and checking step by step, not by answering in one pass
- The agent has no write, send or publish action, and it never computes a number itself when a fixed formula exists
The agent wants to work out the change percentage in its own words instead of calling compare_periods. What should happen?