interplane.Get Omega
Read in your language

aien-train

AIEN training programme: language-model history, GB10 constraints and the route to training on the project engine. Plans and runnable checks are distinguished.

Brought by drakestapleton

branch main Branches Tags History

aien-train / evidence / OMEGALLM / wsp-ctl-traces-20261107

c92f768 ctlsamp: exit 4 on a failed or short write to OUT or raw_log (bay 10 info 2); failing-write control and 30-minute run of e0105902 Drake Stapleton committed 2026-11-09
..
gate-om-20261107/
gate-om-drain-20261107/
gate-om-sched-20261109/
README.md13958
run-start.txt21
sampler.log0
trace-001.jsonl476755
ups-001.jsonl63470
ups-sampler.log0

README.md

wsp controller telemetry traces, 2026-11-07

Evidence for docs/omegallm/WSP-CONTROLLER.md section 5 (Linear DRA-187, lane wsp, B4).

Instrument

The instrument going forward is the seeded Omega sampler tools/omegallm/ctlsamp/ctlsamp.om (README in the same directory). It writes one row with the keys of both old files below.

Data captured with the old sampler (kept as data)

FileProduced byRowssha256
trace-001.jsonlold sampler.py (Python), 5 s interval360531da5be7473ce80b4d98f736810365dd33339d3f0626ea7b99cb15bcb51a03e
ups-001.jsonlold ups-sampler.sh (shell, upsc spark), 5 s interval340fd8a873d20491667d05f81462f2f7848676151addb6f2ced1a1ef3c9caab894c
run-start.txt, sampler.log, ups-sampler.logstart time and the (empty) logs of those runs

The old sampler produced these 30 minute traces. Its source is in commit a64e8707ebd2693254f27285dee6d8bdd0391559 (sampler.py sha256 d45206003f03be9881ae4dc2419b1c5d9ada84ead0f69b5c79c397cae02317e8, ups-sampler.sh sha256 1cd419f15260f4c8d3d6b4023b561b02f515cd5114eae207089d6e67c377f09a). Both files were deleted from this directory when the Omega port landed; git show a64e8707:<path> still prints them.

Port gate for ctlsamp.om: gate-om-20261107/ (first version, commit f834366a)

Built with omc from omega-mv e5b32567 (omc sha256 2c82480596bbdc50cda9626866209ef662d5834f278f839ff4ce0250c495029f). Gate binary sha256 0d48c231261a7a7dd23682bbfdc3170f0344948ae2b4c1ee58e130a030877b7c, from ctlsamp.om sha256 2dbe7f4daa9d9f1b968ca3adc1be3d86e6a3ab2c4233e7b1c705ceaf9f8b2d3a.

Run (2026-11-07T07:44:09Z to 07:46:09Z, start.txt), exit 0 (exit.txt): taskset -c 0 nice -n 19 ctlsamp gate-om.jsonl 5 24 /usr/bin/nvidia-smi /usr/bin/upsc raw.log. 24 rows in gate-om.jsonl; raw.log holds the exact bytes of every read, which are the same-moment readings of the original commands and files.

