code wiki / _hdl_build / nx_codewiki_gate.nx

nx_codewiki_gate.nx

buildroot/runtime/_hdl_build/nx_codewiki_gate.nx

53534 B988 linesdepth 7pulls 9 transitivereach 0 importersview sourcekind gate/prooftopic codewiki
docsdependenciesstructsconstsfunctions

about

nx_codewiki_gate.nx -- teeth for the code-wiki generator (nx_codewiki_lib). Fixture lives under ./_gatework/ -- a name-spaced dir the gate owns inside its CWD. NOT /tmp (operator ban 2026-07-27: WSL wipes it mid-session, NAS /tmp is noexec + shared) and NOT loose files in the prod CWD (the seq282 lesson: a gate that scatters writes where siblings work cannot run safely). What each tooth would catch: T1 silent page loss (the C:-full incident produced exactly this live) T2 functions missing from a module page, or line numbers detached T3 import links that do not resolve to the imported module's page T4 the reverse index (imported-by) silently empty T5 a dead href emitted for an import that has no page (unresolved must render as text, and be COUNTED) T6 nondeterministic bytes (same tree -> different pages) T7 unescaped source text corrupting the HTML T8 silent truncation (the banner mechanism itself) T9 a stale stamp -- content changed but the stamp did not (freshness) T10 directory pages losing descriptions or member links license_tier: ORIGINAL No hw writes (Rule 26).

dependencies 4 imports · 0 importers

nx_syscalls.nx nx_gate_verdict.nx nx_gatelib.nx nx_codewiki_lib.nx nx_codewiki_gate.nx

imports: nx_syscalls.nxnx_gate_verdict.nxnx_gatelib.nxnx_codewiki_lib.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 gv_head gv_puts sys_write sys_mkdir cg_write sys_openat_wr sys_write ↻ sys_close sys_mmap ↻ gv_check gv_puts ↻ gl_read sys_openat_rd sys_read sys_close ↻ cg_has sys_unlinkat eg_new sys_mmap ↻ gl_walk sys_openat_rd ↻ sys_mmap ↻ sys_getdents64 dirent_type dirent_name gl_isdotdot gl_join gl_walk ↻ gl_len gl_is_nx eg_intern eg_hash eg_name_eq gl_read ↻ nis_scan nis_is_ws eg_add_edge

structs

none

consts

27const CG_BUF: i64 = 4194304
28const CG_SCRATCH: i64 = 4096

functions

30func cg_write(path: *u8, s: *u8) -> i64
46func cg_has(hay: *u8, hn: i64, needle: *u8) -> i64
called by 1: main
61func cg_eqbytes(a: *u8, an: i64, b: *u8, bn: i64) -> i64
68func main() -> i64