code wiki / _hdl_build / nx_pulse_daemon.nx
nx_pulse_daemon.nx
buildroot/runtime/_hdl_build/nx_pulse_daemon.nx
about
nx_pulse_daemon.nx -- the CONDUCTOR'S LOOP, armed: re-runs nx_team_pulse on a schedule so every
role's evidence (triage, prove-all, security, examiner, scorecard) refreshes WITHOUT a human or
Claude asking. This is the unit the scorecard's "run on the loop" race-to-exceed names, made real.
- interval from knowledge/status/pulse_daemon.conf (I row; data-driven, no magic numbers)
- each beat: fork+exec the DURABLE runner _offc/nx_sov_build_run.elf nx_team_pulse
(runner rebuilds from settled source -> a /tmp wipe self-heals on the next beat)
- beat output appended to knowledge/status/pulse_daemon.out; one DAEMON-BEAT line per beat
to knowledge/status/pulse_daemon.log (epoch + pulse rc) = the durable heartbeat trend
- self-daemonizes (fork, parent exits, child setsid) so any caller returns immediately
- duplicate guard via knowledge/status/pulse_daemon.pid + /proc/<pid>/cmdline check
Sovereign (syscalls only, no .sh). Run from nxc2 root. license_tier: ORIGINAL
dependencies 2 imports · 0 importers
imports: nx_syscalls.nxnx_itoa_lib.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
| 14 | const K_MAGIC_4096: i64 = 4096 |
| 15 | const K_MAGIC_4080: i64 = 4080 |
functions
| 16 | func _p(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 } |
| 21 | func _pn(v: i64) -> i64 { nxi_out(v); return 0 } |
| 22 | func _fp(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 } |
| 27 | func _fn(fd: i64, v: i64) -> i64 { nxi_fd(fd, v); return 0 } |
| 28 | func pd_len(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n } called by 1: pd_contains |
| 29 | func pd_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 } called by 1: pd_already_running |
| 30 | func pd_read_all(path: *u8, buf: *u8, cap: i64) -> i64 |
| 39 | func pd_contains(hay: *u8, n: i64, pat: *u8) -> i64 |
| 53 | func pd_sleep(secs: i64) -> i64 |
| 60 | func pd_interval() -> i64 |
| 85 | func pd_already_running() -> i64 |
| 101 | func pd_beat() -> i64 |
| 118 | func main() -> i64 |