code wiki / _hdl_build / nx_conductor_tick.nx

nx_conductor_tick.nx

buildroot/runtime/_hdl_build/nx_conductor_tick.nx

3786 B68 linesdepth 5pulls 6 transitivereach 0 importersview sourcekind tooltopic conductor
docsdependenciesstructsconstsfunctions

about

nx_conductor_tick.nx -- the conductor's CADENCE TICK for the self-improving researcher loop. One tick: read the last-fire time (knowledge/registry/conductor_tick, a sovereign epoch), and if the cadence is DUE (now - last >= CADENCE_SEC, or never fired) fire nx_research_cycle THROUGH the conductor's governed path (cr_conductor_fire: registered + RACI-owned + gate-green + never-brick), then record the fire time. If not due, it reports the time remaining and does nothing. This is the cadence ENGINE; a durable supervisor (or the operator) invokes the tick periodically -> the loop runs monthly, autonomously, governed. Nishi-native, no shell. expect_exit: 0 license_tier: ORIGINAL

dependencies 1 imports · 0 importers

nx_conductor_registry.nx nx_conductor_tick.nx

imports: nx_conductor_registry.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main tk_puts sys_now_realtime_sec sys_mmap sys_clock_gettime_real tk_read_last sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close tk_num cr_conductor_fire cr_is_governed ss_open ss_open2 sys_mmap ↻ ss_manifest_dyn ss_manifest_file_dyn ss_cat ss_loadfile sys_map_file ss_readall ss_load_aux2 sys_mmap ↻ ss_cat ↻ ss_loadfile ↻ ss_r32 sys_munmap ssl_total_keys ss_r32 ↻ ssl_pow2 ssl_build ss_r32 ↻ ssl_hash_entry ssl_key_eq ss_r32 ↻ ssl_lookup ssl_hash_entry ↻

structs

none

consts

9const TICK_STATE: *u8 = "knowledge/registry/conductor_tick"
10const CADENCE_SEC: i64 = 2592000 // ~30 days (monthly); data-driven -- tune for "or other cadence"

functions

12func tk_puts(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 1: main
13func tk_num(v: i64) -> i64 { let bb: *u8=sys_mmap(28); var m: i64=v; if m<0{m=0-m;sys_write(1,"-" as *u8,1)} let t: *u8=sys_mmap(28); var k: i64=0; if m==0{t[0]=48;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(1,bb,k); return 0 }
called by 1: main
16func tk_read_last() -> i64
called by 1: main calls 1: sys_read_file
31func tk_write_last(epoch: i64) -> i64
called by 1: main calls 1: sys_openat_wr
46func main() -> i64