code wiki / _hdl_build / nx_crew_council.nx

nx_crew_council.nx

buildroot/runtime/_hdl_build/nx_crew_council.nx

2502 B51 linesdepth 2pulls 2 transitivereach 23 importersview sourcekind librarytopic crew
docsdependenciesstructsconstsfunctions

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

nx_syscalls.nx nx_crew_council.nx nx_asm_selfheal_test.nx nx_codegen_improve_loop.nx nx_conductor_council_test.nx nx_cost_federation_test.nx nx_crew_council_test.nx nx_doctor_datadriven_test.nx nx_doctor_fix_test.nx nx_doctor_heal_test.nx nx_germinate_test.nx nx_optimize_suite_test.nx

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

20struct CrewAction

consts

16const CC_ACT: i64 = 0
17const CC_ESCALATE: i64 = 1
18const CC_DENY: i64 = 2

functions

29func 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 }
32func cc_council(a: *CrewAction, why: *i64) -> i64
42func cc_set(a: *CrewAction, nm: *u8, v: i64, n: i64, w: i64, s: i64, r: i64) -> i64
47func cc_verdict_name(vd: i64) -> *u8