code wiki / _hdl_build / nx_conductor_pulse.nx

nx_conductor_pulse.nx

buildroot/runtime/_hdl_build/nx_conductor_pulse.nx

3722 B65 linesdepth 2pulls 2 transitivereach 7 importersview sourcekind librarytopic conductor
docsdependenciesstructsconstsfunctions

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

nx_syscalls.nx nx_conductor_pulse.nx nx_conductor_pulse_gate.nx nx_conductor_registry.nx

imports: nx_syscalls.nx

imported by: nx_conductor_pulse_gate.nxnx_conductor_registry.nx

structs

none

consts

13const CP_RUNNER: *u8 = "_offc/nx_sov_build_run.elf"
14const CP_REJECT: i64 = 0
15const CP_ADMIT: i64 = 1

functions

17func 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
21func cp_owner_ok(role: *u8) -> i64
called by 1: main calls 1: cp_streq
31func cp_run_gate(gate: *u8) -> i64
49func 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
53func cp_admit(owner_ok: i64, gate_exit: i64, touches_hw: i64, neverbrick_proven: i64) -> i64
62func cp_fire_governed(admitted: i64, organ_gate: *u8) -> i64
called by 2: maincr_conductor_fire calls 1: cp_run_gate