Omega-first language interoperability: checked conversion backends and native language bindings
Brought by drakestapleton
About Files History Releases Proposed changes Issues For developers
docs: DRA-107 claims ledger at d8174edd , pending W3-W5
open f08c6ed2ecebae3f #80 · opened 2026-11-06 20:41 UTC
Imported from GitHub aien-dev/omega-bridge#80, by drakestapleton
Base d8174eddf953ad53e16f19eb5841459df99e24bb · Head a73b6ef76ca75bdc7ac5c194c0586109dc628180
drakestapleton wrote on 2026-11-06 20:41 UTC
DRA-107 (W6) claims pass at main d8174eddf953ad53e16f19eb5841459df99e24bb . DRAFT, pending W3 DRA-104, W4 DRA-105, W5 DRA-106. No tag, no release notes.
Head: 9505ed5d88650ccb4be6fce5cb5994c06894aea1 (branch hive/dra-107-claims-ledger)
Changes
evidence/release-v1/claims-ledger-d8174edd .md: per-claim ledger for README.md, AGENTS.md, MISSION-REPORT.md (SUPPORTED with path:line, FIXED, EXTERNAL, NOT_RUN, UNSUPPORTED).
README: PyTorch/GGML attachments no longer "pending" (#23, #30, ggml-omega#1, #2 MERGED); host-words and ABI1-ioctl drafts described as merged on main (5b1fd722 , 249df29 via 6afaec6 ) instead of "requires approval before merge"; ggml test-backend-ops counts marked as an external receipt.
AGENTS: tools list adds bridge-seeded, bridge-freest; NATIVE-ABI described as v1/v2.
MISSION-REPORT: dated-snapshot status note; device rows remain NOT_RUN.
NOT_RUN kept, not deleted: independent review, physical x86, GB10 device/model runs. M8 ("No PR exists" upstream MAX) UNSUPPORTED, kept for Drake decision 2.
Before/after
Log: evidence/release-v1/fresh-clone-d8174edd -rehearsal.log (pre-tag rehearsal, wall 28 s); negative control: evidence/release-v1/ledger-check-negative-control.log.
Fresh clone d8174edd on Spark, CUDA_VISIBLE_DEVICES=, taskset 16,17, bwrap, flock: tools/bootstrap.sh && tools/build.sh && tools/test.sh -> rc=0, last line "ALL SUITES RC=0" (bootstrap fixpoint RC=0; differential 113, refusal 50, attachment 2, control 7, robustness 225, failures=0). PASS (host).
Ledger check (command in ledger): rc=0, 0 MISSING lines. PASS.
Negative control: appended row citing evidence/does-not-exist.log:1 -> "MISSING evidence/does-not-exist.log". PASS (flagged).
Labels: IMPLEMENTED, EXERCISED (host). Not QUALIFIED, not MERGED. Tag v1.0.0 gated on W3-W5.
CI (ci.yml, portable.yml): NOT_RUN (desk gate; branch pushes do not trigger them). The gates above are host-local Spark runs.
README:66 now states the slowdown: about 66x slower than eager, paired median 65.86 over 30 rounds, from evidence/omega-torch-m1/timings-low.json on main (WolframLanguageEvaluator: Median[N[o/e]] -> 65.8629606673294 ). Ledger row R20b.
Pure-Omega finish (BridgeFinish, head a73b6ef7 )
tools/claimcheck.om now holds the whole check (table shape, in-repo path and line lookups, required gates G1-G4, judge). tools/claimcheck.sh and tests/claimcheck.sh are removed; tools/test.sh no longer calls them.
Gate tests/claimcheck_test.om (seeded omc 2c824805 , run in Portable CI with build/claimcheck prep on the real table): claimcheck cases=59 failures=0 RC=0 — evidence/claimcheck-om/gate-run.log.
Old vs new (EXERCISED): 83 table/argument runs + 16 judge streams equal in rc/stdout/stderr except old dash Illegal number stderr noise and usage wording — evidence/claimcheck-om/old-vs-new.tsv.
Negative controls: wrong compiler → 65; path-check mutant fails gate-traversal-refused; judge mutant fails 5 cases — evidence/claimcheck-om/negative-controls.log.
Real table: prep rc 0 (70 rows), tag rc 3 (G1-G4 open) — evidence/claimcheck-om/real-claims.log.
Dropped: OMEGA_SEED selection/exit 65 of the shell (bootstrap omc 191b776e has no host words; the check is built with the seeded omc).
Host tools: seeded omc omega-mv e5b32567 (sha256 2c82480596bbdc50cda9626866209ef662d5834f278f839ff4ce0250c495029f ), Linux 7.0.0-1019-nvidia aarch64, git 2.43.0, crumb (verify OK 12 crumbs), python3 3.12.3 only for the pre-existing suites.
NOT_RUN: release tag (gates G1-G4 open by design).
Apply it
git checkout -b patch-f08c6ed2ecebae3f d8174eddf953ad53e16f19eb5841459df99e24bb
curl -fsSL https://interplane.io/drakestapleton/omega-bridge/patches/f08c6ed2ecebae3f .patch | git am
Raw patch (mbox) · 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/omega-bridge
80
a73b6ef76ca75bdc7ac5c194c0586109dc628180
{"kind":"github-import","owner":"aien-dev","repo":"omega-bridge","number":80,"url":"https://github.com/aien-dev/omega-bridge/pull/80","export_sha256":"4437ac3fc1482693a79ee39d37851494fabbe28ae00418da79120f49debe1d7b ","imported_utc":"2026-11-18T16:39:53Z"}
Changes
diff --git a/.crumb b/.crumb
index b9c7395 ..48287f1 100644
--- a/.crumb
+++ b/.crumb
@@ -64,14 +64,14 @@
}
],
"children_root": "sha256:1b2dd79450d79cdf42d895cd7ec0db578db08215ad3497eab3c4ba8b56deece7 ",
- "compiled_at": "2026-11-06T14:10:05Z",
+ "compiled_at": "2026-11-07T08:12:50Z",
"compiler": "crumb-compile/1",
- "digest": "sha256:398e04e5ba7be851445b6ee84436122587808cc74e5fbf49bdd04f3a9740d46d ",
- "evidence_files": 612,
- "evidence_root": "sha256:28005a8bbb770eae5aece0faa39f98bce41dde5c25e1d289a116211c76c9e3d3 ",
- "files": 970,
- "generated_at_commit": "8e1d5244e3cc1dd6892aa90b214ef508bde3be0e ",
- "source_tree": "sha256:8c92a6055f34668ee82f7ea132c73a91aba84eeb075ce16d72994a3ae40c8c1f "
+ "digest": "sha256:71724e84bc98cac85760c5aa768d4e18c0e6ab3f860d19ca7f34df04a93e10b6 ",
+ "evidence_files": 632,
+ "evidence_root": "sha256:467e553da6b7e4f5e95c184974102fb4cd2701c6d887e627a894f79485a8443d ",
+ "files": 1048,
+ "generated_at_commit": "0fbcf75ada31ac223dcbb1e0a8d37a13b0f4c9c8 ",
+ "source_tree": "sha256:674b46cfbec73c9d69a83ab7e55eb3ce5fd385f7dcc9b93b5c6dd90d0a4c110a "
}
},
"name": "BridgeHostAienX86",
diff --git a/.github/workflows/portable.yml b/.github/workflows/portable.yml
index 6b43788 ..d321466 100644
--- a/.github/workflows/portable.yml
+++ b/.github/workflows/portable.yml
@@ -31,6 +31,10 @@ jobs:
git -C "$RUNNER_TEMP/cudapp" checkout -q dbb1b5002fd7d96ff4695b2da4dcb3238db226c2
- name: Unchanged baseline behavioral and refusal suites
run: sh tools/test.sh
+ - name: Release claims check, seeded Omega gate and real claims table
+ run: |
+ "$OMEGA_SEEDED_OMC" < tests/claimcheck_test.om > build/claimcheck_test && chmod +x build/claimcheck_test && build/claimcheck_test "$OMEGA_SEEDED_OMC"
+ build/claimcheck prep
- name: Explicit x86 verification oracle, never a production dependency
shell: bash
run: |
diff --git a/AGENTS.md b/AGENTS.md
index b9252b4 ..3b3a522 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -10,7 +10,7 @@ Shared rules: read https://www.aienos.com/agents/RULES.md first. This file adds
- Applies to the whole repository.
- `src/`: all conversion logic and both runtime emitters (`toc.om`), the native binding generator (`native.om`) and the GPU adapter (`gpu_adapter.om`). These are Omega source; keep them Omega.
-- `tools/`: shell entry points (`bootstrap.sh`, `build.sh`, `test.sh`, `bridge`, `native`, `build-gpu-adapter.sh`, `run-device-window.sh`).
+- `tools/`: shell entry points (`bootstrap.sh`, `build.sh`, `test.sh`, `bridge`, `bridge-seeded`, `bridge-freest`, `native`, `build-gpu-adapter.sh`, `run-device-window.sh`).
- `tests/`: Python test harness (infrastructure only), fixtures, refusal cases, native callers in six languages, GPU adapter protocol tests.
- `conformance/`: separate-process Omega versus Modular MAX harness. `evidence/`: raw logs and result manifests.
- `pytorch/`: `torch.compile` backend `"omega"` (docs/OMEGA-TORCH.md). Kernels are `.om` (`pytorch/kernels/`); `pytorch/omega_torch/` is interim Python glue that registers the backend, walks the FX graph and calls units through the native ABI. It must never compute a tensor value; an unsupported op raises, and eager fallback only happens for ops the caller names, counted.
@@ -102,7 +102,7 @@ python3 tests/gpu/test_gpu_adapter.py
- `README.md`: build, convert and caller quick start.
- `docs/CAPABILITIES.md`: supported features, limits and trap codes.
-- `docs/ABI.md` (ABI v0), `docs/NATIVE-ABI.md` (native call ABI v1).
+- `docs/ABI.md` (ABI v0), `docs/NATIVE-ABI.md` (native call ABI v1/v2).
- `docs/GPU-ADAPTER.md`, `docs/GPU-SUPPORT-MATRIX.md`, `docs/MAX-INTEGRATION.md`: the GPU and MAX boundary.
- `docs/DESIGN.md`, `docs/PROVENANCE.md`, `docs/REPRODUCE.md`: design decisions, source pins, reproduction steps.
- `evidence/README.md`: what the local qualification ran.
diff --git a/MISSION-REPORT.md b/MISSION-REPORT.md
index acfd14e ..2b11048 100644
--- a/MISSION-REPORT.md
+++ b/MISSION-REPORT.md
@@ -4,6 +4,12 @@ Date: 2026-10-23. This is the consolidated report for the three branches. It
separates what ran from what did not. Every `PASS` below has raw output in the
named `evidence/` directory; every unexecuted device test is `NOT_RUN`.
+Status note (claims pass at omega-bridge `d8174edd `, DRA-107): this is a dated
+snapshot. The branch commits in section 1 are historical; the bridge evidence it
+names is committed at `evidence/MAX-INTEROP/3/` and `evidence/MAX-INTEROP/5/`.
+`omega/…` and `cudapp/…` paths live in those repositories, not here. Device-row
+status is in section 3. Per-claim ledger: `evidence/release-v1/claims-ledger-d8174edd .md`.
+
## 1. Revisions
| Repo | Branch | Review base | Latest commit |
@@ -32,7 +38,7 @@ CUDApp driver/firmware target: NVIDIA 580.173.02, GB10, sm_121.
| Cross-runtime envelope + 416-byte C2 TEST receipt | `omega/evidence/MAX-INTEROP/681/` | PASS, 26 checks |
| MAX 26.7 source/API/licence pin and capability matrix | `bridge/docs/max/` | PASS (analysis) |
| Separate-process MAX vs Omega harness | `bridge/evidence/MAX-INTEROP/5/` | PASS on CPU |
-| MAX/Omega numeric agreement (fixture) | same | bit-identical matmul SHA-256; GQA max abs error 2.7e-7 |
+| MAX/Omega numeric agreement (fixture) | same | matmul: MAX and Omega host-wiring outputs have the same SHA-256 `60a7f7d4 …` (`artifacts.sha256` lines 7-8); GQA: MAX against the fp64 oracle only, worst absolute error 2.7e-7 (stated in `RESULT.md`; `harness.log` records the checks and verdict, not the value). No Omega GQA output was produced on CPU |
### Exact artifacts
@@ -66,7 +72,8 @@ device, context, queue, allocation and error ownership: accept a cubin ELF as
bytes (not UTF-8 `String`), document primary-context identity, define the entry
name and parameter ABI, return deterministic errors for wrong arch/entry, and
ship a cubin load/launch qualification test. Details and proposed signatures:
-`docs/MAX-INTEGRATION.md`. No PR exists.
+`docs/MAX-INTEGRATION.md`. No PR from this project was found (GitHub PR search
+in modular/modular by authors drakestapleton and aien-spark, 2026-11-07, returned none).
Correction (2026-10-27, carried from omega-bridge#28): this report first said
"No contact with Modular has been made". That is out of date: Drake Stapleton
diff --git a/README.md b/README.md
index 4548dec ..36298f8 100644
--- a/README.md
+++ b/README.md
@@ -4,7 +4,7 @@ Omega's compatibility gateway. `src/toc.om` is an Omega program that converts a
Ownership rule ([ARCH-0042](https://github.com/aien-dev/aien-architecture-mv/pull/342), Accepted (Drake, 2026-10-30)): Omega owns computation, CUDA++ owns GPU execution, Omega Bridge owns compatibility.
-- **Omega Bridge (this repository)** owns compatibility: conversion to C and Python, native-call bindings, framework attachments (MAX conformance; PyTorch and GGML pending (#23/#30, ggml-omega#1/#2)) and GPU artifact negotiation. It exists so existing ecosystems can adopt Omega without rewriting; it makes them optional and does not constrain Omega to them.
+- **Omega Bridge (this repository)** owns compatibility: conversion to C and Python, native-call bindings, framework attachments (MAX conformance; PyTorch via #23/#30 and GGML via ggml-omega#1/#2, all merged) and GPU artifact negotiation. It exists so existing ecosystems can adopt Omega without rewriting; it makes them optional and does not constrain Omega to them.
- **[Omega](https://github.com/aien-dev/omega-mv)** owns computation: the language and its semantics, the seeded compiler and its pin. This repository builds with that compiler; it is not a second Omega compiler. Today `tools/bootstrap.sh` replays the seed itself and `src/toc.om` keeps its own front end; both stay as they are, and new compiler work goes to Omega ([omega-mv#870](https://github.com/aien-dev/omega-mv/issues/870), [omega-mv#871](https://github.com/aien-dev/omega-mv/issues/871)).
- **[CUDA++](https://github.com/aien-dev/CUDApp)** owns GPU execution: encoder, GPU code generation, cubin writer, artifact admission, driver client and runtime. Omega device runs here go through CUDA++ (`conformance/build.sh` links `conformance/omega_runner.c` against its `libomega_gpu.a`; `tools/run-device-window.sh` calls its `cubin_probe`).
@@ -63,7 +63,7 @@ quiet-build python3 tests/attachments.py
See [supported features and limits](docs/CAPABILITIES.md), [caller ABI and ownership](docs/ABI.md), [design and study decisions](docs/DESIGN.md), and [provenance](docs/PROVENANCE.md). Text constants, heap operations and other target languages are explicitly unsupported by the C/Python converters. The additive seeded C frontend supports f32/f64 scalars, constants, arithmetic and fsqrt, public float scalars and ushort/uint/f32 views and arrays (`tools/bridge-seeded c|h`, checked by `tests/seeded_float.py` and `tests/seeded_views.py`). The native `tools/native --float` profile also exposes typed scalar floats in C, Python, Rust, Zig and Go (`tests/native/float.py`); its compiler pin is separate from the baseline. GPU interoperability is a separate, opt-in adapter boundary (it converts no host program): see [GPU adapter](docs/GPU-ADAPTER.md) and the [support matrix](docs/GPU-SUPPORT-MATRIX.md). Python/C input conversion is not implemented. The Python test harness is infrastructure; all conversion logic and both runtime emitters are in [src/toc.om](src/toc.om).
-PyTorch: `torch.compile(model, backend="omega")` runs a small set of float32 core-ATen ops (mm, addmm, 2-D transpose, add, relu, softmax) on CPU through Omega-generated AArch64 kernels called via the native call ABI, and refuses everything else. The Python under `pytorch/omega_torch/` is interim glue that computes no tensor value. Exercised on CPU against PyTorch eager only; see [docs/OMEGA-TORCH.md](docs/OMEGA-TORCH.md).
+PyTorch: `torch.compile(model, backend="omega")` runs a small set of float32 core-ATen ops (mm, addmm, 2-D transpose, add, relu, softmax) on CPU through Omega-generated AArch64 kernels called via the native call ABI, and refuses everything else. The Python under `pytorch/omega_torch/` is interim glue that computes no tensor value. Exercised on CPU against PyTorch eager only. It is about 66x slower than eager on the same core: the median of the paired per-round Omega/eager ratios is 65.86 over 30 rounds ([evidence/omega-torch-m1/timings-low.json](evidence/omega-torch-m1/timings-low.json)); the kernels are scalar, with no SIMD. See [docs/OMEGA-TORCH.md](docs/OMEGA-TORCH.md).
DeepInfer (deepseek-ai/DeepInfer) is a proposed translation and attachment target; its inventory, measured import coverage and extension plan are in [DeepInfer as a bridge target](docs/DEEPINFER.md).
@@ -79,12 +79,12 @@ A worked integration: [examples/deepinfer](examples/deepinfer/README.md) replace
`f32` and `ushort` array kinds (4-byte and 2-byte elements) are qualified by `OMEGA_NATIVE_OMC=<seeded omc> sh tests/native/kinds.sh`. The contract is in [native call ABI](docs/NATIVE-ABI.md).
-`tools/native --host` admits nine OM-2 file/identity words, three clocks and twelve bounded device words with the staged context-format compiler. Select AArch64 Linux by default or x86-64 Linux with `--target x86linux`; each hosted target enforces its own compiler fingerprint. Without the flag every host word is refused. Mapping libraries retain default128-slot exports and add C exports selecting explicit contexts with capacity1..4098. Owned fixed bind replaces only a PROT_NONE reservation. A failed bind retires the token after successful cleanup; cleanup failure quarantines the owned slot until `mapdrop` retries. This is a **draft contract requiring Drake approval before merge**. Compiler custody, generation ownership and destruction rules are in the [native call ABI](docs/NATIVE-ABI.md). `tests/native/v2/dev/run.py` exercises libc ioctl comparisons, shared-memfd publication, fixed-bind/context controls and runtime/compiler mutants on AArch64. `tests/native/x86/device.py` runs the same fixtures under the QEMU10.0.14 oracle and adds x86 syscall and MFENCE controls. Emulation is not native x86 qualification. GPU/chip qualification is NOT_RUN.
+`tools/native --host` admits nine OM-2 file/identity words, three clocks and twelve bounded device words with the staged context-format compiler. Select AArch64 Linux by default or x86-64 Linux with `--target x86linux`; each hosted target enforces its own compiler fingerprint. Without the flag every host word is refused. Mapping libraries retain default128-slot exports and add C exports selecting explicit contexts with capacity1..4098. Owned fixed bind replaces only a PROT_NONE reservation. A failed bind retires the token after successful cleanup; cleanup failure quarantines the owned slot until `mapdrop` retries. This draft contract is merged on main (commit `5b1fd722 ` via merge `6afaec6 `) and remains labelled draft. Compiler custody, generation ownership and destruction rules are in the [native call ABI](docs/NATIVE-ABI.md). `tests/native/v2/dev/run.py` exercises libc ioctl comparisons, shared-memfd publication, fixed-bind/context controls and runtime/compiler mutants on AArch64. `tests/native/x86/device.py` runs the same fixtures under the QEMU10.0.14 oracle and adds x86 syscall and MFENCE controls. Emulation is not native x86 qualification. GPU/chip qualification is NOT_RUN.
The staged AArch64 profile also admits five exact aien-gpu ABI1 ioctl requests,
not the whole `'A'` family. CPU-only callers use fd-1 and check exact-length
guards against libc; device, driver and GPU integration remain NOT_RUN.
-This trust-surface draft also requires Drake approval before merge. See the
+This trust-surface draft is merged on main (commit `249df29 ` via merge `6afaec6 `). See the
exact compiler fingerprint and request list in `docs/NATIVE-ABI.md`.
The native target defaults to `aarch64linux`. Hosted x86-64 SysV Linux bindings
@@ -134,10 +134,10 @@ comparison. GNU assembly/object tooling remains a disclosed build dependency.
| Framework | Attachment | Scope (receipt) |
|---|---|---|
-| llama.cpp / ggml | [aien-dev/ggml-omega](https://github.com/aien-dev/ggml-omega), an out-of-tree ggml backend built on `src/native.om` | host device (draft ggml-omega#1): 16 ops on Omega CPU code; opt-in `OmegaGB10` device (draft ggml-omega#2): MUL_MAT, RMS_NORM, swiglu on the GB10 through CUDA++ (CUDApp#139 `gemm_ex`), every other op on ggml's CPU backend; test-backend-ops against the CPU backend on the chip, MUL_MAT 871 / RMS_NORM 7 / SWIGLU 12 cases OK, 0 FAIL |
+| llama.cpp / ggml | [aien-dev/ggml-omega](https://github.com/aien-dev/ggml-omega), an out-of-tree ggml backend built on `src/native.om` | host device (ggml-omega#1, merged): 16 ops on Omega CPU code; opt-in `OmegaGB10` device (ggml-omega#2, merged): MUL_MAT, RMS_NORM, swiglu on the GB10 through CUDA++ (CUDApp#139 `gemm_ex`), every other op on ggml's CPU backend; test-backend-ops against the CPU backend on the chip, MUL_MAT 871 / RMS_NORM 7 / SWIGLU 12 cases OK, 0 FAIL (receipt [ggml-omega `evidence/gb10-20261027T0726Z/bo-gb10.tsv`](https://github.com/aien-dev/ggml-omega/blob/a30322c90191507c46c1b74783d722d617d4514c /evidence/gb10-20261027T0726Z/bo-gb10.tsv); no copy is committed here) |
| PyTorch | [attach/torch](attach/torch/cudapp_torch.py): `torch.library` ops `cudapp::mm` (f32, bf16, f16) and `cudapp::swiglu` (f32) calling CUDA++ (`omega_gpu_gemm_ex`, `omega_gpu_swiglu_f32`) on the GB10 | CPU tensors in and out (staged to the chip per call), no autograd; checked against torch CPU plus `torch.library.opcheck` and a mutant (`attach/torch/test_cudapp_torch.py`); receipt `evidence/attach-gb10-20261027T0726Z/`, EXERCISED on a single GB10 |
-`attach/torch` is migration-pending host glue (`ctypes` at the torch ABI surface, switch `MIGRATION_PENDING`); its named successor is the `omega_native.py` binding that `tools/native` writes (the `python` word of `src/native.om`) once CUDA++ entries are callable as Omega units. Neither attachment has run a model on the GB10 yet: that needs an exclusive GPU window.
+`attach/torch` is migration-pending host glue (`ctypes` at the torch ABI surface, switch `MIGRATION_PENDING`); its named successor is the `omega_native.py` binding that `tools/native` writes (the `python` word of `src/native.om`) once CUDA++ entries are callable as Omega units. `attach/torch` has not run a model on the GB10. ggml-omega recorded one 16-token greedy comparison, CPU backend against `OmegaGB10`, on the outside model that was resident on 2026-10-29 ([ggml-omega `evidence/gb10-model-20261029 .json`](https://github.com/aien-dev/ggml-omega/blob/a30322c90191507c46c1b74783d722d617d4514c /evidence/gb10-model-20261029 .json), verdict `EXERCISED_GREEDY_PASS`); that is not a model qualification, and later model runs use the own Omega LLM or synthetic weights only.
## Human-Directed Agentic Engineering
diff --git a/evidence/claimcheck-om/README.md b/evidence/claimcheck-om/README.md
new file mode 100644
index 0000000 ..fac11bc
--- /dev/null
+++ b/evidence/claimcheck-om/README.md
@@ -0,0 +1,18 @@
+# Claims check port to seeded Omega (DRA-107)
+
+`tools/claimcheck.sh` (shell, awk, sed) and its controls `tests/claimcheck.sh` are replaced by
+`tools/claimcheck.om` (the whole check, seeded Omega) and `tests/claimcheck_test.om` (its gate).
+Both are built by the seeded omc of omega-mv `e5b32567 ` (sha256 `2c824805 …`); Portable CI runs
+the gate and `build/claimcheck prep` on the real table.
+
+| File | Content |
+|---|---|
+| `old-vs-new.tsv` | 83 table/argument runs and 16 judge streams, old shell vs new program: rc, stdout, stderr. Equal except the old dash `Illegal number` stderr noise (hugeline) and the usage wording. EXERCISED. |
+| `gate-run.log` | `claimcheck cases=59 failures=0 RC=0`: 42 table cases, 16 judge streams, 1 judge mutant. |
+| `negative-controls.log` | Wrong compiler → 65; a path-check mutant fails `gate-traversal-refused`; a judge mutant fails 5 cases. |
+| `real-claims.log` | `evidence/release-v1/claims.tsv`: prep rc 0 (70 rows), tag rc 3 (G1-G4 open). |
+
+Dropped from the shell version: the `OMEGA_SEED` selection and exit 65 for a wrong seed. The
+bootstrap omc (`191b776e `) has no host words, so the check is built with the seeded omc instead.
+The case tables in `tests/fixtures/claimcheck/cases` are the ones the shell controls generated
+with sed at `0fbcf75a `, plus 12 edge cases.
diff --git a/evidence/claimcheck-om/gate-run.log b/evidence/claimcheck-om/gate-run.log
new file mode 100644
index 0000000 ..30446c1
--- /dev/null
+++ b/evidence/claimcheck-om/gate-run.log
@@ -0,0 +1,64 @@
+# host: Linux 7.0.0-1019-nvidia aarch64, taskset -c 18 nice -n 10, seeded omc omega-mv e5b32567 sha256 2c82480596bbdc50cda9626866209ef662d5834f278f839ff4ce0250c495029f
+# tree: hive/dra-107-claims-ledger working tree on top of 0fbcf75a (this commit)
+# command: build/claimcheck_test /home/drakestapleton/work/finish/bin/omc-e5 (build/claimcheck_test = omc < tests/claimcheck_test.om)
+# rc: 0
+PASS good-prep (rc=0)
+PASS good-tag (rc=0)
+PASS receipt-text-mismatch (rc=1)
+PASS document-line-moved (rc=1)
+PASS receipt-line-past-end (rc=1)
+PASS receipt-file-missing (rc=1)
+PASS supported-without-receipt (rc=1)
+PASS row-without-document (rc=1)
+PASS cited-dash-expect (rc=1)
+PASS unknown-status (rc=1)
+PASS path-escape-refused (rc=1)
+PASS non-numeric-line (rc=1)
+PASS symlink-inside-accepted (rc=0)
+PASS symlink-outside-refused (rc=1)
+PASS unsupported-prep (rc=0)
+PASS unsupported-tag (rc=3)
+PASS gate-open-tag (rc=3)
+PASS gate-directory-refused (rc=3)
+PASS gate-absolute-refused (rc=3)
+PASS gate-traversal-refused (rc=3)
+PASS required-gate-row-absent (rc=3)
+PASS gate-id-repeated (rc=4)
+PASS gate-id-combined (rc=4)
+PASS malformed-table (rc=4)
+PASS empty-field (rc=4)
+PASS no-claim-rows (rc=4)
+PASS unterminated-table (rc=4)
+PASS comment-lines-skipped (rc=0)
+PASS cite-without-line-number (rc=1)
+PASS line-number-leading-zero (rc=0)
+PASS line-number-zero (rc=1)
+PASS line-number-overflow (rc=1)
+PASS carriage-return-kept (rc=1)
+PASS wrong-receipt-line (rc=1)
+PASS dot-slash-path (rc=0)
+PASS dotdot-final-component (rc=1)
+PASS empty-line (rc=4)
+PASS every-shape-error-reported (rc=4)
+PASS empty-table (rc=4)
+PASS table-missing (rc=2)
+PASS table-directory (rc=2)
+PASS unknown-mode (rc=2)
+PASS judge-no-mode (rc=4)
+PASS judge-mode-repeated (rc=4)
+PASS judge-mode-unknown (rc=4)
+PASS judge-mode-missing (rc=4)
+PASS judge-short-record (rc=4)
+PASS judge-unknown-side (rc=4)
+PASS judge-unknown-found (rc=4)
+PASS judge-short-gate (rc=4)
+PASS judge-no-claim-rows (rc=4)
+PASS judge-unterminated (rc=4)
+PASS judge-document-without-receipt (rc=4)
+PASS judge-receipt-without-document (rc=4)
+PASS judge-receipt-other-id (rc=4)
+PASS judge-gate-inside-pair (rc=4)
+PASS well-formed (rc=0)
+PASS bad-mismatch (rc=1)
+PASS judge-mutant-accepts-mismatch (rc=0)
+claimcheck cases=59 failures=0 RC=0
diff --git a/evidence/claimcheck-om/negative-controls.log b/evidence/claimcheck-om/negative-controls.log
new file mode 100644
index 0000000 ..6875813
--- /dev/null
+++ b/evidence/claimcheck-om/negative-controls.log
@@ -0,0 +1,20 @@
+# host: Linux 7.0.0-1019-nvidia aarch64, taskset -c 18 nice -n 10, seeded omc omega-mv e5b32567 sha256 2c82480596bbdc50cda9626866209ef662d5834f278f839ff4ce0250c495029f
+# tree: hive/dra-107-claims-ledger working tree on top of 0fbcf75a (this commit)
+
+## NEGATIVE CONTROL wrong compiler: $ build/cct /bin/sh
+# rc: 65
+claimcheck_test: omc sha256 is not the seeded omega-mv e5b32567 compiler 2c824805
+
+## NEGATIVE CONTROL path mutant (pathok without the relative/no-.. test; tools/claimcheck.om restored after): $ build/cct /home/drakestapleton/work/finish/bin/omc-e5
+# rc: 1
+FAIL gate-traversal-refused got rc=0)
+claimcheck cases=59 failures=1 RC=1
+
+## NEGATIVE CONTROL judge mutant applied to the source itself (mutant step must then fail to apply): $ build/cct /home/drakestapleton/work/finish/bin/omc-e5
+# rc: 2
+FAIL receipt-text-mismatch got rc=0)
+FAIL document-line-moved got rc=0)
+FAIL carriage-return-kept got rc=0)
+FAIL wrong-receipt-line got rc=0)
+FAIL bad-mismatch got rc=1)
+claimcheck_test: setup failed: building the judge mutant
diff --git a/evidence/claimcheck-om/old-vs-new.tsv b/evidence/claimcheck-om/old-vs-new.tsv
new file mode 100644
index 0000000 ..c790f33
--- /dev/null
+++ b/evidence/claimcheck-om/old-vs-new.tsv
@@ -0,0 +1,102 @@
+# old: sh tools/claimcheck.sh ARGS at 0fbcf75a (judge built by bootstrap omc 191b776e ); new: build/claimcheck ARGS from tools/claimcheck.om (seeded omc 2c824805 ). Same fixture tables and symlinks in both trees.
+# 83 table/argument runs + 16 judge streams; differences: hugeline prep/tag (old stderr carries dash "[: Illegal number" noise, rc and stdout equal) and bogus mode (usage wording).
+args old_rc new_rc stdout_equal stderr_equal
+prep evidence/release-v1/claims.tsv 0 0 True True
+tag evidence/release-v1/claims.tsv 3 3 True True
+prep tests/fixtures/claimcheck/cases/comment.tsv 0 0 True True
+tag tests/fixtures/claimcheck/cases/comment.tsv 0 0 True True
+prep tests/fixtures/claimcheck/cases/crlf.tsv 1 1 True True
+tag tests/fixtures/claimcheck/cases/crlf.tsv 1 1 True True
+prep tests/fixtures/claimcheck/cases/dashexpect.tsv 1 1 True True
+tag tests/fixtures/claimcheck/cases/dashexpect.tsv 1 1 True True
+prep tests/fixtures/claimcheck/cases/docline.tsv 1 1 True True
+tag tests/fixtures/claimcheck/cases/docline.tsv 1 1 True True
+prep tests/fixtures/claimcheck/cases/dotdotend.tsv 1 1 True True
+tag tests/fixtures/claimcheck/cases/dotdotend.tsv 1 1 True True
+prep tests/fixtures/claimcheck/cases/dotslash.tsv 0 0 True True
+tag tests/fixtures/claimcheck/cases/dotslash.tsv 0 0 True True
+prep tests/fixtures/claimcheck/cases/empty.tsv 4 4 True True
+tag tests/fixtures/claimcheck/cases/empty.tsv 4 4 True True
+prep tests/fixtures/claimcheck/cases/emptyfield.tsv 4 4 True True
+tag tests/fixtures/claimcheck/cases/emptyfield.tsv 4 4 True True
+prep tests/fixtures/claimcheck/cases/emptyline.tsv 4 4 True True
+tag tests/fixtures/claimcheck/cases/emptyline.tsv 4 4 True True
+prep tests/fixtures/claimcheck/cases/escape.tsv 1 1 True True
+tag tests/fixtures/claimcheck/cases/escape.tsv 1 1 True True
+prep tests/fixtures/claimcheck/cases/expect.tsv 1 1 True True
+tag tests/fixtures/claimcheck/cases/expect.tsv 1 1 True True
+prep tests/fixtures/claimcheck/cases/gate.tsv 0 0 True True
+tag tests/fixtures/claimcheck/cases/gate.tsv 3 3 True True
+prep tests/fixtures/claimcheck/cases/gateabs.tsv 0 0 True True
+tag tests/fixtures/claimcheck/cases/gateabs.tsv 3 3 True True
+prep tests/fixtures/claimcheck/cases/gatecombined.tsv 4 4 True True
+tag tests/fixtures/claimcheck/cases/gatecombined.tsv 4 4 True True
+prep tests/fixtures/claimcheck/cases/gatedir.tsv 0 0 True True
+tag tests/fixtures/claimcheck/cases/gatedir.tsv 3 3 True True
+prep tests/fixtures/claimcheck/cases/gatemissingrow.tsv 0 0 True True
+tag tests/fixtures/claimcheck/cases/gatemissingrow.tsv 3 3 True True
+prep tests/fixtures/claimcheck/cases/gaterepeat.tsv 4 4 True True
+tag tests/fixtures/claimcheck/cases/gaterepeat.tsv 4 4 True True
+prep tests/fixtures/claimcheck/cases/gatetrav.tsv 0 0 True True
+tag tests/fixtures/claimcheck/cases/gatetrav.tsv 3 3 True True
+prep tests/fixtures/claimcheck/cases/hugeline.tsv 1 1 True False
+tag tests/fixtures/claimcheck/cases/hugeline.tsv 1 1 True False
+prep tests/fixtures/claimcheck/cases/lastline.tsv 1 1 True True
+tag tests/fixtures/claimcheck/cases/lastline.tsv 1 1 True True
+prep tests/fixtures/claimcheck/cases/leadzero.tsv 0 0 True True
+tag tests/fixtures/claimcheck/cases/leadzero.tsv 0 0 True True
+prep tests/fixtures/claimcheck/cases/linezero.tsv 1 1 True True
+tag tests/fixtures/claimcheck/cases/linezero.tsv 1 1 True True
+prep tests/fixtures/claimcheck/cases/malformed.tsv 4 4 True True
+tag tests/fixtures/claimcheck/cases/malformed.tsv 4 4 True True
+prep tests/fixtures/claimcheck/cases/missing.tsv 1 1 True True
+tag tests/fixtures/claimcheck/cases/missing.tsv 1 1 True True
+prep tests/fixtures/claimcheck/cases/multierr.tsv 4 4 True True
+tag tests/fixtures/claimcheck/cases/multierr.tsv 4 4 True True
+prep tests/fixtures/claimcheck/cases/nocite.tsv 1 1 True True
+tag tests/fixtures/claimcheck/cases/nocite.tsv 1 1 True True
+prep tests/fixtures/claimcheck/cases/noclaims.tsv 4 4 True True
+tag tests/fixtures/claimcheck/cases/noclaims.tsv 4 4 True True
+prep tests/fixtures/claimcheck/cases/nocolon.tsv 1 1 True True
+tag tests/fixtures/claimcheck/cases/nocolon.tsv 1 1 True True
+prep tests/fixtures/claimcheck/cases/nodoc.tsv 1 1 True True
+tag tests/fixtures/claimcheck/cases/nodoc.tsv 1 1 True True
+prep tests/fixtures/claimcheck/cases/nonnum.tsv 1 1 True True
+tag tests/fixtures/claimcheck/cases/nonnum.tsv 1 1 True True
+prep tests/fixtures/claimcheck/cases/pastend.tsv 1 1 True True
+tag tests/fixtures/claimcheck/cases/pastend.tsv 1 1 True True
+prep tests/fixtures/claimcheck/cases/status.tsv 1 1 True True
+tag tests/fixtures/claimcheck/cases/status.tsv 1 1 True True
+prep tests/fixtures/claimcheck/cases/symlink.tsv 1 1 True True
+tag tests/fixtures/claimcheck/cases/symlink.tsv 1 1 True True
+prep tests/fixtures/claimcheck/cases/symlinkin.tsv 0 0 True True
+tag tests/fixtures/claimcheck/cases/symlinkin.tsv 0 0 True True
+prep tests/fixtures/claimcheck/cases/unsup.tsv 0 0 True True
+tag tests/fixtures/claimcheck/cases/unsup.tsv 3 3 True True
+prep tests/fixtures/claimcheck/cases/unterminated.tsv 4 4 True True
+tag tests/fixtures/claimcheck/cases/unterminated.tsv 4 4 True True
+prep tests/fixtures/claimcheck/table.tsv 0 0 True True
+tag tests/fixtures/claimcheck/table.tsv 0 0 True True
+(none) 0 0 True True
+prep 0 0 True True
+tag 3 3 True True
+bogus 2 2 True False
+prep tests/fixtures/claimcheck/nonexistent.tsv 2 2 True True
+prep tests/fixtures/claimcheck 2 2 True True
+tag evidence/release-v1/claims.tsv 3 3 True True
+judge < tests/fixtures/claimcheck/streams/bad-mismatch.txt 1 1 True True
+judge < tests/fixtures/claimcheck/streams/judge-document-without-receipt.txt 4 4 True True
+judge < tests/fixtures/claimcheck/streams/judge-gate-inside-pair.txt 4 4 True True
+judge < tests/fixtures/claimcheck/streams/judge-mode-missing.txt 4 4 True True
+judge < tests/fixtures/claimcheck/streams/judge-mode-repeated.txt 4 4 True True
+judge < tests/fixtures/claimcheck/streams/judge-mode-unknown.txt 4 4 True True
+judge < tests/fixtures/claimcheck/streams/judge-no-claim-rows.txt 4 4 True True
+judge < tests/fixtures/claimcheck/streams/judge-no-mode.txt 4 4 True True
+judge < tests/fixtures/claimcheck/streams/judge-receipt-other-id.txt 4 4 True True
+judge < tests/fixtures/claimcheck/streams/judge-receipt-without-document.txt 4 4 True True
+judge < tests/fixtures/claimcheck/streams/judge-short-gate.txt 4 4 True True
+judge < tests/fixtures/claimcheck/streams/judge-short-record.txt 4 4 True True
+judge < tests/fixtures/claimcheck/streams/judge-unknown-found.txt 4 4 True True
+judge < tests/fixtures/claimcheck/streams/judge-unknown-side.txt 4 4 True True
+judge < tests/fixtures/claimcheck/streams/judge-unterminated.txt 4 4 True True
+judge < tests/fixtures/claimcheck/streams/well-formed.txt 0 0 True True
diff --git a/evidence/claimcheck-om/real-claims.log b/evidence/claimcheck-om/real-claims.log
new file mode 100644
index 0000000 ..a3d66b6
--- /dev/null
+++ b/evidence/claimcheck-om/real-claims.log
@@ -0,0 +1,19 @@
+# host: Linux 7.0.0-1019-nvidia aarch64, taskset -c 18 nice -n 10, seeded omc omega-mv e5b32567 sha256 2c82480596bbdc50cda9626866209ef662d5834f278f839ff4ce0250c495029f
+# tree: hive/dra-107-claims-ledger working tree on top of 0fbcf75a (this commit)
+# command: build/claimcheck prep
+# rc: 0
+GATE-OPEN G1 evidence/native-x86-physical-be8c5130 .json
+GATE-OPEN G2 evidence/device-window/README.md
+GATE-OPEN G3 evidence/release-v1/independent-review.md
+GATE-OPEN G4 evidence/attach-torch-cpu-d8174ed /README.md
+CLAIMCHECK PASS rows=70 checked=120 not_run=6 unsupported=0 external=8 fixed=9 gates=4 gates_open=4
+TAG-READY no
+
+# command: build/claimcheck tag (expected: refused, exit 3, gates open)
+# rc: 3
+GATE-OPEN G1 evidence/native-x86-physical-be8c5130 .json
+GATE-OPEN G2 evidence/device-window/README.md
+GATE-OPEN G3 evidence/release-v1/independent-review.md
+GATE-OPEN G4 evidence/attach-torch-cpu-d8174ed /README.md
+CLAIMCHECK PASS rows=70 checked=120 not_run=6 unsupported=0 external=8 fixed=9 gates=4 gates_open=4
+TAG-READY no
diff --git a/evidence/release-v1/README.md b/evidence/release-v1/README.md
new file mode 100644
index 0000000 ..f9d86e8
--- /dev/null
+++ b/evidence/release-v1/README.md
@@ -0,0 +1,37 @@
+# evidence/release-v1: claims pass and v1.0.0 tag preparation (DRA-107)
+
+| File | What it is |
+|---|---|
+| `claims.tsv` | One row per claim in README.md, AGENTS.md and MISSION-REPORT.md: document line, receipt line, the text each must contain, status. Gate rows G1-G4. Input of `tools/claimcheck.om` (seeded Omega; replaced `tools/claimcheck.sh`). |
+| `claims-ledger-d8174edd .md` | The same rows for people, with notes and the findings of each revision. |
+| `RELEASE-NOTES-v1.0.0.draft.md` | Draft release notes: evidence per claim. DRAFT until the tag. |
+| `fresh-clone-d8174edd -rehearsal.log` | Revision 1 pre-tag rehearsal at main `d8174edd ` (`ALL SUITES RC=0`). |
+| `fresh-clone-claims-r2-rehearsal.log` | Revision 2 rehearsal at `3c2d599f ` (before the review fixes): bootstrap, build, test (including `tests/claimcheck.sh`) and `tools/claimcheck.sh prep`. |
+| `fresh-clone-claims-r2-after-review-rehearsal.log` | The same at `e0e7a68a `, after the reviewer's findings on `d9583619 ` were fixed. |
+| `fresh-clone-claims-r2-review2-rehearsal.log` | The same at `cf1ef566 `, after the re-review finding on `2a90893c ` was fixed (46 controls). |
+| `claimcheck-prep.log`, `claimcheck-tag.log`, `claimcheck-negative-controls.log` | Revision 2 claims check before the review: prep PASS, tag refused (gates open), and planted failures. |
+| `claimcheck-*-after-review.log` | The same after the review fixes (70 rows). |
+| `ledger-check-negative-control.log` | Revision 1 path-check control (history). |
+
+None of these files is a tag, a release or hardware evidence.
+
+## Tag runbook (for the desk; do not run before DRA-104, DRA-105 and DRA-106 are Done)
+
+1. Desk merges #78, #81, #82, #79 (after kanban t_17fa5725 ) and this branch,
+ each with a signed `reviewer` verdict and a `crumb compile .` where the root
+ crumb conflicts. The physical x86 receipt (G1) and the outside review record
+ (G3) are committed by their owners.
+2. On the release-candidate head, update the line numbers and texts in
+ `claims.tsv` (every merge shifts document lines), re-check each row's
+ receipt, and rename the ledger to the head (`claims-ledger-<sha8>.md`).
+3. From a fresh clone of that head on Linux AArch64:
+ `tools/bootstrap.sh && tools/build.sh && tools/test.sh` must end
+ `ALL SUITES RC=0`; `build/claimcheck tag` (built with `"$OMEGA_SEEDED_OMC" < tools/claimcheck.om > build/claimcheck && chmod +x build/claimcheck`) must exit 0 and print
+ `TAG-READY yes`.
+4. The desk tags that exact head (annotated, signed if the key ceremony allows),
+ `git tag -a v1.0.0 <sha>`, and publishes the release notes with the `DRAFT`
+ status line removed.
+5. From a fresh clone of the tag, repeat step 3 and commit the log as
+ `evidence/release-v1/fresh-clone-v1.0.0.log` on main (DRA-107 evidence path).
+ A commit cannot contain the log of a clone of itself, so this is a follow-up
+ commit.
diff --git a/evidence/release-v1/RELEASE-NOTES-v1.0.0.draft.md b/evidence/release-v1/RELEASE-NOTES-v1.0.0.draft.md
new file mode 100644
index 0000000 ..be72b50
--- /dev/null
+++ b/evidence/release-v1/RELEASE-NOTES-v1.0.0.draft.md
@@ -0,0 +1,93 @@
+# Omega Bridge v1.0.0 release notes (DRAFT, not released)
+
+Status: DRAFT prepared by the DRA-107 claims pass on main `d8174edd `. Nothing is
+tagged or published. The tag waits on W3 DRA-104 (physical x86), W4 DRA-105
+(GB10 device rows), W5 DRA-106 (outside independent review) and the desk merges
+of #78, #79, #81, #82 and this branch (#80). Before release, replace every
+`d8174edd ` line reference with the release-candidate head and re-run
+`build/claimcheck tag` (see `README.md` in this directory).
+
+Omega Bridge is Omega's compatibility gateway: it converts a checked, bounded
+Omega subset to C and Python, generates native bindings so six languages call
+compiled Omega, attaches frameworks, and admits GPU artifacts without running a
+kernel. It owns compatibility, not computation (omega-mv) or GPU execution
+(CUDApp), per ARCH-0042. Evidence labels: EXERCISED (ran, receipt committed),
+EMULATED (ran under QEMU), EXTERNAL (receipt in another repository), NOT_RUN.
+No speedup and no universal conversion is claimed.
+
+## What is in v1.0.0, with evidence
+
+Each line names the claims-table row (`claims.tsv`) and its receipt.
+
+### Conversion (`src/toc.om`, `tools/bridge`)
+
+- Checked scalar subset to C and Python with native-equal output, exit status
+ and trap codes; refusals write nothing. EXERCISED on Linux AArch64:
+ differential `cases=113 failures=0 RC=0`, refusals `cases=50`, attachments
+ `cases=2`, controls `cases=7`, robustness `cases=225`
+ (`fresh-clone-d8174edd -rehearsal.log`, rows R1, R16, R17). The recovered
+ emitter's red run, 8 of 20 failing, is kept (`evidence/01-recovered-red.log`,
+ R10).
+- Source-only bootstrap of the pinned seed `191b776e …`, fixpoint checked
+ (`bootstrap fixpoint RC=0`, A4; pins R9, R12, M2). Linux AArch64 only (R7).
+- Additive seeded C frontend (f32/f64, views): EXERCISED
+ (`evidence/typed-views-seeded-device-free.log`, R18). Shift admission with a
+ wrong-direction negative control (R15).
+
+### Native call bindings (`src/native.om`, `tools/native`)
+
+- One generator writes the library and C/C++, Python, Rust, Zig and Go
+ bindings: `NATIVE-CALL PASS (not run: none)` with the BTI caller
+ (`evidence/native-call-v1/run.log`, R22, A12).
+- Typed float scalars in five languages (`NATIVE-FLOAT PASS`, R19); f32/ushort
+ array kinds (R24); native ABI v2 (A14).
+- `--host` words: nine host words named in the identity, contexts to capacity
+ 4098, device-word qualification with 5 ioctl controls; chip NOT_RUN (R25,
+ R25b, R25c, R28).
+- x86-64 SysV Linux output at pin `be8c5130 …`: full suite and mismatched-pin and
+ toolchain controls EMULATED under QEMU 10.0.14 (R30, R31, R33, R33b, A8).
+ Physical x86: NOT_RUN at this draft (R34, gate G1).
+
+### Framework attachments
+
+- PyTorch `torch.compile(backend="omega")`, six float32 ops on CPU, 22 tests
+ OK; about 66x slower than eager (median of 30 paired ratios 65.86, Wolfram;
+ R20, R20b).
+- PyTorch `attach/torch` (`cudapp::mm`, `cudapp::swiglu`) EXERCISED on one GB10
+ (`evidence/attach-gb10-20261027T0726Z/torch.log`, R38).
+- llama.cpp/ggml through ggml-omega: test-backend-ops on the GB10, MUL_MAT 871,
+ RMS_NORM 7, SWIGLU 12 OK, 0 FAIL (EXTERNAL, ggml-omega `a30322c9 `, R37); one
+ 16-token greedy CPU vs `OmegaGB10` comparison (EXTERNAL, R39). GGML issue #10
+ in v1 is DRA-100 decision 4 (open).
+- DeepInfer FlopsEstimator pair helpers replaced by an OM-2 unit,
+ differential-tested (R23).
+- Modular MAX: GPU adapter v1, 49 checks (M4); separate-process MAX vs Omega
+ harness PASS on CPU; matmul outputs equal, GQA against the fp64 oracle (M6, M6b, M6c). MAX CPU route: DRA-102 (Done).
+
+### GPU boundary
+
+- `src/gpu_adapter.om` negotiates and admits artifacts and runs no kernel.
+ GB10 device rows: NOT_RUN at `d8174edd ` (M7); DRA-105 window evidence lands
+ with #78 (gate G2). Chip qualification: NOT_RUN (R27, A13).
+
+## Not in v1.0.0 (DRA-100 proposed list, decision 5 open)
+
+#6, #7 in-MAX native GPU execution; #3 AMD/Intel/Metal adapters; #29, #21
+proposed features; #42 CUDA Driver ABI export; #2 inference consolidation; #43
+retiring first-party host code.
+
+## Independent review
+
+Required before release (R8). Agent reviews do not count. Outside reviewer:
+DRA-100 decision 3 (Drake). Record: `evidence/release-v1/independent-review.md`
+(gate G3).
+
+## Acceptance at the tag
+
+From a fresh clone at the tag:
+`tools/bootstrap.sh && tools/build.sh && tools/test.sh` must end
+`ALL SUITES RC=0`, and `build/claimcheck tag` (seeded `tools/claimcheck.om`) must print
+`TAG-READY yes`. The log goes to `evidence/release-v1/fresh-clone-v1.0.0.log`
+in a follow-up commit on main (a commit cannot contain the log of a clone of
+itself). Pre-tag rehearsals: `fresh-clone-d8174edd -rehearsal.log` and the
+revision 2 rehearsal in this directory.
diff --git a/evidence/release-v1/claimcheck-negative-controls-after-review.log b/evidence/release-v1/claimcheck-negative-controls-after-review.log
new file mode 100644
index 0000000 ..7c85fc5
--- /dev/null
+++ b/evidence/release-v1/claimcheck-negative-controls-after-review.log
@@ -0,0 +1,59 @@
+# DRA-107 claims check, revision 2 after the d9583619 review (kanban t_5fd2df46 ), 2026-11-07T04:41:56Z, spark-b87b aarch64
+# tree: branch hive/dra-107-claims-ledger, parent 69bcbc00ff57c5a7c5d683a9cf374cac02280af3 , plus the revision 2 working-tree changes committed with this log
+# seed: build/bootstrap/omc sha256 191b776ef98821597c3e30655da6d680a9b66edbc9ceaca3c39c61ea6df098e9 (tools/bootstrap.sh)
+# cpu: flock -o pool-10-11.lock taskset -c 10,11 nice -n 10
+# Each control copies evidence/release-v1/claims.tsv, plants one change and runs
+# sh tools/claimcheck.sh MODE COPY. Expected: the named BAD line and rc=1, or rc=3 in tag mode.
+
+## neg-docline: R10 document cite README.md:17 -> README.md:18 (claim text not on that line)
+BAD R10 D mismatch
+CLAIMCHECK FAIL bad=1 rows=70 checked=119 not_run=6 unsupported=0 external=8 fixed=9 gates=4 gates_open=4
+TAG-READY no
+rc=1
+
+## neg-expect: R10 receipt text 'cases=20 failures=8 RC=1' -> 'cases=20 failures=7 RC=1'
+BAD R10 C mismatch
+CLAIMCHECK FAIL bad=1 rows=70 checked=119 not_run=6 unsupported=0 external=8 fixed=9 gates=4 gates_open=4
+TAG-READY no
+rc=1
+
+## neg-pastend: R10 receipt evidence/01-recovered-red.log:21 -> :22 (file has 21 lines)
+BAD R10 C missing
+CLAIMCHECK FAIL bad=1 rows=70 checked=119 not_run=6 unsupported=0 external=8 fixed=9 gates=4 gates_open=4
+TAG-READY no
+rc=1
+
+## neg-missing: R10 receipt -> evidence/does-not-exist.log:1
+BAD R10 C missing
+CLAIMCHECK FAIL bad=1 rows=70 checked=119 not_run=6 unsupported=0 external=8 fixed=9 gates=4 gates_open=4
+TAG-READY no
+rc=1
+
+## neg-nocite: R10 (SUPPORTED) receipt cite and text -> - -
+BAD R10 C nocite
+CLAIMCHECK FAIL bad=1 rows=70 checked=119 not_run=6 unsupported=0 external=8 fixed=9 gates=4 gates_open=4
+TAG-READY no
+rc=1
+
+## neg-status: R10 status SUPPORTED -> PROVEN
+BAD R10 D status
+BAD R10 C status
+CLAIMCHECK FAIL bad=2 rows=69 checked=118 not_run=6 unsupported=0 external=8 fixed=9 gates=4 gates_open=4
+TAG-READY no
+rc=1
+
+## neg-escape: R10 receipt -> ../../etc/passwd:1 (outside the repository)
+BAD R10 C missing
+CLAIMCHECK FAIL bad=1 rows=70 checked=119 not_run=6 unsupported=0 external=8 fixed=9 gates=4 gates_open=4
+TAG-READY no
+rc=1
+
+## neg-unsup-prep: M8 status EXTERNAL -> UNSUPPORTED, prep mode (counted, rc 0, TAG-READY no)
+CLAIMCHECK PASS rows=70 checked=120 not_run=6 unsupported=1 external=7 fixed=9 gates=4 gates_open=4
+TAG-READY no
+rc=0
+
+## neg-unsup-tag: M8 status EXTERNAL -> UNSUPPORTED, tag mode (rc 3)
+CLAIMCHECK PASS rows=70 checked=120 not_run=6 unsupported=1 external=7 fixed=9 gates=4 gates_open=4
+TAG-READY no
+rc=3
diff --git a/evidence/release-v1/claimcheck-negative-controls.log b/evidence/release-v1/claimcheck-negative-controls.log
new file mode 100644
index 0000000 ..1c62613
--- /dev/null
+++ b/evidence/release-v1/claimcheck-negative-controls.log
@@ -0,0 +1,59 @@
+# DRA-107 claims check, revision 2 (kanban t_5fd2df46 ), 2026-11-07T04:23:27Z, spark-b87b aarch64
+# tree: branch hive/dra-107-claims-ledger, parent 9505ed5d88650ccb4be6fce5cb5994c06894aea1 , plus the revision 2 working-tree changes committed with this log
+# seed: build/bootstrap/omc sha256 191b776ef98821597c3e30655da6d680a9b66edbc9ceaca3c39c61ea6df098e9 (tools/bootstrap.sh)
+# cpu: flock -o pool-10-11.lock taskset -c 10,11 nice -n 10
+# Each control copies evidence/release-v1/claims.tsv, plants one change and runs
+# sh tools/claimcheck.sh MODE COPY. Expected: the named BAD line and rc=1, or rc=3 in tag mode.
+
+## neg-docline: R10 document cite README.md:17 -> README.md:18 (claim text not on that line)
+BAD R10 D mismatch
+CLAIMCHECK FAIL bad=1 rows=69 checked=117 not_run=6 unsupported=0 external=8 fixed=9 gates=4 gates_open=4
+TAG-READY no
+rc=1
+
+## neg-expect: R10 receipt text 'cases=20 failures=8 RC=1' -> 'cases=20 failures=7 RC=1'
+BAD R10 C mismatch
+CLAIMCHECK FAIL bad=1 rows=69 checked=117 not_run=6 unsupported=0 external=8 fixed=9 gates=4 gates_open=4
+TAG-READY no
+rc=1
+
+## neg-pastend: R10 receipt evidence/01-recovered-red.log:21 -> :22 (file has 21 lines)
+BAD R10 C missing
+CLAIMCHECK FAIL bad=1 rows=69 checked=117 not_run=6 unsupported=0 external=8 fixed=9 gates=4 gates_open=4
+TAG-READY no
+rc=1
+
+## neg-missing: R10 receipt -> evidence/does-not-exist.log:1
+BAD R10 C missing
+CLAIMCHECK FAIL bad=1 rows=69 checked=117 not_run=6 unsupported=0 external=8 fixed=9 gates=4 gates_open=4
+TAG-READY no
+rc=1
+
+## neg-nocite: R10 (SUPPORTED) receipt cite and text -> - -
+BAD R10 C nocite
+CLAIMCHECK FAIL bad=1 rows=69 checked=117 not_run=6 unsupported=0 external=8 fixed=9 gates=4 gates_open=4
+TAG-READY no
+rc=1
+
+## neg-status: R10 status SUPPORTED -> PROVEN
+BAD R10 D status
+BAD R10 C status
+CLAIMCHECK FAIL bad=2 rows=68 checked=116 not_run=6 unsupported=0 external=8 fixed=9 gates=4 gates_open=4
+TAG-READY no
+rc=1
+
+## neg-escape: R10 receipt -> ../../etc/passwd:1 (outside the repository)
+BAD R10 C missing
+CLAIMCHECK FAIL bad=1 rows=69 checked=117 not_run=6 unsupported=0 external=8 fixed=9 gates=4 gates_open=4
+TAG-READY no
+rc=1
+
+## neg-unsup-prep: M8 status EXTERNAL -> UNSUPPORTED, prep mode (counted, rc 0, TAG-READY no)
+CLAIMCHECK PASS rows=69 checked=118 not_run=6 unsupported=1 external=7 fixed=9 gates=4 gates_open=4
+TAG-READY no
+rc=0
+
+## neg-unsup-tag: M8 status EXTERNAL -> UNSUPPORTED, tag mode (rc 3)
+CLAIMCHECK PASS rows=69 checked=118 not_run=6 unsupported=1 external=7 fixed=9 gates=4 gates_open=4
+TAG-READY no
+rc=3
diff --git a/evidence/release-v1/claimcheck-prep-after-review.log b/evidence/release-v1/claimcheck-prep-after-review.log
new file mode 100644
index 0000000 ..5eb8e80
--- /dev/null
+++ b/evidence/release-v1/claimcheck-prep-after-review.log
@@ -0,0 +1,12 @@
+# DRA-107 claims check, revision 2 after the d9583619 review (kanban t_5fd2df46 ), 2026-11-07T04:41:56Z, spark-b87b aarch64
+# tree: branch hive/dra-107-claims-ledger, parent 69bcbc00ff57c5a7c5d683a9cf374cac02280af3 , plus the revision 2 working-tree changes committed with this log
+# seed: build/bootstrap/omc sha256 191b776ef98821597c3e30655da6d680a9b66edbc9ceaca3c39c61ea6df098e9 (tools/bootstrap.sh)
+# cpu: flock -o pool-10-11.lock taskset -c 10,11 nice -n 10
+# command: sh tools/claimcheck.sh prep
+GATE-OPEN G1 evidence/native-x86-physical-be8c5130 .json
+GATE-OPEN G2 evidence/device-window/README.md
+GATE-OPEN G3 evidence/release-v1/independent-review.md
+GATE-OPEN G4 evidence/attach-torch-cpu-d8174ed /README.md
+CLAIMCHECK PASS rows=70 checked=120 not_run=6 unsupported=0 external=8 fixed=9 gates=4 gates_open=4
+TAG-READY no
+rc=0
diff --git a/evidence/release-v1/claimcheck-prep.log b/evidence/release-v1/claimcheck-prep.log
new file mode 100644
index 0000000 ..4d94ed1
--- /dev/null
+++ b/evidence/release-v1/claimcheck-prep.log
@@ -0,0 +1,12 @@
+# DRA-107 claims check, revision 2 (kanban t_5fd2df46 ), 2026-11-07T04:23:27Z, spark-b87b aarch64
+# tree: branch hive/dra-107-claims-ledger, parent 9505ed5d88650ccb4be6fce5cb5994c06894aea1 , plus the revision 2 working-tree changes committed with this log
+# seed: build/bootstrap/omc sha256 191b776ef98821597c3e30655da6d680a9b66edbc9ceaca3c39c61ea6df098e9 (tools/bootstrap.sh)
+# cpu: flock -o pool-10-11.lock taskset -c 10,11 nice -n 10
+# command: sh tools/claimcheck.sh prep
+GATE-OPEN G1 evidence/native-x86-physical-be8c5130 .json
+GATE-OPEN G2 evidence/device-window/README.md
+GATE-OPEN G3 evidence/release-v1/independent-review.md
+GATE-OPEN G4 evidence/attach-torch-cpu-d8174ed /README.md
+CLAIMCHECK PASS rows=69 checked=118 not_run=6 unsupported=0 external=8 fixed=9 gates=4 gates_open=4
+TAG-READY no
+rc=0
diff --git a/evidence/release-v1/claimcheck-tag-after-review.log b/evidence/release-v1/claimcheck-tag-after-review.log
new file mode 100644
index 0000000 ..a3962a9
--- /dev/null
+++ b/evidence/release-v1/claimcheck-tag-after-review.log
@@ -0,0 +1,12 @@
+# DRA-107 claims check, revision 2 after the d9583619 review (kanban t_5fd2df46 ), 2026-11-07T04:41:56Z, spark-b87b aarch64
+# tree: branch hive/dra-107-claims-ledger, parent 69bcbc00ff57c5a7c5d683a9cf374cac02280af3 , plus the revision 2 working-tree changes committed with this log
+# seed: build/bootstrap/omc sha256 191b776ef98821597c3e30655da6d680a9b66edbc9ceaca3c39c61ea6df098e9 (tools/bootstrap.sh)
+# cpu: flock -o pool-10-11.lock taskset -c 10,11 nice -n 10
+# command: sh tools/claimcheck.sh tag (expected: refused, exit 3, gates G1-G4 open)
+GATE-OPEN G1 evidence/native-x86-physical-be8c5130 .json
+GATE-OPEN G2 evidence/device-window/README.md
+GATE-OPEN G3 evidence/release-v1/independent-review.md
+GATE-OPEN G4 evidence/attach-torch-cpu-d8174ed /README.md
+CLAIMCHECK PASS rows=70 checked=120 not_run=6 unsupported=0 external=8 fixed=9 gates=4 gates_open=4
+TAG-READY no
+rc=3
diff --git a/evidence/release-v1/claimcheck-tag.log b/evidence/release-v1/claimcheck-tag.log
new file mode 100644
index 0000000 ..1189ce7
--- /dev/null
+++ b/evidence/release-v1/claimcheck-tag.log
@@ -0,0 +1,12 @@
+# DRA-107 claims check, revision 2 (kanban t_5fd2df46 ), 2026-11-07T04:23:27Z, spark-b87b aarch64
+# tree: branch hive/dra-107-claims-ledger, parent 9505ed5d88650ccb4be6fce5cb5994c06894aea1 , plus the revision 2 working-tree changes committed with this log
+# seed: build/bootstrap/omc sha256 191b776ef98821597c3e30655da6d680a9b66edbc9ceaca3c39c61ea6df098e9 (tools/bootstrap.sh)
+# cpu: flock -o pool-10-11.lock taskset -c 10,11 nice -n 10
+# command: sh tools/claimcheck.sh tag (expected: refused, exit 3, gates G1-G4 open)
+GATE-OPEN G1 evidence/native-x86-physical-be8c5130 .json
+GATE-OPEN G2 evidence/device-window/README.md
+GATE-OPEN G3 evidence/release-v1/independent-review.md
+GATE-OPEN G4 evidence/attach-torch-cpu-d8174ed /README.md
+CLAIMCHECK PASS rows=69 checked=118 not_run=6 unsupported=0 external=8 fixed=9 gates=4 gates_open=4
+TAG-READY no
+rc=3
diff --git a/evidence/release-v1/claims-ledger-d8174edd .md b/evidence/release-v1/claims-ledger-d8174edd .md
new file mode 100644
index 0000000 ..4adb824
--- /dev/null
+++ b/evidence/release-v1/claims-ledger-d8174edd .md
@@ -0,0 +1,180 @@
+# Claims ledger: README.md, AGENTS.md, MISSION-REPORT.md at `d8174edd `
+
+Issue: DRA-107 (W6 claims pass). Base: omega-bridge main
+`d8174eddf953ad53e16f19eb5841459df99e24bb ` (#74). Document lines below are the
+lines on branch `hive/dra-107-claims-ledger` (base plus this pass's text fixes).
+
+Revision 2 (2026-11-07, kanban card t_5fd2df46 ). Revision 1 checked only that
+each cited path exists; most of its citations were line 1 of a source file.
+This revision cites, for each claim, the line of a committed receipt (raw run
+output) that supports it, or a source line where the claim is about what the
+code does, and the machine-readable copy is
+[`claims.tsv`](claims.tsv). `build/claimcheck prep` re-reads every cited
+document and receipt line and requires the row's text in it byte for byte; the
+check is one program, `tools/claimcheck.om` (seeded Omega, built with the
+seeded omc `2c824805 …`). Its controls are `tests/claimcheck_test.om`, run by
+Portable CI. Every row needs a document citation, SUPPORTED rows a receipt;
+cited files must be regular files inside the repository; tag mode needs the
+gate receipts G1-G4 below.
+
+Status values: `SUPPORTED` (receipt line in this repository, checked), `FIXED`
+(text was wrong against the repository or GitHub state; corrected on this
+branch), `EXTERNAL` (evidence in another repository or on GitHub, recorded in
+the notes), `NOT_RUN` (needs hardware or review; kept, not deleted),
+`UNSUPPORTED` (no evidence; none remain).
+
+The v1.0.0 tag and release notes stay gated: W3 DRA-104, W4 DRA-105 and W5
+DRA-106 are not Done. Gates G1-G4 below are what `build/claimcheck tag`
+requires.
+
+## Findings of revision 2
+
+1. README "Neither attachment has run a model on the GB10 yet" was false for
+ ggml-omega, whose `evidence/gb10-model-20261029 .json` (ggml-omega
+ `a30322c9 `) records a 16-step greedy CPU vs `OmegaGB10` comparison, verdict
+ `EXERCISED_GREEDY_PASS`, on the outside model then resident. Fixed (R39).
+2. The ggml test-backend-ops counts had no receipt link. The README now links
+ the pinned receipt, ggml-omega `a30322c9 `
+ `evidence/gb10-20261027T0726Z/bo-gb10.tsv` (R37).
+3. MISSION-REPORT "MAX/Omega numeric agreement" mixed two comparisons. Matmul:
+ MAX and Omega host-wiring outputs have the same SHA-256 (`artifacts.sha256`
+ lines 7-8). GQA: MAX against the fp64 oracle only, worst error 2.7e-7, a
+ value stated only in the hand-written `evidence/MAX-INTEROP/5/RESULT.md`;
+ no Omega GQA output was produced on CPU. The report now separates them
+ (M6b, M6c; corrected after the reviewer's finding 5 on `d9583619 `).
+4. MISSION-REPORT "No PR exists" (revision 1: UNSUPPORTED) was checked on
+ 2026-11-07 with GitHub PR search in modular/modular by authors
+ drakestapleton and aien-spark: none. The report now says no PR from this
+ project was found by that search; EXTERNAL (M8). Revision 1 tied this row to
+ "Drake decision 2"; decision 2 in DRA-100 is about GB10 rows, so that link
+ was wrong.
+5. The revision 1 status note in MISSION-REPORT asserted "Device rows remain
+ NOT_RUN"; #78 (DRA-105) changes section 3, so the note now points at
+ section 3 (M1).
+6. `tools/test.sh` (the `ALL SUITES RC=0` acceptance command) runs only the
+ baseline converter suites. The native-call, x86, seeded, freestanding,
+ PyTorch and MAX claims are backed by their own committed receipts, cited
+ below, not by that command. The release notes say which is which.
+7. AGENTS.md does not yet list `tools/claimcheck.sh`/`claimcheck.om`; the
+ instruction file is write-protected for this agent. Noted for the desk.
+8. The reviewer profile's review of `d9583619 ` (MERGE_AFTER_FIX, 5 findings)
+ found the checker could pass things it should refuse: an absolute
+ `OMEGA_SEED` broke the test (hosted Portable run 42338394879 ), an
+ unterminated last row was skipped, empty fields and rows without a
+ document citation passed, gate paths were not contained in the repository,
+ and M6b overstated the GQA comparison. All are fixed; `tests/claimcheck.sh`
+ has a control for each (40 cases).
+9. The re-review of `2a90893c ` (MERGE_AFTER_FIX, 1 finding) showed one gate row
+ with the id `G1 G2 G3 G4` satisfied all four required gates. Ids must now be
+ one token, and the judge also requires each document record to be followed
+ by the receipt record of the same id (non-blocking finding). 46 controls.
+
+## Rows
+
+| # | Document line | Receipt line (checked by `tools/claimcheck.om`) | Status | Notes |
+|---|---|---|---|---|
+| R1 | `README.md:3` | `evidence/release-v1/fresh-clone-d8174edd -rehearsal.log:136` contains `cases=113 failures=0 RC=0` | SUPPORTED | Converter roles; fresh-clone differential suite at d8174edd . |
+| R2 | `README.md:3` | `LICENSE:204` contains `---- LLVM Exceptions to the Apache 2.0 License ----` | SUPPORTED | License text; NOTICE carries the copyright line. |
+| R3 | `README.md:5` | — | EXTERNAL | aien-architecture-mv#342 MERGED (gh, 2026-11-06). |
+| R4 | `README.md:7` | — | FIXED | gh 2026-11-07: omega-bridge #23 MERGED 4f231fa9 , #30 MERGED 2eb3ffc0 ; ggml-omega #1 MERGED fbaf2ec1 , #2 MERGED 0ab63fe8 . |
+| R5 | `README.md:8` | — | EXTERNAL | omega-mv#870, #871 OPEN (gh). |
+| R6 | `README.md:9` | `conformance/build.sh:9` contains `omega_runner.c "$cudapp/build/libomega_gpu.a"` | SUPPORTED | |
+| R6b | `README.md:9` | `tools/run-device-window.sh:30` contains `spark-window run "$cudapp/build/cubin_probe"` | SUPPORTED | |
+| R7 | `README.md:11` | `tools/bootstrap.sh:5` contains `bootstrap requires Linux AArch64` | SUPPORTED | |
+| R8 | `README.md:11` | — | NOT_RUN | |
+| R9 | `README.md:15` | `tools/bridge:10` contains `191b776ef98821597c3e30655da6d680a9b66edbc9ceaca3c39c61ea6df098e9 ` | SUPPORTED | |
+| R10 | `README.md:17` | `evidence/01-recovered-red.log:21` contains `cases=20 failures=8 RC=1` | SUPPORTED | |
+| R11 | `README.md:17` | `docs/WALKTHROUGH.md:157` contains ``rc=24`` | SUPPORTED | |
+| R12 | `README.md:27` | `tools/bootstrap.sh:6` contains `pin=29b12760f4c962606411d6bf25032aedef063301 ` | SUPPORTED | |
+| R13 | `README.md:29` | `.github/workflows/portable.yml:2` contains `name: Portable bridge behavior` | SUPPORTED | Workflow definition. Hosted runs at d8174edd : CI 42233587949 success, Portable bridge behavior 42233588122 success (gh run list, 2026-11-07); run logs are on GitHub, not committed. |
+| R14 | `README.md:35` | — | EXTERNAL | CUDApp workflow; not in this repository. |
+| R15 | `README.md:43` | `evidence/freest-fixed-view-regression/freest-host.log:4` contains `PASS literal-count shifts: seed/native-C parity and wrong-direction negative control` | SUPPORTED | Receipt from the fixed-view regression run (host); the same line is in evidence/audit/2026-11-05-2954d46 /logs/freest+seeded.log. |
+| R16 | `README.md:49` | `evidence/release-v1/fresh-clone-d8174edd -rehearsal.log:25` contains `PASS fib` | SUPPORTED | |
+| R17 | `README.md:61` | `evidence/release-v1/fresh-clone-d8174edd -rehearsal.log:190` contains `attachment cases=2 failures=0 RC=0` | SUPPORTED | |
+| R18 | `README.md:64` | `evidence/typed-views-seeded-device-free.log:1` contains `SEEDED CONVERTER differential C/Python/native/x86 and pin/arithmetic/ABI controls PASS` | SUPPORTED | |
+| R19 | `README.md:64` | `evidence/typed-views-native-float-e5.log:10` contains `NATIVE-FLOAT PASS` | SUPPORTED | |
+| R20 | `README.md:66` | `evidence/omega-torch-m1/tests-m1.log:25` contains `Ran 22 tests` | SUPPORTED | 22 tests OK on CPU (tests-m1.log:27 OK). |
+| R20b | `README.md:66` | `evidence/omega-torch-m1/timings-low.json:58` contains `"omega_ns": [` | FIXED | WolframLanguageEvaluator on the 30 eager_ns/omega_ns pairs of timings-low.json: Median[o/e] = 65.8629606673294 (min 39.88, max 94.60). Re-checked in this pass. |
+| R21 | `README.md:68` | `docs/DEEPINFER.md:1` contains `# DeepInfer as a bridge target` | SUPPORTED | Proposal document; the claim is that it is proposed, nothing more. |
+| R22 | `README.md:76` | `evidence/native-call-v1/run.log:14` contains `NATIVE-CALL PASS (not run: none)` | SUPPORTED | |
+| R23 | `README.md:78` | `evidence/deepinfer-flops-pairs/run.log:6` contains `PASS C++ grid (upstream = Omega = enumeration)` | SUPPORTED | |
+| R24 | `README.md:80` | `evidence/typed-views-native-kinds.log:2` contains `PASS fsum f32 lanes == C oracle` | SUPPORTED | |
+| R25 | `README.md:82` | `evidence/native-v2-compiler-profile/split-v2.log:84` contains `host=fclose,fopen,fstat,stat,getuid,geteuid,getgid,getegid,lstat` | SUPPORTED | Receipt names the nine host words. The device and clock word counts are the docs/NATIVE-ABI.md contract; the device suite verdict is R25c. |
+| R25b | `README.md:82` | `evidence/native-x86-aien-abi1/v2-final.log:132` contains `NATIVE-CONTEXT PASS capacity4098` | SUPPORTED | |
+| R25c | `README.md:82` | `evidence/native-x86-aien-abi1/v2-final.log:165` contains `NATIVE-DEVICE-QUAL PASS (15 word controls, 2 ABI controls, 5 ioctl controls` | SUPPORTED | AArch64 v2 device qualification line from the aien-abi1 run (chip NOT_RUN). |
+| R26 | `README.md:82` | — | FIXED | git merge-base --is-ancestor 5b1fd722 d8174edd : true. |
+| R27 | `README.md:82` | — | NOT_RUN | |
+| R28 | `README.md:84` | `evidence/native-x86-aien-abi1/v2-final.log:165` contains `5 ioctl controls` | SUPPORTED | |
+| R29 | `README.md:87` | — | FIXED | git merge-base --is-ancestor 249df29 d8174edd : true. |
+| R30 | `README.md:90` | `tools/native:52` contains `X86_PIN=be8c51301307555254fc59e351d281aae1aa096d91521777e33a41c8b446448a ` | SUPPORTED | |
+| R31 | `README.md:104` | `evidence/native-x86-hosted/qualification.log:483` contains `PASS freestanding x86 epoch/MAX trap, nested and signed trap, four threads EMULATED` | SUPPORTED | x86 freestanding objects and callers, EMULATED (qemu); hosted x86 qualification run of #68. |
+| R32 | `README.md:111` | `docs/NATIVE-ABI.md:110` contains ``/proc/self/maps` paths under QEMU 8.2.2` | SUPPORTED | Document-to-document: the QEMU 8.2.2 observation is recorded in docs/NATIVE-ABI.md; raw tool versions in evidence/portable-freest-host.log:65. |
+| R33 | `README.md:113` | `evidence/native-x86-be8c5130 -controls.log:316` contains `NATIVE-X86 EMULATED PASS (six languages built and run; native x86 NOT_RUN)` | SUPPORTED | |
+| R33b | `README.md:112` | `evidence/native-x86-be8c5130 -controls.log:262` contains `PASS mismatched x86 compiler refuses before creating outputs` | SUPPORTED | |
+| R34 | `README.md:115` | — | NOT_RUN | |
+| R35 | `README.md:120` | `src/kernel_leaf.om:1` contains `not a loader or code validator` | SUPPORTED | Source claim (what the file emits and what it is not); no run is claimed. |
+| R36 | `README.md:137` | — | FIXED | gh: ggml-omega #1, #2 MERGED. |
+| R37 | `README.md:137` | — | EXTERNAL | Receipt pinned in README: ggml-omega a30322c9 evidence/gb10-20261027T0726Z/bo-gb10.tsv lines 2, 3, 6 (MUL_MAT 871/0, RMS_NORM 7/0, SWIGLU 12/0, verdict PASS). Re-read in this pass. |
+| R38 | `README.md:138` | `evidence/attach-gb10-20261027T0726Z/torch.log:15` contains `torch rc=0` | SUPPORTED | torch.log lines 1-13 are the 12 cases plus the mutant; line 14 PASS. |
+| R39 | `README.md:140` | — | FIXED | FIXED in this pass. Old text "Neither attachment has run a model on the GB10 yet" was false for ggml-omega: its evidence/gb10-model-20261029 .json (a30322c9 ) records verdict EXERCISED_GREEDY_PASS, 16 steps, top1_agree 16, CPU vs OmegaGB10, on the outside model then resident. New text states that and that it is not a qualification. |
+| R40 | `README.md:146` | — | EXTERNAL | External DOI. |
+| A1 | `AGENTS.md:3` | `evidence/native-x86-be8c5130 .json:5` contains `"native_x86": "NOT_RUN"` | SUPPORTED | The emulated receipt records native_x86 NOT_RUN. |
+| A2 | `AGENTS.md:13` | `tools/bridge-freest:1` contains `#!/` | FIXED | tools/bridge-freest exists; tools/bridge-seeded is R18. |
+| A4 | `AGENTS.md:30` | `evidence/release-v1/fresh-clone-d8174edd -rehearsal.log:13` contains `bootstrap fixpoint RC=0` | SUPPORTED | |
+| A5 | `AGENTS.md:36` | `tools/native:51` contains `PIN=734f0a39319fbfa930bcc62cb30dbf06d47d78e126372b74f5baf478e6126b61 ` | SUPPORTED | |
+| A6 | `AGENTS.md:38` | `evidence/native-v2-compiler-profile/README.md:22` contains `c000ec029fb85847084a82e345cb7b384cc678a735ed37e9fcbc0f557534b911 ` | SUPPORTED | |
+| A6b | `AGENTS.md:38` | `evidence/native-v2-compiler-profile/README.md:21` contains `078200466af2dc0452da7793b186d91bc9539f0cf5fafa15bcdb2a48e3bedef7 ` | SUPPORTED | |
+| A7 | `AGENTS.md:39` | `docs/NATIVE-ABI.md:876` contains `b8f8f1371bc0303f8da02db8b754e085d5dd852620c8d8d676c5769c233d9195 ` | SUPPORTED | |
+| A8 | `AGENTS.md:40` | `evidence/native-x86-be8c5130 .json:11` contains `"x86_omc_sha256": "be8c51301307555254fc59e351d281aae1aa096d91521777e33a41c8b446448a "` | SUPPORTED | |
+| A10 | `AGENTS.md:44` | `tools/bridge-seeded:21` contains `2c82480596bbdc50cda9626866209ef662d5834f278f839ff4ce0250c495029f ` | SUPPORTED | |
+| A11 | `AGENTS.md:79` | `evidence/release-v1/fresh-clone-d8174edd -rehearsal.log:200` contains `ALL SUITES RC=0` | SUPPORTED | |
+| A12 | `AGENTS.md:79` | `evidence/native-call-v1/run.log:3` contains `PASS c-bti caller` | SUPPORTED | |
+| A13 | `AGENTS.md:81` | — | NOT_RUN | Device commands need a GB10 window; the window evidence is DRA-105 (#78), gate G2. |
+| A14 | `AGENTS.md:105` | `evidence/native-abi-v2/v2-run.log:3` contains `ABI v1 bindings byte-identical` | FIXED | docs/NATIVE-ABI.md documents v1 and v2; v2 run receipt. |
+| M1 | `MISSION-REPORT.md:7` | — | FIXED | Dated-snapshot note; changed in this pass to point at section 3 for device rows instead of asserting NOT_RUN (section 3 changes when #78 lands). |
+| M2 | `MISSION-REPORT.md:24` | `tools/build.sh:5` contains `want=191b776ef98821597c3e30655da6d680a9b66edbc9ceaca3c39c61ea6df098e9 ` | SUPPORTED | |
+| M3 | `MISSION-REPORT.md:31` | — | EXTERNAL | omega/ and cudapp/ evidence lives in omega-mv and CUDApp. |
+| M4 | `MISSION-REPORT.md:37` | `evidence/MAX-INTEROP/3/tests.log:1` contains `SUMMARY {"checks": 49, "fail": 0}` | SUPPORTED | |
+| M5 | `MISSION-REPORT.md:39` | `docs/max/MAX-26.7-FEASIBILITY.md:9` contains `Pinned ref: tag `max/v26.7.0`` | SUPPORTED | MAX 26.7 analysis copied into docs/max/ (pin max/v26.7.0). |
+| M6 | `MISSION-REPORT.md:40` | `evidence/MAX-INTEROP/5/harness.log:10` contains `CONFORMANCE HARNESS PASS` | SUPPORTED | harness.log line 10: CONFORMANCE HARNESS PASS (CPU only; DEVICE RUNS NOT_RUN at line 9). |
+| M6b | `MISSION-REPORT.md:41` | `evidence/MAX-INTEROP/5/artifacts.sha256:8` contains `60a7f7d46597cfff1cd126df12aa8583f191fc6c64a2a608341608f2de8e70a4 conformance/build/omega-matmul-v1.bin` | SUPPORTED | FIXED wording after review. Matmul equality is the matching hashes of the MAX and Omega host-wiring outputs (artifacts.sha256 lines 7-8, 60a7f7d4 ...); conformance/verify.py checks each output against its own checksum and the oracle, not one against the other. |
+| M6c | `MISSION-REPORT.md:41` | `evidence/MAX-INTEROP/5/RESULT.md:16` contains `MAX causal GQA matches the fp64 oracle; worst absolute error `2.7e-7`` | SUPPORTED | GQA is MAX against the fp64 oracle only (RESULT.md:16, hand-written summary; harness.log has the checks and PASS verdict, not the value). No Omega GQA output was produced on CPU (harness.log line 8 is Omega matmul only). |
+| M7 | `MISSION-REPORT.md:59` | — | NOT_RUN | At d8174edd every GB10 row is NOT_RUN. #78 (DRA-105) adds window evidence (window 3: 10/10 rows rc 0); this row changes when #78 merges. |
+| M8 | `MISSION-REPORT.md:75` | — | EXTERNAL | Was UNSUPPORTED. Checked 2026-11-07: gh search prs --repo modular/modular --author drakestapleton and --author aien-spark return none. The report now says no PR from this project was found by that search (narrowed after review). |
+| M9 | `MISSION-REPORT.md:80` | — | EXTERNAL | Correction carried from #28; the thread itself is private. |
+| M10 | `MISSION-REPORT.md:101` | — | NOT_RUN | Residual-risk statements, not runs. |
+
+## Pending on open pull requests (re-run this pass on the release-candidate head)
+
+| PR | Issue | Rows that change when it merges |
+|---|---|---|
+| #78 `07f276fc ` | DRA-105 | M7: MISSION-REPORT §3a records window 3 (`20261107T030848Z-b5d44f`) 10/10 rows rc 0; cite `evidence/device-window/L939-w3/` rows. A13 and R27 stay NOT_RUN for chip qualification. Gate G2 closes. |
+| #81 `d9791209 ` | DRA-103 | R20/R20b gain `evidence/attach-torch-cpu-d8174ed /` and `evidence/omega-torch-m1/tests-main-d8174ed .log`; gate G4 closes. |
+| #82 `bc7d3404 ` | DRA-106 | AUDIT_SCOPE.md only; R8 stays NOT_RUN until the outside review report is committed or linked (gate G3). |
+| #79 `6d5c0ddb ` (fix in kanban t_17fa5725 ) | DRA-104 | Checker only; R34 and A1 stay NOT_RUN/EMULATED until `evidence/native-x86-physical-be8c5130 .json` is committed (gate G1) and README/AGENTS.md flip "physical x86 NOT_RUN". |
+
+Every merge shifts document lines. After the last merge, update the line
+numbers and texts in `claims.tsv` and this table, then run
+`build/claimcheck tag` on the release-candidate head.
+
+## Release gates
+
+| Gate | Issue | Receipt that must exist at the tag |
+|---|---|---|
+| G1 | DRA-104 | `evidence/native-x86-physical-be8c5130 .json` (+ logs), accepted by `tests/native/x86/check_physical_receipt.py` (#79) |
+| G2 | DRA-105 | `evidence/device-window/README.md` and its `L939*` windows (#78) |
+| G3 | DRA-106 | `evidence/release-v1/independent-review.md`: the outside reviewer's report (committed or linked) and each finding's disposition (name proposed here) |
+| G4 | DRA-103 | `evidence/attach-torch-cpu-d8174ed /README.md` (#81) |
+
+## Revision 1 path check (kept for history)
+
+```sh
+grep '^| [RAM][0-9]' evidence/release-v1/claims-ledger-d8174edd .md \
+ | grep -o '`[a-zA-Z][^` ]*/[^` ]*`' \
+ | tr -d '`' | sed 's/:[0-9]*$//' | grep -v '^omega/\|^cudapp/' | sort -u \
+ | while read p; do git cat-file -e d8174edd :"${p%/}" 2>/dev/null || echo "MISSING $p"; done
+```
+
+Revision 1 result at `d8174edd `: no `MISSING` lines, with the planted-row
+negative control in `ledger-check-negative-control.log`. Superseded by
+`tools/claimcheck.om`, which also checks the line and its text.
diff --git a/evidence/release-v1/claims.tsv b/evidence/release-v1/claims.tsv
new file mode 100644
index 0000000 ..bbf934b
--- /dev/null
+++ b/evidence/release-v1/claims.tsv
@@ -0,0 +1,77 @@
+# DRA-107 claims table for tools/claimcheck.om (seeded Omega). One row per claim in README.md, AGENTS.md, MISSION-REPORT.md.
+# Columns (tab-separated, no empty field; - means none): id, status, document path:line, text that line must contain, receipt path:line, text that line must contain.
+# Status: SUPPORTED (receipt in this repository, required), FIXED (text corrected in this pass), EXTERNAL (evidence in another repository or on GitHub; see claims-ledger), NOT_RUN, UNSUPPORTED. GATE rows name a receipt that must exist before the v1.0.0 tag.
+R1 SUPPORTED README.md:3 `src/toc.om` is an Omega program that converts evidence/release-v1/fresh-clone-d8174edd -rehearsal.log:136 cases=113 failures=0 RC=0
+R2 SUPPORTED README.md:3 Apache-2.0 WITH LLVM-exception. LICENSE:204 ---- LLVM Exceptions to the Apache 2.0 License ----
+R3 EXTERNAL README.md:5 Ownership rule ([ARCH-0042] - -
+R4 FIXED README.md:7 PyTorch via #23/#30 and GGML via ggml-omega#1/#2, all merged - -
+R5 EXTERNAL README.md:8 new compiler work goes to Omega ([omega-mv#870] - -
+R6 SUPPORTED README.md:9 `conformance/build.sh` links `conformance/omega_runner.c` against its `libomega_gpu.a` conformance/build.sh:9 omega_runner.c "$cudapp/build/libomega_gpu.a"
+R6b SUPPORTED README.md:9 `tools/run-device-window.sh` calls its `cubin_probe` tools/run-device-window.sh:30 spark-window run "$cudapp/build/cubin_probe"
+R7 SUPPORTED README.md:11 The source-only bootstrap of the pinned Omega compiler currently requires Linux AArch64. tools/bootstrap.sh:5 bootstrap requires Linux AArch64
+R8 NOT_RUN README.md:11 independent review remains required before release - -
+R9 SUPPORTED README.md:15 the seed compiler against pin `191b776e …` tools/bridge:10 191b776ef98821597c3e30655da6d680a9b66edbc9ceaca3c39c61ea6df098e9
+R10 SUPPORTED README.md:17 its emitter failed 8 of 20 inherited cases evidence/01-recovered-red.log:21 cases=20 failures=8 RC=1
+R11 SUPPORTED README.md:17 a refusal case (exit 24) and a tampered-pin control (exit 65) docs/WALKTHROUGH.md:157 `rc=24`
+R12 SUPPORTED README.md:27 The bootstrap fetches the exact Omega source commit recorded in docs/PROVENANCE.md. tools/bootstrap.sh:6 pin=29b12760f4c962606411d6bf25032aedef063301
+R13 SUPPORTED README.md:29 The `Portable bridge behavior` workflow runs the existing baseline suite, .github/workflows/portable.yml:2 name: Portable bridge behavior
+R14 EXTERNAL README.md:35 `Ampere native x86 host` workflow - -
+R15 SUPPORTED README.md:43 `tests/freest.py` compares accepted shifts against the evidence/freest-fixed-view-regression/freest-host.log:4 PASS literal-count shifts: seed/native-C parity and wrong-direction negative control
+R16 SUPPORTED README.md:49 tools/bridge c tests/fixtures/fib.om > build/fib.c evidence/release-v1/fresh-clone-d8174edd -rehearsal.log:25 PASS fib
+R17 SUPPORTED README.md:61 quiet-build python3 tests/attachments.py evidence/release-v1/fresh-clone-d8174edd -rehearsal.log:190 attachment cases=2 failures=0 RC=0
+R18 SUPPORTED README.md:64 The additive seeded C frontend supports f32/f64 scalars evidence/typed-views-seeded-device-free.log:1 SEEDED CONVERTER differential C/Python/native/x86 and pin/arithmetic/ABI controls PASS
+R19 SUPPORTED README.md:64 The native `tools/native --float` profile also exposes typed scalar floats in C, Python, Rust, Zig and Go evidence/typed-views-native-float-e5.log:10 NATIVE-FLOAT PASS
+R20 SUPPORTED README.md:66 PyTorch: `torch.compile(model, backend="omega")` runs a small set of float32 core-ATen ops evidence/omega-torch-m1/tests-m1.log:25 Ran 22 tests
+R20b FIXED README.md:66 It is about 66x slower than eager on the same core evidence/omega-torch-m1/timings-low.json:58 "omega_ns": [
+R21 SUPPORTED README.md:68 DeepInfer (deepseek-ai/DeepInfer) is a proposed translation and attachment target docs/DEEPINFER.md:1 # DeepInfer as a bridge target
+R22 SUPPORTED README.md:76 One generator, [src/native.om](src/native.om), writes all six. evidence/native-call-v1/run.log:14 NATIVE-CALL PASS (not run: none)
+R23 SUPPORTED README.md:78 A worked integration: [examples/deepinfer](examples/deepinfer/README.md) evidence/deepinfer-flops-pairs/run.log:6 PASS C++ grid (upstream = Omega = enumeration)
+R24 SUPPORTED README.md:80 `f32` and `ushort` array kinds (4-byte and 2-byte elements) are qualified by evidence/typed-views-native-kinds.log:2 PASS fsum f32 lanes == C oracle
+R25 SUPPORTED README.md:82 `tools/native --host` admits nine OM-2 file/identity words evidence/native-v2-compiler-profile/split-v2.log:84 host=fclose,fopen,fstat,stat,getuid,geteuid,getgid,getegid,lstat
+R25b SUPPORTED README.md:82 add C exports selecting explicit contexts with capacity1..4098 evidence/native-x86-aien-abi1/v2-final.log:132 NATIVE-CONTEXT PASS capacity4098
+R25c SUPPORTED README.md:82 `tests/native/v2/dev/run.py` exercises libc ioctl comparisons evidence/native-x86-aien-abi1/v2-final.log:165 NATIVE-DEVICE-QUAL PASS (15 word controls, 2 ABI controls, 5 ioctl controls
+R26 FIXED README.md:82 This draft contract is merged on main (commit `5b1fd722 ` via merge `6afaec6 `) - -
+R27 NOT_RUN README.md:82 Emulation is not native x86 qualification. GPU/chip qualification is NOT_RUN. - -
+R28 SUPPORTED README.md:84 The staged AArch64 profile also admits five exact aien-gpu ABI1 ioctl requests, evidence/native-x86-aien-abi1/v2-final.log:165 5 ioctl controls
+R29 FIXED README.md:87 This trust-surface draft is merged on main (commit `249df29 ` via merge `6afaec6 `). - -
+R30 SUPPORTED README.md:90 The native target defaults to `aarch64linux`. Hosted x86-64 SysV Linux bindings tools/native:52 X86_PIN=be8c51301307555254fc59e351d281aae1aa096d91521777e33a41c8b446448a
+R31 SUPPORTED README.md:104 `--freestanding` also accepts `--target x86linux` (omega-mv#940). evidence/native-x86-hosted/qualification.log:483 PASS freestanding x86 epoch/MAX trap, nested and signed trap, four threads EMULATED
+R32 SUPPORTED README.md:111 QEMU 8.2.2 has observed signal and `/proc/self/maps` limitations for these docs/NATIVE-ABI.md:110 `/proc/self/maps` paths under QEMU 8.2.2
+R33 SUPPORTED README.md:113 failed/missing-toolchain controls passed EMULATED; see evidence/native-x86-be8c5130 -controls.log:316 NATIVE-X86 EMULATED PASS (six languages built and run; native x86 NOT_RUN)
+R33b SUPPORTED README.md:112 At the current x86 compiler pin, the full suite plus mismatched-pin and evidence/native-x86-be8c5130 -controls.log:262 PASS mismatched x86 compiler refuses before creating outputs
+R34 NOT_RUN README.md:115 Physical x86 - -
+R35 SUPPORTED README.md:120 [`src/kernel_leaf.om`](src/kernel_leaf.om) emits a fixed-symbol AArch64 assembly src/kernel_leaf.om:1 not a loader or code validator
+R36 FIXED README.md:137 host device (ggml-omega#1, merged): 16 ops on Omega CPU code - -
+R37 EXTERNAL README.md:137 MUL_MAT 871 / RMS_NORM 7 / SWIGLU 12 cases OK, 0 FAIL - -
+R38 SUPPORTED README.md:138 receipt `evidence/attach-gb10-20261027T0726Z/`, EXERCISED on a single GB10 evidence/attach-gb10-20261027T0726Z/torch.log:15 torch rc=0
+R39 FIXED README.md:140 `attach/torch` has not run a model on the GB10. - -
+R40 EXTERNAL README.md:146 https://doi.org/10.5281/zenodo.23682548 - -
+A1 SUPPORTED AGENTS.md:3 exercised under QEMU 10.0.14 (physical x86 NOT_RUN) evidence/native-x86-be8c5130 .json:5 "native_x86": "NOT_RUN"
+A2 FIXED AGENTS.md:13 `bridge`, `bridge-seeded`, `bridge-freest`, `native` tools/bridge-freest:1 #!/
+A4 SUPPORTED AGENTS.md:30 It ends with `bootstrap fixpoint RC=0` and leaves the seed at `build/bootstrap/omc` evidence/release-v1/fresh-clone-d8174edd -rehearsal.log:13 bootstrap fixpoint RC=0
+A5 SUPPORTED AGENTS.md:36 sha256 `734f0a39319fbfa930bcc62cb30dbf06d47d78e126372b74f5baf478e6126b61 ` (omega-mv PR #696) tools/native:51 PIN=734f0a39319fbfa930bcc62cb30dbf06d47d78e126372b74f5baf478e6126b61
+A6 SUPPORTED AGENTS.md:38 sha256 `c000ec029fb85847084a82e345cb7b384cc678a735ed37e9fcbc0f557534b911 ` evidence/native-v2-compiler-profile/README.md:22 c000ec029fb85847084a82e345cb7b384cc678a735ed37e9fcbc0f557534b911
+A6b SUPPORTED AGENTS.md:38 sha256 `078200466af2dc0452da7793b186d91bc9539f0cf5fafa15bcdb2a48e3bedef7 ` evidence/native-v2-compiler-profile/README.md:21 078200466af2dc0452da7793b186d91bc9539f0cf5fafa15bcdb2a48e3bedef7
+A7 SUPPORTED AGENTS.md:39 sha256 `b8f8f1371bc0303f8da02db8b754e085d5dd852620c8d8d676c5769c233d9195 ` docs/NATIVE-ABI.md:876 b8f8f1371bc0303f8da02db8b754e085d5dd852620c8d8d676c5769c233d9195
+A8 SUPPORTED AGENTS.md:40 sha256 `be8c51301307555254fc59e351d281aae1aa096d91521777e33a41c8b446448a ` (omega-mv main `seed/out/omc` since #994) evidence/native-x86-be8c5130 .json:11 "x86_omc_sha256": "be8c51301307555254fc59e351d281aae1aa096d91521777e33a41c8b446448a "
+A10 SUPPORTED AGENTS.md:44 omega-mv `e5b32567 `, sha256 `2c82480596bbdc50cda9626866209ef662d5834f278f839ff4ce0250c495029f ` tools/bridge-seeded:21 2c82480596bbdc50cda9626866209ef662d5834f278f839ff4ce0250c495029f
+A11 SUPPORTED AGENTS.md:79 `tools/test.sh` ends with `ALL SUITES RC=0`. evidence/release-v1/fresh-clone-d8174edd -rehearsal.log:200 ALL SUITES RC=0
+A12 SUPPORTED AGENTS.md:79 `tests/native/run.sh` emits `NATIVE-CALL PASS` only after all seven required callers evidence/native-call-v1/run.log:3 PASS c-bti caller
+A13 NOT_RUN AGENTS.md:81 `conformance/run.sh --device` and `tools/run-device-window.sh --ledger <ID>` need the NVIDIA GB10 - -
+A14 FIXED AGENTS.md:105 `docs/NATIVE-ABI.md` (native call ABI v1/v2) evidence/native-abi-v2/v2-run.log:3 ABI v1 bindings byte-identical
+M1 FIXED MISSION-REPORT.md:7 Status note (claims pass at omega-bridge `d8174edd `, DRA-107): this is a dated - -
+M2 SUPPORTED MISSION-REPORT.md:24 `191b776ef98821597c3e30655da6d680a9b66edbc9ceaca3c39c61ea6df098e9 `. tools/build.sh:5 want=191b776ef98821597c3e30655da6d680a9b66edbc9ceaca3c39c61ea6df098e9
+M3 EXTERNAL MISSION-REPORT.md:31 `omega/evidence/MAX-INTEROP/680/` - -
+M4 SUPPORTED MISSION-REPORT.md:37 Bridge GPU adapter v1 (negotiation + admission evidence/MAX-INTEROP/3/tests.log:1 SUMMARY {"checks": 49, "fail": 0}
+M5 SUPPORTED MISSION-REPORT.md:39 MAX 26.7 source/API/licence pin and capability matrix docs/max/MAX-26.7-FEASIBILITY.md:9 Pinned ref: tag `max/v26.7.0`
+M6 SUPPORTED MISSION-REPORT.md:40 Separate-process MAX vs Omega harness evidence/MAX-INTEROP/5/harness.log:10 CONFORMANCE HARNESS PASS
+M6b SUPPORTED MISSION-REPORT.md:41 matmul: MAX and Omega host-wiring outputs have the same SHA-256 evidence/MAX-INTEROP/5/artifacts.sha256:8 60a7f7d46597cfff1cd126df12aa8583f191fc6c64a2a608341608f2de8e70a4 conformance/build/omega-matmul-v1.bin
+M6c SUPPORTED MISSION-REPORT.md:41 GQA: MAX against the fp64 oracle only, worst absolute error 2.7e-7 evidence/MAX-INTEROP/5/RESULT.md:16 MAX causal GQA matches the fp64 oracle; worst absolute error `2.7e-7`
+M7 NOT_RUN MISSION-REPORT.md:59 Omega native matmul/GQA on GB10 - -
+M8 EXTERNAL MISSION-REPORT.md:75 No PR from this project was found - -
+M9 EXTERNAL MISSION-REPORT.md:80 has an ongoing email thread with Modular - -
+M10 NOT_RUN MISSION-REPORT.md:101 The cubin container is offline-valid only. - -
+G1 GATE - - evidence/native-x86-physical-be8c5130 .json -
+G2 GATE - - evidence/device-window/README.md -
+G3 GATE - - evidence/release-v1/independent-review.md -
+G4 GATE - - evidence/attach-torch-cpu-d8174ed /README.md -
diff --git a/evidence/release-v1/fresh-clone-claims-r2-after-review-rehearsal.log b/evidence/release-v1/fresh-clone-claims-r2-after-review-rehearsal.log
new file mode 100644
index 0000000 ..accb762
--- /dev/null
+++ b/evidence/release-v1/fresh-clone-claims-r2-after-review-rehearsal.log
@@ -0,0 +1,287 @@
+# PRE-TAG REHEARSAL (DRA-107 revision 2 after review), not the v1.0.0 tag run
+# date: 2026-11-07T04:42:24Z
+# host: spark-b87b aarch64
+# head: e0e7a68a263f02901ee965dd0777e57d6008d00d (fresh clone of aien-dev/omega-bridge, branch hive/dra-107-claims-ledger)
+# command: CUDA_VISIBLE_DEVICES= flock -o pool-10-11.lock taskset -c 10,11 nice -n 10 bwrap --dev-bind / / --dev /dev --proc /proc --chdir <fresh clone> -- sh -c "tools/bootstrap.sh && tools/build.sh && tools/test.sh && OMEGA_SEED=\$(pwd)/build/bootstrap/omc sh tests/claimcheck.sh && sh tools/claimcheck.sh prep"
+# rc: 0
+# wall_seconds: 24
+om4.bin 14224 bytes
+source=29b12760f4c962606411d6bf25032aedef063301
+8608fa11f6a2cf1c50db22d871eef16b00d5bc719bc1a222cc3e456984ac5ebf seed/omc/omc.om
+191b776ef98821597c3e30655da6d680a9b66edbc9ceaca3c39c61ea6df098e9 ../omc
+bootstrap fixpoint RC=0
+test_each_old_label_mutant_is_detected (__main__.ModeLabelTests.test_each_old_label_mutant_is_detected) ... ok
+test_emulated_labels_unchanged (__main__.ModeLabelTests.test_emulated_labels_unchanged) ... ok
+test_guest_selection (__main__.ModeLabelTests.test_guest_selection) ... ok
+test_native_labels (__main__.ModeLabelTests.test_native_labels) ... ok
+
+----------------------------------------------------------------------
+Ran 4 tests in 0.004s
+
+OK
+PASS bytecopy
+PASS echo
+PASS fib
+PASS for_expr_once
+PASS for_varchange
+PASS io_errno
+PASS local_array
+PASS num_bool
+PASS num_byte_add
+PASS num_byte_cast
+PASS num_byte_div
+PASS num_byte_mul
+PASS num_byte_neg
+PASS num_byte_rem
+PASS num_byte_shiftlimit
+PASS num_byte_shl
+PASS num_byte_shr
+PASS num_byte_sub
+PASS num_div_negative
+PASS num_int_add
+PASS num_int_cast
+PASS num_int_div
+PASS num_int_mul
+PASS num_int_neg
+PASS num_int_rem
+PASS num_int_shiftlimit
+PASS num_int_shl
+PASS num_int_shr
+PASS num_int_sub
+PASS num_intmin_literal
+PASS num_long_add
+PASS num_long_cast
+PASS num_long_div
+PASS num_long_mul
+PASS num_long_neg
+PASS num_long_rem
+PASS num_long_shiftlimit
+PASS num_long_shl
+PASS num_long_shr
+PASS num_long_sub
+PASS num_not
+PASS num_rem_negative
+PASS num_short_add
+PASS num_short_cast
+PASS num_short_div
+PASS num_short_mul
+PASS num_short_neg
+PASS num_short_rem
+PASS num_short_shiftlimit
+PASS num_short_shl
+PASS num_short_shr
+PASS num_short_sub
+PASS num_uchar_add
+PASS num_uchar_cast
+PASS num_uchar_div
+PASS num_uchar_mul
+PASS num_uchar_neg
+PASS num_uchar_rem
+PASS num_uchar_shiftlimit
+PASS num_uchar_shl
+PASS num_uchar_shr
+PASS num_uchar_sub
+PASS num_uint_add
+PASS num_uint_cast
+PASS num_uint_div
+PASS num_uint_mul
+PASS num_uint_neg
+PASS num_uint_rem
+PASS num_uint_shiftlimit
+PASS num_uint_shl
+PASS num_uint_shr
+PASS num_uint_sub
+PASS num_ulong_add
+PASS num_ulong_cast
+PASS num_ulong_div
+PASS num_ulong_mul
+PASS num_ulong_neg
+PASS num_ulong_rem
+PASS num_ulong_shiftlimit
+PASS num_ulong_shl
+PASS num_ulong_shr
+PASS num_ulong_sub
+PASS num_ushort_add
+PASS num_ushort_cast
+PASS num_ushort_div
+PASS num_ushort_mul
+PASS num_ushort_neg
+PASS num_ushort_rem
+PASS num_ushort_shiftlimit
+PASS num_ushort_shl
+PASS num_ushort_shr
+PASS num_ushort_sub
+PASS order_calls
+PASS order_put
+PASS order_trap
+PASS r5b_fwd
+PASS r5b_mut
+PASS sort
+PASS t_bounds
+PASS t_cmp_unsigned
+PASS t_conv
+PASS t_conv_sign
+PASS t_div0
+PASS t_exit
+PASS t_loop
+PASS t_ovf
+PASS t_rw
+PASS t_stack
+PASS t_u63
+PASS t_u64max
+PASS t_void
+PASS t_write_wrap
+PASS two_loops
+cases=113 failures=0 RC=0
+PASS seed_1 3
+PASS seed_2 7
+PASS seed_3 7
+PASS seed_4 16
+PASS seed_5 16
+PASS seed_6 19
+PASS seed_7 19
+PASS seed_8 20
+PASS seed_9 20
+PASS seed_10 20
+PASS seed_11 20
+PASS seed_12 21
+PASS seed_13 7
+PASS seed_14 22
+PASS seed_15 22
+PASS seed_16 23
+PASS seed_17 23
+PASS seed_18 17
+PASS seed_19 18
+PASS seed_20 9
+PASS seed_21 9
+PASS seed_22 9
+PASS seed_23 9
+PASS seed_24 20
+PASS seed_25 8
+PASS seed_26 8
+PASS seed_27 8
+PASS seed_28 8
+PASS seed_29 6
+PASS seed_30 23
+PASS seed_31 9
+PASS seed_32 9
+PASS seed_33 10
+PASS seed_34 13
+PASS seed_35 15
+PASS seed_36 16
+PASS seed_37 16
+PASS seed_38 6
+PASS seed_39 7
+PASS seed_40 7
+PASS empty 16
+PASS text_target 24
+PASS five_params 24
+PASS long_name 13
+PASS library_io 24
+PASS library_array_width 24
+PASS local_storage_limit 23
+PASS inherited_text_program 24
+PASS r5b_assign 7
+PASS r5b_cycle 9
+refusal cases=50 failures=0 RC=0
+C caller: values, mutation, traps, invalid lengths and recovery OK
+Python caller: values, mutation, traps, invalid lengths and recovery OK
+attachment cases=2 failures=0 RC=0
+PASS detected c num_ulong_add native_exit 0 mutant_exit 126
+PASS detected python num_ulong_add native_exit 0 mutant_exit 126
+PASS detected c t_bounds native_exit 103 mutant_exit 1
+PASS detected python t_bounds native_exit 103 mutant_exit 1
+PASS detected c order_calls native_exit 1 mutant_exit 105
+PASS detected python order_calls native_exit 1 mutant_exit 105
+PASS deterministic nonempty output
+control cases=7 failures=0 RC=0
+robustness cases=225 target_accepts=6 target_refusals=444 failures=0 RC=0
+PASS good-prep (rc=0: CLAIMCHECK PASS rows=3 checked=4 not_run=1 unsupported=0 external=1 fixed=0 gates=4 gates_open=0)
+PASS good-tag (rc=0: TAG-READY yes)
+PASS receipt-text-mismatch (rc=1: BAD C1 C mismatch)
+PASS document-line-moved (rc=1: BAD C1 D mismatch)
+PASS receipt-line-past-end (rc=1: BAD C1 C missing)
+PASS receipt-file-missing (rc=1: BAD C1 C missing)
+PASS supported-without-receipt (rc=1: BAD C1 C nocite)
+PASS row-without-document (rc=1: BAD C1 D nodoc)
+PASS cited-dash-expect (rc=1: BAD C1 C noexpect)
+PASS unknown-status (rc=1: BAD C1 D status)
+PASS path-escape-refused (rc=1: BAD C1 C missing)
+PASS non-numeric-line (rc=1: BAD C1 C missing)
+PASS symlink-inside-accepted (rc=0: CLAIMCHECK PASS rows=3 checked=4 not_run=1 unsupported=0 external=1 fixed=0 gates=4 gates_open=0)
+PASS symlink-outside-refused (rc=1: BAD C1 C missing)
+PASS unsupported-prep (rc=0: TAG-READY no)
+PASS unsupported-tag (rc=3: TAG-READY no)
+PASS gate-open-tag (rc=3: GATE-OPEN G1 tests/fixtures/claimcheck/gate-absent.txt)
+PASS gate-directory-refused (rc=3: GATE-OPEN G1 tests/fixtures/claimcheck)
+PASS gate-absolute-refused (rc=3: GATE-OPEN G1 /bin/sh)
+PASS gate-traversal-refused (rc=3: GATE-OPEN G1 tests/../tests/fixtures/claimcheck/gate.txt)
+PASS required-gate-row-absent (rc=3: GATE-OPEN G4 (no GATE row in the table))
+PASS gate-id-repeated (rc=4: build/claimcheck-tests/gaterepeat.tsv: line 6: gate G1 repeated)
+PASS malformed-table (rc=4: build/claimcheck-tests/malformed.tsv: line 1: 2 fields, want 6)
+PASS empty-field (rc=4: build/claimcheck-tests/emptyfield.tsv: line 2: field 4 empty)
+PASS no-claim-rows (rc=4: build/claimcheck-tests/noclaims.tsv: no claim rows)
+PASS unterminated-table (rc=4: build/claimcheck-tests/unterminated.tsv: last line has no newline)
+PASS seed-absolute (rc=0: CLAIMCHECK PASS rows=3 checked=4 not_run=1 unsupported=0 external=1 fixed=0 gates=4 gates_open=0)
+PASS seed-relative (rc=0: CLAIMCHECK PASS rows=3 checked=4 not_run=1 unsupported=0 external=1 fixed=0 gates=4 gates_open=0)
+PASS seed-unset (rc=0: CLAIMCHECK PASS rows=3 checked=4 not_run=1 unsupported=0 external=1 fixed=0 gates=4 gates_open=0)
+PASS judge-no-mode (rc=4, no output)
+PASS judge-mode-repeated (rc=4, no output)
+PASS judge-mode-unknown (rc=4, no output)
+PASS judge-mode-missing (rc=4, no output)
+PASS judge-short-record (rc=4, no output)
+PASS judge-unknown-side (rc=4, no output)
+PASS judge-unknown-found (rc=4, no output)
+PASS judge-short-gate (rc=4, no output)
+PASS judge-no-claim-rows (rc=4, no output)
+PASS judge-unterminated (rc=4, no output)
+PASS judge-mutant-accepts-mismatch (rc=0: CLAIMCHECK PASS rows=3 checked=4 not_run=1 unsupported=0 external=1 fixed=0 gates=4 gates_open=0)
+claimcheck cases=40 failures=0 RC=0
+ALL SUITES RC=0
+PASS good-prep (rc=0: CLAIMCHECK PASS rows=3 checked=4 not_run=1 unsupported=0 external=1 fixed=0 gates=4 gates_open=0)
+PASS good-tag (rc=0: TAG-READY yes)
+PASS receipt-text-mismatch (rc=1: BAD C1 C mismatch)
+PASS document-line-moved (rc=1: BAD C1 D mismatch)
+PASS receipt-line-past-end (rc=1: BAD C1 C missing)
+PASS receipt-file-missing (rc=1: BAD C1 C missing)
+PASS supported-without-receipt (rc=1: BAD C1 C nocite)
+PASS row-without-document (rc=1: BAD C1 D nodoc)
+PASS cited-dash-expect (rc=1: BAD C1 C noexpect)
+PASS unknown-status (rc=1: BAD C1 D status)
+PASS path-escape-refused (rc=1: BAD C1 C missing)
+PASS non-numeric-line (rc=1: BAD C1 C missing)
+PASS symlink-inside-accepted (rc=0: CLAIMCHECK PASS rows=3 checked=4 not_run=1 unsupported=0 external=1 fixed=0 gates=4 gates_open=0)
+PASS symlink-outside-refused (rc=1: BAD C1 C missing)
+PASS unsupported-prep (rc=0: TAG-READY no)
+PASS unsupported-tag (rc=3: TAG-READY no)
+PASS gate-open-tag (rc=3: GATE-OPEN G1 tests/fixtures/claimcheck/gate-absent.txt)
+PASS gate-directory-refused (rc=3: GATE-OPEN G1 tests/fixtures/claimcheck)
+PASS gate-absolute-refused (rc=3: GATE-OPEN G1 /bin/sh)
+PASS gate-traversal-refused (rc=3: GATE-OPEN G1 tests/../tests/fixtures/claimcheck/gate.txt)
+PASS required-gate-row-absent (rc=3: GATE-OPEN G4 (no GATE row in the table))
+PASS gate-id-repeated (rc=4: build/claimcheck-tests/gaterepeat.tsv: line 6: gate G1 repeated)
+PASS malformed-table (rc=4: build/claimcheck-tests/malformed.tsv: line 1: 2 fields, want 6)
+PASS empty-field (rc=4: build/claimcheck-tests/emptyfield.tsv: line 2: field 4 empty)
+PASS no-claim-rows (rc=4: build/claimcheck-tests/noclaims.tsv: no claim rows)
+PASS unterminated-table (rc=4: build/claimcheck-tests/unterminated.tsv: last line has no newline)
+PASS seed-absolute (rc=0: CLAIMCHECK PASS rows=3 checked=4 not_run=1 unsupported=0 external=1 fixed=0 gates=4 gates_open=0)
+PASS seed-relative (rc=0: CLAIMCHECK PASS rows=3 checked=4 not_run=1 unsupported=0 external=1 fixed=0 gates=4 gates_open=0)
+PASS seed-unset (rc=0: CLAIMCHECK PASS rows=3 checked=4 not_run=1 unsupported=0 external=1 fixed=0 gates=4 gates_open=0)
+PASS judge-no-mode (rc=4, no output)
+PASS judge-mode-repeated (rc=4, no output)
+PASS judge-mode-unknown (rc=4, no output)
+PASS judge-mode-missing (rc=4, no output)
+PASS judge-short-record (rc=4, no output)
+PASS judge-unknown-side (rc=4, no output)
+PASS judge-unknown-found (rc=4, no output)
+PASS judge-short-gate (rc=4, no output)
+PASS judge-no-claim-rows (rc=4, no output)
+PASS judge-unterminated (rc=4, no output)
+PASS judge-mutant-accepts-mismatch (rc=0: CLAIMCHECK PASS rows=3 checked=4 not_run=1 unsupported=0 external=1 fixed=0 gates=4 gates_open=0)
+claimcheck cases=40 failures=0 RC=0
+GATE-OPEN G1 evidence/native-x86-physical-be8c5130 .json
+GATE-OPEN G2 evidence/device-window/README.md
+GATE-OPEN G3 evidence/release-v1/independent-review.md
+GATE-OPEN G4 evidence/attach-torch-cpu-d8174ed /README.md
+CLAIMCHECK PASS rows=70 checked=120 not_run=6 unsupported=0 external=8 fixed=9 gates=4 gates_open=4
+TAG-READY no
diff --git a/evidence/release-v1/fresh-clone-claims-r2-rehearsal.log b/evidence/release-v1/fresh-clone-claims-r2-rehearsal.log
new file mode 100644
index 0000000 ..85745af
--- /dev/null
+++ b/evidence/release-v1/fresh-clone-claims-r2-rehearsal.log
@@ -0,0 +1,222 @@
+# PRE-TAG REHEARSAL (DRA-107 revision 2), not the v1.0.0 tag run
+# date: 2026-11-07T04:24:01Z
+# host: spark-b87b aarch64
+# head: 3c2d599fdb5b22e45a0995a8343598c2187fe8fa (fresh clone of aien-dev/omega-bridge, branch hive/dra-107-claims-ledger)
+# command: CUDA_VISIBLE_DEVICES= flock -o pool-10-11.lock taskset -c 10,11 nice -n 10 bwrap --dev-bind / / --dev /dev --proc /proc --chdir <fresh clone> -- sh -c "tools/bootstrap.sh && tools/build.sh && tools/test.sh && sh tools/claimcheck.sh prep"
+# rc: 0
+# wall_seconds: 32
+om4.bin 14224 bytes
+source=29b12760f4c962606411d6bf25032aedef063301
+8608fa11f6a2cf1c50db22d871eef16b00d5bc719bc1a222cc3e456984ac5ebf seed/omc/omc.om
+191b776ef98821597c3e30655da6d680a9b66edbc9ceaca3c39c61ea6df098e9 ../omc
+bootstrap fixpoint RC=0
+test_each_old_label_mutant_is_detected (__main__.ModeLabelTests.test_each_old_label_mutant_is_detected) ... ok
+test_emulated_labels_unchanged (__main__.ModeLabelTests.test_emulated_labels_unchanged) ... ok
+test_guest_selection (__main__.ModeLabelTests.test_guest_selection) ... ok
+test_native_labels (__main__.ModeLabelTests.test_native_labels) ... ok
+
+----------------------------------------------------------------------
+Ran 4 tests in 0.006s
+
+OK
+PASS bytecopy
+PASS echo
+PASS fib
+PASS for_expr_once
+PASS for_varchange
+PASS io_errno
+PASS local_array
+PASS num_bool
+PASS num_byte_add
+PASS num_byte_cast
+PASS num_byte_div
+PASS num_byte_mul
+PASS num_byte_neg
+PASS num_byte_rem
+PASS num_byte_shiftlimit
+PASS num_byte_shl
+PASS num_byte_shr
+PASS num_byte_sub
+PASS num_div_negative
+PASS num_int_add
+PASS num_int_cast
+PASS num_int_div
+PASS num_int_mul
+PASS num_int_neg
+PASS num_int_rem
+PASS num_int_shiftlimit
+PASS num_int_shl
+PASS num_int_shr
+PASS num_int_sub
+PASS num_intmin_literal
+PASS num_long_add
+PASS num_long_cast
+PASS num_long_div
+PASS num_long_mul
+PASS num_long_neg
+PASS num_long_rem
+PASS num_long_shiftlimit
+PASS num_long_shl
+PASS num_long_shr
+PASS num_long_sub
+PASS num_not
+PASS num_rem_negative
+PASS num_short_add
+PASS num_short_cast
+PASS num_short_div
+PASS num_short_mul
+PASS num_short_neg
+PASS num_short_rem
+PASS num_short_shiftlimit
+PASS num_short_shl
+PASS num_short_shr
+PASS num_short_sub
+PASS num_uchar_add
+PASS num_uchar_cast
+PASS num_uchar_div
+PASS num_uchar_mul
+PASS num_uchar_neg
+PASS num_uchar_rem
+PASS num_uchar_shiftlimit
+PASS num_uchar_shl
+PASS num_uchar_shr
+PASS num_uchar_sub
+PASS num_uint_add
+PASS num_uint_cast
+PASS num_uint_div
+PASS num_uint_mul
+PASS num_uint_neg
+PASS num_uint_rem
+PASS num_uint_shiftlimit
+PASS num_uint_shl
+PASS num_uint_shr
+PASS num_uint_sub
+PASS num_ulong_add
+PASS num_ulong_cast
+PASS num_ulong_div
+PASS num_ulong_mul
+PASS num_ulong_neg
+PASS num_ulong_rem
+PASS num_ulong_shiftlimit
+PASS num_ulong_shl
+PASS num_ulong_shr
+PASS num_ulong_sub
+PASS num_ushort_add
+PASS num_ushort_cast
+PASS num_ushort_div
+PASS num_ushort_mul
+PASS num_ushort_neg
+PASS num_ushort_rem
+PASS num_ushort_shiftlimit
+PASS num_ushort_shl
+PASS num_ushort_shr
+PASS num_ushort_sub
+PASS order_calls
+PASS order_put
+PASS order_trap
+PASS r5b_fwd
+PASS r5b_mut
+PASS sort
+PASS t_bounds
+PASS t_cmp_unsigned
+PASS t_conv
+PASS t_conv_sign
+PASS t_div0
+PASS t_exit
+PASS t_loop
+PASS t_ovf
+PASS t_rw
+PASS t_stack
+PASS t_u63
+PASS t_u64max
+PASS t_void
+PASS t_write_wrap
+PASS two_loops
+cases=113 failures=0 RC=0
+PASS seed_1 3
+PASS seed_2 7
+PASS seed_3 7
+PASS seed_4 16
+PASS seed_5 16
+PASS seed_6 19
+PASS seed_7 19
+PASS seed_8 20
+PASS seed_9 20
+PASS seed_10 20
+PASS seed_11 20
+PASS seed_12 21
+PASS seed_13 7
+PASS seed_14 22
+PASS seed_15 22
+PASS seed_16 23
+PASS seed_17 23
+PASS seed_18 17
+PASS seed_19 18
+PASS seed_20 9
+PASS seed_21 9
+PASS seed_22 9
+PASS seed_23 9
+PASS seed_24 20
+PASS seed_25 8
+PASS seed_26 8
+PASS seed_27 8
+PASS seed_28 8
+PASS seed_29 6
+PASS seed_30 23
+PASS seed_31 9
+PASS seed_32 9
+PASS seed_33 10
+PASS seed_34 13
+PASS seed_35 15
+PASS seed_36 16
+PASS seed_37 16
+PASS seed_38 6
+PASS seed_39 7
+PASS seed_40 7
+PASS empty 16
+PASS text_target 24
+PASS five_params 24
+PASS long_name 13
+PASS library_io 24
+PASS library_array_width 24
+PASS local_storage_limit 23
+PASS inherited_text_program 24
+PASS r5b_assign 7
+PASS r5b_cycle 9
+refusal cases=50 failures=0 RC=0
+C caller: values, mutation, traps, invalid lengths and recovery OK
+Python caller: values, mutation, traps, invalid lengths and recovery OK
+attachment cases=2 failures=0 RC=0
+PASS detected c num_ulong_add native_exit 0 mutant_exit 126
+PASS detected python num_ulong_add native_exit 0 mutant_exit 126
+PASS detected c t_bounds native_exit 103 mutant_exit 1
+PASS detected python t_bounds native_exit 103 mutant_exit 1
+PASS detected c order_calls native_exit 1 mutant_exit 105
+PASS detected python order_calls native_exit 1 mutant_exit 105
+PASS deterministic nonempty output
+control cases=7 failures=0 RC=0
+robustness cases=225 target_accepts=6 target_refusals=444 failures=0 RC=0
+PASS good-prep (rc=0: CLAIMCHECK PASS rows=3 checked=4 not_run=1 unsupported=0 external=1 fixed=0 gates=1 gates_open=0)
+PASS good-tag (rc=0: TAG-READY yes)
+PASS receipt-text-mismatch (rc=1: BAD C1 C mismatch)
+PASS document-line-moved (rc=1: BAD C1 D mismatch)
+PASS receipt-line-past-end (rc=1: BAD C1 C missing)
+PASS receipt-file-missing (rc=1: BAD C1 C missing)
+PASS supported-without-receipt (rc=1: BAD C1 C nocite)
+PASS unknown-status (rc=1: BAD C1 D status)
+PASS path-escape-refused (rc=1: BAD C1 C missing)
+PASS non-numeric-line (rc=1: BAD C1 C missing)
+PASS unsupported-prep (rc=0: TAG-READY no)
+PASS unsupported-tag (rc=3: TAG-READY no)
+PASS gate-open-tag (rc=3: GATE-OPEN G1 tests/fixtures/claimcheck/gate-absent.txt)
+PASS malformed-table (rc=4: build/claimcheck-tests/malformed.tsv: line 1: 2 fields, want 6)
+PASS judge-refuses-stream-without-mode (rc=4, no output)
+PASS judge-mutant-accepts-mismatch (rc=0: CLAIMCHECK PASS rows=3 checked=4 not_run=1 unsupported=0 external=1 fixed=0 gates=1 gates_open=0)
+claimcheck cases=16 failures=0 RC=0
+ALL SUITES RC=0
+GATE-OPEN G1 evidence/native-x86-physical-be8c5130 .json
+GATE-OPEN G2 evidence/device-window/README.md
+GATE-OPEN G3 evidence/release-v1/independent-review.md
+GATE-OPEN G4 evidence/attach-torch-cpu-d8174ed /README.md
+CLAIMCHECK PASS rows=69 checked=118 not_run=6 unsupported=0 external=8 fixed=9 gates=4 gates_open=4
+TAG-READY no
diff --git a/evidence/release-v1/fresh-clone-claims-r2-review2-rehearsal.log b/evidence/release-v1/fresh-clone-claims-r2-review2-rehearsal.log
new file mode 100644
index 0000000 ..2c9d8bf
--- /dev/null
+++ b/evidence/release-v1/fresh-clone-claims-r2-review2-rehearsal.log
@@ -0,0 +1,299 @@
+# PRE-TAG REHEARSAL (DRA-107 revision 2 after the second review), not the v1.0.0 tag run
+# date: 2026-11-07T04:56:06Z
+# host: spark-b87b aarch64
+# head: cf1ef5660a8ff9a2ef07182b668624d95ad7a004 (fresh clone of aien-dev/omega-bridge, branch hive/dra-107-claims-ledger)
+# command: CUDA_VISIBLE_DEVICES= flock -o pool-8-9.lock taskset -c 8,9 nice -n 10 bwrap --dev-bind / / --dev /dev --proc /proc --chdir <fresh clone> -- sh -c "tools/bootstrap.sh && tools/build.sh && tools/test.sh && OMEGA_SEED=\$(pwd)/build/bootstrap/omc sh tests/claimcheck.sh && sh tools/claimcheck.sh prep"
+# rc: 0
+# wall_seconds: 21
+om4.bin 14224 bytes
+source=29b12760f4c962606411d6bf25032aedef063301
+8608fa11f6a2cf1c50db22d871eef16b00d5bc719bc1a222cc3e456984ac5ebf seed/omc/omc.om
+191b776ef98821597c3e30655da6d680a9b66edbc9ceaca3c39c61ea6df098e9 ../omc
+bootstrap fixpoint RC=0
+test_each_old_label_mutant_is_detected (__main__.ModeLabelTests.test_each_old_label_mutant_is_detected) ... ok
+test_emulated_labels_unchanged (__main__.ModeLabelTests.test_emulated_labels_unchanged) ... ok
+test_guest_selection (__main__.ModeLabelTests.test_guest_selection) ... ok
+test_native_labels (__main__.ModeLabelTests.test_native_labels) ... ok
+
+----------------------------------------------------------------------
+Ran 4 tests in 0.003s
+
+OK
+PASS bytecopy
+PASS echo
+PASS fib
+PASS for_expr_once
+PASS for_varchange
+PASS io_errno
+PASS local_array
+PASS num_bool
+PASS num_byte_add
+PASS num_byte_cast
+PASS num_byte_div
+PASS num_byte_mul
+PASS num_byte_neg
+PASS num_byte_rem
+PASS num_byte_shiftlimit
+PASS num_byte_shl
+PASS num_byte_shr
+PASS num_byte_sub
+PASS num_div_negative
+PASS num_int_add
+PASS num_int_cast
+PASS num_int_div
+PASS num_int_mul
+PASS num_int_neg
+PASS num_int_rem
+PASS num_int_shiftlimit
+PASS num_int_shl
+PASS num_int_shr
+PASS num_int_sub
+PASS num_intmin_literal
+PASS num_long_add
+PASS num_long_cast
+PASS num_long_div
+PASS num_long_mul
+PASS num_long_neg
+PASS num_long_rem
+PASS num_long_shiftlimit
+PASS num_long_shl
+PASS num_long_shr
+PASS num_long_sub
+PASS num_not
+PASS num_rem_negative
+PASS num_short_add
+PASS num_short_cast
+PASS num_short_div
+PASS num_short_mul
+PASS num_short_neg
+PASS num_short_rem
+PASS num_short_shiftlimit
+PASS num_short_shl
+PASS num_short_shr
+PASS num_short_sub
+PASS num_uchar_add
+PASS num_uchar_cast
+PASS num_uchar_div
+PASS num_uchar_mul
+PASS num_uchar_neg
+PASS num_uchar_rem
+PASS num_uchar_shiftlimit
+PASS num_uchar_shl
+PASS num_uchar_shr
+PASS num_uchar_sub
+PASS num_uint_add
+PASS num_uint_cast
+PASS num_uint_div
+PASS num_uint_mul
+PASS num_uint_neg
+PASS num_uint_rem
+PASS num_uint_shiftlimit
+PASS num_uint_shl
+PASS num_uint_shr
+PASS num_uint_sub
+PASS num_ulong_add
+PASS num_ulong_cast
+PASS num_ulong_div
+PASS num_ulong_mul
+PASS num_ulong_neg
+PASS num_ulong_rem
+PASS num_ulong_shiftlimit
+PASS num_ulong_shl
+PASS num_ulong_shr
+PASS num_ulong_sub
+PASS num_ushort_add
+PASS num_ushort_cast
+PASS num_ushort_div
+PASS num_ushort_mul
+PASS num_ushort_neg
+PASS num_ushort_rem
+PASS num_ushort_shiftlimit
+PASS num_ushort_shl
+PASS num_ushort_shr
+PASS num_ushort_sub
+PASS order_calls
+PASS order_put
+PASS order_trap
+PASS r5b_fwd
+PASS r5b_mut
+PASS sort
+PASS t_bounds
+PASS t_cmp_unsigned
+PASS t_conv
+PASS t_conv_sign
+PASS t_div0
+PASS t_exit
+PASS t_loop
+PASS t_ovf
+PASS t_rw
+PASS t_stack
+PASS t_u63
+PASS t_u64max
+PASS t_void
+PASS t_write_wrap
+PASS two_loops
+cases=113 failures=0 RC=0
+PASS seed_1 3
+PASS seed_2 7
+PASS seed_3 7
+PASS seed_4 16
+PASS seed_5 16
+PASS seed_6 19
+PASS seed_7 19
+PASS seed_8 20
+PASS seed_9 20
+PASS seed_10 20
+PASS seed_11 20
+PASS seed_12 21
+PASS seed_13 7
+PASS seed_14 22
+PASS seed_15 22
+PASS seed_16 23
+PASS seed_17 23
+PASS seed_18 17
+PASS seed_19 18
+PASS seed_20 9
+PASS seed_21 9
+PASS seed_22 9
+PASS seed_23 9
+PASS seed_24 20
+PASS seed_25 8
+PASS seed_26 8
+PASS seed_27 8
+PASS seed_28 8
+PASS seed_29 6
+PASS seed_30 23
+PASS seed_31 9
+PASS seed_32 9
+PASS seed_33 10
+PASS seed_34 13
+PASS seed_35 15
+PASS seed_36 16
+PASS seed_37 16
+PASS seed_38 6
+PASS seed_39 7
+PASS seed_40 7
+PASS empty 16
+PASS text_target 24
+PASS five_params 24
+PASS long_name 13
+PASS library_io 24
+PASS library_array_width 24
+PASS local_storage_limit 23
+PASS inherited_text_program 24
+PASS r5b_assign 7
+PASS r5b_cycle 9
+refusal cases=50 failures=0 RC=0
+C caller: values, mutation, traps, invalid lengths and recovery OK
+Python caller: values, mutation, traps, invalid lengths and recovery OK
+attachment cases=2 failures=0 RC=0
+PASS detected c num_ulong_add native_exit 0 mutant_exit 126
+PASS detected python num_ulong_add native_exit 0 mutant_exit 126
+PASS detected c t_bounds native_exit 103 mutant_exit 1
+PASS detected python t_bounds native_exit 103 mutant_exit 1
+PASS detected c order_calls native_exit 1 mutant_exit 105
+PASS detected python order_calls native_exit 1 mutant_exit 105
+PASS deterministic nonempty output
+control cases=7 failures=0 RC=0
+robustness cases=225 target_accepts=6 target_refusals=444 failures=0 RC=0
+PASS good-prep (rc=0: CLAIMCHECK PASS rows=3 checked=4 not_run=1 unsupported=0 external=1 fixed=0 gates=4 gates_open=0)
+PASS good-tag (rc=0: TAG-READY yes)
+PASS receipt-text-mismatch (rc=1: BAD C1 C mismatch)
+PASS document-line-moved (rc=1: BAD C1 D mismatch)
+PASS receipt-line-past-end (rc=1: BAD C1 C missing)
+PASS receipt-file-missing (rc=1: BAD C1 C missing)
+PASS supported-without-receipt (rc=1: BAD C1 C nocite)
+PASS row-without-document (rc=1: BAD C1 D nodoc)
+PASS cited-dash-expect (rc=1: BAD C1 C noexpect)
+PASS unknown-status (rc=1: BAD C1 D status)
+PASS path-escape-refused (rc=1: BAD C1 C missing)
+PASS non-numeric-line (rc=1: BAD C1 C missing)
+PASS symlink-inside-accepted (rc=0: CLAIMCHECK PASS rows=3 checked=4 not_run=1 unsupported=0 external=1 fixed=0 gates=4 gates_open=0)
+PASS symlink-outside-refused (rc=1: BAD C1 C missing)
+PASS unsupported-prep (rc=0: TAG-READY no)
+PASS unsupported-tag (rc=3: TAG-READY no)
+PASS gate-open-tag (rc=3: GATE-OPEN G1 tests/fixtures/claimcheck/gate-absent.txt)
+PASS gate-directory-refused (rc=3: GATE-OPEN G1 tests/fixtures/claimcheck)
+PASS gate-absolute-refused (rc=3: GATE-OPEN G1 /bin/sh)
+PASS gate-traversal-refused (rc=3: GATE-OPEN G1 tests/../tests/fixtures/claimcheck/gate.txt)
+PASS required-gate-row-absent (rc=3: GATE-OPEN G4 (no GATE row in the table))
+PASS gate-id-repeated (rc=4: build/claimcheck-tests/gaterepeat.tsv: line 6: gate G1 repeated)
+PASS gate-id-combined (rc=4: build/claimcheck-tests/gatecombined.tsv: line 5: id is not one token)
+PASS malformed-table (rc=4: build/claimcheck-tests/malformed.tsv: line 1: 2 fields, want 6)
+PASS empty-field (rc=4: build/claimcheck-tests/emptyfield.tsv: line 2: field 4 empty)
+PASS no-claim-rows (rc=4: build/claimcheck-tests/noclaims.tsv: no claim rows)
+PASS unterminated-table (rc=4: build/claimcheck-tests/unterminated.tsv: last line has no newline)
+PASS seed-absolute (rc=0: CLAIMCHECK PASS rows=3 checked=4 not_run=1 unsupported=0 external=1 fixed=0 gates=4 gates_open=0)
+PASS seed-relative (rc=0: CLAIMCHECK PASS rows=3 checked=4 not_run=1 unsupported=0 external=1 fixed=0 gates=4 gates_open=0)
+PASS seed-unset (rc=0: CLAIMCHECK PASS rows=3 checked=4 not_run=1 unsupported=0 external=1 fixed=0 gates=4 gates_open=0)
+PASS judge-well-formed-stream (rc=0: TAG-READY yes)
+PASS judge-no-mode (rc=4, no output)
+PASS judge-mode-repeated (rc=4, no output)
+PASS judge-mode-unknown (rc=4, no output)
+PASS judge-mode-missing (rc=4, no output)
+PASS judge-short-record (rc=4, no output)
+PASS judge-unknown-side (rc=4, no output)
+PASS judge-unknown-found (rc=4, no output)
+PASS judge-short-gate (rc=4, no output)
+PASS judge-no-claim-rows (rc=4, no output)
+PASS judge-unterminated (rc=4, no output)
+PASS judge-document-without-receipt (rc=4, no output)
+PASS judge-receipt-without-document (rc=4, no output)
+PASS judge-receipt-other-id (rc=4, no output)
+PASS judge-gate-inside-pair (rc=4, no output)
+PASS judge-mutant-accepts-mismatch (rc=0: CLAIMCHECK PASS rows=3 checked=4 not_run=1 unsupported=0 external=1 fixed=0 gates=4 gates_open=0)
+claimcheck cases=46 failures=0 RC=0
+ALL SUITES RC=0
+PASS good-prep (rc=0: CLAIMCHECK PASS rows=3 checked=4 not_run=1 unsupported=0 external=1 fixed=0 gates=4 gates_open=0)
+PASS good-tag (rc=0: TAG-READY yes)
+PASS receipt-text-mismatch (rc=1: BAD C1 C mismatch)
+PASS document-line-moved (rc=1: BAD C1 D mismatch)
+PASS receipt-line-past-end (rc=1: BAD C1 C missing)
+PASS receipt-file-missing (rc=1: BAD C1 C missing)
+PASS supported-without-receipt (rc=1: BAD C1 C nocite)
+PASS row-without-document (rc=1: BAD C1 D nodoc)
+PASS cited-dash-expect (rc=1: BAD C1 C noexpect)
+PASS unknown-status (rc=1: BAD C1 D status)
+PASS path-escape-refused (rc=1: BAD C1 C missing)
+PASS non-numeric-line (rc=1: BAD C1 C missing)
+PASS symlink-inside-accepted (rc=0: CLAIMCHECK PASS rows=3 checked=4 not_run=1 unsupported=0 external=1 fixed=0 gates=4 gates_open=0)
+PASS symlink-outside-refused (rc=1: BAD C1 C missing)
+PASS unsupported-prep (rc=0: TAG-READY no)
+PASS unsupported-tag (rc=3: TAG-READY no)
+PASS gate-open-tag (rc=3: GATE-OPEN G1 tests/fixtures/claimcheck/gate-absent.txt)
+PASS gate-directory-refused (rc=3: GATE-OPEN G1 tests/fixtures/claimcheck)
+PASS gate-absolute-refused (rc=3: GATE-OPEN G1 /bin/sh)
+PASS gate-traversal-refused (rc=3: GATE-OPEN G1 tests/../tests/fixtures/claimcheck/gate.txt)
+PASS required-gate-row-absent (rc=3: GATE-OPEN G4 (no GATE row in the table))
+PASS gate-id-repeated (rc=4: build/claimcheck-tests/gaterepeat.tsv: line 6: gate G1 repeated)
+PASS gate-id-combined (rc=4: build/claimcheck-tests/gatecombined.tsv: line 5: id is not one token)
+PASS malformed-table (rc=4: build/claimcheck-tests/malformed.tsv: line 1: 2 fields, want 6)
+PASS empty-field (rc=4: build/claimcheck-tests/emptyfield.tsv: line 2: field 4 empty)
+PASS no-claim-rows (rc=4: build/claimcheck-tests/noclaims.tsv: no claim rows)
+PASS unterminated-table (rc=4: build/claimcheck-tests/unterminated.tsv: last line has no newline)
+PASS seed-absolute (rc=0: CLAIMCHECK PASS rows=3 checked=4 not_run=1 unsupported=0 external=1 fixed=0 gates=4 gates_open=0)
+PASS seed-relative (rc=0: CLAIMCHECK PASS rows=3 checked=4 not_run=1 unsupported=0 external=1 fixed=0 gates=4 gates_open=0)
+PASS seed-unset (rc=0: CLAIMCHECK PASS rows=3 checked=4 not_run=1 unsupported=0 external=1 fixed=0 gates=4 gates_open=0)
+PASS judge-well-formed-stream (rc=0: TAG-READY yes)
+PASS judge-no-mode (rc=4, no output)
+PASS judge-mode-repeated (rc=4, no output)
+PASS judge-mode-unknown (rc=4, no output)
+PASS judge-mode-missing (rc=4, no output)
+PASS judge-short-record (rc=4, no output)
+PASS judge-unknown-side (rc=4, no output)
+PASS judge-unknown-found (rc=4, no output)
+PASS judge-short-gate (rc=4, no output)
+PASS judge-no-claim-rows (rc=4, no output)
+PASS judge-unterminated (rc=4, no output)
+PASS judge-document-without-receipt (rc=4, no output)
+PASS judge-receipt-without-document (rc=4, no output)
+PASS judge-receipt-other-id (rc=4, no output)
+PASS judge-gate-inside-pair (rc=4, no output)
+PASS judge-mutant-accepts-mismatch (rc=0: CLAIMCHECK PASS rows=3 checked=4 not_run=1 unsupported=0 external=1 fixed=0 gates=4 gates_open=0)
+claimcheck cases=46 failures=0 RC=0
+GATE-OPEN G1 evidence/native-x86-physical-be8c5130 .json
+GATE-OPEN G2 evidence/device-window/README.md
+GATE-OPEN G3 evidence/release-v1/independent-review.md
+GATE-OPEN G4 evidence/attach-torch-cpu-d8174ed /README.md
+CLAIMCHECK PASS rows=70 checked=120 not_run=6 unsupported=0 external=8 fixed=9 gates=4 gates_open=4
+TAG-READY no
diff --git a/evidence/release-v1/fresh-clone-d8174edd -rehearsal.log b/evidence/release-v1/fresh-clone-d8174edd -rehearsal.log
new file mode 100644
index 0000000 ..c0d71b9
--- /dev/null
+++ b/evidence/release-v1/fresh-clone-d8174edd -rehearsal.log
@@ -0,0 +1,200 @@
+# PRE-TAG REHEARSAL (DRA-107), not the v1.0.0 tag run
+# date: 2026-11-06T20:27:29Z
+# host: spark-b87b aarch64
+# head: d8174eddf953ad53e16f19eb5841459df99e24bb (fresh clone)
+# command: CUDA_VISIBLE_DEVICES= flock /dev/shm/hive/BridgeCompiler/cpu.lock taskset -c 16,17 nice -n 10 bwrap --dev-bind / / --dev /dev --proc /proc --bind /dev/shm /dev/shm --chdir <fresh clone> -- bash -c "tools/bootstrap.sh && tools/build.sh && tools/test.sh"
+# rc: 0
+# wall_seconds: 28
+
+om4.bin 14224 bytes
+source=29b12760f4c962606411d6bf25032aedef063301
+8608fa11f6a2cf1c50db22d871eef16b00d5bc719bc1a222cc3e456984ac5ebf seed/omc/omc.om
+191b776ef98821597c3e30655da6d680a9b66edbc9ceaca3c39c61ea6df098e9 ../omc
+bootstrap fixpoint RC=0
+test_each_old_label_mutant_is_detected (__main__.ModeLabelTests.test_each_old_label_mutant_is_detected) ... ok
+test_emulated_labels_unchanged (__main__.ModeLabelTests.test_emulated_labels_unchanged) ... ok
+test_guest_selection (__main__.ModeLabelTests.test_guest_selection) ... ok
+test_native_labels (__main__.ModeLabelTests.test_native_labels) ... ok
+
+----------------------------------------------------------------------
+Ran 4 tests in 0.002s
+
+OK
+PASS bytecopy
+PASS echo
+PASS fib
+PASS for_expr_once
+PASS for_varchange
+PASS io_errno
+PASS local_array
+PASS num_bool
+PASS num_byte_add
+PASS num_byte_cast
+PASS num_byte_div
+PASS num_byte_mul
+PASS num_byte_neg
+PASS num_byte_rem
+PASS num_byte_shiftlimit
+PASS num_byte_shl
+PASS num_byte_shr
+PASS num_byte_sub
+PASS num_div_negative
+PASS num_int_add
+PASS num_int_cast
+PASS num_int_div
+PASS num_int_mul
+PASS num_int_neg
+PASS num_int_rem
+PASS num_int_shiftlimit
+PASS num_int_shl
+PASS num_int_shr
+PASS num_int_sub
+PASS num_intmin_literal
+PASS num_long_add
+PASS num_long_cast
+PASS num_long_div
+PASS num_long_mul
+PASS num_long_neg
+PASS num_long_rem
+PASS num_long_shiftlimit
+PASS num_long_shl
+PASS num_long_shr
+PASS num_long_sub
+PASS num_not
+PASS num_rem_negative
+PASS num_short_add
+PASS num_short_cast
+PASS num_short_div
+PASS num_short_mul
+PASS num_short_neg
+PASS num_short_rem
+PASS num_short_shiftlimit
+PASS num_short_shl
+PASS num_short_shr
+PASS num_short_sub
+PASS num_uchar_add
+PASS num_uchar_cast
+PASS num_uchar_div
+PASS num_uchar_mul
+PASS num_uchar_neg
+PASS num_uchar_rem
+PASS num_uchar_shiftlimit
+PASS num_uchar_shl
+PASS num_uchar_shr
+PASS num_uchar_sub
+PASS num_uint_add
+PASS num_uint_cast
+PASS num_uint_div
+PASS num_uint_mul
+PASS num_uint_neg
+PASS num_uint_rem
+PASS num_uint_shiftlimit
+PASS num_uint_shl
+PASS num_uint_shr
+PASS num_uint_sub
+PASS num_ulong_add
+PASS num_ulong_cast
+PASS num_ulong_div
+PASS num_ulong_mul
+PASS num_ulong_neg
+PASS num_ulong_rem
+PASS num_ulong_shiftlimit
+PASS num_ulong_shl
+PASS num_ulong_shr
+PASS num_ulong_sub
+PASS num_ushort_add
+PASS num_ushort_cast
+PASS num_ushort_div
+PASS num_ushort_mul
+PASS num_ushort_neg
+PASS num_ushort_rem
+PASS num_ushort_shiftlimit
+PASS num_ushort_shl
+PASS num_ushort_shr
+PASS num_ushort_sub
+PASS order_calls
+PASS order_put
+PASS order_trap
+PASS r5b_fwd
+PASS r5b_mut
+PASS sort
+PASS t_bounds
+PASS t_cmp_unsigned
+PASS t_conv
+PASS t_conv_sign
+PASS t_div0
+PASS t_exit
+PASS t_loop
+PASS t_ovf
+PASS t_rw
+PASS t_stack
+PASS t_u63
+PASS t_u64max
+PASS t_void
+PASS t_write_wrap
+PASS two_loops
+cases=113 failures=0 RC=0
+PASS seed_1 3
+PASS seed_2 7
+PASS seed_3 7
+PASS seed_4 16
+PASS seed_5 16
+PASS seed_6 19
+PASS seed_7 19
+PASS seed_8 20
+PASS seed_9 20
+PASS seed_10 20
+PASS seed_11 20
+PASS seed_12 21
+PASS seed_13 7
+PASS seed_14 22
+PASS seed_15 22
+PASS seed_16 23
+PASS seed_17 23
+PASS seed_18 17
+PASS seed_19 18
+PASS seed_20 9
+PASS seed_21 9
+PASS seed_22 9
+PASS seed_23 9
+PASS seed_24 20
+PASS seed_25 8
+PASS seed_26 8
+PASS seed_27 8
+PASS seed_28 8
+PASS seed_29 6
+PASS seed_30 23
+PASS seed_31 9
+PASS seed_32 9
+PASS seed_33 10
+PASS seed_34 13
+PASS seed_35 15
+PASS seed_36 16
+PASS seed_37 16
+PASS seed_38 6
+PASS seed_39 7
+PASS seed_40 7
+PASS empty 16
+PASS text_target 24
+PASS five_params 24
+PASS long_name 13
+PASS library_io 24
+PASS library_array_width 24
+PASS local_storage_limit 23
+PASS inherited_text_program 24
+PASS r5b_assign 7
+PASS r5b_cycle 9
+refusal cases=50 failures=0 RC=0
+C caller: values, mutation, traps, invalid lengths and recovery OK
+Python caller: values, mutation, traps, invalid lengths and recovery OK
+attachment cases=2 failures=0 RC=0
+PASS detected c num_ulong_add native_exit 0 mutant_exit 126
+PASS detected python num_ulong_add native_exit 0 mutant_exit 126
+PASS detected c t_bounds native_exit 103 mutant_exit 1
+PASS detected python t_bounds native_exit 103 mutant_exit 1
+PASS detected c order_calls native_exit 1 mutant_exit 105
+PASS detected python order_calls native_exit 1 mutant_exit 105
+PASS deterministic nonempty output
+control cases=7 failures=0 RC=0
+robustness cases=225 target_accepts=6 target_refusals=444 failures=0 RC=0
+ALL SUITES RC=0
diff --git a/evidence/release-v1/ledger-check-negative-control.log b/evidence/release-v1/ledger-check-negative-control.log
new file mode 100644
index 0000000 ..dc6b3ce
--- /dev/null
+++ b/evidence/release-v1/ledger-check-negative-control.log
@@ -0,0 +1,7 @@
+# DRA-107 ledger check, 2026-11-06T20:28:05Z, spark-b87b, base d8174edd
+## positive: unmodified ledger
+missing_count=0
+## negative control: planted row appended
+| R99 | 1 | planted | `evidence/does-not-exist.log:1` | SUPPORTED |
+MISSING evidence/does-not-exist.log
+missing_count=1
diff --git a/tests/claimcheck_test.om b/tests/claimcheck_test.om
new file mode 100644
index 0000000 ..6d2e78f
--- /dev/null
+++ b/tests/claimcheck_test.om
@@ -0,0 +1,762 @@
+om2
+note claimcheck_test.om: the gate for tools/claimcheck.om, the release claims check (DRA-107).
+note usage: claimcheck_test OMC, run from the repository root. OMC must be the seeded omc (omega-mv
+note e5b32567 , sha256 2c824805 ...), else exit 65. It compiles tools/claimcheck.om into build/claimcheck,
+note then runs every case of the list tcases (name, exit status, mode, table, one line the merged
+note stdout and stderr must contain as a whole line; table - means no table argument) on the fixture
+note tables in tests/fixtures/claimcheck/cases, and every judge-mode stream of tjcases
+note (tests/fixtures/claimcheck/streams/NAME.txt on stdin; line - means the output must be empty).
+note The tables are the ones the replaced tests/claimcheck.sh generated with sed (git 0fbcf75a ).
+note Negative control: a judge mutant (the expect-text substring test always succeeding) is compiled
+note and must accept the receipt-text mismatch, which shows the decision is made in claimcheck.om.
+note Output: one PASS or FAIL line per case, then claimcheck cases=N failures=F RC=0|1; exit 0 or 1;
+note a setup failure exits 2. Scratch: build/claimcheck-tests (symlink fixtures, outputs, the mutant)
+note and /tmp/omega-bridge-claimcheck-outside (a receipt outside the repository, removed at the end).
+global fbuf uchar 4194304
+global eb uchar 4194304
+global hexo uchar 64
+global ob uchar 1048576
+global pk uchar 8192
+global omc uchar 4096
+global pa uchar 4096
+global pb uchar 4096
+global cb uchar 4096
+global gv ulong 16
+const OMN ulong 1
+const PKN ulong 2
+const PAN ulong 3
+const PBN ulong 4
+const FAILS ulong 5
+const CASES ulong 6
+const ON ulong 7
+const CBN ulong 8
+const FCAP ulong 4194304
+note SHA-256 (FIPS 180-4) of fbuf[0..n), digest as 64 lowercase hex bytes in hexo[0..64).
+note The schedule, round and padding code is copied from omega-mv e5b32567 om/sha256/sha256-om2.om
+note (Apache-2.0), changed only to read the message from the global fbuf instead of an unsized view.
+fn kinit k edit uint 64 to void
+put k 0 0x428a2f98
+put k 1 0x71374491
+put k 2 0xb5c0fbcf
+put k 3 0xe9b5dba5
+put k 4 0x3956c25b
+put k 5 0x59f111f1
+put k 6 0x923f82a4
+put k 7 0xab1c5ed5
+put k 8 0xd807aa98
+put k 9 0x12835b01
+put k 10 0x243185be
+put k 11 0x550c7dc3
+put k 12 0x72be5d74
+put k 13 0x80deb1fe
+put k 14 0x9bdc06a7
+put k 15 0xc19bf174
+put k 16 0xe49b69c1
+put k 17 0xefbe4786
+put k 18 0x0fc19dc6
+put k 19 0x240ca1cc
+put k 20 0x2de92c6f
+put k 21 0x4a7484aa
+put k 22 0x5cb0a9dc
+put k 23 0x76f988da
+put k 24 0x983e5152
+put k 25 0xa831c66d
+put k 26 0xb00327c8
+put k 27 0xbf597fc7
+put k 28 0xc6e00bf3
+put k 29 0xd5a79147
+put k 30 0x06ca6351
+put k 31 0x14292967
+put k 32 0x27b70a85
+put k 33 0x2e1b2138
+put k 34 0x4d2c6dfc
+put k 35 0x53380d13
+put k 36 0x650a7354
+put k 37 0x766a0abb
+put k 38 0x81c2c92e
+put k 39 0x92722c85
+put k 40 0xa2bfe8a1
+put k 41 0xa81a664b
+put k 42 0xc24b8b70
+put k 43 0xc76c51a3
+put k 44 0xd192e819
+put k 45 0xd6990624
+put k 46 0xf40e3585
+put k 47 0x106aa070
+put k 48 0x19a4c116
+put k 49 0x1e376c08
+put k 50 0x2748774c
+put k 51 0x34b0bcb5
+put k 52 0x391c0cb3
+put k 53 0x4ed8aa4a
+put k 54 0x5b9cca4f
+put k 55 0x682e6ff3
+put k 56 0x748f82ee
+put k 57 0x78a5636f
+put k 58 0x84c87814
+put k 59 0x8cc70208
+put k 60 0x90befffa
+put k 61 0xa4506ceb
+put k 62 0xbef9a3f7
+put k 63 0xc67178f2
+end
+fn iv s edit uint 8 to void
+put s 0 0x6a09e667
+put s 1 0xbb67ae85
+put s 2 0x3c6ef372
+put s 3 0xa54ff53a
+put s 4 0x510e527f
+put s 5 0x9b05688c
+put s 6 0x1f83d9ab
+put s 7 0x5be0cd19
+end
+fn sched w edit uint 64 o ulong to void
+q = ulong 0
+x = uint 0
+y = uint 0
+for i ulong 16 unroll
+q = add o mul i 4
+x = uint get fbuf q
+x = or shl x 8 uint get fbuf add q 1
+x = or shl x 8 uint get fbuf add q 2
+put w i or shl x 8 uint get fbuf add q 3
+end
+for i ulong 48 unroll
+x = get w add i 1
+y = get w add i 14
+x = add add get w i get w add i 9 xor xor rotr x 7 rotr x 18 shr x 3
+put w add i 16 add x xor xor rotr y 17 rotr y 19 shr y 10
+end
+end
+fn schedp w edit uint 64 p view uchar 128 o ulong to void
+q = ulong 0
+x = uint 0
+y = uint 0
+for i ulong 16 unroll
+q = add o mul i 4
+x = uint get p q
+x = or shl x 8 uint get p add q 1
+x = or shl x 8 uint get p add q 2
+put w i or shl x 8 uint get p add q 3
+end
+for i ulong 48 unroll
+x = get w add i 1
+y = get w add i 14
+x = add add get w i get w add i 9 xor xor rotr x 7 rotr x 18 shr x 3
+put w add i 16 add x xor xor rotr y 17 rotr y 19 shr y 10
+end
+end
+fn rounds s edit uint 8 w view uint 64 kt view uint 64 to void
+a = get s 0
+b = get s 1
+c = get s 2
+d = get s 3
+e = get s 4
+f = get s 5
+g = get s 6
+h = get s 7
+t = uint 0
+for i ulong 64 unroll
+h = add h get kt i
+h = add h get w i
+t = xor rotr e 6 rotr e 11
+t = xor t rotr e 25
+h = add h t
+h = add h xor g and e xor f g
+d = add d h
+t = xor rotr a 2 rotr a 13
+t = xor t rotr a 22
+h = add h t
+t = and c or a b
+h = add h or and a b t
+t = h
+h = g
+g = f
+f = e
+e = d
+d = c
+c = b
+b = a
+a = t
+end
+put s 0 add get s 0 a
+put s 1 add get s 1 b
+put s 2 add get s 2 c
+put s 3 add get s 3 d
+put s 4 add get s 4 e
+put s 5 add get s 5 f
+put s 6 add get s 6 g
+put s 7 add get s 7 h
+end
+text hexd "0123456789abcdef "
+fn hexout s view uint 8 to void
+for i ulong 8
+v = get s i
+for j2 ulong 8
+sh = sub uint 28 mul uint j2 4
+d = ulong and shr v sh 15
+q = add mul i 8 j2
+put hexo q get hexd d
+end
+end
+end
+fn tailblk s edit uint 8 w edit uint 64 kt view uint 64 n ulong to void
+p = new uchar 128 0
+off = shl shr n 6 6
+k = sub n off
+for i ulong k
+put p i get fbuf add off i
+end
+put p k 0x80
+e = ulong 64
+if ge k 56
+e = 128
+end
+bits = shl n 3
+for i ulong 8 unroll
+put p sub e add i 1 uchar and shr bits mul i 8 0xff
+end
+schedp w view p 0
+rounds s view w kt
+if eq e 128
+schedp w view p 64
+rounds s view w kt
+end
+end
+fn shafbuf n ulong to void
+s = new uint 8 0
+w = new uint 64 0
+kt = new uint 64 0
+kinit kt
+iv s
+nbl = shr n 6
+j = ulong 0
+while lt j nbl bound 999999
+sched w shl j 6
+rounds s view w view kt
+j = add j 1
+end
+tailblk s w view kt n
+hexout view s
+end
+text tline "\n"
+fn say t view uchar * to void
+w = write 1 t 0 len t
+end
+fn sayn v ulong to void
+d = new uchar 24 0
+x = v
+k = ulong 0
+go = true
+while go bound 30
+put d k uchar add 48 rem x 10
+k = add k 1
+x = div x 10
+go = gt x 0
+end
+while gt k 0 bound 30
+k = sub k 1
+w = write 1 d k 1
+end
+end
+fn pab b uchar to void
+k = get gv PAN
+put pa k b
+put gv PAN add k 1
+end
+fn pat t view uchar * to void
+for i ulong len t
+pab get t i
+end
+end
+fn setpa t view uchar * to void
+put gv PAN 0
+pat t
+end
+fn pbcopy to void
+k = get gv PAN
+for i ulong k
+put pb i get pa i
+end
+put gv PBN k
+end
+fn pkstart to void
+put pk 0 0
+put pk 1 0
+put gv PKN 2
+end
+fn pkb b uchar to void
+k = get gv PKN
+put pk k b
+put gv PKN add k 1
+end
+fn pkcnt to void
+c = add ulong get pk 0 shl ulong get pk 1 8
+c = add c 1
+put pk 0 uchar and c 255
+put pk 1 uchar shr c 8
+end
+fn pkt t view uchar * to void
+pkcnt
+n = len t
+pkb uchar and n 255
+pkb uchar shr n 8
+for i ulong n
+pkb get t i
+end
+end
+note pkfb: append fbuf o..o+n as one argument
+fn pkfb o ulong n ulong to void
+pkcnt
+pkb uchar and n 255
+pkb uchar shr n 8
+for i ulong n
+pkb get eb add o i
+end
+end
+fn pkpa to void
+pkcnt
+n = get gv PAN
+pkb uchar and n 255
+pkb uchar shr n 8
+for i ulong n
+pkb get pa i
+end
+end
+fn pkbin which ulong to void
+pkcnt
+n = get gv OMN
+if eq which 1
+n = get gv CBN
+end
+pkb uchar and n 255
+pkb uchar shr n 8
+for i ulong n
+if eq which 1
+pkb get cb i
+else
+pkb get omc i
+end
+end
+end
+fn rdpa to long
+fd = fopen pa 0 get gv PAN 0 0
+if lt fd 0
+ret fd
+end
+n = ulong 0
+go = true
+while go bound 999999
+r = read int fd fbuf n sub FCAP n
+if le r 0
+go = false
+else
+n = add n ulong r
+end
+if eq n FCAP
+go = false
+end
+end
+c = fclose int fd
+ret long n
+end
+fn wrpa n ulong to bool
+fd = fopen pa 0 get gv PAN 577 420
+if lt fd 0
+ret false
+end
+o = ulong 0
+while lt o n bound 999999
+w = write int fd eb o sub n o
+if le w 0
+c = fclose int fd
+ret false
+end
+o = add o ulong w
+end
+c2 = fclose int fd
+ret true
+end
+fn waitst pid long to long
+st = new uchar 8 0
+r = waitpid int pid st 0 8 0
+if lt r 0
+ret -1
+end
+s = ulong get st 0
+if ne and s 127 0
+ret long add 1000 and s 127
+end
+ret long get st 1
+end
+note spawn pk with stdin from pb (/dev/null when PBN is 0), stdout and stderr merged into pa
+text tnull "/dev/null"
+fn spawn to long
+pid = fork
+if lt pid 0
+ret -1
+end
+if eq pid 0
+i = int 0
+if eq get gv PBN 0
+i = int fopen tnull 0 len tnull 0 0
+else
+i = int fopen pb 0 get gv PBN 0 0
+end
+o = int fopen pa 0 get gv PAN 577 493
+if or lt i 0 lt o 0
+exit 120
+end
+d0 = dupfd i 0 0
+d1 = dupfd o 1 0
+d2 = dupfd o 2 0
+x = execprog pk 0 get gv PKN
+exit 121
+end
+ret waitst pid
+end
+text tout "build/claimcheck-tests/out"
+note run pk; the merged output is read into ob (ON bytes)
+fn runcase to long
+setpa tout
+rc = spawn
+n = rdpa
+put gv ON 0
+if ge n 0
+for i ulong ulong n
+put ob i get fbuf i
+end
+put gv ON ulong n
+end
+ret rc
+end
+fn obeq s ulong o ulong m ulong to bool
+for i ulong m
+if ne get ob add s i get eb add o i
+ret false
+end
+end
+ret true
+end
+note hasline: eb o..o+m is a whole line of ob
+fn hasline o ulong m ulong to bool
+n = get gv ON
+if lt n add m 1
+ret false
+end
+s = ulong 0
+while le s sub n add m 1 bound 999999
+st = eq s 0
+if not st
+st = eq get ob sub s 1 10
+end
+if st
+if eq get ob add s m 10
+if obeq s o m
+ret true
+end
+end
+end
+s = add s 1
+end
+ret false
+end
+text tpass "PASS "
+text tfailc "FAIL "
+text trc " (rc="
+text tgot " got rc="
+text tclose ")\n"
+fn verdict ok bool no ulong nn ulong rc long to void
+put gv CASES add get gv CASES 1
+if ok
+say tpass
+else
+say tfailc
+put gv FAILS add get gv FAILS 1
+end
+w = write 1 eb no nn
+if ok
+say trc
+else
+say tgot
+end
+v = ulong rc
+if lt rc 0
+v = 999
+end
+sayn v
+say tclose
+end
+note list fields: fld returns the end of the field starting at o in eb (tab or newline)
+fn fld o ulong to ulong
+e = o
+while and ne get eb e 9 ne get eb e 10 bound 999999
+e = add e 1
+end
+ret e
+end
+fn num o ulong e ulong to long
+v = long 0
+for i ulong sub e o
+v = add mul v 10 long sub get eb add o i 48
+end
+ret v
+end
+fn ldtext t view uchar * to ulong
+for i ulong len t
+put eb i get t i
+end
+ret len t
+end
+text tdash "-"
+fn isdash o ulong e ulong to bool
+ret and eq sub e o 1 eq get eb o 45
+end
+note one table case starting at o of the list in eb; returns the next record offset
+fn tcase o ulong which ulong to ulong
+e1 = fld o
+e2 = fld add e1 1
+e3 = fld add e2 1
+e4 = fld add e3 1
+e5 = fld add e4 1
+want = num add e1 1 e2
+pkstart
+pkbin which
+pkfb add e2 1 sub sub e3 e2 1
+if not isdash add e3 1 e4
+pkfb add e3 1 sub sub e4 e3 1
+end
+put gv PBN 0
+rc = runcase
+ok = and eq rc want hasline add e4 1 sub sub e5 e4 1
+verdict ok o sub e1 o rc
+ret add e5 1
+end
+text tbin "build/claimcheck"
+text tjudge "judge"
+text tstr "tests/fixtures/claimcheck/streams/"
+text ttxt ".txt"
+fn jcase o ulong to ulong
+e1 = fld o
+e2 = fld add e1 1
+e3 = fld add e2 1
+want = num add e1 1 e2
+put gv PAN 0
+pat tstr
+for i ulong sub e1 o
+pab get eb add o i
+end
+pat ttxt
+pbcopy
+pkstart
+pkbin 1
+pkt tjudge
+rc = runcase
+ok = eq rc want
+if isdash add e2 1 e3
+ok = and ok eq get gv ON 0
+else
+ok = and ok hasline add e2 1 sub sub e3 e2 1
+end
+verdict ok o sub e1 o rc
+ret add e3 1
+end
+text tcases "good-prep\t0\tprep\ttests/fixtures/claimcheck/table.tsv\tCLAIMCHECK PASS rows=3 checked=4 not_run=1 unsupported=0 external=1 fixed=0 gates=4 gates_open=0\ngood-tag\t0\ttag\ttests/fixtures/claimcheck/table.tsv\tTAG-READY yes\nreceipt-text-mismatch\t1\tprep\ttests/fixtures/claimcheck/cases/expect.tsv\tBAD C1 C mismatch\ndocument-line-moved\t1\tprep\ttests/fixtures/claimcheck/cases/docline.tsv\tBAD C1 D mismatch\nreceipt-line-past-end\t1\tprep\ttests/fixtures/claimcheck/cases/pastend.tsv\tBAD C1 C missing\nreceipt-file-missing\t1\tprep\ttests/fixtures/claimcheck/cases/missing.tsv\tBAD C1 C missing\nsupported-without-receipt\t1\tprep\ttests/fixtures/claimcheck/cases/nocite.tsv\tBAD C1 C nocite\nrow-without-document\t1\tprep\ttests/fixtures/claimcheck/cases/nodoc.tsv\tBAD C1 D nodoc\ncited-dash-expect\t1\tprep\ttests/fixtures/claimcheck/cases/dashexpect.tsv\tBAD C1 C noexpect\nunknown-status\t1\tprep\ttests/fixtures/claimcheck/cases/status.tsv\tBAD C1 D status\npath-escape-refused\t1\tprep\ttests/fixtures/claimcheck/cases/escape.tsv\tBAD C1 C missing\nnon-numeric-line\t1\tprep\ttests/fixtures/claimcheck/cases/nonnum.tsv\tBAD C1 C missing\nsymlink-inside-accepted\t0\tprep\ttests/fixtures/claimcheck/cases/symlinkin.tsv\tCLAIMCHECK PASS rows=3 checked=4 not_run=1 unsupported=0 external=1 fixed=0 gates=4 gates_open=0\nsymlink-outside-refused\t1\tprep\ttests/fixtures/claimcheck/cases/symlink.tsv\tBAD C1 C missing\nunsupported-prep\t0\tprep\ttests/fixtures/claimcheck/cases/unsup.tsv\tTAG-READY no\nunsupported-tag\t3\ttag\ttests/fixtures/claimcheck/cases/unsup.tsv\tTAG-READY no\ngate-open-tag\t3\ttag\ttests/fixtures/claimcheck/cases/gate.tsv\tGATE-OPEN G1 tests/fixtures/claimcheck/gate-absent.txt\ngate-directory-refused\t3\ttag\ttests/fixtures/claimcheck/cases/gatedir.tsv\tGATE-OPEN G1 tests/fixtures/claimcheck\ngate-absolute-refused\t3\ttag\ttests/fixtures/claimcheck/cases/gateabs.tsv\tGATE-OPEN G1 /bin/sh\ngate-traversal-refused\t3\ttag\ttests/fixtures/claimcheck/cases/gatetrav.tsv\tGATE-OPEN G1 tests/../tests/fixtures/claimcheck/gate.txt\nrequired-gate-row-absent\t3\ttag\ttests/fixtures/claimcheck/cases/gatemissingrow.tsv\tGATE-OPEN G4 (no GATE row in the table)\ngate-id-repeated\t4\tprep\ttests/fixtures/claimcheck/cases/gaterepeat.tsv\ttests/fixtures/claimcheck/cases/gaterepeat.tsv: line 6: gate G1 repeated\ngate-id-combined\t4\ttag\ttests/fixtures/claimcheck/cases/gatecombined.tsv\ttests/fixtures/claimcheck/cases/gatecombined.tsv: line 5: id is not one token\nmalformed-table\t4\tprep\ttests/fixtures/claimcheck/cases/malformed.tsv\ttests/fixtures/claimcheck/cases/malformed.tsv: line 1: 2 fields, want 6\nempty-field\t4\tprep\ttests/fixtures/claimcheck/cases/emptyfield.tsv\ttests/fixtures/claimcheck/cases/emptyfield.tsv: line 2: field 4 empty\nno-claim-rows\t4\tprep\ttests/fixtures/claimcheck/cases/noclaims.tsv\ttests/fixtures/claimcheck/cases/noclaims.tsv: no claim rows\nunterminated-table\t4\ttag\ttests/fixtures/claimcheck/cases/unterminated.tsv\ttests/fixtures/claimcheck/cases/unterminated.tsv: last line has no newline\ncomment-lines-skipped\t0\ttag\ttests/fixtures/claimcheck/cases/comment.tsv\tTAG-READY yes\ncite-without-line-number\t1\tprep\ttests/fixtures/claimcheck/cases/nocolon.tsv\tBAD C1 C missing\nline-number-leading-zero\t0\tprep\ttests/fixtures/claimcheck/cases/leadzero.tsv\tCLAIMCHECK PASS rows=3 checked=4 not_run=1 unsupported=0 external=1 fixed=0 gates=4 gates_open=0\nline-number-zero\t1\tprep\ttests/fixtures/claimcheck/cases/linezero.tsv\tBAD C1 C missing\nline-number-overflow\t1\tprep\ttests/fixtures/claimcheck/cases/hugeline.tsv\tBAD C1 C missing\ncarriage-return-kept\t1\tprep\ttests/fixtures/claimcheck/cases/crlf.tsv\tBAD C1 C mismatch\nwrong-receipt-line\t1\tprep\ttests/fixtures/claimcheck/cases/lastline.tsv\tBAD C1 C mismatch\ndot-slash-path\t0\tprep\ttests/fixtures/claimcheck/cases/dotslash.tsv\tCLAIMCHECK PASS rows=3 checked=4 not_run=1 unsupported=0 external=1 fixed=0 gates=4 gates_open=0\ndotdot-final-component\t1\tprep\ttests/fixtures/claimcheck/cases/dotdotend.tsv\tBAD C1 C missing\nempty-line\t4\tprep\ttests/fixtures/claimcheck/cases/emptyline.tsv\ttests/fixtures/claimcheck/cases/emptyline.tsv: line 9: 0 fields, want 6\nevery-shape-error-reported\t4\tprep\ttests/fixtures/claimcheck/cases/multierr.tsv\ttests/fixtures/claimcheck/cases/multierr.tsv: line 4: gate C9 repeated\nempty-table\t4\tprep\ttests/fixtures/claimcheck/cases/empty.tsv\ttests/fixtures/claimcheck/cases/empty.tsv: no claim rows\ntable-missing\t2\tprep\ttests/fixtures/claimcheck/cases/nonexistent.tsv\tclaims table missing: tests/fixtures/claimcheck/cases/nonexistent.tsv\ntable-directory\t2\ttag\ttests/fixtures/claimcheck\tclaims table missing: tests/fixtures/claimcheck\nunknown-mode\t2\tbogus\t-\tusage: claimcheck [prep|tag] [TABLE] (run from the repository root; claimcheck judge reads a record stream)\n"
+text tjcases "judge-no-mode\t4\t-\njudge-mode-repeated\t4\t-\njudge-mode-unknown\t4\t-\njudge-mode-missing\t4\t-\njudge-short-record\t4\t-\njudge-unknown-side\t4\t-\njudge-unknown-found\t4\t-\njudge-short-gate\t4\t-\njudge-no-claim-rows\t4\t-\njudge-unterminated\t4\t-\njudge-document-without-receipt\t4\t-\njudge-receipt-without-document\t4\t-\njudge-receipt-other-id\t4\t-\njudge-gate-inside-pair\t4\t-\nwell-formed\t0\tTAG-READY yes\nbad-mismatch\t1\tBAD C1 D mismatch\n"
+fn allcases to void
+n = ldtext tcases
+o = ulong 0
+while lt o n bound 1000
+o = tcase o 1
+end
+n2 = ldtext tjcases
+o2 = ulong 0
+while lt o2 n2 bound 1000
+o2 = jcase o2
+end
+end
+note ---- mutant: one line of tools/claimcheck.om replaced, compiled to build/claimcheck-tests/mutant ----
+text tsrc "tools/claimcheck.om"
+text tma "\nif has 5 6\n"
+text tmb "\nif ge get fl 6 0\n"
+text tmsrc "build/claimcheck-tests/mutant.om"
+text tmbin "build/claimcheck-tests/mutant"
+text tmcase "judge-mutant-accepts-mismatch\t0\tprep\ttests/fixtures/claimcheck/cases/expect.tsv\tCLAIMCHECK PASS rows=3 checked=4 not_run=1 unsupported=0 external=1 fixed=0 gates=4 gates_open=0\n"
+fn matchat s ulong to bool
+for i ulong len tma
+if ne get fbuf add s i get tma i
+ret false
+end
+end
+ret true
+end
+note mutate: fbuf 0..n with tma replaced by tmb (exactly one occurrence) into eb; its length, 0 if not one
+fn mutate n ulong to ulong
+hits = ulong 0
+o = ulong 0
+s = ulong 0
+while lt s n bound 999999
+if and le add s len tma n matchat s
+hits = add hits 1
+for i ulong len tmb
+put eb add o i get tmb i
+end
+o = add o len tmb
+s = add s len tma
+else
+put eb o get fbuf s
+o = add o 1
+s = add s 1
+end
+end
+if ne hits 1
+ret 0
+end
+ret o
+end
+fn compile to bool
+pkstart
+pkbin 0
+rc = spawn
+ret eq rc 0
+end
+fn setcb to void
+k = get gv PAN
+for i ulong k
+put cb i get pa i
+end
+put gv CBN k
+end
+fn mutant to bool
+setpa tsrc
+n = rdpa
+if le n 0
+ret false
+end
+m = mutate ulong n
+if eq m 0
+ret false
+end
+setpa tmsrc
+if not wrpa m
+ret false
+end
+pbcopy
+setpa tmbin
+if not compile
+ret false
+end
+setcb
+n2 = ldtext tmcase
+o = tcase 0 1
+ret true
+end
+note ---- setup ----
+text tbuild "build"
+text tw "build/claimcheck-tests"
+text tinl "build/claimcheck-tests/inside-link"
+text tint "../../tests/fixtures/claimcheck/receipt.log"
+text toutl "build/claimcheck-tests/outside-link"
+text toutf "/tmp/omega-bridge-claimcheck-outside"
+text toutc "PASS 7 of 7\n"
+fn mklink tgt view uchar * lnk view uchar * to bool
+setpa lnk
+u = unlink pa 0 get gv PAN
+pkstart
+pkt tgt
+pkt lnk
+r = symlnk pk 0 get gv PKN
+ret ge r 0
+end
+fn setup to bool
+setpa tbuild
+m = makedir pa 0 get gv PAN 493
+setpa tw
+m2 = makedir pa 0 get gv PAN 493
+setpa toutf
+k = ldtext toutc
+if not wrpa k
+ret false
+end
+ret and mklink tint tinl mklink toutf toutl
+end
+text tusage "usage: claimcheck_test OMC (run from the repository root)\n"
+text tpin "2c82480596bbdc50cda9626866209ef662d5834f278f839ff4ce0250c495029f "
+text twrong "claimcheck_test: omc sha256 is not the seeded omega-mv e5b32567 compiler 2c824805 \n"
+text tsetup "claimcheck_test: setup failed: "
+text tssym "scratch directory or symlink fixtures\n"
+text tscomp "compiling tools/claimcheck.om\n"
+text tsmut "building the judge mutant\n"
+text tsum1 "claimcheck cases="
+text tsum2 " failures="
+text tsum3 " RC="
+fn omcok to bool
+put gv PAN 0
+k = get gv OMN
+for i ulong k
+pab get omc i
+end
+n = rdpa
+if lt n 0
+ret false
+end
+shafbuf ulong n
+for i ulong 64
+if ne get hexo i get tpin i
+ret false
+end
+end
+ret true
+end
+fn setupfail t view uchar * to int
+say tsetup
+say t
+ret 2
+end
+fn main to int
+if ne argcnt 2
+w = write 2 tusage 0 len tusage
+ret 2
+end
+r = argread 1 omc 0 4096
+if le r 0
+w2 = write 2 tusage 0 len tusage
+ret 2
+end
+put gv OMN ulong r
+if not omcok
+say twrong
+ret 65
+end
+if not setup
+ret setupfail tssym
+end
+setpa tsrc
+pbcopy
+setpa tbin
+if not compile
+ret setupfail tscomp
+end
+setcb
+put gv PBN 0
+allcases
+if not mutant
+ret setupfail tsmut
+end
+setpa toutf
+u = unlink pa 0 get gv PAN
+say tsum1
+sayn get gv CASES
+say tsum2
+f = get gv FAILS
+sayn f
+say tsum3
+if eq f 0
+sayn 0
+say tline
+ret 0
+end
+sayn 1
+say tline
+ret 1
+end
diff --git a/tests/fixtures/claimcheck/cases/comment.tsv b/tests/fixtures/claimcheck/cases/comment.tsv
new file mode 100644
index 0000000 ..ebfe4df
--- /dev/null
+++ b/tests/fixtures/claimcheck/cases/comment.tsv
@@ -0,0 +1,10 @@
+# a comment
+# claimcheck fixture table (tests/claimcheck_test.om); not release evidence
+C1 SUPPORTED tests/fixtures/claimcheck/doc.md:1 alpha claim tests/fixtures/claimcheck/receipt.log:2 PASS 7 of 7
+C2 NOT_RUN tests/fixtures/claimcheck/doc.md:2 needs hardware - -
+C3 EXTERNAL tests/fixtures/claimcheck/doc.md:3 gamma claim - -
+G1 GATE - - tests/fixtures/claimcheck/gate.txt -
+G2 GATE - - tests/fixtures/claimcheck/gate.txt -
+G3 GATE - - tests/fixtures/claimcheck/gate.txt -
+G4 GATE - - tests/fixtures/claimcheck/gate.txt -
+#tail comment
diff --git a/tests/fixtures/claimcheck/cases/crlf.tsv b/tests/fixtures/claimcheck/cases/crlf.tsv
new file mode 100644
index 0000000 ..51e1cd5
--- /dev/null
+++ b/tests/fixtures/claimcheck/cases/crlf.tsv
@@ -0,0 +1,8 @@
+# claimcheck fixture table (tests/claimcheck_test.om); not release evidence
+C1 SUPPORTED tests/fixtures/claimcheck/doc.md:1 alpha claim tests/fixtures/claimcheck/receipt.log:2 PASS 7 of 7
+C2 NOT_RUN tests/fixtures/claimcheck/doc.md:2 needs hardware - -
+C3 EXTERNAL tests/fixtures/claimcheck/doc.md:3 gamma claim - -
+G1 GATE - - tests/fixtures/claimcheck/gate.txt -
+G2 GATE - - tests/fixtures/claimcheck/gate.txt -
+G3 GATE - - tests/fixtures/claimcheck/gate.txt -
+G4 GATE - - tests/fixtures/claimcheck/gate.txt -
diff --git a/tests/fixtures/claimcheck/cases/dashexpect.tsv b/tests/fixtures/claimcheck/cases/dashexpect.tsv
new file mode 100644
index 0000000 ..7c969a0
--- /dev/null
+++ b/tests/fixtures/claimcheck/cases/dashexpect.tsv
@@ -0,0 +1,8 @@
+# claimcheck fixture table (tests/claimcheck_test.om); not release evidence
+C1 SUPPORTED tests/fixtures/claimcheck/doc.md:1 alpha claim tests/fixtures/claimcheck/receipt.log:2 -
+C2 NOT_RUN tests/fixtures/claimcheck/doc.md:2 needs hardware - -
+C3 EXTERNAL tests/fixtures/claimcheck/doc.md:3 gamma claim - -
+G1 GATE - - tests/fixtures/claimcheck/gate.txt -
+G2 GATE - - tests/fixtures/claimcheck/gate.txt -
+G3 GATE - - tests/fixtures/claimcheck/gate.txt -
+G4 GATE - - tests/fixtures/claimcheck/gate.txt -
diff --git a/tests/fixtures/claimcheck/cases/docline.tsv b/tests/fixtures/claimcheck/cases/docline.tsv
new file mode 100644
index 0000000 ..3c4f678
--- /dev/null
+++ b/tests/fixtures/claimcheck/cases/docline.tsv
@@ -0,0 +1,8 @@
+# claimcheck fixture table (tests/claimcheck_test.om); not release evidence
+C1 SUPPORTED tests/fixtures/claimcheck/doc.md:2 alpha claim tests/fixtures/claimcheck/receipt.log:2 PASS 7 of 7
+C2 NOT_RUN tests/fixtures/claimcheck/doc.md:2 needs hardware - -
+C3 EXTERNAL tests/fixtures/claimcheck/doc.md:3 gamma claim - -
+G1 GATE - - tests/fixtures/claimcheck/gate.txt -
+G2 GATE - - tests/fixtures/claimcheck/gate.txt -
+G3 GATE - - tests/fixtures/claimcheck/gate.txt -
+G4 GATE - - tests/fixtures/claimcheck/gate.txt -
diff --git a/tests/fixtures/claimcheck/cases/dotdotend.tsv b/tests/fixtures/claimcheck/cases/dotdotend.tsv
new file mode 100644
index 0000000 ..eb8cb35
--- /dev/null
+++ b/tests/fixtures/claimcheck/cases/dotdotend.tsv
@@ -0,0 +1,8 @@
+# claimcheck fixture table (tests/claimcheck_test.om); not release evidence
+C1 SUPPORTED tests/fixtures/claimcheck/doc.md:1 alpha claim tests/fixtures/..:2 PASS 7 of 7
+C2 NOT_RUN tests/fixtures/claimcheck/doc.md:2 needs hardware - -
+C3 EXTERNAL tests/fixtures/claimcheck/doc.md:3 gamma claim - -
+G1 GATE - - tests/fixtures/claimcheck/gate.txt -
+G2 GATE - - tests/fixtures/claimcheck/gate.txt -
+G3 GATE - - tests/fixtures/claimcheck/gate.txt -
+G4 GATE - - tests/fixtures/claimcheck/gate.txt -
diff --git a/tests/fixtures/claimcheck/cases/dotslash.tsv b/tests/fixtures/claimcheck/cases/dotslash.tsv
new file mode 100644
index 0000000 ..47bfadf
--- /dev/null
+++ b/tests/fixtures/claimcheck/cases/dotslash.tsv
@@ -0,0 +1,8 @@
+# claimcheck fixture table (tests/claimcheck_test.om); not release evidence
+C1 SUPPORTED tests/fixtures/claimcheck/doc.md:1 alpha claim ./tests/fixtures/claimcheck/receipt.log:2 PASS 7 of 7
+C2 NOT_RUN tests/fixtures/claimcheck/doc.md:2 needs hardware - -
+C3 EXTERNAL tests/fixtures/claimcheck/doc.md:3 gamma claim - -
+G1 GATE - - tests/fixtures/claimcheck/gate.txt -
+G2 GATE - - tests/fixtures/claimcheck/gate.txt -
+G3 GATE - - tests/fixtures/claimcheck/gate.txt -
+G4 GATE - - tests/fixtures/claimcheck/gate.txt -
diff --git a/tests/fixtures/claimcheck/cases/empty.tsv b/tests/fixtures/claimcheck/cases/empty.tsv
new file mode 100644
index 0000000 ..e69de29
diff --git a/tests/fixtures/claimcheck/cases/emptyfield.tsv b/tests/fixtures/claimcheck/cases/emptyfield.tsv
new file mode 100644
index 0000000 ..372bf2f
--- /dev/null
+++ b/tests/fixtures/claimcheck/cases/emptyfield.tsv
@@ -0,0 +1,8 @@
+# claimcheck fixture table (tests/claimcheck_test.om); not release evidence
+C1 SUPPORTED tests/fixtures/claimcheck/doc.md:1 tests/fixtures/claimcheck/receipt.log:2 PASS 7 of 7
+C2 NOT_RUN tests/fixtures/claimcheck/doc.md:2 needs hardware - -
+C3 EXTERNAL tests/fixtures/claimcheck/doc.md:3 gamma claim - -
+G1 GATE - - tests/fixtures/claimcheck/gate.txt -
+G2 GATE - - tests/fixtures/claimcheck/gate.txt -
+G3 GATE - - tests/fixtures/claimcheck/gate.txt -
+G4 GATE - - tests/fixtures/claimcheck/gate.txt -
diff --git a/tests/fixtures/claimcheck/cases/emptyline.tsv b/tests/fixtures/claimcheck/cases/emptyline.tsv
new file mode 100644
index 0000000 ..86d7e81
--- /dev/null
+++ b/tests/fixtures/claimcheck/cases/emptyline.tsv
@@ -0,0 +1,9 @@
+# claimcheck fixture table (tests/claimcheck_test.om); not release evidence
+C1 SUPPORTED tests/fixtures/claimcheck/doc.md:1 alpha claim tests/fixtures/claimcheck/receipt.log:2 PASS 7 of 7
+C2 NOT_RUN tests/fixtures/claimcheck/doc.md:2 needs hardware - -
+C3 EXTERNAL tests/fixtures/claimcheck/doc.md:3 gamma claim - -
+G1 GATE - - tests/fixtures/claimcheck/gate.txt -
+G2 GATE - - tests/fixtures/claimcheck/gate.txt -
+G3 GATE - - tests/fixtures/claimcheck/gate.txt -
+G4 GATE - - tests/fixtures/claimcheck/gate.txt -
+
diff --git a/tests/fixtures/claimcheck/cases/escape.tsv b/tests/fixtures/claimcheck/cases/escape.tsv
new file mode 100644
index 0000000 ..8aaf964
--- /dev/null
+++ b/tests/fixtures/claimcheck/cases/escape.tsv
@@ -0,0 +1,8 @@
+# claimcheck fixture table (tests/claimcheck_test.om); not release evidence
+C1 SUPPORTED tests/fixtures/claimcheck/doc.md:1 alpha claim ../tests/fixtures/claimcheck/receipt.log:2 PASS 7 of 7
+C2 NOT_RUN tests/fixtures/claimcheck/doc.md:2 needs hardware - -
+C3 EXTERNAL tests/fixtures/claimcheck/doc.md:3 gamma claim - -
+G1 GATE - - tests/fixtures/claimcheck/gate.txt -
+G2 GATE - - tests/fixtures/claimcheck/gate.txt -
+G3 GATE - - tests/fixtures/claimcheck/gate.txt -
+G4 GATE - - tests/fixtures/claimcheck/gate.txt -
diff --git a/tests/fixtures/claimcheck/cases/expect.tsv b/tests/fixtures/claimcheck/cases/expect.tsv
new file mode 100644
index 0000000 ..889fbd3
--- /dev/null
+++ b/tests/fixtures/claimcheck/cases/expect.tsv
@@ -0,0 +1,8 @@
+# claimcheck fixture table (tests/claimcheck_test.om); not release evidence
+C1 SUPPORTED tests/fixtures/claimcheck/doc.md:1 alpha claim tests/fixtures/claimcheck/receipt.log:2 PASS 8 of 7
+C2 NOT_RUN tests/fixtures/claimcheck/doc.md:2 needs hardware - -
+C3 EXTERNAL tests/fixtures/claimcheck/doc.md:3 gamma claim - -
+G1 GATE - - tests/fixtures/claimcheck/gate.txt -
+G2 GATE - - tests/fixtures/claimcheck/gate.txt -
+G3 GATE - - tests/fixtures/claimcheck/gate.txt -
+G4 GATE - - tests/fixtures/claimcheck/gate.txt -
diff --git a/tests/fixtures/claimcheck/cases/gate.tsv b/tests/fixtures/claimcheck/cases/gate.tsv
new file mode 100644
index 0000000 ..0a66c4b
--- /dev/null
+++ b/tests/fixtures/claimcheck/cases/gate.tsv
@@ -0,0 +1,8 @@
+# claimcheck fixture table (tests/claimcheck_test.om); not release evidence
+C1 SUPPORTED tests/fixtures/claimcheck/doc.md:1 alpha claim tests/fixtures/claimcheck/receipt.log:2 PASS 7 of 7
+C2 NOT_RUN tests/fixtures/claimcheck/doc.md:2 needs hardware - -
+C3 EXTERNAL tests/fixtures/claimcheck/doc.md:3 gamma claim - -
+G1 GATE - - tests/fixtures/claimcheck/gate-absent.txt -
+G2 GATE - - tests/fixtures/claimcheck/gate.txt -
+G3 GATE - - tests/fixtures/claimcheck/gate.txt -
+G4 GATE - - tests/fixtures/claimcheck/gate.txt -
diff --git a/tests/fixtures/claimcheck/cases/gateabs.tsv b/tests/fixtures/claimcheck/cases/gateabs.tsv
new file mode 100644
index 0000000 ..beed2b3
--- /dev/null
+++ b/tests/fixtures/claimcheck/cases/gateabs.tsv
@@ -0,0 +1,8 @@
+# claimcheck fixture table (tests/claimcheck_test.om); not release evidence
+C1 SUPPORTED tests/fixtures/claimcheck/doc.md:1 alpha claim tests/fixtures/claimcheck/receipt.log:2 PASS 7 of 7
+C2 NOT_RUN tests/fixtures/claimcheck/doc.md:2 needs hardware - -
+C3 EXTERNAL tests/fixtures/claimcheck/doc.md:3 gamma claim - -
+G1 GATE - - /bin/sh -
+G2 GATE - - tests/fixtures/claimcheck/gate.txt -
+G3 GATE - - tests/fixtures/claimcheck/gate.txt -
+G4 GATE - - tests/fixtures/claimcheck/gate.txt -
diff --git a/tests/fixtures/claimcheck/cases/gatecombined.tsv b/tests/fixtures/claimcheck/cases/gatecombined.tsv
new file mode 100644
index 0000000 ..843e15e
--- /dev/null
+++ b/tests/fixtures/claimcheck/cases/gatecombined.tsv
@@ -0,0 +1,5 @@
+# claimcheck fixture table (tests/claimcheck_test.om); not release evidence
+C1 SUPPORTED tests/fixtures/claimcheck/doc.md:1 alpha claim tests/fixtures/claimcheck/receipt.log:2 PASS 7 of 7
+C2 NOT_RUN tests/fixtures/claimcheck/doc.md:2 needs hardware - -
+C3 EXTERNAL tests/fixtures/claimcheck/doc.md:3 gamma claim - -
+G1 G2 G3 G4 GATE - - tests/fixtures/claimcheck/gate.txt -
diff --git a/tests/fixtures/claimcheck/cases/gatedir.tsv b/tests/fixtures/claimcheck/cases/gatedir.tsv
new file mode 100644
index 0000000 ..820b2e0
--- /dev/null
+++ b/tests/fixtures/claimcheck/cases/gatedir.tsv
@@ -0,0 +1,8 @@
+# claimcheck fixture table (tests/claimcheck_test.om); not release evidence
+C1 SUPPORTED tests/fixtures/claimcheck/doc.md:1 alpha claim tests/fixtures/claimcheck/receipt.log:2 PASS 7 of 7
+C2 NOT_RUN tests/fixtures/claimcheck/doc.md:2 needs hardware - -
+C3 EXTERNAL tests/fixtures/claimcheck/doc.md:3 gamma claim - -
+G1 GATE - - tests/fixtures/claimcheck -
+G2 GATE - - tests/fixtures/claimcheck/gate.txt -
+G3 GATE - - tests/fixtures/claimcheck/gate.txt -
+G4 GATE - - tests/fixtures/claimcheck/gate.txt -
diff --git a/tests/fixtures/claimcheck/cases/gatemissingrow.tsv b/tests/fixtures/claimcheck/cases/gatemissingrow.tsv
new file mode 100644
index 0000000 ..3a6dd83
--- /dev/null
+++ b/tests/fixtures/claimcheck/cases/gatemissingrow.tsv
@@ -0,0 +1,7 @@
+# claimcheck fixture table (tests/claimcheck_test.om); not release evidence
+C1 SUPPORTED tests/fixtures/claimcheck/doc.md:1 alpha claim tests/fixtures/claimcheck/receipt.log:2 PASS 7 of 7
+C2 NOT_RUN tests/fixtures/claimcheck/doc.md:2 needs hardware - -
+C3 EXTERNAL tests/fixtures/claimcheck/doc.md:3 gamma claim - -
+G1 GATE - - tests/fixtures/claimcheck/gate.txt -
+G2 GATE - - tests/fixtures/claimcheck/gate.txt -
+G3 GATE - - tests/fixtures/claimcheck/gate.txt -
diff --git a/tests/fixtures/claimcheck/cases/gaterepeat.tsv b/tests/fixtures/claimcheck/cases/gaterepeat.tsv
new file mode 100644
index 0000000 ..fba9836
--- /dev/null
+++ b/tests/fixtures/claimcheck/cases/gaterepeat.tsv
@@ -0,0 +1,8 @@
+# claimcheck fixture table (tests/claimcheck_test.om); not release evidence
+C1 SUPPORTED tests/fixtures/claimcheck/doc.md:1 alpha claim tests/fixtures/claimcheck/receipt.log:2 PASS 7 of 7
+C2 NOT_RUN tests/fixtures/claimcheck/doc.md:2 needs hardware - -
+C3 EXTERNAL tests/fixtures/claimcheck/doc.md:3 gamma claim - -
+G1 GATE - - tests/fixtures/claimcheck/gate.txt -
+G1 GATE - - tests/fixtures/claimcheck/gate.txt -
+G3 GATE - - tests/fixtures/claimcheck/gate.txt -
+G4 GATE - - tests/fixtures/claimcheck/gate.txt -
diff --git a/tests/fixtures/claimcheck/cases/gatetrav.tsv b/tests/fixtures/claimcheck/cases/gatetrav.tsv
new file mode 100644
index 0000000 ..e9a854e
--- /dev/null
+++ b/tests/fixtures/claimcheck/cases/gatetrav.tsv
@@ -0,0 +1,8 @@
+# claimcheck fixture table (tests/claimcheck_test.om); not release evidence
+C1 SUPPORTED tests/fixtures/claimcheck/doc.md:1 alpha claim tests/fixtures/claimcheck/receipt.log:2 PASS 7 of 7
+C2 NOT_RUN tests/fixtures/claimcheck/doc.md:2 needs hardware - -
+C3 EXTERNAL tests/fixtures/claimcheck/doc.md:3 gamma claim - -
+G1 GATE - - tests/../tests/fixtures/claimcheck/gate.txt -
+G2 GATE - - tests/fixtures/claimcheck/gate.txt -
+G3 GATE - - tests/fixtures/claimcheck/gate.txt -
+G4 GATE - - tests/fixtures/claimcheck/gate.txt -
diff --git a/tests/fixtures/claimcheck/cases/hugeline.tsv b/tests/fixtures/claimcheck/cases/hugeline.tsv
new file mode 100644
index 0000000 ..e811872
--- /dev/null
+++ b/tests/fixtures/claimcheck/cases/hugeline.tsv
@@ -0,0 +1,8 @@
+# claimcheck fixture table (tests/claimcheck_test.om); not release evidence
+C1 SUPPORTED tests/fixtures/claimcheck/doc.md:1 alpha claim tests/fixtures/claimcheck/receipt.log:99999999999999999999999 PASS 7 of 7
+C2 NOT_RUN tests/fixtures/claimcheck/doc.md:2 needs hardware - -
+C3 EXTERNAL tests/fixtures/claimcheck/doc.md:3 gamma claim - -
+G1 GATE - - tests/fixtures/claimcheck/gate.txt -
+G2 GATE - - tests/fixtures/claimcheck/gate.txt -
+G3 GATE - - tests/fixtures/claimcheck/gate.txt -
+G4 GATE - - tests/fixtures/claimcheck/gate.txt -
diff --git a/tests/fixtures/claimcheck/cases/lastline.tsv b/tests/fixtures/claimcheck/cases/lastline.tsv
new file mode 100644
index 0000000 ..f6d031c
--- /dev/null
+++ b/tests/fixtures/claimcheck/cases/lastline.tsv
@@ -0,0 +1,8 @@
+# claimcheck fixture table (tests/claimcheck_test.om); not release evidence
+C1 SUPPORTED tests/fixtures/claimcheck/doc.md:1 alpha claim tests/fixtures/claimcheck/receipt.log:3 PASS 7 of 7
+C2 NOT_RUN tests/fixtures/claimcheck/doc.md:2 needs hardware - -
+C3 EXTERNAL tests/fixtures/claimcheck/doc.md:3 gamma claim - -
+G1 GATE - - tests/fixtures/claimcheck/gate.txt -
+G2 GATE - - tests/fixtures/claimcheck/gate.txt -
+G3 GATE - - tests/fixtures/claimcheck/gate.txt -
+G4 GATE - - tests/fixtures/claimcheck/gate.txt -
diff --git a/tests/fixtures/claimcheck/cases/leadzero.tsv b/tests/fixtures/claimcheck/cases/leadzero.tsv
new file mode 100644
index 0000000 ..3e7c2cc
--- /dev/null
+++ b/tests/fixtures/claimcheck/cases/leadzero.tsv
@@ -0,0 +1,8 @@
+# claimcheck fixture table (tests/claimcheck_test.om); not release evidence
+C1 SUPPORTED tests/fixtures/claimcheck/doc.md:1 alpha claim tests/fixtures/claimcheck/receipt.log:02 PASS 7 of 7
+C2 NOT_RUN tests/fixtures/claimcheck/doc.md:2 needs hardware - -
+C3 EXTERNAL tests/fixtures/claimcheck/doc.md:3 gamma claim - -
+G1 GATE - - tests/fixtures/claimcheck/gate.txt -
+G2 GATE - - tests/fixtures/claimcheck/gate.txt -
+G3 GATE - - tests/fixtures/claimcheck/gate.txt -
+G4 GATE - - tests/fixtures/claimcheck/gate.txt -
diff --git a/tests/fixtures/claimcheck/cases/linezero.tsv b/tests/fixtures/claimcheck/cases/linezero.tsv
new file mode 100644
index 0000000 ..8e4e096
--- /dev/null
+++ b/tests/fixtures/claimcheck/cases/linezero.tsv
@@ -0,0 +1,8 @@
+# claimcheck fixture table (tests/claimcheck_test.om); not release evidence
+C1 SUPPORTED tests/fixtures/claimcheck/doc.md:1 alpha claim tests/fixtures/claimcheck/receipt.log:0 PASS 7 of 7
+C2 NOT_RUN tests/fixtures/claimcheck/doc.md:2 needs hardware - -
+C3 EXTERNAL tests/fixtures/claimcheck/doc.md:3 gamma claim - -
+G1 GATE - - tests/fixtures/claimcheck/gate.txt -
+G2 GATE - - tests/fixtures/claimcheck/gate.txt -
+G3 GATE - - tests/fixtures/claimcheck/gate.txt -
+G4 GATE - - tests/fixtures/claimcheck/gate.txt -
diff --git a/tests/fixtures/claimcheck/cases/malformed.tsv b/tests/fixtures/claimcheck/cases/malformed.tsv
new file mode 100644
index 0000000 ..09b9e70
--- /dev/null
+++ b/tests/fixtures/claimcheck/cases/malformed.tsv
@@ -0,0 +1 @@
+R broken
diff --git a/tests/fixtures/claimcheck/cases/missing.tsv b/tests/fixtures/claimcheck/cases/missing.tsv
new file mode 100644
index 0000000 ..07c3c67
--- /dev/null
+++ b/tests/fixtures/claimcheck/cases/missing.tsv
@@ -0,0 +1,8 @@
+# claimcheck fixture table (tests/claimcheck_test.om); not release evidence
+C1 SUPPORTED tests/fixtures/claimcheck/doc.md:1 alpha claim tests/fixtures/claimcheck/nonexistent.log:2 PASS 7 of 7
+C2 NOT_RUN tests/fixtures/claimcheck/doc.md:2 needs hardware - -
+C3 EXTERNAL tests/fixtures/claimcheck/doc.md:3 gamma claim - -
+G1 GATE - - tests/fixtures/claimcheck/gate.txt -
+G2 GATE - - tests/fixtures/claimcheck/gate.txt -
+G3 GATE - - tests/fixtures/claimcheck/gate.txt -
+G4 GATE - - tests/fixtures/claimcheck/gate.txt -
diff --git a/tests/fixtures/claimcheck/cases/multierr.tsv b/tests/fixtures/claimcheck/cases/multierr.tsv
new file mode 100644
index 0000000 ..af29f5c
--- /dev/null
+++ b/tests/fixtures/claimcheck/cases/multierr.tsv
@@ -0,0 +1,4 @@
+a b
+
+C9 GATE - - x -
+C9 GATE - - x -
diff --git a/tests/fixtures/claimcheck/cases/nocite.tsv b/tests/fixtures/claimcheck/cases/nocite.tsv
new file mode 100644
index 0000000 ..3a24c98
--- /dev/null
+++ b/tests/fixtures/claimcheck/cases/nocite.tsv
@@ -0,0 +1,8 @@
+# claimcheck fixture table (tests/claimcheck_test.om); not release evidence
+C1 SUPPORTED tests/fixtures/claimcheck/doc.md:1 alpha claim - -
+C2 NOT_RUN tests/fixtures/claimcheck/doc.md:2 needs hardware - -
+C3 EXTERNAL tests/fixtures/claimcheck/doc.md:3 gamma claim - -
+G1 GATE - - tests/fixtures/claimcheck/gate.txt -
+G2 GATE - - tests/fixtures/claimcheck/gate.txt -
+G3 GATE - - tests/fixtures/claimcheck/gate.txt -
+G4 GATE - - tests/fixtures/claimcheck/gate.txt -
diff --git a/tests/fixtures/claimcheck/cases/noclaims.tsv b/tests/fixtures/claimcheck/cases/noclaims.tsv
new file mode 100644
index 0000000 ..3ef5feb
--- /dev/null
+++ b/tests/fixtures/claimcheck/cases/noclaims.tsv
@@ -0,0 +1,5 @@
+# claimcheck fixture table (tests/claimcheck_test.om); not release evidence
+G1 GATE - - tests/fixtures/claimcheck/gate.txt -
+G2 GATE - - tests/fixtures/claimcheck/gate.txt -
+G3 GATE - - tests/fixtures/claimcheck/gate.txt -
+G4 GATE - - tests/fixtures/claimcheck/gate.txt -
diff --git a/tests/fixtures/claimcheck/cases/nocolon.tsv b/tests/fixtures/claimcheck/cases/nocolon.tsv
new file mode 100644
index 0000000 ..25545ed
--- /dev/null
+++ b/tests/fixtures/claimcheck/cases/nocolon.tsv
@@ -0,0 +1,8 @@
+# claimcheck fixture table (tests/claimcheck_test.om); not release evidence
+C1 SUPPORTED tests/fixtures/claimcheck/doc.md:1 alpha claim tests/fixtures/claimcheck/receipt.log PASS 7 of 7
+C2 NOT_RUN tests/fixtures/claimcheck/doc.md:2 needs hardware - -
+C3 EXTERNAL tests/fixtures/claimcheck/doc.md:3 gamma claim - -
+G1 GATE - - tests/fixtures/claimcheck/gate.txt -
+G2 GATE - - tests/fixtures/claimcheck/gate.txt -
+G3 GATE - - tests/fixtures/claimcheck/gate.txt -
+G4 GATE - - tests/fixtures/claimcheck/gate.txt -
diff --git a/tests/fixtures/claimcheck/cases/nodoc.tsv b/tests/fixtures/claimcheck/cases/nodoc.tsv
new file mode 100644
index 0000000 ..7c1faaa
--- /dev/null
+++ b/tests/fixtures/claimcheck/cases/nodoc.tsv
@@ -0,0 +1,8 @@
+# claimcheck fixture table (tests/claimcheck_test.om); not release evidence
+C1 SUPPORTED - - tests/fixtures/claimcheck/receipt.log:2 PASS 7 of 7
+C2 NOT_RUN tests/fixtures/claimcheck/doc.md:2 needs hardware - -
+C3 EXTERNAL tests/fixtures/claimcheck/doc.md:3 gamma claim - -
+G1 GATE - - tests/fixtures/claimcheck/gate.txt -
+G2 GATE - - tests/fixtures/claimcheck/gate.txt -
+G3 GATE - - tests/fixtures/claimcheck/gate.txt -
+G4 GATE - - tests/fixtures/claimcheck/gate.txt -
diff --git a/tests/fixtures/claimcheck/cases/nonnum.tsv b/tests/fixtures/claimcheck/cases/nonnum.tsv
new file mode 100644
index 0000000 ..d828f14
--- /dev/null
+++ b/tests/fixtures/claimcheck/cases/nonnum.tsv
@@ -0,0 +1,8 @@
+# claimcheck fixture table (tests/claimcheck_test.om); not release evidence
+C1 SUPPORTED tests/fixtures/claimcheck/doc.md:1 alpha claim tests/fixtures/claimcheck/receipt.log:x2 PASS 7 of 7
+C2 NOT_RUN tests/fixtures/claimcheck/doc.md:2 needs hardware - -
+C3 EXTERNAL tests/fixtures/claimcheck/doc.md:3 gamma claim - -
+G1 GATE - - tests/fixtures/claimcheck/gate.txt -
+G2 GATE - - tests/fixtures/claimcheck/gate.txt -
+G3 GATE - - tests/fixtures/claimcheck/gate.txt -
+G4 GATE - - tests/fixtures/claimcheck/gate.txt -
diff --git a/tests/fixtures/claimcheck/cases/pastend.tsv b/tests/fixtures/claimcheck/cases/pastend.tsv
new file mode 100644
index 0000000 ..0651f58
--- /dev/null
+++ b/tests/fixtures/claimcheck/cases/pastend.tsv
@@ -0,0 +1,8 @@
+# claimcheck fixture table (tests/claimcheck_test.om); not release evidence
+C1 SUPPORTED tests/fixtures/claimcheck/doc.md:1 alpha claim tests/fixtures/claimcheck/receipt.log:4 PASS 7 of 7
+C2 NOT_RUN tests/fixtures/claimcheck/doc.md:2 needs hardware - -
+C3 EXTERNAL tests/fixtures/claimcheck/doc.md:3 gamma claim - -
+G1 GATE - - tests/fixtures/claimcheck/gate.txt -
+G2 GATE - - tests/fixtures/claimcheck/gate.txt -
+G3 GATE - - tests/fixtures/claimcheck/gate.txt -
+G4 GATE - - tests/fixtures/claimcheck/gate.txt -
diff --git a/tests/fixtures/claimcheck/cases/status.tsv b/tests/fixtures/claimcheck/cases/status.tsv
new file mode 100644
index 0000000 ..7adb3af
--- /dev/null
+++ b/tests/fixtures/claimcheck/cases/status.tsv
@@ -0,0 +1,8 @@
+# claimcheck fixture table (tests/claimcheck_test.om); not release evidence
+C1 PROVEN tests/fixtures/claimcheck/doc.md:1 alpha claim tests/fixtures/claimcheck/receipt.log:2 PASS 7 of 7
+C2 NOT_RUN tests/fixtures/claimcheck/doc.md:2 needs hardware - -
+C3 EXTERNAL tests/fixtures/claimcheck/doc.md:3 gamma claim - -
+G1 GATE - - tests/fixtures/claimcheck/gate.txt -
+G2 GATE - - tests/fixtures/claimcheck/gate.txt -
+G3 GATE - - tests/fixtures/claimcheck/gate.txt -
+G4 GATE - - tests/fixtures/claimcheck/gate.txt -
diff --git a/tests/fixtures/claimcheck/cases/symlink.tsv b/tests/fixtures/claimcheck/cases/symlink.tsv
new file mode 100644
index 0000000 ..e45c93e
--- /dev/null
+++ b/tests/fixtures/claimcheck/cases/symlink.tsv
@@ -0,0 +1,8 @@
+# claimcheck fixture table (tests/claimcheck_test.om); not release evidence
+C1 SUPPORTED tests/fixtures/claimcheck/doc.md:1 alpha claim build/claimcheck-tests/outside-link:1 PASS 7 of 7
+C2 NOT_RUN tests/fixtures/claimcheck/doc.md:2 needs hardware - -
+C3 EXTERNAL tests/fixtures/claimcheck/doc.md:3 gamma claim - -
+G1 GATE - - tests/fixtures/claimcheck/gate.txt -
+G2 GATE - - tests/fixtures/claimcheck/gate.txt -
+G3 GATE - - tests/fixtures/claimcheck/gate.txt -
+G4 GATE - - tests/fixtures/claimcheck/gate.txt -
diff --git a/tests/fixtures/claimcheck/cases/symlinkin.tsv b/tests/fixtures/claimcheck/cases/symlinkin.tsv
new file mode 100644
index 0000000 ..df22ad4
--- /dev/null
+++ b/tests/fixtures/claimcheck/cases/symlinkin.tsv
@@ -0,0 +1,8 @@
+# claimcheck fixture table (tests/claimcheck_test.om); not release evidence
+C1 SUPPORTED tests/fixtures/claimcheck/doc.md:1 alpha claim build/claimcheck-tests/inside-link:2 PASS 7 of 7
+C2 NOT_RUN tests/fixtures/claimcheck/doc.md:2 needs hardware - -
+C3 EXTERNAL tests/fixtures/claimcheck/doc.md:3 gamma claim - -
+G1 GATE - - tests/fixtures/claimcheck/gate.txt -
+G2 GATE - - tests/fixtures/claimcheck/gate.txt -
+G3 GATE - - tests/fixtures/claimcheck/gate.txt -
+G4 GATE - - tests/fixtures/claimcheck/gate.txt -
diff --git a/tests/fixtures/claimcheck/cases/unsup.tsv b/tests/fixtures/claimcheck/cases/unsup.tsv
new file mode 100644
index 0000000 ..6f71001
--- /dev/null
+++ b/tests/fixtures/claimcheck/cases/unsup.tsv
@@ -0,0 +1,8 @@
+# claimcheck fixture table (tests/claimcheck_test.om); not release evidence
+C1 SUPPORTED tests/fixtures/claimcheck/doc.md:1 alpha claim tests/fixtures/claimcheck/receipt.log:2 PASS 7 of 7
+C2 NOT_RUN tests/fixtures/claimcheck/doc.md:2 needs hardware - -
+C3 UNSUPPORTED tests/fixtures/claimcheck/doc.md:3 gamma claim - -
+G1 GATE - - tests/fixtures/claimcheck/gate.txt -
+G2 GATE - - tests/fixtures/claimcheck/gate.txt -
+G3 GATE - - tests/fixtures/claimcheck/gate.txt -
+G4 GATE - - tests/fixtures/claimcheck/gate.txt -
diff --git a/tests/fixtures/claimcheck/cases/unterminated.tsv b/tests/fixtures/claimcheck/cases/unterminated.tsv
new file mode 100644
index 0000000 ..9e16c3f
--- /dev/null
+++ b/tests/fixtures/claimcheck/cases/unterminated.tsv
@@ -0,0 +1,8 @@
+# claimcheck fixture table (tests/claimcheck_test.om); not release evidence
+C1 SUPPORTED tests/fixtures/claimcheck/doc.md:1 alpha claim tests/fixtures/claimcheck/receipt.log:2 PASS 7 of 7
+C2 NOT_RUN tests/fixtures/claimcheck/doc.md:2 needs hardware - -
+C3 EXTERNAL tests/fixtures/claimcheck/doc.md:3 gamma claim - -
+G1 GATE - - tests/fixtures/claimcheck/gate.txt -
+G2 GATE - - tests/fixtures/claimcheck/gate.txt -
+G3 GATE - - tests/fixtures/claimcheck/gate.txt -
+G4 GATE - - tests/fixtures/claimcheck/gate.txt -
\ No newline at end of file
diff --git a/tests/fixtures/claimcheck/doc.md b/tests/fixtures/claimcheck/doc.md
new file mode 100644
index 0000000 ..8ffaec0
--- /dev/null
+++ b/tests/fixtures/claimcheck/doc.md
@@ -0,0 +1,3 @@
+The alpha claim is stated here.
+The beta claim needs hardware.
+The gamma claim lives elsewhere.
diff --git a/tests/fixtures/claimcheck/gate.txt b/tests/fixtures/claimcheck/gate.txt
new file mode 100644
index 0000000 ..2ff2904
--- /dev/null
+++ b/tests/fixtures/claimcheck/gate.txt
@@ -0,0 +1 @@
+gate receipt (fixture, not evidence)
diff --git a/tests/fixtures/claimcheck/receipt.log b/tests/fixtures/claimcheck/receipt.log
new file mode 100644
index 0000000 ..4cd4ab0
--- /dev/null
+++ b/tests/fixtures/claimcheck/receipt.log
@@ -0,0 +1,3 @@
+run start
+PASS 7 of 7 cases
+rc=0
diff --git a/tests/fixtures/claimcheck/streams/bad-mismatch.txt b/tests/fixtures/claimcheck/streams/bad-mismatch.txt
new file mode 100644
index 0000000 ..ab9c102
--- /dev/null
+++ b/tests/fixtures/claimcheck/streams/bad-mismatch.txt
@@ -0,0 +1,4 @@
+M prep
+R C1 SUPPORTED D 1 x ab
+R C1 SUPPORTED C 0 y -
+G G1 0 p
diff --git a/tests/fixtures/claimcheck/streams/judge-document-without-receipt.txt b/tests/fixtures/claimcheck/streams/judge-document-without-receipt.txt
new file mode 100644
index 0000000 ..44549dc
--- /dev/null
+++ b/tests/fixtures/claimcheck/streams/judge-document-without-receipt.txt
@@ -0,0 +1,2 @@
+M tag
+R C1 SUPPORTED D 1 x x
diff --git a/tests/fixtures/claimcheck/streams/judge-gate-inside-pair.txt b/tests/fixtures/claimcheck/streams/judge-gate-inside-pair.txt
new file mode 100644
index 0000000 ..40f0f67
--- /dev/null
+++ b/tests/fixtures/claimcheck/streams/judge-gate-inside-pair.txt
@@ -0,0 +1,4 @@
+M tag
+R C1 SUPPORTED D 1 x x
+G G1 1 p
+R C1 SUPPORTED C 1 x x
diff --git a/tests/fixtures/claimcheck/streams/judge-mode-missing.txt b/tests/fixtures/claimcheck/streams/judge-mode-missing.txt
new file mode 100644
index 0000000 ..baf35be
--- /dev/null
+++ b/tests/fixtures/claimcheck/streams/judge-mode-missing.txt
@@ -0,0 +1,3 @@
+M
+R C1 EXTERNAL D 1 x x
+R C1 EXTERNAL C - - -
diff --git a/tests/fixtures/claimcheck/streams/judge-mode-repeated.txt b/tests/fixtures/claimcheck/streams/judge-mode-repeated.txt
new file mode 100644
index 0000000 ..fee20ce
--- /dev/null
+++ b/tests/fixtures/claimcheck/streams/judge-mode-repeated.txt
@@ -0,0 +1,4 @@
+M prep
+M tag
+R C1 EXTERNAL D 1 x x
+R C1 EXTERNAL C - - -
diff --git a/tests/fixtures/claimcheck/streams/judge-mode-unknown.txt b/tests/fixtures/claimcheck/streams/judge-mode-unknown.txt
new file mode 100644
index 0000000 ..ee00291
--- /dev/null
+++ b/tests/fixtures/claimcheck/streams/judge-mode-unknown.txt
@@ -0,0 +1,3 @@
+M garbage
+R C1 EXTERNAL D 1 x x
+R C1 EXTERNAL C - - -
diff --git a/tests/fixtures/claimcheck/streams/judge-no-claim-rows.txt b/tests/fixtures/claimcheck/streams/judge-no-claim-rows.txt
new file mode 100644
index 0000000 ..a89b343
--- /dev/null
+++ b/tests/fixtures/claimcheck/streams/judge-no-claim-rows.txt
@@ -0,0 +1,2 @@
+M tag
+G G1 1 p
diff --git a/tests/fixtures/claimcheck/streams/judge-no-mode.txt b/tests/fixtures/claimcheck/streams/judge-no-mode.txt
new file mode 100644
index 0000000 ..dceef92
--- /dev/null
+++ b/tests/fixtures/claimcheck/streams/judge-no-mode.txt
@@ -0,0 +1 @@
+R x
diff --git a/tests/fixtures/claimcheck/streams/judge-receipt-other-id.txt b/tests/fixtures/claimcheck/streams/judge-receipt-other-id.txt
new file mode 100644
index 0000000 ..c3e832d
--- /dev/null
+++ b/tests/fixtures/claimcheck/streams/judge-receipt-other-id.txt
@@ -0,0 +1,3 @@
+M tag
+R C1 SUPPORTED D 1 x x
+R C2 SUPPORTED C 1 x x
diff --git a/tests/fixtures/claimcheck/streams/judge-receipt-without-document.txt b/tests/fixtures/claimcheck/streams/judge-receipt-without-document.txt
new file mode 100644
index 0000000 ..7d800e8
--- /dev/null
+++ b/tests/fixtures/claimcheck/streams/judge-receipt-without-document.txt
@@ -0,0 +1,2 @@
+M tag
+R C1 SUPPORTED C 1 x x
diff --git a/tests/fixtures/claimcheck/streams/judge-short-gate.txt b/tests/fixtures/claimcheck/streams/judge-short-gate.txt
new file mode 100644
index 0000000 ..a8708ac
--- /dev/null
+++ b/tests/fixtures/claimcheck/streams/judge-short-gate.txt
@@ -0,0 +1,4 @@
+M tag
+R C1 EXTERNAL D 1 x x
+R C1 EXTERNAL C - - -
+G G1
diff --git a/tests/fixtures/claimcheck/streams/judge-short-record.txt b/tests/fixtures/claimcheck/streams/judge-short-record.txt
new file mode 100644
index 0000000 ..fa1942b
--- /dev/null
+++ b/tests/fixtures/claimcheck/streams/judge-short-record.txt
@@ -0,0 +1,4 @@
+M prep
+R C1 EXTERNAL D 1 x x
+R C1 EXTERNAL C - - -
+R
diff --git a/tests/fixtures/claimcheck/streams/judge-unknown-found.txt b/tests/fixtures/claimcheck/streams/judge-unknown-found.txt
new file mode 100644
index 0000000 ..e6c8f3c
--- /dev/null
+++ b/tests/fixtures/claimcheck/streams/judge-unknown-found.txt
@@ -0,0 +1,2 @@
+M tag
+R C1 SUPPORTED D 2 x x
diff --git a/tests/fixtures/claimcheck/streams/judge-unknown-side.txt b/tests/fixtures/claimcheck/streams/judge-unknown-side.txt
new file mode 100644
index 0000000 ..6899b29
--- /dev/null
+++ b/tests/fixtures/claimcheck/streams/judge-unknown-side.txt
@@ -0,0 +1,2 @@
+M tag
+R C1 SUPPORTED Z 1 x x
diff --git a/tests/fixtures/claimcheck/streams/judge-unterminated.txt b/tests/fixtures/claimcheck/streams/judge-unterminated.txt
new file mode 100644
index 0000000 ..218629c
--- /dev/null
+++ b/tests/fixtures/claimcheck/streams/judge-unterminated.txt
@@ -0,0 +1,3 @@
+M prep
+R C1 EXTERNAL D 1 x x
+R C1 EXTERNAL C - - -
\ No newline at end of file
diff --git a/tests/fixtures/claimcheck/streams/well-formed.txt b/tests/fixtures/claimcheck/streams/well-formed.txt
new file mode 100644
index 0000000 ..9ebf9cd
--- /dev/null
+++ b/tests/fixtures/claimcheck/streams/well-formed.txt
@@ -0,0 +1,4 @@
+M tag
+R C1 SUPPORTED D 1 x ax
+R C1 SUPPORTED C 1 y yy
+G G1 1 p
diff --git a/tests/fixtures/claimcheck/table.tsv b/tests/fixtures/claimcheck/table.tsv
new file mode 100644
index 0000000 ..9fe185b
--- /dev/null
+++ b/tests/fixtures/claimcheck/table.tsv
@@ -0,0 +1,8 @@
+# claimcheck fixture table (tests/claimcheck_test.om); not release evidence
+C1 SUPPORTED tests/fixtures/claimcheck/doc.md:1 alpha claim tests/fixtures/claimcheck/receipt.log:2 PASS 7 of 7
+C2 NOT_RUN tests/fixtures/claimcheck/doc.md:2 needs hardware - -
+C3 EXTERNAL tests/fixtures/claimcheck/doc.md:3 gamma claim - -
+G1 GATE - - tests/fixtures/claimcheck/gate.txt -
+G2 GATE - - tests/fixtures/claimcheck/gate.txt -
+G3 GATE - - tests/fixtures/claimcheck/gate.txt -
+G4 GATE - - tests/fixtures/claimcheck/gate.txt -
diff --git a/tools/claimcheck.om b/tools/claimcheck.om
new file mode 100644
index 0000000 ..67a2c1b
--- /dev/null
+++ b/tools/claimcheck.om
@@ -0,0 +1,1088 @@
+om2
+note claimcheck.om: the release claims check (DRA-107), in one seeded Omega program.
+note Built with the seeded omc (omega-mv e5b32567 , sha256 2c82480596bbdc50cda9626866209ef662d5834f278f839ff4ce0250c495029f ).
+note Usage, from the repository root: claimcheck [prep|tag] [TABLE] (TABLE defaults to
+note evidence/release-v1/claims.tsv; an empty argument takes the default), or claimcheck judge, which
+note judges a record stream on stdin (the format below) and is used by tests/claimcheck_test.om.
+note For every row of the claims table this program looks up the cited document line and receipt
+note line and judges them: each cited line must contain the row's expect text, every row needs a
+note document citation, SUPPORTED rows need a receipt, and in tag mode every release gate receipt
+note must exist and no row may be UNSUPPORTED.
+note Exit: 0 pass; 1 a BAD row; 2 usage or table missing; 3 tag mode with an open gate or UNSUPPORTED
+note row; 4 malformed table or stream. It replaces tools/claimcheck.sh (removed): the table checks,
+note path and line lookups and the gate list moved here from shell, awk and sed; the judge below is
+note the former tools/claimcheck.om unchanged except the om2 line and the stream source.
+note The release gates (DRA-104, DRA-105, DRA-106, DRA-103) are G1 G2 G3 G4 (text treq); each must
+note have one GATE row in the table, a missing row counts as an open gate. Changing the list is a
+note reviewed edit here.
+note A cited path is used only if it is relative, has no .. component, is a regular file (symlinks
+note followed) and resolves under the repository root (the current directory, physical path).
+note Internal record stream, one record per line, fields separated by one tab byte:
+note M mode mode prep or tag, first record
+note R id status side found expect actual side D (document) or C (receipt)
+note G id found path a release gate receipt
+note found: 1 the file exists and has the line, 0 it does not, - nothing is cited.
+note A cited line must contain its expect text byte for byte (an expect of - is refused). Every
+note row needs a document citation; SUPPORTED rows also need a receipt citation (FIXED,
+note EXTERNAL and NOT_RUN rows may have none). A missing file or line, or a mismatch, is BAD.
+note Exit 0 pass; 1 a BAD record; 3 tag mode while a gate is open or a row is UNSUPPORTED;
+note 4 malformed input: M not first or repeated, mode not prep or tag, a record with the wrong
+note field count or an unknown side, found or record kind, no claim rows, 512 KiB or more.
+note Every D record must be followed directly by the C record of the same id (exit 4 otherwise).
+note The producer (fn produce) emits one G record per required gate id; a missing GATE row
+note becomes a G record with found 0, so the judge sees it as an open gate.
+global inb uchar 524288
+global fs ulong 8
+global fl ulong 8
+global cnt ulong 16
+global ob uchar 32
+global eo ulong 2
+global pv ulong 4
+note cnt: 0 rows, 1 checked, 2 not_run, 3 unsupported, 4 external, 5 gates, 6 gates_open,
+note 7 bad, 8 mode (1 tag), 9 mode seen, 10 fixed
+text tb "SUPPORTED\nFIXED\nEXTERNAL\nNOT_RUN\nUNSUPPORTED\nprep\ntag\nBAD \n status\n nocite\n missing\n noexpect\n mismatch\nGATE-OPEN \nCLAIMCHECK PASS\nCLAIMCHECK FAIL bad=\n rows=\n checked=\n not_run=\n unsupported=\n external=\n fixed=\n gates=\n gates_open=\nTAG-READY yes\nTAG-READY no\n nodoc\n"
+text nl "\n"
+text sp " "
+note ent: put the offset and length of table entry k into eo 0 and eo 1.
+fn ent k ulong to void
+i = ulong 0
+n = ulong 0
+s = ulong 0
+while lt i len tb bound 100000
+if eq get tb i 10
+if eq n k
+put eo 0 s
+put eo 1 sub i s
+ret
+end
+n = add n 1
+s = add i 1
+end
+i = add i 1
+end
+put eo 0 0
+put eo 1 0
+end
+fn pent k ulong to void
+ent k
+w = write 1 tb get eo 0 get eo 1
+end
+fn pfld f ulong to void
+w = write 1 inb get fs f get fl f
+end
+fn pnum v ulong to void
+n = ulong 0
+x = v
+c = true
+while c bound 30
+put ob sub 31 n uchar add 48 rem x 10
+n = add n 1
+x = div x 10
+c = ne x 0
+end
+w = write 1 ob sub 32 n n
+end
+note same: inb at p equals inb at q for n bytes.
+fn same p ulong q ulong n ulong to bool
+i = ulong 0
+while lt i n bound 999999
+if ne get inb add p i get inb add q i
+ret false
+end
+i = add i 1
+end
+ret true
+end
+note has: field e occurs in field a.
+fn has e ulong a ulong to bool
+n = get fl e
+m = get fl a
+if gt n m
+ret false
+end
+p = get fs a
+q = get fs e
+i = ulong 0
+while le i sub m n bound 999999
+if same add p i q n
+ret true
+end
+i = add i 1
+end
+ret false
+end
+note fkw: field f equals table entry k.
+fn fkw f ulong k ulong to bool
+ent k
+n = get eo 1
+if ne get fl f n
+ret false
+end
+s = get eo 0
+p = get fs f
+i = ulong 0
+while lt i n bound 100000
+if ne get inb add p i get tb add s i
+ret false
+end
+i = add i 1
+end
+ret true
+end
+fn fch f ulong c uchar to bool
+if ne get fl f 1
+ret false
+end
+ret eq get inb get fs f c
+end
+fn inc k ulong to void
+put cnt k add get cnt k 1
+end
+fn bad f ulong side ulong why ulong to void
+inc 7
+pent 7
+pfld 1
+w = write 1 sp 0 1
+pfld side
+pent why
+w = write 1 nl 0 1
+end
+note split: fields of the line inb s..e (e exclusive); at most 7, the last takes the rest.
+fn split s ulong e ulong to ulong
+k = ulong 0
+i = s
+put fs 0 s
+while lt i e bound 999999
+if eq get inb i 9
+if lt k 6
+put fl k sub i get fs k
+k = add k 1
+put fs k add i 1
+end
+end
+i = add i 1
+end
+put fl k sub e get fs k
+ret add k 1
+end
+fn stword f ulong to ulong
+k = ulong 0
+while lt k 5 bound 6
+if fkw f k
+ret k
+end
+k = add k 1
+end
+ret 9
+end
+note pair: every D record is followed by the C record of the same id, and nothing else.
+note pv 0, 1: offset and length of the last D id; pv 2: 1 while its C record is awaited.
+fn pair sd ulong to ulong
+if eq sd 1
+if ne get pv 2 0
+ret 4
+end
+put pv 0 get fs 1
+put pv 1 get fl 1
+put pv 2 1
+ret 0
+end
+if eq get pv 2 0
+ret 4
+end
+put pv 2 0
+if ne get fl 1 get pv 1
+ret 4
+end
+if same get fs 1 get pv 0 get fl 1
+ret 0
+end
+ret 4
+end
+note rec: one R record. Returns 4 for a malformed record (field count, side, found), else 0.
+fn rec nf ulong to ulong
+if ne nf 7
+ret 4
+end
+sd = ulong 0
+if fch 3 68
+sd = ulong 1
+end
+if fch 3 67
+sd = ulong 2
+end
+if eq sd 0
+ret 4
+end
+fd = ulong 0
+if fch 4 49
+fd = ulong 1
+end
+if fch 4 48
+fd = ulong 2
+end
+if fch 4 45
+fd = ulong 3
+end
+if eq fd 0
+ret 4
+end
+pr = pair sd
+if ne pr 0
+ret 4
+end
+st = stword 2
+if eq st 9
+bad 1 3 8
+ret 0
+end
+if eq sd 1
+inc 0
+if eq st 1
+inc 10
+end
+if eq st 2
+inc 4
+end
+if eq st 3
+inc 2
+end
+if eq st 4
+inc 3
+end
+end
+if eq fd 3
+if eq sd 1
+bad 1 3 26
+end
+if eq sd 2
+if eq st 0
+bad 1 3 9
+end
+end
+ret 0
+end
+if eq fd 2
+bad 1 3 10
+ret 0
+end
+if eq get fl 5 0
+bad 1 3 11
+ret 0
+end
+if fch 5 45
+bad 1 3 11
+ret 0
+end
+if has 5 6
+inc 1
+ret 0
+end
+bad 1 3 12
+ret 0
+end
+note gate: one G record. Returns 4 for a malformed record, else 0.
+fn gate nf ulong to ulong
+if ne get pv 2 0
+ret 4
+end
+if ne nf 4
+ret 4
+end
+op = true
+if fch 2 49
+op = false
+else
+if not fch 2 48
+ret 4
+end
+end
+inc 5
+if op
+inc 6
+pent 13
+pfld 1
+w = write 1 sp 0 1
+pfld 3
+w = write 1 nl 0 1
+end
+ret 0
+end
+note line: one record. M must come first and only once, with mode prep or tag.
+fn line s ulong e ulong to ulong
+nf = split s e
+if fch 0 77
+if ne get cnt 9 0
+ret 4
+end
+if ne nf 2
+ret 4
+end
+if fkw 1 6
+put cnt 8 1
+else
+if not fkw 1 5
+ret 4
+end
+end
+put cnt 9 1
+ret 0
+end
+if eq get cnt 9 0
+ret 4
+end
+if fch 0 82
+ret rec nf
+end
+if fch 0 71
+ret gate nf
+end
+ret 4
+end
+fn pstat k ulong v ulong to void
+pent k
+pnum v
+end
+note rdstdin: the judge mode reads its stream from stdin into inb.
+fn rdstdin to ulong
+off = ulong 0
+go = true
+while go bound 999999
+k = read 0 inb off sub 524288 off
+if lt k 0
+exit 4
+end
+if eq k 0
+go = false
+else
+off = add off ulong k
+if eq off 524288
+exit 4
+end
+end
+end
+ret off
+end
+note judge: decide the stream inb 0..off.
+fn judge off ulong to int
+s = ulong 0
+i = ulong 0
+while lt i off bound 999999
+if eq get inb i 10
+r = line s i
+if ne r 0
+exit 4
+end
+s = add i 1
+end
+i = add i 1
+end
+if lt s off
+exit 4
+end
+if eq get cnt 9 0
+exit 4
+end
+if ne get pv 2 0
+exit 4
+end
+if eq get cnt 0 0
+exit 4
+end
+if eq get cnt 7 0
+pent 14
+else
+pstat 15 get cnt 7
+end
+pstat 16 get cnt 0
+pstat 17 get cnt 1
+pstat 18 get cnt 2
+pstat 19 get cnt 3
+pstat 20 get cnt 4
+pstat 21 get cnt 10
+pstat 22 get cnt 5
+pstat 23 get cnt 6
+w = write 1 nl 0 1
+rdy = and eq get cnt 6 0 eq get cnt 3 0
+if and rdy eq get cnt 7 0
+pent 24
+else
+pent 25
+end
+w = write 1 nl 0 1
+if ne get cnt 7 0
+ret 1
+end
+if eq get cnt 8 1
+if not rdy
+ret 3
+end
+end
+ret 0
+end
+
+note ---- producer: table checks, path and line lookups, the record stream into inb ----
+global tbl uchar 4194304
+global lb uchar 524288
+global rb uchar 65536
+global pth uchar 8192
+global lk uchar 4096
+global rt uchar 4096
+global targ uchar 4096
+global md uchar 4096
+global gof ulong 65536
+global gln ulong 65536
+global qs ulong 8
+global ql ulong 8
+global pg ulong 16
+note pg: 0 table bytes, 1 stream bytes, 2 root length, 3 gate ids stored, 4 path length,
+note 5 captured line length, 6 table argument length, 7 mode argument length
+const TCAP ulong 4194304
+text tdeft "evidence/release-v1/claims.tsv"
+text tusage "usage: claimcheck [prep|tag] [TABLE] (run from the repository root; claimcheck judge reads a record stream)\n"
+text tmissing "claims table missing: "
+text ttoobig ": larger than 4194303 bytes\n"
+text tlinee ": line "
+text tcolsp ": "
+text twant6 " fields, want 6\n"
+text tfielde ": field "
+text tempty " empty\n"
+text ttoken ": id is not one token\n"
+text tgatee ": gate "
+text trepeat " repeated\n"
+text tnoclaim ": no claim rows\n"
+text tnonl ": last line has no newline\n"
+text tgword "GATE"
+text tjudge "judge"
+text tprepw "prep"
+text ttagw "tag"
+text tprocfd "/proc/self/fd/"
+text treq "G1 G2 G3 G4"
+text tnorow "\t0\t(no GATE row in the table)\n"
+text tnlb "\n"
+fn eput t view uchar * to void
+w = write 2 t 0 len t
+end
+fn eputtb o ulong n ulong to void
+w = write 2 tbl o n
+end
+fn eputn v ulong to void
+d = new uchar 24 0
+x = v
+k = ulong 0
+go = true
+while go bound 30
+put d k uchar add 48 rem x 10
+k = add k 1
+x = div x 10
+go = gt x 0
+end
+while gt k 0 bound 30
+k = sub k 1
+w = write 2 d k 1
+end
+end
+fn eputarg to void
+w = write 2 targ 0 get pg 6
+end
+fn elinehead nr ulong to void
+eputarg
+eput tlinee
+eputn nr
+end
+note ---- stream output into inb (512 KiB or more is malformed, exit 4, as the judge's own limit) ----
+fn sob b uchar to void
+k = get pg 1
+if ge k 524287
+exit 4
+end
+put inb k b
+put pg 1 add k 1
+end
+fn sot t view uchar * to void
+for i ulong len t
+sob get t i
+end
+end
+fn sotb o ulong n ulong to void
+for i ulong n
+sob get tbl add o i
+end
+end
+note ---- table fields: qs and ql hold offset and length of fields 0..5 of a line ----
+fn tfields s ulong e ulong to ulong
+if eq s e
+ret 0
+end
+k = ulong 0
+put qs 0 s
+i = s
+while lt i e bound 999999
+if eq get tbl i 9
+if lt k 7
+put ql k sub i get qs k
+end
+k = add k 1
+if lt k 7
+put qs k add i 1
+end
+end
+i = add i 1
+end
+if lt k 7
+put ql k sub e get qs k
+end
+ret add k 1
+end
+fn tokch c uchar to bool
+if and ge c 65 le c 90
+ret true
+end
+if and ge c 97 le c 122
+ret true
+end
+if and ge c 48 le c 57
+ret true
+end
+ret or or eq c 95 eq c 46 eq c 45
+end
+fn idtoken to bool
+n = get ql 0
+if eq n 0
+ret false
+end
+o = get qs 0
+for i ulong n
+if not tokch get tbl add o i
+ret false
+end
+end
+ret true
+end
+fn tbeq a ulong b ulong n ulong to bool
+for i ulong n
+if ne get tbl add a i get tbl add b i
+ret false
+end
+end
+ret true
+end
+fn feqt f ulong t view uchar * to bool
+if ne get ql f len t
+ret false
+end
+o = get qs f
+for i ulong len t
+if ne get tbl add o i get t i
+ret false
+end
+end
+ret true
+end
+note seen: field 0 equals a stored gate id
+fn seen to bool
+ng = get pg 3
+n = get ql 0
+o = get qs 0
+for i ulong ng
+if eq get gln i n
+if tbeq get gof i o n
+ret true
+end
+end
+end
+ret false
+end
+fn keepgate to void
+ng = get pg 3
+if ge ng 65536
+exit 4
+end
+put gof ng get qs 0
+put gln ng get ql 0
+put pg 3 add ng 1
+end
+note check1: the shape checks of one line (number nr); returns 1 when the line is bad.
+fn check1 s ulong e ulong nr ulong to ulong
+nf = tfields s e
+if ne nf 6
+elinehead nr
+eput tcolsp
+eputn nf
+eput twant6
+ret 1
+end
+b = ulong 0
+for i ulong 6
+if eq get ql i 0
+elinehead nr
+eput tfielde
+eputn add i 1
+eput tempty
+b = 1
+end
+end
+if not idtoken
+elinehead nr
+eput ttoken
+b = 1
+end
+if feqt 1 tgword
+if seen
+elinehead nr
+eput tgatee
+eputtb get qs 0 get ql 0
+eput trepeat
+b = 1
+end
+keepgate
+else
+b = or b 2
+end
+ret b
+end
+note validate: every line; prints each problem on stderr; false when the table is malformed.
+fn validate to bool
+n = get pg 0
+s = ulong 0
+nr = ulong 0
+bd = false
+claims = false
+while lt s n bound 999999
+e = s
+while and lt e n ne get tbl e 10 bound 999999
+e = add e 1
+end
+nr = add nr 1
+if ne get tbl s 35
+r = check1 s e nr
+if ne and r 1 0
+bd = true
+end
+if ne and r 2 0
+claims = true
+end
+end
+s = add e 1
+end
+if not claims
+eputarg
+eput tnoclaim
+bd = true
+end
+ret not bd
+end
+
+note ---- cited paths ----
+global pp uchar 64
+note fdlink: the resolved path of descriptor fd (the /proc/self/fd link) into lk; its length.
+fn fdlink fd long to long
+for j ulong len tprocfd
+put pp j get tprocfd j
+end
+q = len tprocfd
+dg = new uchar 24 0
+x = ulong fd
+k = ulong 0
+go = true
+while go bound 30
+put dg k uchar add 48 rem x 10
+k = add k 1
+x = div x 10
+go = gt x 0
+end
+while gt k 0 bound 30
+k = sub k 1
+put pp q get dg k
+q = add q 1
+end
+ret readlnk pp 0 q lk 0 4096
+end
+note pathok: pth 0..pg 4 is relative, has no .. component, names a regular file (symlinks
+note followed) and resolves under the root rt.
+note relpath: pth 0..n is nonempty, relative and has no .. component.
+fn relpath n ulong to bool
+if eq n 0
+ret false
+end
+if eq get pth 0 47
+ret false
+end
+s = ulong 0
+i = ulong 0
+while le i n bound 999999
+c = uchar 47
+if lt i n
+c = get pth i
+end
+if eq c 47
+if eq sub i s 2
+if and eq get pth s 46 eq get pth add s 1 46
+ret false
+end
+end
+s = add i 1
+end
+i = add i 1
+end
+ret true
+end
+fn pathok to bool
+n = get pg 4
+if not relpath n
+ret false
+end
+st = new uchar 128 0
+r = stat pth 0 n st 0 128
+if lt r 0
+ret false
+end
+if ne and get st 17 240 128
+ret false
+end
+fd = fopen pth 0 n 2097152 0
+if lt fd 0
+ret false
+end
+m = fdlink fd
+c2 = fclose int fd
+if lt m 0
+ret false
+end
+rn = get pg 2
+if le ulong m rn
+ret false
+end
+for j ulong rn
+if ne get lk j get rt j
+ret false
+end
+end
+ret eq get lk rn 47
+end
+note findline: line n (1-based) of the file pth, newline-terminated, into lb; pg 5 its length.
+fn findline n ulong to bool
+fd = fopen pth 0 get pg 4 0 0
+if lt fd 0
+ret false
+end
+nl2 = ulong 0
+cap = ulong 0
+go = true
+found = false
+while go bound 999999
+k = read int fd rb 0 65536
+if le k 0
+go = false
+else
+for i ulong ulong k
+if not found
+c = get rb i
+if eq c 10
+nl2 = add nl2 1
+if eq nl2 n
+found = true
+end
+else
+if eq nl2 sub n 1
+if ge cap 524287
+exit 4
+end
+put lb cap c
+cap = add cap 1
+end
+end
+end
+end
+if found
+go = false
+end
+end
+end
+c3 = fclose int fd
+put pg 5 cap
+ret found
+end
+note cite: parse field f as PATH:N and look the line up; true when found (line in lb).
+fn cite f ulong to bool
+o = get qs f
+n = get ql f
+lc = n
+i = ulong 0
+while lt i n bound 999999
+if eq get tbl add o i 58
+lc = i
+end
+i = add i 1
+end
+if eq lc n
+ret false
+end
+nd = sub sub n lc 1
+if or eq nd 0 gt nd 18
+ret false
+end
+v = ulong 0
+for j ulong nd
+c = get tbl add add o lc add j 1
+if or lt c 48 gt c 57
+ret false
+end
+v = add mul v 10 ulong sub c 48
+end
+if eq v 0
+ret false
+end
+if ge lc 8192
+ret false
+end
+for j ulong lc
+put pth j get tbl add o j
+end
+put pg 4 lc
+if not pathok
+ret false
+end
+ret findline v
+end
+note emit: one R record for side sd (68 D, 67 C) from cite field f and expect field f+1.
+fn emit sd uchar f ulong to void
+sob 82
+sob 9
+sotb get qs 0 get ql 0
+sob 9
+sotb get qs 1 get ql 1
+sob 9
+sob sd
+sob 9
+if and eq get ql f 1 eq get tbl get qs f 45
+sob 45
+sob 9
+sob 45
+sob 9
+sob 45
+sob 10
+ret
+end
+ok = cite f
+if ok
+sob 49
+else
+sob 48
+end
+sob 9
+e = add f 1
+sotb get qs e get ql e
+sob 9
+if ok
+for i ulong get pg 5
+sob get lb i
+end
+else
+sob 45
+end
+sob 10
+end
+fn gaterec to void
+sob 71
+sob 9
+sotb get qs 0 get ql 0
+sob 9
+n = get ql 4
+ok = false
+if lt n 8192
+o = get qs 4
+for j ulong n
+put pth j get tbl add o j
+end
+put pg 4 n
+ok = pathok
+end
+if ok
+sob 49
+else
+sob 48
+end
+sob 9
+sotb get qs 4 n
+sob 10
+end
+fn treqeq o ulong s ulong k ulong to bool
+for j ulong k
+if ne get tbl add o j get treq add s j
+ret false
+end
+end
+ret true
+end
+note hasgate: treq s..s+k is a stored gate id.
+fn hasgate s ulong k ulong to bool
+for g ulong get pg 3
+if eq get gln g k
+if treqeq get gof g s k
+ret true
+end
+end
+end
+ret false
+end
+note reqgates: a G record with found 0 for every required gate id without a GATE row.
+fn reqgates to void
+s = ulong 0
+i = ulong 0
+n = len treq
+while le i n bound 100
+c = uchar 32
+if lt i n
+c = get treq i
+end
+if eq c 32
+k = sub i s
+if not hasgate s k
+sob 71
+sob 9
+for j ulong k
+sob get treq add s j
+end
+sot tnorow
+end
+s = add i 1
+end
+i = add i 1
+end
+end
+note produce: the stream for mode t (prep or tag) from the validated table.
+fn produce t view uchar * to ulong
+sob 77
+sob 9
+sot t
+sob 10
+n = get pg 0
+s = ulong 0
+while lt s n bound 999999
+e = s
+while ne get tbl e 10 bound 999999
+e = add e 1
+end
+if ne get tbl s 35
+nf = tfields s e
+if feqt 1 tgword
+gaterec
+else
+emit 68 2
+emit 67 4
+end
+end
+s = add e 1
+end
+reqgates
+ret get pg 1
+end
+fn mdeq n ulong t view uchar * to bool
+if ne n len t
+ret false
+end
+for i ulong n
+if ne get md i get t i
+ret false
+end
+end
+ret true
+end
+fn main to int
+c = argcnt
+mn = long 0
+if ge c 2
+mn = argread 1 md 0 4096
+if lt mn 0
+eput tusage
+ret 2
+end
+end
+if eq mn 0
+for i ulong len tprepw
+put md i get tprepw i
+end
+mn = long len tprepw
+end
+put pg 7 ulong mn
+if mdeq ulong mn tjudge
+ret judge rdstdin
+end
+tg = mdeq ulong mn ttagw
+if not or tg mdeq ulong mn tprepw
+eput tusage
+ret 2
+end
+tn = long 0
+if ge c 3
+tn = argread 2 targ 0 4096
+if lt tn 0
+eput tusage
+ret 2
+end
+end
+if eq tn 0
+for i ulong len tdeft
+put targ i get tdeft i
+end
+tn = long len tdeft
+end
+put pg 6 ulong tn
+st = new uchar 128 0
+r = stat targ 0 ulong tn st 0 128
+reg = false
+if ge r 0
+reg = eq and get st 17 240 128
+end
+if not reg
+eput tmissing
+eputarg
+eput tnlb
+ret 2
+end
+fd = fopen targ 0 ulong tn 0 0
+if lt fd 0
+eput tmissing
+eputarg
+eput tnlb
+ret 2
+end
+tot = ulong 0
+go = true
+while go bound 999999
+k = read int fd tbl tot sub TCAP tot
+if lt k 0
+exit 4
+end
+if eq k 0
+go = false
+else
+tot = add tot ulong k
+if eq tot TCAP
+eputarg
+eput ttoobig
+exit 4
+end
+end
+end
+c4 = fclose int fd
+put pg 0 tot
+if not validate
+ret 4
+end
+if ne get tbl sub tot 1 10
+eputarg
+eput tnonl
+ret 4
+end
+rl = cwd rt 0 4096
+if lt rl 1
+exit 4
+end
+put pg 2 sub ulong rl 1
+if tg
+ret judge produce ttagw
+end
+ret judge produce tprepw
+end