#!/usr/bin/env python3 """openScale — STATE-CHANGE lane. This lane OWNS `checked` / `selected` / `focused` transitions and their app-authored consequence, page-level state machines, conditional enable/disable, and SETTINGS/mode persistence. Every test reads the state BEFORE from a fresh ui(), drives the change through the real user path, reads AFTER from a fresh ui() (re-locating the node — the old dict is stale), and asserts the flip PLUS its consequence where one is observable. GROUND TRUTH (all OBSERVED on the running original on this emulator): * Compose switches render as `View checkable="true" checked=... clickable=true`; the row LABEL is a SEPARATE `View cd="