code wiki / _hdl_build / nx_team_console.nx

nx_team_console.nx

buildroot/runtime/_hdl_build/nx_team_console.nx

9555 B111 linesdepth 3pulls 6 transitivereach 0 importersview sourcekind tooltopic team
docsdependenciesstructsconstsfunctions

about

nx_team_console.nx -- the LIVING TEAM in action + the UI. Reads the REAL host, runs the polite governor, picks backlog work by priority, escalates a blocker (reaches out for help), demos the CRASH-GATES manual override, and EMITS an HTML dashboard the operator can open to see all work + manually pick tasks (operator: "a ui that i can see all this work and choose manually tasks... in override... outside the polite in a crash the gates method"). Writes knowledge/team_console.html. Exit 0 on 9/9. license_tier: ORIGINAL

dependencies 5 imports · 0 importers

nx_resource_governor.nx nx_sysload.nx nx_work_dispatcher.nx nx_pm_review_log.nx nx_syscalls.nx nx_team_console.nx

imports: nx_resource_governor.nxnx_sysload.nxnx_work_dispatcher.nxnx_pm_review_log.nxnx_syscalls.nx

imported by: nobody (leaf or entry point)

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

main tc_puts sys_write sl_ncpu sys_mmap sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close sl_count_substr sl_loadavg_milli sys_mmap ↻ sys_read_file ↻ sl_freemem_mb sys_mmap ↻ sys_read_file ↻ rg_worker_budget rg_backoff_ms rg_nice rg_memory_ok tc_num sys_mmap ↻ sys_write ↻ sys_mmap ↻ wd_count wd_start_count wd_pick wd_should_escalate pm_open sys_openat_append pm_flag pm_w sys_write ↻ pm_cstr_len sys_close ↻ sys_openat_wr tc_fw sys_write ↻

structs

none

consts

12const K_MAGIC_1900: i64 = 1900
13const K_MAGIC_2250: i64 = 2250
14const K_MAGIC_2900: i64 = 2900
15const K_MAGIC_1050: i64 = 1050
16const K_MAGIC_5000: i64 = 5000

functions

18func tc_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 calls 1: sys_write
19func tc_num(v: i64) -> i64 { let bb: *u8=sys_mmap(28); var m: i64=v; if m<0{m=0-m}; 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);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 calls 2: sys_mmapsys_write
20func tc_fw(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 }
called by 1: main calls 1: sys_write
21func tc_fn(fd: i64, v: i64) -> i64 { let bb: *u8=sys_mmap(28); var m: i64=v; if m<0{m=0-m}; 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);m=m/10;k=k+1}; var i: i64=0; while i<k{bb[i]=t[k-1-i];i=i+1}; sys_write(fd,bb,k); return 0 }
called by 1: main calls 2: sys_mmapsys_write
23func main() -> i64