interplane.Get Omega
Read in your language

omega-mv

Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance.

Brought by drakestapleton

branch main Branches Tags History

omega-mv / train / omega-llm / docs / WSP-CONTROLLER.md

314 lines · 20924 bytes Raw Blame History Source

WSP B4: controller scoping (sched and pearl)

Lane wsp, Linear DRA-187, component B4. Written 2026-11-07 by agent CtlTraces on branch wsp/controller of aien-dev/aien-train (base 0518c915dea370b3bffbb90d579b1daa5ba8b8f5).

Status of everything in this file: the controller is PROPOSED. Nothing here is IMPLEMENTED, EXERCISED, QUALIFIED, MERGED or DEPLOYED. The trace and inventory are MEASURED on the host CPU side; no GPU work was opened and no setting was changed.

Every derived number below was computed by the Wolfram evaluator; the query and result are quoted next to it. Row counts, byte sizes and shas are bookkeeping and are not sent to Wolfram.

1. Short answer

2. sched lane: what it already does

Sources (read only, via git show of the remote refs in the wsp omega-mv clone):

What exists:

WordEffectCitation (sched.om at 37b01f18 unless noted)
sched_cap capsSets four 16-bit capacities: kind 0 CPU slots, 1 memory MiB, 2 inference slots, 3 caller-defined. Returns -8 and changes nothing if a kind would fall below current use or below one admitted job's need.line 232; README lines 452-457
sched_policy p win db by ttlPolicy 0 FIFO head-of-line, 1 fair fitting (default). Window 1..64, dispatch budget 1..64, bypass budget 1..65535, ttl 1..1000000. -7 when out of range.line 258; README line 456
sched_pause c onPause stops new assignments; resume dispatches. Already called by auth_pause in auth.om lines 757-822.line 800; README line 332
sched_lease j nsPer-job lease from next assignment; sched_overdue reports and reaps late jobs.lines 422, 444; README lines 544-553
sched_stat iCounters 0..15, capacity 16..19, use 20..23, policy words 24..31.line 212

Key property, sched.om line 25: "Decisions read only these logical counters, never the clock." Defaults from sched_new (line 94): every capacity 65535, policy 1, window 64, budget 64, bypass 4, ttl 1000. Those defaults mean the capacities are not limiting today.

Not yet there: no telemetry input of any kind; no live dispatch ("Until then neither scheduler dispatches live hive work", README lines 406-407), so there are no production scheduler logs, only JSON receipts under evidence/node-schedpol/. DRA-397 says "Learned ranking remains deferred until it beats this baseline in matched evidence"; P-DRA-14 says "baseline scheduling requires no model call". DRA-397, 398 and 399 are Backlog.

3. pearl lane: what it already does

Sources (read only): repo omega-pearl in ~/work/pearl/omega-pearl, branch pearl/dra-422-audit at d81798de2ae0d3253ad09a7d203e52cdb56fa23f, files audit/HARDWARE.md, audit/ENVELOPE.md, audit/CAPABILITY-MATRIX.md; Linear P-DRA-16, DRA-421, 422, 430, 431; brief ~/handoffs/hive/pearl/BRIEF.md. Pushes are frozen pending Drake's Q4 answer.

4. Telemetry inventory (this machine, read without root)

SourceFieldsRate / costLabel
/proc/loadavgload 1/5/15, runnable/totalanyMEASURED
/proc/pressure/{cpu,memory,io}PSI some/full avg10/60/300, totalsany; cpu full is always 0 hereMEASURED
/proc/statper-core busy over 20 cores (delta)anyMEASURED
/proc/meminfoMemTotal, MemAvailable; no swap configuredanyMEASURED
/sys/class/thermal/thermal_zone0..6all seven are acpitzanyMEASURED
hwmonacpitz, nvme temp1-3, wifi phy tempanyMEASURED
nvidia-smi (one-shot)GPU util, power draw, temp, SM clock, pstate; clocks_event_reasons.active available but not sampled; memory used/total N/A (unified memory)the dominant read cost (section 5)PARTIAL: GPU board only
upsc sparkups.load % of 1000 W nominal, status, input voltage, runtimedriver poll 2 s, integer %PARTIAL: whole UPS, other loads unknown
SoC / CPU power railsnone (powercap empty)n/aBLOCKED_INPUT
Wall energyno qualified metern/aBLOCKED_INPUT
~/yardsticks/sensors/<local date>.csv (existing, spark-sensors, started @reboot)epoch, iso, UPS W (load x 10), GPU W, GPU util, load1, MemAvailable, GB10 lock holders, NVRM error countone row about every 2 s; 19 files, 787376 rowsMEASURED history, PARTIAL power
~/yardsticks/windows/<id>/open.json (existing, spark-window)478 window records; state snapshot: loadavg, MemAvailable, GPU util and W, lock holders, GPU apps, last sensors rowone per windowMEASURED event labels
~/.local/state/aien-coordinator/chip-watchdog.log, OWNER, CHIP-RESERVEDfree textnot machine-usable as-is

