A developer proposes agent-checked code contracts
The proposal puts structured, free-form specifications alongside code. Its author says automated checks would flag important violations, while the contracts would help people understand code changes faster.
TLDR
A developer skeptical that all code will be formally verified is exploring a middle ground at code-contracts.cc: agent-based verification using structured, free-form specifications and invariants—conditions the code should preserve. The author says keeping these contracts alongside code prevents them from drifting out of sync, while automation enables ongoing checks and notifications about important violations. They argue that the contracts would also help people understand code changes faster, reducing demands on human attention.
Combined views
46.3K
1 Source, first seen 20d ago