RagHarnessDebugger: Jev-Guided Agentic RAG in Contract Inference Repair Auditing
Moriya Dechtiar, Daniel Martin Katz, Michael J. Bommarito, Hongming Wang, Sylvain Jaume
Abstract
Agentic systems using retrieval-augmented generation (RAG) must repair their own answers by gathering more evidence, testing alternative policies and deciding if, when, and what repairs are needed. Yet how do we know if a system's repairs are working when metrics like accuracy can be misleading? We present RagHarnessDebugger, a framework that records every repair decision in a Jev-guided harness for contract inference and audits the record to facilitate complete debugging of all decisions taken during a RAG repair journey. RagHarnessDebugger checks that each trace is intact, that each validation applies to the candidate it is counted for, and which answers the acceptance rule can reach. We tested our approach on ContractNLI non-disclosure agreements with two reader models and a replication set of separate contracts. Our debugger's audit layer exposed failure patterns that were hidden under aggregate metrics, policies acceptance cost of repairs vs regressions and policy acceptance gap of 77% and 76% of available but unrealised repairs on development and replication sets. Our audit, together with a labeled error analysis and replay mechanism, allowed following the execution path all the way to the terminal decision - uncovering where missing repairs became lost. Our revised harness improved accuracy over the initial BM25-only baseline by 3.6 points on development contracts and 3.7 points on the replication set, and even improved our full contract access reference score by 1.1 on development and 2.4 on replication set. While our work here demonstrates how the debugger can conduct decision root-cause analysis for missed repairs, the true value lies with providing this debugger for judgment visibility serving continuous improvement of RAG decisions and their explainability. Keywords: agentic RAG, AI evidence repair, harness explainability, counterfactual replay, Jev, ContractNLI
Create a lesson
Related papers
CaDO: Formal Verification-Guided Multi-Agent Framework for Causal Dataset Repair and Generation
Shared title terminology · Songli Yu, Qi Luo
Seer: Guiding Small Deep-Research Agents with Shared Decision Models
Shared title terminology · Yuhao Zhou, Yang Zhou, Yuanxi Li et al.
System-One RSI: Building Muscle Memory for Interactive Agents through Guided Practice
Shared title terminology · Qingxu Fu, Xuanfa Jin, Ziqian Chen et al.
Validation-driven Deployment of LLM Inference Platforms for Agentic Workloads
Shared title terminology · Shai Gretz, Alon Halfon, Yoav Katz et al.
Diagnosis is not a policy: a state-transition audit of caoability-conditioned test-time inference
Shared title terminology · Yuchong Hu, Zhao Zhang, Kainan Liu et al.
Efficient Multimodal Agents for Auditing 3D Worlds
Shared title terminology · Jingbo Yang, Ziyan Jiang, Li An et al.