interplane.Get Omega
Read in your language

aien-architecture-mv

Canonical architecture for the AIEN ecosystem: flows, boundaries, ADRs, and the map from design to implementation repositories.

Brought by drakestapleton

ADR 0044: One cubin writer per NVIDIA target family, owned by CUDApp

merged 9de2c2b7eff6945d #357 · opened 2026-10-30 11:33 UTC · closed 2026-10-30 11:43 UTC · merged 2026-10-30 11:43 UTC

Imported from GitHub aien-dev/aien-architecture-mv#357, by drakestapleton

Base cded18fc533625d0e782a1657e793786c15de610 · Head 4b651ba6d922da8747f513a8ffa7eea2f649e049

Merged on GitHub as e5262c3eecf4ed0b9bec7b1a3f2966e57f4ecd39; reachable from main bccab5ea7a17be6c9ab30b1bd05db4898a4601be (observed 2026-11-18T16:37:27Z)

drakestapleton wrote on 2026-10-30 11:33 UTC

Issue-first tracking

Tracking issue: Refs aien-dev/CUDApp#108. This PR records an already-accepted decision and does not close that issue. No CUDApp issue was filed. Gates advanced and status: Documentation only. Crumb verify PASS at 4b651ba. Doctrine gate was NOT_RUN on the first commit (exit 3, AIEN_OMC unset) and was not re-run. No code and no hardware run. Source, test and qualification evidence: below.

  • Remaining unrun gates are named below.
  • No implementation issue in this repository. CUDApp#108 stays the consolidation ledger.

Architecture change

Responsibility changed

Cubin writing for each NVIDIA target family, the sm_80 family included, belongs to CUDApp. Option B is unchanged: cubin_elf.om is canonical, new writer work is .om, and omega_cubin.c stays frozen until the .om writer produces byte-identical sm_121 cubins and loads on GB10.

ADR

ADR 0044. Status line: Accepted (Primate, 2026-10-30).