History span of the existing sensors log, from the first row of 2026-10-19.csv (1792422846, 2026-10-19T10:14:06-05:00) to the last row read (1794030993, 2026-11-06T23:56:33-06:00): WolframLanguageEvaluator: DateDifference[DateObject[{2026,10,19,10,14,6},TimeZone->-5], DateObject[{2026,11,6,23,56,33},TimeZone->-6], {"Day","Hour","Minute","Second"}] -> 18 days 14 h 42 min 27 s.

That log lacks PSI, per-core and thermal fields, so it can train only the reduced feature set (section 6.3). The sampler of section 5 adds those fields.

5. Trace recorded for this study

Directory evidence/OMEGALLM/wsp-ctl-traces-20261107/ in this branch. Both instruments ran on core 0 only, at nice -n 19, read only, with no GPU work and no setting changed.

Instrument going forward: the seeded Omega sampler tools/omegallm/ctlsamp/ctlsamp.om (build, usage, row format and exit codes in its README). It writes the keys of both files below in one row, runs nvidia-smi and upsc through execprog with pipes, and timestamps with monons and realns. Its port gate (2 minute run, keys and types equal to these traces, 71 values per row equal to same-moment raw readings on 3 rows, a missing command recorded as a read error) is in gate-om-20261107/; the output drain fix (a command with large or endless output is read to the end or killed at 4 s and recorded as truncated, normal rows unchanged) is in gate-om-drain-20261107/. Details in the evidence README, all PASS (MEASURED).

The two files below are data from the old Python and shell samplers, which are deleted from the tree; their source stays in commit a64e8707ebd2693254f27285dee6d8bdd0391559.

FileWhatRowsFirst / last ts_utcsha256
trace-001.jsonlold sampler.py, 5 s interval3602026-11-07T05:53:53Z / 06:23:48Z531da5be7473ce80b4d98f736810365dd33339d3f0626ea7b99cb15bcb51a03e
ups-001.jsonlold ups-sampler.sh (upsc spark), 5 s interval3402026-11-07T05:55:10Z / 06:23:45Zfd8a873d20491667d05f81462f2f7848676151addb6f2ced1a1ef3c9caab894c

Start command (recorded in run-start.txt, 2026-11-07T05:53:47Z): taskset -c 0 nice -n 19 python3 sampler.py trace-001.jsonl 5 360. Instrument hashes: sampler.py d45206003f03be9881ae4dc2419b1c5d9ada84ead0f69b5c79c397cae02317e8, ups-sampler.sh 1cd419f15260f4c8d3d6b4023b561b02f515cd5114eae207089d6e67c377f09a. Both logs are empty (no errors). No row has a gpu_error; every UPS row reports status OL.

Span and cadence (MEASURED):

Summary of trace-001. Each line is WolframLanguageEvaluator: With[{d=<column>}, {Length[d], Min[d], Max[d], N[Mean[d]], N[Median[d]], N[Quantile[d,95/100]]}] on the named column (all 360 rows); values rounded here to the precision of the source field.

ColumnnMinMaxMeanMedianp95
load13609.5917.4411.9611.4715.54
PSI cpu some avg10 (%)3600.0720.054.411.7815.13
PSI memory some avg10 (%)36001.220.0880.010.39
PSI io some avg10 (%)360037.441.380.095.46
PSI io full avg10 (%)360033.931.270.085.04
per-core busy % (20 cores x 360 rows)72001.910051.0629.99100
max acpitz (C)36067.893.979.4378.687.8
GPU util (%)36009468.248493
GPU power (W, board only)3605.8945.4337.3743.1444.78
GPU temp (C)360517465.456772
SM clock (MHz)36020125151889.120672509
sample cost (us per row)360314935835255939155943109115

Held-out split for this trace (time-contiguous): WolframLanguageEvaluator: {Floor[2*360/3], 360 - Floor[2*360/3]} -> {240, 120}, so rows seq 0..239 train and seq 240..359 are held out.

