nx_retire_onto_gate.nx
buildroot/runtime/nx_retire_onto_gate.nx
about
nx_retire_onto_gate.nx -- GATE for retire-onto-owner (global tooling, 2026-08-24). Composes the lib in-process.
FIXTURES: the differential PROBE imports the candidate and the owner BY BASENAME through the estate's own
builder, so the fixtures must live where that resolver looks -- the corpus root the gatekit resolves
(<X>/runtime/). They are named _ro_fixture_* so any reader recognises them as transient, written at SETUP and
removed at the end (and at setup, so a crashed prior run cannot poison this one). The sweep fixture plane and
the scratch live in /tmp/nx_retire_onto_gate/.
THE ANTI-VACUITY TOOTH: the fixture body carries a `}` inside a LINE COMMENT and a `}` inside a STRING LITERAL.
A naive brace matcher ends the body at the first of those, leaves the rest of the old body behind the new
closing brace, and the file still LOOKS rewritten -- so the tooth asserts the leftover Newton loop is GONE.
THE PROOF TEETH: prove against a true floor-sqrt owner PASSES; against an IDENTITY owner with the same
signature it must report SEMANTICS-DIFFER (the signature-only rewrite would have silently changed behaviour);
an unbuildable candidate must report UNBUILDABLE; a two-argument function must report UNSUPPORTED. Every
refusal leaves the bytes untouched, and apply writes ONLY after a PASS.
dependencies 3 imports · 0 importers
imports: nx_syscalls.nxnx_gate_verdict.nxnx_retire_onto_lib.nx
imported by: nobody (leaf or entry point)
structs
| none |
consts
| 22 | const VRG_MKDIR_MODE: i64 = 0x1ff |
| 24 | const VRG_LP_BYTES: i64 = 16 |
| 26 | const VRG_ROWS_CAP: i64 = 8192 |
functions
| 28 | func vrg_dir() -> *u8 { return "/tmp/nx_retire_onto_gate" as *u8 } |
| 29 | func vrg_scratch() -> *u8 { return "/tmp/nx_retire_onto_gate/plane.scratch" as *u8 } called by 1: vrg_broken_src |
| 30 | func vrg_plane() -> *u8 { return "/tmp/nx_retire_onto_gate/plane-" as *u8 } called by 1: vrg_broken_src |
| 33 | func vrg_root_path(out: *u8, name: *u8) -> i64 |
| 41 | func vrg_owner_src() -> *u8 |
| 44 | func vrg_cons_src() -> *u8 |
| 47 | func vrg_broken_src() -> *u8 |
| 50 | func vrg_read(path: *u8, lp: *i64) -> *u8 |
| 56 | func main() -> i64 |