Evidence-first stale-answer detector. Audit an existing LLM answer claim by claim, verify it against current sources, and show what is still true, what changed, and what cannot be verified.
Live demo: https://yai-scout.onrender.com/freshness
Free tier sleeps after ~15 min idle; first request can take 30–90s. 32 real GitHub-release snapshots ship in the image, so replay works without setup.
LLM answers often look cited but cite old pages. Grounding and citation checks answer "is this supported by evidence", not "is the evidence still current, and what is the value today".
YAI Scout is a post-hoc audit layer:
answer → claims → temporal sensitivity → current-source research
→ FRESH / STALE / CONFLICTED / INSUFFICIENT / UNKNOWN per claim
→ current value + correction + evidence links
- Post-hoc: audit answers from any model; no need to rebuild the RAG or agent.
- Support ≠ freshness: evidence can fully support a claim that is already outdated.
- Current value + correction, not just a red/green status.
- As-of replay: the same answer is fresh at 2026-10-28 and stale at 2026-11-01 using real GitHub release history.
- Evidence governance: anchors, multi-source candidates, an accuracy gate, approve/reject and rollback — automated updates stay auditable instead of overwriting silently.
| Component | Role | Where |
|---|---|---|
| Tavily | live research: current sources, source content, recency and tier signals | retrieval/tavily.py, detector verification |
| Controlled page fetch | optional, allowlisted HTTPS fetch of a result page; default off | sources/page.py, sources/anchor.py |
| Bifrost | OpenAI-compatible model gateway: claim extraction, relation assessment, correction rewrite; provider routing and logs | llm.py, docs/bifrost-integration.md |
| Deterministic code | status decisions, budgets, evidence storage, scoring, audit | detector/, store.py |
Bifrost is an optional gateway. When BIFROST_BASE_URL is set, model requests go through Bifrost. Without it, the app uses a direct OpenAI-compatible endpoint. The public demo is configured with Bifrost; the direct path remains available for offline/keyless runs. The live gateway can be checked at /api/healthz (llm.gateway).
uv sync --extra dev
cp .env.example .env
# fill TAVILY_API_KEY
# optional Bifrost gateway:
# scripts/start_bifrost.ps1 # or: docker run -p 8080:8080 maximhq/bifrost
# fill BIFROST_BASE_URL / BIFROST_MODEL
uv run uvicorn yai_scout.api.app:app --port 8010Run the configured quality gates with one command:
python scripts/check_all.py| URL | Purpose |
|---|---|
/freshness |
paste an LLM answer → claim-level freshness report |
/inspector |
claims → sources → timestamps → score breakdown |
/compare |
temporal drift between two reports (real replay) |
/benchmark |
evaluation: 40 tasks, multiple agents, Pareto |
/label |
blind accuracy labeling |
/admin |
token-gated candidates / approve / reject / rollback |
# deterministic offline replay from cached real API responses
.\.venv\Scripts\python.exe scripts\demo_fixed_cases.py
# live check
.\.venv\Scripts\python.exe scripts\demo_fixed_cases.py --check `
--url https://yai-scout.onrender.comFixed cases:
Python 3.12 (2023) FRESH stable fact, old source is fine
YAI 0.24.0 @ 2026-10-28 FRESH correct at the time
YAI 0.24.0 @ 2026-11-01 STALE citation ≠ freshness
YAI 0.25.0 @ 2026-11-01 FRESH current value
flowchart LR
U[User / API] --> F[Claim extraction]
F -->|LLM via Bifrost or direct| B[Model provider]
F --> T[Tavily live research]
T --> E[Evidence + source tiers]
E --> V[Deterministic verification<br/>relation / recency / authority / coverage]
V --> R[Freshness report + correction]
R --> A[Anchor / candidate / audit]
A --> UI[Inspector / compare / admin]
| Capability | Status |
|---|---|
| Claim extraction | LLM via Bifrost/direct or rule fallback; quote-substring validated |
| Live verification | Tavily search; supports / contradicts / mentions relation |
| Freshness model | temporal sensitivity classes, versioned policy and weights, explainable breakdown |
| Evidence provenance | published / updated / retrieved times kept distinct; full-page fetch preserves search metadata |
| Claim identity | typed v1/v2 keys with additive migration and dual-read fallback |
| Bifrost integration | configurable OpenAI-compatible gateway; healthz reports the active gateway |
| Temporal replay | GitHub release snapshots: 2026-10-28 FRESH vs 2026-11-01 STALE |
| Evidence governance | anchors, multi-source candidates, accuracy gate, approve/reject/rollback |
| Benchmark | 40 tasks, HTTP/Python/CLI adapters, repeated runs, failure injection, step/tool traces, Pareto, manifest + result_hash |
| Verdict evaluation | claim-level Freshness status suite; no Tavily/LLM; precision/recall/confusion |
| Quality gates | 382 tests on Python 3.11/3.12, ruff, mypy strict, CI + Docker |
POST /freshness/verify and POST /api/detector return:
X-Freshness-Status first claim status
X-Freshness-Statuses all claim statuses
X-Freshness-Score overall score
X-Freshness-Report-ID
X-Freshness-Report-URL public read-only share page
The share page is /freshness/share/{report_id} and is noindex.
For agent integration, python scripts/mcp_freshness.py exposes the same check
as a stdio MCP tool (freshness_check). scripts/demo_showcase_cases.py --check
runs the six showcase cases against a deployed instance.
scripts/async_freshness_queue.py runs those cases through a bounded client-side
worker pool; the six source cases live in benchmarks/showcase_cases.jsonl.
- Human labels are rule-following, not an independent ground truth;
AUTO_UPDATEstays off. - Web-archive history is unavailable in the current environment; replay uses GitHub release history and is labelled
simulatedwhen no snapshot exists. Historical evidence is never fabricated. - The benchmark is a small evaluation suite, not an academic leaderboard.
- Bifrost is verified locally and used by the public demo; the direct path is used when no gateway is configured.
healthz.llm.gatewayreports the active route. - LLM/Tavily keys are not in this repo; keyless and rule-based fallbacks exist.
Bugs and questions: https://github.com/Gi-Tuu/yai-scout/issues
- Bifrost integration · Bifrost verification
- Benchmark reliability · Benchmark retention · Benchmark session state · Performance smoke · Staging load test · Storage layout · Verify/relation layout · External benchmark · External v2 · Freshness verdict evaluation
- Claim key versioning
- Full-page fetch
- Freshness scoring · Temporal replay
- Anchor retrieval · Accuracy gate · Accuracy eval
- Database operations · Migration plan
- Deployment · XFF diagnosis
- Governance · ADR-0003
- Engineering audit · Changelog
MIT — see LICENSE and NOTICE for reused components (YAI Agent Core v0.25.0, MIT).