TryUse Step to move from the unguarded firmware send to the startup-only test and find the saved setting that startup reads.
Tracing the Optional Analytics Guard
Guard rehearsal
Screen-only failure
Fresh setup → Firmware send. All other send prerequisites are met.
Current setting
Analytics Off
Value used by the route
No guard
Guard decision
Unguarded
Action observed
Event sent
Test result: Fail
At fresh setup analytics is Off on the screen. The firmware send has no guard, so the test observes an event.
Simulated test — Startup-only check
Deliberate opt-in → Save Analytics On → Restart → Startup reads saved On.
Current setting
Analytics On
Value used by the route
Startup snapshot On
Guard decision
Allowed
Action observed
Event sent
Baseline retry complete. Save a later eligible queued attempt for both replays. Other send prerequisites are met.
The user opts in and restarts the device. Startup reads the saved On choice, and an eligible retry is queued while analytics is still On.
Replay after turning analytics Off
User switches analytics Off → Saved queued attempt → Read startup snapshot.
Current setting
Analytics Off
Value used by the route
Startup snapshot On
Guard decision
Allowed
Action observed
Event sent
Test result: Fail
The retry uses the startup snapshot after the user turns analytics Off. The test still observes an event.
Replay with the guard at the send
Replay the identical queued attempt with the same prerequisites. Startup snapshot stays On. The send guard reads the current setting.
Current setting
Analytics Off
Value used by the route
Current Off
Guard decision
Blocked
Action observed
No event
Test result: Pass
Example routes
Firmware send → Guard at send
Background job → Guard at send
Retry → Guard at send
Support tool → Guard at send
Export · Outside this scenario. This export cannot send the optional event. An export that can perform the action requires the same guard and test.
With the guard at the send, the same retry reads the current Off choice and is blocked. The test observes no event.
Test each route independently
Example routes
Run each fixture independently with all other send prerequisites met.
Keep the default Off at fresh setup, opt in and then switch Off for the withdrawal test, and deliberately switch On for the opt-in test.
Firmware send
Invoke a firmware event
Fresh setup
Expected Off → Blocked → No event
Observed Off → Blocked → No event
After turning off
Expected Off → Blocked → No event
Observed Off → Blocked → No event
After opt-in
Expected On → Allowed → Event sent
Observed On → Allowed → Event sent
Background job
Trigger a scheduled job
Fresh setup
Expected Off → Blocked → No event
Observed Off → Blocked → No event
After turning off
Expected Off → Blocked → No event
Observed Off → Blocked → No event
After opt-in
Expected On → Allowed → Event sent
Observed On → Allowed → Event sent
Retry
Run a queued retry
Fresh setup
Expected Off → Blocked → No event
Observed Off → Blocked → No event
After turning off
Expected Off → Blocked → No event
Observed Off → Blocked → No event
After opt-in
Expected On → Allowed → Event sent
Observed On → Allowed → Event sent
Support tool
Invoke a support-triggered send
Fresh setup
Expected Off → Blocked → No event
Observed Off → Blocked → No event
After turning off
Expected Off → Blocked → No event
Observed Off → Blocked → No event
After opt-in
Expected On → Allowed → Event sent
Observed On → Allowed → Event sent
Export · Outside this scenario. This export cannot send the optional event. An export that can perform the action requires the same guard and test.
Replay with the stale guard
Expected: Off → Blocked → No event.
Current setting
Analytics Off
Value used by the route
Startup snapshot On
Guard decision
Allowed
Action observed
Event sent
Comparison: Fail
Exercise each applicable route independently and inspect what the guard reads, what it decides, and whether the test sees an event.
At fresh setup analytics is Off on the screen. The firmware send has no guard, so the test observes an event.
ObserveBetween frames 3 and 4, Analytics stays Off. The value used changes from Startup snapshot On to Current Off, and the result changes from Allowed with Event sent to Blocked with No event.
ExplainThe startup-only check still allows the retry in frame 3 because it uses the older On choice. Moving the guard to the send makes that same retry read the current Off choice and blocks the event.
Technical boundaries. The two retry replays use the same queued attempt and assume all other send prerequisites are met. The final route checks are independent fixtures. The example export is outside the scenario because it cannot send the optional event.