code wiki / _hdl_build / nx_engineer_deliver.nx

nx_engineer_deliver.nx

buildroot/runtime/_hdl_build/nx_engineer_deliver.nx

3114 B53 linesdepth 4pulls 5 transitivereach 0 importersview sourcekind tooltopic engineer
docsdependenciesstructsconstsfunctions

about

nx_engineer_deliver.nx -- close the DELIVERY loop for a SECOND section (the engineer) with a DIFFERENT kind of real work, proving the loop generalizes (not researcher-specific). The engineer's accountability includes `verify`; here it does real verify work -- fork/exec a real gate and key on its exit code -- and ONLY if the gate is GREEN does it record an APPLIED delivery in engineerq (real verification completed, not a flag flip). Internal + deterministic + safe (no outward action, unlike the publisher's live ship). Reuses the verified sd_run_gate fork/exec idiom. Sovereign. license_tier: ORIGINAL

dependencies 3 imports · 0 importers

nx_role_store.nx nx_itoa_lib.nx nx_syscalls.nx nx_engineer_deliver.nx

imports: nx_role_store.nxnx_itoa_lib.nxnx_syscalls.nx

imported by: nobody (leaf or entry point)

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

main ed_w sys_write ed_run_gate sys_fork sys_openat_wr sys_dup3 sys_mmap sys_execve sys_exit sys_wait4 ed_n nxi_out nxi_fd sys_mmap ↻ ccz_cat_num sys_write ↻ sys_munmap sys_exit ↻ sys_mmap ↻ ed_cat rs_append rs_lock sys_openat_append sys_flock rs_segcount sys_mmap ↻ ss_manifest ss_manifest_file sys_mmap ↻ ss_cat ss_readall sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close rs_unlock sys_flock ↻ sys_close ↻

structs

none

consts

12const ED_CHAN: *u8 = "engineerq"
13const ED_GATE: *u8 = "nx_pipeline_gate" // a real GREEN capability for the engineer to verify
14const ED_RUNNER: *u8 = "_offc/nx_sov_build_run.elf"

functions

16func ed_w(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 calls 1: sys_write
21func ed_n(v: i64) -> i64 { nxi_out(v); return 0 }
called by 1: main calls 1: nxi_out
22func ed_cat(dst: *u8, off: i64, s: *u8) -> i64 { var o: i64 = off; var i: i64 = 0; while s[i] != (0 as u8) { dst[o] = s[i]; o = o + 1; i = i + 1 } return o }
called by 1: main
25func ed_run_gate(gate: *u8) -> i64
42func main(argc: i64, argv: *i64) -> i64