code wiki / _hdl_build / nx_handoff_gate_proof.nx

nx_handoff_gate_proof.nx

buildroot/runtime/_hdl_build/nx_handoff_gate_proof.nx

7362 B150 linesdepth 5pulls 5 transitivereach 0 importersview sourcekind tool
docsdependenciesstructsconstsfunctions

about

nx_handoff_gate_proof.nx -- GATE proving the shared deep-gate library (runtime/, see the import below). NOTE: the lib filename appears ONLY in the import line -- nx_gate_mutation_probe splices that line to point at a mutated copy; a second textual occurrence would eat the splice and false-GREEN the probe. Oracle = TRUTH TABLES (math ground truth -- the correct external judge for pure logic, same class as RFC/NIST KAT vectors): every primitive is exercised on cases whose right answer is known a priori, including the ADVERSARY cases (a gamed 9999 score MUST be caught by the neg-control; a backslid count MUST trip the regression guard; an absent baseline/evidence file MUST report absent, never fabricate). T1 hg_neg_control -- honest wrong-input score passes; GAMED high score is CAUGHT (liar-killer). T2 hg_monotonic_* -- monotone passes, a reversal is caught (physics invariant). T3 hg_invariant_le/ge -- bound truth table incl equality edge. T4 hg_parse_ints -- mixed tab/space/newline ints parse exactly; empty buffer = 0. T5 hg_no_backslide/worsen-- equal holds; a single worse value = REGRESSION caught. T6 hg_baseline_load -- ABSENT file => -1 (evidence-grounding: never fabricated). T7 hg_evidence_file -- real file (this gate itself) opens=1; fake path=0 (liar-kill). T8 telemetry chain -- per-stage handoff report; fail count, worst-quality-drop + max-time LOCALIZERS correct; deterministic on re-run. Read-only, bounded, deterministic (never-brick). GREEN iff ALL pass. Run with CWD=nxc2 root. Sovereign nx_cc->nxasm (no gcc). expect_exit: 0 license_tier: ORIGINAL

dependencies 3 imports · 0 importers

syscalls.nx runtime.nx nx_handoff_gate.nx nx_handoff_gate_proof.nx

imports: syscalls.nxruntime.nxnx_handoff_gate.nx

imported by: nobody (leaf or entry point)

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

main print strlen check print ↻ print_i64 itoa hg_neg_control hg_monotonic_nondec hg_monotonic_noninc hg_invariant_le hg_invariant_ge hg_parse_ints hg_no_backslide hg_no_worsen hg_baseline_load sys_read hg_parse_ints ↻ hg_evidence_file hg_stage_set hg_stage_at hg_chain_report print ↻ hg_stage_at ↻ print_i64 ↻ hg_chain_fails hg_stage_at ↻ hg_chain_worst_drop hg_stage_at ↻ hg_chain_max_time hg_stage_at ↻ print_i64 ↻

structs

none

consts

23const K_MAGIC_9999: i64 = 9999
24const K_MAGIC_3675: i64 = 3675
25const K_MAGIC_4096: i64 = 4096

functions

27func check(label: *u8, got: i64, want: i64, pass: *i64, total: *i64) -> i64
called by 1: main calls 2: printprint_i64
44func main() -> i64