Motivation
Grounding tells you whether an answer is supported; it does not tell you how strongly each individual claim rests on its evidence, nor give you an auditable record of that judgement. The Evidence & Risk Review firewall does: it sweeps an answer’s claims against their sources and emits a per-claim risk verdict plus a persisted review log.What it does
Submit an artifact (answer text + claims + sources); the engine returns:- Evidence tiers per source (the
guideline > … > unverifiedaxis). - Per-claim verdicts —
keep·soften·flag_for_human_review·remove. - Findings — per-check reasons, suggested rewrites, confidence, cost class.
- A review-log row — appended, tenant-scoped, queryable.
Tri-surface (R44)
This capability comes from the standalonepadosoft/laravel-evidence-risk-review
package, wired into AskMyDocs over one shared core service:
- PHP / MCP — the package’s Artisan command + MCP tools auto-register.
- HTTP API —
/api/admin/evidence-risk-review/*(reviews list + detail, profiles, taxonomy, submit), host-secured withtenant.resolve+auth:sanctum+tenant.authorize+can:viewEvidenceRiskReview(R32 matrix-locked).tenant.resolveruns first soTenantContextis set before the boundTenantResolverstamps + scopes the review-log rows (R30). - Native FE admin —
/app/admin/evidence-risk-review(Reviews / Profiles / Taxonomy / Try), cross-mounting the core API.
Security & flags (R43, default-OFF)
- The whole admin surface is opt-in via
EVIDENCE_RISK_REVIEW_ADMIN_ENABLED(default-OFF): off → the routes are unregistered (clean 404) and the FE shows a clean “unavailable” landing — never a 500. - The optional LLM pass is a second default-OFF flag,
EVIDENCE_RISK_REVIEW_LLM_ENABLED, running over the hostAiManager. - R30 — a host
TenantResolverbinds the review log to the active tenant: a review is stamped on write and reads are forced to that tenant; a clienttenantfilter cannot widen the scope.
Worked example
Submit an artifact and read the verdicts:review_log_id is the persisted, tenant-scoped row — queryable via
GET /api/admin/evidence-risk-review/reviews/{id} or the admin FE.
Gotchas & operations
- Default-OFF means a fresh deploy ships the surface dormant — enable the flag to light up the dashboards.
- The review log can hold tenant-scoped artifact text — it is gated and tenant-scoped precisely for that reason.
- This is a firewall over grounding, not a replacement — see grounding & evidence tiers.
Grounding & evidence tiers
The evidence-strength axis this firewall scores against.
Anti-hallucination firewall
The complementary human > auto > raw trust ranking.