code wiki / _hdl_build / nx_connect_maturity.nx
nx_connect_maturity.nx source
↩ module page · 115 lines · 8808 B
1// nx_connect_maturity.nx -- the HONEST production-readiness gauge for CONNECT, built 2026-07-24 after the
2// operator's verdict: "all of our capabilities are toy level vs telegram and discord and tandem." They are
3// right, and the older instruments (nx_connect_func_census PRESENT~48, /compare/connect 857/1000, 4 EXCEEDS)
4// hid it: their PRESENT bar was "a gate passes on SYNTHETIC data", which scores a 9-word lexicon as
5// "inline translation PRESENT" and even "EXCEEDS Tandem". This gauge re-grades every capability against
6// what the incumbents ACTUALLY SHIP, on a level that cannot be earned by a stub:
7// 0 = ABSENT nothing real exists
8// 1 = STUB a gated model/demo on synthetic data; NOT usable by a real user at any scale
9// 2 = PARTIAL real and usable, but far below incumbent grade or scale
10// 3 = REAL production-grade AND live against non-synthetic reality
11// LIAR-KILL (the fix for the old instrument): a row may be graded REAL(3) ONLY if its evidence names a
12// non-synthetic proof AND does not contain a stub-tell ("synthetic","lexicon","stand-in","in-memory",
13// "demo","model of","no real"). So I cannot inflate a toy to REAL by wording. license_tier: ORIGINAL
14// expect_exit: 0
15import "nx_syscalls.nx"
16import "nx_honesty_grade_lib.nx"
17
18const MT_N: i64 = 16
19
20func w(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 }
21func wn(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 }
22func slen(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n }
23// does haystack contain needle? (literal substring)
24func contains(h: *u8, nd: *u8) -> i64 {
25 let hl: i64=slen(h); let nl: i64=slen(nd)
26 if nl==0 { return 0 }
27 var i: i64=0
28 while i+nl<=hl {
29 var k: i64=0; var hit: i64=1
30 while k<nl { if h[i+k]!=nd[k] { hit=0; k=nl } else { k=k+1 } }
31 if hit==1 { return 1 }
32 i=i+1
33 }
34 return 0
35}
36// a REAL(3) claim is a lie if the evidence carries any stub-tell.
37func stub_tell(ev: *u8) -> i64 {
38 if contains(ev,"synthetic" as *u8)==1 { return 1 }
39 if contains(ev,"lexicon" as *u8)==1 { return 1 }
40 if contains(ev,"stand-in" as *u8)==1 { return 1 }
41 if contains(ev,"in-memory" as *u8)==1 { return 1 }
42 if contains(ev,"demo" as *u8)==1 { return 1 }
43 if contains(ev,"no real" as *u8)==1 { return 1 }
44 if contains(ev,"0 real" as *u8)==1 { return 1 }
45 return 0
46}
47
48// DOGFOOD the shared cynical bar: the level I claim is passed through hg_grade, which DOWNGRADES it to what
49// the evidence earns. A downgrade means I (the author) over-claimed -- counted as author-optimism caught.
50func row(cap: *u8, yard: *u8, lvl: i64, ev: *u8, sum: *i64, liar: *i64) -> i64 {
51 let honest: i64 = hg_grade(lvl, ev)
52 if honest < lvl { liar[0]=liar[0]+1 }
53 sum[0]=sum[0]+honest
54 w(" [" as *u8)
55 if honest==0 { w("ABSENT " as *u8) }
56 if honest==1 { w("STUB " as *u8) }
57 if honest==2 { w("PARTIAL" as *u8) }
58 if honest==3 { w("REAL " as *u8) }
59 w("] " as *u8); w(cap)
60 if honest < lvl { w(" (author claimed higher; downgraded)" as *u8) }
61 w(" | vs " as *u8); w(yard)
62 w(" | " as *u8); w(ev); w("\n" as *u8)
63 return 0
64}
65
66func main() -> i64 {
67 let sum: *i64 = sys_mmap(8) as *i64
68 let liar: *i64 = sys_mmap(8) as *i64
69 sum[0]=0; liar[0]=0
70 w("=== nx_connect_maturity -- HONEST production-readiness vs Telegram / Discord / Tandem ===\n" as *u8)
71 w("levels: 0 ABSENT 1 STUB(synthetic gate) 2 PARTIAL(real, sub-scale) 3 REAL(prod-grade + live)\n" as *u8)
72 w("-- the product CAPABILITIES the operator called toy-level (they are) --\n" as *u8)
73 row("inline translation" as *u8, "Tandem/DeepL NMT 100+ langs" as *u8, 1, "9-word lexicon, 5 langs" as *u8, sum, liar)
74 row("messaging core" as *u8, "Telegram billions/day multi-device" as *u8, 1, "in-memory per-session demo" as *u8, sum, liar)
75 // 2026-07-25 FULL E2E LOOP LIVE on the public edge: X25519-AGREED keys (RFC 7748 6.1 DH proven on the
76 // shipped wasm, nx_connect_keyx_vm_gate 5/5) + client-side ChaCha20 (RFC 8439 bit-exact 3/3) + shared
77 // content-blind routed store (pubkey directory + from|to|seq|ct append-log, restart-replay proven live) +
78 // recipient browser decrypt. PARTIAL not REAL: no AEAD tag on the routed path (malleable stream), TOFU
79 // directory (no identity binding), no ratchet/forward secrecy, bounded demo plane, 0 real users.
80 row("E2E encryption" as *u8, "Signal/Discord DAVE AEAD+MLS" as *u8, 2, "LIVE agreed-key loop: X25519 keygen+DH (KAT 5/5) -> browser ChaCha20 -> content-blind routed store -> browser decrypt; restart-replay proven; still no AEAD tag/ratchet/identity-binding" as *u8, sum, liar)
81 row("voice/video calls" as *u8, "Discord WebRTC SFU <40ms" as *u8, 1, "integer codec model, no live stream" as *u8, sum, liar)
82 row("media/file transfer" as *u8, "Telegram 2GB files at scale" as *u8, 1, "119-line model, no real transfer" as *u8, sum, liar)
83 // 2026-07-25 REAL LOGIN LIVE: OPAQUE aPAKE (RFC 9807) register/login/whoami on the public edge, argon2id
84 // KSF, Ed25519-signed sessions, server stores only an envelope (no password at rest); per-account
85 // worlds + a per-account contact list. PARTIAL not REAL: own realm not yet unified family-wide, single box.
86 row("accounts/identity" as *u8, "real auth, cross-device sync" as *u8, 2, "LIVE OPAQUE aPAKE register/login/whoami (RFC 9807), argon2id KSF, Ed25519 sessions, envelope-only at rest; identity-keyed worlds + contact list; own realm, one-server scale, family-wide unification pending" as *u8, sum, liar)
87 row("matching at scale" as *u8, "Tandem millions of profiles" as *u8, 1, "synthetic 4-6 person rosters" as *u8, sum, liar)
88 row("moderation/anti-abuse" as *u8, "trained CSAE/spam models" as *u8, 1, "rule predicates on synthetic input" as *u8, sum, liar)
89 row("push/presence at scale" as *u8, "real-time gateway, 100Ms online" as *u8, 0, "no push; no real presence" as *u8, sum, liar)
90 row("native apps" as *u8, "iOS/Android/desktop" as *u8, 0, "server-rendered HTML only" as *u8, sum, liar)
91 row("user base / liquidity" as *u8, "TG 900M / Discord 200M MAU" as *u8, 0, "0 real users" as *u8, sum, liar)
92 w("-- what IS real underneath (infra, not product features -- no shield, just an accurate map) --\n" as *u8)
93 row("sovereign TLS transport" as *u8, "browsers' TLS stacks" as *u8, 3, "TLS 1.3 live, cert-validated, serves nishifamily.com" as *u8, sum, liar)
94 row("build/deploy/MCP pipeline" as *u8, "vendor CI/CD + APIs" as *u8, 3, "live sovereign build->deploy->MCP, proven over the wire" as *u8, sum, liar)
95 row("safety/governance rules" as *u8, "incumbents' policy layers" as *u8, 2, "real gated decision logic, live at /connect" as *u8, sum, liar)
96 row("app UI surface" as *u8, "incumbents' polished clients" as *u8, 2, "real live 6-page app, ADA, no native/scale" as *u8, sum, liar)
97 row("trained-model serving" as *u8, "vendor GPU fleets" as *u8, 2, "real f32 LLM serve daemon on NAS, single box" as *u8, sum, liar)
98
99 let readiness: i64 = (sum[0]*1000)/(3*MT_N)
100 w("\n raw score=" as *u8); wn(sum[0]); w("/" as *u8); wn(3*MT_N)
101 w(" PRODUCTION-READINESS=" as *u8); wn(readiness); w("/1000\n" as *u8)
102 w(" contrast: the old /compare/connect said 857/1000. THAT instrument graded stubs as PRESENT.\n" as *u8)
103 w(" author-optimism downgrades applied by the cynical bar (hg_grade)=" as *u8); wn(liar[0]); w(" <- these are the bar WORKING, not a failure\n" as *u8)
104 // honest build order = the lowest-level, highest-leverage product gaps first
105 w(" BUILD ORDER (real, not toy): 1.accounts/identity(gates everything) 2.messaging core on real store\n" as *u8)
106 w(" 3.real AEAD (wire to ecosystem crypto, retire the additive stand-in) 4.real NMT via the LLM serve\n" as *u8)
107 w(" 5.WebRTC/codec media substrate 6.native/PWA client 7.the only real moat: users. TRAINED-MODEL\n" as *u8)
108 w(" ARCS (NMT, moderation) need model work; the rest is engineering + real infra.\n" as *u8)
109 // A downgrade is the cynical bar CORRECTING author-optimism -- healthy, not a failure. The gauge is a
110 // measurement: it exits GREEN when it ran honestly (every displayed level already passed through hg_grade,
111 // so no stub can be shown as REAL). The readiness number and the downgrade count ARE the payload.
112 w("VERDICT: verdict=GREEN (honest gauge via hg_grade; readiness is LOW and TRUE, by design)\n" as *u8)
113 sys_exit(0)
114 return 0
115}