code wiki / _hdl_build / nx_sheriff_gate.nx
nx_sheriff_gate.nx
buildroot/runtime/_hdl_build/nx_sheriff_gate.nx
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
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
structs
| none |
consts
| 18 | const SHG_CAP: i64 = 1048576 |
| 19 | const SHG_PFXCAP: i64 = 128 |
| 20 | const SHG_AV_BYTES: i64 = 64 |
| 21 | const SHG_NARG: i64 = 5 |
| 22 | const SHG_MODE: i64 = 0x1a4 |
| 23 | const SHG_SCALE_ROWS: i64 = 600 |
functions
| 25 | func shg_wfile(path: *u8, buf: *u8, n: i64) -> i64 |
| 33 | func main() -> i64 |