code wiki / _hdl_build / nx_anticheat.nx

nx_anticheat.nx

buildroot/runtime/_hdl_build/nx_anticheat.nx

1776 B25 linesdepth 2pulls 2 transitivereach 2 importersview sourcekind library
docsdependenciesstructsconstsfunctions

about

nx_anticheat.nx -- in PARTNERSHIP WITH THE REFEREE, refuse cheating: a grade is valid ONLY if every input is a REAL MEASUREMENT of the actual sovereign artifact (not a number Claude typed), AND the artifact is NishiLang bits-up (non-sovereign deps like gcc/bash are flagged as gaps to retire) (operator: "make sure that no cheating happens where the input is non nishi lang... using nishi ecosystem from the bits up and flagging the gaps to improve themselves... iterating and iterating"). license_tier: ORIGINAL The Referee REJECTS a fabricated grade -- this is what makes the andelinwest race honest.

dependencies 1 imports · 2 importers

nx_syscalls.nx nx_anticheat.nx nx_andelinwest_measure.nx nx_site_gen_run.nx

imports: nx_syscalls.nx

imported by: nx_andelinwest_measure.nxnx_site_gen_run.nx

structs

none

consts

10const AC_VALID: i64 = 1
11const AC_FABRICATED: i64 = 0

functions

14func ac_measurement_backed(measured: i64) -> i64 { if measured == 1 { return 1 } return 0 }
17func ac_grade_valid(n_inputs: i64, n_measured: i64) -> i64 { if n_measured == n_inputs { return 1 } return 0 }
called by 2: mainmain
18func ac_fabricated_count(n_inputs: i64, n_measured: i64) -> i64 { return n_inputs - n_measured }
called by 1: main
21func ac_sovereignty_gaps(gcc_used: i64, bash_used: i64) -> i64 { return gcc_used + bash_used }
called by 1: main
23func ac_bits_up_sovereign(emitter_nishi: i64, gaps: i64) -> i64 { if emitter_nishi == 1 { if gaps == 0 { return 1 } } return 0 }
called by 1: main
25func ac_verdict_label(v: i64) -> *u8 { if v == AC_VALID { return "VALID(measured)" as *u8 } return "REJECTED(fabricated)" as *u8 }
called by 2: mainmain