R0 replay on this trace (section 6.4 rules 1-4 only; the nvme and clock-reason clauses are NOT_RUN because those fields were not sampled): R0 chooses A0 (keep) on all 360 rows. The hottest row, 93.9 C, stays under the 95 C pause threshold, and no PSI threshold is crossed. So on this window the label set is degenerate: a policy imitating R0 would learn "always keep", and agreement with R0 would say nothing. This is a MEASURED finding about the data, not about a model.

6. Controller spec (PROPOSED)

6.1 Boundary

6.2 Action set (7 discrete actions)

IdActionOffline model (sched word)
A0keepnone
A1pause new assignmentssched_pause c true
A2resumesched_pause c false
A3inference slots minus 1sched_cap with kind 2 lowered by 1 (refused below use)
A4inference slots plus 1, up to the configured maximumsched_cap kind 2 raised by 1
A5CPU slots minus 1sched_cap kind 0 lowered by 1
A6CPU slots plus 1, up to the configured maximumsched_cap kind 0 raised by 1

Memory capacity (kind 1) is not a model action. A fixed guard sets it to MemAvailable minus a reserve; that guard belongs to DRA-430.

6.3 Features (16 inputs)

load1; runnable count; PSI cpu some avg10; PSI memory some and full avg10; PSI io some and full avg10; mean per-core busy %; max acpitz C; MemAvailable / MemTotal; GPU util %; GPU W; GPU C; SM MHz; UPS W (PARTIAL); telemetry age s. The reduced set available in the 18-day sensors history is: load1, MemAvailable, GPU util, GPU W, UPS W, lock holders.

6.4 Baseline rule R0 (deterministic, no model)

Evaluated in order; first match wins; thresholds have hysteresis so R0 does not flap.

  1. Telemetry stale or unreadable: A1.
  2. Max acpitz at or above 95 C, or nvme composite at or above 80 C: A1. Resume (A2) only when acpitz is below 90 C and nvme below 75 C.
  3. PSI memory some avg10 above 10: A3 if any inference slot is in use, else A5.
  4. PSI cpu some avg10 above 50: A5. Below 20 for three decisions: A6.
  5. GPU clock event reasons show thermal or power braking: A3.
  6. Otherwise: A0.

Thresholds are design starting points, not measured optima. The acpitz values sit below the critical trip of 104.8 C recorded by pearl.

6.5 Tiny learned policy

One hidden layer, 32 units, ReLU, 7 outputs, written in .om with f64 (an OM-1 keyword at omega-mv e5b32567; looked up with the omega lookup tool). Size: WolframLanguageEvaluator: 16*32 + 32 + 32*7 + 7 -> 775 parameters, and WolframLanguageEvaluator: 16*32 + 32*7 -> 736 multiply-adds per decision. Training starts from imitation of R0, then from a cost signal (section 6.7). The model output is only a ranking; the action executed is the top-ranked action that sched accepts, so an invalid choice cannot reach the scheduler.

6.6 Held-out split

Time-contiguous, never shuffled. Reduced features: train on sensors files 2026-10-19 to 2026-11-02, hold out 2026-11-03 to 2026-11-06. Full features: first two thirds of each new trace for training, last third held out (section 5: rows 0..239 train, 240..359 held out). Any trace whose window overlaps a spark-window record is tagged with that window id so GPU-busy periods are not split across train and test.

6.7 Metrics

6.8 Bounded hardware-run plan (NOT_RUN; needs authorization)

Only after both lanes agree, pearl DRA-430 provides the action path and DRA-398 lands; the arms act only through jn_cap, jn_policy and auth_pause, never sched_* directly. One authorized spark-window, a fixed synthetic job mix through sched, three arms of equal length (sched defaults, R0, learned policy), order randomized, one decision per 10 s, no clock or power writes. Record completed jobs, sched overdue count, PSI, acpitz, GPU W and UPS W. Wall energy stays BLOCKED_INPUT until a qualified meter exists; UPS W is reported as PARTIAL only.

7. BOARD proposal and replies

Posted to ~/handoffs/BOARD.md at 2026-11-07T06:27:07Z addressed to sched and pearl (the line with wsp/CtlTraces PROPOSE). It asked sched to confirm the three words above are the stable action interface, and pearl to say whether DRA-431 accepts this offline study as its replay input or wants wsp to stand down.

sched replied at 2026-11-07T06:32:58Z (grep '06:32:58Z sched to wsp' ~/handoffs/BOARD.md): the words exist at head 9f5ebd35 (#1064); the offline study may model them; a live controller uses jn_cap / jn_policy / auth_pause after DRA-398, whose journaled words are PROPOSED. Linear DRA-438 is rescoped as the offline study feeding pearl's DRA-431. No reply from pearl is recorded in this document.

8. Open risks