code wiki / (root) / nx_perf_rehearsal.nx

nx_perf_rehearsal.nx

buildroot/runtime/nx_perf_rehearsal.nx

5068 B68 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind tooltopic perf
docsdependenciesstructsconstsfunctions

about

nx_perf_rehearsal.nx -- THE MISSING FEEDBACK EDGE (operator 2026-06-23: "our analytics becomes a feedback loop of s class exceed improving like the nishi conductor would do with the nishi orchestra"). The rehearsal loop EXISTS but is CORRECTNESS-ONLY: nx_conductor_notes names the weakest section from RED gate arcs (examiner_arcs.log); nx_woodshed drills a module until it builds clean. A capability that is GREEN-BUT-SLOW (passes gates, LOSES the race on latency) is INVISIBLE to the teacher. This is the adapter that feeds PERFORMANCE/RACE analytics (nx_apm_sweep latency, nx_diora_leaderboard BEHIND) INTO the conductor's weakest-section call -- so the team drills what LOSES RACES, not just what is broken. COMPOSES the conductor-notes idiom (extended gate-red -> perf-behind); does NOT duplicate it. No new monitor/census. Routes a BEHIND to a sectional drill (the trainer); an EXCEED bumps readiness. license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_itoa_lib.nx nx_perf_rehearsal.nx

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

main pr_p sys_write sys_openat_append pr_note sys_mmap pr_cat pr_catn sys_mmap ↻ sys_write ↻ sys_close pr_n nxi_out nxi_fd sys_mmap ↻ ccz_cat_num sys_write ↻ sys_munmap sys_exit

structs

none

consts

13const PR_MAGIC_1105: i64 = 1105
15const PR_LOG: *u8 = "knowledge/status/perf_rehearsal.log"

functions

17func pr_p(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 calls 1: sys_write
22func pr_n(v: i64) -> i64 { nxi_out(v); return 0 }
called by 1: main calls 1: nxi_out
23func pr_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: pr_note
24func pr_catn(dst: *u8, off: i64, v: i64) -> i64 { var m: i64=v; var o: i64=off; if m<0{dst[o]=45 as u8;o=o+1;m=0-m} let t: *u8=sys_mmap(24); var k: i64=0; 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 i: i64=0; while i<k{dst[o+i]=t[k-1-i];i=i+1} return o+k }
called by 1: pr_note calls 1: sys_mmap
29func pr_note(cap: *u8, nishi: i64, incumbent: i64, lower_better: i64, lfd: i64) -> i64
called by 1: main calls 4: sys_mmappr_catpr_catnsys_write
43func main() -> i64