code wiki / _hdl_build / nx_team_roster.nx
nx_team_roster.nx
buildroot/runtime/_hdl_build/nx_team_roster.nx
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
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
structs
| none |
consts
| 11 | const TR_LEAN: i64 = 0 |
| 12 | const TR_OVERLOADED: i64 = 1 // owns too much -> consider a folded sub-functionality, or (if huge) split |
| 13 | const TR_UNDERUSED: i64 = 2 // owns too little -> fold it under a sibling role |
| 22 | const TR_FOLD: i64 = 1 |
| 23 | const TR_SPLIT: i64 = 2 |
functions
| 15 | func tr_role_health(cap_count: i64, min_caps: i64, max_caps: i64) -> i64 called by 1: main |
| 24 | func tr_fold_or_split(functionality_caps: i64, teammate_threshold: i64) -> i64 called by 1: main |
| 30 | func tr_special_forces_ok(nroles: i64, max_roles: i64) -> i64 { if nroles <= max_roles { return 1 } return 0 } called by 1: main |
| 32 | func 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 } |
| 34 | func main() -> i64 |