code wiki / _hdl_build / nx_anticheat.nx
nx_anticheat.nx
buildroot/runtime/_hdl_build/nx_anticheat.nx
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
imports: nx_syscalls.nx
imported by: nx_andelinwest_measure.nxnx_site_gen_run.nx
structs
| none |
consts
| 10 | const AC_VALID: i64 = 1 |
| 11 | const AC_FABRICATED: i64 = 0 |
functions
| 14 | func ac_measurement_backed(measured: i64) -> i64 { if measured == 1 { return 1 } return 0 } |
| 17 | func ac_grade_valid(n_inputs: i64, n_measured: i64) -> i64 { if n_measured == n_inputs { return 1 } return 0 } |
| 18 | func ac_fabricated_count(n_inputs: i64, n_measured: i64) -> i64 { return n_inputs - n_measured } called by 1: main |
| 21 | func ac_sovereignty_gaps(gcc_used: i64, bash_used: i64) -> i64 { return gcc_used + bash_used } called by 1: main |
| 23 | func 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 |
| 25 | func ac_verdict_label(v: i64) -> *u8 { if v == AC_VALID { return "VALID(measured)" as *u8 } return "REJECTED(fabricated)" as *u8 } |