code wiki / _hdl_build / nx_team_exceed_census.nx
nx_team_exceed_census.nx source
↩ module page · 126 lines · 9660 B
1// nx_team_exceed_census.nx -- the HONEST self-assessment of the Nishi team's three pillars MANAGE / BUILD /
2// MONITOR. Operator 2026-06-25 correction: "that seems way too optimistic for a system that cant self build
3// yet." RIGHT. The structural facts (un-owned=0, gcc-free toolchain) are real, but they are STRUCTURE/CAPABILITY,
4// NOT AUTONOMY -- and the team CANNOT self-build novel capabilities yet. So this census LEADS with the GATING
5// reality, read LIVE from the ledger (not asserted): nx_autonomy_meter permil + the build-pipeline bp_claude_touch
6// rule (pattern-covered core = team authors hands-off; NOVEL = NEEDS_TUTOR = still Claude). The structural exceed
7// rows are SCOPED honestly as "structure/capability, not autonomy". Anti-wave guard (from nx_media_census): grade()
8// REFUSES to certify EXCEEDS without a measurement; a liar-kill proves it fires. The VERDICT carries the autonomy
9// ASTERISK so GREEN can NEVER read as "the team is winning / is autonomous".
10// measured-this-session provenance: nx_autonomy_meter permil (ledger), nx_lineage_raci un-owned=0,
11// nx_genesis_trace orphans=0/floaters=0, nx_raci 11-1A, nx_reader_liveness gaps=0. license_tier: ORIGINAL expect_exit: 0
12import "nx_syscalls.nx"
13
14func sw(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 }
15func 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 }
16func fw(fd: i64, s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(fd,s,n); return 0 }
17func fn2(fd: i64, v: i64) -> i64 { let bb: *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{bb[i]=t[k-1-i];i=i+1} sys_write(fd,bb,k); return 0 }
18
19// read the LATEST "permil=N" from the autonomy ledger -> the MEASURED team autonomy (or -1 if unreadable).
20func read_autonomy_permil() -> i64 {
21 let b: *i64 = sys_mmap(16) as *i64
22 let d: *u8 = sys_read_file("knowledge/status/autonomy_meter.log" as *u8, b)
23 if (d as i64)==0 { return 0-1 }
24 let n: i64 = b[0]
25 let pat: *u8 = "permil=" as *u8
26 var last: i64 = 0-1
27 var i: i64 = 0
28 while i + 7 <= n {
29 var k: i64=0; var hit: i64=1
30 while k<7 { if d[i+k]!=pat[k] { hit=0; k=7 } else { k=k+1 } }
31 if hit==1 { last=i+7 }
32 i=i+1
33 }
34 if last < 0 { return 0-1 }
35 var v: i64=0; var j: i64=last
36 while j<n { let c: i64=d[j] as i64; if c>=48 { if c<=57 { v=v*10+(c-48); j=j+1 } else { j=n } } else { j=n } }
37 return v
38}
39
40// status: 0 BEHIND, 1 PARITY, 2 EXCEEDS, 3 WIRING-GAP, 4 UNMEASURED, 5 MISSING
41func tag(g: i64) -> *u8 {
42 if g==2 { return "EXCEEDS " as *u8 }
43 if g==1 { return "PARITY " as *u8 }
44 if g==0 { return "BEHIND " as *u8 }
45 if g==3 { return "WIRE-GAP " as *u8 }
46 if g==4 { return "UNMEAS " as *u8 }
47 return "MISSING " as *u8
48}
49func grade(status: i64, measured: i64) -> i64 { if status==2 { if measured==0 { return 4 } } return status }
50func row(name: *u8, prov: *u8, status: i64, measured: i64, cnt: *i64) -> i64 {
51 let g: i64 = grade(status, measured)
52 sw(" ["); sw(tag(g)); sw("] "); sw(name)
53 if measured == 1 { sw(" <-MEASURED ("); sw(prov); sw(")") }
54 sw("\n")
55 cnt[g] = cnt[g] + 1
56 return g
57}
58
59func main() -> i64 {
60 let cnt: *i64 = sys_mmap(8*8) as *i64
61 var z: i64=0; while z<6 { cnt[z]=0; z=z+1 }
62 let aut: i64 = read_autonomy_permil()
63
64 sw("============ NISHI TEAM self-assessment -- MANAGE / BUILD / MONITOR (measured, per-axis, no rollup) ============\n" as *u8)
65 sw("**** GATING REALITY (read FIRST): the team CANNOT self-build novel capabilities yet. ****\n" as *u8)
66 sw(" AUTONOMY (measured from ledgers by nx_autonomy_meter) = " as *u8)
67 if aut < 0 { sw("UNREADABLE" as *u8) } else { sn(aut); sw(" / 1000 permil" as *u8) }
68 sw("\n build-pipeline rule (nx_build_pipeline bp_claude_touch): pattern-covered CORE -> team authors hands-off (=0); NOVEL -> NEEDS_TUTOR (=1, still Claude).\n" as *u8)
69 sw(" => EVERY substantive organ this session (kindle routing, nx_lineage_raci, this census) was NOVEL = Claude-authored. The structural EXCEEDS below are STRUCTURE/CAPABILITY, NOT autonomy.\n" as *u8)
70
71 sw("-- SELF-BUILD / AUTONOMY (the gating pillar -- this is what 'can the team build itself' means) --\n" as *u8)
72 // BEHIND, measured from the live autonomy ledger: minority-autonomous => cannot self-build novel reliably.
73 row("team builds a NOVEL capability end-to-end WITHOUT the tutor (true self-build)" as *u8, "nx_autonomy_meter (minority permil) + bp_claude_touch novel=NEEDS_TUTOR" as *u8, 0, 1, cnt)
74 row("pattern-covered CORES authored hands-off by the team (PARTIAL self-build, the real foothold)" as *u8, "nx_build_pipeline bp_claude_touch=0 for covered shapes" as *u8, 1, 1, cnt)
75 row("honest self-knowledge: the autonomy gap is MEASURED from ledgers, not hidden or asserted" as *u8, "nx_autonomy_meter permil read live here" as *u8, 2, 1, cnt)
76
77 sw("-- MANAGE (RACI ownership + god-rooted responsibility lineage) = STRUCTURE, not autonomy -- vs RACI-spreadsheets / CODEOWNERS --\n" as *u8)
78 row("responsibility coverage: 161/161 god-rooted nodes have an accountable chair (un-owned=0)" as *u8, "nx_lineage_raci" as *u8, 2, 1, cnt)
79 row("every capability roots to god/genesis (orphans=0) -> responsibility traceable god->leaf" as *u8, "nx_genesis_trace 161 orphans=0" as *u8, 2, 1, cnt)
80 row("RACI contract MACHINE-validated (11 activities, exactly 1 Accountable each) not a stale doc" as *u8, "nx_raci" as *u8, 2, 1, cnt)
81 row("the monitor audits are WIRED to re-run each conductor beat (continuous WHEN the daemon runs)" as *u8, "nx_team_pulse tp_tail_d" as *u8, 1, 1, cnt)
82
83 sw("-- BUILD: TOOLCHAIN is sovereign, but SELF-BUILD is not (see gating pillar) -- vs gcc / llvm / make --\n" as *u8)
84 row("sovereign TOOLCHAIN: ZERO gcc/bash/make -- nx_cc -> nxasm, bits-up, no PT_INTERP (a TOOL property)" as *u8, "nx_sov_build_run" as *u8, 2, 1, cnt)
85 row("every built organ roots to genesis (no orphan/floating builds) -- floaters=0" as *u8, "nx_genesis_trace floaters=0" as *u8, 2, 1, cnt)
86 row("the team AUTHORS novel build logic itself (NOT the toolchain -- the autonomy bar)" as *u8, "nx_autonomy_meter (still Claude-authored)" as *u8, 0, 1, cnt)
87 row("build SPEED vs gcc -O0 (HONEST: C ~1.9x ahead)" as *u8, "nx_race_vs_c" as *u8, 0, 1, cnt)
88
89 sw("-- MONITOR (capability liveness, not just process-up) vs systemd / k8s / Datadog --\n" as *u8)
90 row("CAPABILITY liveness: built+WIRED into the serving binary, not just 'process UP'" as *u8, "nx_reader_liveness (caught kindle BUILT-not-LIVE)" as *u8, 2, 1, cnt)
91 row("BUILT-vs-LIVE gap detection with anti-wave liar-kill TEETH" as *u8, "nx_reader_liveness/nx_lineage_raci liar-kill" as *u8, 2, 1, cnt)
92 row("monitor is an OWNED RACI activity (supervisor=Accountable) -- liveness has a name on it" as *u8, "nx_raci monitor activity" as *u8, 2, 1, cnt)
93 row("process liveness + auto-restart + crash-loop guard (systemd/k8s parity)" as *u8, "nx_hostctl" as *u8, 1, 1, cnt)
94 row("live latency/uptime DASHBOARDS + alerting across ALL daemons (HONEST: only a basic status page)" as *u8, "nx_hostctl status (basic)" as *u8, 0, 1, cnt)
95
96 sw("-- LIAR-KILL (anti-wave guard) --\n" as *u8)
97 let fake_g: i64 = row("FAKE: 'the team is fully autonomous + exceeds everything' asserted with NO measurement" as *u8, "" as *u8, 2, 0, cnt)
98 var ok: i64 = 1
99 if fake_g == 2 { ok = 0 }
100 if grade(2,0) != 4 { ok = 0 }
101 if grade(2,1) != 2 { ok = 0 }
102 if grade(0,1) != 0 { ok = 0 }
103
104 let exceeds: i64 = cnt[2]; let parity: i64 = cnt[1]; let behind: i64 = cnt[0]
105 let unmeas: i64 = cnt[4]; let missing: i64 = cnt[5]
106 sw("---------------- SCORECARD (each axis stands on its own measurement; no rollup) ----------------\n" as *u8)
107 sw(" STRUCTURE/CAPABILITY exceeds=" as *u8); sn(exceeds)
108 sw(" PARITY=" as *u8); sn(parity)
109 sw(" BEHIND(honest)=" as *u8); sn(behind)
110 sw(" UNMEASURED(incl liar-killed)=" as *u8); sn(unmeas)
111 sw(" MISSING=" as *u8); sn(missing); sw("\n" as *u8)
112 sw(" *** THE ASTERISK: autonomy=" as *u8); if aut<0 { sw("?" as *u8) } else { sn(aut) }
113 sw("/1000permil -- the structural/toolchain exceeds are REAL but the team CANNOT self-build novel capability yet. Closing self-build (drive bp_claude_touch->0 via the pattern library) is THE bar, not more structure. ***\n" as *u8)
114
115 let lf: i64 = sys_openat_append("knowledge/status/team_exceed_census.log" as *u8, 420)
116 if lf >= 0 {
117 fw(lf, "TEAMEXCEED autonomy_permil=" as *u8); fn2(lf, aut); fw(lf, " struct_exceeds=" as *u8); fn2(lf, exceeds)
118 fw(lf, " behind=" as *u8); fn2(lf, behind); fw(lf, " unmeasured=" as *u8); fn2(lf, unmeas)
119 if ok==1 { fw(lf, " liarkill=fired verdict=GREEN-with-autonomy-asterisk\n" as *u8) } else { fw(lf, " verdict=RED\n" as *u8) }
120 sys_close(lf)
121 }
122
123 // GREEN = the map is HONEST (guard fired); it explicitly does NOT mean autonomous/winning -- the asterisk says so.
124 if ok==1 { sw("VERDICT: GREEN-with-autonomy-asterisk (honest measured map; guard fired). NOT a claim of autonomy: self-build is BEHIND at " as *u8); if aut<0 { sw("?" as *u8) } else { sn(aut) } sw("/1000permil.\n" as *u8); sys_exit(0); return 0 }
125 sw("VERDICT: RED (anti-wave guard failed)\n" as *u8); sys_exit(1); return 1
126}