interplane.Get Omega
Read in your language

CUDApp

CUDA++: AIEN’s GPU machine-code toolchain, runtime and driver client for NVIDIA GPUs without the CUDA toolkit. Hardware coverage and driver replacement limits are explicit.

Brought by drakestapleton

branch main Branches Tags History

CUDApp / docs / TOOL_INVENTORY.md

131 lines · 6846 bytes Raw Blame History Rendered
1# Tool inventory: everything becomes Omega, nothing gets renamed
2
3The key point: developers who are using these tools today keep using the same
4names, the same paths, the same flags and the same output. A tool is replaced
5when the Omega build sits at the same path and behaves the same. Nobody has to
6learn anything. What changes under the hood is that the logic is written in my
7language, compiled from the seed, and fast.
8
9Rule per tool: the Omega source lives in this repo under `tools/<name>/`, the
10gate is `tests/omega/run.sh`, and the shipped binary installs over
11`~/.local/bin/<name>`. A replacement that changes an output format or a flag is
12a bug, not a rewrite.
13
14## What is on the box today
15
16`~/.local/bin` holds 163 entries: about 120 real tools and launchers (the rest
17are `.bak-*` copies). By interpreter: 37 `/bin/sh`, 19 `/bin/bash`, 38
18`/usr/bin/env` (python or node), 47 compiled binaries or data. Three shell
19libraries behind them (`~/.local/lib/aien-local-ci/`, `~/.local/lib/aien-watch/`,
20`~/.local/lib/gh-guard/`). About 25 cron jobs and roughly 20 active user
21services call into these.
22
23## Tier 1 - pure logic, replace now (OSC, already possible)
24
25| Tool | Lines | Language | Does |
26|---|---|---|---|
27| `ledger` | 54 | python | TSV ledger: add/note/done/list/stale |
28| `spark-window` | 378 | sh | chip window allocator and lock ledger |
29| `quiet-build` | 58 | sh | quiet-lock build runner |
30| `quiet-measure` | 44 | sh | chip-lock measurement runner |
31| `lock-long-holds` | 76 | sh | lock janitor |
32| `q36-extra` | 68 | bash | extra model load gate |
33| `org-check` | 60 | sh | repo dashboard checks |
34| `org-mirror` | 19 | sh | org mirror |
35| `ghmerge` | 18 | bash | merge queue helper |
36| `watch-merge` | 16 | bash | merge watcher |
37| `rebase-crumb` | 34 | bash | crumb on rebase |
38| `spark-sensors` | 15 | sh | repo dashboard sensor |
39| `spark-receipt` | 102 | sh | receipt builder |
40| `spark-calibrate` | 97 | sh | calibration receipt |
41| `spark-baseline` | 149 | sh | baseline receipt |
42| `spark-build-once` | 121 | sh | keyed build cache |
43| `after-window-18191` | 14 | bash | window follow-up |
44| `sweep-build-scratch` | 14 | python | build scratch sweeper |
45| `wip-snapshot` | 29 | python | WIP snapshots |
46| `vault-add-secret` | 9 | bash | vault add |
47| `wall-power-log.sh` | 7 | sh | power log |
48| `claude-chat-status` | 13 | python | chat status line |
49| `qwen-logs` / `qwen-restart` / `qwen-stop` / `qwen-runtime` / `qwen-gate` | 49 | python | model server control |
50
51Tier-1 cores are parse-and-decide: TSV and lock files, budget arithmetic,
52allowlists. Their Omega ports are the pattern already proven by `nvrm.osc` and
53`kmod.osc`: the decision logic in `.osc` with a run line per rule, a thin
54same-name launcher in front.
55
56## Tier 2 - file and process inspection, replace now (syscall landed)
57
58`osc/syscall@01f933a8` unblocked these: open, read, write, close,
59clock_gettime, getpid are real words.
60
61| Tool | Lines | Language | Does |
62|---|---|---|---|
63| `chip-watchdog` | 30 | bash | stops hung lock holders (reads /proc, nvidia-smi) |
64| `agent-revive` | 21 | bash | dead agent reaper |
65| `coordinator-tick` | 11 | bash | restart-request reader |
66| `aien-local-ci` | 54 | bash | PR judge entry (`lib/pipeline.sh`, `cron-tick.sh` behind it) |
67| `aien-watch` | 124 | python | watch daemon pass (`lib/aien-watch.sh`) |
68| `now-publish` | 70 | python | aienos.com /now/ publisher |
69| `spark-cleanup` | 366 | python | worktree/target cleaner |
70| `investigate.sh` | 49 | sh | incident probe |
71| `hw-grep` / `hw-page` / `docs-read` / `env` | 44 | sh | small readers |
72| `claude-chat-feed` / `claude-inbox-hook` | 34 | python | chat archival |
73| `renda` | 34 | python | PR desk entry |
74| `renda-local` | 278 | python | local-model PR desk |
75| `forgejo-backup` | 212 | sh | forge backup |
76| `agent-mail` | 19 | python | mail entry |
77| `cortex-tool` | 135 | python | cortex client |
78| `crumb` / `crumb-doctor` | 300 | python | crumb notes |
79| `gh` | 314 | python | guarded gh wrapper (the guard logic ports; the gh binary stays) |
80
81## Tier 3 - needs fork/exec/argv (next compiler rungs)
82
83These launch other programs, so they wait on `execve` with argv arrays and
84`wait4`. Named now so the rung is planned, not discovered later:
85`renda-harness` (577 lines, drives review lanes), `renda-loop`,
86`spark-connector-supervise`, `qwen-code`, `spark-window`'s launch path,
87`aien-watch-hook`, `approve-cleared`, `ask-muse`, `rad-push`.
88
89## Tier 4 - compiled services (stay until the runtime grows)
90
91Rust/Go binaries running as services: `cortex-rs`, `cortex-encoder-rs`,
92`spark-cockpit-rs`, `aien` (53k lines), `aien-mail`, `conduit`, `rad`,
93`radicle-node`, `git-remote-rad`, `forgejo-runner`, `mobhub`, `tectonic`,
94`ripwire`, `scrub`, `openclaw`, `agy`, `grok`, `spark-*` compiled daemons
95(dream, harness, supervisor, debugger, distill, discord-hub, muse-bridge,
96mail, inquisitor, connector, rsi, crumbs), `muse`, `agent`, `agent-archive`.
97Their service contracts stay identical; each becomes a porting lane with the
98same name when the runtime can host it.
99
100The wrapped third-party binaries are not exceptions either: they are Tier 4
101lanes, and the gate is named. For gh (about 100k lines of Go), claude and bw:
102the JSON parsing and the API client surface are pure logic and can be written
103in Omega now; sockets are syscalls and are reachable now; the one physical
104gate is a TLS stack written in Omega, which is its own project and a
105security-sensitive one, because a wrong TLS is a hole, not a slowdown.
106Everything I own both ends of (the motor on 127.0.0.1:18091, the ledger, the
107desk handoffs, local CI) needs no TLS, so Omega HTTP over loopback comes
108first. Until a lane completes, the wrapper keeps its guard logic in Omega
109(Tier 2) and the wrapped binary stays: same name, same behavior.
110
111## Keep as-is (not my logic)
112
113Third-party binaries and their thin launchers where the wrapper adds no
114decision: `claude`, `codex`, `code`, `gh`'s underlying binary, `pnpm`/`pnpx`,
115`python3.11`, `hermes*`, `bw` (Bitwarden CLI), `greptile-mcp`, `qwen-code`'s
116npm entry. Wrappers whose guard logic is mine (the `gh` guard, the `claude`
117guard) get their guard ported to Omega at Tier 2 while the wrapped binary
118stays.
119
120## Order
121
1221. Tier 1 in this repo, `tools/<name>/`, same-name drop-ins: `ledger` first
123 (smallest, most used), then `quiet-build`, `quiet-measure`, `spark-window`
124 (the big one at 378 lines), then the rest of the table.
1252. Tier 2 as syscall use matures, one tool per branch, each keeping its name.
1263. Tier 3 opens when `execve` + `wait4` land; `renda-harness` is the first
127 target and the biggest win.
1284. Tier 4 lanes open per service; the Rust ones stay until then.
129
130Every replacement keeps the old tool archived at `<name>.pre-omega-<date>`
131and a receipt: same inputs, same output, byte for byte, before the swap.