Results, MEASURED:

  1. Keys and types: PASS. The jq signature (every scalar path with its JSON type) over all 24 rows equals the union of the signatures of trace-001.jsonl and of the five UPS keys of ups-001.jsonl: 74 entries each, none on one side only (sig-compare.json).
  2. Paired values: PASS. For rows seq 0, 11 and 23 a Wolfram program parsed the raw records independently and compared 71 values per row with the JSON: 20 core busy shares (from the two /proc/stat records, tolerance 1/200 for the 2 decimal rounding), 3 loadavg and runnable, 24 PSI values, 7 thermal zones, 4 meminfo values, 6 nvidia-smi fields, 5 upsc fields, and ts_utc against ts_unix. All other tolerances are 0. Failures: none in all 3 rows (oracle-seq{0,11,23}.wl and .out). A subset of the pairs (raw reading = row value):
    Fieldseq 0seq 11seq 23
    core c0 busy %17.5258 = 17.5336.0825 = 36.08100 = 100.0
    load17.6 = 7.610.76 = 10.7611.01 = 11.01
    runnable6/385114/45709/4559
    PSI cpu some avg101.1311.4515.85
    tz0 C82.583.674.9
    MemAvailable kB750441207279980073108508
    GPU util / W / C / MHz / pstate93 / 44.77 / 72 / 2099 / P087 / 31.78 / 72 / 1755 / P038 / 17.93 / 59 / 1007 / P0
    UPS load % / status / V / runtime s26 / OL / 121 / 160027 / OL / 121 / 195022 / OL / 122 / 2275
    ts_utc07:44:14Z07:45:09Z07:46:09Z
  3. Comparator negative control: PASS. The same Wolfram program on seq 0 with two values changed by one unit in the last digit (core c0 17.54, gpu_power_w 44.771) reports exactly those two as failures (oracle-negctl-seq0.wl and .out).

  4. Command negative control: PASS. `ctlsamp neg-control.jsonl 5 1 /nonexistent/nvidia-smi /nonexistent/upscexited 0 and wrote one valid row with"gpu_error": "rc=127"` and "ups_error": "rc=127", the GPU and UPS keys absent (neg-control.jsonl). A missing command is a read error in the row, not a crash.
  5. Cadence: `WolframLanguageEvaluator: With[{t=<ts_unix>, c=<sample_cost_us>}, {Last[t]-First[t], {Mean,Min,Max}[Differences[t]], {Min,Max,Median,Mean}[c]}]` -> span 115 s, interval {5.000, 4.992, 5.008} s, sample cost {79847, 424823, 99149.5, 113802.2} us (oracle-cadence.wl and .out). The median cost is higher than the old sampler's 55943 us because one sample now also runs upsc, which the old shell sampler ran as a second process.
  6. Cross-check against the independent sensors log ~/yardsticks/sensors/2026-11-07.csv (rows within 3 s, sensors-near.txt; not the same moment, so this is a sanity check, not the gate): load1 7.60, 10.76 and 11.01 match the rows exactly; UPS W 260, 270 and 220 equal ups_load_pct times 10; GPU W and util move within seconds, so they agree only roughly: seq 23 (17.93 W) sits inside its neighbours (14.58 to 21.88 W), while seq 0 (44.77 W, neighbours 43.71 to 44.53 W) and seq 11 (31.78 W, neighbours 11.52 to 30.51 W) read a little above them.

ORACLE only, not shipped: /usr/bin/jq (reports jaq 3.1.1) for the signature and the Wolfram MCP evaluator for the value checks. The Wolfram programs were generated from raw.log and gate-om.jsonl in the agent's session; the generated programs are the filed .wl files.

Output drain fix: gate-om-drain-20261107/

The first version stopped reading a command's output after 8192 bytes and closed the pipe. A command that wrote more then died on SIGPIPE (rc=-13) instead of finishing. The fix keeps the first 8192 bytes, reads and drops the rest until the command ends, and records truncated in the error key; the 4 s kill stays. Source ctlsamp.om sha256 5de467df4bc16f41a03b87d80098cb86ffea14d8594cf4048f87bd8bef33ce5a, binary sha256 7a902cd0d769662d0a102403175618cd7cf1ef3edf6b24606a65eb283c71b7d4, same omc.

