code wiki / _hdl_build / nx_conductor_pulse.nx
nx_conductor_pulse.nx
buildroot/runtime/_hdl_build/nx_conductor_pulse.nx
about
nx_conductor_pulse.nx -- GOVERNED pulse/daemon admission through the Nishi CONDUCTOR (operator: "pulses and
daemons and all that go through the nishi conductor not just us doing whatever like we were with publishing
till nishi publisher"). Mirrors the PUBLISHER's governance (submit -> approve -> run_governed) but for
RECURRING / LONG-RUNNING work: a pulse or daemon may NOT be spawned ad-hoc -- it must be ADMITTED by the
conductor, and only an admitted one may FIRE. The admission bar (ALL required):
(1) OWNED -- an Accountable role owns it (RACI; the conductor routes work to owners, nx_harmony_conduct)
(2) GATE-GREEN -- the organ it runs passes its gate (#7 test-before-ship: never pulse a broken organ)
(3) NEVER-BRICK -- a daemon touching hardware state is REJECTED unless never-brick is PROVEN (#26)
cp_fire_governed FIRES only an admitted pulse => "nothing pulses except through the conductor" (the enforcement,
the analog of nothing shipping except through the publisher). Sovereign. license_tier: ORIGINAL
dependencies 1 imports · 2 importers
imports: nx_syscalls.nx
imported by: nx_conductor_pulse_gate.nxnx_conductor_registry.nx
structs
| none |
consts
| 13 | const CP_RUNNER: *u8 = "_offc/nx_sov_build_run.elf" |
| 14 | const CP_REJECT: i64 = 0 |
| 15 | const CP_ADMIT: i64 = 1 |
functions
| 17 | func cp_streq(a: *u8, b: *u8) -> i64 { var i: i64=0; while a[i]!=(0 as u8) { if a[i]!=b[i] { return 0 } i=i+1 } if b[i]!=(0 as u8) { return 0 } return 1 } called by 1: cp_owner_ok |
| 21 | func cp_owner_ok(role: *u8) -> i64 |
| 31 | func cp_run_gate(gate: *u8) -> i64 called by 4: cp_fire_governedmaincr_conductor_firemain calls 7: sys_forksys_openat_wrsys_dup3sys_mmapsys_execvesys_exit+1 |
| 49 | func cp_neverbrick_ok(touches_hw: i64, neverbrick_proven: i64) -> i64 { if touches_hw==1 { if neverbrick_proven==0 { return 0 } } return 1 } called by 1: cp_admit |
| 53 | func cp_admit(owner_ok: i64, gate_exit: i64, touches_hw: i64, neverbrick_proven: i64) -> i64 |
| 62 | func cp_fire_governed(admitted: i64, organ_gate: *u8) -> i64 |