code wiki / _hdl_build / nx_transient_pulse.nx

nx_transient_pulse.nx

buildroot/runtime/_hdl_build/nx_transient_pulse.nx

4246 B70 linesdepth 2pulls 2 transitivereach 0 importersview sourcekind tooltopic transient
docsdependenciesstructsconstsfunctions

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

nx_syscalls.nx nx_transient_pulse.nx

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

main tp_w sys_write tp_atoi sys_mmap tp_read sys_openat_rd sys_read sys_close tp_itoa sys_mmap ↻ tp_wn tp_w ↻ sys_mmap ↻ sys_write ↻ sys_fork sys_execve sys_exit sys_wait4 sys_sleep_ms sys_mmap ↻ sys_munmap

structs

none

consts

9const TP_MAGIC_8000: i64 = 8000
10const TP_MAGIC_65536: i64 = 65536
12const TP_CONFIG: *u8 = "knowledge/registry/transient_targets.list"
13const TP_SWEEP: *u8 = "_offc/nx_transient_sweep.elf"

functions

15func 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 }
called by 2: tp_wnmain calls 1: sys_write
16func 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 }
called by 1: main calls 3: tp_wsys_mmapsys_write
17func 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
18func 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 }
called by 1: main calls 1: sys_mmap
19func tp_read(path: *u8, buf: *u8, cap: i64) -> i64
called by 1: main calls 3: sys_openat_rdsys_readsys_close
26func main(argc: i64, argv: *i64) -> i64