Project: Covert Cubicles Build Phase 3 / 7

MODULE 14 / 31 · LAYER 3 · LOGIC_EVENTS Narrative Event Firing

Consumes the elevation signal from LOGIC_Scrutiny and fires narrative events. Idempotent per (eventId, phase). The final module of Phase 3.

DEPENDENCIES: DATA_Peers, SM_Game, PM_Phase, LOGIC_Scrutiny
Pending

Critical Finding — observed_exchange Currently Unreachable

Codebook bug surfaced by automated test
The observed_exchange event requires aboveBaseline >= 2 in phases 3 or 4. But Phase 3 baseline is 3 with ceiling 4 (max elevation 1) and Phase 4 baseline is 4 with ceiling 4 (max elevation 0). The event therefore cannot fire under current scrutiny mechanics. This is a real codebook issue worth flagging in the next ADR re-issue (proposed DRAFT ADR-030: lower the threshold to 1, restrict scope differently, or reconsider the event\u2019s role).

Automated Assertions

#AssertionResultDetail

Interactive Workbench — Event Firing Simulator

Drive scrutiny up (per phase) and click checkAndFire() to evaluate triggers. The timeline shows scrutiny over time with events plotted as coloured markers at the moment they fired.

Controls
Session
Drive scrutiny
Event firing
Quick simulation
Defensive (should fail)
Scrutiny & events timeline
baseline scrutiny level auditor_knock surprise_meeting observed_exchange
Event log (cumulative)
No events fired yet.
Event codebook (DRAFT ADR-026)

Three events. Each has a trigger condition (over the elevation signal) and a phase scope. Both must be satisfied for the event to fire.

API Surface — Manual Verification

Open DevTools and try the calls below.