code wiki / (root) / nx_iot_provision_softap_test.nx

nx_iot_provision_softap_test.nx

buildroot/runtime/nx_iot_provision_softap_test.nx

12846 B240 linesdepth 3pulls 6 transitivereach 0 importersview sourcekind gate/prooftopic iot
docsdependenciesstructsconstsfunctions

about

nx_iot_provision_softap_test.nx -- gate for the auto-pair state machine. Proves the operator's "no more manual re-pair" outcome as PURE LOGIC, off the LAN, plus the never-brick guarantee (CLAUDE.md #26) mechanically: - sealed-enum validity (state / action / event / fail) - NEVER-BRICK: every action in the alphabet is brick-safe and writes no firmware; the firmware classifier is FAIL-SAFE (an out-of-range / future action defaults to "writes firmware" = RED) - init writes a coherent session; default + override + null guard - pairing-SSID filter routes known vendors, rejects unknown APs - HAPPY PATH end-to-end: SCAN -> JOIN -> PUSH_CREDS -> REJOIN -> VERIFY -> ANCHOR -> DONE, asserting action + state + brick-safety each step, landing a stable logical id with NO manual step - terminal states are sticky + idempotent (CLAUDE.md #10) - every FAILURE path: no-AP, unknown-vendor, join/push/rejoin/verify retries-exhausted, anchor-fail -- each with the right sealed reason - bounded retry RECOVERS (transient join failure then success) - defensive: malformed event is a no-op; null session does not crash Grounded in the live fleet: the pairing SSID is the operator's REAL device, TP-LINK_HS210_C209 (the Kasa HS210 found blinking 2026-06-18). expect_exit: 0 license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_syscalls_x86_64.nx nx_iot_provision_softap.nx nx_iot_provision_softap_test.n

imports: nx_syscalls_x86_64.nxnx_iot_provision_softap.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main nx_iot_prov_state_is_valid nx_iot_prov_action_is_vali nx_iot_prov_event_is_valid nx_iot_prov_fail_is_valid nx_iot_prov_action_is_bric nx_iot_prov_action_is_vali ↻ nx_iot_prov_action_writes_ nx_iot_prov_action_writes_ ↻ nx_iot_prov_init nx_iot_prov_state nx_iot_prov_vendor nx_iot_prov_fail_reason nx_iot_prov_attempts nx_iot_prov_logical_id nx_iot_prov_action nx_iot_prov_ev_count nx_iot_prov_is_pairing_ssi nx_iot_classify_by_ssid nx_iot_cls_starts_with nx_iot_cls_strlen nx_iot_prov_step nx_iot_prov_event_is_valid ↻ nx_iot_classify_by_ssid ↻ nx_iot_prov_is_success nx_iot_prov_is_terminal

structs

none

consts

none

functions

31func main() -> i64