code wiki / _hdl_build / nx_codewiki_gate.nx
nx_codewiki_gate.nx
buildroot/runtime/_hdl_build/nx_codewiki_gate.nx
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
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
structs
| none |
consts
| 27 | const CG_BUF: i64 = 4194304 |
| 28 | const CG_SCRATCH: i64 = 4096 |
functions
| 30 | func cg_write(path: *u8, s: *u8) -> i64 |
| 46 | func cg_has(hay: *u8, hn: i64, needle: *u8) -> i64 called by 1: main |
| 61 | func cg_eqbytes(a: *u8, an: i64, b: *u8, bn: i64) -> i64 |
| 68 | func main() -> i64 |