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

fix(native): integrate reviewed trace emitter safety repair into main

merged 89cbe7cc3cf3a5ef #93 · opened 2026-10-26 03:45 UTC · closed 2026-10-27 04:24 UTC · merged 2026-10-27 04:24 UTC

Imported from GitHub aien-dev/CUDApp#93, by drakestapleton

Base 780a0af1f08c1786ea53a4e8702ca8bb1396fdbb · Head 6d37ec8ff0dfaadeeca9715a689ab5e8537eb084

Merged on GitHub as 061493a39608b6e4eed261cb52c6d024b374f1b4; reachable from main 21d8de285f713adf09e0d6ba6db2b37139d0674e (observed 2026-11-18T16:38:29Z)

drakestapleton wrote on 2026-10-26 03:45 UTC

Purpose: finish integrating the already reviewed repair

#84 merged into main at 728838ccf4939c868443eeaf0490e4e26f381006. #85 then merged only into feat/device-trace-emitter, at 68e1634ef21d81261606ff62b0197336771e9eb9. Consequently, current main c73afb25cce8d22e039287a8ab2e4cd4c7aecf67 still contains the original erroneous emitter.

This main-target draft carries the exact seven reviewed code/test/evidence blobs from #85, plus one additive integration receipt. It does not redesign the repair or overwrite either existing branch. Related: #82, #84, #85.

Repair carried unchanged

  • Full-width base-plus-record-offset address formation using the existing MOV plus IMAD.WIDE.U32 form; marker length and branch displacement unchanged.
  • Every nonzero enable requires exactly gtchecks == 1.
  • Predicate-independent EXIT refusal before output mutation; actual gbvec negative tests.
  • Prepared straight-line body-fragment boundary, with explicit single-CTA, R0 = TID.X, clobber, and fallthrough preconditions. This is not arbitrary complete-kernel instrumentation or a CFG verifier.

Fresh evidence on current main

Integration receipt; the original #85 receipt and reproduction notes are carried unchanged.

  • PASS, host-reference only: four integrated semantic units exit 0.
  • PASS, negative controls: final address/guard/body tests against current main fail 3/1/1. Ten compiler-accepted mutations are rejected.
  • PASS, compiler-source check: original and explicit constant-projected units compile to byte-identical AArch64 ELFs. The frozen external oracle predates const, so semantic runs use that documented projection. No AArch64 output was executed.
  • PASS, independent integration review: all seven carried blobs match #85; fresh git-show-based old/main versus repaired tests reproduced the failures and passes. #80 artifact admission, #83 trace contract, #87 documentation, #92 shader pilot, and vector/launch/context files are unchanged.
  • PASS: JSON, targeted privacy, and git diff --check.
  • FAIL: make test exits 2 building build/omega_blackwell_engine.o because the x86 assembler rejects existing AArch64 ds instructions at lines 393 and 558. This is not a full-suite pass.

Tested local integration source c2077eeaf3ffd221018edcd911a1434dc32537e6; local evidence tip e8b50da813faf5a9a8dc5536bf0898b40181244e. Published head c80d51140de4f24bb046498df3f271191c46b05b has the identical reviewed full tree c6dd4f249d3429607be904dce5644c6b15a05351; connector publication changes commit metadata. Commands and exact pins/hashes are in the receipts.

Limits remain blockers, not waived checks

  • Historical expected.sass remains stale; the existing disassembler runner comparison does not pass for the repair. Repository policy forbids committing NVIDIA-tool listings. Nothing was regenerated, bypassed, or weakened to hide that conflict.
  • New semantic tests remain standalone, not integrated into the existing runner or make test.
  • Native AArch64/full native execution and all GB10 execution, scheduling, timer/store qualification, QMD/launch wiring, paired off/on equivalence/overhead, clock qualification, and chip repeatability: NOT_RUN.
  • Runtime overflow/drop accounting, partial capture, capacity 0/1 capture, and begin/end ranges remain unimplemented; disabled capacity zero remains refused.
  • make test-native-artifact, make zero-cuda-gate, build/hello_gpu --sim, and make doctor were not rerun for this narrow integration; no result from the failed common build is counted as passing.
  • The previous offline disassembly receipt remains historical evidence of the byte-identical source, not a newly claimed integration run.

No driver/admission/protection/workflow/trust changes, NVIDIA binaries/listings, hardware access, merge, or deployment. No CUDA-performance claim. Keep draft for review and missing native/integration checks; exact-head CI will be tracked separately.

Exact-head CI follow-up

Head c80d51140de4f24bb046498df3f271191c46b05b completed CodeQL, Analyze (c-cpp), and Analyze (python) successfully in run 40265606202. Check-run head identities and terminal conclusions were verified, and the analysis job steps completed successfully. These static-analysis results do not replace the still-blocked native/full host suite or the missing GPU, launch, and stale-golden work above. This PR remains draft and unmerged.

Train review addendum (2026-10-27, head 6d37ec8)

  • The four units now also ran natively on AArch64 with omc 2c824805 (rc=0 each); main's emitter fails 3/1/1.
  • expected.sass (an nvdisasm listing, stale) is removed; run-emitter-checks.sh checks hand-written decode expectations and passes on this head, fails on main's emitter.
  • make test on aarch64 after merging origin/main: CUDA++ HOST TESTS PASS (35 targets), rc=0. The x86 failure above is superseded for aarch64.

drakestapleton wrote on 2026-10-27 05:37 UTC

Follow-up is open for review in #131: the emitter runner now requires all four existing Omega safety units, with handwritten timer/store-field assertions and retained negative controls. Production emitter and driver code are unchanged. Independent host-reference checks pass; native execution and targeted crumb verification remain explicitly NOT_RUN. Exact-head CI is being tracked on #131.

- reviewed (COMMENTED) on -

Train review (TrainFixes, for Main; non-author review)

Head reviewed: 6d37ec8ff0dfaadeeca9715a689ab5e8537eb084 (author head c80d5114 + 3 review commits below). Fresh clone, aarch64 DGX Spark, no GPU opened.

Run

  • Four emitter-safety units compiled with omega-mv main's seeded seed/out/omc (sha256 2c824805…029f, omega-mv e5b32567) and executed natively on AArch64 (the PR body had only host-referee runs): emitter/address/guard/body compile rc=0 with empty stderr, run rc=0.
  • Negative control: the same units composed with main's trace-emit.om (pre-repair): address rc=3, guard rc=1, body rc=1 (matches the body's 3/1/1).
  • tests/device-trace/run-emitter-checks.sh (with nvdisasm 13.0 as outside oracle, listing kept in the temp dir): nvdisasm decode matches the hand-written expectations (40 instructions), rc=0. Same runner on main's emitter: rc=1 (offset 0x0070: want 'MOV R6, 0x40', got 'IMAD.SHL R8, R4, 0x40, RZ').
  • nice -n 19 taskset -c 10-14 make test on the merged tree: rc=0, CUDA++ HOST TESTS PASS (35 targets). The x86 assembler failure in the body does not apply on aarch64.
  • Logs: /home/drakestapleton/handoffs/Train/TrainFixes/logs/pr93-units.log, pr93-make-test.log.

Defects fixed on the branch

  • 0e31472 The disassembler runner compared against tests/device-trace/expected.sass, an nvdisasm listing (AGENTS.md forbids NVIDIA-tool listings in the repo) that still described the PR84 multiply-based address bug, so the runner was red on the repair. Removed the listing; the runner now checks hand-written expectations (opcode counts, and MOV R6, 0x40/0x80 + IMAD.WIDE.U32 R8, R6, 0x1, R4 at 0x70/0x80/0x1b0/0x1c0). README-safety and the emitter-test note updated. Historical receipts untouched.
  • 75e23ae merge of origin/main 780a0af (branch was based on c73afb2); 6d37ec8 tests/device-trace crumb refresh (crumb verify .: 20 current).

Chip: NOT_RUN (no chip claim in this PR; GB10 execution, QMD/launch wiring, overhead remain open as the body says).

Verdict: LAND. EXERCISED (host, native aarch64 units + decode oracle); not QUALIFIED.

Fetch it

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

curl -fsSL https://interplane.io/drakestapleton/CUDApp/patches/89cbe7cc3cf3a5ef.bundle -o 89cbe7cc3cf3a5ef.bundle
git fetch 89cbe7cc3cf3a5ef.bundle refs/pull/93/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/CUDApp
93
6d37ec8ff0dfaadeeca9715a689ab5e8537eb084
{"kind":"github-import","owner":"aien-dev","repo":"CUDApp","number":93,"url":"https://github.com/aien-dev/CUDApp/pull/93","export_sha256":"0aafd51b77ff5776d6baaf9b88b48c8b36a6e27c8d829ae8ded561b71712b17a","imported_utc":"2026-11-18T16:38:29Z"}

Changes

