nx_chat_demo_api_gate.nx
buildroot/runtime/nx_chat_demo_api_gate.nx
about
nx_chat_demo_api_gate.nx -- REFEREE for the SAFE public chat front (nx_chat_demo_api). Forks the
PROMOTED elf and proves the security boundary: only post/list, rooms forced into demo_, inputs
sanitized and capped, injection-safe JSON, budgets/errors surfaced. Fixture rooms are epoch-suffixed
so each run is fresh (they live in the real demo_ store, tiny + budget-bounded, the whole point).
license_tier: ORIGINAL expect_exit: 0
dependencies 3 imports · 0 importers
imports: nx_syscalls.nxnx_tool_run.nxnx_gate_verdict.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
| 9 | const CG_CAP: i64 = 65536 |
functions
| 10 | func cg_len(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n } called by 1: cg_count |
| 11 | func cg_count(buf: *u8, n: i64, needle: *u8) -> i64 |
| 24 | func cg_run(elf: *u8, av: *i64, out: *u8, ol: *i64) -> i64 { return tr_run_capture(elf, av, out, CG_CAP, ol) } |
| 25 | func main(argc: i64, argv: *i64) -> i64 |