code wiki / (root) / nx_propose_verify.nx

nx_propose_verify.nx

buildroot/runtime/nx_propose_verify.nx

10135 B198 linesdepth 11pulls 28 transitivereach 0 importersview sourcekind tool
docsdependenciesstructsconstsfunctions

about

nx_propose_verify.nx -- ORGAN: the PROPOSE->VERIFY capability as a reusable CLI (2026-07-15). The sovereign no-float Qwen PROPOSES an answer; the LCF-kernel autoformalization verifier CERTIFIES or REFUTES it -- nothing unverified is ever trusted (the autonomous-building safety primitive, now an organ). Accepted question forms (space-tokenized; digits or number-words zero..twelve): solve-form : "what plus 3 equals 7" / "3 plus what equals 7" (also times; x works for what) completion form: "6 plus 7 equals what" (model proposes the result) full claim : "2 plus 2 equals 4" (pass-through: kernel verdict only, no model, no init cost) Modes: argv[1] = one question (argv[2] = optional gguf path); no-arg = self-battery (expect_exit 0). Exit codes: 0 CERTIFIED · 2 REFUTED · 3 UNSUPPORTED · 5 NO-PROPOSAL · 1 infra failure. Battery teeth are model-IQ-INDEPENDENT: proposals parse + verdicts SOUND (kernel == independent arithmetic), the unsolvable question never certifies, pass-through true/false/garbage honest. Requires the gguf only for model routes. Return from main (pool reap), never sys_exit. No hw writes (Rule 26). expect_exit: 0 license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_propose_verify_lib.nx nx_propose_verify.nx

imports: nx_syscalls.nxnx_propose_verify_lib.nx

imported by: nobody (leaf or entry point)

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

main sys_mmap pvx_route af_parse af_tok_num af_streq af_tok_plus af_streq ↻ af_tok_times af_streq ↻ af_tok_le af_streq ↻ af_tok_lt af_streq ↻ af_tok_unknown af_streq ↻ af_tok_eqw af_streq ↻ sys_mmap ↻ pvx_strip_last af_streq ↻ nsv_cat nsv_init sys_now_ms sys_mmap ↻ sys_clock_gettime_mono nsv_log sys_write nf_pool nx_pool_new nx_hw_worker_count nx_hw_cpu_count sys_mmap ↻ sys_munmap sys_mmap ↻ nx_chan_new sys_mmap ↻ _nx_chan_cell sys_thread_create nx_thread_spawn

structs

none

consts

none

functions

18func pvx_show(s: *u8, n: i64, cap: i64) -> i64
called by 1: pvx_case calls 1: sys_write
27func pvx_strip_last(src: *u8, body: *u8, last: *u8) -> i64
called by 1: pvx_route
47func pvx_route(q: *u8, res: *i64) -> i64
73func pvx_case(q: *u8, out: *i64) -> i64
127func main(argc: i64, argv: *i64) -> i64