code wiki / _hdl_build / nx_eco_roadmap.nx
nx_eco_roadmap.nx source
↩ module page · 125 lines · 11055 B
1// nx_eco_roadmap.nx -- the LIVING ROADMAP generator (operator: "a living roadmap pushed to nishifamily.com in
2// the nishi wiki so i can track progress toward s-class-exceed overall and per workstream... measured against
3// standards/compliance, legally and engineerily (IEEE etc)"). DATA-DRIVEN: each workstream carries a MATURITY
4// grade (the AUDITOR's ladder ABSENT<TOY<FUNCTIONAL<PRODUCTION<S-CLASS<EXCEED) + its GOVERNING STANDARDS (the
5// COMPLIANCE organ's registry, legal + engineering) + a conformance % + the next rung. Re-encode the grades
6// (the Auditor/Compliance re-measure) and re-run -> the roadmap is LIVING. Emits /tmp/nishi_roadmap.html for
7// the sovereign page push. license_tier: ORIGINAL Renders, does not grade -- grading stays with Auditor+Compliance.
8import "nx_syscalls.nx"
9
10func rw(fd: i64, s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(fd,s,n); return n }
11func rn(fd: i64, v: i64) -> i64 { let b: *u8=sys_mmap(28); var m: i64=v; 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{b[i]=t[k-1-i];i=i+1}; sys_write(fd,b,k); return 0 }
12
13// maturity ladder: 0 ABSENT,1 TOY,2 FUNCTIONAL,3 PRODUCTION,4 S-CLASS,5 EXCEED
14func grade_label(g: i64) -> *u8 {
15 if g==0 { return "ABSENT" as *u8 }
16 if g==1 { return "TOY" as *u8 }
17 if g==2 { return "FUNCTIONAL" as *u8 }
18 if g==3 { return "PRODUCTION" as *u8 }
19 if g==4 { return "S-CLASS" as *u8 }
20 return "EXCEED" as *u8
21}
22func grade_color(g: i64) -> *u8 {
23 if g<=1 { return "#b3261e" as *u8 } // red (toy/absent)
24 if g==2 { return "#b9770e" as *u8 } // orange (functional)
25 if g==3 { return "#13315c" as *u8 } // navy (production)
26 if g==4 { return "#1e7d34" as *u8 } // green (s-class)
27 return "#B68A35" as *u8 // gold (exceed)
28}
29
30const NW: i64 = 10
31
32func main() -> i64 {
33 let name:*i64=sys_mmap(8*NW) as *i64; let grade:*i64=sys_mmap(8*NW) as *i64; let conf:*i64=sys_mmap(8*NW) as *i64
34 let std:*i64=sys_mmap(8*NW) as *i64; let next:*i64=sys_mmap(8*NW) as *i64; let layer:*i64=sys_mmap(8*NW) as *i64
35
36 name[0]="Compiler (NishiLang -> x86-64)" as *u8 as i64; layer[0]=1; grade[0]=1; conf[0]=40
37 std[0]="IEEE 754; self-host byte-stability; codegen correctness" as *u8 as i64
38 next[0]="W2: regalloc O(n^2)->O(n log n) + fix the captured runtime-miscompile (signal in backlog)" as *u8 as i64
39
40 name[1]="Toolchain / Linker (nxasm, ELF)" as *u8 as i64; layer[1]=2; grade[1]=3; conf[1]=85
41 std[1]="ELF / System V x86-64 ABI" as *u8 as i64
42 next[1]="byte-exact ELF vs gcc on the corpus; retire gcc from the build path" as *u8 as i64
43
44 name[2]="Crypto (SHA/HMAC/ECDSA/ChaCha)" as *u8 as i64; layer[2]=3; grade[2]=2; conf[2]=55
45 std[2]="NIST FIPS 180/198; RFC 6979; OWASP Password Storage (Argon2id)" as *u8 as i64
46 next[2]="Argon2id+BLAKE2b (raised hand -> Engineer); close the ~488x OpenSSL perf gap" as *u8 as i64
47
48 name[3]="TLS / HTTPS server" as *u8 as i64; layer[3]=5; grade[3]=3; conf[3]=80
49 std[3]="RFC 8446 (TLS 1.3); RFC 9110 (HTTP); LetsEncrypt chain" as *u8 as i64
50 next[3]="cipher-suite coverage; HSTS/CSP hardening; fault-injection gate" as *u8 as i64
51
52 name[4]="SSH client (sovereign)" as *u8 as i64; layer[4]=5; grade[4]=2; conf[4]=60
53 std[4]="RFC 4251-4254; ed25519; chacha20-poly1305" as *u8 as i64
54 next[4]="W1: comprehensive OpenSSH benchmark (throughput/latency/features) -> S-class" as *u8 as i64
55
56 name[5]="Hosting / Multi-site web serving" as *u8 as i64; layer[5]=7; grade[5]=3; conf[5]=82
57 std[5]="RFC 9110 HTTP; atomic rename(2) deploy; hot content" as *u8 as i64
58 next[5]="A1 sovereign supervisor at boot (retire .sh); A3 FD-passing zero-downtime swap" as *u8 as i64
59
60 name[6]="andelinwest Site + Brand" as *u8 as i64; layer[6]=8; grade[6]=2; conf[6]=58
61 std[6]="LEGAL: Utah State Bar advertising, ADA; ENG: WCAG 2.2 AA, Core Web Vitals, NN/g, Awwwards" as *u8 as i64
62 next[6]="B5 real firm content (operator input); B4 WCAG 2.2 AA audit; B6 visual-identity + CWV research" as *u8 as i64
63
64 name[7]="CMS / WYSIWYG (legal team self-manage)" as *u8 as i64; layer[7]=8; grade[7]=1; conf[7]=25
65 std[7]="OWASP ASVS / Top 10; CSRF synchronizer tokens; Argon2id; sanitize-LAST; WCAG 2.2" as *u8 as i64
66 next[7]="tutor Argon2id + HTML allowlist-sanitizer (2 raised hands); then editor/auth/save compose" as *u8 as i64
67
68 name[8]="Onsite Search (BM25/PPMI)" as *u8 as i64; layer[8]=8; grade[8]=2; conf[8]=50
69 std[8]="IR ranking (BM25); per-tenant isolation" as *u8 as i64
70 next[8]="per-site isolated index, host-scoped queries, ZERO cross-site bleed" as *u8 as i64
71
72 name[9]="Team / Process / Autonomy" as *u8 as i64; layer[9]=9; grade[9]=3; conf[9]=70
73 std[9]="WSJF/SAFe prioritization; RACI separation of duties; resource governance" as *u8 as i64
74 next[9]="continuous resource-aware loop; drive CLAUDE-LOAD toward 0 (tutoring ledger)" as *u8 as i64
75
76 // overall progress toward EXCEED (sum of grades / max).
77 var sum: i64=0; var i: i64=0; while i<NW { sum=sum+grade[i]; i=i+1 }
78 let pct: i64 = sum * 100 / (NW * 5)
79
80 let fd: i64 = sys_openat_wr("/tmp/nishi_roadmap.html" as *u8, 0x1a4)
81 rw(fd, "<!doctype html><html lang=\"en\"><head><meta charset=\"utf-8\"><meta name=\"viewport\" content=\"width=device-width,initial-scale=1\">\n" as *u8)
82 rw(fd, "<title>Nishi Ecosystem Roadmap -- progress to S-class & beyond</title><style>\n" as *u8)
83 rw(fd, ":root{--ink:#0A1B2E;--brand:#13315C;--accent:#B68A35;--paper:#FBFAF7;--line:#E4E0D7;--muted:#566273}\n" as *u8)
84 rw(fd, "*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.6 system-ui,-apple-system,\"Segoe UI\",sans-serif}\n" as *u8)
85 rw(fd, "h1,h2,h3{font-family:Georgia,serif;color:var(--brand);margin:0 0 .3em}.wrap{max-width:1080px;margin:0 auto;padding:0 22px}\n" as *u8)
86 rw(fd, "header{background:linear-gradient(160deg,#13315C,#0B2545);color:#fff;padding:42px 0}header h1{color:#fff;font-size:2rem}header p{color:#cfd9e8;margin:.4em 0 0}\n" as *u8)
87 rw(fd, ".overall{background:#fff;border:1px solid var(--line);border-radius:12px;padding:22px;margin:24px 0}\n" as *u8)
88 rw(fd, ".bar{height:18px;border-radius:9px;background:#eee;overflow:hidden;margin-top:8px}.bar>span{display:block;height:100%;background:linear-gradient(90deg,#13315C,#B68A35)}\n" as *u8)
89 rw(fd, "table{width:100%;border-collapse:collapse;background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden}\n" as *u8)
90 rw(fd, "th,td{text-align:left;padding:12px 14px;border-bottom:1px solid var(--line);vertical-align:top;font-size:.92rem}th{background:#f3f0e9;color:var(--brand)}\n" as *u8)
91 rw(fd, ".badge{display:inline-block;color:#fff;font-weight:700;font-size:.78rem;padding:3px 9px;border-radius:20px;white-space:nowrap}\n" as *u8)
92 rw(fd, ".mini{height:7px;border-radius:4px;background:#eee;margin-top:6px;overflow:hidden}.mini>span{display:block;height:100%;background:var(--accent)}\n" as *u8)
93 rw(fd, ".legend{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0 0;font-size:.78rem}.legend span{padding:2px 8px;border-radius:20px;color:#fff}\n" as *u8)
94 rw(fd, "section{padding:26px 0}.gov{background:#fff;border:1px solid var(--line);border-radius:12px;padding:22px}.gov li{margin:.3em 0}.muted{color:var(--muted)}footer{background:#0B2545;color:#aebdd2;padding:22px 0;font-size:.82rem}\n" as *u8)
95 rw(fd, "</style></head><body>\n" as *u8)
96
97 rw(fd, "<header><div class=\"wrap\"><h1>Nishi Ecosystem Roadmap</h1><p>Living view of every workstream's progress from TOY to S-CLASS and beyond -- graded by the Auditor, measured against standards by Compliance.</p></div></header>\n" as *u8)
98 rw(fd, "<div class=\"wrap\"><div class=\"overall\"><h2>Overall progress toward S-class-EXCEED: " as *u8); rn(fd, pct); rw(fd, "%</h2>\n" as *u8)
99 rw(fd, "<div class=\"bar\"><span style=\"width:" as *u8); rn(fd, pct); rw(fd, "%\"></span></div>\n" as *u8)
100 rw(fd, "<p class=\"muted\">Honest roll-up of " as *u8); rn(fd, NW); rw(fd, " workstreams on the 0=ABSENT .. 5=EXCEED ladder. Strong PRODUCTION pockets (toolchain, TLS, hosting); the keystone holding the rest back is the COMPILER (W2 regalloc).</p>\n" as *u8)
101 rw(fd, "<div class=\"legend\"><span style=\"background:#b3261e\">TOY</span><span style=\"background:#b9770e\">FUNCTIONAL</span><span style=\"background:#13315c\">PRODUCTION</span><span style=\"background:#1e7d34\">S-CLASS</span><span style=\"background:#B68A35\">EXCEED</span></div></div>\n" as *u8)
102
103 rw(fd, "<section class=\"wrap\"><table><tr><th>L</th><th>Workstream</th><th>Maturity</th><th>Conformance</th><th>Governing standards (legal + engineering)</th><th>Next rung</th></tr>\n" as *u8)
104 i = 0
105 while i < NW {
106 rw(fd, "<tr><td>L" as *u8); rn(fd, layer[i]); rw(fd, "</td><td><b>" as *u8); rw(fd, name[i] as *u8); rw(fd, "</b></td>\n" as *u8)
107 rw(fd, "<td><span class=\"badge\" style=\"background:" as *u8); rw(fd, grade_color(grade[i])); rw(fd, "\">" as *u8); rw(fd, grade_label(grade[i])); rw(fd, "</span></td>\n" as *u8)
108 rw(fd, "<td>" as *u8); rn(fd, conf[i]); rw(fd, "%<div class=\"mini\"><span style=\"width:" as *u8); rn(fd, conf[i]); rw(fd, "%\"></span></div></td>\n" as *u8)
109 rw(fd, "<td class=\"muted\">" as *u8); rw(fd, std[i] as *u8); rw(fd, "</td><td>" as *u8); rw(fd, next[i] as *u8); rw(fd, "</td></tr>\n" as *u8)
110 i = i + 1
111 }
112 rw(fd, "</table></section>\n" as *u8)
113
114 rw(fd, "<section class=\"wrap\"><div class=\"gov\"><h2>How we measure (who owns what)</h2><ul>\n" as *u8)
115 rw(fd, "<li><b>Auditor</b> -- owns the MATURITY ladder (TOY -> S-class -> EXCEED) on measured evidence; cannot promote a layer that fails its governing standard.</li>\n" as *u8)
116 rw(fd, "<li><b>Compliance & Standards organ</b> -- owns the STANDARDS REGISTRY (engineering: IEEE/OWASP/WCAG/RFC/NIST; legal: Utah Bar, ADA, privacy) and measures CONFORMANCE; feeds the Auditor's gate.</li>\n" as *u8)
117 rw(fd, "<li><b>Referee</b> -- adversarially re-verifies grades and conformance before they are published (no self-grading).</li>\n" as *u8)
118 rw(fd, "<li><b>PM</b> -- prioritizes the gaps into the backlog (WSJF) and OWNS this roadmap; does NOT grade (separation of duties).</li>\n" as *u8)
119 rw(fd, "<li><b>Signal capture</b> -- the build runner auto-files any miscompile/crash to the backlog, so nothing is silently dodged.</li>\n" as *u8)
120 rw(fd, "</ul><p class=\"muted\">LIVING: re-grade (Auditor + Compliance re-measure) -> re-run this generator -> the page updates. No hand-editing.</p></div></section>\n" as *u8)
121 rw(fd, "<footer><div class=\"wrap\">Nishi Ecosystem -- sovereign, bits-up. Generated from team measurements; published to the Nishi wiki.</div></footer>\n</body></html>\n" as *u8)
122 sys_close(fd)
123 rw(1, "roadmap generated: /tmp/nishi_roadmap.html overall=" as *u8); rn(1, pct); rw(1, "%\n" as *u8)
124 sys_exit(0); return 0
125}