Intent-Code Divergence
Medium
- Confidence
- 97% confidence
- Finding
- The helper text in `sanThreshold()` states that dropping below the SAN/5 threshold causes indefinite insanity, but the implemented `sanCheck()` logic says indefinite insanity is triggered by a single loss above a configured threshold or by caller-tracked cumulative daily loss. This inconsistency can mislead users and downstream tooling into applying the wrong game-state transitions, causing persistent state corruption or incorrect adjudication in a rules assistant that advertises investigator state persistence and JSON chaining.