diff --git a/evidence/device-trace/emitter-safety-host-20261026/REPRODUCE.md b/evidence/device-trace/emitter-safety-host-20261026/REPRODUCE.md
new file mode 100644
index 00000000..f64b3643
--- /dev/null
+++ b/evidence/device-trace/emitter-safety-host-20261026/REPRODUCE.md
@@ -0,0 +1,111 @@
+# Local host-only repair evidence
+
+Read `receipt.json` for exact source, compiler, oracle, output hashes, statuses,
+negative controls, and unverified boundaries. Its source commit is a local
+isolated commit; file hashes identify the tested bytes independently of later
+publication metadata. No native AArch64 or GPU output was executed.
+
+The native commands for an appropriate AArch64 host are in
+`tests/device-trace/README-safety.md`. The existing disassembler runner is not
+green: its inherited golden describes the old pointer bug. No gate was bypassed
+and no NVIDIA-tool listing was committed to conceal that mismatch.
+
+## External oracle setup
+
+Obtain the existing `tools/omega_ref/omega_ref.c` from Omega commit
+`190130b71d0a59b93f01c515218a5509b149a145` in a separate test workspace. Check
+its SHA256 against the receipt before compiling it:
+
+```sh
+cc -O2 -g -std=gnu11 -Wall -Wextra -Werror -o omega_ref omega_ref.c -lpthread
+```
+
+Obtain the compiler source `seed/omc/omc.om` at the separate compiler revision
+in the receipt. Confirm both source and independently recorded seeded binary
+digests. The measured self-output command was:
+
+```sh
+./omega_ref check omc.om
+./omega_ref run omc.om < omc.om > compiler-self.elf 2> compiler-self.stderr
+sha256sum compiler-self.elf
+```
+
+It exited zero with empty stderr and matched the independently recorded
+`499236398aabc652e2dae27fe4bdc4c5db3d3726314356e0dbef23e3345803ec` digest.
+This is compiler-source execution by an external referee, not native compiler
+execution or seed-chain qualification.
+
+## Original versus projected units
+
+Compose the four original units as documented in the test README. The frozen
+oracle predates `const` and refuses the unmodified emitter with error 16.
+For semantic tests only, a separate copy was projected mechanically:
+
+1. Collect `const NAME ulong VALUE` lines. The emitter contains only decimal
+   unsigned-long literal constants and has no shadowed constant names.
+2. Remove those declaration lines.
+3. In non-`note` lines, replace whole `NAME` tokens with `ulong VALUE`. Preserve
+   all other text. Do not change the original units.
+
+For each original `unit.om` and its `unit.projected.om`:
+
+```sh
+./omega_ref check unit.projected.om
+./omega_ref run unit.projected.om > unit.stdout 2> unit.stderr
+./omega_ref run omc.om < unit.om > unit.elf 2> unit.compile.stderr
+./omega_ref run omc.om < unit.projected.om > projected.elf 2> projected.compile.stderr
+cmp unit.elf projected.elf
+```
+
+All final checks/runs/compiles exited zero with empty stderr, and every `cmp`
+matched. The four original and projected ELF hashes are recorded separately.
+They are AArch64 outputs and were **not executed**. Semantic execution claims
+refer only to the explicitly projected unit under the external oracle.
+
+## Red tests and mutation controls
+
+Before production changes, the original emitter test passed while the new
+address, guard, and whole-kernel tests failed with statuses 3, 1, and 1. After
+test refinements, repeat the same composition against the exact original PR84
+source from `git show 60d6c57fc6821accce0027d65dd239355beeb543:native/blackwell/trace-emit.om`.
+The compiler accepted those final red units, and they still failed 3, 1, and 1.
+
+Apply each mutation in a disposable source copy, never in the working tree.
+The receipt lists the expected failing test and its measured status:
+
+- Restore multiply-base-low plus high-copy address instructions.
+- Restore the original `on == 1 && checks == 0` gate.
+- Accept any nonzero `checks` instead of requiring exactly 1.
+- Skip the body refusal entirely.
+- Apply the body refusal only to `on == 1`.
+- Compare predicate bits as part of EXIT instead of masking them.
+- Set bit 16 or the sign bit of a store's signed 24-bit byte offset.
+- Set the branch high displacement word, or its upper encoded bits.
+
+All ten mutated units were accepted by the compiler and reference checker,
+but failed their semantic tests. Independent review repeated the four final
+unit runs and all ten mutation runs. Two initial test gaps and compiler
+register-pressure corrections are preserved in the receipt, not hidden.
+
+## External decode and full-suite boundary
+
+A dump unit calls `gtewrap 1 2` with an empty body and writes `gbout` to stdout.
+Its original and projected forms compiled to identical ELF bytes. The projected
+oracle run produced the GPU words, decoded offline with:
+
+```sh
+nvdisasm --binary SM121 words.bin > decoded.sass
+diff -u tests/device-trace/expected.sass decoded.sass
+```
+
+The disassembler exited zero. The diff exited one: only the two address
+instructions per marker changed, as intended. The downloadable official tool
+archive and all local output hashes are in the receipt. Those binaries and
+listings stay outside the repository.
+
+`make test` was attempted on both the base and repaired source. Both failed
+building `build/omega_blackwell_engine.o`, because the x86 assembler rejects
+the existing AArch64 `ds` instructions. No host suite success is claimed.
+The instruction scheduler, GB10 memory effects, launch geometry, visibility,
+overhead, and runtime overflow still require their separate authorized native
+and hardware work. No hardware authorization was requested or inferred.
diff --git a/evidence/device-trace/emitter-safety-host-20261026/receipt.json b/evidence/device-trace/emitter-safety-host-20261026/receipt.json
new file mode 100644
index 00000000..87ff9cc6
--- /dev/null
+++ b/evidence/device-trace/emitter-safety-host-20261026/receipt.json
@@ -0,0 +1,354 @@
+{
+  "schema": "cudapp.device-trace.emitter-safety-receipt.v1",
+  "date_utc": "2026-10-26",
+  "status": "LOCAL_HOST_ONLY_REPAIR; NOT_READY_FOR_GPU; HISTORICAL_GOLDEN_STALE",
+  "repository": "https://github.com/aien-dev/CUDApp",
+  "base_commit": "60d6c57fc6821accce0027d65dd239355beeb543",
+  "source_commit": "617c4905108c3895fce917c4b5e89403ef1d7325",
+  "platform": "Linux x86_64",
+  "source_sha256": {
+    "native/blackwell/trace-emit.om": "032925efb802f4ff6222245eb5bd6b1ba7ce4264f24ee04ece468717322789d9",
+    "tests/device-trace/address-test.om": "f58627bb65bd8255de76746dd1734f68d5773b6378b7a59d5a630a31afd0473d",
+    "tests/device-trace/guard-test.om": "2748a40d54dc8dfa1e2cd2717f04f626806aae1d3e5ce3668c78486fe6e1b582",
+    "tests/device-trace/body-test.om": "8dd759f8b77388f74dbb0f8a729251f47a4e5b6f65371ffc721ac2c607d88f79",
+    "tests/device-trace/README-safety.md": "3e83078722cabe8f0c22b05502de5e87926a5e96273425d0af6cda0b5428bb8a"
+  },
+  "implementation": [
+    "Replace multiply-base-low plus high-copy with existing MOV offset plus IMAD.WIDE.U32 base-pair add. Marker instruction count and branch displacement unchanged.",
+    "Require gtchecks exactly 1 for every nonzero enable value.",
+    "Reject input EXIT instructions independent of predicate before output mutation. Enabled input remains a prepared single-CTA linear fragment with explicit register and fallthrough preconditions, not a general complete-kernel wrapper."
+  ],
+  "oracle": {
+    "role": "Existing frozen external test referee, not product code, native execution, or part of the seed chain.",
+    "repository": "https://github.com/aien-dev/omega-mv",
+    "commit": "190130b71d0a59b93f01c515218a5509b149a145",
+    "source_path": "tools/omega_ref/omega_ref.c",
+    "source_sha256": "52e747096c1d978103432460a2978b21a604cc5d3e961bbe4b253fcc7636290e",
+    "binary_sha256": "81106113f7d031f709098cddb6f89f301a6f9d25ed0179d2e5ec36c75749c4f2",
+    "const_limitation": "Unmodified PR84 source is refused with error16 at first const declaration. Semantic runs use an explicitly recorded test-only literal-constant projection; they are NOT runs of the unmodified source.",
+    "projection": "Remove const NAME ulong VALUE declarations and replace NAME tokens in non-note lines by ulong VALUE. No other statement is changed. For each final unit the real Omega compiler, itself executed by the referee, accepts both original and projected sources with empty stderr and produces byte-identical AArch64 ELFs. These ELFs are never executed."
+  },
+  "compiler": {
+    "repository": "https://github.com/aien-dev/omega-mv",
+    "source_revision": "7505b3a3e3cf5ee46933e3a89a021b4289037983",
+    "source_path": "seed/omc/omc.om",
+    "source_sha256": "c792b401193d8477d38965d6ddb0fd0cb8fd5ac24fcb92fae9af52037a765f1c",
+    "independently_expected_seeded_binary_sha256": "499236398aabc652e2dae27fe4bdc4c5db3d3726314356e0dbef23e3345803ec",
+    "referee_self_output_sha256": "499236398aabc652e2dae27fe4bdc4c5db3d3726314356e0dbef23e3345803ec",
+    "check_exit": 0,
+    "self_compile_exit": 0,
+    "self_compile_stderr_bytes": 0,
+    "identity_note": "This compiler pin differs from PR84 historical receipt c99eda...; no claim to have rerun that compiler binary."
+  },
+  "red_final_tests_against_base": [
+    {
+      "test": "address",
+      "run_exit": 3,
+      "compile_exit": 0,
+      "stderr": ""
+    },
+    {
+      "test": "guard",
+      "run_exit": 1,
+      "compile_exit": 0,
+      "stderr": ""
+    },
+    {
+      "test": "body",
+      "run_exit": 1,
+      "compile_exit": 0,
+      "stderr": ""
+    }
+  ],
+  "final_semantic_tests": [
+    {
+      "stage": "final",
+      "test": "emitter",
+      "source_sha256": "be6b9e79c90d7099431153690b46ef8e300a55f29f01e4ecf1ad7d2daf68507f",
+      "projection_sha256": "0afc1de7a9209fc5bf81856745ca89787604255df5591fc25e87ea2feee1c334",
+      "check_exit": 0,
+      "run_exit": 0
+    },
+    {
+      "stage": "final",
+      "test": "address",
+      "source_sha256": "5951907eea227b908bc3f53193293f708f1a116b2838279d50ead37e810b2118",
+      "projection_sha256": "13515cef845c65ae896258f42fc3c999bb79a39bdc1e77b14e4d4f934319f3b2",
+      "check_exit": 0,
+      "run_exit": 0
+    },
+    {
+      "stage": "final",
+      "test": "guard",
+      "source_sha256": "1137c36c1241f65b588beb4d163fecaf83f9a3c0368f727cbca08b095e1098b3",
+      "projection_sha256": "f471673a130f4a3bc0faf2ac3620d70da4e24bfaf5d5d4dbe40a6d7937a2eb70",
+      "check_exit": 0,
+      "run_exit": 0
+    },
+    {
+      "stage": "final",
+      "test": "body",
+      "source_sha256": "2bdae5f2e4a441397b3ebdfa7fd22789b6c97d59b67dc60b57f6bd635722c9af",
+      "projection_sha256": "2452e3783763e663f892d2800ee236469f2ae11320764de7979a868e14a7e2ce",
+      "check_exit": 0,
+      "run_exit": 0
+    }
+  ],
+  "final_original_and_projected_compiles": [
+    {
+      "stage": "final",
+      "test": "emitter",
+      "original": {
+        "compile_exit": 0,
+        "stderr": "",
+        "elf_sha256": "dc5773073ff4dbcd4895df0db0557470461af802526d1e5e5f4147e093d1304b"
+      },
+      ".projected": {
+        "compile_exit": 0,
+        "stderr": "",
+        "elf_sha256": "dc5773073ff4dbcd4895df0db0557470461af802526d1e5e5f4147e093d1304b"
+      },
+      "identical_elves": true
+    },
+    {
+      "stage": "final",
+      "test": "address",
+      "original": {
+        "compile_exit": 0,
+        "stderr": "",
+        "elf_sha256": "dac4ab5784c85a4cd92862183e837687cd0b2a6e6164dcb0476b6b06fa9f4d38"
+      },
+      ".projected": {
+        "compile_exit": 0,
+        "stderr": "",
+        "elf_sha256": "dac4ab5784c85a4cd92862183e837687cd0b2a6e6164dcb0476b6b06fa9f4d38"
+      },
+      "identical_elves": true
+    },
+    {
+      "stage": "final",
+      "test": "guard",
+      "original": {
+        "compile_exit": 0,
+        "stderr": "",
+        "elf_sha256": "68423524f52c03da9916749b4d78c24995983dbb818ddc56bd0a7c1c23a588d9"
+      },
+      ".projected": {
+        "compile_exit": 0,
+        "stderr": "",
+        "elf_sha256": "68423524f52c03da9916749b4d78c24995983dbb818ddc56bd0a7c1c23a588d9"
+      },
+      "identical_elves": true
+    },
+    {
+      "stage": "final",
+      "test": "body",
+      "original": {
+        "compile_exit": 0,
+        "stderr": "",
+        "elf_sha256": "a793ed62dc31e333682167bb0f2020062d84900479e0d9d883b7eaa8de499fe9"
+      },
+      ".projected": {
+        "compile_exit": 0,
+        "stderr": "",
+        "elf_sha256": "a793ed62dc31e333682167bb0f2020062d84900479e0d9d883b7eaa8de499fe9"
+      },
+      "identical_elves": true
+    }
+  ],
+  "mutations": [
+    {
+      "name": "body_only_canonical_enable",
+      "test": "body",
+      "check_exit": 0,
+      "run_exit": 1,
+      "compile_exit": 0,
+      "source_sha256": "25a86704992c4e86c5ca891fd4f68eed05fcfdd97dd2889bb5870647791b5b10"
+    },
+    {
+      "name": "store_high_offset",
+      "test": "address",
+      "check_exit": 0,
+      "run_exit": 3,
+      "compile_exit": 0,
+      "source_sha256": "f6721d018c1e54c03d09b3f103b22aa1dbc5334b24d4f5899ae78dd4fcdb0e7f"
+    },
+    {
+      "name": "store_negative_offset",
+      "test": "address",
+      "check_exit": 0,
+      "run_exit": 3,
+      "compile_exit": 0,
+      "source_sha256": "e0e15ef09b57ce2120ef0ef05afdc966a58ed90ec3c184d0e56c1d05e9d7d239"
+    },
+    {
+      "name": "original_pointer",
+      "test": "address",
+      "check_exit": 0,
+      "run_exit": 3,
+      "compile_exit": 0,
+      "source_sha256": "4dd903ee8b3c90878d2d7f755515871cf13fef3f7dda370238fe4293f677f228"
+    },
+    {
+      "name": "original_flag",
+      "test": "guard",
+      "check_exit": 0,
+      "run_exit": 1,
+      "compile_exit": 0,
+      "source_sha256": "dd9506f9f8d57fec62b85bc368d9a216361761cd4bd923255d178b2a4f40c658"
+    },
+    {
+      "name": "checks_nonzero",
+      "test": "guard",
+      "check_exit": 0,
+      "run_exit": 1,
+      "compile_exit": 0,
+      "source_sha256": "bdd6f3f505d4fe65717fe087ab5b66a346bc1601c05ae13d8ce5267a39df6164"
+    },
+    {
+      "name": "skip_body_refusal",
+      "test": "body",
+      "check_exit": 0,
+      "run_exit": 1,
+      "compile_exit": 0,
+      "source_sha256": "fe8847689136224eb62e9077b198ad4d26e9e1d0de1aed7251c953efe779d464"
+    },
+    {
+      "name": "predicate_sensitive_exit",
+      "test": "body",
+      "check_exit": 0,
+      "run_exit": 5,
+      "compile_exit": 0,
+      "source_sha256": "ab87b48e3a80edf1c66fed0b3ffc93dee1cdbd1939c1bd90f15cbdb97cb71667"
+    },
+    {
+      "name": "branch_high_word",
+      "test": "address",
+      "check_exit": 0,
+      "run_exit": 9,
+      "compile_exit": 0,
+      "source_sha256": "a692e48a7fe47e16310fa2b3a259c9913e018772f5c2710114c52612be31e607"
+    },
+    {
+      "name": "branch_upper_bits",
+      "test": "address",
+      "check_exit": 0,
+      "run_exit": 10,
+      "compile_exit": 0,
+      "source_sha256": "2ecc7daabe2f750614b346656ca262da6333bd618f283a8f4f492350b0470519"
+    }
+  ],
+  "corrected_test_gaps": [
+    "The first address model masked only16 offset bits; a high-offset mutant survived with exit0. Independent review identified signed24-bit STG offsets. Final test decodes all24 bits and refuses negative offsets; both high and sign-bit mutants now fail3.",
+    "The first body test used only enable1; an on==1-only body-scan mutant survived with exit0. Final test exercises enable1,2,and maximum ulong for gbvec and all16 EXIT predicate fields; mutant now fails1.",
+    "Initial long expressions exceeded compiler register budget (error12); split test helpers and opcode extraction, then all final original and projected units compile with exit0 and empty stderr."
+  ],
+  "external_decode": {
+    "tool": "NVIDIA nvdisasm13.0.39, host-only outside delivered closure",
+    "official_manifest_url": "https://developer.download.nvidia.com/compute/cuda/redist/redistrib_13.0.0.json",
+    "archive_sha256": "1862b4a54ae2b6c58b2b662de964308a2b01489ca7d19a83d5db46af36d1908c",
+    "binary_sha256": "cfc2fa33538928f78c1c75fd5e25e275d71cd5746fee57d41c98b207d35cc008",
+    "command": "nvdisasm --binary SM121 words.bin",
+    "exit": 0,
+    "words_bytes": 640,
+    "instruction_count": 40,
+    "words_sha256": "539ac68e0150e91e3e7da425b0ec7dd8cc8bbe782a6c7e39372bad79568133dc",
+    "decode_sha256": "21e4fb6864c78ca612fb3f0d4ee50fda7dae2def40044cbffa38e24ffe323140",
+    "semantics": "Two address pairs decode as MOV R6 with offsets64/128 followed by IMAD.WIDE.U32 R8,R6,1,R4. Branches still land after their respective20-instruction blocks.",
+    "comparison_to_historical_golden_exit": 1,
+    "historical_golden_status": "STALE: expected.sass applies only to original base. Four address instruction lines differ. The original runner cannot pass its golden comparison for the repair.",
+    "publication_boundary": "No NVIDIA binary, generated GPU binary, or disassembler listing is added. AGENTS.md forbids NVIDIA-tool listings; inherited runner update mode conflicts with that rule. Owner resolution required; no comparison was bypassed."
+  },
+  "whole_repository": {
+    "command": "make test",
+    "baseline_exit": 2,
+    "source_commit_exit": 2,
+    "failure": "Build stops at Makefile:39 build/omega_blackwell_engine.o. x86 assembler rejects AArch64 ds instructions at src/omega_blackwell_engine.c:558 and:393.",
+    "host_test_suite": "NOT_RUN because build fails; not a green suite.",
+    "final_log_sha256": "99f4bbeaf88b4000be8d7fcee3dd6fb172ec3c72da2d6f0e341d240acc7a48f9"
+  },
+  "independent_review": {
+    "result": "No remaining defect found within stated local repair scope. Reviewer independently reran four semantic units and all ten mutants.",
+    "limits": "Review is not hardware or native execution evidence."
+  },
+  "wolfram_modeled_queries": [
+    {
+      "query": "Table[{s,4294971392+64 s,4294967296+Mod[4096*64 s,2^32]},{s,1,2}]",
+      "result": [
+        [
+          1,
+          4294971456,
+          4295229440
+        ],
+        [
+          2,
+          4294971520,
+          4295491584
+        ]
+      ],
+      "units": "byte addresses; modeled, not hardware"
+    },
+    {
+      "query": "Table[{b,b+64,b+128},{b,{4294971392,8589934528,4096}}]",
+      "result": [
+        [
+          4294971392,
+          4294971456,
+          4294971520
+        ],
+        [
+          8589934528,
+          8589934592,
+          8589934656
+        ],
+        [
+          4096,
+          4160,
+          4224
+        ]
+      ],
+      "units": "byte addresses; modeled, not hardware"
+    },
+    {
+      "query": "{2^24-1,2^23,BitShiftLeft[1,24],BitShiftLeft[1,31],FromDigits[\"04087824\",16],FromDigits[\"05097824\",16]}",
+      "result": [
+        16777215,
+        8388608,
+        16777216,
+        2147483648,
+        67663908,
+        84506660
+      ],
+      "units": "encoding constants; modeled"
+    },
+    {
+      "query": "And@@Table[Mod[BitOr[16^^94d,BitShiftLeft[p,12]],4096]==2381,{p,0,15}]",
+      "result": true,
+      "units": "predicate-insensitive EXIT identity; modeled"
+    }
+  ],
+  "not_run": [
+    "Native AArch64 test execution",
+    "Native seed birth/full native suite",
+    "GB10 timer/store execution and instruction scheduling qualification",
+    "QMD/launch wiring",
+    "Paired off/on output equivalence and overhead",
+    "Chip overflow/drop accounting and repeatability",
+    "Clock qualification"
+  ],
+  "remaining_scope": [
+    "R0 TID.X initialisation/preservation and single-CTA launch remain caller preconditions, not verified launch integration.",
+    "Only EXIT is scanned; unsupported branch/call/return paths are not CFG-verified.",
+    "Runtime overflow, drops, partial capture, capacity0/1 capture and begin/end ranges remain unimplemented.",
+    "New semantic tests are documented standalone, not wired into existing runner or make test.",
+    "Disabled capacity0 remains refused by existing gtinit behavior."
+  ],
+  "unchanged": [
+    "Existing launch/vector/context code",
+    "Existing qualification/admission gates",
+    "Historical receipts and golden",
+    "main and remote branches",
+    "Credentials and trust configuration"
+  ],
+  "guides": "Local README-safety.md documents this API boundary and tests. No Omega language/compiler/Bridge/general-harness guide changed because those interfaces and pins were not changed."
+}
diff --git a/evidence/device-trace/emitter-safety-main-integration-20261026/receipt.json b/evidence/device-trace/emitter-safety-main-integration-20261026/receipt.json
new file mode 100644
index 00000000..5c142ba6
--- /dev/null
+++ b/evidence/device-trace/emitter-safety-main-integration-20261026/receipt.json
@@ -0,0 +1,296 @@
+{
+  "schema": "cudapp.device-trace.emitter-main-integration-receipt.v1",
+  "run_date_utc": "2026-10-26",
+  "platform": "Linux x86_64",
+  "scope": "Carry already reviewed PR85 repair onto current main without changing its implementation, tests, or historical receipts.",
+  "why_needed": {
+    "pr84": "Merged to main at728838ccf4939c868443eeaf0490e4e26f381006",
+    "pr85": "Merged only to feat/device-trace-emitter at68e1634ef21d81261606ff62b0197336771e9eb9",
+    "main_before_integration": "c73afb25cce8d22e039287a8ab2e4cd4c7aecf67",
+    "main_trace_blob": "a5d1ef194078ef344bc68484b335396d3f9fea89",
+    "repaired_trace_blob": "ae1a51ba468d4d096dd1f35d18c16dd398acefd2"
+  },
+  "provenance": {
+    "reviewed_pr": "https://github.com/aien-dev/CUDApp/pull/85",
+    "reviewed_commit": "687307103f5108fd8f73fe9e6feeb5b53255dcaf",
+    "local_integration_source_commit": "c2077eeaf3ffd221018edcd911a1434dc32537e6",
+    "base_commit": "c73afb25cce8d22e039287a8ab2e4cd4c7aecf67",
+    "method": "git cherry-pick 687307103f5108fd8f73fe9e6feeb5b53255dcaf",
+    "source_tree": "0cf94414a8b20a7944e4ea29f5555b1a01808769",
+    "exact_carried_blob_identity": [
+      {
+        "path": "evidence/device-trace/emitter-safety-host-20261026/REPRODUCE.md",
+        "reviewed_pr85_blob": "f64b36433268bcaf1f5c6b3b5a64bac397ce96eb",
+        "integration_blob": "f64b36433268bcaf1f5c6b3b5a64bac397ce96eb"
+      },
+      {
+        "path": "evidence/device-trace/emitter-safety-host-20261026/receipt.json",
+        "reviewed_pr85_blob": "87ff9cc678f9e51590b00702cf3a104cb3419abc",
+        "integration_blob": "87ff9cc678f9e51590b00702cf3a104cb3419abc"
+      },
+      {
+        "path": "native/blackwell/trace-emit.om",
+        "reviewed_pr85_blob": "ae1a51ba468d4d096dd1f35d18c16dd398acefd2",
+        "integration_blob": "ae1a51ba468d4d096dd1f35d18c16dd398acefd2"
+      },
+      {
+        "path": "tests/device-trace/README-safety.md",
+        "reviewed_pr85_blob": "51ee470c54f65e75b0cd1bfcfb1702abb410da52",
+        "integration_blob": "51ee470c54f65e75b0cd1bfcfb1702abb410da52"
+      },
+      {
+        "path": "tests/device-trace/address-test.om",
+        "reviewed_pr85_blob": "82cd433dcb80cd7852584a47035c591139c1a4df",
+        "integration_blob": "82cd433dcb80cd7852584a47035c591139c1a4df"
+      },
+      {
+        "path": "tests/device-trace/body-test.om",
+        "reviewed_pr85_blob": "3116b3f7f5954afdc5e5eae79deebbfeade14e69",
+        "integration_blob": "3116b3f7f5954afdc5e5eae79deebbfeade14e69"
+      },
+      {
+        "path": "tests/device-trace/guard-test.om",
+        "reviewed_pr85_blob": "f51b9dbff7c6d9a20a694715075d2814577304f2",
+        "integration_blob": "f51b9dbff7c6d9a20a694715075d2814577304f2"
+      }
+    ]
+  },
+  "preserved": "All current-main paths outside the seven carried PR85 files are unchanged, including PR80 artifact admission, PR83 trace contract, PR87 review documentation, PR92 shader pilot, and vector/launch/context code. This additional receipt is new; historical receipts remain byte-identical.",
+  "oracle_and_projection": "Use the exact frozen external oracle, compiler source, and explicit literal-constant projection documented in ../emitter-safety-host-20261026/REPRODUCE.md. Those pins were rehashed and matched. Semantic runs are projected host-reference execution, not unmodified-source native execution. The compiler source accepts original and projected units and produces identical unexecuted AArch64 ELFs.",
+  "commands": [
+    "omega_ref check <unit.projected.om>",
+    "omega_ref run <unit.projected.om>",
+    "omega_ref run <omc.om> < <unit.om> > <unit.elf>",
+    "omega_ref run <omc.om> < <unit.projected.om> > <projected.elf>",
+    "cmp <unit.elf> <projected.elf>",
+    "make test",
+    "git diff --check c73afb25cce8d22e039287a8ab2e4cd4c7aecf67..c2077eeaf3ffd221018edcd911a1434dc32537e6"
+  ],
+  "integration_semantic_results": [
+    {
+      "stage": "integration",
+      "test": "emitter",
+      "source_sha256": "be6b9e79c90d7099431153690b46ef8e300a55f29f01e4ecf1ad7d2daf68507f",
+      "projection_sha256": "0afc1de7a9209fc5bf81856745ca89787604255df5591fc25e87ea2feee1c334",
+      "check_exit": 0,
+      "run_exit": 0
+    },
+    {
+      "stage": "integration",
+      "test": "address",
+      "source_sha256": "5951907eea227b908bc3f53193293f708f1a116b2838279d50ead37e810b2118",
+      "projection_sha256": "13515cef845c65ae896258f42fc3c999bb79a39bdc1e77b14e4d4f934319f3b2",
+      "check_exit": 0,
+      "run_exit": 0
+    },
+    {
+      "stage": "integration",
+      "test": "guard",
+      "source_sha256": "1137c36c1241f65b588beb4d163fecaf83f9a3c0368f727cbca08b095e1098b3",
+      "projection_sha256": "f471673a130f4a3bc0faf2ac3620d70da4e24bfaf5d5d4dbe40a6d7937a2eb70",
+      "check_exit": 0,
+      "run_exit": 0
+    },
+    {
+      "stage": "integration",
+      "test": "body",
+      "source_sha256": "2bdae5f2e4a441397b3ebdfa7fd22789b6c97d59b67dc60b57f6bd635722c9af",
+      "projection_sha256": "2452e3783763e663f892d2800ee236469f2ae11320764de7979a868e14a7e2ce",
+      "check_exit": 0,
+      "run_exit": 0
+    }
+  ],
+  "integration_compiler_results": [
+    {
+      "stage": "integration",
+      "test": "emitter",
+      "original": {
+        "compile_exit": 0,
+        "stderr": "",
+        "elf_sha256": "dc5773073ff4dbcd4895df0db0557470461af802526d1e5e5f4147e093d1304b"
+      },
+      ".projected": {
+        "compile_exit": 0,
+        "stderr": "",
+        "elf_sha256": "dc5773073ff4dbcd4895df0db0557470461af802526d1e5e5f4147e093d1304b"
+      },
+      "identical_elves": true
+    },
+    {
+      "stage": "integration",
+      "test": "address",
+      "original": {
+        "compile_exit": 0,
+        "stderr": "",
+        "elf_sha256": "dac4ab5784c85a4cd92862183e837687cd0b2a6e6164dcb0476b6b06fa9f4d38"
+      },
+      ".projected": {
+        "compile_exit": 0,
+        "stderr": "",
+        "elf_sha256": "dac4ab5784c85a4cd92862183e837687cd0b2a6e6164dcb0476b6b06fa9f4d38"
+      },
+      "identical_elves": true
+    },
+    {
+      "stage": "integration",
+      "test": "guard",
+      "original": {
+        "compile_exit": 0,
+        "stderr": "",
+        "elf_sha256": "68423524f52c03da9916749b4d78c24995983dbb818ddc56bd0a7c1c23a588d9"
+      },
+      ".projected": {
+        "compile_exit": 0,
+        "stderr": "",
+        "elf_sha256": "68423524f52c03da9916749b4d78c24995983dbb818ddc56bd0a7c1c23a588d9"
+      },
+      "identical_elves": true
+    },
+    {
+      "stage": "integration",
+      "test": "body",
+      "original": {
+        "compile_exit": 0,
+        "stderr": "",
+        "elf_sha256": "a793ed62dc31e333682167bb0f2020062d84900479e0d9d883b7eaa8de499fe9"
+      },
+      ".projected": {
+        "compile_exit": 0,
+        "stderr": "",
+        "elf_sha256": "a793ed62dc31e333682167bb0f2020062d84900479e0d9d883b7eaa8de499fe9"
+      },
+      "identical_elves": true
+    }
+  ],
+  "current_main_negative_results": [
+    {
+      "test": "address",
+      "run_exit": 3,
+      "compile_exit": 0,
+      "stderr": ""
+    },
+    {
+      "test": "guard",
+      "run_exit": 1,
+      "compile_exit": 0,
+      "stderr": ""
+    },
+    {
+      "test": "body",
+      "run_exit": 1,
+      "compile_exit": 0,
+      "stderr": ""
+    }
+  ],
+  "mutation_results": [
+    {
+      "name": "body_only_canonical_enable",
+      "test": "body",
+      "check_exit": 0,
+      "run_exit": 1,
+      "compile_exit": 0,
+      "source_sha256": "25a86704992c4e86c5ca891fd4f68eed05fcfdd97dd2889bb5870647791b5b10"
+    },
+    {
+      "name": "store_high_offset",
+      "test": "address",
+      "check_exit": 0,
+      "run_exit": 3,
+      "compile_exit": 0,
+      "source_sha256": "f6721d018c1e54c03d09b3f103b22aa1dbc5334b24d4f5899ae78dd4fcdb0e7f"
+    },
+    {
+      "name": "store_negative_offset",
+      "test": "address",
+      "check_exit": 0,
+      "run_exit": 3,
+      "compile_exit": 0,
+      "source_sha256": "e0e15ef09b57ce2120ef0ef05afdc966a58ed90ec3c184d0e56c1d05e9d7d239"
+    },
+    {
+      "name": "original_pointer",
+      "test": "address",
+      "check_exit": 0,
+      "run_exit": 3,
+      "compile_exit": 0,
+      "source_sha256": "4dd903ee8b3c90878d2d7f755515871cf13fef3f7dda370238fe4293f677f228"
+    },
+    {
+      "name": "original_flag",
+      "test": "guard",
+      "check_exit": 0,
+      "run_exit": 1,
+      "compile_exit": 0,
+      "source_sha256": "dd9506f9f8d57fec62b85bc368d9a216361761cd4bd923255d178b2a4f40c658"
+    },
+    {
+      "name": "checks_nonzero",
+      "test": "guard",
+      "check_exit": 0,
+      "run_exit": 1,
+      "compile_exit": 0,
+      "source_sha256": "bdd6f3f505d4fe65717fe087ab5b66a346bc1601c05ae13d8ce5267a39df6164"
+    },
+    {
+      "name": "skip_body_refusal",
+      "test": "body",
+      "check_exit": 0,
+      "run_exit": 1,
+      "compile_exit": 0,
+      "source_sha256": "fe8847689136224eb62e9077b198ad4d26e9e1d0de1aed7251c953efe779d464"
+    },
+    {
+      "name": "predicate_sensitive_exit",
+      "test": "body",
+      "check_exit": 0,
+      "run_exit": 5,
+      "compile_exit": 0,
+      "source_sha256": "ab87b48e3a80edf1c66fed0b3ffc93dee1cdbd1939c1bd90f15cbdb97cb71667"
+    },
+    {
+      "name": "branch_high_word",
+      "test": "address",
+      "check_exit": 0,
+      "run_exit": 9,
+      "compile_exit": 0,
+      "source_sha256": "a692e48a7fe47e16310fa2b3a259c9913e018772f5c2710114c52612be31e607"
+    },
+    {
+      "name": "branch_upper_bits",
+      "test": "address",
+      "check_exit": 0,
+      "run_exit": 10,
+      "compile_exit": 0,
+      "source_sha256": "2ecc7daabe2f750614b346656ca262da6333bd618f283a8f4f492350b0470519"
+    }
+  ],
+  "independent_review": {
+    "scope": "Integration from current main, exact seven-blob carry, unrelated paths preserved, fresh git-show-based current-main versus integrated semantic units.",
+    "observed": "Current-main emitter test exits0 while address/guard/body fail3/1/1; integrated four units exit0. All reference checks accept with empty stderr. No native or GPU output executed.",
+    "review_kind": "Host-reference and source integration review, not hardware qualification."
+  },
+  "whole_repository": {
+    "command": "make test",
+    "exit": 2,
+    "stage": "FAIL building build/omega_blackwell_engine.o before the host suite can run",
+    "diagnostic": "Existing AArch64 ds instructions at src/omega_blackwell_engine.c:393 and:558 are rejected by the x86 assembler; Makefile:39.",
+    "log_sha256": "362d392f74b45d11cc5d5726963be8bfbf2bfc0cf6e266f27a36bbe87a54dd05",
+    "full_suite": "NOT_RUN after failed build, not a pass."
+  },
+  "unchanged_limitations": [
+    "Historical expected.sass remains stale and the old disassembler runner comparison does not pass for the repair. It was not regenerated because repository policy forbids committing NVIDIA-tool listings.",
+    "New semantic tests remain standalone, not integrated into the existing runner or make test.",
+    "Enabled input remains a prepared linear body fragment with initialized/preserved R0=TID.X, one CTA, known register clobbers, and fallthrough preconditions. EXIT refusal is not a general CFG verifier.",
+    "Runtime overflow/drop accounting, partial capture, capacity0/1 capture, and begin/end ranges remain unimplemented; disabled capacity0 is still refused."
+  ],
+  "not_run": [
+    "Native AArch64 test execution or seed birth",
+    "GB10 execution, scheduling, timer/store qualification",
+    "QMD/launch wiring",
+    "Paired off/on output equivalence and overhead",
+    "Clock qualification and chip repeatability",
+    "Fresh disassembler run for this integration: carried emitter source is byte-identical to the previously decoded PR85 source; prior decode receipt remains historical, not relabeled as a new run."
+  ],
+  "ci": "Pending publication to a main-target draft PR; any remote check result must name the eventual published head separately. No prior PR85 CI success is claimed.",
+  "effects": "No GPU, main-branch write, merge, deployment, trust/admission/protection change, credential change, NVIDIA binary, or disassembler listing."
+}
diff --git a/native/blackwell/trace-emit.om b/native/blackwell/trace-emit.om
index a5d1ef19..ae1a51ba 100644
--- a/native/blackwell/trace-emit.om
+++ b/native/blackwell/trace-emit.om
@@ -2,7 +2,12 @@ note SPDX-License-Identifier: AGPL-3.0-only
 note Device-side trace emitter for CUDApp #82, first slice. Handwritten seeded Omega.
 note It emits the instruction words for one selected producer (thread 0 of the launched CTA)
 note that records two bounded mark records around one synchronous region, and returns the
