nx_compare_tool_register.nx
buildroot/runtime/nx_compare_tool_register.nx
about
nx_compare_tool_register.nx -- register the NISHI COMPARE API into the sovereign tool registry (operator 2026-07-08:
"get it to state of the art api level"). The registry IS what nishifamily.com/api/tools + /mcp tools/list serve, so
registration = DISCOVERABILITY for any engaging model: they SEE that a measured, liar-killed software-comparison API
exists and exactly how to call it (versioned JSON endpoints + an OpenAPI 3.1 contract). Mirrors nx_codereview_tool_register:
DISCOVERY here; making it a native /mcp tools/call target stays a SEPARATE fail-closed step (tool_allowlist/backends +
cap, operator-gated). Writes the CWD registry (knowledge/toolreg-); flipping the LIVE NAS registry = run this on the NAS
(CWD nishihost). Idempotent (reg_put additive). Verifies by READBACK, not claim. expect_exit: 0 license_tier: ORIGINAL
dependencies 1 imports · 0 importers
imports: nx_tool_registry.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
| none |
functions
| 10 | func cr_puts(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 } |
| 11 | func cr_putn(v: i64) -> i64 |
| 22 | func cr_reg1(name: *u8, desc: *u8, invoke: *u8, status: *u8) -> i64 |
| 33 | func main() -> i64 |