code wiki / (root) / nx_retire_onto_gate.nx

nx_retire_onto_gate.nx

buildroot/runtime/nx_retire_onto_gate.nx

13950 B193 linesdepth 6pulls 9 transitivereach 0 importersview sourcekind gate/prooftopic retire
docsdependenciesstructsconstsfunctions

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

nx_syscalls.nx nx_gate_verdict.nx nx_retire_onto_lib.nx nx_retire_onto_gate.nx

imports: nx_syscalls.nxnx_gate_verdict.nxnx_retire_onto_lib.nx

imported by: nobody (leaf or entry point)

structs

none

consts

22const VRG_MKDIR_MODE: i64 = 0x1ff
24const VRG_LP_BYTES: i64 = 16
26const VRG_ROWS_CAP: i64 = 8192

functions

28func vrg_dir() -> *u8 { return "/tmp/nx_retire_onto_gate" as *u8 }
29func vrg_scratch() -> *u8 { return "/tmp/nx_retire_onto_gate/plane.scratch" as *u8 }
called by 1: vrg_broken_src
30func vrg_plane() -> *u8 { return "/tmp/nx_retire_onto_gate/plane-" as *u8 }
called by 1: vrg_broken_src
33func vrg_root_path(out: *u8, name: *u8) -> i64
41func vrg_owner_src() -> *u8
44func vrg_cons_src() -> *u8
47func vrg_broken_src() -> *u8
50func vrg_read(path: *u8, lp: *i64) -> *u8
56func main() -> i64