code wiki / _hdl_build / nx_paper_panel_cli.nx

nx_paper_panel_cli.nx

buildroot/runtime/_hdl_build/nx_paper_panel_cli.nx

4365 B86 linesdepth 5pulls 10 transitivereach 0 importersview sourcekind tooltopic paper
docsdependenciesstructsconstsfunctions

about

nx_paper_panel_cli.nx -- callable MCP/API surface for manuscript-grade admissibility (AS-2). nx_paper_panel <grader_id> <author_id> <leak_csv> <holdout_clean> <grade_a> <grade_b> [tiebreak] leak_csv = same_model,inheritance,same_family (1=yes 0=no) holdout_clean = 1 if the manuscript was NOT part of what the grader was tuned on e.g. self-graded, perfect score: nx_paper_panel 7 7 1,1,1 1 1000 1000 -> {"verdict":"INADMISSIBLE","grade":0} (a score cannot launder its grader) license_tier: ORIGINAL No hw writes (Rule 26). expect_exit: 0

dependencies 3 imports · 0 importers

nx_paper_panel.nx nx_itoa_lib.nx nx_syscalls.nx nx_paper_panel_cli.nx

imports: nx_paper_panel.nxnx_itoa_lib.nxnx_syscalls.nx

imported by: nobody (leaf or entry point)

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

main ppc_puts sys_write ppc_key ppc_q sys_mmap sys_write ↻ ppc_puts ↻ ppc_q ↻ sys_exit ppc_atoi sys_mmap ↻ ppc_csv3 pp_grader_independent ref_no_self_grade rf2_judge_independent pp_admissible pp_verdict pr_resolve pr_agreement ppc_num nxi_out nxi_fd sys_mmap ↻ ccz_cat_num sys_write ↻ sys_munmap pp_self_graded ref_no_self_grade ↻ ppc_name ppc_puts ↻

structs

none

consts

none

functions

14func ppc_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 3: ppc_keyppc_namemain calls 1: sys_write
15func ppc_q() -> i64 { let b: *u8 = sys_mmap(1); b[0] = 34 as u8; sys_write(1, b, 1); return 0 }
called by 2: ppc_keymain calls 2: sys_mmapsys_write
16func ppc_key(name: *u8) -> i64 { ppc_q(); ppc_puts(name); ppc_q(); ppc_puts(":" as *u8); return 0 }
called by 1: main calls 2: ppc_qppc_puts
21func ppc_num(v: i64) -> i64 { nxi_out(v); return 0 }
called by 1: main calls 1: nxi_out
22func ppc_atoi(a: *u8) -> i64
called by 1: main
31func ppc_csv3(s: *u8, out: *i64) -> i64
called by 1: main
43func ppc_name(v: i64) -> i64
called by 1: main calls 1: ppc_puts
49func main(argc: i64, argv: *i64) -> i64