CEGAR Harness

•

Mitigates post-compaction regression loops in autonomous coding agents through counterexample-guided context management and isolated witness replay.

CEGAR-Harness is an advanced middleware and evaluation framework designed to prevent coding agents from repeating previously refuted mistakes during long-horizon coding tasks. When an agent's context window fills up and gets compacted, crucial test failure details are often discarded, leading to post-compaction amnesia and recurring bugs. Inspired by Counterexample-Guided Abstraction Refinement, CEGAR-Harness records reproducible failure witnesses in a contract-versioned SQLite ledger, pins active counterexample predicates during context compaction, and gates proposed patches through a three-state verification gate backed by isolated witness replay and atomic Git rollback capabilities.

Características Principales

01Sandboxed witness replay system with subprocess isolation and execution path confinement
020 GitHub stars
03Persistent counterexample ledger recording versioned failure witnesses and AST fingerprints in SQLite
04Three-state regression gate providing PASS, REGRESSION_DETECTED, and INCONCLUSIVE decision semantics
05Regression-aware compaction controller that preserves critical failure predicates while pruning verbose logs
06Multi-interface support including a Model Context Protocol server, LangGraph middleware, Git workspace adapter, and Web UI

Casos de Uso

01Benchmarking and evaluating the reliability of LLM code-repair agents across multi-turn workflows
02Protecting multi-file repository edits with automated, sandboxed regression gating and atomic Git rollbacks
03Preventing autonomous coding agents from re-introducing refuted bugs after context pruning or summarization