code wiki / (root) / nx_nishios_mode.nx

nx_nishios_mode.nx

buildroot/runtime/nx_nishios_mode.nx

4855 B69 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind tooltopic nishios
docsdependenciesstructsconstsfunctions

about

nx_nishios_mode.nx -- NishiOS DEV/USER MODE: Claude is OPTIONAL, the sovereign ecosystem stands alone. Operator architecture: the OS boots into USER MODE (pure Nishi ecosystem, NO Claude) or DEV MODE (Nishi + an OPTIONAL Claude assist channel = the file-protocol nx_claude_bridge, for live-testing improvements as we work). The non-negotiable property: Claude must be PURELY ADDITIVE -- every sovereign capability works IDENTICALLY with or without Claude, and USER MODE has ZERO Claude dependency. This gate proves it with a capability census across both modes. KAT: user mode runs the full sovereign ecosystem with Claude OFF (0 caps require Claude); the sovereign capability set is IDENTICAL in user and dev mode (Claude gates nothing); dev mode merely ADDS the Claude channel; default boot mode = USER (sovereign-first, Claude opt-in). A NEG CONTROL proves the gate would FAIL if any sovereign cap secretly required Claude. No hw writes (Rule 26). expect_exit: 0 license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_itoa_lib.nx nx_nishios_mode.nx

imports: nx_syscalls.nxnx_itoa_lib.nx

imported by: nobody (leaf or entry point)

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

main md_puts sys_write sys_mmap avail md_num nxi_out nxi_fd sys_mmap ↻ ccz_cat_num sys_write ↻ sys_munmap sys_exit

structs

none

consts

none

functions

15func md_puts(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 }
called by 1: main calls 1: sys_write
20func md_num(v: i64) -> i64 { nxi_out(v); return 0 }
called by 1: main calls 1: nxi_out
24func avail(req_claude: *u8, n: i64, claude_on: i64) -> i64
called by 1: main
31func main() -> i64