nx_deploycover_gate.nx
buildroot/runtime/nx_deploycover_gate.nx
about
nx_deploycover_gate.nx -- WHAT FRACTION OF THE RUNNING FLEET CAN ACTUALLY BE DEPLOYED?
THE QUESTION NOTHING ELSE ASKS. The ecosystem has gates for whether an organ WORKS, and a control
plane for BUILDING and DEPLOYING one. Nothing measures whether the deploy plane COVERS the fleet --
so a service can run for months with no sanctioned way to update it, and nothing says a word.
MEASURED 2026-07-31 on this host: 15 services running, 9 rows in deploy_targets.conf. A fix to one of
the uncovered 6+ CANNOT BE LANDED over the API at all. That is the structural root of the recurring
SOURCE-EDITED-BUT-NOT-DEPLOYED state seen across three lanes today: not discipline, COVERAGE.
Worse, /api/inventory ADVERTISES nx_hub_gw.elf and nx_torrent_gw.elf as managed deployables while
deploy_targets.conf -- the allowlist /api/deploy actually reads -- contains neither. The declared
coverage and the real coverage disagree, and only the smaller one is true.
BOTH DIRECTIONS, deliberately (this is the fleet-drift discipline: manifest-to-reality AND
reality-to-manifest):
RUNNING-NOT-DEPLOYABLE -- a live service with no sanctioned update path. The dangerous direction:
its fixes must go around the health-checked, auto-rollback deploy path.
DEPLOYABLE-NOT-RUNNING -- an allowlist row for something not up. Usually benign (oneshots,
toolchain), but a row pointing at nothing is also how an allowlist rots.
ADVISORY BY DESIGN (exit 0 unless the SCAN fails). A low coverage number is a backlog, not a reason
to fail every build. What DOES fail: reading zero rows or zero services, because an instrument that
measured nothing must never render as a clean fleet.
license_tier: ORIGINAL No hw writes (Rule 26). expect_exit: 0
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
| 28 | const DC_MAXN: i64 = 256 |
| 29 | const DC_LOG: *u8 = "knowledge/status/deploycover_gate.log" |
| 30 | const DC_MODE: i64 = 420 |
| 31 | const DC_NAMELEN: i64 = 64 |
functions
| 33 | func dc_len(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n } |
| 34 | func dc_p(s: *u8) -> i64 { let n: i64 = dc_len(s); sys_write(1, s, n); return 0 } |
| 35 | func dc_wf(fd: i64, s: *u8) -> i64 { let n: i64 = dc_len(s); sys_write(fd, s, n); return 0 } |
| 36 | func dc_pnf(fd: i64, v: i64) -> i64 |
| 47 | func dc_pn(v: i64) -> i64 |
| 59 | func dc_slurp(path: *u8, buf: *u8, cap: i64) -> i64 |
| 69 | func dc_slot(arr: *u8, i: i64) -> *u8 { return ((arr as i64) + i * DC_NAMELEN) as *u8 } |
| 71 | func dc_put(arr: *u8, cnt: i64, src: *u8, s: i64, e: i64) -> i64 |
| 83 | func dc_eq(a: *u8, b: *u8) -> i64 called by 1: dc_has |
| 93 | func dc_has(arr: *u8, cnt: i64, name: *u8) -> i64 |
| 103 | func dc_basekey(src: *u8, s: i64, e: i64, out: *u8) -> i64 called by 1: main |
| 123 | func main() -> i64 |