code wiki / _hdl_build / nx_uigen_site_gate.nx
nx_uigen_site_gate.nx
buildroot/runtime/_hdl_build/nx_uigen_site_gate.nx
about
nx_uigen_site_gate.nx -- MEASURES the prompt-to-site rung: one brief -> a linked MULTI-PAGE site. The
checks parse the emitted BYTES independently of the generator: (T1) the site PLAN matches intent for 3
held-out briefs, inappropriate pages ABSENT; (T2) every page carries the FULL cross-page nav + all
S-class craft markers; (T3) anti-fabrication -- every plain .html href on every page resolves to a page
the plan actually emits, and the checker itself is liar-killed with a fabricated link; (T4) per-page
structural appropriateness (form on contact, catalog+pricing on products, exactly one hero/final on
index, scorecard+dtable on status); (T5) ONE generated palette coheres across every page of a site,
differs across sites, matches the topic hue EXACTLY, and emission is deterministic; (T6) sitemap lists
exactly the plan and robots points at it. expect_exit: 0 license_tier: ORIGINAL
dependencies 2 imports · 0 importers
imports: nx_syscalls.nxnx_uigen_site.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
| 15 | const K_REGION: i64 = 262144 |
| 17 | const GATE_TEETH: i64 = 16 |
functions
| 20 | func he_putn(buf: *u8, off: i64, v: i64) -> i64 |
| 32 | func gp(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 } |
| 33 | func gn(v: i64) -> i64 { if v==0 { sys_write(1,"0" as *u8,1); return 0 } var m: i64=v; if m<0 { sys_write(1,"-" as *u8,1); m=0-m } let t: *u8=sys_mmap(28); var k: i64=0; while m>0 { t[k]=(48+(m%10)) as u8; m=m/10; k=k+1 } while k>0 { k=k-1; sys_write(1,(((t as i64)+k) as *u8),1) } return 0 } |
| 34 | func litlen(lit: *u8) -> i64 { var n: i64=0; while lit[n]!=(0 as u8){n=n+1} return n } |
| 35 | func idxat(buf: *u8, base: i64, len: i64, lit: *u8) -> i64 |
| 42 | func cntat(buf: *u8, base: i64, len: i64, lit: *u8) -> i64 |
| 50 | func href_bad(buf: *u8, base: i64, len: i64, plan: *i64, n: i64, tmp: *u8) -> i64 |
| 91 | func craft_ok(buf: *u8, base: i64, len: i64) -> i64 |
| 100 | func plan_has(plan: *i64, n: i64, kind: i64) -> i64 called by 1: main |
| 105 | func sname(kind: i64) -> *u8 called by 1: main |
| 112 | func main() -> i64 |