Аудит консистентности конкурентной итерации кэша
testing
audit-iteration is a Claude Code skill that analyzes concurrent iteration and view consistency guarantees in a Caffeine cache. Running as a dedicated auditor agent with model invocation disabled, it examines asMap().entrySet/keySet/values() iteration, forEach(), size(), containsValue(), and snapshot operations such as policy().eviction().hottest/coldest(). For each operation, the skill determines the consistency guarantee type — snapshot, weakly consistent, or sequentially consistent — and checks whether retired or dead nodes, garbage-collected keys or values, or expired-but-unremoved entries can be observed. It also evaluates whether concurrent put/remove/compute can cause skipped entries, duplicate returns, or ConcurrentModificationException, and whether wrapping ConcurrentHashMap iterators introduces issues beyond CHM's own behavior. If no findings arise, the skill requires a re-examination of edge cases with explicit justification. Useful for teams validating thread-safety in concurrent caching layers.
- #iteration
- #concurrent-views
- #cache-correctness
- #consistency
- #visibility