code wiki / _hdl_build / nx_team_roster.nx

nx_team_roster.nx

buildroot/runtime/_hdl_build/nx_team_roster.nx

8757 B74 linesdepth 2pulls 2 transitivereach 0 importersview sourcekind tooltopic team
docsdependenciesstructsconstsfunctions

about

nx_team_roster.nx -- the LIBRARIAN catalogs the team: who owns what (role umbrellas + folded sub- functionalities), team-resources, and enablement, with a SPECIAL-FORCES constraint (operator: "we dont want a massive team for massive sake but a special forces optimized like team that can get the job done"). The lean rule: a capability area FOLDS as a sub-functionality under an existing role (e.g. Mathematician under Engineer, Archivist under Librarian) unless it's big enough to warrant its own teammate. Emits knowledge/TEAM_ROSTER.md (the output) -- the Librarian gathering all of it. license_tier: ORIGINAL

dependencies 1 imports · 0 importers

nx_syscalls.nx nx_team_roster.nx

imports: nx_syscalls.nx

imported by: nobody (leaf or entry point)

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

main sys_openat_wr tr_w sys_write sys_close sys_mmap tr_role_health tr_fold_or_split tr_special_forces_ok sys_openat_rd sys_read sys_write ↻ sys_exit

structs

none

consts

11const TR_LEAN: i64 = 0
12const TR_OVERLOADED: i64 = 1 // owns too much -> consider a folded sub-functionality, or (if huge) split
13const TR_UNDERUSED: i64 = 2 // owns too little -> fold it under a sibling role
22const TR_FOLD: i64 = 1
23const TR_SPLIT: i64 = 2

functions

15func tr_role_health(cap_count: i64, min_caps: i64, max_caps: i64) -> i64
called by 1: main
24func tr_fold_or_split(functionality_caps: i64, teammate_threshold: i64) -> i64
called by 1: main
30func tr_special_forces_ok(nroles: i64, max_roles: i64) -> i64 { if nroles <= max_roles { return 1 } return 0 }
called by 1: main
32func tr_w(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
34func main() -> i64