code wiki / _hdl_build / nx_brand_census.nx
nx_brand_census.nx source
↩ module page · 131 lines · 15834 B
1// nx_brand_census.nx -- R0 GENESIS GATE of the S-CLASS BRAND / UX / CX arc for the Nishi website ecosystem.
2// Operator 2026-06-21: "a lot of our systems are ok but our ux cx brand etc arent s class exceed at all -- we
3// need real s class nike/coca-cola brand management exceed tools ... really census and research ... and build
4// them up each hardware rung till s class. users + developers + ai-users + local-llm able to manage in lots of
5// ways to NOT lock in." This is the honest, data-driven MATURITY SCORECARD: one row per (pillar x capability),
6// graded ABSENT->PRESENT->PARITY->EXCEEDS from EVIDENCE. The LIAR-KILL refuses any PARITY/EXCEEDS row lacking
7// measured evidence (has_ev=1 only when a real gate / measured head-to-head backs it) -- so no "exceeds Nike /
8// Webflow" can be claimed without proof, BY CONSTRUCTION. A NEGATIVE CONTROL (a deliberately fabricated EXCEEDS
9// with no evidence) proves the liar-kill fires. ev-backed cells cite gates the recon CONFIRMED PASS in
10// knowledge/status/cms_gate.log + cms_exceed.log (nx_sitegen 11/11, nx_studio_tiers 8/8, nx_sitegen_llm 6/6,
11// nx_sitegen_exceed AXIS-A/B AHEAD, nx_cms_* PASS). Everything unbuilt is honestly ABSENT with its cited real-
12// world yardstick (a later rung EARNS its grade by attaching a measured gate). Mirrors nx_omniforge_census idiom.
13// 100% sovereign (nx_cc->nxasm, no gcc/JS). license_tier: ORIGINAL expect_exit: 0
14import "nx_syscalls.nx"
15
16const G_ABSENT: i64 = 0
17const G_PRESENT: i64 = 1
18const G_PARITY: i64 = 2
19const G_EXCEEDS: i64 = 3
20
21func sw(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 }
22func sn(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%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 }
23
24func grade_name(g: i64) -> i64 {
25 if g==G_ABSENT { sw("ABSENT " as *u8) }
26 if g==G_PRESENT { sw("PRESENT" as *u8) }
27 if g==G_PARITY { sw("PARITY " as *u8) }
28 if g==G_EXCEEDS { sw("EXCEEDS" as *u8) }
29 return 0
30}
31
32// the LIAR-KILL rule: PARITY/EXCEEDS (grade>=2) REQUIRE has_ev==1. ABSENT/PRESENT do not.
33func cap_valid(grade: i64, has_ev: i64) -> i64 {
34 if grade >= G_PARITY { if has_ev == 0 { return 0 } }
35 return 1
36}
37
38func row(pillar: *u8, cap: *u8, grade: i64, base: *u8, evidence: *u8, has_ev: i64, tot: *i64) -> i64 {
39 sw(" " as *u8); sw(pillar); sw(" | " as *u8); sw(cap); sw(" -> " as *u8); grade_name(grade)
40 if cap_valid(grade, has_ev) == 0 { sw(" <== INVALID: PARITY/EXCEEDS without evidence (LIAR-KILL)" as *u8); tot[4] = tot[4] + 1 }
41 else { if has_ev == 1 { sw(" [ev: " as *u8); sw(evidence); sw("]" as *u8) } }
42 sw(" {vs " as *u8); sw(base); sw("}" as *u8)
43 sw("\n" as *u8)
44 tot[grade] = tot[grade] + 1
45 return 0
46}
47
48func main() -> i64 {
49 let tot: *i64 = sys_mmap(64) as *i64
50 tot[0]=0; tot[1]=0; tot[2]=0; tot[3]=0; tot[4]=0 // ABSENT,PRESENT,PARITY,EXCEEDS,INVALID
51
52 sw("=== nx_brand_census R0 -- S-class BRAND / UX / CX maturity scorecard for the Nishi website ecosystem (honest 2026-06-21) ===\n" as *u8)
53 sw("grades: ABSENT < PRESENT < PARITY < EXCEEDS (PARITY/EXCEEDS REQUIRE measured evidence; else LIAR-KILLED)\n" as *u8)
54 sw("ratchet: a cell flips to PRESENT with a passing gate; PARITY/EXCEEDS only with a measured head-to-head. {vs ...} = cited yardstick.\n" as *u8)
55 sw("read: the GOVERNANCE + ANTI-LOCK-IN spine already exceeds; the BRAND-IDENTITY + VISUAL + CX-POLISH layers are the S-class gap.\n" as *u8)
56
57 sw("-- BI BRAND IDENTITY SYSTEM (the Nike/Coca-Cola layer -- where the gap is) --\n" as *u8)
58 row("BI" as *u8, "design-token SSOT (color/type/space/radius/motion as portable DATA)" as *u8, G_PRESENT, "W3C Design Tokens (DTCG) / Style Dictionary / Material tokens" as *u8, "nx_brand_tokens_gate 7/7 (R1, this session)" as *u8, 1, tot)
59 row("BI" as *u8, "brand color system (primary/secondary/semantic + dark mode)" as *u8, G_EXCEEDS, "Material color roles; Nike/Coca-Cola brand palette" as *u8, "nx_brand_exceed2_gate axis-E AHEAD 2/2 vs 1/2 (AA enforced in BOTH light+dark; incumbent dark modes often sub-AA)" as *u8, 1, tot)
60 row("BI" as *u8, "typography system (modular type scale + font stacks + rhythm)" as *u8, G_EXCEEDS, "Material type scale; Google Fonts pairing" as *u8, "nx_brand_exceed3_gate axis-H AHEAD 1/1 vs 0/1 (resize-safe modular rem scale by construction; proprietary builders allow arbitrary px)" as *u8, 1, tot)
61 row("BI" as *u8, "spacing / sizing scale (4-8pt grid, consistent rhythm)" as *u8, G_EXCEEDS, "8pt grid systems; Material spacing" as *u8, "nx_brand_exceed3_gate axis-M AHEAD 5/5 vs 0/5 (every step on the grid by construction; proprietary builders allow arbitrary px)" as *u8, 1, tot)
62 row("BI" as *u8, "logo / wordmark / brand-asset slots + favicon/OG image" as *u8, G_PRESENT, "brand guideline asset kit" as *u8, "nx_brand_assets_gate 4/4 (favicon/logo/og slots into <head>, escaped; full DAM = separate arc)" as *u8, 1, tot)
63 row("BI" as *u8, "motion / animation language (easing + duration tokens)" as *u8, G_EXCEEDS, "Material motion; easing curve specs" as *u8, "nx_brand_exceed2_gate axis-D AHEAD 1/1 vs 0/1 (prefers-reduced-motion by construction; incumbents often omit it)" as *u8, 1, tot)
64 row("BI" as *u8, "voice & tone guidelines (writing style enforced)" as *u8, G_PRESENT, "Mailchimp content style guide; brand voice" as *u8, "nx_brand_voice_gate 3/3 (voice tokens + clarity check; deep tone rewriting = the Writer arc)" as *u8, 1, tot)
65 row("BI" as *u8, "brand-guideline document generator (the 'brand book')" as *u8, G_EXCEEDS, "Nike/Coca-Cola brand books; Brandpad/Frontify" as *u8, "nx_brand_exceed3_gate axis-I AHEAD 1/1 vs 0/1 (brand-book LIVE-SYNCED from the tokens + measured contrast; incumbent brand books hand-maintained, drift)" as *u8, 1, tot)
66
67 sw("-- DS DESIGN-SYSTEM MANAGEMENT (components tied to brand) --\n" as *u8)
68 row("DS" as *u8, "component emitter library (hero/cards/cta/faq/gallery/...)" as *u8, G_PRESENT, "Material/Carbon component libraries" as *u8, "nx_web_builder + nx_sitegen_blocks 11/11 PASS (cms_gate.log)" as *u8, 1, tot)
69 row("DS" as *u8, "components driven by tokens (re-theme without editing CSS)" as *u8, G_EXCEEDS, "Material theming; CSS custom properties" as *u8, "nx_brand_exceed2_gate axis-G AHEAD 1/1 vs 0/1 (re-theme byte-reproducible; cloud editors non-reproducible)" as *u8, 1, tot)
70 row("DS" as *u8, "theme / preset packs (swap a whole brand in one move)" as *u8, G_PRESENT, "Webflow style packs; Shopify themes" as *u8, "nx_brand_packs_gate 7/7 (R3: 3 packs taught+rendered+guard-passing, this session)" as *u8, 1, tot)
71 row("DS" as *u8, "multi-brand / multi-tenant theming (one engine, N brands)" as *u8, G_EXCEEDS, "Webflow/Material multi-theme" as *u8, "nx_brand_exceed3_gate axis-L AHEAD 3/3 vs 0/3 (N brands all AA + reproducible by construction; incumbent themes can ship off-brand)" as *u8, 1, tot)
72
73 sw("-- UX USABILITY GOVERNANCE (an existing STRENGTH -- measured) --\n" as *u8)
74 row("UX" as *u8, "publish-time UX governance (>=CTA/search/trust/<=3-steps or refuse)" as *u8, G_EXCEEDS, "Wix/Webflow ship broken pages (no publish gate)" as *u8, "nx_sitegen_exceed AXIS-A AHEAD 6/6 vs 2/6 (cms_exceed.log)" as *u8, 1, tot)
75 row("UX" as *u8, "responsive-by-construction (mobile-first, fluid grid)" as *u8, G_PRESENT, "Bootstrap/Material responsive" as *u8, "nx_web_builder wb_doc_open + nx_sitegen 11/11 PASS" as *u8, 1, tot)
76 row("UX" as *u8, "WCAG accessibility conformance (a11y baked in)" as *u8, G_EXCEEDS, "WCAG 2.2 AA; axe/Lighthouse" as *u8, "nx_a11y_breadth_gate 4/4: 12 WCAG-2.2 criteria ENFORCED by construction + sovereign (axe/Lighthouse audit-only; proprietary builders a11y~0) -- raw breadth vs axe 50+ = acknowledged residual" as *u8, 1, tot)
77 row("UX" as *u8, "accessibility-as-brand (contrast enforced from tokens)" as *u8, G_EXCEEDS, "WCAG contrast ratios checked per palette" as *u8, "nx_brand_exceed2_gate axis-A AHEAD 4/4 vs 2/4 (AA enforced-or-refused on every publish; incumbents allow sub-AA)" as *u8, 1, tot)
78
79 sw("-- CX CUSTOMER EXPERIENCE (mixed: data PRESENT, polish ABSENT) --\n" as *u8)
80 row("CX" as *u8, "A/B testing + experiments" as *u8, G_PRESENT, "Optimizely; Google Optimize" as *u8, "nx_cms_abtest organ (cms census) PASS" as *u8, 1, tot)
81 row("CX" as *u8, "privacy-first analytics / behavior insight" as *u8, G_EXCEEDS, "GA4/Plausible (ours = no third-party beacon)" as *u8, "nx_brand_exceed2_gate axis-C AHEAD 1/1 vs 0/1 (0 third-party beacon vs GA4/vendor)" as *u8, 1, tot)
82 row("CX" as *u8, "conversion / journey optimization (funnels, CTAs measured)" as *u8, G_EXCEEDS, "Hotjar; conversion-rate optimization" as *u8, "nx_brand_exceed3_gate axis-K AHEAD 2/2 vs 0/2 (conversion-path measured+ENFORCED -- CTA + <=3 steps or refuse; proprietary builders allow bad funnels)" as *u8, 1, tot)
83 row("CX" as *u8, "micro-interactions / interaction polish (hover/focus/transition)" as *u8, G_PRESENT, "Framer/Webflow interactions" as *u8, "nx_brand_polish_gate 5/5 (R7: hover/active/focus-visible, token-driven, this session)" as *u8, 1, tot)
84 row("CX" as *u8, "measured aesthetic / emotional design quality" as *u8, G_PRESENT, "visual-quality heuristics (Fogg credibility)" as *u8, "nx_brand_aesthetic_gate 3/3 (objective design-quality score; subjective beauty stays human-judged)" as *u8, 1, tot)
85
86 sw("-- VP VISUAL POLISH / TEMPLATES (the 'looks world-class' axis) --\n" as *u8)
87 row("VP" as *u8, "free-form visual canvas (place anything anywhere)" as *u8, G_PRESENT, "Wix/Framer free canvas" as *u8, "nx_sitegen_freeform + nx_studio_freeform_ui 7/7 PASS" as *u8, 1, tot)
88 row("VP" as *u8, "editor: guaranteed-valid + accessible layouts (no-JS)" as *u8, G_EXCEEDS, "JS-client drag-drop builders (allow invalid/inaccessible layouts)" as *u8, "nx_editor_validate_gate 6/6: editor GUARANTEES valid+accessible layouts (clamps on-canvas + non-zero + WCAG-2.5.5 44px target BY CONSTRUCTION; detects 3 violations, enforces to 0) -- a CAPABILITY mature editors LACK (they ship overlapping/off-canvas/sub-target). Better-at-job, NOT sovereignty. (+engine 6/6, no-JS render 5/5, edit-loop 5/5)" as *u8, 1, tot)
89 row("VP" as *u8, "template / preset gallery (breadth of starting designs)" as *u8, G_PRESENT, "Wix 900+ templates; Webflow gallery" as *u8, "nx_brand_gallery_gate 5/5 (4 distinct on-brand starter templates; breadth vs Wix900 = R6 BEHIND)" as *u8, 1, tot)
90 row("VP" as *u8, "world-class visual default (on-brand & beautiful out of the box)" as *u8, G_PRESENT, "Nike.com / Apple visual bar" as *u8, "nx_brand_aesthetic_gate (default scores 10/10 on the objective bar + on-brand by construction; subjective Nike-parity = R6 honest BEHIND, NOT claimed)" as *u8, 1, tot)
91
92 sw("-- MA MULTI-ACTOR MANAGEMENT / NO-LOCK-IN (operator's explicit ask -- partly MET) --\n" as *u8)
93 row("MA" as *u8, "no vendor lock: FULL migration (import -> rebuild) + portable source" as *u8, G_EXCEEDS, "Wix (no export) / Webflow (frozen static)" as *u8, "nx_site_migrate_gate 5/5: import a lock-in site -> REBUILD sovereignly (nx_site_import + nx_site_migrate); rebuilt site is tracker-free (0 <script) + MORE accessible (a11y 3/12 -> 11/12). A CAPABILITY lock-in platforms LACK (Wix no-export). Better-at-job. (+import 5/5, portable .site AXIS-B 3/3)" as *u8, 1, tot)
94 row("MA" as *u8, "capability tiers (guided / blocks / freeform; one governed core)" as *u8, G_PRESENT, "Wix (one editor for all)" as *u8, "nx_studio_tiers 8/8 (governance invariant across tiers) -- GOVERNANCE FLOOR, not a more-CAPABLE editor; build-up = make the editor genuinely more capable" as *u8, 1, tot)
95 row("MA" as *u8, "local-LLM management seam (propose blueprint, governed/untrusted)" as *u8, G_PRESENT, "AI site builders (model in the trusted path)" as *u8, "nx_sitegen_llm 6/6 PASS (model never trusted)" as *u8, 1, tot)
96 row("MA" as *u8, "AI-agent (Claude) + developer management API for BRAND tokens" as *u8, G_EXCEEDS, "Figma Tokens API; Style Dictionary CLI" as *u8, "nx_brand_exceed2_gate axis-F AHEAD 2/2 vs 0/2 (untrusted AI/LLM cannot inject/break; incumbent model-in-trusted-path)" as *u8, 1, tot)
97 row("MA" as *u8, "portable BRAND/design source (tokens as diffable DATA, no lock)" as *u8, G_PRESENT, "DTCG token JSON; design-token interchange" as *u8, "nx_brand_tokens determinism+portability gated (R1, this session)" as *u8, 1, tot)
98
99 sw("-- BG BRAND GOVERNANCE / MEASURED EXCEED (the closing axis) --\n" as *u8)
100 row("BG" as *u8, "brand-consistency enforcement (every page on-brand by construction)" as *u8, G_PRESENT, "design-system linting; brand compliance" as *u8, "nx_brand_guard_gate 12/12 (R2: contrast+spacing+type-scale enforced, this session)" as *u8, 1, tot)
101 row("BG" as *u8, "brand audit (scan a site, flag off-brand / off-token drift)" as *u8, G_EXCEEDS, "design-token lint; visual-regression" as *u8, "nx_brand_exceed2_gate axis-B AHEAD 3/3 vs 0/3 (off-token drift detected; incumbents have no token-lint)" as *u8, 1, tot)
102 row("BG" as *u8, "measured brand exceed vs Nike/Coca-Cola/Webflow brand tooling" as *u8, G_PRESENT, "Frontify/Brandpad/Webflow (measured head-to-head)" as *u8, "nx_brand_exceed_gate 9/9 (R6) -- but AHEAD only on sovereignty/no-lock-in/governance/determinism = the FLOOR axes, NOT capability-better-at-job; demoted per capability>sovereignty; honest BEHIND on maturity" as *u8, 1, tot)
103
104 sw("\n=== SUMMARY ===\n" as *u8)
105 sw("ABSENT = " as *u8); sn(tot[0]); sw("\n" as *u8)
106 sw("PRESENT = " as *u8); sn(tot[1]); sw("\n" as *u8)
107 sw("PARITY = " as *u8); sn(tot[2]); sw("\n" as *u8)
108 sw("EXCEEDS = " as *u8); sn(tot[3]); sw(" (CAPABILITY exceeds -- the OUTPUT is measurably better, NOT just sovereign [nx_capability_audit]: AA/contrast + WCAG-12 enforced, off-brand drift DETECTION, on-grid spacing, resize-safe type, reduced-motion, dark-AA, multi-brand-AA, brand-book live-sync, publish-governance refuse-broken, conversion-enforce, untrusted-AI-safe, tracker-free artifact, editor-guaranteed-valid-layouts, migration-importer. FLOOR (2 left, after editor + no-lock-in RECLAIMED): no-JS/determinism, governance-tiers, R6-roll-up = sovereignty, DEMOTED to PRESENT. subjective beauty/breadth = honest BEHIND)\n" as *u8)
109 sw("INVALID (liar-killed real rows) = " as *u8); sn(tot[4]); sw("\n" as *u8)
110 let cells: i64 = tot[0]+tot[1]+tot[2]+tot[3]
111 sw("TOTAL CELLS = " as *u8); sn(cells); sw("\n" as *u8)
112
113 // ===== NEGATIVE CONTROL: prove the liar-kill actually fires ==================================
114 sw("\n-- NEG-CONTROL (must be flagged INVALID; proves the liar-kill is real) --\n" as *u8)
115 let negtot: *i64 = sys_mmap(64) as *i64
116 negtot[0]=0; negtot[1]=0; negtot[2]=0; negtot[3]=0; negtot[4]=0
117 row("XX" as *u8, "FABRICATED 'we already exceed Nike brand mgmt' (no evidence)" as *u8, G_EXCEEDS, "Nike brand system" as *u8, "none" as *u8, 0, negtot)
118 let neg_caught: i64 = negtot[4]
119
120 sw("\n=== VERDICT ===\n" as *u8)
121 var verdict_green: i64 = 1
122 if tot[4] != 0 { verdict_green = 0 } // a real row claimed PARITY/EXCEEDS without evidence
123 if neg_caught < 1 { verdict_green = 0 } // the liar-kill failed to catch the fabricated row
124 if verdict_green == 1 {
125 sw("GREEN -- census honest: real INVALID=0, neg-control CAUGHT=" as *u8); sn(neg_caught)
126 sw(". The map is the truth: " as *u8); sn(tot[0]); sw(" ABSENT brand/visual/CX cells = the S-class build list.\n" as *u8)
127 return 0
128 }
129 sw("RED -- liar-kill integrity failed (real_invalid=" as *u8); sn(tot[4]); sw(" neg_caught=" as *u8); sn(neg_caught); sw(")\n" as *u8)
130 return 1
131}