Towards Agentic Proof Harness Engineering
Rohith Kumar Shanmuganathan, Cedric Richter, Heike Wehrheim
Key points
From the paper's conclusion- Our results show that the agent successfully constructs proof harnesses that enable CBMC to detect all three violations.
Abstract
Formal verification of real-world projects requires substantial manual effort, from specifying correctness properties to constructing the infrastructure needed to check them. We envision verification agents that assist developers throughout this process. Among the many tasks involved, one stands out as both foundational and amenable to automation: proof-harness engineering. A proof harness defines an isolated verification environment for a program unit, such as a function or module, by providing symbolic inputs, initialization code, and models of its dependencies. Today, proof-harness engineering remains largely a manual task performed by verification engineers. To explore the potential of coding agents for this task, we propose an agentic proof-harness engineer that automatically constructs verifier-ready harnesses from a software project and a designated verification target. We combine the agent with formal soundness and precision guards to validate generated abstractions and guide their refinement. We evaluate the feasibility of our approach in an exploratory case study on curl and libuv, using three historical assertion violations already embedded in the source code as verification properties. Our results show that the agent successfully constructs proof harnesses that enable CBMC to detect all three violations. We further demonstrate the potential for reusing these harnesses with other verification tools.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Pre-QED: Environment Specifications for Agentic VerificationarXiv · 2026
- Rethinking Verification in Agent HarnessesarXiv · 2026
- Loop Engineering: Version-Bound, Evidence-Gated Coordination for Production Coding AgentsarXiv · 2026
- Doc2Harness: Benchmarking LLMs on Long-Horizon Harness Engineering of Coding AgentsarXiv · 2026
- Agent Harness Awareness: Turning Verified Telemetry into Operational Control for Tool-Using AgentsarXiv · 2026
- MAGS: Multi-agent Auto-formalization Guarantees Safety for Agentic OutputsarXiv · 2026