Repository navigation
TruthGate v1.0.0
Deterministic Agent Hallucination Auditor, Citation-Span Entailment Verifier & Workspace Symbol Grounding Engine (with MCP Server)
Highlights
- 8 Deterministic Verification Rules (
TG001–TG008):TG001Phantom Source Citation (PHANTOM_CITATION)TG002Low Lexical/Entity Support (UNVERIFIED)TG003Negation & Antonym Polarity Inversion (CONTRADICTED)TG004Numeric & Magnitude Drift (NUMERIC_DRIFT)TG005Uncited Factual Assertion (UNVERIFIED)TG006Non-Existent File Path (BROKEN_CODE_REF)TG007Out-of-Bounds Line Range (BROKEN_CODE_REF)TG008Phantom Code Symbol via Python AST & TS/JS/Go/Rust symbol indexing (BROKEN_CODE_REF)
- Surgical Self-Correction Compiler (
SurgicalRepairCompiler): Synthesizes token-efficient repair prompts with exact violation codes and verbatim ground-truth spans. - Verified 40-Scenario Benchmark (
truthgate benchmark):100.0%Precision,100.0%Recall,0.0%False Positive Rate,0.12 msP50 /0.37 msP95 latency. - JSON-RPC 2.0 Stdio MCP Server (
truthgate mcp): Exposestruthgate_verify_response,truthgate_ground_workspace_refs,truthgate_list_rules, andtruthgate_run_benchmark.