code wiki / _hdl_build / nx_crew_council.nx
nx_crew_council.nx
buildroot/runtime/_hdl_build/nx_crew_council.nx
about
nx_crew_council.nx -- the crew's 3 -> 2 -> 1 checks-and-balances council
(LIBRARY). The separation-of-powers that gates every autonomous action so the
loop self-builds SAFELY. Consumed by nx_crew_council_test (proves the logic)
and nx_conductor_council_test (runs it as a LIVE governed tick).
TIER 3 -- independent panel, ALL must pass:
ENGINEER (proven 1:1?) + GENEALOGIST (non-dup/additive?) + RACING (worth?)
TIER 2 -- governance review:
WARDEN (additive-only? delete/overwrite-src = HARD DENY) + ARCHIVIST (recorded?)
TIER 1 -- final authority:
CONDUCTOR commits if 3+2 clear, else escalates to the operator.
license_tier: ORIGINAL
dependencies 1 imports · 20 importers
diagram shows first 10 each side; +0 more imports, +10 more importers in the complete lists below.
imports: nx_syscalls.nx
imported by: nx_asm_selfheal_test.nxnx_codegen_improve_loop.nxnx_conductor_council_test.nxnx_cost_federation_test.nxnx_crew_council_test.nxnx_doctor_datadriven_test.nxnx_doctor_fix_test.nxnx_doctor_heal_test.nxnx_germinate_test.nxnx_optimize_suite_test.nxnx_regalloc_absorb_governed_test.nxnx_research_ingest_test.nxnx_self_build_cycle_test.nxnx_self_heal_conductor.nxnx_self_repair_cycle_test.nxnx_superopt_govern_test.nxnx_superopt_governed_test.nxnx_team_selfdirect_test.nxnx_team_selfsufficient_test.nxnx_warden_paths_test.nx
structs
| 20 | struct CrewAction |
consts
| 16 | const CC_ACT: i64 = 0 |
| 17 | const CC_ESCALATE: i64 = 1 |
| 18 | const CC_DENY: i64 = 2 |
functions
| 29 | func cc_puts(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 } |
| 32 | func cc_council(a: *CrewAction, why: *i64) -> i64 |
| 42 | func cc_set(a: *CrewAction, nm: *u8, v: i64, n: i64, w: i64, s: i64, r: i64) -> i64 |
| 47 | func cc_verdict_name(vd: i64) -> *u8 |