code wiki / (root) / nx_nofloat_propose_verify_gate.nx

nx_nofloat_propose_verify_gate.nx

buildroot/runtime/nx_nofloat_propose_verify_gate.nx

8878 B179 linesdepth 11pulls 29 transitivereach 0 importersview sourcekind gate/prooftopic nofloat
docsdependenciesstructsconstsfunctions

about

nx_nofloat_propose_verify_gate.nx -- THE PROPOSE->VERIFY LOOP, rung 1 (2026-07-15). The sovereign no-float Qwen2.5-0.5B PROPOSES arithmetic answers (greedy i32 few-shot completion through the SERVE core -- the exact production generator behind /gen); the LCF-kernel autoformalization verifier CERTIFIES or REFUTES every proposal (af_decide -- a wrong proposal CANNOT certify, soundness by construction). This is the autonomous-building safety primitive: generator proposes, sound checker disposes, nothing unverified is trusted. The generator's propose-rate is REPORTED as measured data; the gate's TEETH are the mechanism invariants, which do not depend on model IQ: T1 mechanism live: >=8/12 proposals parse as integers; zero generation or kernel failures T2 soundness cross-check: kernel verdict == independent in-gate arithmetic on EVERY parsed proposal (certified-and-wrong = 0 AND refuted-and-correct = 0) T3 NEG-CONTROL: all 12 deliberately-wrong proposals (truth+1) REFUTED by the kernel T4 NEG-CONTROL: corrupted-proposer outputs (word token / out-of-range number) land UNSUPPORTED, never certified T5 determinism: re-running Q1 reproduces BYTE-IDENTICAL text (greedy no-float exceed) 2026-07-15 consolidation: templating/generation/parse/claim now ride nx_propose_verify_lib (single source of truth shared with the organ nx_propose_verify + the solve probe) -- prompts byte-identical to the original inline version, so the measured 12/12 must reproduce (that reproduction = the migration proof). Requires /home/elderwesto/nx_stage/nx_real_model.gguf. Heavy: ~2-3 min. Return from main (pool reap), never sys_exit. No hw writes (Rule 26). expect_exit: 0 license_tier: ORIGINAL

dependencies 3 imports · 0 importers

nx_syscalls.nx nx_propose_verify_lib.nx nx_gate_verdict.nx nx_nofloat_propose_verify_gate

imports: nx_syscalls.nxnx_propose_verify_lib.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

main af_w sys_now_ms sys_mmap sys_clock_gettime_mono nsv_init sys_now_ms ↻ 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 sys_mmap ↻ nx_thread_spawn_fn sys_mmap ↻ sys_mmap ↻ nsv_load_meta sys_mmap ↻ nsv_log ↻ sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close nx_gguf_parse nx_le_read_u32 nx_le_read_u64 nx_le_read_u32 ↻ _gguf_skip_value nx_le_read_u64 ↻

structs

none

consts

none

functions

23func main() -> i64