-note input kernel words unchanged when tracing is disabled.
+note input words unchanged when tracing is disabled. Enabled input is a prepared linear body
+note fragment, not a complete kernel: the caller must initialise and preserve R0 = TID.X,
+note launch exactly one CTA, and allow both markers to fall through. Branches, calls, returns
+note and early exits are unsupported. EXIT instructions are explicitly refused, but the
+note scanner is not a general control-flow verifier. Markers clobber P0, R2, R4:R13 and UR4:UR5;
+note the caller must account for those live-register effects at both insertion points.
 note
 note Wire layout is PR #83 docs/device-trace/CONTRACT.md v1: 64-byte header, 64-byte records,
 note kinds 1 mark / 2 begin / 3 end, clock domain 1 = raw device GLOBALTIMER low 32 bits with
@@ -14,13 +19,13 @@ note Register numbers are physical and fixed by this emitter: R0 tid, R2 stamp,
 note base, R6 scratch, R8:R9 record address, R10:R11 generation, R12:R13 kernel; the global
 note memory descriptor is loaded into UR4. Encodings are ported from the repository's own
 note encoder, src/omega_blackwell_codegen.c encode_single_insn (S2R 0x7919, ISETP.GE 0x780c,
-note BRA 0x947, LDC64 0xff007b82, LDCU64 0xff0077ac, MOV imm 0x7802, IMAD imm 0x7824,
+note BRA 0x947, LDC64 0xff007b82, LDCU64 0xff0077ac, MOV imm 0x7802, IMAD.WIDE 0x7825,
 note STG.E 0x7986), and each emitted stream is decoded by nvdisasm 13.0 as an outside oracle.
 note
