code wiki / _hdl_build / nx_connect_api_gate.nx

nx_connect_api_gate.nx

buildroot/runtime/_hdl_build/nx_connect_api_gate.nx

12194 B192 linesdepth 4pulls 13 transitivereach 0 importersview sourcekind gate/prooftopic connect
docsdependenciesstructsconstsfunctions

about

nx_connect_api_gate.nx -- gate for the CONNECT MCP front door. Drives ca_dispatch with synthetic argv arrays (exactly as the tools daemon will pass params.arguments.argv) and asserts on the emitted JSON. This proves the MCP surface is faithful to the 8 gated engines and that its contract holds. license_tier: ORIGINAL expect_exit: 0

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_connect_api_lib.nx nx_connect_api_gate.nx

imports: nx_syscalls.nxnx_connect_api_lib.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main sys_mmap ag_w sys_write ag_argv sys_mmap ↻ ca_dispatch ca_help ca_open ca_puts ca_putn ca_puts ↻ ca_streq ca_v_match ca_err ca_open ↻ ca_puts ↻ mx_match_weight mx_recip_score mx_inter_popc mx_clamp100 mx_hm mx_interest_score mx_inter_popc ↻ mx_clamp100 ↻ ca_ia ca_atoi ca_open ↻ ca_puts ↻ ca_kv ca_puts ↻ ca_putn ↻ ca_v_reconnect ca_err ↻ rc_mk ca_ia ↻ rc_lane rc_score rc_raw rc_inter_popc

structs

none

consts

none

functions

8func ag_w(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 }
called by 3: ag_nag_checkmain calls 1: sys_write
9func ag_n(v: i64) -> i64 { let t: *u8=sys_mmap(32); let o: i64=ca_putn(t,0,v); t[o]=0 as u8; ag_w(t); return 0 }
called by 1: main calls 3: sys_mmapca_putnag_w
10func ag_check(pass: i64, label: *u8, fails: *i64) -> i64
called by 1: main calls 1: ag_w
15func ag_has(buf: *u8, n: i64, needle: *u8) -> i64
called by 1: main calls 1: ca_slen
29func ag_argv(a0:*u8,a1:*u8,a2:*u8,a3:*u8,a4:*u8,a5:*u8,a6:*u8,a7:*u8,a8:*u8,a9:*u8,a10:*u8,a11:*u8,a12:*u8,a13:*u8, outc: *i64) -> *i64
called by 1: main calls 1: sys_mmap
50func main() -> i64