SpecGuard uses Lean certificates to prove task conflicts before execution
Start here
SpecGuard detects conflicts between task descriptions and tests before coding agents run, and generates machine-checkable conflict certificates using Lean 4. Methodologically, SpecAgent generates executable specifications from task descriptions and codebases without touching tests, TestAgent independently formalizes test requirements, and Certifier builds semantic connectors and attempts to prove that no implementation satisfies both. On conflicted SWE-bench tasks, SpecGuard detects up to 72.8% of conflicts and formally proves 51.1%.
Generated by AI from reports · Updated 2026-10-19
Related research
This event's paper
- SpecGuard: Proving a Task Is Broken Before the Agent Cheats
arXiv · 2026-10-06 · Deep reading
Progress timeline
- arXiv: Alignment, Deception & OversightSelectedSpecGuard uses Lean certificates to prove task conflicts before coding agents execute
SpecGuard detects conflicts between task descriptions and tests before coding agents run, and generates machine-checkable conflict certificates using Lean 4. Methodologically, SpecAgent generates executable specifications from task descriptions and codebases without touching tests, TestAgent independently formalizes test requirements, and Certifier builds semantic connectors and attempts to prove that no implementation satisfies both. On conflicted SWE-bench tasks, SpecGuard detects up to 72.8% of conflicts and formally proves 51.1%; GPT-5.6 Sol has a conflict miss rate of 8.1%, while the LLM judge baseline is 39.8%. When both original and corrupted versions of tests are provided, detection rate improves by 17 to 25 percentage points, and Sol's proof rate rises to 67.0%. A manual audit of 60 formalizations by the authors shows 52 are faithful, and failure analysis indicates the main bottleneck is semantic alignment between independently generated representations, not Lean proof checking itself.