code wiki / (root) / nx_accommodate.nx

nx_accommodate.nx

buildroot/runtime/nx_accommodate.nx

2986 B59 linesdepth 2pulls 2 transitivereach 13 importersview sourcekind library
docsdependenciesstructsconstsfunctions

about

nx_accommodate.nx -- R2 of THE NISHI SITUATION-MANAGEMENT arc: the ACCOMMODATION engine. Operator: "disabilities should disappear in the nishi ecosystem" -- help people with ADHD/ADD, sleep apnea, or other limiters do the average things that are hard for them. The system ADAPTS to the person so the disability stops being a barrier: * ADHD / executive dysfunction -> ONE THING AT A TIME (a wall of tasks causes overwhelm + paralysis); plus external structure (reminders) and plain language, lower activation energy. * Low energy / brain fog (sleep apnea, fatigue) -> REDUCE LOAD on low-energy days; no time pressure; resumable. * Low vision -> large text / high contrast (UI flag). Same plan, ADAPTED presentation: the engine decides HOW MANY plan items to surface and WHICH is next, and emits UI-adaptation flags. Data-driven (#11): accommodation flags + the load policy are DATA, derived from the person's survey answers. Pure integer logic, no floats, no hardware writes -- it adapts the VIEW; the person still chooses. license_tier: ORIGINAL

dependencies 1 imports · 5 importers

nx_syscalls.nx nx_accommodate.nx nx_accommodate_gate.nx nx_climbout.nx nx_climbout_gate.nx nx_finance_web.nx nx_intake_handler_gate.nx

imports: nx_syscalls.nx

imported by: nx_accommodate_gate.nxnx_climbout.nxnx_climbout_gate.nxnx_finance_web.nxnx_intake_handler_gate.nx

structs

none

consts

17const AC_ADHD: i64 = 1 // executive dysfunction -> one-thing-at-a-time + structure
18const AC_LOW_ENERGY: i64 = 2 // fatigue / brain fog (sleep apnea) -> reduce load on low days
19const AC_LOW_VISION: i64 = 4 // -> large text / high contrast
20const AC_PLAIN_LANG: i64 = 8 // -> simplified language

functions

23func ac_flag_if(acc: i64, answer: i64, flag: i64) -> i64
called by 2: mainmain
30func ac_load_budget(flags: i64, energy: i64, total: i64) -> i64
45func ac_next_step(done: *i64, n: i64) -> i64
called by 1: main
52func ac_wants_reminder(flags: i64) -> i64 { if (flags & AC_ADHD) != 0 { return 1 } return 0 }
called by 1: main
53func ac_wants_plain(flags: i64) -> i64
called by 1: main
59func ac_wants_large(flags: i64) -> i64 { if (flags & AC_LOW_VISION) != 0 { return 1 } return 0 }
called by 1: main