code wiki / _hdl_build / nx_transient_pulse.nx
nx_transient_pulse.nx
buildroot/runtime/_hdl_build/nx_transient_pulse.nx
about
nx_transient_pulse.nx -- the CONTINUOUS heartbeat for S-class transient monitoring. Each cycle it forks the
transient SWEEP across a data-driven target list (knowledge/registry/transient_targets.list -- rule #11, NOT
hardcoded, NOT tsv: one elf-path per line, # comments skipped), so the ecosystem accounts for every
component's flakiness AUTOMATICALLY over time, not just when a human runs it. Each cycle's results are
durably recorded by the sweep (seg-store). Sleeps `interval_sec` between cycles.
usage: nx_transient_pulse <interval_sec> <cycles> [runs_per=5] [timeout_ms=8000]
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
| 9 | const TP_MAGIC_8000: i64 = 8000 |
| 10 | const TP_MAGIC_65536: i64 = 65536 |
| 12 | const TP_CONFIG: *u8 = "knowledge/registry/transient_targets.list" |
| 13 | const TP_SWEEP: *u8 = "_offc/nx_transient_sweep.elf" |
functions
| 15 | func tp_w(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 } |
| 16 | func tp_wn(v: i64) -> i64 { var m: i64=v; var k: i64=0; if m<0{tp_w("-" as *u8);m=0-m} let t: *u8=sys_mmap(24); 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 o: *u8=sys_mmap(24); var w: i64=0; var q: i64=k-1; while q>=0{o[w]=t[q];w=w+1;q=q-1} sys_write(1,o,w); return 0 } |
| 17 | func tp_atoi(s: *u8) -> i64 { var v: i64=0; var i: i64=0; while s[i]!=(0 as u8){ if s[i]>=(48 as u8){ if s[i]<=(57 as u8){ v=v*10+((s[i] as i64)-48) } } i=i+1 } return v } called by 1: main |
| 18 | func tp_itoa(v: i64, out: *u8) -> i64 { if v==0 { out[0]=48 as u8; out[1]=0 as u8; return 1 } let t: *u8=sys_mmap(24); var m: i64=v; var k: i64=0; while m>0{t[k]=(48+(m%10)) as u8;m=m/10;k=k+1} var i: i64=0; while i<k{out[i]=t[k-1-i];i=i+1} out[k]=0 as u8; return k } |
| 19 | func tp_read(path: *u8, buf: *u8, cap: i64) -> i64 |
| 26 | func main(argc: i64, argv: *i64) -> i64 |