code wiki / _hdl_build / nx_sheriff_gate.nx

nx_sheriff_gate.nx

buildroot/runtime/_hdl_build/nx_sheriff_gate.nx

9374 B191 linesdepth 5pulls 8 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

about

nx_sheriff_gate.nx -- gate for the UAT/acceptance sheriff (nx_sheriff). On nx_gate_verdict (migrate-on-touch law: new gates import THE lib). Teeth: T1 above-floor domain ACCEPTED; T2 sub-floor WITH filed rung = ACCEPTED-FILED-CLIMB (the climb is the design); T3 sub-floor NO rung = REJECTED-UNFILED-GAP + proposed SHF- debt row (and NO debt proposed for the accepted domain); T4 unscored row = UNSCORED (score -1, never invented); T5 DONE claim over lane-scoped open debt = REJECTED-DONE-OVER-DEBT; T6 clean DONE = ACCEPTED; T7 NEG-CONTROL fail-closed: absent registry -> rc!=0 + SHERIFF-FAIL (no acceptance from missing evidence); T8 SCALE tooth (scale law: production-shape input, declared envelope): 600-row registry -> rows_scanned=512 rows_dropped=88 DECLARED, never silent. Per-run-unique /tmp fixtures; drives the staged CLI via dep_run_capture. license_tier: ORIGINAL No hw writes (Rule 26). expect_exit: 0

dependencies 5 imports · 0 importers

nx_store_seed_lib.nx nx_seg_store.nx nx_deploy_lib.nx nx_gate_verdict.nx nx_syscalls.nx nx_sheriff_gate.nx

imports: nx_store_seed_lib.nxnx_seg_store.nxnx_deploy_lib.nxnx_gate_verdict.nxnx_syscalls.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 ↻ sys_now_realtime_sec sys_mmap ↻ sys_clock_gettime_real sys_mmap ↻ ss_cat ss_catn sys_mmap ↻ shg_wfile sys_openat_wr sys_write ↻ sys_close gv_check gv_puts ↻ sts_seed sts_pfxhash ss_begin_cap sys_mmap ↻ sts_mm sys_mmap ↻ sts_werr

structs

none

consts

18const SHG_CAP: i64 = 1048576
19const SHG_PFXCAP: i64 = 128
20const SHG_AV_BYTES: i64 = 64
21const SHG_NARG: i64 = 5
22const SHG_MODE: i64 = 0x1a4
23const SHG_SCALE_ROWS: i64 = 600

functions

25func shg_wfile(path: *u8, buf: *u8, n: i64) -> i64
33func main() -> i64