Skip to content

v1.0.0 — TruthGate: Deterministic Agent Hallucination Auditor & AST Grounding Engine

Latest

Choose a tag to compare

@codesphere-u codesphere-u released this 07 Nov 12:15
· 8 commits to main since this release

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):
    • TG001 Phantom Source Citation (PHANTOM_CITATION)
    • TG002 Low Lexical/Entity Support (UNVERIFIED)
    • TG003 Negation & Antonym Polarity Inversion (CONTRADICTED)
    • TG004 Numeric & Magnitude Drift (NUMERIC_DRIFT)
    • TG005 Uncited Factual Assertion (UNVERIFIED)
    • TG006 Non-Existent File Path (BROKEN_CODE_REF)
    • TG007 Out-of-Bounds Line Range (BROKEN_CODE_REF)
    • TG008 Phantom 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 ms P50 / 0.37 ms P95 latency.
  • JSON-RPC 2.0 Stdio MCP Server (truthgate mcp): Exposes truthgate_verify_response, truthgate_ground_workspace_refs, truthgate_list_rules, and truthgate_run_benchmark.