main now contains ADR 0043 (merge a0a7146, PR #343). This branch merged main (cded18fc) and kept both index lines, 0043 then 0044.

Implementation evidence

None. The ADR moves no code. The latest commit touches only the omega-mv hardware-load sentence in docs/adr/0044-one-cubin-writer-per-nvidia-target-family.md. The decision text is unchanged. The repo-root README.md ADR count is untouched.

Security boundary

No change to policy, secrets, effects, identity, provenance, or speculative execution.

Failure behavior

No runtime change.

Diagrams

None.

Checklist

  • Planned work is not described as implemented.
  • The decision names NVIDIA families and GB10 because those are the cubin targets it assigns.
  • Tool, Skill, World, Cortex, and J-Space responsibilities stay as they are.
  • External irreversible effects still require AEGIS and the Effect Broker.
  • Secrets stay out of model-visible and provenance state.

Corrections

Option B is the same decision. Retiring src/omega_cubin.c still waits on byte-identical sm_121 cubins that load on GB10.

4b651ba replaces "its hardware load is NOT_RUN" for the omega-mv writer. The ADR now says the body of omega-mv#864 reports libcuda load PASS lines (vecadd/ctl PASS on an RTX 4090 at sm_80/86/89, a B200 at sm_100, and an RTX 5090 at sm_120), that those lines are reported by that PR, and that they were not independently re-run for this ADR.

Earlier accuracy commit b8dfd31, on top of merge 61db167:

  1. README conflict from ADR 0043 is resolved. Both the 0043 line from main and the 0044 line are present.
  2. ADR 0042 Decision 7 requires a separate consolidation decision by Primate (Drake). This ADR records that decision (option B, 2026-10-30).
  3. Context describes CUDApp main d79519e0: omega_cubin.c writes the container only (no device open, no launch), the hosted build packs through om/cubin/cubin_elf.om, and the C body is slated for deletion. ADR 0043 call 15 cites the older pin 780a0af1.
  4. seed/sm80/cubin.om accepts SM 80, 86, 87, 89, 90, 100, 103, and 120, and refuses 121.
  5. The count matches CUDApp#190: one sm_121 ABI 8 writer with two bodies, plus cubin.om. Option A is "keep both bodies and keep cubin.om."
  6. tkinfo on sm_121 ABI 8 and the stored register count are tracked in CUDApp#190. The alu.s2 race issue is still to be filed in CUDApp. None was filed here.
  7. The NVIDIA backend/<target>/ directory does not exist on CUDApp yet (backend/amd and backend/spirv do). It is created when the work moves.

Checks

  • tests/gates/run.sh crumb-verify at 4b651ba: PASS. crumb verify: OK: 28 crumbs current at HEAD 4b651ba, generated data on demand, root digest sha256:174e26d7c1108d6111c2cb973920579a312e1b57430a177a7d4f25fdb7ecc8ac
  • Doctrine gate: NOT_RUN on the first commit (exit 3, AIEN_OMC unset). Not re-run. It does not scan docs/adr/.
  • Link checker: NOT RUN. This repository has no link checker. scripts/pr-gate.sh is a merge gate and was not run.

Do not merge.

— Grokbot

<div><a href="https://cursor.com/agents/bc-a67da3d4-b3cc-5492-bee5-126dc89ecbfb?cursor_ref=pr_footer&cursor_cta=open_in_web"><picture><source media="(prefers-color-scheme: dark)" srcset="https://cursor.com/assets/images/open-in-web-dark.png"><source media="(prefers-color-scheme: light)" srcset="https://cursor.com/assets/images/open-in-web-light.png"><img alt="Open in Web" width="114" height="28" src="https://cursor.com/assets/images/open-in-web-dark.png"></picture></a> <a href="https://cursor.com/background-agent?bcId=bc-a67da3d4-b3cc-5492-bee5-126dc89ecbfb&cursor_ref=pr_footer&cursor_cta=open_in_cursor"><picture><source media="(prefers-color-scheme: dark)" srcset="https://cursor.com/assets/images/open-in-cursor-dark.png"><source media="(prefers-color-scheme: light)" srcset="https://cursor.com/assets/images/open-in-cursor-light.png"><img alt="Open in Cursor" width="131" height="28" src="https://cursor.com/assets/images/open-in-cursor-dark.png"></picture></a> </div>

drakestapleton reviewed (COMMENTED) on 2026-10-30 11:42 UTC

Triage: ready-to-merge. Read-only fact check at 4b651ba. Option B (Accepted 2026-10-30) is Drake's decision as relayed by Aien and Architecture. This review checks facts only and does not reopen it.

Verified

  • CUDApp d79519e0, src/omega_cubin.c:
    • :4-6: container writer only; no device is opened and nothing is launched.
    • :7: the hosted build packs through om/cubin/cubin_elf.om.
    • :20: the C body is slated for deletion.
    • There is no NVIDIA backend/<target>/ yet; only backend/amd and backend/spirv exist.
  • ADR 0043:139 (call 15) cites 780a0af1 and omega_cubin.c.
  • omega-mv seed/sm80/cubin.om@76639738:167-181 accepts exactly 80/86/87/89/90/100/103/120 and refuses 121 with exit 2. This is the ref the ADR cites, on omega-mv#864 (closed draft). The file 404s on omega-mv main, as the ADR says.
  • The libcuda PASS lines match the omega-mv#864 body word for word and are marked as reported, not re-run.
  • The 61db167 merge from main: the README index keeps the 0043 line and adds 0044 in matching format, with nothing dropped or duplicated. The diff touches only the ADR and docs/adr/README.md.
  • Status line format matches ADR 0043:5. All checks are green (AIEN Alpha skipped, as usual). Not stacked; merge state clean.

Optional, not blocking

  1. Carry #864's own caveats next to the PASS lines:
    • sm_90 with ABI 8 was NOT_RUN; only ABI 7 passed.
    • sm_103 was NOT_RUN.
    • sm_87 has no load result.
    • The cubin without tkinfo still fails to load (error 200) on sm89 and sm120.
  2. CUDApp#190 is an open PR, and its docs/CUBIN_WRITERS.md is not on CUDApp main yet. Consider calling it a "proposed inventory".
  3. omega_cubin.c:20 retires the C body "once the freestanding binding lands". Consider naming that next to the ADR's gate (byte-identical sm_121 output that loads on GB10), so the two retirement conditions don't drift apart.
  4. 0042:70-71 says consolidation decisions are recorded on the tracking issue. Consider noting that this one was recorded on CUDApp#108, or link the record.

— Grokbot

Fetch it

A git bundle of the pull request's head, 5763 bytes.

curl -fsSL https://interplane.io/drakestapleton/aien-architecture-mv/patches/9de2c2b7eff6945d.bundle -o 9de2c2b7eff6945d.bundle
git fetch 9de2c2b7eff6945d.bundle refs/pull/357/head

Raw bundle · Diff

Provenance

This proposal is imported from GitHub; it is not signed by its author. Its import statement and source record:

github-import 1
aien-dev/aien-architecture-mv
357
4b651ba6d922da8747f513a8ffa7eea2f649e049
{"kind":"github-import","owner":"aien-dev","repo":"aien-architecture-mv","number":357,"url":"https://github.com/aien-dev/aien-architecture-mv/pull/357","export_sha256":"e0ab76730762f7bd707f3b0c07e133f83d4287854fada828261004f8d4bcaa1a","imported_utc":"2026-11-18T16:37:27Z"}

Changes

diff --git a/docs/adr/0044-one-cubin-writer-per-nvidia-target-family.md b/docs/adr/0044-one-cubin-writer-per-nvidia-target-family.md
new file mode 100644
index 0000000..800c73b
--- /dev/null
+++ b/docs/adr/0044-one-cubin-writer-per-nvidia-target-family.md
@@ -0,0 +1,66 @@
+# ADR 0044: One cubin writer per NVIDIA target family, owned by CUDApp
+
+**Status:** Accepted (Primate, 2026-10-30).
+This ADR moves no code.
+**Related:** ADR 0042 (ARCH-0042) Decision 7, ADR 0043 call 15 (merged #343; CUDApp pin `780a0af1`).
+[CUDApp#108](https://github.com/aien-dev/CUDApp/issues/108) tracks consolidation.
+[CUDApp#170](https://github.com/aien-dev/CUDApp/issues/170) rebases onto this layout.
+[CUDApp#190](https://github.com/aien-dev/CUDApp/pull/190) is the inventory note.
+[omega-mv#864](https://github.com/aien-dev/omega-mv/pull/864) holds `seed/sm80/cubin.om`.
+
+---
+
+## Context
+
+On CUDApp main `d79519e0` the sm_121 ABI 8 writer is one writer with two bodies
+([CUDApp#190](https://github.com/aien-dev/CUDApp/pull/190)). `src/omega_cubin.c` writes the
+container only: it opens no device and performs no launch. The hosted build packs through
+`om/cubin/cubin_elf.om`. The C body is slated for deletion. ADR 0043 call 15 cites the older
+CUDApp pin `780a0af1`, where the GB10 column of `ob_code_load` names `omega_cubin.c` for cubins.
+
+omega-mv `seed/sm80/cubin.om` exists only on closed draft omega-mv#864. It accepts SM 80, 86,
+87, 89, 90, 100, 103, and 120, and it refuses 121. The body of
+[omega-mv#864](https://github.com/aien-dev/omega-mv/pull/864#issue-6050605672) reports libcuda
+load PASS lines: vecadd/ctl PASS on an RTX 4090 (sm_80/86/89), a B200 (sm_100), and an RTX 5090
+(sm_120). Those lines are reported by that PR and were not independently re-run for this ADR.
+
+ADR 0042 (ARCH-0042) makes CUDApp the owner. Decision 7 requires a separate consolidation
+decision by Primate (Drake). This ADR records that decision (option B, 2026-10-30). ADR 0043
+does not cover the sm_80 family.
+
+## Options
+
+The count is the one in CUDApp#190: two bodies of the sm_121 writer, plus `cubin.om`.
+
+- **A.** Keep both bodies and keep `cubin.om`.
+- **B.** `cubin_elf.om` is canonical.
+- **C.** `omega_cubin.c` is canonical.
+
+## Decision
+
+Option B. One cubin writer per NVIDIA target family, owned by CUDApp.
+
+CUDApp owns all cubin writing, the sm_80 family included, under `backend/<target>/`. The
+NVIDIA `backend/<target>/` directory does not exist on CUDApp yet. It is created when the
+work moves. New writer work goes only into `.om`. `omega_cubin.c` is frozen, and it is
+retired only after the `.om` writer produces byte-identical sm_121 cubins and loads on GB10.
+That removal is a later, separate PR.
+
+omega-mv#864's ABI 8 and register-reserve findings are ported into CUDApp as new work. No
+writer stays in omega-mv except a declared, pinned oracle (ADR 0042 Decision 4). CUDApp#170
+rebases onto this layout.
+
+## Consequences
+
+CUDApp#108 tracks consolidation, and CUDApp#190's note becomes the inventory. tkinfo on
+sm_121 ABI 8 and the stored register count are tracked in CUDApp#190. The alu.s2 race issue
+is still to be filed in CUDApp. Hardware tiers stay NOT_RUN until an authorized window.
+This ADR moves no code.
+
+## Source
+
+- ADR 0042, merged as #342. Decision 7 requires the separate consolidation decision recorded here.
+- ADR 0043, merged as #343 (`a0a7146`). Call 15 (`ob_code_load`) cites CUDApp `780a0af1`.
+- CUDApp main `d79519e0`: `src/omega_cubin.c` and `om/cubin/cubin_elf.om`.
+- CUDApp#108, CUDApp#170, CUDApp#190.
+- omega-mv#864, `seed/sm80/cubin.om` on `ck/cubin-om` (`76639738`).
diff --git a/docs/adr/README.md b/docs/adr/README.md
index 6417f71..6af5318 100644
--- a/docs/adr/README.md
+++ b/docs/adr/README.md
@@ -56,3 +56,4 @@ Current ADRs:
 - [0041 - Aienux is written in Omega; the legacy C kernel is sunset](0041-aienux-written-in-omega-c-kernel-sunset.md) - ACCEPTED 2026-10-24 (Drake): Omega is the only kernel language; C kernel frozen to bug fixes, retired at parity; transition plan PROPOSED (L802). Rebased onto main after ARCH-0039 and ARCH-0040 landed (PR #322 was CONFLICTING).
 - [0042 - Omega owns computation, CUDApp owns GPU execution, Omega Bridge owns compatibility](0042-omega-cudapp-bridge-ownership.md) - ACCEPTED 2026-10-30 (Main, delegated by Drake) (Drake's forwarded omega-bridge assessment, 2026-10-27); duplication issues CUDApp#106-108, CUDApp#10, omega-mv#870-871
 - [0043 - GPU stack: portable Omega top, thin per-target backend behind one 30-call ABI; one kernel source (Omegese → IR → checker2); unified memory; AMD second, Vulkan fallback; ggml/vLLM/ORT attachments; human review rule](0043-gpu-stack-portable-top-thin-backend.md) - ACCEPTED 2026-10-30 (Primate; lane SplitDesign; design only, code gated on P0 + C2–C5 QUALIFIED)
+- [0044 - One cubin writer per NVIDIA target family, owned by CUDApp](0044-one-cubin-writer-per-nvidia-target-family.md) - ACCEPTED 2026-10-30 (Primate); one `.om` writer per NVIDIA target family under CUDApp `backend/<target>/` (the NVIDIA directory is created when the work moves); `omega_cubin.c` frozen; CUDApp#108, CUDApp#170, CUDApp#190, omega-mv#864