-note Declared constraints of this slice: offsets are added to the low 32 bits of the trace base
-note with no carry propagation, so the host buffer must not cross a 4 GiB boundary at any record
-note offset; the enabled path is refused unless the host has run the instruction checks and set
-note gtchecks to 1.
+note Record offsets use full-width base addition via the existing IMAD.WIDE.U32 form.
+note The host must supply a valid nonwrapping allocated extent. The enabled path is refused
+note unless gtchecks is exactly 1. This flag is a precondition, not evidence that arbitrary
+note input words, launch geometry, memory visibility or hardware execution have been checked.
 
 const TRBAS ulong 1024
 const TRGEN ulong 1040
@@ -38,7 +43,7 @@ const R_ISET ulong 30732
 const R_LDC ulong 4278221698
 const R_LDCU ulong 4278220716
 const R_MOVI ulong 30722
-const R_IMAD ulong 30756
+const R_IMADW ulong 30757
 const R_STG ulong 31110
 const SR_TID ulong 33
 const SR_CLK ulong 82
@@ -94,13 +99,11 @@ note LDCU.64 URd:URd+1, c[0x0][off] -- the global memory descriptor.
 gtquad uint or R_LDCU shl dst 16 uint and shl off 5 16776960 uint 134220288 uint 945664
 end
 
