code wiki / _hdl_build / nx_trajscan_beat.nx
nx_trajscan_beat.nx
buildroot/runtime/_hdl_build/nx_trajscan_beat.nx
about
nx_trajscan_beat.nx -- no-arg BEAT for the scheduler (quality-ruler R3 standing gauge, 2026-07-29):
scan the live actlog via nx_trajscan (composed through tr_run_capture -- zero detector logic
duplicated; the 7/7-gated organ stays the ONE definition) and APPEND the one-line envelope to the
trend evidence log. A beat with no evidence line is a claim -- this one writes its line every run,
including on failure (BEAT-FAIL lines are evidence too). Scheduler contract: the knowledge/store/clockjobs- plane (the ONE tickless clock; the sched/ registry was retired 2026-08-03, debt 1785792856)
fork+execs the elf with NO args; argv[1]=journal argv[2]=trendfile override the defaults for testing.
trend line: <epoch>\t<envelope-json-or-BEAT-FAIL>\n (O_APPEND, conflict-free)
license_tier: ORIGINAL No hw writes (Rule 26). expect_exit: 0
dependencies 3 imports · 0 importers
imports: nx_sovjson_lib.nxnx_syscalls.nxnx_tool_run.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
| 13 | const TB_OUT: i64 = 16384 |
| 14 | const TB_LINE: i64 = 20480 |
| 15 | const TB_MODE: i64 = 420 |
functions
| 17 | func tb_puts(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 } |
| 18 | func tb_werr(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(2, s, n); return 0 } |
| 19 | func tb_append(path: *u8, buf: *u8, n: i64) -> i64 |
| 27 | func main(argc: i64, argv: *i64) -> i64 |