nx_cap_invoke_gate.nx
buildroot/runtime/nx_cap_invoke_gate.nx
about
nx_cap_invoke_gate.nx -- proves R2: MCP tools/call over R0 is CAPABILITY-SCOPED. Drives ta_handle_pfx in-process
with POST /mcp tools/call requests carrying (or lacking) an X-Nishi-Cap token. The beyond-MCP property: invocation
requires an unforgeable capability that GRANTS THE SPECIFIC TOOL -- there is NO ambient authority, so confused-deputy
is structurally impossible. license_tier: ORIGINAL
dependencies 2 imports · 0 importers
imports: nx_tools_api.nxnx_gate.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
| 9 | func civ_req(cap: *u8, caplen: i64, tool: *u8, out: *u8) -> i64 |
| 21 | func civ_has(out: *u8, n: i64, needle: *u8) -> i64 { if ta_indexof(out, n, needle) >= 0 { return 1 } return 0 } |
| 22 | func civ_mark(cond: i64, pass: *i64, tot: *i64, label: *u8) -> i64 |
| 29 | func main() -> i64 |