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.