-fn gtadd dst ulong src ulong imm ulong to void
-note IMAD Rd, Ra, imm, RZ -- multiply by imm and add RZ.
-gtquad uint or or R_IMAD shl dst 16 shl src 24 uint imm uint 126747391 uint 2083328
-end
-
-fn gtcop dst ulong src ulong to void
-gtadd dst src 1
+fn gtaddr off ulong to void
+note MOV R6, off; IMAD.WIDE.U32 R8:R9, R6, 1, R4:R5 computes base + offset with carry.
+note Existing encoding: src/omega_blackwell_codegen.c BW_IR_IMAD_WIDE; vector.om address pairs.
+gtmov 6 off
+gtquad uint or or R_IMADW shl ulong 8 16 shl ulong 6 24 uint 1 uint 126746628 uint 2083840
 end
 
 fn gtbrak to void
@@ -109,7 +112,7 @@ gtquad uint or R_BRA shl ulong 18 18 uint 0 uint 58720256 uint 1042944
 end
 
 fn gtmark site ulong seq ulong to void
-note One bounded mark record at 64 + 64*site. Field offsets are contract v1.
+note One bounded mark record at 64*site (sites 1 and 2). Field offsets are contract v1.
 gtsel
 gtbrak
 gtldu 4 TRDSK
