code wiki / _hdl_build / nx_ciq_census.nx

nx_ciq_census.nx source

↩ module page · 125 lines · 10952 B

1// nx_ciq_census.nx -- R0 GENESIS GATE of the NISHI COMPETITIVE-INTELLIGENCE QUADRANT arc (CIQ): 2// the sovereign team that produces an S-class, MEASURED, four-quadrant (Gartner Magic Quadrant + 3// HBR/BCG growth-share) competition + features analysis -- researcher fetches cited data, census-taker 4// grades Nishi-vs-incumbent feature-by-feature, analyst scores the two MQ axes, quadrant-placer places 5// every entity + computes the where-we-are -> where-we-need-to-go gap vector, visualizer renders it 6// no-float, publisher ships feedback+docs+visuals. This R0 is the HONEST maturity scorecard of THAT 7// team: one row per (role x capability), graded ABSENT->PRESENT->PARITY->EXCEEDS from EVIDENCE. The 8// gate LIAR-KILLS any PARITY/EXCEEDS row lacking a measured gate (has_ev=1) -- so "we beat Gartner" 9// cannot be claimed without proof, BY CONSTRUCTION. Negative control proves the liar-kill fires. 10// Honest 2026-06-20: the data-gathering rungs (researcher, census-taker) + publish/image substrate are 11// PRESENT and gate-backed; the analyst/quadrant/visualizer that actually EMIT the four-quadrant 12// analysis are ABSENT -- that is exactly what this arc builds. ZERO PARITY/EXCEEDS yet: we have not 13// measured ourselves against Gartner/BCG, and we say so -- that EXCEED is earned in later rungs. 14// Mirrors nx_connect_census.nx (proven R0 idiom). 100% sovereign. license_tier: ORIGINAL expect_exit: 0 15import "nx_syscalls.nx" 16 17const G_ABSENT: i64 = 0 18const G_PRESENT: i64 = 1 19const G_PARITY: i64 = 2 20const G_EXCEEDS: i64 = 3 21 22func sw(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 } 23func 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 } 24 25func grade_name(g: i64) -> i64 { 26 if g==G_ABSENT { sw("ABSENT " as *u8) } 27 if g==G_PRESENT { sw("PRESENT" as *u8) } 28 if g==G_PARITY { sw("PARITY " as *u8) } 29 if g==G_EXCEEDS { sw("EXCEEDS" as *u8) } 30 return 0 31} 32 33// the LIAR-KILL rule: PARITY/EXCEEDS (grade>=2) REQUIRE has_ev==1. ABSENT/PRESENT do not. 34func cap_valid(grade: i64, has_ev: i64) -> i64 { 35 if grade >= G_PARITY { if has_ev == 0 { return 0 } } 36 return 1 37} 38 39func row(role: *u8, cap: *u8, grade: i64, base: *u8, evidence: *u8, has_ev: i64, tot: *i64) -> i64 { 40 sw(" " as *u8); sw(role); sw(" | " as *u8); sw(cap); sw(" -> " as *u8); grade_name(grade) 41 if cap_valid(grade, has_ev) == 0 { sw(" <== INVALID: PARITY/EXCEEDS without evidence (LIAR-KILL)" as *u8); tot[4] = tot[4] + 1 } 42 else { if has_ev == 1 { sw(" [ev: " as *u8); sw(evidence); sw("]" as *u8) } } 43 sw(" {vs " as *u8); sw(base); sw("}" as *u8) 44 sw("\n" as *u8) 45 tot[grade] = tot[grade] + 1 46 return 0 47} 48 49func main() -> i64 { 50 let tot: *i64 = sys_mmap(64) as *i64 51 tot[0]=0; tot[1]=0; tot[2]=0; tot[3]=0; tot[4]=0 // ABSENT,PRESENT,PARITY,EXCEEDS,INVALID 52 53 sw("=== nx_ciq_census R0 -- NISHI COMPETITIVE-INTELLIGENCE QUADRANT team scorecard (honest 2026-06-20, genesis) ===\n" as *u8) 54 sw("grades: ABSENT < PRESENT < PARITY < EXCEEDS (PARITY/EXCEEDS REQUIRE measured evidence vs the named yardstick)\n" as *u8) 55 sw("the four-quadrant target: Gartner Magic Quadrant (Ability-to-Execute x Completeness-of-Vision) + HBR/BCG growth-share.\n" as *u8) 56 sw("ABSENT cells = where-we-need-to-go (the rungs this arc builds). {vs ...} = cited external yardstick.\n" as *u8) 57 58 sw("-- RS RESEARCHER (sovereign fetch of cited competitor + market data) --\n" as *u8) 59 row("RS" as *u8, "sovereign TLS-1.3 fetch of arbitrary URL -> cited .raw" as *u8, G_PRESENT, "curl/wget; SerpAPI/Bing search API (3rd-party)" as *u8, "nx_research_fetch (243 .raw banked, Mozilla-CA)" as *u8, 1, tot) 60 row("RS" as *u8, "product multi-source researchers (pub/omniforge/graphics)" as *u8, G_PRESENT, "manual analyst desk research" as *u8, "nx_pub/omniforge/ge_research_fetch (60+ src each)" as *u8, 1, tot) 61 row("RS" as *u8, "deep-research pipeline scope/verify/synth (team-owned 4/6)" as *u8, G_PRESENT, "Gartner/Forrester analyst pods" as *u8, "nx_deep_research (4/6 stages bits-up)" as *u8, 1, tot) 62 row("RS" as *u8, "per-competitor fresh fetch for EVERY flagship market" as *u8, G_ABSENT, "Gartner primary-source vendor briefings" as *u8, "none" as *u8, 0, tot) 63 row("RS" as *u8, "grep-to-cite N-source corroboration discipline" as *u8, G_PRESENT, "analyst citation footnotes (unverifiable)" as *u8, "pub corroboration 13/24; library foundation chain" as *u8, 1, tot) 64 65 sw("-- CT CENSUS-TAKER (feature-by-feature Nishi-vs-incumbent, liar-killed) --\n" as *u8) 66 row("CT" as *u8, "conf-driven competitive census engine (add-row=new census)" as *u8, G_PRESENT, "Gartner per-category MQ (manual, slow)" as *u8, "nx_competitive_census v3 (6 markets, epigenetics)" as *u8, 1, tot) 67 row("CT" as *u8, "4-grade maturity scorecard w/ cited incumbent baselines" as *u8, G_PRESENT, "Gartner critical-capabilities ratings" as *u8, "nx_connect/omniforge_census R0 idiom" as *u8, 1, tot) 68 row("CT" as *u8, "liar-kill gate (PARITY/EXCEEDS need measured evidence)" as *u8, G_PRESENT, "vendor self-claims (unverified) on analyst decks" as *u8, "neg-control fires in every census run" as *u8, 1, tot) 69 row("CT" as *u8, "flagship-market census coverage (all 5 flagships)" as *u8, G_ABSENT, "Gartner covers the full vendor field per category" as *u8, "none" as *u8, 0, tot) 70 row("CT" as *u8, "positive+negative control self-validation of the count logic" as *u8, G_PRESENT, "none: analyst reports carry no self-test" as *u8, "control_pos/control_neg in census suite" as *u8, 1, tot) 71 72 sw("-- AN ANALYST (score the two Gartner axes + BCG axes, data-driven) --\n" as *u8) 73 row("AN" as *u8, "Ability-to-Execute axis scorer (data-driven, no magic numbers)" as *u8, G_ABSENT, "Gartner Ability-to-Execute (7 weighted criteria)" as *u8, "none" as *u8, 0, tot) 74 row("AN" as *u8, "Completeness-of-Vision axis scorer (data-driven)" as *u8, G_ABSENT, "Gartner Completeness-of-Vision (8 weighted criteria)" as *u8, "none" as *u8, 0, tot) 75 row("AN" as *u8, "per-competitor placement (score incumbents, not just us)" as *u8, G_ABSENT, "Gartner places EVERY vendor in the field" as *u8, "none" as *u8, 0, tot) 76 row("AN" as *u8, "BCG portfolio axes (market-growth x relative-position)" as *u8, G_ABSENT, "HBR/BCG growth-share matrix" as *u8, "none" as *u8, 0, tot) 77 row("AN" as *u8, "weights/thresholds in config (auditable, reproducible)" as *u8, G_ABSENT, "Gartner publishes weights per MQ methodology" as *u8, "none" as *u8, 0, tot) 78 79 sw("-- QP QUADRANT-PLACER (place entities + where-we-are->where-we-need-to-go) --\n" as *u8) 80 row("QP" as *u8, "2x2 placement (Leaders/Challengers/Visionaries/Niche)" as *u8, G_ABSENT, "Gartner Magic Quadrant" as *u8, "none" as *u8, 0, tot) 81 row("QP" as *u8, "where-we-are -> where-we-need-to-go gap vector per market" as *u8, G_ABSENT, "HBR strategic gap analysis" as *u8, "none" as *u8, 0, tot) 82 row("QP" as *u8, "per-market Magic Quadrant assembly (all flagships)" as *u8, G_ABSENT, "Gartner per-category MQ" as *u8, "none" as *u8, 0, tot) 83 row("QP" as *u8, "portfolio BCG bubble placement (all workstreams)" as *u8, G_ABSENT, "BCG growth-share portfolio matrix" as *u8, "none" as *u8, 0, tot) 84 row("QP" as *u8, "exceed-target computation (the path to Leader/EXCEED)" as *u8, G_ABSENT, "none: analysts describe, do not compute targets" as *u8, "none" as *u8, 0, tot) 85 86 sw("-- VZ VISUALIZER (render the quadrant + matrix + portfolio, no-float) --\n" as *u8) 87 row("VZ" as *u8, "sovereign no-float image-emit substrate (int raster -> PNG)" as *u8, G_PRESENT, "matplotlib/d3/Tableau (float, 3rd-party)" as *u8, "nx_arcade_render (nx_arcade_native.png); PCB Gerber render" as *u8, 1, tot) 88 row("VZ" as *u8, "quadrant scatter renderer (dots + gap-vector arrow)" as *u8, G_ABSENT, "Gartner MQ chart" as *u8, "none" as *u8, 0, tot) 89 row("VZ" as *u8, "feature-matrix heatmap/table render" as *u8, G_ABSENT, "Gartner critical-capabilities heatmap" as *u8, "none" as *u8, 0, tot) 90 row("VZ" as *u8, "portfolio BCG bubble-chart render" as *u8, G_ABSENT, "BCG bubble chart" as *u8, "none" as *u8, 0, tot) 91 row("VZ" as *u8, "browser-deliverable visual (no-JS-logic blit / sovereign SVG)" as *u8, G_ABSENT, "interactive Tableau/d3 dashboards" as *u8, "none" as *u8, 0, tot) 92 93 sw("-- PB PUBLISHER (ship feedback + supporting docs + visuals) --\n" as *u8) 94 row("PB" as *u8, "single sovereign publisher role (no direct workstream push)" as *u8, G_PRESENT, "WordPress/CMS direct publish" as *u8, "nishi publisher role; sites.elf live" as *u8, 1, tot) 95 row("PB" as *u8, "publish-verify gate (GET page -> 200, markers present)" as *u8, G_PRESENT, "manual QA spot-check" as *u8, "nx_orch_verify_gate 6/6 (our TLS GET)" as *u8, 1, tot) 96 row("PB" as *u8, "no-bypass durable queue->stage->atomic-promote->rollback" as *u8, G_ABSENT, "blue-green / canary deploy pipelines" as *u8, "none" as *u8, 0, tot) 97 row("PB" as *u8, "feedback+docs+visuals bundle publish (the CIQ analysis)" as *u8, G_ABSENT, "Gartner ships PDF + interactive MQ" as *u8, "none" as *u8, 0, tot) 98 row("PB" as *u8, "append-only ledger of every publish (audit trail)" as *u8, G_ABSENT, "release audit logs" as *u8, "none" as *u8, 0, tot) 99 100 sw("--- DISTRIBUTION ---\n" as *u8) 101 sw(" ABSENT=" as *u8); sn(tot[0]) 102 sw(" PRESENT=" as *u8); sn(tot[1]) 103 sw(" PARITY=" as *u8); sn(tot[2]) 104 sw(" EXCEEDS=" as *u8); sn(tot[3]) 105 let total: i64 = tot[0]+tot[1]+tot[2]+tot[3] 106 sw(" TOTAL_CELLS=" as *u8); sn(total) 107 sw("\n (honest genesis: a cell flips to PRESENT only with a passing gate; PARITY/EXCEEDS only with an\n" as *u8) 108 sw(" adversarial measured head-to-head vs the named yardstick. Never self-scored.)\n" as *u8) 109 sw(" invalid_rows=" as *u8); sn(tot[4]); sw("\n" as *u8) 110 111 // NEGATIVE CONTROL -- prove the liar-kill actually fires 112 var neg_ok: i64 = 1 113 if cap_valid(G_EXCEEDS, 0) != 0 { neg_ok = 0 } // fake EXCEEDS, no evidence -> MUST be invalid 114 if cap_valid(G_PARITY, 0) != 0 { neg_ok = 0 } // fake PARITY, no evidence -> MUST be invalid 115 if cap_valid(G_EXCEEDS, 1) != 1 { neg_ok = 0 } // EXCEEDS WITH evidence -> valid 116 if cap_valid(G_PRESENT, 0) != 1 { neg_ok = 0 } // PRESENT, no evidence -> valid (allowed) 117 sw(" NEG-CONTROL liar-kill fires correctly: " as *u8); if neg_ok==1 { sw("YES\n" as *u8) } else { sw("NO\n" as *u8) } 118 119 var green: i64 = 0 120 if tot[4] == 0 { if neg_ok == 1 { green = 1 } } 121 if green == 1 { sw("VERDICT: GREEN (CIQ team scorecard honest; PRESENT cells gate-backed; no unproven PARITY/EXCEEDS; liar-kill armed)\n" as *u8); sys_exit(0) } 122 sw("VERDICT: RED\n" as *u8) 123 sys_exit(1) 124 return 1 125}