nx_mcp_coverage.nx
buildroot/runtime/nx_mcp_coverage.nx
about
nx_mcp_coverage.nx -- THE STANDING MCP/API EXPOSURE COVERAGE ORGAN (operator 2026-07-16: make
MCP+API+workstream+agent exposure a standing SOTA discipline; "small sharp tools" compose INTO
curated exposed capabilities; full coverage of the logical areas, NOT blind wrapping; what we
SHOULD expose vs not). Reads knowledge/mcp/coverage_map.txt (logical areas x should-tier x live
state), grades coverage, EMITS the WIRE queue (built-not-exposed, ready) + the BUILD queue (true
gaps) for the forge/workstreams to consume, and ENFORCES the exposure policy: a PRIMITIVE
(std_/fc_/sys_) or a GATE/TEST (_gate/_test/_smoke) marked as an exposed capability is a
POLICY-VIOLATION (the anti-blind-wrapping tooth) -- returns the violation count (0 = clean).
usage: nx_mcp_coverage [mapfile] exit 0 (measurement; count is the deliverable)
DATA SUBSTRATE (no-TSV law, 2026-07-16): the map lives in the SOVEREIGN store
knowledge/store/mcp_coverage key "map" (write/refresh via `nx_sov put-file`); the default
(no argv) reads THE STORE. An explicit mapfile arg still reads a file (gate negctl fixtures +
the transitional flat co-edit surface -- which is now a DERIVED view, store = SSOT).
license_tier: ORIGINAL expect_exit: 0
dependencies 2 imports · 1 importers
imports: nx_forge_ctx.nxnx_sov_ledger.nx
imported by: nx_mcp_coverage_gate.nx
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| 17 | const K_MAGIC_262144: i64 = 262144 |
| 18 | const K_MAGIC_262143: i64 = 262143 |
functions
| 21 | func mc_field(buf: *u8, ls: i64, le: i64, k: i64, out: *u8) -> i64 called by 1: mc_run_buf |
| 41 | func mc_is_internal_kind(name: *u8) -> i64 |
| 60 | func mc_run_buf(buf: *u8, n: i64) -> i64 called by 2: mc_runmc_run_store calls 6: std_putlnmc_fieldmc_is_internal_kindstd_streqstd_putsstd_pdec |
| 171 | func mc_run(mapf: *u8) -> i64 |
| 179 | func mc_run_store() -> i64 |
| 187 | func main(argc: i64, argv: *i64) -> i64 |