code wiki / _hdl_build / nx_doctor_fix_test.nx

nx_doctor_fix_test.nx

buildroot/runtime/_hdl_build/nx_doctor_fix_test.nx

3482 B61 linesdepth 3pulls 5 transitivereach 0 importersview sourcekind gate/prooftopic doctor
docsdependenciesstructsconstsfunctions

about

nx_doctor_fix_test.nx -- autonomous self-heal with CLEAN RACI (roles non-blurred): ENGINEER (R: detect/verify) eng_compile -> sees the compile failure DOCTOR (R: fix) doc_heal -> renames the reserved identifier ENGINEER (R: verify) eng_compile -> re-verifies the healed candidate WARDEN/COUNCIL (A: govern) cc_council -> ACTs only on the Engineer's verdict The fixer (Doctor) never verifies or blesses its own work -- that is the Engineer's and the Council's job. This is the crew's checks-and-balances, not one organ doing everything. Known answer: original FAILS, healed COMPILES, council ACT -> exit 0.

dependencies 3 imports · 0 importers

nx_doctor_fix.nx nx_engineer_crash.nx nx_crew_council.nx nx_doctor_fix_test.nx

imports: nx_doctor_fix.nxnx_engineer_crash.nxnx_crew_council.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main df_puts eng_compile sys_mmap sys_fork sys_openat_wr sys_dup3 sys_close sys_execve sys_exit sys_wait4 sys_openat_rd sys_read doc_heal sys_mmap ↻ sys_read_file sys_openat_rd ↻ sys_lseek sys_mmap ↻ sys_read ↻ sys_close ↻ doc_rename doc_slen doc_is_ic doc_write_file sys_openat_wr ↻ sys_write sys_close ↻ df_num cc_set cc_council cc_verdict_name

structs

none

consts

none

functions

14func df_puts(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 }
called by 1: main
15func df_num(v: i64) -> i64
called by 1: main
24func main() -> i64