code wiki / _hdl_build / nx_conductor_tick.nx
nx_conductor_tick.nx
buildroot/runtime/_hdl_build/nx_conductor_tick.nx
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
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
structs
| none |
consts
| 9 | const TICK_STATE: *u8 = "knowledge/registry/conductor_tick" |
| 10 | const CADENCE_SEC: i64 = 2592000 // ~30 days (monthly); data-driven -- tune for "or other cadence" |
functions
| 12 | func 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 |
| 13 | func 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 |
| 16 | func tk_read_last() -> i64 |
| 31 | func tk_write_last(epoch: i64) -> i64 |
| 46 | func main() -> i64 |