Results, MEASURED, each run on core 0 at nice 19 with a 5 s interval and 2 rows, the first version (-f834) as the before case (negctl-exits.txt has the exits and wall clock):

  1. Endless writer: PASS. upsc_path set to /usr/bin/yes, which prints spark without end. The fixed sampler exits 0, both rows have "ups_error": "timeout,truncated", and the samples cost 4040211 and 4239306 us, so the 5 s cadence holds (negctl-endless-new.jsonl). The first version gave rc=-13 (negctl-endless-f834.jsonl). No yes process was left behind.
  2. Large finite writer: PASS. upsc_path set to /usr/bin/cat, run in a scratch directory where the argument spark names a 2097152 byte file. The fixed sampler reads it to the end: exit 0, "ups_error": "truncated" (cat exited 0), samples cost about 31 ms (negctl-2mib-new.jsonl). The first version gave rc=-13 (negctl-2mib-f834.jsonl). The scratch file is not filed.
  3. Normal rows unchanged: PASS. A 30 s rerun (07:54:14Z to 07:54:44Z, exit 0, 6 rows, 91 raw records) has the same 74 entry key and type signature as the old traces and as the first gate (sig-compare.json), and the Wolfram check of 71 values per row against raw.log finds no failure in any of the 6 rows (oracle-seq0.wl to oracle-seq5.wl and .out).

Schedule fix and review fixes: gate-om-sched-20261109/

