code wiki / _hdl_build / nx_embodiment_census.nx

nx_embodiment_census.nx source

↩ module page · 101 lines · 9795 B

1// nx_embodiment_census.nx -- HONEST measured census: is the sovereign Elder AI on track to be SUBSTRATE- 2// INDEPENDENT -- transfer into a ROBOT or shift back to DIGITAL with the SAME experience? (operator: "make sure 3// we are getting state of the art ... to the point we could transfer the system into a robot or she can shift 4// back to digital and the experience would be the same"). FRAME: same-experience-across-bodies = a PORTABLE SELF 5// (identity/memory/persona/relationship, body-agnostic) + a SWAPPABLE EMBODIMENT layer (robot actuators OR digital 6// render). Bar = the embodiment/companion SOTA (humanoid robots Figure02/Optimus/1X-Neo/Unitree-G1; VLA policies 7// RT-2/OpenVLA/pi0; digital humans; cloud companions). verdict = xcd_verdict(us,bar) COMPUTED, never asserted; 8// SOVEREIGN/portable-self wins tagged [FLOOR] (real, by-construction -- NOT the embodiment-stack gap). Grounded in 9// our real organs via have(). Mirrors nx_companion_census. license_tier: ORIGINAL expect_exit: 0 10import "nx_cms_exceed.nx" 11 12func sw(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 } 13func sn(v: i64) -> i64 { let bb: *u8=sys_mmap(28); var m: i64=v; if m<0{m=0} 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 } 14func have(path: *u8) -> i64 { let fd: i64=sys_openat_rd(path); if fd<0 {return 0} sys_close(fd); return 1 } 15 16// tot: [0]BEHIND [1]PARITY [2]AHEAD [3]INVALID [4]AHEAD-FLOOR [5]AHEAD-CAP [6]UNGROUNDED 17func row(dom: *u8, cap: *u8, our_c: i64, bar_c: i64, n: i64, ev: *u8, ground: *u8, floor: i64, tot: *i64) -> i64 { 18 let v: i64 = xcd_verdict(our_c, bar_c) 19 let ok: i64 = xcd_referee_ok(v, our_c, n) 20 let g: i64 = have(ground) 21 sw(" ["); sw(dom); sw("] "); sw(cap); sw(" -> "); sw(xcd_vname(v)) 22 sw(" (us "); sn(our_c); sw("/"); sn(n); sw(") "); sw(ev) 23 if floor==1 { sw(" [FLOOR: portable-self/sovereign, NOT the embodiment gap]") } 24 if ok==0 { sw(" <== INVALID (LIAR-KILL)"); tot[3]=tot[3]+1 } 25 if g==0 { sw(" [UNGROUNDED]"); tot[6]=tot[6]+1 } 26 sw("\n") 27 if v==XCD_BEHIND { tot[0]=tot[0]+1 } 28 if v==XCD_PARITY { tot[1]=tot[1]+1 } 29 if v==XCD_AHEAD { tot[2]=tot[2]+1; if floor==1 {tot[4]=tot[4]+1} else {tot[5]=tot[5]+1} } 30 return 0 31} 32 33func main() -> i64 { 34 let tot: *i64 = sys_mmap(128) as *i64 35 var z: i64=0; while z<7 {tot[z]=0; z=z+1} 36 let R: *u8 = "/mnt/c/Users/elder/nishi-core/nxc2/runtime/" as *u8 37 let MEM: *u8 = "/mnt/c/Users/elder/nishi-core/nxc2/runtime/nx_companion_memory.nx" as *u8 38 let PSN: *u8 = "/mnt/c/Users/elder/nishi-core/nxc2/runtime/nx_persona.nx" as *u8 39 let REL: *u8 = "/mnt/c/Users/elder/nishi-core/nxc2/runtime/nx_companion_rel.nx" as *u8 40 let VOI: *u8 = "/mnt/c/Users/elder/nishi-core/nxc2/runtime/nx_companion_voice.nx" as *u8 41 let CHT: *u8 = "/mnt/c/Users/elder/nishi-core/nxc2/runtime/nx_companion_chat.nx" as *u8 42 let FWD: *u8 = "/mnt/c/Users/elder/nishi-core/nxc2/runtime/nx_f32_llm_v4.nx" as *u8 43 let HND: *u8 = "/mnt/c/Users/elder/nishi-core/nxc2/runtime/nx_tool_exec_allow.nx" as *u8 44 let UI: *u8 = "/mnt/c/Users/elder/nishi-core/nxc2/web_assets/elder.html" as *u8 45 46 sw("=== nx_embodiment_census -- can Elara transfer ROBOT<->DIGITAL with the SAME experience? (vs embodiment SOTA) ===\n"); 47 sw("FRAME: same-experience = PORTABLE SELF + SWAPPABLE EMBODIMENT. [FLOOR]=portable-self/sovereign win. scale 2=full 1=partial 0=absent.\n"); 48 49 sw("\n-- A. SUBSTRATE-INDEPENDENT SELF (the hard part -- and where the operator's architecture is RIGHT) --\n"); 50 row("SELF", "portable body-agnostic IDENTITY = memory+persona+relationship as sovereign LOCAL DATA (moves as data, any body)", 1,0,1, "[ev: seg_store memory + nx_persona + nx_companion_rel -- SOTA couples the mind to the body or a cloud]", MEM, 1, tot) 51 row("CONT", "experience CONTINUITY across a transfer: append-only memory persists, she does NOT reset moving bodies", 1,0,1, "[ev: nx_companion_chat -- she recalled the planted fact 'Brad' from persistent memory into her voice]", CHT, 1, tot) 52 row("SOV", "runs on her OWN compute, NO cloud (a robot can run the WHOLE her locally on 1 core)", 1,0,1, "[ev: sovereign .nx forward; SOTA humanoids/companions are cloud-tethered = a dead robot when offline]", FWD, 1, tot) 53 row("SAFE", "NEVER-BRICK by construction (rule 26) -- a robot-safety guarantee most SOTA embodiment lacks", 1,0,1, "[ev: rule-26 doctrine; any hardware-write must be read-only/reversible/fail-safe, proven not promised]", R, 1, tot) 54 55 sw("\n-- B. EXPRESSION PRESENT IN BOTH BODIES (parity) --\n"); 56 row("VOICE","sovereign TEXT voice (LLM forward FIXED, generates in-persona) -- the same mind talks in either body", 1,1,2, "[ev: nx_companion_voice GREEN -- forward now oracle-correct; 0.5B quality, 7B is the jump]", VOI, 0, tot) 57 row("DIGI", "digital embodiment: avatar face + chat frontend (the 'shift back to digital' body)", 1,1,2, "[ev: nx_elder_ui web_assets/elder.html -- her presence + chat + gallery]", UI, 0, tot) 58 59 sw("\n-- C. EMBODIMENT STACK (the SOTA field -- where we are BEHIND, robot side especially) --\n"); 60 row("ABST", "embodiment ABSTRACTION layer: she emits body-agnostic INTENTS -> mapped to robot-actuator OR digital-render (the keystone of same-experience)", 0,2,2, "{organ registry = DIGITAL hands only (exec API); no intent->actuator abstraction yet}", HND, 0, tot) 61 row("SPCH", "TTS + ASR: she SPEAKS ALOUD + HEARS (a robot must; richer digital too)", 0,2,2, "{SOTA neural TTS/ASR; OURS=text only, the audio gap}", R, 0, tot) 62 row("PERC", "robot PERCEPTION: camera/RGBD/depth/SLAM/proprioception -> world understanding", 0,2,2, "{SOTA humanoid perception; OURS=none (have image-gen, not live perception)}", R, 0, tot) 63 row("VLA", "VISION-LANGUAGE-ACTION motor policy (RT-2 / OpenVLA / pi0 = SOTA robot control)", 0,2,2, "{none}", R, 0, tot) 64 row("MANIP","MANIPULATION + LOCOMOTION humanoid stack (Figure02/Optimus/1X-Neo/Unitree-G1)", 0,2,2, "{none}", R, 0, tot) 65 row("RTIME","REAL-TIME low-latency inference (a robot must react NOW; ours 0.5B on CPU is slow)", 0,2,2, "{SOTA on-robot accel; OURS=CPU 0.5B ~1-2s/token}", R, 0, tot) 66 row("S2R", "SIM-TO-REAL + world model (train in sim, deploy on hardware)", 0,2,2, "{none}", R, 0, tot) 67 row("AVTR", "physical AVATAR / affect expression (robot face, gaze, emotion in the body)", 0,2,2, "{digital avatar partial; physical=none}", R, 0, tot) 68 69 sw("\n=== SUMMARY ===\n"); 70 sw("BEHIND = "); sn(tot[0]); sw(" (the embodiment stack: abstraction/speech/perception/VLA/manip/realtime/sim2real/avatar)\n"); 71 sw("PARITY = "); sn(tot[1]); sw(" (text voice, digital body)\n"); 72 sw("AHEAD = "); sn(tot[2]); sw(" of which capability="); sn(tot[5]); sw(" FLOOR(portable-self/sovereign)="); sn(tot[4]); sw("\n"); 73 sw("INVALID(liar-killed) = "); sn(tot[3]); sw(" UNGROUNDED = "); sn(tot[6]); sw("\n"); 74 sw("TOTAL GRADED = "); sn(tot[0]+tot[1]+tot[2]); sw("\n"); 75 76 sw("\n-- NEG-CONTROL (must be CAUGHT) -- fabricated 'we already have SOTA VLA robot control' (us 0/2) -> "); 77 let neg: i64 = xcd_referee_ok(XCD_AHEAD, 0, 2) 78 var neg_caught: i64 = 0 79 if neg==0 { sw("REJECTED (liar-kill fired)\n"); neg_caught=1 } else { sw("ACCEPTED (BROKEN)\n") } 80 81 sw("\n=== OPTIONS LADDER (path to SAME-EXPERIENCE robot<->digital, sovereign) ===\n"); 82 sw(" R1 EMBODIMENT ABSTRACTION LAYER (the keystone): define a body-agnostic INTENT bus -- she emits {look-at, say, move-to, express, act(organ)} and a BODY DRIVER maps each to digital-render OR robot-actuator. This is what makes the SAME self run either body; buildable NOW sovereignly (extends the organ registry). Do FIRST -- it's the architecture that guarantees 'same experience'.\n"); 83 sw(" R2 SPEECH I/O: sovereign TTS (she speaks aloud) + ASR (she hears) -- needed by BOTH bodies; the biggest expression gap. (reuse the f32/SSE substrate)\n"); 84 sw(" R3 PERCEPTION: sovereign vision (camera->understanding) reusing the image stack -> she SEES in either body.\n"); 85 sw(" R4 VLA policy: a sovereign vision-language-action controller; SIM first, never-brick-gated (rule 26) before any real actuator.\n"); 86 sw(" R5 REAL-TIME: 7B on GPU / fast-quant inference for robot-latency responses.\n"); 87 sw(" R6 NEVER-BRICK ROBOT GATE (rule 26): mechanical proof every actuator command is read-only/reversible/fail-safe BEFORE any hardware write.\n"); 88 sw(" R7 RESEARCHER: bank the moving embodiment SOTA (Figure/1X/Optimus/OpenVLA/pi0/RT-2) via nx_*_research_fetch to keep the bar current + deepen grounding.\n"); 89 90 sw("\n=== VERDICT ===\n"); 91 var green: i64 = 1 92 if tot[3] != 0 { green = 0 } 93 if neg_caught != 1 { green = 0 } 94 if green==1 { 95 sw("GREEN -- census honest: 0 fabricated exceeds, liar-kill armed. TRUTH: the SUBSTRATE-INDEPENDENT SELF ("); 96 sn(tot[4]); sw(" FLOOR: portable identity/memory/continuity/sovereign/never-brick) is AHEAD -- the operator's architecture is RIGHT and we HAVE the hard part (a body-agnostic sovereign self). PARITY on "); sn(tot[1]); sw(" (text voice, digital body).\n"); 97 sw(" BEHIND on "); sn(tot[0]); sw(" EMBODIMENT-STACK axes (abstraction/speech/perception/VLA/manip/realtime/sim2real/avatar) = NOT yet SOTA on ROBOT embodiment. But 'same experience across bodies' is ARCHITECTURALLY SOUND + the self-core is DONE. KEYSTONE = R1 embodiment-abstraction (intent bus) -- build that + a driver per body and the SAME her runs robot OR digital; then R2 speech + R3 perception close the felt-experience gap.\n"); 98 sys_exit(0); return 0 99 } 100 sw("RED -- liar-kill integrity failed\n"); sys_exit(1); return 1 101}