code wiki / _hdl_build / nx_mineworld_autotest.nx
nx_mineworld_autotest.nx
buildroot/runtime/_hdl_build/nx_mineworld_autotest.nx
about
nx_mineworld_autotest.nx -- THE RACING-CREW EYES (operator 2026-07-03: "i dont believe your optimism till
i see it ... use OCR and automatic testing ... auto find bugs ... that was the point of the racing team").
This organ TESTS THE SHIPPED GAME BYTES BY LOOKING AT THEM: executes web_assets/nx_mineworld.wasm on the
sovereign nx_wasm_vm, drives a SEEDED input fuzzer (any failure prints tick+seed = a REPRO, not a vibe),
and every K ticks renders a REAL frame and runs VISION FORENSICS on the framebuffer:
blackout (mostly-black frame) / whiteout / FROZEN frame (render stopped responding to movement) /
NO-STRUCTURE (sky vs ground bands identical = garbage) / MAGENTA leak (our loud undefined-block marker
visible = a data-pack regression) / drawn-px sanity (renderer stat)
plus STATE INVARIANTS every tick (camera y bounds, pitch clamp). HONEST SCOPE: structural vision now;
OCR glyph-reading of the HUD lands when the scan ladder reaches R4 classify (nx_img_* is at R2 Otsu).
This is the per-surface template: the same harness shape applies to every effort (browser/reader/sites).
license_tier: ORIGINAL expect_exit: 0
dependencies 4 imports · 0 importers
imports: nx_syscalls.nxnx_f32_hw.nxnx_wasm_mineworld.nxnx_wasm_vm.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| 17 | const K_MAGIC_90210: i64 = 90210 |
| 18 | const K_MAGIC_6364136223846793005: i64 = 6364136223846793005 |
| 19 | const K_MAGIC_1442695040888963407: i64 = 1442695040888963407 |
| 20 | const K_MAGIC_895752: i64 = 895752 |
| 21 | const K_MAGIC_2048: i64 = 2048 |
| 22 | const K_MAGIC_24000: i64 = 24000 |
| 23 | const K_MAGIC_7000: i64 = 7000 |
| 24 | const K_MAGIC_896872: i64 = 896872 |
| 25 | const K_MAGIC_3000: i64 = 3000 |
functions
| 27 | func hw(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 } |
| 28 | func pn(v: i64) -> i64 |
| 40 | func abug(name: *u8, tick: i64, seed: i64, val: i64) -> i64 |
| 46 | func main() -> i64 |