Final source ctlsamp.om sha256 8b08191fcc3c1a60d9117bf18f3128c4a6f56b7e1ebe7843b654aac2a81335fd, binary sha256 e0105902b2c59c684714876c4ade8aac2ad15de6a3bdf28373167674e852d0d0, same omc. binaries.sha256 names every build used below: 7a902cd0 (before, the drain-fix build above), c7d19915 (schedule fix only), 9252f9e0 (schedule fix plus the bay 12 fixes, called fin in review-fix.txt and gpu-launch-gaps.txt), ed07511b (adds the launch guard, called g), 44a60e41 (item 6) and e0105902 (final, item 8). All runs on core 0 at nice 19, MEASURED 2026-11-09.

  1. First real 30 minute run, before build 7a902cd0 (run30-7a902cd0.jsonl, 01:49:11Z to 02:19:11Z, exit 0, 360 rows, no error key). Two samples were slow: seq 180 at 02:04:21Z cost 5359172 us and seq 329 at 02:16:52Z cost 10516901 us. The fixed timetable then fired catch-up samples: row gaps 0.610 s after seq 180, and 0.131 s and 0.101 s after seq 329, so nvidia-smi ran about 0.1 s apart against the 5 s machine rule. Wolfram on that trace: gap mean 4.99999 s, min 0.101 s, max 15.385 s; sample cost median 92.6 ms, max 10517 ms. Seq 329 cost more than the two 4 s drain deadlines allow and has no error key, which fits finding 1 below (a child that ended its output and kept running) or CPU starvation on a busy core; the run's raw log (2.2 MB, not filed) has no timestamps, so this is [INFERENCE], not attributed.
  2. Schedule fix. The next sample starts one interval after the current one started, not on a fixed grid. Control (stall-once.sh.tpl: both stand-ins sleep 10 s on their first call only, 4 rows): row gaps before 8.041, 1.959, 5.000 s; after 8.047, 5.000, 5.000 s (slow-gaps.txt, slow-7a902cd0.jsonl, slow-c7d19915.jsonl).
  3. Bay 12 review of 7eeb625d (MERGE_AFTER_FIX), its proposed patch applied unchanged, each finding reproduced on the before build and rerun on the final build (review-fix.txt, review-fix-final.txt):
    • Child that closes stdout and lives 12 s (linger.sh): before, the sample took 12004 ms and the row had no error key (t-old-linger.jsonl); final, 4006 ms and "ups_error": "timeout".
    • 20 digit interval: before exit 101 (trap 1); final exit 2 (usage).
    • Control bytes in nvidia-smi and upsc output (crgpu.sh, crups.sh): before, the row is not valid JSON (t-old-cr.invalid-json.txt); final, "gpu_pstate": "P\u0001\t\"\\0\r" and "ups_status": "OL\r" parse.
    • Final build also: endless writer timeout,truncated in both rows, exit 0; no arguments, exit 2.
  4. Launch guard. Sample starts were spaced, but the /proc reads before the nvidia-smi launch take a variable time. The sampler now waits, just before each launch, until one interval has passed since the previous launch. A stand-in that logs its own start time (gpu-launch-log.sh, stall on the first call, 5 rows) measured launch gaps: before 8.042, 1.958, 5.052, 4.948 s; 9252f9e0 8.037, 5.001, 5.003, 4.998 s; final 8.037, 5.002, 5.003, 4.996 s (gpu-launch-gaps.txt). The residual spread of a few ms is the child's own start time. A case where slow /proc reads make the guard wait is NOT_RUN: the reads cannot be slowed on demand.
  5. Final real 30 minute run, build ed07511b (run30-ed07511b.jsonl, 02:29:36Z to 02:59:37Z, exit 0, 360 rows, no sequence break, no error key, GPU and UPS keys in every row). Wolfram: span 1795.179 s, row gap mean 5.0005 s, min 4.999 s, max 5.037 s, standard deviation 0.0026 s; sample cost min 84.9, median 98.0, mean 106.9, 95th percentile 139.7, max 653.6 ms. No sample was slow in this window, so the catch-up and timeout paths were not exercised live.
  6. Output buffer overflow (bay 4 review of 58abacbe, MERGE_AFTER_FIX). A control byte is written as 6 bytes (\u00XX), so two kept command outputs of 8192 bytes made of byte 1 need about 98 KB, more than the 64 KiB row buffer ob: ed07511b stopped with exit 103 (trap 3) and wrote no row. Now oc writes a full ob to the file of the record being built (odst: the trace file for a row, the raw log for a raw record) and continues, so a long row goes out in more than one write and nothing is cut. Control (long-gpu.sh, long-ups.sh, review-fix-overflow.txt): ed07511b exit 103, 0 bytes; 44a60e41 exit 0, one 99597 byte row that parses, gpu_pstate 8182 and ups_status 8180 characters, all byte 1 (t-long-44a60e41.jsonl). On 44a60e41 the controls in item 3 give the same results, the stall stand-in gives launch gaps 8.039, 5.001, 5.000, 5.000 s (gpu-launch-44a60e41.log), and two real rows have the same key paths and value types as ed07511b. The spill path itself is exercised only by the both-long control above.
  7. Real 30 minute run of build 44a60e41 (run30-44a60e41.jsonl, 04:22:21Z to 04:52:21Z, exit 0, 360 rows, every row parses with jq, no sequence break, no error key, GPU keys in every row; largest row 1460 bytes, so no row reached the spill path). Wolfram: span 1795.153 s, row gap mean 5.0004 s, min 4.999 s, max 5.027 s, standard deviation 0.0024 s; sample cost min 84.9, median 92.6, mean 93.9, 95th percentile 101.0, max 238.5 ms.
  8. Failed or short writes (bay 10 review of feb8632e, MERGE with info 2). Every write to OUT and raw_log ignored its result, so a full disk lost rows while the sampler still exited 0. Now each write is checked (wchk); a failed or short write prints `ctlsamp: write to output failed or was short and exits 4. Control (review-fix-write.txt, every write to /dev/full` returns ENOSPC): OUT=/dev/full gave exit 0 and no message on 44a60e41, exit 4 with the message on e0105902; raw_log=/dev/full gave exit 0 on 44a60e41, exit 4 on e0105902; the spill path with OUT=/dev/full and both long fields gives exit 4. On e0105902 the item 3 and item 6 controls give the same results (both-long: one parsing row, fields 8182 and 8180 characters), the stall stand-in gives launch gaps 8.038, 5.000, 5.000, 5.000 s (gpu-launch-e0105902.log), and two real rows with a raw log have the same key paths as 44a60e41. Real 30 minute run (run30-e0105902.jsonl, 05:07:04Z to 05:37:04Z): exit 0, 360 rows, every row parses, no sequence break, no error key, GPU keys in every row, largest row 1463 bytes. Wolfram: span 1795.208 s, row gap mean 5.0006 s, min 4.999 s, max 5.055 s, standard deviation 0.0038 s; sample cost min 84.2, median 91.3, mean 94.1, 95th percentile 102.0, max 346.1 ms.

Two partial runs of intermediate builds (c7d19915, 9252f9e0) were stopped early when another fix landed and are not filed.