RagHarnessDebugger: Jev-Guided Agentic RAG in Contract Inference Repair Auditing
On the map: Retrieval-augmented generation → Agentic RAG, agents and memory
also in 1 more
Abstract (arXiv)
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
Key facts. No citing papers in the map yet (data through 24 Nov 2026). Placed in Agentic RAG, agents and memory, one of 15 directions in Retrieval-augmented generation. Builds on 37 of its 49 references that are in the map. Submitted 17 Nov 2026, announced 18 Nov 2026.
Builds on
37 of 49 references.
Closest ancestors · 1
Same direction, newest first
Other references · 36
- 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 9,360
- 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,789
- 2023Self-Refine: Iterative Refinement with Self-Feedbackcited by 3,799
- 2023Self-RAG: Learning to Retrieve, Generate, and Critique through Self-Reflectioncited by 1,978
- 2023Large Language Models Cannot Self-Correct Reasoning Yetcited by 1,170
- 2024LLM Evaluators Recognize and Favor Their Own Generationscited by 827
- 2025Why Do Multi-Agent LLM Systems Fail?cited by 703
- 2023Enabling Large Language Models to Generate Text with Citationscited by 673
- 2023Ragas: Automated Evaluation of Retrieval Augmented Generationcited by 458
- 2023LegalBench: A Collaboratively Built Benchmark for Measuring Legal Reasoning in Large Language Modelscited by 364
- 2023Chain-of-Verification Reduces Hallucination in Large Language Modelscited by 364
- 2025AgentSpec: Customizable Runtime Enforcement for Safe and Reliable LLM Agentscited by 276
24 more
- 2021CUAD: An Expert-Annotated NLP Dataset for Legal Contract Reviewcited by 266
- 2024Corrective Retrieval Augmented Generationcited by 220
- 2025Which Agent Causes Task Failures and When? On Automated Failure Attribution of LLM Multi-Agent Systemscited by 217
- 2024Hallucination-Free? Assessing the Reliability of Leading AI Legal Research Toolscited by 200
- 2021ContractNLI: A Dataset for Document-level Natural Language Inference for Contractscited by 168
- 2025Where LLM Agents Fail and How They can Learn From Failurescited by 153
- 2024Sufficient Context: A New Lens on Retrieval Augmented Generation Systemscited by 111
- 2022Capturing Failures of Large Language Models via Human Cognitive Biasescited by 107
- 2026AgentRx: Diagnosing AI Agent Failures from Execution Trajectoriescited by 77
- 2024RAGChecker: A Fine-grained Framework for Diagnosing Retrieval-Augmented Generationcited by 71
- 2026JEV-as-a-Judge: Accept When Confident, Escalate When Unsurecited by 65
- 2025DoVer: Intervention-Driven Auto Debugging for LLM Multi-Agent Systemscited by 35
- 2026Same Scores, Different Decisions: Evaluating JEV and Language Models for Legal Document Understandingcited by 16
- 2026SURE-RAG: Sufficiency and Uncertainty-Aware Evidence Verification for Selective Retrieval-Augmented Generationcited by 10
- 2026A Trace-Based Assurance Framework for Agentic AI Orchestration: Contracts, Testing, and Governancecited by 9
- 2025A Survey of Classification Tasks and Approaches for Legal Contractscited by 7
- 2026Structured Feedback Improves Repair in an LLM Agent Loopcited by 5
- 2026Oracle Gap and Signal Fidelity: A Fixed-Pool Diagnostic for Test-Time Collaborationcited by 4
- 2025GRAPH-GRPO-LEX: Contract Graph Modeling and Reinforcement Learning with Group Relative Policy Optimizationcited by 2
- 2026PAVE: Premise-Aware Validation and Editing for Retrieval-Augmented LLMscited by 2
- 2026Deterministic Replay for AI Agent Systemscited by 2
- 2026Return or Revise? Learning When Revision Helps Retrieval-Augmented QAcited by 2
- 2026CiteGuard-RAG: A Validation-Centered AI System for Evidence-Grounded Question Answeringcited by 1
- 2026RECTIFY: An Interactive Workbench for Post-Evaluation RAG Diagnosis, Repair, and Verificationcited by 1
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026Mnemosyne: Agentic Transaction Processing for Validating and Repairing AI-generated Workflows
- 2026ContractEval: Query-Conditioned Execution Matching for Procedural Instruction Conformance
- 2026EviACT: An Evidence-to-Action Framework for Agentic Program Repair
- 2026Rebuild Dossier: Mechanically-Enforced Specs for Agentic App Rebuilds, and What Model-Tier Failures Reveal
- 2026JevCoder: When Does Decision Delegation Pay Off in Code Repair?
- 2026Agentic Interpretation: Harness-Governed Evidence Construction for Software Agents
- 2026SWE Refactor Bench: Can Coding Agents Complete a Long-Horizon, Whole-Repository Stack Migration?
- 2026Benchmarks as Software: Terminal-Bench and the Case for Continuous Benchmarks