Формальная верификация корректности кэша Caffeine

testing

audit-correctness-proof is a Claude Code skill that attempts to formally prove the correctness of all public Caffeine cache methods rather than searching for bugs. For each method — get, put, remove, compute, computeIfAbsent, merge, replace, size, and clear — the skill states a full specification covering preconditions, postconditions, and concurrent behavior promises, then identifies the synchronization protocol and constructs a proof sketch: assume the precondition, locate the critical section, show the postcondition is established within it, and confirm no concurrent operation can invalidate it before the caller observes the result. If the proof cannot be completed at any step, the skill stops and reports exactly which step failed, what additional assumption would be required, and whether the code guarantees that assumption. Gaps in proofs are treated as more valuable than speculative bug reports. The skill is aimed at engineers auditing concurrent data structures and performing formal verification of caching libraries.