code wiki / _hdl_build / nx_self_heal_conductor.nx
nx_self_heal_conductor.nx
buildroot/runtime/_hdl_build/nx_self_heal_conductor.nx
about
nx_self_heal_conductor.nx -- the CONDUCTOR's autonomous self-heal BEAT. The Conductor
ORCHESTRATES the organs into one Warden-gated tick; it does NOT itself fix, verify, or
admit (RACI stays clean). One beat:
WARDEN gate the I/O -- candidate must be an additive CREATE; the original source
MUST be overwrite-DENIED (the protection we rely on)
ENGINEER detect+capture -- eng_compile_diag finds the failure + its diagnostic
DOCTOR diagnose+fix -- learns the token, writes the healed CANDIDATE (new file)
ENGINEER verify -- eng_compile re-verifies the candidate (separate organ)
COUNCIL admit -- cc_council ACTs only on the Engineer's verdict + Warden safety
The healed candidate is ALWAYS a new additive path; the protected .nx source is never
clobbered. This is the callable unit the live autonomous tick drives. license_tier: ORIGINAL
dependencies 4 imports · 2 importers
imports: nx_engineer_crash.nxnx_doctor_fix.nxnx_warden_paths.nxnx_crew_council.nx
imported by: nx_conductor_recall.nxnx_self_heal_conductor_test.nx
structs
| none |
consts
| 18 | const COND_CLEAN: i64 = 100 // original already compiles -- nothing to heal |
| 19 | const COND_UNFIXABLE: i64 = 101 // failed, but not a class the Doctor fixes -> give up |
functions
| 24 | func cond_heal_beat(compiler: *u8, orig: *u8, candidate: *u8, out: *i64) -> i64 |
| 58 | func cond_beat_name(v: i64) -> *u8 |