code wiki / _hdl_build / nx_wiki_publish_guard_sanity.nx

nx_wiki_publish_guard_sanity.nx

buildroot/runtime/_hdl_build/nx_wiki_publish_guard_sanity.nx

3048 B52 linesdepth 8pulls 9 transitivereach 0 importersview sourcekind tooltopic wiki
docsdependenciesstructsconstsfunctions

about

nx_wiki_publish_guard_sanity.nx -- READ-ONLY sanity run of the pre-publish guard against the REAL emitted live page web_assets/nist_stem.html (-> nishifamily.com/wiki/nist_stem.html). It reads the page bytes off disk (ss_readall) and runs pg_decide with the corpus = the slugs that page actually links to. Expected verdict: PG_ALLOW (the page is fresh-stamped, has zero [[cite:...]] tokens, all its /wiki/<x>.html links are in the corpus, and the body is real content). It writes NOTHING; it only inspects + prints the verdict. license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_wiki_publish_guard.nx nx_syscalls.nx nx_wiki_publish_guard_sanity.n

imports: nx_wiki_publish_guard.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 sys_mmap ss_readall sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close s_w sys_write sys_exit s_num sys_mmap ↻ sys_write ↻ pg_decide pg_is_placeholder pg_contains pg_len pg_has_freshness pg_contains ↻ pg_all_cites_resolve sys_mmap ↻ war_get_by_cid war_blobkey war_cat ss_get_cap sys_mmap ↻ ss_scan_cap sys_mmap ↻ ss_manifest_cap ss_scan_seglist pg_all_links_live pg_len ↻ pg_region_eq s_codename

structs

none

consts

none

functions

10func s_w(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 }
called by 1: main calls 1: sys_write
11func s_num(v: i64) -> i64
called by 1: main calls 2: sys_mmapsys_write
19func s_codename(v: i64) -> *u8
called by 1: main
28func main() -> i64