nx_accommodate.nx
buildroot/runtime/nx_accommodate.nx
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
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
| 17 | const AC_ADHD: i64 = 1 // executive dysfunction -> one-thing-at-a-time + structure |
| 18 | const AC_LOW_ENERGY: i64 = 2 // fatigue / brain fog (sleep apnea) -> reduce load on low days |
| 19 | const AC_LOW_VISION: i64 = 4 // -> large text / high contrast |
| 20 | const AC_PLAIN_LANG: i64 = 8 // -> simplified language |
functions
| 23 | func ac_flag_if(acc: i64, answer: i64, flag: i64) -> i64 |
| 30 | func ac_load_budget(flags: i64, energy: i64, total: i64) -> i64 |
| 45 | func ac_next_step(done: *i64, n: i64) -> i64 called by 1: main |
| 52 | func ac_wants_reminder(flags: i64) -> i64 { if (flags & AC_ADHD) != 0 { return 1 } return 0 } called by 1: main |
| 53 | func ac_wants_plain(flags: i64) -> i64 called by 1: main |
| 59 | func ac_wants_large(flags: i64) -> i64 { if (flags & AC_LOW_VISION) != 0 { return 1 } return 0 } called by 1: main |