Editorial research note / Reliable local agents: grounding, retrieval and verified loops
A fact-check tool that could be fooled by the agent's own answer
- Question
- Why did a local agent state a fabricated fact about a real company and call it verified, and what stops that?
- Result
- Two faults compounded. The agent passed its own drafted answer as the source, so every claim matched itself and came back grounded, and it claimed the fact was 100% verified; and the web-fetch step stripped the page body, so the agent was starved of real data and filled the gap. The fact-check now rejects a source that is nearly the answer itself (ratio ≥0.85, or answer⊆source with source<1.3×answer), a fetch tool that returns the real page content was added, and the agent's rules now require raw tool output as the source and an admission when a fetch is empty.
- Limits
- A verify-then-revise check on the final answer proved architecturally unavailable for this streaming local agent, so the defence is a tool and prompt rule rather than an enforced check of the final answer.
- Next question
- Would an agent runtime with a final-answer hook allow the answer to be checked against the actual tool results?
100% verified
What the agent claimed (working note)
Source & quoted measure
and claimed it was "100% verified."
ratio ≥0.85, or answer⊆source with source<1.3×answer
Self-source rejection rule (working note)
Source & quoted measure
rejects self-source (normalized difflib ratio ≥0.85, or answer⊆source with source<1.3×answer) → returns "INVALID SOURCE"
STREAMING
Why the final-answer check was unavailable (working note)
Source & quoted measure
post-hoc revision is also incompatible with a STREAMING local reply (text already shown).
Provenance
What the retained source says.
The guide above is editorial. The passages below are source quotations. A fingerprint identifies the retained source bytes; it does not establish the scientific claim by itself. Availability is stated for each source.
01 / Fact-check self-source working note
the agent passed its OWN drafted answer as the `source` arg, so every claim matched itself → tautological "GROUNDED."
Fact-check self-source working note · excerpt