@@ -117,8 +120,7 @@ gts2r 2 SR_CLK
 gtldc 4 TRBAS
 gtldc 10 TRGEN
 gtldc 12 TRKRN
-gtadd 8 4 mul site 64
-gtcop 9 5
+gtaddr mul site 64
 gtmov 6 site
 gtstg 8 6 0
 gtmov 6 KINDMK
@@ -154,7 +156,7 @@ end
 
 fn gtwrap on ulong to void
 note Disabled: the output is the input byte for byte; no prologue, no store, no allocation.
-note Enabled: mark(site 1), the caller's kernel words verbatim, mark(site 2).
+note Enabled: mark(site 1), the caller's prepared body fragment, mark(site 2).
 put gboutlen 0 0
 if eq on 0
 for i ulong get gbinlen 0
@@ -171,16 +173,37 @@ end
 gtmark SITE2 1
 end
 
+fn gtbody to bool
+note Reject complete-kernel EXIT regardless of its predicate field (bits 12..15).
+note This recognises the repository's EXIT encoding, not every control-flow instruction.
+for i ulong div get gbinlen 0 16
+p = mul i 16
+lo = ulong get gbin p
+hi = ulong and get gbin add p 1 15
+op = or lo shl hi 8
+if eq op 2381
+put gterr 0 5
+ret false
+end
+end
+ret true
+end
+
 fn gtewrap on ulong cap ulong to bool
 note Checked entry point: refuse before emitting anything, then wrap.
 if not gtinit cap
 ret false
 end
-if and eq on 1 eq get gtchecks 0 0
+if and ne on 0 ne get gtchecks 0 1
 note Enabled needs the instruction and control-flow checks to have passed.
 put gterr 0 4
 ret false
 end
+if ne on 0
+if not gtbody
+ret false
+end
+end
 gtwrap on
 ret true
 end
