code wiki / _hdl_build / nx_spec_anchor_gate.nx

nx_spec_anchor_gate.nx

buildroot/runtime/_hdl_build/nx_spec_anchor_gate.nx

3233 B65 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind gate/prooftopic spec
docsdependenciesstructsconstsfunctions

about

nx_spec_anchor_gate.nx -- REGRESSION TOOTH for the NXA format spec. The spec is the format's ONLY documentation BY DESIGN ("this file IS the spec"), so a rewrite that drops a normative paragraph is silent contract loss -- MEASURED 2026-07-29: the entire channel-2 PACKED WORLD-DELTA section vanished in the POSE-amendment rewrite and nothing noticed until the seq1285 unit audit re-read the file. Each tooth asserts a normative ANCHOR substring exists. usage: nx_spec_anchor_gate [specpath] (default knowledge/nxa_format_spec.md) Mutation-proof without touching the real spec: run against a COPY with an anchor removed. license_tier: ORIGINAL No hw writes (Rule 26).

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_gate_verdict.nx nx_spec_anchor_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 sys_mmap sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close gv_ctr sys_mmap ↻ gv_head gv_puts sys_write gv_check gv_puts ↻ sys_exit gv_verdict gv_puts ↻ gv_num sys_mmap ↻ sys_write ↻ sys_munmap gv_journal sys_openat_append sys_mmap ↻ gv_catn sys_mmap ↻ sys_munmap ↻ sys_now_realtime_sec sys_mmap ↻ sys_clock_gettime_real gv_cat sys_write ↻ sys_close ↻ sys_munmap ↻ sag_find

structs

none

consts

12const SAG_CAP: i64 = 1048576

functions

14func sag_find(hay: *u8, n: i64, needle: *u8) -> i64
called by 1: main
31func main(argc: i64, argv: *i64) -> i64