code wiki / _hdl_build / nx_cms_seo_gate.nx

nx_cms_seo_gate.nx

buildroot/runtime/_hdl_build/nx_cms_seo_gate.nx

17731 B322 linesdepth 5pulls 9 transitivereach 0 importersview sourcekind gate/prooftopic cms
docsdependenciesstructsconstsfunctions

about

nx_cms_seo_gate.nx -- CMS W2 GATE (re-runnable, evidence-driven): SEO head + sitemap + robots (the Yoast class). Proves the TEAM-AUTHORED _pe_seohead head renders into the live page; values are attribute-ESCAPED (no injection through a SEO field); empty SEO title/desc FALL BACK to the headline/tagline; /sitemap.xml is well-formed and references the site URL; /robots.txt points at the sitemap. Appends "CMSGATE row=nx_cms_seo ... verdict=PASS|FAIL". Exit 0 iff all rows pass. license_tier: ORIGINAL

dependencies 5 imports · 0 importers

nx_cms_store.nx nx_connect.nx nx_sha256.nx nx_syscalls.nx nx_kill_portable.nx nx_cms_seo_gate.nx

imports: nx_cms_store.nxnx_connect.nxnx_sha256.nxnx_syscalls.nxnx_kill_portable.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main sg_mkdir sys_mmap sg_writefile sys_openat_wr sys_write sys_close sg_len cst_copy sys_openat_rd sys_openat_wr ↻ sys_close ↻ sys_mmap ↻ sys_read sys_write ↻ sys_openat_rd ↻ sg_w sys_write ↻ sys_exit sys_close ↻ sys_renameat sys_mmap ↻ sha256_digest sys_mmap ↻ sha256_init sys_mmap ↻ sha256_k sha256_update sha256_compress_ni_blocks blk_set_byte sha256_compress sha256_compress_ni blk_word blk_byte sha256_final blk_set_byte ↻ sha256_compress ↻ sys_fork sys_openat_wr ↻ sys_dup3

structs

none

consts

13const SG_PORT: i64 = 8088
14const SG_SITE: *u8 = "/tmp/_cms_seo_site"

functions

16func sg_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 2: sg_rowmain calls 1: sys_write
17func sg_len(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n }
called by 3: sg_indexsg_postmain
18func sg_cat(dst: *u8, off: i64, s: *u8) -> i64 { var o: i64=off; var k: i64=0; while s[k]!=(0 as u8){dst[o]=s[k];o=o+1;k=k+1} return o }
called by 3: sg_postsg_getmain
19func sg_catn(dst: *u8, off: i64, s: *u8, n: i64) -> i64 { var o: i64=off; var k: i64=0; while k<n{dst[o]=s[k];o=o+1;k=k+1} return o }
called by 3: sg_postsg_getmain
20func sg_index(hay: *u8, n: i64, needle: *u8) -> i64
called by 2: sg_hasmain calls 1: sg_len
32func sg_has(hay: *u8, n: i64, needle: *u8) -> i64 { if sg_index(hay, n, needle) >= 0 { return 1 } return 0 }
called by 1: main calls 1: sg_index
34func sg_http(req: *u8, rl: i64, resp: *u8, cap: i64) -> i64
61func sg_post(req: *u8, path: *u8, cookie: *u8, body: *u8) -> i64
called by 1: main calls 4: sg_catsg_catnsg_lensys_mmap
79func sg_get(req: *u8, path: *u8, cookie: *u8) -> i64
called by 1: main calls 2: sg_catsg_catn
87func sg_row(id: i64, ok: i64, what: *u8) -> i64
called by 1: main calls 2: sg_wsys_mmap
96func sg_mkdir(path: *u8, mode: i64) -> i64 { let nb: *i64 = sys_mmap(8) as *i64; nb[0] = 258; return __syscall(nb[0], 0 - 100, path, mode, 0, 0, 0) }
called by 1: main calls 1: sys_mmap
97func sg_writefile(path: *u8, buf: *u8, n: i64) -> i64 { let fd: i64 = sys_openat_wr(path, 0x1a4); if fd < 0 { return 0 } sys_write(fd, buf, n); sys_close(fd); return 1 }
99func main() -> i64