diff --git a/tests/device-trace/.crumb b/tests/device-trace/.crumb
index 5414142c..07c43ab8 100644
--- a/tests/device-trace/.crumb
+++ b/tests/device-trace/.crumb
@@ -3,14 +3,14 @@
     "generated": {
       "children": [],
       "children_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
-      "compiled_at": "2026-10-26T14:55:27Z",
+      "compiled_at": "2026-10-27T04:08:34Z",
       "compiler": "crumb-compile/1",
-      "digest": "sha256:556c7d477eed1dcae1b476bcd82bad15b5f9403b478decebe6a9f10675580327",
+      "digest": "sha256:1bba3fb571a195355e1a3958c9e025fb16f14ec330b7e218cc4f7dc5b5aadbff",
       "evidence_files": 0,
       "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
-      "files": 7,
-      "generated_at_commit": "418c1d44aba2422911c63a79592ab057a491a096",
-      "source_tree": "sha256:bc96f7a2d8c43938cf022b848ff740a99f974d1610f7a13942fd913c0ce265e1"
+      "files": 10,
+      "generated_at_commit": "75e23ae20425ca6539960bb62f2bf3fcc8d676a8",
+      "source_tree": "sha256:1641f2b1757798a14705225dd58ff5c2af3cab7f28b30e14dd781af24def3fe0"
     }
   },
   "invariants": [
diff --git a/tests/device-trace/README-safety.md b/tests/device-trace/README-safety.md
new file mode 100644
index 00000000..50011766
--- /dev/null
+++ b/tests/device-trace/README-safety.md
@@ -0,0 +1,84 @@
+# Emitter safety regressions
+
+These are host tests for the low-level emitter, not hardware qualification.
+They do not establish that a complete kernel can be instrumented safely.
+
+## Supported input
+
+Enabled input is a prepared, straight-line body fragment. The caller must
+initialise and preserve `R0 = TID.X`, launch exactly one CTA, and account for
+the markers' `P0`, `R2`, `R4:R13`, and `UR4:UR5` clobbers. Both insertion points
+must be reached by fallthrough. Branches, calls, returns, and early exits are
+unsupported. The wrapper rejects the repository's `EXIT` encoding, regardless
+of predicate, with error 5 before writing output. That scan is not a general
+control-flow verifier. In particular, do not pass the complete `gbvec` kernel.
+
+All nonzero enable values require `gtchecks == 1`. That is an explicit caller
+precondition, not proof of launch geometry, memory visibility, scheduling, or
+GPU safety. Disabled input remains byte-identical after the existing capacity
+and instruction-alignment checks. Disabled capacity zero is still refused.
+
+## Independent semantic tests
+
+- `address-test.om` decodes the address pair and models each store's effective
+  address inside a guarded capture extent. It checks ordinary and low-half-carry
+  cases, untouched header/reserved bytes/canaries, signed 24-bit store offsets,
+  and the branch predicate and complete relative displacement. It does not use
+  the nvdisasm decode or the emitter's address helpers as its oracle. This limited
+  arithmetic model does not validate GPU instruction scheduling or scoreboards.
+- `guard-test.om` exercises enable/check values 0, 1, 2 and maximum unsigned
+  64-bit value. Refusal must preserve every output byte and its prior length.
+- `body-test.om` uses the actual `gbvec` kernel as a negative control, checks
+  disabled byte identity, and refuses every predicate variant of `EXIT` for
+  enable values 1, 2 and maximum unsigned 64-bit value.
+
+On Linux AArch64, using an independently verified seeded compiler:
+
+```sh
+test "$(uname -m)" = aarch64 || exit 69
+: "${OMEGA_COMPILER:?set the verified seeded compiler path}"
+sha256sum "$OMEGA_COMPILER"
+mkdir -p build/emitter-safety-native
+for name in emitter address guard body; do
+  unit=build/emitter-safety-native/$name
+  if [ "$name" = body ]; then
+    cat native/blackwell/vector.om native/blackwell/trace-emit.om \
+      tests/device-trace/body-test.om > "$unit.om"
+  else
+    cat native/blackwell/trace-emit.om \
+      "tests/device-trace/$name-test.om" > "$unit.om"
+  fi
+  "$OMEGA_COMPILER" < "$unit.om" > "$unit.elf" 2> "$unit.compile.stderr" || exit
+  test ! -s "$unit.compile.stderr" || exit 1
+  chmod +x "$unit.elf"
+  "$unit.elf" || exit
+done
+```
+
+All four units must exit zero. The original emitter test prints its individual
+checks. The three new tests are silent on success and return a named assertion
+status in their source on failure. These tests are not yet integrated into
+`make test` or the historical disassembler runner.
+
+## Disassembler check (replaces the historical golden)
+
+The historical `expected.sass` described the original PR84 head
+`60d6c57fc6821accce0027d65dd239355beeb543`, including the erroneous
+multiply-based address formation, and was itself an NVIDIA-tool listing, which
+`AGENTS.md` forbids in the repository. It is removed. `run-emitter-checks.sh`
+now keeps the nvdisasm listing in its temporary directory and checks it against
+hand-written expectations: the opcode counts of the two 20-instruction marker
+blocks and the address-formation lines (`MOV R6, 0x40` / `0x80`, then
+`IMAD.WIDE.U32 R8, R6, 0x1, R4`). The emitter on main before this repair fails
+that check (`IMAD.SHL R8, R4, 0x40, RZ` at offset 0x70). The historical receipt
+`evidence/device-trace/emitter-host-20261026/receipt.json` stays unchanged as
+a record of what ran on PR84's head.
+
+## Remaining limits
+
+Native AArch64 execution and the full native suite, GB10 execution, QMD/launch
+wiring, paired off/on overhead, clock qualification, and chip repeatability
+remain unverified by these host models. Runtime overflow/drop accounting,
+capacity zero/one capture, and begin/end ranges are not implemented by this
+fixed two-mark slice. No default-on mode, driver changes, or hardware authority
+are introduced.
diff --git a/tests/device-trace/address-test.om b/tests/device-trace/address-test.om
new file mode 100644
index 00000000..82cd433d
--- /dev/null
+++ b/tests/device-trace/address-test.om
@@ -0,0 +1,175 @@
+note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+note Host-only semantic regression, not a GPU emulator or hardware receipt.
+note Compose after trace-emit.om. Decode the two address instructions independently of
+note the emitter helpers/golden, then model each STG effective address in a guarded extent.
+note Restoring the original base-low multiplication must fail, even if a golden is updated.
+
+global Aregs ulong 256
+global Amem uchar 256
+
+fn aword byteoff ulong to ulong
+v = ulong 0
+for j ulong 4
+v = or v shl ulong get gbout add byteoff j mul j 8
+end
+ret v
+end
+
+fn ainsn pos ulong to bool
+w = aword pos
+op = and w 65535
+dst = and shr w 16 255
+src = shr w 24
+imm = aword add pos 4
+rc = and aword add pos 8 255
+if eq op 30722
+put Aregs dst imm
+ret true
+end
+if eq op 30756
+v = add mul get Aregs src imm get Aregs rc
+put Aregs dst and v 4294967295
+ret true
+end
+if eq op 30757
+base = get Aregs rc
+if ne rc 255
+base = or base shl get Aregs add rc 1 32
+end
+v = add mul get Aregs src imm base
+put Aregs dst and v 4294967295
+put Aregs add dst 1 shr v 32
+ret true
+end
+ret false
+end
+
+fn astore p ulong base ulong to bool
+w = aword p
+breg = shr w 24
+off = aword add p 4
+note STG.E has a signed 24-bit byte offset. This marker uses only nonnegative offsets.
+off = and shr off 8 16777215
+if ge off 8388608
+ret false
+end
+dst = get Aregs breg
+dst = or dst shl get Aregs add breg 1 32
+dst = add dst off
+if lt dst base
+ret false
+end
+rel = sub dst base
+if gt rel 188
+ret false
+end
+for j ulong 4
+put Amem add add rel j 32 90
+end
+ret true
+end
+
+fn amark start ulong base ulong want ulong to bool
+for i ulong 256
+put Aregs i 0
+end
+put Aregs 4 and base 4294967295
+put Aregs 5 shr base 32
+ok = ainsn add start 112
+if not ok
+ret false
+end
+ok = ainsn add start 128
+if not ok
+ret false
+end
+addr = or get Aregs 8 shl get Aregs 9 32
+if ne addr want
+ret false
+end
+stores = ulong 0
+for i ulong 20
+p = add start mul i 16
+w = aword p
+if eq and w 65535 31110
+ok = astore p base
+if not ok
+ret false
+end
+stores = add stores 1
+end
+end
+ret eq stores 8
+end
+
+fn aextent base ulong first ulong second ulong to bool
+for i ulong 256
+put Amem i 165
+end
+ok = amark 0 base first
+if not ok
+ret false
+end
+ok = amark 320 base second
+if not ok
+ret false
+end
+note The header, unused record bytes, and both 32-byte canaries remain untouched.
+for i ulong 256
+touched = or and ge i 96 lt i 128 and ge i 160 lt i 192
+want = uchar 165
+if touched
+want = uchar 90
+end
+if ne get Amem i want
+ret false
+end
+end
+ret true
+end
+
+fn main to int
+put gbinlen 0 0
+put gtchecks 0 1
+ok = gtewrap 1 2
+if not ok
+ret 1
+end
+if ne get gboutlen 0 640
+ret 2
+end
+ok = aextent 4294971392 4294971456 4294971520
+if not ok
+ret 3
+end
+note Low-half carry must not wrap the pointer into an unrelated allocation.
+ok = aextent 8589934528 8589934592 8589934656
+if not ok
+ret 4
+end
+ok = aextent 4096 4160 4224
+if not ok
+ret 5
+end
+note Predicate-insensitive branch opcode, @P0, rel18: index1 +1 +18 =20.
+for i ulong 2
+p = add mul i 320 16
+w = aword p
+if ne and w 4095 2375
+ret 6
+end
+if ne and shr w 12 15 0
+ret 7
+end
+if ne shr w 18 18
+ret 8
+end
+if ne aword add p 4 0
+ret 9
+end
+if ne aword add p 8 58720256
+ret 10
+end
+end
+ret 0
+end
diff --git a/tests/device-trace/body-test.om b/tests/device-trace/body-test.om
new file mode 100644
index 00000000..3116b3f7
--- /dev/null
+++ b/tests/device-trace/body-test.om
@@ -0,0 +1,84 @@
+note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+note Compose after vector.om and trace-emit.om. Complete kernels are not body fragments.
+note Refusing EXIT must ignore its predicate: even an apparently inactive exit is unsupported.
+
+fn bsentinel to void
+for i ulong 8192
+put gbout i 165
+end
+put gboutlen 0 7
+end
+
+fn brefused on ulong to bool
+ok = gtewrap on 2
+if ok
+ret false
+end
+if ne get gterr 0 5
+ret false
+end
+if ne get gboutlen 0 7
+ret false
+end
+for i ulong 8192
+if ne get gbout i 165
+ret false
+end
+end
+ret true
+end
+
+fn ballflags to bool
+for i ulong 3
+on = add i 1
+if eq i 2
+on = ulong 18446744073709551615
+end
+bsentinel
+ok = brefused on
+if not ok
+ret false
+end
+end
+ret true
+end
+
+fn main to int
+put gtchecks 0 1
+gbvec
+for i ulong get gblen 0
+put gbin i get gbcode i
+end
+put gbinlen 0 get gblen 0
+ok = ballflags
+if not ok
+ret 1
+end
+note Disabled wrapping of an actual whole kernel remains byte-identical.
+ok = gtewrap 0 2
+if not ok
+ret 2
+end
+if ne get gboutlen 0 get gbinlen 0
+ret 3
+end
+for i ulong get gbinlen 0
+if ne get gbout i get gbin i
+ret 4
+end
+end
+note Every predicate field, including PT, P0 and inverted predicates.
+put gbinlen 0 16
+for p ulong 16
+for i ulong 16
+put gbin i 0
+end
+put gbin 0 77
+put gbin 1 uchar or 9 shl p 4
+ok = ballflags
+if not ok
+ret 5
+end
+end
+ret 0
+end
diff --git a/tests/device-trace/emitter-test.om b/tests/device-trace/emitter-test.om
index 898795cd..86a5bc87 100644
--- a/tests/device-trace/emitter-test.om
+++ b/tests/device-trace/emitter-test.om
@@ -3,7 +3,7 @@ note Host checks for the device-side trace emitter (CUDApp #82 first slice).
 note Run: cat native/blackwell/trace-emit.om tests/device-trace/emitter-test.om | seed/out/omc > t; ./t
 note Prints one line per check: "id 0" pass, "id 1" fail. Exit status is the failure count.
 note The instruction words themselves are decoded independently by nvdisasm 13.0 in
-note tests/device-trace/run-emitter-checks.sh against expected.sass; this file checks the
+note tests/device-trace/run-emitter-checks.sh against hand-written expectations; this file checks the
 note emitter's own invariants so a regression shows up without the external tool.
 
 global Fails ulong 1
diff --git a/tests/device-trace/expected.sass b/tests/device-trace/expected.sass
deleted file mode 100644
index 7fa8cb5d..00000000
--- a/tests/device-trace/expected.sass
+++ /dev/null
@@ -1,42 +0,0 @@
-	.headerflags	@"EF_CUDA_64BIT_ADDRESS EF_CUDA_SM121 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM121)"
-	.headerflags	@"EF_CUDA_64BIT_ADDRESS EF_CUDA_SM121 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM121)"
-        /*0000*/                   ISETP.GE.AND P0, PT, R0, 0x1, PT ;
-        /*0010*/               @P0 BRA 0x140 ;
-        /*0020*/                   LDCU.64 UR4, c[0x0][0x358] ;
-        /*0030*/                   S2R R2, SR_GLOBALTIMERLO ;
-        /*0040*/                   LDC.64 R4, c[0x0][0x400] ;
-        /*0050*/                   LDC.64 R10, c[0x0][0x410] ;
-        /*0060*/                   LDC.64 R12, c[0x0][0x418] ;
-        /*0070*/                   IMAD.SHL R8, R4, 0x40, RZ ;
-        /*0080*/                   IMAD.MOV R9, R5, 0x1, RZ ;
-        /*0090*/                   MOV R6, 0x1 ;
-        /*00a0*/                   STG.E desc[UR4][R8.64], R6 ;
-        /*00b0*/                   MOV R6, 0x1 ;
-        /*00c0*/                   STG.E desc[UR4][R8.64+0x4], R6 ;
-        /*00d0*/                   MOV R6, 0x0 ;
-        /*00e0*/                   STG.E desc[UR4][R8.64+0x8], R6 ;
-        /*00f0*/                   STG.E desc[UR4][R8.64+0xc], R2 ;
-        /*0100*/                   STG.E desc[UR4][R8.64+0x10], R10 ;
-        /*0110*/                   STG.E desc[UR4][R8.64+0x14], R11 ;
-        /*0120*/                   STG.E desc[UR4][R8.64+0x18], R12 ;
-        /*0130*/                   STG.E desc[UR4][R8.64+0x1c], R13 ;
-        /*0140*/                   ISETP.GE.AND P0, PT, R0, 0x1, PT ;
-        /*0150*/               @P0 BRA 0x280 ;
-        /*0160*/                   LDCU.64 UR4, c[0x0][0x358] ;
-        /*0170*/                   S2R R2, SR_GLOBALTIMERLO ;
-        /*0180*/                   LDC.64 R4, c[0x0][0x400] ;
-        /*0190*/                   LDC.64 R10, c[0x0][0x410] ;
-        /*01a0*/                   LDC.64 R12, c[0x0][0x418] ;
-        /*01b0*/                   IMAD.SHL R8, R4, 0x80, RZ ;
-        /*01c0*/                   IMAD.MOV R9, R5, 0x1, RZ ;
-        /*01d0*/                   MOV R6, 0x2 ;
-        /*01e0*/                   STG.E desc[UR4][R8.64], R6 ;
-        /*01f0*/                   MOV R6, 0x1 ;
-        /*0200*/                   STG.E desc[UR4][R8.64+0x4], R6 ;
-        /*0210*/                   MOV R6, 0x1 ;
-        /*0220*/                   STG.E desc[UR4][R8.64+0x8], R6 ;
-        /*0230*/                   STG.E desc[UR4][R8.64+0xc], R2 ;
-        /*0240*/                   STG.E desc[UR4][R8.64+0x10], R10 ;
-        /*0250*/                   STG.E desc[UR4][R8.64+0x14], R11 ;
-        /*0260*/                   STG.E desc[UR4][R8.64+0x18], R12 ;
-        /*0270*/                   STG.E desc[UR4][R8.64+0x1c], R13 ;
diff --git a/tests/device-trace/guard-test.om b/tests/device-trace/guard-test.om
new file mode 100644
index 00000000..f51b9dbf
--- /dev/null
+++ b/tests/device-trace/guard-test.om
@@ -0,0 +1,56 @@
+note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+note Compose after trace-emit.om. Noncanonical enable/check values cannot bypass refusal.
+note Refusal preserves every output byte and its old length, not only a chosen prefix.
+
+fn gprepare to void
+for i ulong 8192
+put gbout i 165
+end
+put gboutlen 0 7
+put gbinlen 0 0
+end
+
+fn gunchanged to bool
+if ne get gboutlen 0 7
+ret false
+end
+for i ulong 8192
+if ne get gbout i 165
+ret false
+end
+end
+ret true
+end
+
+fn main to int
+vals = new ulong 4 0
+put vals 1 1
+put vals 2 2
+put vals 3 18446744073709551615
+for i ulong 4
+for j ulong 4
+gprepare
+on = get vals i
+checks = get vals j
+put gtchecks 0 checks
+ok = gtewrap on 2
+if and ne on 0 ne checks 1
+if ok
+ret 1
+end
+if ne get gterr 0 4
+ret 2
+end
+same = gunchanged
+if not same
+ret 3
+end
+else
+if not ok
+ret 4
+end
+end
+end
+end
+ret 0
+end
diff --git a/tests/device-trace/run-emitter-checks.sh b/tests/device-trace/run-emitter-checks.sh
index fc097cd8..03effb62 100755
--- a/tests/device-trace/run-emitter-checks.sh
+++ b/tests/device-trace/run-emitter-checks.sh
@@ -4,11 +4,13 @@
 # Two layers, deliberately separate:
 #   1. tests/device-trace/emitter-test.om  -- host checks compiled by the pinned seed compiler.
 #   2. nvdisasm 13.0 on the emitted words   -- an outside oracle. It is not part of the
-#      delivered closure and no GPU is touched; it only confirms that every emitted word
-#      decodes to the intended instruction.
+#      delivered closure and no GPU is touched; it only confirms that the emitted words
+#      decode to the intended instructions. Its listing stays in the temporary work
+#      directory: AGENTS.md forbids committing NVIDIA-tool output, so the expectations
+#      below are written by hand (opcode counts and the address-formation lines of the
+#      #85 repair: MOV of the record offset, then IMAD.WIDE.U32 base + offset).
 #
 # Usage: OMEGA_COMPILER=/path/to/seed/out/omc sh tests/device-trace/run-emitter-checks.sh
-#        add --update to rewrite expected.sass from the current emitter output.
 set -eu
 root=$(CDPATH= cd -- "$(dirname "$0")/../.." && pwd)
 compiler=${OMEGA_COMPILER:-}
@@ -60,14 +62,33 @@ echo "words: $(wc -c < "$work/words.bin") bytes, $(( $(wc -c < "$work/words.bin"
 [ "$(wc -c < "$work/words.bin")" = 640 ] || { echo 'expected 40 instructions (640 bytes)' >&2; exit 1; }
 
 nvdisasm --binary SM121 "$work/words.bin" > "$work/got.sass"
-if [ "${1:-}" = "--update" ]; then
-  cp "$work/got.sass" "$root/tests/device-trace/expected.sass"
-  echo 'expected.sass updated'
-  exit 0
-fi
-if diff -u "$root/tests/device-trace/expected.sass" "$work/got.sass"; then
-  echo 'nvdisasm decode matches expected.sass'
-else
-  echo 'nvdisasm decode differs from expected.sass' >&2
-  exit 1
+# Opcode histogram of the two marker blocks (20 instructions each).
+awk '$1 ~ /^\/\*[0-9a-f]+\*\/$/ { op = $2; if (op ~ /^@/) op = $3; n[op]++ }
+     END { for (o in n) print o, n[o] }' "$work/got.sass" | LC_ALL=C sort > "$work/ops.txt"
+LC_ALL=C sort > "$work/ops.want" <<'EOF'
+BRA 2
+IMAD.WIDE.U32 2
+ISETP.GE.AND 2
+LDC.64 6
+LDCU.64 2
+MOV 8
+S2R 2
+STG.E 16
+EOF
+bad=0
+if ! diff -u "$work/ops.want" "$work/ops.txt"; then
+  echo 'opcode counts differ from the hand-written expectation' >&2
+  bad=1
 fi
+# Record address = capture base (R4:R5) + record offset, full 64-bit width.
+for want in '0010 @P0 BRA 0x140' '0070 MOV R6, 0x40' '0080 IMAD.WIDE.U32 R8, R6, 0x1, R4' \
+            '01b0 MOV R6, 0x80' '01c0 IMAD.WIDE.U32 R8, R6, 0x1, R4'; do
+  off=${want%% *}; ins=${want#* }
+  got=$(awk -v o="/*$off*/" '$1 == o { $1 = ""; sub(/^ +/, ""); sub(/ *;$/, ""); print }' "$work/got.sass")
+  if [ "$got" != "$ins" ]; then
+    echo "offset 0x$off: want '$ins', got '$got'" >&2
+    bad=1
+  fi
+done
+[ "$bad" = 0 ] || exit 1
+echo 'nvdisasm decode matches the hand-written expectations (40 instructions)'