Project: Covert Cubicles Build Phase 2 / 7

MODULE 05 / 31 · LAYER 1 · SM_GAME State Manager

The single source of truth. All mutable game state lives in a private closure; reads return clones, writes go through named methods, every change emits an audit entry.

DEPENDENCIES: None  \u00b7  Used by most downstream modules
Pending

Automated Assertions

#AssertionResultDetail

Interactive Workbench

Drive the State Manager by hand. Use the controls on the right; the panels on the left and the audit trail at the bottom update in real time. Errors raised by the module surface as a transient toast in the bottom-right corner.

Live State (deep-cloned reads)
Session
Condition Variant (RQ1b)
Insider Assigned
Current Phase
Baseline Values (PA / OS / EI)
Baseline Consistency
Peer States
Decision History (most recent 5)
Controls
Lifecycle
Player baseline (write-once)
Phase progression
Peer state
Decision history
Audit Trail

API Surface — Manual Verification

Open DevTools and try the calls below.