code wiki / _hdl_build / nx_gate_subjects_gate.nx

nx_gate_subjects_gate.nx

buildroot/runtime/_hdl_build/nx_gate_subjects_gate.nx

5602 B112 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind gate/prooftopic gate
docsdependenciesstructsconstsfunctions

about

nx_gate_subjects_gate.nx -- proves gv_subjects makes THE EMPTY-SET LAW structural. THE DEFECT IT EXISTS FOR: gv_check counts TEETH, never SUBJECTS. A gate with ten teeth over ZERO files reports 10/10 GREEN and every consumer reads a pass. The estate had written that law repeatedly and never built the mechanism, so it lived hand-rolled per-organ and was forgotten by default. MEASURED the day gv_subjects was added: a ship harness skipped its work behind a load guard, wrote no log, and EXITED 0 -- inconclusive reading as success. WHY SKIP AND NOT RED: a zero population is the ABSENCE OF EVIDENCE about the subject, not a failure of it. gv_subjects therefore composes gv_need (ctr[2]) instead of inventing a fourth state, which means it inherits the proven ordering -- a SKIP co-occurring with a real failure still escalates to RED and can never amnesty it. T5 pins exactly that.

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_gate_verdict.nx nx_gate_subjects_gate.nx

imports: nx_syscalls.nxnx_gate_verdict.nx

imported by: nobody (leaf or entry point)

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

main 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 ↻ gv_subjects gv_puts ↻ gv_num sys_mmap ↻ sys_write ↻ sys_munmap gv_need gv_puts ↻ gv_check gv_puts ↻ sys_mmap ↻ gs_read sys_openat_rd sys_read sys_close gv_need ↻ gs_find gv_verdict gv_note_bare_rate gv_bare_rate

structs

none

consts

16const GS_SRCBUF: i64 = 65536
17const GS_SRC: *u8 = "runtime/nx_gate_verdict.nx"
18const GS_SRC_UP: *u8 = "buildroot/runtime/nx_gate_verdict.nx"

functions

20func gs_read(path: *u8, buf: *u8) -> i64
called by 1: main calls 3: sys_openat_rdsys_readsys_close
29func gs_find(buf: *u8, n: i64, needle: *u8) -> i64
called by 1: main
44func main() -> i64