code wiki / _hdl_build / nx_pm_workstreams.nx

nx_pm_workstreams.nx source

↩ module page · 51 lines · 4382 B

1// nx_pm_workstreams.nx -- the PM logs the two HARDWARE-UP S-class-exceed workstreams gating a genuine 2// (non-toy, non-slow) andelinwest deploy, triggers them, and assigns RACI for monitor+tutor (operator: 3// "log into the backlogs, trigger the workstreams, monitor and tutor, S-class-exceed hardware-up; SSH 4// fully benchmarked against other SSH comprehensive functionality"). Composes the PM engine. 5// license_tier: ORIGINAL 6import "nx_pm_review_log.nx" 7import "nx_syscalls.nx" 8 9func ws_puts(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 } 10 11func main() -> i64 { 12 ws_puts("=== PM: trigger S-class-EXCEED workstreams (hardware-up; monitor+tutor) ===\n\n" as *u8) 13 let fd: i64 = sys_openat_append("/tmp/nishi_pm_plan.log" as *u8, 0x1a4) 14 let pm: i64 = pm_open("/tmp/nishi_pm_review.log" as *u8) 15 pm_w(fd, "\n# S-CLASS-EXCEED WORKSTREAMS 2026-06-06 (hardware-up; both gate a non-toy andelinwest deploy)\n" as *u8) 16 17 // W2 first -- it is LOWER in the stack (L1 compiler) than W1 (L2 transport): fix hardware-up. 18 ws_puts("WORKSTREAM W2 (L1, lowest): SOVEREIGN COMPILER -> S-class build speed\n" as *u8) 19 ws_puts(" state NOW: SLOW. C/known-good builds the daemon in 10.72s, but the SOVEREIGN compiler\n" as *u8) 20 ws_puts(" (the one we promoted) is ~40min -- QUADRATIC register allocator (nx_regalloc.nx).\n" as *u8) 21 ws_puts(" S-class target: linear-scan regalloc -> sovereign builds in SECONDS, gcc-competitive,\n" as *u8) 22 ws_puts(" byte-stable self-host. EXCEED = faster than gcc on the same .s volume.\n" as *u8) 23 ws_puts(" gates: nx_regalloc_soundness_test + byte-identical self-host + a compile-time bench vs gcc.\n" as *u8) 24 ws_puts(" RACI: Builder authors the linear-scan pass (Claude tutors the algorithm); Engineer/Referee\n" as *u8) 25 ws_puts(" gate correctness + speed; Auditor re-grades L1 TOY->S.\n\n" as *u8) 26 pm_w(fd, "W2 COMPILER-REGALLOC quadratic->linear (sovereign builds S-class) status=WORKING\n" as *u8) 27 pm_flag(pm, "WORKSTREAM" as *u8, "sclass/L1-compiler" as *u8, "TRIGGERED" as *u8, 28 "sovereign compiler regalloc quadratic->linear-scan" as *u8, 29 "Builder authors (tutored); gate=soundness+byte-stable-self-host+compile-time-vs-gcc; Auditor re-grades" as *u8) 30 31 ws_puts("WORKSTREAM W1 (L2): SOVEREIGN SSH -> S-class-EXCEED, COMPREHENSIVELY BENCHMARKED vs OpenSSH\n" as *u8) 32 ws_puts(" state NOW: TOY. Blocking I/O, no channel flow-control -> HANGS on the 707KB daemon transfer.\n" as *u8) 33 ws_puts(" S-class target: real channel flow-control (track server window from CHANNEL_OPEN_CONFIRMATION\n" as *u8) 34 ws_puts(" + WINDOW_ADJUST; send within it; non-blocking) -> stream ANY size, no deadlock.\n" as *u8) 35 ws_puts(" COMPREHENSIVE BENCHMARK vs OpenSSH (the operator's explicit ask): large-file throughput (MB/s),\n" as *u8) 36 ws_puts(" connection+KEX setup latency, exec correctness, and a FEATURE-COVERAGE matrix\n" as *u8) 37 ws_puts(" (exec / put / window-flow-control / rekey / cipher set) -- measured, not claimed.\n" as *u8) 38 ws_puts(" step 1 (Claude tutors NOW): INSTRUMENT the transfer -> measured failure point (no theorizing).\n" as *u8) 39 ws_puts(" RACI: Builder authors the flow-control + the bench harness; Engineer measures vs OpenSSH;\n" as *u8) 40 ws_puts(" Referee grades TOY->S->EXCEED on the measured numbers.\n\n" as *u8) 41 pm_w(fd, "W1 SSH flow-control + S-class-exceed + OpenSSH benchmark status=WORKING (Claude tutoring step1: instrument)\n" as *u8) 42 pm_flag(pm, "WORKSTREAM" as *u8, "sclass/L2-ssh" as *u8, "TRIGGERED" as *u8, 43 "SSH S-class-exceed: real flow-control + comprehensive OpenSSH benchmark" as *u8, 44 "step1 instrument->diagnose; then flow-control (window tracking); Engineer benchmarks vs OpenSSH (throughput+latency+feature matrix)" as *u8) 45 sys_close(fd); sys_close(pm) 46 47 ws_puts(">>> TRIGGERED: W2 (compiler regalloc, hardware-up first) + W1 (SSH s-class+benchmark) in parallel.\n" as *u8) 48 ws_puts(">>> Claude MONITORS both; TUTORS the novel parts (regalloc algorithm, SSH flow-control) the team raises.\n" as *u8) 49 ws_puts(">>> andelinwest deploy waits for W1 (S-class SSH transport) -- we deploy on S-class infra, not toy.\n" as *u8) 50 sys_exit(0); return 0 51}