code wiki / (root) / nx_cr_exec_proof.nx

nx_cr_exec_proof.nx

buildroot/runtime/nx_cr_exec_proof.nx

4958 B77 linesdepth 4pulls 5 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 sys_openat_wr tea_run_from tea_resolve_from tea_name_ok sys_read_file sys_openat_rd sys_lseek sys_mmap sys_read sys_close tea_field_eq_n tea_field_eq tr_run1_to sys_mmap ↻ tr_run_capture_to tr_run_capture sys_mmap ↻ sys_pipe2 sys_fork sys_close ↻ sys_dup3 sys_execve_clean sys_close ↻ sys_execve sys_exit sys_read ↻ sys_wait4 wait_exit_code sys_mmap ↻ sys_pipe2 ↻ sys_fork ↻ sys_close ↻ sys_default_signal sys_mmap ↻ sys_dup3 ↻ sys_execve_clean ↻ sys_exit ↻

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 calls 1: sys_openat_wr
29func main() -> i64