nx_container_compose.nx
buildroot/runtime/nx_container_compose.nx
about
nx_container_compose.nx -- R2 of the Nishi Container Host: SOVEREIGN multi-service orchestration planner
(the docker-compose / k8s-ordering analog). Reads a service registry (data: NAME:dep1,dep2 per line),
computes a dependency-ordered launch plan via topological sort, and REJECTS cycles + missing deps
(never-brick: an unsatisfiable stack must not "launch"). = the declarative multi-service core that closes the
census orchestration_multi axis. Per-service container PEs come from R1 nx_container_spec_emit (composable).
GATE: real Elder AI stack orders correctly (svcconfig -> sdserver -> genimg); cycle -> rejected; missing-dep
-> rejected. Topo self-checks its own output (deps must precede dependents). NO fake greens. license_tier: ORIGINAL
dependencies 2 imports · 0 importers
imports: nx_syscalls.nxnx_runtime.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
| 10 | const CCP_MAGIC_8192: i64 = 8192 |
| 11 | const CCP_MAGIC_8191: i64 = 8191 |
| 13 | const CCP_TSV: *u8 = "knowledge/status/container_compose.tsv" |
| 14 | const CMAX: i64 = 12 |
| 15 | const CNL: i64 = 24 |
| 16 | const CDEP: i64 = 96 |
functions
| 18 | func cc_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 } |
| 19 | func cc_wn(fd: i64, v: i64) -> i64 |
| 32 | func cc_p(s: *u8) -> i64 { return cc_w(1, s) } |
| 33 | func cc_pn(v: i64) -> i64 { return cc_wn(1, v) } |
| 34 | func cc_read(path: *u8, buf: *u8, cap: i64) -> i64 |
| 47 | func cc_streq(a: *u8, b: *u8) -> i64 called by 1: cc_findname |
| 53 | func cc_bit(k: i64) -> i64 { var b: i64 = 1; var i: i64 = 0; while i < k { b = b * 2; i = i + 1 } return b } called by 1: cc_compose |
| 54 | func cc_findname(names: *u8, count: i64, tok: *u8) -> i64 |
| 61 | func cc_compose(buf: *u8, n: i64, names: *u8, order: *i64) -> i64 |
| 132 | func main() -> i64 |