code wiki / (root) / nx_assetingest_gate.nx

nx_assetingest_gate.nx

buildroot/runtime/nx_assetingest_gate.nx

10379 B269 linesdepth 5pulls 6 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

about

nx_assetingest_gate.nx -- THE ASSET INGEST LANE'S STANDING GATE. Runs every ingest organ's KAT *and* its real-data regressions in one command, from a roster that is DATA. NAMING: nx_ingest_gate.nx ALREADY EXISTS and is the referee for a WRITING rung (prose scene / entity extraction). "ingest" means text there and assets here. This file was almost written over it; the compare-and-swap guard refused the blind write and saved the other lane's organ. Third name collision of the day, after nx_bvh (bounding volume, not biovision). *A NAME IS NOT A CAPABILITY -- AND A NAME YOU DID NOT CHECK IS SOMEBODY ELSE'S ORGAN. D001 COMPLIANT (2026-08-07): the first cut of this gate rolled its OWN verdict and /api/promote refused it -- nx_gate_green could not judge it and it wrote no harness.jrnl frame, so its flake and erosion would have been invisible. It was a gate that existed but was not IN THE WORKFLOW. It now inherits nx_gate_verdict, the one canonical emitter. *A GATE NOBODY RUNS IS A COMMENT; A GATE NOTHING CAN READ IS AN ISLAND. THE THIRD STATE: a roster row's fixture can be absent. Per gv_need, that is SKIP -- "I could not look" is not "I looked and it is broken". A detector that cannot tell those apart teaches everyone to ignore it. ROSTER-DRIVEN (knowledge/assetingest_gate.roster): adding a check is an APPEND, never a recompile. Rows: <elf-basename> TAB <space-separated args> TAB <expected substring>. The roster deliberately mixes KATs with THIRD-PARTY-DATA regressions -- a lane gated only by fixtures its own author wrote is a lane grading its own homework. usage: nx_assetingest_gate [roster] default knowledge/assetingest_gate.roster nx_assetingest_gate --kat selftest: 4 teeth, 3 of them anti-vacuity license_tier: ORIGINAL No hw writes (Rule 26). expect_exit: 0

dependencies 2 imports · 0 importers

nx_gate_verdict.nx nx_tool_run.nx nx_assetingest_gate.nx

imports: nx_gate_verdict.nxnx_tool_run.nx

imported by: nobody (leaf or entry point)

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

main ag_slen ag_kat gv_ctr sys_mmap nxa_die sys_write sys_exit nxa_lock_take nxa_lock_addr sys_write ↻ nxa_lock_give nxa_lock_addr ↻ nxa_report_overrun sys_write ↻ nxa_dump_printable sys_write ↻ nxa_dump_sizes sys_write ↻ gv_head gv_puts sys_write ↻ ag_put ag_slen ↻ ag_writef ag_eval ag_rows ag_slice ag_run_row ag_slen ↻ ag_slice ↻ tr_run_capture sys_mmap ↻ sys_pipe2 sys_fork sys_close sys_dup3 sys_execve_clean tr_exec_failed sys_read

structs

none

consts

31const AG_ELFDIR: *u8 = "/volume1/homes/elderwesto/nishihost/"
32const AG_ROSTER: *u8 = "knowledge/assetingest_gate.roster"
33const AG_CAP: i64 = 1048576
34const AG_MAXARG: i64 = 32
35const AG_PATHW: i64 = 512
36const AG_FLDW: i64 = 1024
37const AG_MODE: i64 = 420

functions

39func ag_slen(s: *u8) -> i64 { var i: i64 = 0; while s[i] != (0 as u8) { i = i + 1 } return i }
41func ag_contains(buf: *u8, n: i64, needle: *u8) -> i64
called by 1: ag_run_row calls 1: ag_slen
58func ag_slice(src: *u8, a: i64, b: i64, dst: *u8, cap: i64) -> i64
called by 2: ag_run_rowag_rows
68func ag_cat(dst: *u8, o: i64, s: *u8, cap: i64) -> i64
called by 1: ag_rows calls 1: ag_slen
78func ag_run_row(elf: *u8, args: *u8, expect: *u8) -> i64
123func ag_rows(buf: *u8, len: i64, ran: *i64, ctr: *i64) -> i64
174func ag_eval(rpath: *u8, ran: *i64) -> i64
called by 1: ag_kat calls 1: ag_rows
182func ag_gate(rpath: *u8) -> i64
205func ag_put(b: *u8, o: i64, s: *u8) -> i64
called by 1: ag_kat calls 1: ag_slen
211func ag_writef(path: *u8, b: *u8, n: i64) -> i64
called by 1: ag_kat
219func ag_kat() -> i64
258func main(argc: i64, argv: *i64) -> i64