code wiki / (root) / nx_cr_exec_proof.nx

nx_cr_exec_proof.nx

buildroot/runtime/nx_cr_exec_proof.nx

4958 B77 linesdepth 6pulls 7 transitivereach 0 importersview sourcekind tool
docsdependenciesstructsconstsfunctions

about

nx_cr_exec_proof.nx -- PROVE (not assert) that code_review_gate is runnable end-to-end over the execution allowlist path (the /mcp tools/call machinery), using a TEST allowlist conf so the operator-curated production tool_allowlist.conf is never touched. Composes tea_run_from (nx_tool_exec_allow) against a written test conf + nx_cr_gate.elf (the single-arg entry point). Demonstrates: a GREEN-allowlisted code_review_gate resolves + runs + returns the gate verdict (dirty->1, clean->0); a RED row is refused; a ghost name is refused (fail-closed). So the operator's remaining step is exactly ONE proven line in tool_allowlist.conf. license_tier: ORIGINAL expect_exit: 0

dependencies 2 imports · 0 importers

nx_tool_exec_allow.nx nx_itoa_lib.nx nx_cr_exec_proof.nx

imports: nx_tool_exec_allow.nxnx_itoa_lib.nx

imported by: nobody (leaf or entry point)

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

main p_puts write_conf tea_run_from tea_resolve_from tea_name_ok tea_field_eq_n tea_field_eq tr_run1_to sys_mmap nxa_die sys_write sys_exit nxa_lock_take nxa_lock_addr sys_write ↻ nxa_lock_give nxa_lock_addr ↻ nxa_report_overrun sys_write ↻ nxa_dump_printable sys_write ↻ nxa_dump_sizes sys_write ↻ tr_run_capture_to tr_run_capture_tr tr_run_capture_core tr_run_capture_core_owned p_putn nxi_out nxi_fd sys_mmap ↻ ccz_cat_num nxi_buf sys_write ↻ sys_munmap

structs

none

consts

10const K_MAGIC_262144: i64 = 262144

functions

12func p_puts(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 1: main
17func p_putn(v: i64) -> i64 { nxi_out(v); return 0 }
called by 1: main calls 1: nxi_out
19func write_conf(path: *u8, content: *u8) -> i64
called by 1: main
29func main() -> i64