code wiki / (root) / nx_calibrate_test.nx

nx_calibrate_test.nx

buildroot/runtime/nx_calibrate_test.nx

3539 B81 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

about

nx_calibrate_test.nx -- smoke for nx_calibrate SA-2 MVP. Exercises: - canary tamper-detect (pre + post bracketing) - calibration completes without canary tamper - every microbench produces a positive measurement - cache hierarchy WITNESSED: l1 <= l2 <= ram (with tolerance band because qemu emulation may compress the hierarchy) - memory bandwidth > 0 - syscall costs > 0 (could be very small on qemu user-mode) - tier inference returns a valid sealed-enum value - sealed-enum validity gate - STRUCTURAL REPRODUCIBILITY: re-run produces same SHAPE (all fields populated, none NaN/negative, hierarchy still monotone) -- byte-equal across runs deferred to SA-7 when byzantine N-of-M reconciliation lands SA-2 verification gate per NISHI_SELF_ASSEMBLY_ROADMAP.md ยง8.

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_calibrate.nx nx_calibrate_test.nx

imports: nx_syscalls.nxnx_calibrate.nx

imported by: nobody (leaf or entry point)

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

main nx_calibrate_new sys_mmap nx_calibrate_run sys_mmap ↻ _calibrate_int_alu sys_mmap ↻ _now_ns sys_clock_gettime_mono sys_write _calibrate_ptrchase sys_mmap ↻ _now_ns ↻ sys_write ↻ _calibrate_mem_bw sys_mmap ↻ _now_ns ↻ _calibrate_syscall_gettime sys_mmap ↻ _now_ns ↻ sys_clock_gettime_mono ↻ _calibrate_syscall_mmap sys_mmap ↻ _now_ns ↻ _infer_tier sys_clock_gettime_mono ↻ nx_tier_inf_is_valid

structs

none

consts

none

functions

23func main() -> i64