code wiki / (root) / nx_claude_harvest_gate.nx

nx_claude_harvest_gate.nx

buildroot/runtime/nx_claude_harvest_gate.nx

4321 B81 linesdepth 5pulls 6 transitivereach 0 importersview sourcekind gate/prooftopic claude
docsdependenciesstructsconstsfunctions

about

nx_claude_harvest_gate.nx -- END-TO-END gate for the outside-reliance miner: forks the SUBJECT ARTIFACT and runs its own selftest (the 44-tooth proof that lived only in a verb), inheriting the exit code as the verdict. Exists because on 2026-09-05 the honest-gauge fix shipped through nx_organ_ship with prove=NO-GATE-FOUND: the proof existed, nothing could resolve it. A proof nothing can resolve is a comment. Resolvable by the <target>_gate convention, so no organ_gate.conf row is needed. ARTIFACT IDENTITY (the promoted-first defect nx_organ_ship documents): the ship loop PROVEs BEFORE it promotes, so the serving root still holds the PREVIOUS binary at PROVE time. This gate therefore prefers the JUST-BUILT artifact buildroot/_build/nx_claude_harvest.sov.elf and falls back to the promoted ./nx_claude_harvest.elf, and PRINTS which one it tested. T4 is the identity tooth: the partition non-vacuity tooth (T23) exists ONLY in the fixed source, so a stale binary cannot pass this gate. exit: 0 GREEN / 1 RED (gv_verdict law: the exit code IS the verdict)

dependencies 3 imports · 0 importers

nx_syscalls.nx nx_gate_verdict.nx nx_tool_run.nx nx_claude_harvest_gate.nx

imports: nx_syscalls.nxnx_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 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 ↻ chg_exists sys_openat_rd sys_close gv_puts ↻ gv_check gv_puts ↻ gv_verdict gv_note_bare_rate gv_bare_rate gv_at gv_obj_has_n gv_at ↻ gv_puts ↻ gv_num sys_mmap ↻ sys_write ↻ sys_munmap gv_puts ↻ gv_num ↻ gv_journal

structs

none

consts

18const CHG_OUT: i64 = 262144
19const CHG_PATH: i64 = 256

functions

21func chg_find(q: *u8, n: i64, lit: *u8) -> i64
called by 1: main
36func chg_exists(path: *u8) -> i64
called by 1: main calls 2: sys_openat_rdsys_close
43func main(argc: i64, argv: *i64) -> i64