nx_brand_apply_enforced.nx
buildroot/runtime/nx_brand_apply_enforced.nx
about
nx_brand_apply_enforced.nx -- the "gorgeous-by-default" ENFORCEMENT gate (operationalizes nx_emitter_bench).
So we GET s-class-exceed instead of hoping for it: this is a reusable PASS/FAIL an emitter compile-gate
calls on its output HTML. It FAILS any page that isn't on the design-system adoption bar, so no emitter
can ship an off-SSOT / un-responsive / inaccessible page again. Composes nx_uxcx_grade's pure byte-scan
(uxg_has_lit) -- no reinvention. Proven here against REAL emitted pages: the tokenized site-builder
pipeline PASSES, a bare legacy page FAILS (neg-control), and it pinpoints each page's specific gap.
THE BAR (the 6 "gorgeous-by-default" invariants, each an HTML-observable signal):
1 canonical design tokens (var(--nx-*), the shared SSOT) 2 responsive (@media(max-width)
3 accessible motion (prefers-reduced-motion) 4 keyboard a11y (:focus-visible)
5 sovereign (no external http asset) 6 semantic landmarks (<header + <footer)
(skip-link is reported as a WARN, not gated -- it's the site-builder's one remaining a11y polish item.)
100% sovereign. license_tier: ORIGINAL expect_exit: 0
dependencies 2 imports · 0 importers
imports: nx_syscalls_x86_64.nxnx_sclass_enforce_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
| none |
functions
| 17 | func ew(s: *u8) -> i64 { var n: i64=0; while s[n]!=0 { n=n+1 } sys_write(1,s,n); return 0 } |
| 18 | func en(v: i64) -> i64 { let bb: *u8=sys_mmap(28); var m: i64=v; if m<0{m=0-m;sys_write(1,"-" as *u8,1)} let t: *u8=sys_mmap(28); var k: i64=0; if m==0{t[0]=48 as u8;k=1} while m>0{t[k]=(48+(m-(m/10)*10)) as u8;m=m/10;k=k+1} var i: i64=0; while i<k{bb[i]=t[k-1-i];i=i+1} sys_write(1,bb,k); return 0 } |
| 21 | func violations(h: *u8, n: i64) -> i64 { return sce_violations(h, n) } |
| 22 | func list_violations(h: *u8, n: i64) -> i64 |
| 34 | func audit(name: *u8, path: *u8) -> i64 |
| 47 | func tcheck(pass: i64, label: *u8, fails: *i64) -> i64 |
| 53 | func main() -> i64 |