CbC Mission-Critical Code Verification
Verifies mission-critical code changes through pluggable formal verifiers, logs audit evidence, and gates task completion on undischarged claims.
The CbC (Correctness-by-Construction) skill enables agentic engineering workflows to prove the correctness of mission-critical code changes using formal verification adapters rather than manual reviews alone. By tagging sensitive code via git attributes, the skill identifies required claims, runs pluggable automated verifiers (such as Dafny, Z3, Move Prover, and Verus), records immutable evidence records in a ledger, and gates merge or completion workflows until all claims are formally discharged or explicitly waived with documented rationales.
Key Features
01Enforces strict completion gating to prevent merges with undischarged code claims
022 GitHub stars
03Discharges correctness claims via pluggable adapters (Agentic LLM, Move Prover, Dafny, Z3, Verus)
04Supports explicit claim waiver management with auditable rationale logging
05Identifies mission-critical code in scope using standard .gitattributes tagging
06Generates structured, machine-readable evidence ledgers under docs/cbc-evidence/
Use Cases
01Gating automated agent code synthesis behind rigorous formal verification evidence
02Proving safety properties and state-machine transitions in distributed consensus systems
03Verifying smart contract invariants and escrow logic before mainnet deployment