code wiki / _hdl_build / _engineer_triage_gate_authored.nx
_engineer_triage_gate_authored.nx
buildroot/runtime/_hdl_build/_engineer_triage_gate_authored.nx
about
_engineer_triage_gate_authored.nx -- gate for the ENGINEER triage organ. Drives the
REAL organ elf (/tmp/nx_engineer_triage.sov.elf) over epoch-unique scratch worlds
(fresh names every run: no stale-tail risk from no-TRUNC writes, LM-022):
K1 CLEAN-GREEN green arc -> exit 0, verdict=CLEAN, NO row filed
K2 RED-FILES red arc w/ 2 verdict=FAIL rows -> exit 0, grade=RED logged,
ENGINEER-ROW evidence copied (exit=44 visible), ENG-<arc> row filed
K3 IDEMPOTENT same world again -> still exactly ONE ENG-<arc> row in the queue
K4 ABSENT-FILES arc whose gate log is missing -> grade=ABSENT logged + row filed
K5 LIVE the real conf + real queue + real log -> exit 0 (duty done today)
Markers: ETG-*; final ETGATE row -> knowledge/status/engineer_triage.log
license_tier: ORIGINAL
dependencies 1 imports · 0 importers
imports: nx_syscalls.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| none |
functions
| 13 | func etg_p(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 } |
| 14 | func etg_f(fd: i64, s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(fd,s,n); return 0 } |
| 15 | func etg_n(fd: i64, v: i64) -> i64 { let bb: *u8=sys_mmap(28); var m: i64=v; if m<0{m=0-m; sys_write(fd,"-" as *u8,1)}; let t: *u8=sys_mmap(28); var k: i64=0; if m==0{t[0]=48 as u8;k=1}; while m>0{t[k]=(48+(m%10)) as u8;m=m/10;k=k+1}; var i: i64=0; while i<k{bb[i]=t[k-1-i];i=i+1}; sys_write(fd,bb,k); return 0 } |
| 16 | func etg_len(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n } |
| 17 | func etg_cat(dst: *u8, off: i64, s: *u8) -> i64 { var i: i64 = 0; while s[i] != (0 as u8) { dst[off+i] = s[i]; i = i + 1 } return off + i } |
| 18 | func etg_numcat(dst: *u8, off: i64, v: i64) -> i64 |
| 29 | func etg_mkpath(dst: *u8, epoch: i64, suffix: *u8) -> i64 |
| 36 | func etg_writes(path: *u8, s: *u8) -> i64 |
| 43 | func etg_writeb(path: *u8, buf: *u8, n: i64) -> i64 |
| 51 | func etg_run(mode: i64, conf: *u8, qp: *u8, lg: *u8, outp: *u8) -> i64 |
| 76 | func etg_read(path: *u8, buf: *u8, cap: i64) -> i64 |
| 85 | func etg_count(path: *u8, pat: *u8) -> i64 |
| 100 | func etg_has(path: *u8, pat: *u8) -> i64 |
| 104 | func etg_chk(label: *u8, ok: i64, bad: *i64) -> i64 |
| 110 | func main() -> i64 |