From 348c58a06f3bcdde64d5f3d5a6b2b2f2ad995973 Mon Sep 17 00:00:00 2001 From: Drake Stapleton Date: Fri, 6 Nov 2026 14:26:37 -0600 Subject: [PATCH 01/18] docs: DRA-107 claims ledger at d8174edd; fix stale merged/draft claims --- AGENTS.md | 4 +- MISSION-REPORT.md | 6 + README.md | 8 +- evidence/release-v1/claims-ledger-d8174edd.md | 119 ++++++++++++++++++ 4 files changed, 131 insertions(+), 6 deletions(-) create mode 100644 evidence/release-v1/claims-ledger-d8174edd.md 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..f89a0a5 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 rows +remain NOT_RUN. Per-claim ledger: `evidence/release-v1/claims-ledger-d8174edd.md`. + ## 1. Revisions | Repo | Branch | Review base | Latest commit | diff --git a/README.md b/README.md index 4548dec..5802f6d 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`). @@ -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= 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,7 +134,7 @@ 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 lives in ggml-omega; 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. diff --git a/evidence/release-v1/claims-ledger-d8174edd.md b/evidence/release-v1/claims-ledger-d8174edd.md new file mode 100644 index 0000000..4a809de --- /dev/null +++ b/evidence/release-v1/claims-ledger-d8174edd.md @@ -0,0 +1,119 @@ +# Claims ledger: README.md, AGENTS.md, MISSION-REPORT.md at `d8174edd` + +Issue: DRA-107 (W6 claims pass). Base: omega-bridge main +`d8174eddf953ad53e16f19eb5841459df99e24bb` (#74). Line numbers below are the +document lines at that base. Evidence cells are `path:line` at the same base. + +Status values: `SUPPORTED` (committed evidence at the cited line), `FIXED` +(text was wrong against the repo or GitHub state; corrected on +`hive/dra-107-claims-ledger`), `EXTERNAL` (evidence lives in another named +repository, not committed here), `NOT_RUN` (needs hardware or review; kept, +not deleted), `UNSUPPORTED` (no evidence found). + +The v1.0.0 tag and release notes stay gated: W3 DRA-104, W4 DRA-105 and W5 +DRA-106 are not Done. + +## Fresh-clone suite + +Spark, fresh clone at `d8174edd`, `CUDA_VISIBLE_DEVICES=`, cores 16,17, under +`bwrap` and the lane CPU lock: +`tools/bootstrap.sh && tools/build.sh && tools/test.sh` -> rc=0, +`bootstrap fixpoint RC=0` (log line 5), last line `ALL SUITES RC=0` (log line +192). Suite lines: differential `cases=113 failures=0`, refusal `cases=50`, +attachment `cases=2`, control `cases=7`, robustness `cases=225`, all `RC=0`. +PASS (host, AArch64; not hardware qualification). + +## README.md + +| # | Line | Claim | Evidence | Status | +|---|---|---|---|---| +| R1 | 3 | `src/toc.om`, `src/native.om`, `src/gpu_adapter.om` exist with those roles | `src/toc.om:1`, `src/native.om:1`, `src/gpu_adapter.om:1` | SUPPORTED | +| R2 | 3, 150 | Apache-2.0 WITH LLVM-exception | `LICENSE:1`, `NOTICE:1` | SUPPORTED | +| R3 | 5 | ARCH-0042 Accepted | aien-architecture-mv#342 state MERGED (gh, 2026-11-06) | EXTERNAL | +| R4 | 7 | PyTorch and GGML attachments "pending (#23/#30, ggml-omega#1/#2)" | gh: omega-bridge #23 MERGED `4f231fa9`, #30 MERGED `2eb3ffc0`; ggml-omega #1, #2 MERGED | FIXED | +| R5 | 8 | omega-mv#870, #871 track remaining overlaps | gh: both OPEN | EXTERNAL | +| R6 | 9 | conformance links `omega_runner.c` against `libomega_gpu.a`; device window calls `cubin_probe` | `conformance/build.sh:1`, `tools/run-device-window.sh:1` | SUPPORTED | +| R7 | 11 | bootstrap requires Linux AArch64; no performance claim | `tools/bootstrap.sh:1` | SUPPORTED | +| R8 | 11 | independent review required before release | — | NOT_RUN (review gate, DRA-106) | +| R9 | 15 | seed pin `191b776e…` checked by `tools/bridge` | `tools/bridge:10`, `tools/build.sh:5` | SUPPORTED | +| R10 | 17 | recovered `toc.om` on base `29b12760` failed 8 of 20 | `evidence/01-recovered-red.log:21`, `docs/PROVENANCE.md:3` | SUPPORTED | +| R11 | 17 | walkthrough refusal exit 24, tampered pin exit 65 | `docs/WALKTHROUGH.md:157`, `docs/WALKTHROUGH.md:31` | SUPPORTED | +| R12 | 27 | bootstrap fetches the commit in PROVENANCE | `tools/bootstrap.sh:6` | SUPPORTED | +| R13 | 29-36 | `Portable bridge behavior` workflow runs listed suites on AArch64 runners | `.github/workflows/` (workflow file), tests `tests/seeded.py:1`, `tests/freest.py:1` | SUPPORTED (CI run itself not re-observed here) | +| R14 | 34-35 | native x86 consumer coverage in CUDApp `Ampere native x86 host` workflow | CUDApp repository | EXTERNAL | +| R15 | 38-44 | shift admission rules, wrong-direction mutant in `tests/freest.py` | `tests/freest.py:1` | SUPPORTED | +| R16 | 49-53 | fib example converts and runs | `tests/fixtures/fib.om`; fresh-clone suite above | SUPPORTED | +| R17 | 61 | `tests/attachments.py` real callers | fresh-clone log `attachment cases=2 failures=0 RC=0` | SUPPORTED | +| R18 | 64 | seeded frontend: f32/f64, views, `tools/bridge-seeded` pinned `e5b32567` | `tools/bridge-seeded:2`, `tests/seeded_float.py:1`, `tests/seeded_views.py:1` | SUPPORTED | +| R19 | 64 | `tools/native --float` in five languages | `tools/native:3`, `tests/native/float.py:1` | SUPPORTED | +| R20 | 66 | `torch.compile(backend="omega")` covers mm, addmm, transpose, add, relu, softmax; CPU only | `docs/OMEGA-TORCH.md:21`, `pytorch/omega_torch/` | SUPPORTED | +| R21 | 68 | DeepInfer is a proposed target | `docs/DEEPINFER.md:1` | SUPPORTED | +| R22 | 73-76 | `tools/native` writes six binding files from one generator | `tools/native:3`, `tests/native/run.sh:199` | SUPPORTED | +| R23 | 78 | DeepInfer FlopsEstimator OM-2 replacement, differential-tested | `examples/deepinfer/flops_pairs.om`, `evidence/deepinfer-flops-pairs/` | SUPPORTED | +| R24 | 80 | f32/ushort kinds qualified by `tests/native/kinds.sh` | `tests/native/kinds.sh:1` | SUPPORTED | +| R25 | 82 | `--host` words, capacity 1..4098 | `docs/NATIVE-ABI.md:512`, `docs/NATIVE-ABI.md:948` | SUPPORTED | +| R26 | 82 | "draft contract requiring Drake approval before merge" | already on main: `5b1fd722` reached main via merge `6afaec6` | FIXED | +| R27 | 82 | GPU/chip qualification | — | NOT_RUN | +| R28 | 84-86 | five exact aien-gpu ABI1 ioctls; device NOT_RUN | `docs/NATIVE-ABI.md:936` | SUPPORTED / NOT_RUN (device) | +| R29 | 87 | "trust-surface draft also requires Drake approval before merge" | already on main: `249df29` via merge `6afaec6` | FIXED | +| R30 | 90-103 | x86 target explicit; pins `734f0a39…`, `be8c5130…` | `tools/native:51`, `tools/native:52`, `docs/NATIVE-ABI.md:8` | SUPPORTED | +| R31 | 104 | `--freestanding --target x86linux` (omega-mv#940) | `tools/native:3`; omega-mv#940 CLOSED | SUPPORTED | +| R32 | 108-110 | QEMU 10.0.14 oracle; 8.2.2 limitations | `docs/NATIVE-ABI.md:65`, `docs/NATIVE-ABI.md:110`, `docs/NATIVE-ABI.md:74` | SUPPORTED | +| R33 | 112-114 | full suite and controls passed EMULATED at x86 pin | `evidence/native-x86-be8c5130.json:4`, `evidence/native-x86-be8c5130-controls.log:1` | SUPPORTED (emulator) | +| R34 | 115-116 | physical x86 execution | — | NOT_RUN (DRA-104) | +| R35 | 120-131 | `src/kernel_leaf.om` experiment, not integrated | `src/kernel_leaf.om:1` | SUPPORTED | +| R36 | 137 | ggml-omega drafts #1/#2 | gh: both MERGED | FIXED | +| R37 | 137 | test-backend-ops MUL_MAT 871 / RMS_NORM 7 / SWIGLU 12 OK | not committed in this repository | EXTERNAL (ggml-omega receipt) | +| R38 | 138 | `attach/torch` ops on GB10, EXERCISED | `evidence/attach-gb10-20261027T0726Z/torch.log:14`, `attach/torch/cudapp_torch.py:15` | SUPPORTED (EXERCISED, single GB10) | +| R39 | 140 | no model run on GB10 yet | — | NOT_RUN | +| R40 | 146 | HDAE citation DOI | external DOI | EXTERNAL | + +## AGENTS.md + +| # | Line | Claim | Evidence | Status | +|---|---|---|---|---| +| A1 | 3-4 | role summary; ARCH-0042 | as R1, R3 | SUPPORTED / EXTERNAL | +| A2 | 13 | `tools/` entry-point list omitted `bridge-seeded`, `bridge-freest` | `tools/bridge-seeded:2`, `tools/bridge-freest` | FIXED | +| A3 | 16 | `pytorch/` layout | `pytorch/kernels/`, `pytorch/omega_torch/` | SUPPORTED | +| A4 | 21-30 | install needs AArch64; bootstrap ends `bootstrap fixpoint RC=0`, seed `191b776e…`, pin `29b12760…` | `tools/bootstrap.sh:47`, `tools/bootstrap.sh:43`, `tools/bootstrap.sh:6` | SUPPORTED | +| A5 | 36 | `OMEGA_NATIVE_OMC` `734f0a39…` (omega-mv #696) | `tools/native:51`, `docs/NATIVE-ABI.md:16`, `docs/NATIVE-ABI.md:622` | SUPPORTED | +| A6 | 38 | host OMC2 `c000ec02…` @ `2992a68b`; hoist OMC2 `07820046…` @ `7286d61d` | `docs/NATIVE-ABI.md:1106`, `docs/NATIVE-ABI.md:1105` | SUPPORTED | +| A7 | 39 | device OMC2 `b8f8f137…` | `docs/NATIVE-ABI.md:876` | SUPPORTED | +| A8 | 40 | x86 OMC `be8c5130…` | `tools/native:52` | SUPPORTED | +| A9 | 42 | QEMU 10.0.14; EMULATED receipts | as R32, R33 | SUPPORTED | +| A10 | 44 | `OMEGA_SEEDED_OMC` `e5b32567` / `2c824805…` | `tools/bridge-seeded:2` | SUPPORTED | +| A11 | 79 | `tools/test.sh` ends `ALL SUITES RC=0` | `tools/test.sh:12`; fresh-clone run above | SUPPORTED | +| A12 | 79 | `NATIVE-CALL PASS` only after all callers | `tests/native/run.sh:199` | SUPPORTED | +| A13 | 81 | device runs need GB10 window | — | NOT_RUN | +| A14 | 105 | `docs/NATIVE-ABI.md` described as v1 only | `docs/NATIVE-ABI.md` covers v2 (`evidence/native-abi-v2/`) | FIXED | + +## MISSION-REPORT.md + +| # | Line | Claim | Evidence | Status | +|---|---|---|---|---| +| M1 | 3 | dated 2026-10-23 snapshot; branch revisions table | historical; status note added after line 5 | FIXED (dated note) | +| M2 | 17-18 | seed compiler `191b776e…` | `tools/build.sh:5` | SUPPORTED | +| M3 | 25-30 | omega contracts, CUDApp cubin, manifest, admission | `omega/…`, `cudapp/…` paths | EXTERNAL | +| M4 | 31 | Bridge GPU adapter v1, 49 checks | `evidence/MAX-INTEROP/3/tests.log:1` | SUPPORTED | +| M5 | 33 | MAX 26.7 pin and matrix | `docs/max/` | SUPPORTED | +| M6 | 34-35 | separate-process MAX vs Omega on CPU | `evidence/MAX-INTEROP/5/harness.log:5` | SUPPORTED | +| M7 | 52-57 | device load/launch, GB10 runs, benchmarks | — | NOT_RUN | +| M8 | 69 | "No PR exists" for upstream MAX request | not checkable from this repository | UNSUPPORTED (kept; Drake decision 2) | +| M9 | 71-73 | ongoing Modular email thread | correction carried from #28 | EXTERNAL | +| M10 | 94-104 | residual risks | — | NOT_RUN (design statements) | + +## Ledger check + +Every backticked repository path in an Evidence row must exist at the base +commit. From a clone: + +```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 +``` + +Result at `d8174edd`: no `MISSING` lines (PASS). Negative control: appending +the row `| R99 | 1 | planted | evidence/does-not-exist.log:1 (backticked) | SUPPORTED |` +makes the check print `MISSING evidence/does-not-exist.log`. From e2d2e5c517ad9d2e58d94f47798159a666a6f8e4 Mon Sep 17 00:00:00 2001 From: Drake Stapleton Date: Fri, 6 Nov 2026 14:28:06 -0600 Subject: [PATCH 02/18] evidence: DRA-107 pre-tag fresh-clone rehearsal log and ledger-check negative control --- .../fresh-clone-d8174edd-rehearsal.log | 200 ++++++++++++++++++ .../ledger-check-negative-control.log | 7 + 2 files changed, 207 insertions(+) create mode 100644 evidence/release-v1/fresh-clone-d8174edd-rehearsal.log create mode 100644 evidence/release-v1/ledger-check-negative-control.log 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 -- 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 From 9505ed5d88650ccb4be6fce5cb5994c06894aea1 Mon Sep 17 00:00:00 2001 From: Drake Stapleton Date: Fri, 6 Nov 2026 14:33:17 -0600 Subject: [PATCH 03/18] docs: README states omega torch.compile ~66x slower than eager (timings-low.json) --- README.md | 2 +- evidence/release-v1/claims-ledger-d8174edd.md | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 5802f6d..2273e44 100644 --- a/README.md +++ b/README.md @@ -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). diff --git a/evidence/release-v1/claims-ledger-d8174edd.md b/evidence/release-v1/claims-ledger-d8174edd.md index 4a809de..c6beb6b 100644 --- a/evidence/release-v1/claims-ledger-d8174edd.md +++ b/evidence/release-v1/claims-ledger-d8174edd.md @@ -47,6 +47,7 @@ PASS (host, AArch64; not hardware qualification). | R18 | 64 | seeded frontend: f32/f64, views, `tools/bridge-seeded` pinned `e5b32567` | `tools/bridge-seeded:2`, `tests/seeded_float.py:1`, `tests/seeded_views.py:1` | SUPPORTED | | R19 | 64 | `tools/native --float` in five languages | `tools/native:3`, `tests/native/float.py:1` | SUPPORTED | | R20 | 66 | `torch.compile(backend="omega")` covers mm, addmm, transpose, add, relu, softmax; CPU only | `docs/OMEGA-TORCH.md:21`, `pytorch/omega_torch/` | SUPPORTED | +| R20b | 66 | PyTorch slowdown was not stated; now about 66x slower than eager (paired median 65.86, 30 rounds) | `evidence/omega-torch-m1/timings-low.json:26` (eager_ns), `evidence/omega-torch-m1/timings-low.json:58` (omega_ns); WolframLanguageEvaluator: Median[N[o/e]] -> 65.8629606673294 (30 pairs) | FIXED | | R21 | 68 | DeepInfer is a proposed target | `docs/DEEPINFER.md:1` | SUPPORTED | | R22 | 73-76 | `tools/native` writes six binding files from one generator | `tools/native:3`, `tests/native/run.sh:199` | SUPPORTED | | R23 | 78 | DeepInfer FlopsEstimator OM-2 replacement, differential-tested | `examples/deepinfer/flops_pairs.om`, `evidence/deepinfer-flops-pairs/` | SUPPORTED | From 6ecff840d67adb6e61d591e725eec42bcfa42d94 Mon Sep 17 00:00:00 2001 From: Drake Stapleton <213298340+drakestapleton@users.noreply.github.com> Date: Fri, 6 Nov 2026 22:23:38 -0600 Subject: [PATCH 04/18] release: DRA-107 claims pass revision 2 and v1.0.0 tag preparation Re-check every claim in README.md, AGENTS.md and MISSION-REPORT.md against the line of a committed receipt instead of path existence, and make that check mechanical. - tools/claimcheck.om (seeded Omega, built with the bootstrap seed 191b776e) judges a stream that tools/claimcheck.sh builds from evidence/release-v1/claims.tsv: each cited document and receipt line must contain its text byte for byte, SUPPORTED rows need a receipt, and tag mode refuses while a release gate receipt (G1-G4: physical x86, device windows, outside review, attachment recheck) is absent or a row is UNSUPPORTED. - tests/claimcheck.sh: 16 controls on a fixture table, including a judge mutant that must let a mismatch through; run by tools/test.sh. - README: link the pinned ggml-omega test-backend-ops receipt; correct "Neither attachment has run a model on the GB10" (ggml-omega records a 16-token greedy CPU vs OmegaGB10 comparison, 2026-10-29). - MISSION-REPORT: the 2.7e-7 GQA error is stated only in RESULT.md; "No PR exists" checked by GitHub PR search; status note no longer asserts device rows NOT_RUN (#78 changes section 3). - Ledger revision 2, draft v1.0.0 release notes and the tag runbook. No tag; gated on DRA-104, DRA-105, DRA-106. Agent: t_5fd2df46 (Hermes worker, claude-opus-5-5, anthropic) --- MISSION-REPORT.md | 9 +- README.md | 4 +- evidence/release-v1/README.md | 34 ++ .../release-v1/RELEASE-NOTES-v1.0.0.draft.md | 93 ++++++ .../claimcheck-negative-controls.log | 59 ++++ evidence/release-v1/claimcheck-prep.log | 12 + evidence/release-v1/claimcheck-tag.log | 12 + evidence/release-v1/claims-ledger-d8174edd.md | 244 ++++++++------ evidence/release-v1/claims.tsv | 76 +++++ tests/claimcheck.sh | 80 +++++ tests/fixtures/claimcheck/doc.md | 3 + tests/fixtures/claimcheck/gate.txt | 1 + tests/fixtures/claimcheck/receipt.log | 3 + tests/fixtures/claimcheck/table.tsv | 5 + tools/claimcheck.om | 307 ++++++++++++++++++ tools/claimcheck.sh | 63 ++++ tools/test.sh | 1 + 17 files changed, 899 insertions(+), 107 deletions(-) create mode 100644 evidence/release-v1/README.md create mode 100644 evidence/release-v1/RELEASE-NOTES-v1.0.0.draft.md create mode 100644 evidence/release-v1/claimcheck-negative-controls.log create mode 100644 evidence/release-v1/claimcheck-prep.log create mode 100644 evidence/release-v1/claimcheck-tag.log create mode 100644 evidence/release-v1/claims.tsv create mode 100644 tests/claimcheck.sh create mode 100644 tests/fixtures/claimcheck/doc.md create mode 100644 tests/fixtures/claimcheck/gate.txt create mode 100644 tests/fixtures/claimcheck/receipt.log create mode 100644 tests/fixtures/claimcheck/table.tsv create mode 100644 tools/claimcheck.om create mode 100644 tools/claimcheck.sh diff --git a/MISSION-REPORT.md b/MISSION-REPORT.md index f89a0a5..10bfe70 100644 --- a/MISSION-REPORT.md +++ b/MISSION-REPORT.md @@ -7,8 +7,8 @@ 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 rows -remain NOT_RUN. Per-claim ledger: `evidence/release-v1/claims-ledger-d8174edd.md`. +`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 @@ -38,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 | bit-identical matmul SHA-256; GQA max abs error 2.7e-7 (the error value is stated in `RESULT.md`; `harness.log` records the checks and the PASS verdict, not the value) | ### Exact artifacts @@ -72,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 exists (checked 2026-11-07: GitHub PR search +in modular/modular by authors drakestapleton and aien-spark returns 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 2273e44..36298f8 100644 --- a/README.md +++ b/README.md @@ -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 (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 lives in ggml-omega; no copy is committed here) | +| 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/release-v1/README.md b/evidence/release-v1/README.md new file mode 100644 index 0000000..48af755 --- /dev/null +++ b/evidence/release-v1/README.md @@ -0,0 +1,34 @@ +# 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.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 this branch's head: bootstrap, build, test (now including `tests/claimcheck.sh`) and `tools/claimcheck.sh prep`. | +| `claimcheck-prep.log`, `claimcheck-tag.log`, `claimcheck-negative-controls.log` | Revision 2 claims check on this branch: prep PASS, tag refused (gates open), and planted failures. | +| `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-.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`; `sh tools/claimcheck.sh tag` 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 `, 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..6d796d2 --- /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 +`sh tools/claimcheck.sh 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 (M6, M6b). 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 `sh tools/claimcheck.sh tag` 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.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.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.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 index c6beb6b..52b8d52 100644 --- a/evidence/release-v1/claims-ledger-d8174edd.md +++ b/evidence/release-v1/claims-ledger-d8174edd.md @@ -1,112 +1,154 @@ # Claims ledger: README.md, AGENTS.md, MISSION-REPORT.md at `d8174edd` Issue: DRA-107 (W6 claims pass). Base: omega-bridge main -`d8174eddf953ad53e16f19eb5841459df99e24bb` (#74). Line numbers below are the -document lines at that base. Evidence cells are `path:line` at the same base. +`d8174eddf953ad53e16f19eb5841459df99e24bb` (#74). Document lines below are the +lines on branch `hive/dra-107-claims-ledger` (base plus this pass's text fixes). -Status values: `SUPPORTED` (committed evidence at the cited line), `FIXED` -(text was wrong against the repo or GitHub state; corrected on -`hive/dra-107-claims-ledger`), `EXTERNAL` (evidence lives in another named -repository, not committed here), `NOT_RUN` (needs hardware or review; kept, -not deleted), `UNSUPPORTED` (no evidence found). +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). `sh tools/claimcheck.sh prep` re-reads every cited +document and receipt line and requires the row's text in it byte for byte; the +decision is made by `tools/claimcheck.om` (seeded Omega, built with the +bootstrap seed `191b776e…`). Its controls are `tests/claimcheck.sh`, run by +`tools/test.sh`. + +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. +DRA-106 are not Done. Gates G1-G4 below are what `tools/claimcheck.sh tag` +requires. -## Fresh-clone suite +## Findings of revision 2 -Spark, fresh clone at `d8174edd`, `CUDA_VISIBLE_DEVICES=`, cores 16,17, under -`bwrap` and the lane CPU lock: -`tools/bootstrap.sh && tools/build.sh && tools/test.sh` -> rc=0, -`bootstrap fixpoint RC=0` (log line 5), last line `ALL SUITES RC=0` (log line -192). Suite lines: differential `cases=113 failures=0`, refusal `cases=50`, -attachment `cases=2`, control `cases=7`, robustness `cases=225`, all `RC=0`. -PASS (host, AArch64; not hardware qualification). +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 "GQA max abs error 2.7e-7" is stated only in the hand-written + `evidence/MAX-INTEROP/5/RESULT.md`; the raw `harness.log` has the verdict + but not the value. The report now says so (M6b). +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. Now EXTERNAL, with the check written in + the report (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. -## README.md +## Rows -| # | Line | Claim | Evidence | Status | -|---|---|---|---|---| -| R1 | 3 | `src/toc.om`, `src/native.om`, `src/gpu_adapter.om` exist with those roles | `src/toc.om:1`, `src/native.om:1`, `src/gpu_adapter.om:1` | SUPPORTED | -| R2 | 3, 150 | Apache-2.0 WITH LLVM-exception | `LICENSE:1`, `NOTICE:1` | SUPPORTED | -| R3 | 5 | ARCH-0042 Accepted | aien-architecture-mv#342 state MERGED (gh, 2026-11-06) | EXTERNAL | -| R4 | 7 | PyTorch and GGML attachments "pending (#23/#30, ggml-omega#1/#2)" | gh: omega-bridge #23 MERGED `4f231fa9`, #30 MERGED `2eb3ffc0`; ggml-omega #1, #2 MERGED | FIXED | -| R5 | 8 | omega-mv#870, #871 track remaining overlaps | gh: both OPEN | EXTERNAL | -| R6 | 9 | conformance links `omega_runner.c` against `libomega_gpu.a`; device window calls `cubin_probe` | `conformance/build.sh:1`, `tools/run-device-window.sh:1` | SUPPORTED | -| R7 | 11 | bootstrap requires Linux AArch64; no performance claim | `tools/bootstrap.sh:1` | SUPPORTED | -| R8 | 11 | independent review required before release | — | NOT_RUN (review gate, DRA-106) | -| R9 | 15 | seed pin `191b776e…` checked by `tools/bridge` | `tools/bridge:10`, `tools/build.sh:5` | SUPPORTED | -| R10 | 17 | recovered `toc.om` on base `29b12760` failed 8 of 20 | `evidence/01-recovered-red.log:21`, `docs/PROVENANCE.md:3` | SUPPORTED | -| R11 | 17 | walkthrough refusal exit 24, tampered pin exit 65 | `docs/WALKTHROUGH.md:157`, `docs/WALKTHROUGH.md:31` | SUPPORTED | -| R12 | 27 | bootstrap fetches the commit in PROVENANCE | `tools/bootstrap.sh:6` | SUPPORTED | -| R13 | 29-36 | `Portable bridge behavior` workflow runs listed suites on AArch64 runners | `.github/workflows/` (workflow file), tests `tests/seeded.py:1`, `tests/freest.py:1` | SUPPORTED (CI run itself not re-observed here) | -| R14 | 34-35 | native x86 consumer coverage in CUDApp `Ampere native x86 host` workflow | CUDApp repository | EXTERNAL | -| R15 | 38-44 | shift admission rules, wrong-direction mutant in `tests/freest.py` | `tests/freest.py:1` | SUPPORTED | -| R16 | 49-53 | fib example converts and runs | `tests/fixtures/fib.om`; fresh-clone suite above | SUPPORTED | -| R17 | 61 | `tests/attachments.py` real callers | fresh-clone log `attachment cases=2 failures=0 RC=0` | SUPPORTED | -| R18 | 64 | seeded frontend: f32/f64, views, `tools/bridge-seeded` pinned `e5b32567` | `tools/bridge-seeded:2`, `tests/seeded_float.py:1`, `tests/seeded_views.py:1` | SUPPORTED | -| R19 | 64 | `tools/native --float` in five languages | `tools/native:3`, `tests/native/float.py:1` | SUPPORTED | -| R20 | 66 | `torch.compile(backend="omega")` covers mm, addmm, transpose, add, relu, softmax; CPU only | `docs/OMEGA-TORCH.md:21`, `pytorch/omega_torch/` | SUPPORTED | -| R20b | 66 | PyTorch slowdown was not stated; now about 66x slower than eager (paired median 65.86, 30 rounds) | `evidence/omega-torch-m1/timings-low.json:26` (eager_ns), `evidence/omega-torch-m1/timings-low.json:58` (omega_ns); WolframLanguageEvaluator: Median[N[o/e]] -> 65.8629606673294 (30 pairs) | FIXED | -| R21 | 68 | DeepInfer is a proposed target | `docs/DEEPINFER.md:1` | SUPPORTED | -| R22 | 73-76 | `tools/native` writes six binding files from one generator | `tools/native:3`, `tests/native/run.sh:199` | SUPPORTED | -| R23 | 78 | DeepInfer FlopsEstimator OM-2 replacement, differential-tested | `examples/deepinfer/flops_pairs.om`, `evidence/deepinfer-flops-pairs/` | SUPPORTED | -| R24 | 80 | f32/ushort kinds qualified by `tests/native/kinds.sh` | `tests/native/kinds.sh:1` | SUPPORTED | -| R25 | 82 | `--host` words, capacity 1..4098 | `docs/NATIVE-ABI.md:512`, `docs/NATIVE-ABI.md:948` | SUPPORTED | -| R26 | 82 | "draft contract requiring Drake approval before merge" | already on main: `5b1fd722` reached main via merge `6afaec6` | FIXED | -| R27 | 82 | GPU/chip qualification | — | NOT_RUN | -| R28 | 84-86 | five exact aien-gpu ABI1 ioctls; device NOT_RUN | `docs/NATIVE-ABI.md:936` | SUPPORTED / NOT_RUN (device) | -| R29 | 87 | "trust-surface draft also requires Drake approval before merge" | already on main: `249df29` via merge `6afaec6` | FIXED | -| R30 | 90-103 | x86 target explicit; pins `734f0a39…`, `be8c5130…` | `tools/native:51`, `tools/native:52`, `docs/NATIVE-ABI.md:8` | SUPPORTED | -| R31 | 104 | `--freestanding --target x86linux` (omega-mv#940) | `tools/native:3`; omega-mv#940 CLOSED | SUPPORTED | -| R32 | 108-110 | QEMU 10.0.14 oracle; 8.2.2 limitations | `docs/NATIVE-ABI.md:65`, `docs/NATIVE-ABI.md:110`, `docs/NATIVE-ABI.md:74` | SUPPORTED | -| R33 | 112-114 | full suite and controls passed EMULATED at x86 pin | `evidence/native-x86-be8c5130.json:4`, `evidence/native-x86-be8c5130-controls.log:1` | SUPPORTED (emulator) | -| R34 | 115-116 | physical x86 execution | — | NOT_RUN (DRA-104) | -| R35 | 120-131 | `src/kernel_leaf.om` experiment, not integrated | `src/kernel_leaf.om:1` | SUPPORTED | -| R36 | 137 | ggml-omega drafts #1/#2 | gh: both MERGED | FIXED | -| R37 | 137 | test-backend-ops MUL_MAT 871 / RMS_NORM 7 / SWIGLU 12 OK | not committed in this repository | EXTERNAL (ggml-omega receipt) | -| R38 | 138 | `attach/torch` ops on GB10, EXERCISED | `evidence/attach-gb10-20261027T0726Z/torch.log:14`, `attach/torch/cudapp_torch.py:15` | SUPPORTED (EXERCISED, single GB10) | -| R39 | 140 | no model run on GB10 yet | — | NOT_RUN | -| R40 | 146 | HDAE citation DOI | external DOI | EXTERNAL | - -## AGENTS.md - -| # | Line | Claim | Evidence | Status | -|---|---|---|---|---| -| A1 | 3-4 | role summary; ARCH-0042 | as R1, R3 | SUPPORTED / EXTERNAL | -| A2 | 13 | `tools/` entry-point list omitted `bridge-seeded`, `bridge-freest` | `tools/bridge-seeded:2`, `tools/bridge-freest` | FIXED | -| A3 | 16 | `pytorch/` layout | `pytorch/kernels/`, `pytorch/omega_torch/` | SUPPORTED | -| A4 | 21-30 | install needs AArch64; bootstrap ends `bootstrap fixpoint RC=0`, seed `191b776e…`, pin `29b12760…` | `tools/bootstrap.sh:47`, `tools/bootstrap.sh:43`, `tools/bootstrap.sh:6` | SUPPORTED | -| A5 | 36 | `OMEGA_NATIVE_OMC` `734f0a39…` (omega-mv #696) | `tools/native:51`, `docs/NATIVE-ABI.md:16`, `docs/NATIVE-ABI.md:622` | SUPPORTED | -| A6 | 38 | host OMC2 `c000ec02…` @ `2992a68b`; hoist OMC2 `07820046…` @ `7286d61d` | `docs/NATIVE-ABI.md:1106`, `docs/NATIVE-ABI.md:1105` | SUPPORTED | -| A7 | 39 | device OMC2 `b8f8f137…` | `docs/NATIVE-ABI.md:876` | SUPPORTED | -| A8 | 40 | x86 OMC `be8c5130…` | `tools/native:52` | SUPPORTED | -| A9 | 42 | QEMU 10.0.14; EMULATED receipts | as R32, R33 | SUPPORTED | -| A10 | 44 | `OMEGA_SEEDED_OMC` `e5b32567` / `2c824805…` | `tools/bridge-seeded:2` | SUPPORTED | -| A11 | 79 | `tools/test.sh` ends `ALL SUITES RC=0` | `tools/test.sh:12`; fresh-clone run above | SUPPORTED | -| A12 | 79 | `NATIVE-CALL PASS` only after all callers | `tests/native/run.sh:199` | SUPPORTED | -| A13 | 81 | device runs need GB10 window | — | NOT_RUN | -| A14 | 105 | `docs/NATIVE-ABI.md` described as v1 only | `docs/NATIVE-ABI.md` covers v2 (`evidence/native-abi-v2/`) | FIXED | - -## MISSION-REPORT.md - -| # | Line | Claim | Evidence | Status | +| # | Document line | Receipt line (checked by `tools/claimcheck.sh`) | Status | Notes | |---|---|---|---|---| -| M1 | 3 | dated 2026-10-23 snapshot; branch revisions table | historical; status note added after line 5 | FIXED (dated note) | -| M2 | 17-18 | seed compiler `191b776e…` | `tools/build.sh:5` | SUPPORTED | -| M3 | 25-30 | omega contracts, CUDApp cubin, manifest, admission | `omega/…`, `cudapp/…` paths | EXTERNAL | -| M4 | 31 | Bridge GPU adapter v1, 49 checks | `evidence/MAX-INTEROP/3/tests.log:1` | SUPPORTED | -| M5 | 33 | MAX 26.7 pin and matrix | `docs/max/` | SUPPORTED | -| M6 | 34-35 | separate-process MAX vs Omega on CPU | `evidence/MAX-INTEROP/5/harness.log:5` | SUPPORTED | -| M7 | 52-57 | device load/launch, GB10 runs, benchmarks | — | NOT_RUN | -| M8 | 69 | "No PR exists" for upstream MAX request | not checkable from this repository | UNSUPPORTED (kept; Drake decision 2) | -| M9 | 71-73 | ongoing Modular email thread | correction carried from #28 | EXTERNAL | -| M10 | 94-104 | residual risks | — | NOT_RUN (design statements) | - -## Ledger check - -Every backticked repository path in an Evidence row must exist at the base -commit. From a clone: +| 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/RESULT.md:16` contains `worst absolute error `2.7e-7`` | SUPPORTED | FIXED wording in this pass. The worst GQA error 2.7e-7 is stated only in the hand-written RESULT.md; harness.log has the checks and the PASS verdict but not the value. The report now says so. Matmul equality: harness.log line 4 MAX output_sha256 60a7f7d4..., checked by conformance/verify.py against the Omega host output (fail 0, line 8). | +| 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. Now EXTERNAL with the check stated in the report. | +| 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 +`sh tools/claimcheck.sh 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 \ @@ -115,6 +157,6 @@ grep '^| [RAM][0-9]' evidence/release-v1/claims-ledger-d8174edd.md \ | while read p; do git cat-file -e d8174edd:"${p%/}" 2>/dev/null || echo "MISSING $p"; done ``` -Result at `d8174edd`: no `MISSING` lines (PASS). Negative control: appending -the row `| R99 | 1 | planted | evidence/does-not-exist.log:1 (backticked) | SUPPORTED |` -makes the check print `MISSING evidence/does-not-exist.log`. +Revision 1 result at `d8174edd`: no `MISSING` lines, with the planted-row +negative control in `ledger-check-negative-control.log`. Superseded by +`tools/claimcheck.sh`, 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..3cda737 --- /dev/null +++ b/evidence/release-v1/claims.tsv @@ -0,0 +1,76 @@ +# DRA-107 claims table for tools/claimcheck.sh (judge: tools/claimcheck.om). 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 ` 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 bit-identical matmul SHA-256; GQA max abs error 2.7e-7 evidence/MAX-INTEROP/5/RESULT.md:16 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 exists (checked 2026-11-07 - - +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/tests/claimcheck.sh b/tests/claimcheck.sh new file mode 100644 index 0000000..f9ee4df --- /dev/null +++ b/tests/claimcheck.sh @@ -0,0 +1,80 @@ +#!/bin/sh +# Controls for the release claims check (tools/claimcheck.sh, judge tools/claimcheck.om) on a +# fixed fixture table, independent of the real claims table (DRA-107). Needs the bootstrap seed. +set -eu +cd "$(dirname "$0")/.." +F=tests/fixtures/claimcheck +W=build/claimcheck-tests +mkdir -p "$W" +tab=$(printf '\t') +fails=0 +cases=0 +# check NAME WANT_RC WANT_TEXT TABLE MODE [ROOT]: run the check, compare rc and one output line. +check() { + name=$1; want=$2; text=$3; table=$4; mode=$5; root=${6:-.} + cases=$((cases + 1)) + set +e + out=$(OMEGA_SEED="$seed" sh "$root/tools/claimcheck.sh" "$mode" "$table" 2>&1) + rc=$? + set -e + if [ "$rc" = "$want" ] && printf '%s\n' "$out" | grep -q -x -F -- "$text"; then + echo "PASS $name (rc=$rc: $text)" + else + echo "FAIL $name: want rc=$want and line '$text', got rc=$rc" + printf '%s\n' "$out" | sed 's/^/ | /' + fails=$((fails + 1)) + fi +} +seed=$(pwd)/${OMEGA_SEED:-build/bootstrap/omc} +good=$F/table.tsv +sed "s#receipt.log:2${tab}PASS 7 of 7#receipt.log:2${tab}PASS 8 of 7#" $good > $W/expect.tsv +sed "s#doc.md:1${tab}alpha claim#doc.md:2${tab}alpha claim#" $good > $W/docline.tsv +sed "s#receipt.log:2#receipt.log:4#" $good > $W/pastend.tsv +sed "s#receipt.log:2#nonexistent.log:2#" $good > $W/missing.tsv +sed "s#${tab}tests/fixtures/claimcheck/receipt.log:2${tab}PASS 7 of 7#${tab}-${tab}-#" $good > $W/nocite.tsv +sed "s#^C1${tab}SUPPORTED#C1${tab}PROVEN#" $good > $W/status.tsv +sed "s#^C3${tab}EXTERNAL#C3${tab}UNSUPPORTED#" $good > $W/unsup.tsv +sed "s#gate.txt#gate-absent.txt#" $good > $W/gate.tsv +sed "s#tests/fixtures/claimcheck/receipt.log:2#../tests/fixtures/claimcheck/receipt.log:2#" $good > $W/escape.tsv +sed "s#receipt.log:2#receipt.log:x2#" $good > $W/nonnum.tsv +printf 'R\tbroken\n' > $W/malformed.tsv +check good-prep 0 'CLAIMCHECK PASS rows=3 checked=4 not_run=1 unsupported=0 external=1 fixed=0 gates=1 gates_open=0' $good prep +check good-tag 0 'TAG-READY yes' $good tag +check receipt-text-mismatch 1 'BAD C1 C mismatch' $W/expect.tsv prep +check document-line-moved 1 'BAD C1 D mismatch' $W/docline.tsv prep +check receipt-line-past-end 1 'BAD C1 C missing' $W/pastend.tsv prep +check receipt-file-missing 1 'BAD C1 C missing' $W/missing.tsv prep +check supported-without-receipt 1 'BAD C1 C nocite' $W/nocite.tsv prep +check unknown-status 1 'BAD C1 D status' $W/status.tsv prep +check path-escape-refused 1 'BAD C1 C missing' $W/escape.tsv prep +check non-numeric-line 1 'BAD C1 C missing' $W/nonnum.tsv prep +check unsupported-prep 0 'TAG-READY no' $W/unsup.tsv prep +check unsupported-tag 3 'TAG-READY no' $W/unsup.tsv tag +check gate-open-tag 3 'GATE-OPEN G1 tests/fixtures/claimcheck/gate-absent.txt' $W/gate.tsv tag +check malformed-table 4 "$W/malformed.tsv: line 1: 2 fields, want 6" $W/malformed.tsv prep +cases=$((cases + 1)) +set +e +out=$(printf 'R\tx\n' | build/claimcheck 2>&1) +rc=$? +set -e +if [ "$rc" = 4 ] && [ -z "$out" ]; then + echo 'PASS judge-refuses-stream-without-mode (rc=4, no output)' +else + echo "FAIL judge-refuses-stream-without-mode: rc=$rc out=$out" + fails=$((fails + 1)) +fi +# Judge mutant: a substring test that always succeeds must let the mismatch through, which shows +# the decision is made by claimcheck.om and not by the shell. +M=$W/mutant +mkdir -p "$M/tools" "$M/tests/fixtures/claimcheck" "$M/build" +cp tools/claimcheck.sh "$M/tools/" +cp $F/doc.md $F/receipt.log $F/gate.txt "$M/tests/fixtures/claimcheck/" +sed 's/^if has 5 6$/if ge get fl 6 0/' tools/claimcheck.om > "$M/tools/claimcheck.om" +if cmp -s tools/claimcheck.om "$M/tools/claimcheck.om"; then + echo 'FAIL judge-mutant: mutation did not apply' + fails=$((fails + 1)) +else + check judge-mutant-accepts-mismatch 0 'CLAIMCHECK PASS rows=3 checked=4 not_run=1 unsupported=0 external=1 fixed=0 gates=1 gates_open=0' "$(pwd)/$W/expect.tsv" prep "$M" +fi +printf 'claimcheck cases=%s failures=%s RC=%s\n' "$cases" "$fails" "$([ "$fails" = 0 ] && echo 0 || echo 1)" +[ "$fails" = 0 ] 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/table.tsv b/tests/fixtures/claimcheck/table.tsv new file mode 100644 index 0000000..830c74c --- /dev/null +++ b/tests/fixtures/claimcheck/table.tsv @@ -0,0 +1,5 @@ +# claimcheck fixture table (tests/claimcheck.sh); 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 - diff --git a/tools/claimcheck.om b/tools/claimcheck.om new file mode 100644 index 0000000..87d05de --- /dev/null +++ b/tools/claimcheck.om @@ -0,0 +1,307 @@ +note claimcheck.om: the judge of the release claims check (DRA-107, tools/claimcheck.sh). +note Built with the repository's bootstrap seed (build/bootstrap/omc, sha256 191b776e...). +note tools/claimcheck.sh does the file I/O: for every row of the claims table it looks up the +note cited document and receipt lines and streams them here. This program decides. +note Input on stdin, 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. SUPPORTED and FIXED rows need +note a receipt citation. A missing file, a missing 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 (no M record first, unknown record, 512 KiB or more). +global inb uchar 524288 +global fs ulong 8 +global fl ulong 8 +global cnt ulong 16 +global ob uchar 32 +global eo ulong 2 +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" +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 +fn rec nf ulong to void +st = stword 2 +if eq st 9 +bad 1 3 8 +ret +end +if fch 3 68 +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 fch 4 45 +if fch 3 67 +if eq st 0 +bad 1 3 9 +end +end +ret +end +if fch 4 48 +bad 1 3 10 +ret +end +if lt nf 7 +bad 1 3 11 +ret +end +if eq get fl 5 0 +bad 1 3 11 +ret +end +if has 5 6 +inc 1 +ret +end +bad 1 3 12 +end +fn gate to void +inc 5 +if fch 2 49 +ret +end +inc 6 +pent 13 +pfld 1 +w = write 1 sp 0 1 +pfld 3 +w = write 1 nl 0 1 +end +fn line s ulong e ulong to ulong +nf = split s e +if fch 0 77 +if fkw 1 6 +put cnt 8 1 +end +put cnt 9 1 +ret 0 +end +if eq get cnt 9 0 +ret 4 +end +if fch 0 82 +rec nf +ret 0 +end +if fch 0 71 +gate +ret 0 +end +ret 4 +end +fn pstat k ulong v ulong to void +pent k +pnum v +end +fn main to int +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 +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 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 diff --git a/tools/claimcheck.sh b/tools/claimcheck.sh new file mode 100644 index 0000000..0580037 --- /dev/null +++ b/tools/claimcheck.sh @@ -0,0 +1,63 @@ +#!/bin/sh +# Release claims check (DRA-107). For every row of the claims table this looks up the cited +# document line and receipt line and streams them to tools/claimcheck.om, which judges them: +# each cited line must contain the row's expect text, SUPPORTED rows need a receipt, and in +# tag mode every release gate receipt must exist and no row may be UNSUPPORTED. +# Usage: tools/claimcheck.sh [prep|tag] [TABLE] (after tools/bootstrap.sh) +# Exit: 0 pass; 1 a BAD row; 2 usage; 3 tag mode with an open gate or UNSUPPORTED row; +# 4 malformed table or stream; 65 wrong seed compiler. +set -eu +cd "$(dirname "$0")/.." +mode=${1:-prep} +table=${2:-evidence/release-v1/claims.tsv} +case $mode in prep|tag) ;; *) echo 'usage: tools/claimcheck.sh [prep|tag] [TABLE]' >&2; exit 2 ;; esac +[ -f "$table" ] || { echo "claims table missing: $table" >&2; exit 2; } +omc=${OMEGA_SEED:-build/bootstrap/omc} +[ -f "$omc" ] || { echo 'seed missing: run tools/bootstrap.sh first' >&2; exit 2; } +[ "$(sha256sum "$omc" | cut -d' ' -f1)" = 191b776ef98821597c3e30655da6d680a9b66edbc9ceaca3c39c61ea6df098e9 ] || exit 65 +mkdir -p build +"$omc" < tools/claimcheck.om > build/claimcheck.tmp +chmod +x build/claimcheck.tmp +mv build/claimcheck.tmp build/claimcheck +tab=$(printf '\t') +awk -F "$tab" '!/^#/ && NF && NF != 6 { printf "%s: line %d: %d fields, want 6\n", FILENAME, NR, NF > "/dev/stderr"; bad = 1 } END { exit bad ? 4 : 0 }' "$table" +# emit ID STATUS SIDE CITE EXPECT: one R record; found is 1 only for a repository-relative +# file that has the cited line. +emit() { + if [ "$4" = - ]; then + printf 'R\t%s\t%s\t%s\t-\t-\t-\n' "$1" "$2" "$3" + return + fi + p=${4%:*} + n=${4##*:} + f=0 + a=- + case $p in + /*|*..*) ;; + *) + case $n in + ''|*[!0-9]*) ;; + *) + if [ -f "$p" ] && [ "$n" -ge 1 ] && [ "$(wc -l < "$p")" -ge "$n" ]; then + f=1 + a=$(sed -n "${n}p" "$p") + fi + ;; + esac + ;; + esac + printf 'R\t%s\t%s\t%s\t%s\t%s\t%s\n' "$1" "$2" "$3" "$f" "$5" "$a" +} +{ + printf 'M\t%s\n' "$mode" + while IFS="$tab" read -r id st doc dexp cite cexp; do + case $id in ''|'#'*) continue ;; esac + if [ "$st" = GATE ]; then + if [ -e "$cite" ]; then f=1; else f=0; fi + printf 'G\t%s\t%s\t%s\n' "$id" "$f" "$cite" + continue + fi + emit "$id" "$st" D "$doc" "$dexp" + emit "$id" "$st" C "$cite" "$cexp" + done < "$table" +} | build/claimcheck diff --git a/tools/test.sh b/tools/test.sh index 8b6c381..8330718 100755 --- a/tools/test.sh +++ b/tools/test.sh @@ -9,4 +9,5 @@ python3 tests/refusals.py python3 tests/attachments.py python3 tests/controls.py python3 tests/robustness.py +sh tests/claimcheck.sh printf 'ALL SUITES RC=0\n' From 3c2d599fdb5b22e45a0995a8343598c2187fe8fa Mon Sep 17 00:00:00 2001 From: Drake Stapleton <213298340+drakestapleton@users.noreply.github.com> Date: Fri, 6 Nov 2026 22:23:42 -0600 Subject: [PATCH 05/18] crumbs: compile after the DRA-107 revision 2 commit (9505ed5d was STALE 1/12, root) Agent: t_5fd2df46 (Hermes worker, claude-opus-5-5, anthropic) --- .crumb | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.crumb b/.crumb index b9c7395..6b86d8e 100644 --- a/.crumb +++ b/.crumb @@ -64,14 +64,14 @@ } ], "children_root": "sha256:1b2dd79450d79cdf42d895cd7ec0db578db08215ad3497eab3c4ba8b56deece7", - "compiled_at": "2026-11-06T14:10:05Z", + "compiled_at": "2026-11-07T04:23:38Z", "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:9748d4cf3c9d45bf63b19bfa5164d2bd7a2015a6db5819e3ea7924a45207e26d", + "evidence_files": 621, + "evidence_root": "sha256:7af26aca5c3507db84afea59454faa16bf56327622be12a1dc641394618010ae", + "files": 986, + "generated_at_commit": "6ecff840d67adb6e61d591e725eec42bcfa42d94", + "source_tree": "sha256:8dbc551fc423ad6b814ba72c305649ce91466733cb722505f7eb8122254be4da" } }, "name": "BridgeHostAienX86", From 307e9d75c2febf2670e2a06b4fa375bdfb414a7b Mon Sep 17 00:00:00 2001 From: Drake Stapleton <213298340+drakestapleton@users.noreply.github.com> Date: Fri, 6 Nov 2026 22:25:19 -0600 Subject: [PATCH 06/18] evidence: DRA-107 revision 2 fresh-clone rehearsal at 3c2d599f (rc 0, ALL SUITES RC=0, claimcheck prep PASS) Agent: t_5fd2df46 (Hermes worker, claude-opus-5-5, anthropic) --- .../fresh-clone-claims-r2-rehearsal.log | 222 ++++++++++++++++++ 1 file changed, 222 insertions(+) create mode 100644 evidence/release-v1/fresh-clone-claims-r2-rehearsal.log 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 -- 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 From d9583619bd64d7d8ce9211846b5ec2f7f5e699d4 Mon Sep 17 00:00:00 2001 From: Drake Stapleton <213298340+drakestapleton@users.noreply.github.com> Date: Fri, 6 Nov 2026 22:25:19 -0600 Subject: [PATCH 07/18] crumbs: compile after the rehearsal log commit Agent: t_5fd2df46 (Hermes worker, claude-opus-5-5, anthropic) --- .crumb | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.crumb b/.crumb index 6b86d8e..1cf0d70 100644 --- a/.crumb +++ b/.crumb @@ -64,14 +64,14 @@ } ], "children_root": "sha256:1b2dd79450d79cdf42d895cd7ec0db578db08215ad3497eab3c4ba8b56deece7", - "compiled_at": "2026-11-07T04:23:38Z", + "compiled_at": "2026-11-07T04:25:19Z", "compiler": "crumb-compile/1", - "digest": "sha256:9748d4cf3c9d45bf63b19bfa5164d2bd7a2015a6db5819e3ea7924a45207e26d", - "evidence_files": 621, - "evidence_root": "sha256:7af26aca5c3507db84afea59454faa16bf56327622be12a1dc641394618010ae", - "files": 986, - "generated_at_commit": "6ecff840d67adb6e61d591e725eec42bcfa42d94", - "source_tree": "sha256:8dbc551fc423ad6b814ba72c305649ce91466733cb722505f7eb8122254be4da" + "digest": "sha256:10de90fef311e68c05c2f18a19d4fcf1f620ec4fccadcbcb6ff4fbf2a046e045", + "evidence_files": 622, + "evidence_root": "sha256:0e666316fad3d2ea06d2bdf9bf57953ceab2376df0ddd56a22b47e848c971454", + "files": 987, + "generated_at_commit": "307e9d75c2febf2670e2a06b4fa375bdfb414a7b", + "source_tree": "sha256:0950a087be2e308303f6b5438b136dd64341d70dc9f63c65fc049e8ce2dd40dc" } }, "name": "BridgeHostAienX86", From 285adc3fec8b4b0246191e212e22e531f0f5b747 Mon Sep 17 00:00:00 2001 From: Drake Stapleton <213298340+drakestapleton@users.noreply.github.com> Date: Fri, 6 Nov 2026 22:33:34 -0600 Subject: [PATCH 08/18] tests/claimcheck.sh: accept an absolute OMEGA_SEED (Portable workflow sets one) Hosted 'Portable bridge behavior' run 42338394879 at d9583619 failed 16/16 claimcheck cases with 'seed missing': the test prefixed $(pwd) to the workflow's absolute OMEGA_SEED. Absolute, relative and default seeds now pass (16/16 each on the Spark). Agent: t_5fd2df46 (Hermes worker, claude-opus-5-5, anthropic) --- tests/claimcheck.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/claimcheck.sh b/tests/claimcheck.sh index f9ee4df..51b633a 100644 --- a/tests/claimcheck.sh +++ b/tests/claimcheck.sh @@ -25,7 +25,8 @@ check() { fails=$((fails + 1)) fi } -seed=$(pwd)/${OMEGA_SEED:-build/bootstrap/omc} +seed=${OMEGA_SEED:-build/bootstrap/omc} +case $seed in /*) ;; *) seed=$(pwd)/$seed ;; esac good=$F/table.tsv sed "s#receipt.log:2${tab}PASS 7 of 7#receipt.log:2${tab}PASS 8 of 7#" $good > $W/expect.tsv sed "s#doc.md:1${tab}alpha claim#doc.md:2${tab}alpha claim#" $good > $W/docline.tsv From 69bcbc00ff57c5a7c5d683a9cf374cac02280af3 Mon Sep 17 00:00:00 2001 From: Drake Stapleton <213298340+drakestapleton@users.noreply.github.com> Date: Fri, 6 Nov 2026 22:33:34 -0600 Subject: [PATCH 09/18] crumbs: compile after the claimcheck test fix Agent: t_5fd2df46 (Hermes worker, claude-opus-5-5, anthropic) --- .crumb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.crumb b/.crumb index 1cf0d70..f020595 100644 --- a/.crumb +++ b/.crumb @@ -64,14 +64,14 @@ } ], "children_root": "sha256:1b2dd79450d79cdf42d895cd7ec0db578db08215ad3497eab3c4ba8b56deece7", - "compiled_at": "2026-11-07T04:25:19Z", + "compiled_at": "2026-11-07T04:33:34Z", "compiler": "crumb-compile/1", - "digest": "sha256:10de90fef311e68c05c2f18a19d4fcf1f620ec4fccadcbcb6ff4fbf2a046e045", + "digest": "sha256:b6d6845880a6a7732290bf8c31fa246fc29af2945f814431b939436c69015eac", "evidence_files": 622, "evidence_root": "sha256:0e666316fad3d2ea06d2bdf9bf57953ceab2376df0ddd56a22b47e848c971454", "files": 987, - "generated_at_commit": "307e9d75c2febf2670e2a06b4fa375bdfb414a7b", - "source_tree": "sha256:0950a087be2e308303f6b5438b136dd64341d70dc9f63c65fc049e8ce2dd40dc" + "generated_at_commit": "285adc3fec8b4b0246191e212e22e531f0f5b747", + "source_tree": "sha256:16e9f215cdf52dd7723693314426b21c897a1bd3bdfbeb97bdc6fdeeace3e630" } }, "name": "BridgeHostAienX86", From 6bc0f458b9ac0c6762cc4bc9c4acf4cc21b09ac1 Mon Sep 17 00:00:00 2001 From: Drake Stapleton <213298340+drakestapleton@users.noreply.github.com> Date: Fri, 6 Nov 2026 22:42:09 -0600 Subject: [PATCH 10/18] claimcheck: fix the reviewer findings on d9583619 (MERGE_AFTER_FIX, 5) Reviewer profile gpt-6-astra, session local-df4c33d4...3164. 1. Absolute OMEGA_SEED (fixed in 285adc3); now covered: absolute, relative and unset seed cases. 2. Unterminated last table row: refused (exit 4) instead of skipped. 3. Empty fields, rows without a document citation and empty claim sets are refused; the judge validates record arity, side, found, mode (prep|tag, first and once) and refuses an expect of "-". 4. One containment rule for citations and gates: a regular file, relative, no .. component, resolved path inside the repository. tag mode requires a GATE row for each of G1-G4. 5. MISSION-REPORT separates matmul equality (artifacts.sha256 7-8) from MAX GQA against the fp64 oracle (RESULT.md); M6c added. Non-blocking: "No PR exists" narrowed to the search actually run; judge header comment matches the contract. tests/claimcheck.sh: 40 cases (was 16), all pass; claims table 70 rows, prep PASS, tag refused with 4 gates open. Agent: t_5fd2df46 (Hermes worker, claude-opus-5-5, anthropic) --- MISSION-REPORT.md | 6 +- evidence/release-v1/README.md | 6 +- .../release-v1/RELEASE-NOTES-v1.0.0.draft.md | 2 +- ...imcheck-negative-controls-after-review.log | 59 +++++++++ .../claimcheck-prep-after-review.log | 12 ++ .../claimcheck-tag-after-review.log | 12 ++ evidence/release-v1/claims-ledger-d8174edd.md | 32 +++-- evidence/release-v1/claims.tsv | 5 +- tests/claimcheck.sh | 118 +++++++++++++----- tests/fixtures/claimcheck/table.tsv | 3 + tools/claimcheck.om | 105 ++++++++++++---- tools/claimcheck.sh | 63 +++++++--- 12 files changed, 334 insertions(+), 89 deletions(-) create mode 100644 evidence/release-v1/claimcheck-negative-controls-after-review.log create mode 100644 evidence/release-v1/claimcheck-prep-after-review.log create mode 100644 evidence/release-v1/claimcheck-tag-after-review.log diff --git a/MISSION-REPORT.md b/MISSION-REPORT.md index 10bfe70..2b11048 100644 --- a/MISSION-REPORT.md +++ b/MISSION-REPORT.md @@ -38,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 (the error value is stated in `RESULT.md`; `harness.log` records the checks and the PASS verdict, not the value) | +| 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 @@ -72,8 +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 (checked 2026-11-07: GitHub PR search -in modular/modular by authors drakestapleton and aien-spark returns none). +`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/evidence/release-v1/README.md b/evidence/release-v1/README.md index 48af755..3f0dd24 100644 --- a/evidence/release-v1/README.md +++ b/evidence/release-v1/README.md @@ -6,8 +6,10 @@ | `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 this branch's head: bootstrap, build, test (now including `tests/claimcheck.sh`) and `tools/claimcheck.sh prep`. | -| `claimcheck-prep.log`, `claimcheck-tag.log`, `claimcheck-negative-controls.log` | Revision 2 claims check on this branch: prep PASS, tag refused (gates open), and planted failures. | +| `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 the head after the reviewer's findings on `d9583619` were fixed. | +| `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. diff --git a/evidence/release-v1/RELEASE-NOTES-v1.0.0.draft.md b/evidence/release-v1/RELEASE-NOTES-v1.0.0.draft.md index 6d796d2..d3a9ea2 100644 --- a/evidence/release-v1/RELEASE-NOTES-v1.0.0.draft.md +++ b/evidence/release-v1/RELEASE-NOTES-v1.0.0.draft.md @@ -62,7 +62,7 @@ Each line names the claims-table row (`claims.tsv`) and its receipt. - 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 (M6, M6b). MAX CPU route: DRA-102 (Done). + harness PASS on CPU; matmul outputs equal, GQA against the fp64 oracle (M6, M6b, M6c). MAX CPU route: DRA-102 (Done). ### GPU boundary 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-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-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/claims-ledger-d8174edd.md b/evidence/release-v1/claims-ledger-d8174edd.md index 52b8d52..6651465 100644 --- a/evidence/release-v1/claims-ledger-d8174edd.md +++ b/evidence/release-v1/claims-ledger-d8174edd.md @@ -13,7 +13,9 @@ code does, and the machine-readable copy is document and receipt line and requires the row's text in it byte for byte; the decision is made by `tools/claimcheck.om` (seeded Omega, built with the bootstrap seed `191b776e…`). Its controls are `tests/claimcheck.sh`, run by -`tools/test.sh`. +`tools/test.sh`. 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 @@ -34,14 +36,18 @@ requires. 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 "GQA max abs error 2.7e-7" is stated only in the hand-written - `evidence/MAX-INTEROP/5/RESULT.md`; the raw `harness.log` has the verdict - but not the value. The report now says so (M6b). +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. Now EXTERNAL, with the check written in - the report (M8). Revision 1 tied this row to "Drake decision 2"; decision 2 - in DRA-100 is about GB10 rows, so that link was wrong. + 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). @@ -51,6 +57,13 @@ requires. 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). ## Rows @@ -120,9 +133,10 @@ requires. | 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/RESULT.md:16` contains `worst absolute error `2.7e-7`` | SUPPORTED | FIXED wording in this pass. The worst GQA error 2.7e-7 is stated only in the hand-written RESULT.md; harness.log has the checks and the PASS verdict but not the value. The report now says so. Matmul equality: harness.log line 4 MAX output_sha256 60a7f7d4..., checked by conformance/verify.py against the Omega host output (fail 0, line 8). | +| 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. Now EXTERNAL with the check stated in the report. | +| 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. | diff --git a/evidence/release-v1/claims.tsv b/evidence/release-v1/claims.tsv index 3cda737..9a97b6f 100644 --- a/evidence/release-v1/claims.tsv +++ b/evidence/release-v1/claims.tsv @@ -65,9 +65,10 @@ 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 bit-identical matmul SHA-256; GQA max abs error 2.7e-7 evidence/MAX-INTEROP/5/RESULT.md:16 worst absolute error `2.7e-7` +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 exists (checked 2026-11-07 - - +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 - diff --git a/tests/claimcheck.sh b/tests/claimcheck.sh index 51b633a..0bd63f9 100644 --- a/tests/claimcheck.sh +++ b/tests/claimcheck.sh @@ -9,61 +9,120 @@ mkdir -p "$W" tab=$(printf '\t') fails=0 cases=0 -# check NAME WANT_RC WANT_TEXT TABLE MODE [ROOT]: run the check, compare rc and one output line. +seed=${OMEGA_SEED:-build/bootstrap/omc} +case $seed in /*) ;; *) seed=$(pwd)/$seed ;; esac +ok() { echo "PASS $1"; } +no() { echo "FAIL $1"; [ -z "${2:-}" ] || printf '%s\n' "$2" | sed 's/^/ | /'; fails=$((fails + 1)); } +# check NAME WANT_RC WANT_LINE TABLE MODE [ROOT [SEED]]: run the check, compare rc and one line. check() { - name=$1; want=$2; text=$3; table=$4; mode=$5; root=${6:-.} + name=$1; want=$2; text=$3; table=$4; mode=$5; root=${6:-.}; s=${7:-$seed} cases=$((cases + 1)) set +e - out=$(OMEGA_SEED="$seed" sh "$root/tools/claimcheck.sh" "$mode" "$table" 2>&1) + out=$(OMEGA_SEED="$s" sh "$root/tools/claimcheck.sh" "$mode" "$table" 2>&1) rc=$? set -e if [ "$rc" = "$want" ] && printf '%s\n' "$out" | grep -q -x -F -- "$text"; then - echo "PASS $name (rc=$rc: $text)" + ok "$name (rc=$rc: $text)" else - echo "FAIL $name: want rc=$want and line '$text', got rc=$rc" - printf '%s\n' "$out" | sed 's/^/ | /' - fails=$((fails + 1)) + no "$name: want rc=$want and line '$text', got rc=$rc" "$out" fi } -seed=${OMEGA_SEED:-build/bootstrap/omc} -case $seed in /*) ;; *) seed=$(pwd)/$seed ;; esac +# judge NAME STREAM: the compiled judge must refuse a malformed stream with rc 4 and no output. +judge() { + cases=$((cases + 1)) + set +e + out=$(printf "$2" | build/claimcheck 2>&1) + rc=$? + set -e + if [ "$rc" = 4 ] && [ -z "$out" ]; then ok "$1 (rc=4, no output)"; else no "$1: rc=$rc" "$out"; fi +} good=$F/table.tsv -sed "s#receipt.log:2${tab}PASS 7 of 7#receipt.log:2${tab}PASS 8 of 7#" $good > $W/expect.tsv -sed "s#doc.md:1${tab}alpha claim#doc.md:2${tab}alpha claim#" $good > $W/docline.tsv -sed "s#receipt.log:2#receipt.log:4#" $good > $W/pastend.tsv -sed "s#receipt.log:2#nonexistent.log:2#" $good > $W/missing.tsv -sed "s#${tab}tests/fixtures/claimcheck/receipt.log:2${tab}PASS 7 of 7#${tab}-${tab}-#" $good > $W/nocite.tsv -sed "s#^C1${tab}SUPPORTED#C1${tab}PROVEN#" $good > $W/status.tsv -sed "s#^C3${tab}EXTERNAL#C3${tab}UNSUPPORTED#" $good > $W/unsup.tsv -sed "s#gate.txt#gate-absent.txt#" $good > $W/gate.tsv -sed "s#tests/fixtures/claimcheck/receipt.log:2#../tests/fixtures/claimcheck/receipt.log:2#" $good > $W/escape.tsv -sed "s#receipt.log:2#receipt.log:x2#" $good > $W/nonnum.tsv +pass='CLAIMCHECK PASS rows=3 checked=4 not_run=1 unsupported=0 external=1 fixed=0 gates=4 gates_open=0' +mk() { sed "$2" $good > "$W/$1.tsv"; } +mk expect "s#receipt.log:2${tab}PASS 7 of 7#receipt.log:2${tab}PASS 8 of 7#" +mk docline "s#doc.md:1${tab}alpha claim#doc.md:2${tab}alpha claim#" +mk pastend "s#receipt.log:2#receipt.log:4#" +mk missing "s#receipt.log:2#nonexistent.log:2#" +mk nocite "s#${tab}tests/fixtures/claimcheck/receipt.log:2${tab}PASS 7 of 7#${tab}-${tab}-#" +mk nodoc "s#${tab}tests/fixtures/claimcheck/doc.md:1${tab}alpha claim${tab}#${tab}-${tab}-${tab}#" +mk dashexpect "s#${tab}PASS 7 of 7\$#${tab}-#" +mk status "s#^C1${tab}SUPPORTED#C1${tab}PROVEN#" +mk unsup "s#^C3${tab}EXTERNAL#C3${tab}UNSUPPORTED#" +mk gate "s#^\(G1.*\)gate.txt#\1gate-absent.txt#" +mk gatedir "s#^\(G1.*\)tests/fixtures/claimcheck/gate.txt#\1tests/fixtures/claimcheck#" +mk gateabs "s#^\(G1.*\)tests/fixtures/claimcheck/gate.txt#\1/bin/sh#" +mk gatetrav "s#^\(G1.*\)tests/fixtures/claimcheck/gate.txt#\1tests/../tests/fixtures/claimcheck/gate.txt#" +mk gatemissingrow "/^G4${tab}/d" +mk gaterepeat "s#^G2${tab}#G1${tab}#" +mk escape "s#tests/fixtures/claimcheck/receipt.log:2#../tests/fixtures/claimcheck/receipt.log:2#" +mk nonnum "s#receipt.log:2#receipt.log:x2#" +mk emptyfield "s#${tab}alpha claim${tab}#${tab}${tab}#" +mk noclaims "/^C[0-9]/d" printf 'R\tbroken\n' > $W/malformed.tsv -check good-prep 0 'CLAIMCHECK PASS rows=3 checked=4 not_run=1 unsupported=0 external=1 fixed=0 gates=1 gates_open=0' $good prep +head -c -1 $good > $W/unterminated.tsv +# A receipt symlink that leaves the repository (to a temporary file outside it). +outside=$(mktemp) +trap 'rm -f "$outside"' EXIT +if printf 'PASS 7 of 7\n' > "$outside"; then + ln -sf "$outside" $W/outside-link + mk symlink "s#tests/fixtures/claimcheck/receipt.log:2#$W/outside-link:1#" +fi +ln -sf ../../tests/fixtures/claimcheck/receipt.log $W/inside-link +mk symlinkin "s#tests/fixtures/claimcheck/receipt.log:2#$W/inside-link:2#" + +check good-prep 0 "$pass" $good prep check good-tag 0 'TAG-READY yes' $good tag check receipt-text-mismatch 1 'BAD C1 C mismatch' $W/expect.tsv prep check document-line-moved 1 'BAD C1 D mismatch' $W/docline.tsv prep check receipt-line-past-end 1 'BAD C1 C missing' $W/pastend.tsv prep check receipt-file-missing 1 'BAD C1 C missing' $W/missing.tsv prep check supported-without-receipt 1 'BAD C1 C nocite' $W/nocite.tsv prep +check row-without-document 1 'BAD C1 D nodoc' $W/nodoc.tsv prep +check cited-dash-expect 1 'BAD C1 C noexpect' $W/dashexpect.tsv prep check unknown-status 1 'BAD C1 D status' $W/status.tsv prep check path-escape-refused 1 'BAD C1 C missing' $W/escape.tsv prep check non-numeric-line 1 'BAD C1 C missing' $W/nonnum.tsv prep +check symlink-inside-accepted 0 "$pass" $W/symlinkin.tsv prep +if [ -f $W/symlink.tsv ]; then + check symlink-outside-refused 1 'BAD C1 C missing' $W/symlink.tsv prep +else + cases=$((cases + 1)); no 'symlink-outside-refused: could not create the outside fixture' +fi check unsupported-prep 0 'TAG-READY no' $W/unsup.tsv prep check unsupported-tag 3 'TAG-READY no' $W/unsup.tsv tag check gate-open-tag 3 'GATE-OPEN G1 tests/fixtures/claimcheck/gate-absent.txt' $W/gate.tsv tag +check gate-directory-refused 3 'GATE-OPEN G1 tests/fixtures/claimcheck' $W/gatedir.tsv tag +check gate-absolute-refused 3 'GATE-OPEN G1 /bin/sh' $W/gateabs.tsv tag +check gate-traversal-refused 3 'GATE-OPEN G1 tests/../tests/fixtures/claimcheck/gate.txt' $W/gatetrav.tsv tag +check required-gate-row-absent 3 'GATE-OPEN G4 (no GATE row in the table)' $W/gatemissingrow.tsv tag +check gate-id-repeated 4 "$W/gaterepeat.tsv: line 6: gate G1 repeated" $W/gaterepeat.tsv prep check malformed-table 4 "$W/malformed.tsv: line 1: 2 fields, want 6" $W/malformed.tsv prep +check empty-field 4 "$W/emptyfield.tsv: line 2: field 4 empty" $W/emptyfield.tsv prep +check no-claim-rows 4 "$W/noclaims.tsv: no claim rows" $W/noclaims.tsv prep +check unterminated-table 4 "$W/unterminated.tsv: last line has no newline" $W/unterminated.tsv tag +# Seed forms: absolute (Portable CI), relative to the repository root, and unset. +mkdir -p $W/seed +cp "$seed" $W/seed/omc +check seed-absolute 0 "$pass" $good prep . "$(pwd)/$W/seed/omc" +check seed-relative 0 "$pass" $good prep . "$W/seed/omc" cases=$((cases + 1)) set +e -out=$(printf 'R\tx\n' | build/claimcheck 2>&1) +out=$(env -u OMEGA_SEED sh tools/claimcheck.sh prep $good 2>&1) rc=$? set -e -if [ "$rc" = 4 ] && [ -z "$out" ]; then - echo 'PASS judge-refuses-stream-without-mode (rc=4, no output)' -else - echo "FAIL judge-refuses-stream-without-mode: rc=$rc out=$out" - fails=$((fails + 1)) -fi +if [ -f build/bootstrap/omc ]; then want=0; line=$pass; else want=2; line='seed missing: run tools/bootstrap.sh first'; fi +if [ "$rc" = "$want" ] && printf '%s\n' "$out" | grep -q -x -F -- "$line"; then ok "seed-unset (rc=$rc: $line)"; else no "seed-unset: rc=$rc" "$out"; fi +# The compiled judge refuses malformed streams on its own. +judge judge-no-mode 'R\tx\n' +judge judge-mode-repeated 'M\tprep\nM\ttag\nR\tC1\tEXTERNAL\tD\t1\tx\tx\n' +judge judge-mode-unknown 'M\tgarbage\nR\tC1\tEXTERNAL\tD\t1\tx\tx\n' +judge judge-mode-missing 'M\nR\tC1\tEXTERNAL\tD\t1\tx\tx\n' +judge judge-short-record 'M\tprep\nR\tC1\tEXTERNAL\tD\t1\tx\tx\nR\n' +judge judge-unknown-side 'M\ttag\nR\tC1\tSUPPORTED\tZ\t1\tx\tx\n' +judge judge-unknown-found 'M\ttag\nR\tC1\tSUPPORTED\tD\t2\tx\tx\n' +judge judge-short-gate 'M\ttag\nR\tC1\tEXTERNAL\tD\t1\tx\tx\nG\tG1\n' +judge judge-no-claim-rows 'M\ttag\nG\tG1\t1\tp\n' +judge judge-unterminated 'M\tprep\nR\tC1\tEXTERNAL\tD\t1\tx\tx' # Judge mutant: a substring test that always succeeds must let the mismatch through, which shows # the decision is made by claimcheck.om and not by the shell. M=$W/mutant @@ -72,10 +131,9 @@ cp tools/claimcheck.sh "$M/tools/" cp $F/doc.md $F/receipt.log $F/gate.txt "$M/tests/fixtures/claimcheck/" sed 's/^if has 5 6$/if ge get fl 6 0/' tools/claimcheck.om > "$M/tools/claimcheck.om" if cmp -s tools/claimcheck.om "$M/tools/claimcheck.om"; then - echo 'FAIL judge-mutant: mutation did not apply' - fails=$((fails + 1)) + cases=$((cases + 1)); no 'judge-mutant: mutation did not apply' else - check judge-mutant-accepts-mismatch 0 'CLAIMCHECK PASS rows=3 checked=4 not_run=1 unsupported=0 external=1 fixed=0 gates=1 gates_open=0' "$(pwd)/$W/expect.tsv" prep "$M" + check judge-mutant-accepts-mismatch 0 "$pass" "$(pwd)/$W/expect.tsv" prep "$M" fi printf 'claimcheck cases=%s failures=%s RC=%s\n' "$cases" "$fails" "$([ "$fails" = 0 ] && echo 0 || echo 1)" [ "$fails" = 0 ] diff --git a/tests/fixtures/claimcheck/table.tsv b/tests/fixtures/claimcheck/table.tsv index 830c74c..c2d0f38 100644 --- a/tests/fixtures/claimcheck/table.tsv +++ b/tests/fixtures/claimcheck/table.tsv @@ -3,3 +3,6 @@ C1 SUPPORTED tests/fixtures/claimcheck/doc.md:1 alpha claim tests/fixtures/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/tools/claimcheck.om b/tools/claimcheck.om index 87d05de..0945e33 100644 --- a/tools/claimcheck.om +++ b/tools/claimcheck.om @@ -7,10 +7,12 @@ 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. SUPPORTED and FIXED rows need -note a receipt citation. A missing file, a missing line or a mismatch is BAD. +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 (no M record first, unknown record, 512 KiB or more). +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. global inb uchar 524288 global fs ulong 8 global fl ulong 8 @@ -19,7 +21,7 @@ global ob uchar 32 global eo ulong 2 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" +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. @@ -154,13 +156,40 @@ k = add k 1 end ret 9 end -fn rec nf ulong to void +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 st = stword 2 if eq st 9 bad 1 3 8 -ret +ret 0 end -if fch 3 68 +if eq sd 1 inc 0 if eq st 1 inc 10 @@ -175,37 +204,51 @@ if eq st 4 inc 3 end end -if fch 4 45 -if fch 3 67 +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 +ret 0 end -if fch 4 48 +if eq fd 2 bad 1 3 10 -ret +ret 0 end -if lt nf 7 +if eq get fl 5 0 bad 1 3 11 -ret +ret 0 end -if eq get fl 5 0 +if fch 5 45 bad 1 3 11 -ret +ret 0 end if has 5 6 inc 1 -ret +ret 0 end bad 1 3 12 +ret 0 end -fn gate to void -inc 5 +note gate: one G record. Returns 4 for a malformed record, else 0. +fn gate nf ulong to ulong +if ne nf 4 +ret 4 +end +op = true if fch 2 49 -ret +op = false +else +if not fch 2 48 +ret 4 +end end +inc 5 +if op inc 6 pent 13 pfld 1 @@ -213,11 +256,24 @@ 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 @@ -226,12 +282,10 @@ if eq get cnt 9 0 ret 4 end if fch 0 82 -rec nf -ret 0 +ret rec nf end if fch 0 71 -gate -ret 0 +ret gate nf end ret 4 end @@ -274,6 +328,9 @@ end if eq get cnt 9 0 exit 4 end +if eq get cnt 0 0 +exit 4 +end if eq get cnt 7 0 pent 14 else diff --git a/tools/claimcheck.sh b/tools/claimcheck.sh index 0580037..d1ad2da 100644 --- a/tools/claimcheck.sh +++ b/tools/claimcheck.sh @@ -1,15 +1,20 @@ #!/bin/sh # Release claims check (DRA-107). For every row of the claims table this looks up the cited # document line and receipt line and streams them to tools/claimcheck.om, which judges them: -# each cited line must contain the row's expect text, SUPPORTED rows need a receipt, and in -# tag mode every release gate receipt must exist and no row may be UNSUPPORTED. +# each cited line must contain the row's expect text, every row needs a document citation, +# SUPPORTED rows need a receipt, and in tag mode every release gate receipt must exist and no +# row may be UNSUPPORTED. # Usage: tools/claimcheck.sh [prep|tag] [TABLE] (after tools/bootstrap.sh) # Exit: 0 pass; 1 a BAD row; 2 usage; 3 tag mode with an open gate or UNSUPPORTED row; # 4 malformed table or stream; 65 wrong seed compiler. set -eu cd "$(dirname "$0")/.." +root=$(pwd -P) mode=${1:-prep} table=${2:-evidence/release-v1/claims.tsv} +# The v1.0.0 release gates (DRA-104, DRA-105, DRA-106, DRA-103). Each must have one GATE row in +# the table; a missing row counts as an open gate. Changing this list is a reviewed edit here. +required='G1 G2 G3 G4' case $mode in prep|tag) ;; *) echo 'usage: tools/claimcheck.sh [prep|tag] [TABLE]' >&2; exit 2 ;; esac [ -f "$table" ] || { echo "claims table missing: $table" >&2; exit 2; } omc=${OMEGA_SEED:-build/bootstrap/omc} @@ -20,9 +25,31 @@ mkdir -p build chmod +x build/claimcheck.tmp mv build/claimcheck.tmp build/claimcheck tab=$(printf '\t') -awk -F "$tab" '!/^#/ && NF && NF != 6 { printf "%s: line %d: %d fields, want 6\n", FILENAME, NR, NF > "/dev/stderr"; bad = 1 } END { exit bad ? 4 : 0 }' "$table" -# emit ID STATUS SIDE CITE EXPECT: one R record; found is 1 only for a repository-relative -# file that has the cited line. +# Table shape: six non-empty fields per row (adjacent tabs would otherwise collapse), at least +# one claim row, gate ids unique, and a final newline. +awk -F "$tab" ' + /^#/ { next } + { + if (NF != 6) { printf "%s: line %d: %d fields, want 6\n", FILENAME, NR, NF > "/dev/stderr"; bad = 1; next } + for (i = 1; i <= NF; i++) if ($i == "") { printf "%s: line %d: field %d empty\n", FILENAME, NR, i > "/dev/stderr"; bad = 1 } + if ($2 == "GATE") { if (seen[$1]++) { printf "%s: line %d: gate %s repeated\n", FILENAME, NR, $1 > "/dev/stderr"; bad = 1 } } + else claims++ + } + END { + if (!claims) { printf "%s: no claim rows\n", FILENAME > "/dev/stderr"; bad = 1 } + exit bad ? 4 : 0 + }' "$table" +[ "$(tail -c 1 "$table" | od -An -c | tr -d ' ')" = '\n' ] || { echo "$table: last line has no newline" >&2; exit 4; } +# inrepo PATH: 0 when PATH is a regular file inside the repository (relative, no .. component, +# and its resolved path, symlinks followed, still under the repository root). +inrepo() { + case $1 in /*|..|../*|*/..|*/../*|'') return 1 ;; esac + [ -f "$1" ] || return 1 + r=$(readlink -f -- "$1") || return 1 + case $r in "$root"/*) return 0 ;; *) return 1 ;; esac +} +# emit ID STATUS SIDE CITE EXPECT: one R record; found is 1 only when the cited file passes +# inrepo and has the cited line. emit() { if [ "$4" = - ]; then printf 'R\t%s\t%s\t%s\t-\t-\t-\n' "$1" "$2" "$3" @@ -32,32 +59,32 @@ emit() { n=${4##*:} f=0 a=- - case $p in - /*|*..*) ;; + case $n in + ''|*[!0-9]*) ;; *) - case $n in - ''|*[!0-9]*) ;; - *) - if [ -f "$p" ] && [ "$n" -ge 1 ] && [ "$(wc -l < "$p")" -ge "$n" ]; then - f=1 - a=$(sed -n "${n}p" "$p") - fi - ;; - esac + if [ "$p" != "$4" ] && inrepo "$p" && [ "$n" -ge 1 ] && [ "$(wc -l < "$p")" -ge "$n" ]; then + f=1 + a=$(sed -n "${n}p" "$p") + fi ;; esac printf 'R\t%s\t%s\t%s\t%s\t%s\t%s\n' "$1" "$2" "$3" "$f" "$5" "$a" } +gates= { printf 'M\t%s\n' "$mode" while IFS="$tab" read -r id st doc dexp cite cexp; do - case $id in ''|'#'*) continue ;; esac + case $id in '#'*) continue ;; esac if [ "$st" = GATE ]; then - if [ -e "$cite" ]; then f=1; else f=0; fi + if inrepo "$cite"; then f=1; else f=0; fi + gates="$gates $id" printf 'G\t%s\t%s\t%s\n' "$id" "$f" "$cite" continue fi emit "$id" "$st" D "$doc" "$dexp" emit "$id" "$st" C "$cite" "$cexp" done < "$table" + for g in $required; do + case " $gates " in *" $g "*) ;; *) printf 'G\t%s\t0\t(no GATE row in the table)\n' "$g" ;; esac + done } | build/claimcheck From e0e7a68a263f02901ee965dd0777e57d6008d00d Mon Sep 17 00:00:00 2001 From: Drake Stapleton <213298340+drakestapleton@users.noreply.github.com> Date: Fri, 6 Nov 2026 22:42:09 -0600 Subject: [PATCH 11/18] crumbs: compile after the review fixes Agent: t_5fd2df46 (Hermes worker, claude-opus-5-5, anthropic) --- .crumb | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.crumb b/.crumb index f020595..6a5affb 100644 --- a/.crumb +++ b/.crumb @@ -64,14 +64,14 @@ } ], "children_root": "sha256:1b2dd79450d79cdf42d895cd7ec0db578db08215ad3497eab3c4ba8b56deece7", - "compiled_at": "2026-11-07T04:33:34Z", + "compiled_at": "2026-11-07T04:42:09Z", "compiler": "crumb-compile/1", - "digest": "sha256:b6d6845880a6a7732290bf8c31fa246fc29af2945f814431b939436c69015eac", - "evidence_files": 622, - "evidence_root": "sha256:0e666316fad3d2ea06d2bdf9bf57953ceab2376df0ddd56a22b47e848c971454", - "files": 987, - "generated_at_commit": "285adc3fec8b4b0246191e212e22e531f0f5b747", - "source_tree": "sha256:16e9f215cdf52dd7723693314426b21c897a1bd3bdfbeb97bdc6fdeeace3e630" + "digest": "sha256:732a673f894c93cfa436fa3146f62473ba7ebadcd2d96dc5a3d25e8429ebf110", + "evidence_files": 625, + "evidence_root": "sha256:7849f93561b99cd6164641f7b9c48c410551ee9a06352ea5184e9f0e011420de", + "files": 990, + "generated_at_commit": "6bc0f458b9ac0c6762cc4bc9c4acf4cc21b09ac1", + "source_tree": "sha256:a05483e2f3c43c42c302381506b860e90f3b61b784b46c4656c1131b39b39f5a" } }, "name": "BridgeHostAienX86", From 53c24a4d7e1884092f7f1fdbd95849f6cea90d6e Mon Sep 17 00:00:00 2001 From: Drake Stapleton <213298340+drakestapleton@users.noreply.github.com> Date: Fri, 6 Nov 2026 22:42:54 -0600 Subject: [PATCH 12/18] evidence: DRA-107 fresh-clone rehearsal at e0e7a68a after the review fixes (rc 0) Agent: t_5fd2df46 (Hermes worker, claude-opus-5-5, anthropic) --- ...clone-claims-r2-after-review-rehearsal.log | 287 ++++++++++++++++++ 1 file changed, 287 insertions(+) create mode 100644 evidence/release-v1/fresh-clone-claims-r2-after-review-rehearsal.log 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 -- 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 From 2a90893c82a6cf992011a9b60b5982992894f7f6 Mon Sep 17 00:00:00 2001 From: Drake Stapleton <213298340+drakestapleton@users.noreply.github.com> Date: Fri, 6 Nov 2026 22:42:54 -0600 Subject: [PATCH 13/18] crumbs: compile after the rehearsal log commit Agent: t_5fd2df46 (Hermes worker, claude-opus-5-5, anthropic) --- .crumb | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.crumb b/.crumb index 6a5affb..8d39197 100644 --- a/.crumb +++ b/.crumb @@ -64,14 +64,14 @@ } ], "children_root": "sha256:1b2dd79450d79cdf42d895cd7ec0db578db08215ad3497eab3c4ba8b56deece7", - "compiled_at": "2026-11-07T04:42:09Z", + "compiled_at": "2026-11-07T04:42:54Z", "compiler": "crumb-compile/1", - "digest": "sha256:732a673f894c93cfa436fa3146f62473ba7ebadcd2d96dc5a3d25e8429ebf110", - "evidence_files": 625, - "evidence_root": "sha256:7849f93561b99cd6164641f7b9c48c410551ee9a06352ea5184e9f0e011420de", - "files": 990, - "generated_at_commit": "6bc0f458b9ac0c6762cc4bc9c4acf4cc21b09ac1", - "source_tree": "sha256:a05483e2f3c43c42c302381506b860e90f3b61b784b46c4656c1131b39b39f5a" + "digest": "sha256:6eca6a1b2b895d53a9695dd12447eb814128810c8c185c6b7d3c2f86db693b88", + "evidence_files": 626, + "evidence_root": "sha256:7de0a5569249749b1d699262aab4769c1c4c6737a9c751f5e978559a3bf53943", + "files": 991, + "generated_at_commit": "53c24a4d7e1884092f7f1fdbd95849f6cea90d6e", + "source_tree": "sha256:4a408740173e17111e89834d3666d2838eab30d5d6623cf2897819a391bb5fe7" } }, "name": "BridgeHostAienX86", From f49398d092723ed916108ca9a312bbc67e993677 Mon Sep 17 00:00:00 2001 From: Drake Stapleton <213298340+drakestapleton@users.noreply.github.com> Date: Fri, 6 Nov 2026 22:55:57 -0600 Subject: [PATCH 14/18] claimcheck: gate ids are single tokens; judge pairs D and C records Re-review of 2a90893c (gpt-6-astra, session local-c129f532...56b3): MERGE_AFTER_FIX, 1 blocking finding. A single GATE row with the id "G1 G2 G3 G4" satisfied all four required gates in tag mode, because required membership was a word match in a space-joined list. Every table id must now match [A-Za-z0-9_.-]+ (exit 4 otherwise), so the membership test is exact. Non-blocking finding: the judge accepted a D record without its C record. It now requires each D record to be followed directly by the C record of the same id (exit 4), and states that the producer supplies one G record per required gate. tests/claimcheck.sh: 46 cases (combined gate id, D without C, C without D, C of another id, G inside a pair, and a well-formed stream that must be accepted), all pass; real table unchanged (70 rows, prep PASS, tag refused with 4 gates open). Agent: t_5fd2df46 (Hermes worker, claude-opus-5-5, anthropic) --- evidence/release-v1/claims-ledger-d8174edd.md | 4 ++ tests/claimcheck.sh | 28 ++++++++++---- tools/claimcheck.om | 38 +++++++++++++++++++ tools/claimcheck.sh | 1 + 4 files changed, 64 insertions(+), 7 deletions(-) diff --git a/evidence/release-v1/claims-ledger-d8174edd.md b/evidence/release-v1/claims-ledger-d8174edd.md index 6651465..81a0582 100644 --- a/evidence/release-v1/claims-ledger-d8174edd.md +++ b/evidence/release-v1/claims-ledger-d8174edd.md @@ -64,6 +64,10 @@ requires. 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 diff --git a/tests/claimcheck.sh b/tests/claimcheck.sh index 0bd63f9..43d43c9 100644 --- a/tests/claimcheck.sh +++ b/tests/claimcheck.sh @@ -54,6 +54,8 @@ mk gateabs "s#^\(G1.*\)tests/fixtures/claimcheck/gate.txt#\1/bin/sh#" mk gatetrav "s#^\(G1.*\)tests/fixtures/claimcheck/gate.txt#\1tests/../tests/fixtures/claimcheck/gate.txt#" mk gatemissingrow "/^G4${tab}/d" mk gaterepeat "s#^G2${tab}#G1${tab}#" +# One row whose id names all four gates must not satisfy the four required gates. +{ grep -v '^G[0-9]' $good; printf 'G1 G2 G3 G4\tGATE\t-\t-\ttests/fixtures/claimcheck/gate.txt\t-\n'; } > $W/gatecombined.tsv mk escape "s#tests/fixtures/claimcheck/receipt.log:2#../tests/fixtures/claimcheck/receipt.log:2#" mk nonnum "s#receipt.log:2#receipt.log:x2#" mk emptyfield "s#${tab}alpha claim${tab}#${tab}${tab}#" @@ -96,6 +98,7 @@ check gate-absolute-refused 3 'GATE-OPEN G1 /bin/sh' $W/gateabs.tsv tag check gate-traversal-refused 3 'GATE-OPEN G1 tests/../tests/fixtures/claimcheck/gate.txt' $W/gatetrav.tsv tag check required-gate-row-absent 3 'GATE-OPEN G4 (no GATE row in the table)' $W/gatemissingrow.tsv tag check gate-id-repeated 4 "$W/gaterepeat.tsv: line 6: gate G1 repeated" $W/gaterepeat.tsv prep +check gate-id-combined 4 "$W/gatecombined.tsv: line 5: id is not one token" $W/gatecombined.tsv tag check malformed-table 4 "$W/malformed.tsv: line 1: 2 fields, want 6" $W/malformed.tsv prep check empty-field 4 "$W/emptyfield.tsv: line 2: field 4 empty" $W/emptyfield.tsv prep check no-claim-rows 4 "$W/noclaims.tsv: no claim rows" $W/noclaims.tsv prep @@ -112,17 +115,28 @@ rc=$? set -e if [ -f build/bootstrap/omc ]; then want=0; line=$pass; else want=2; line='seed missing: run tools/bootstrap.sh first'; fi if [ "$rc" = "$want" ] && printf '%s\n' "$out" | grep -q -x -F -- "$line"; then ok "seed-unset (rc=$rc: $line)"; else no "seed-unset: rc=$rc" "$out"; fi -# The compiled judge refuses malformed streams on its own. +# The compiled judge accepts a well-formed stream (so the refusals below are not trivial) ... +cases=$((cases + 1)) +set +e +out=$(printf 'M\ttag\nR\tC1\tSUPPORTED\tD\t1\tx\tax\nR\tC1\tSUPPORTED\tC\t1\ty\tyy\nG\tG1\t1\tp\n' | build/claimcheck 2>&1) +rc=$? +set -e +if [ "$rc" = 0 ] && printf '%s\n' "$out" | grep -q -x -F 'TAG-READY yes'; then ok 'judge-well-formed-stream (rc=0: TAG-READY yes)'; else no "judge-well-formed-stream: rc=$rc" "$out"; fi +# ... and refuses malformed streams on its own. judge judge-no-mode 'R\tx\n' -judge judge-mode-repeated 'M\tprep\nM\ttag\nR\tC1\tEXTERNAL\tD\t1\tx\tx\n' -judge judge-mode-unknown 'M\tgarbage\nR\tC1\tEXTERNAL\tD\t1\tx\tx\n' -judge judge-mode-missing 'M\nR\tC1\tEXTERNAL\tD\t1\tx\tx\n' -judge judge-short-record 'M\tprep\nR\tC1\tEXTERNAL\tD\t1\tx\tx\nR\n' +judge judge-mode-repeated 'M\tprep\nM\ttag\nR\tC1\tEXTERNAL\tD\t1\tx\tx\nR\tC1\tEXTERNAL\tC\t-\t-\t-\n' +judge judge-mode-unknown 'M\tgarbage\nR\tC1\tEXTERNAL\tD\t1\tx\tx\nR\tC1\tEXTERNAL\tC\t-\t-\t-\n' +judge judge-mode-missing 'M\nR\tC1\tEXTERNAL\tD\t1\tx\tx\nR\tC1\tEXTERNAL\tC\t-\t-\t-\n' +judge judge-short-record 'M\tprep\nR\tC1\tEXTERNAL\tD\t1\tx\tx\nR\tC1\tEXTERNAL\tC\t-\t-\t-\nR\n' judge judge-unknown-side 'M\ttag\nR\tC1\tSUPPORTED\tZ\t1\tx\tx\n' judge judge-unknown-found 'M\ttag\nR\tC1\tSUPPORTED\tD\t2\tx\tx\n' -judge judge-short-gate 'M\ttag\nR\tC1\tEXTERNAL\tD\t1\tx\tx\nG\tG1\n' +judge judge-short-gate 'M\ttag\nR\tC1\tEXTERNAL\tD\t1\tx\tx\nR\tC1\tEXTERNAL\tC\t-\t-\t-\nG\tG1\n' judge judge-no-claim-rows 'M\ttag\nG\tG1\t1\tp\n' -judge judge-unterminated 'M\tprep\nR\tC1\tEXTERNAL\tD\t1\tx\tx' +judge judge-unterminated 'M\tprep\nR\tC1\tEXTERNAL\tD\t1\tx\tx\nR\tC1\tEXTERNAL\tC\t-\t-\t-' +judge judge-document-without-receipt 'M\ttag\nR\tC1\tSUPPORTED\tD\t1\tx\tx\n' +judge judge-receipt-without-document 'M\ttag\nR\tC1\tSUPPORTED\tC\t1\tx\tx\n' +judge judge-receipt-other-id 'M\ttag\nR\tC1\tSUPPORTED\tD\t1\tx\tx\nR\tC2\tSUPPORTED\tC\t1\tx\tx\n' +judge judge-gate-inside-pair 'M\ttag\nR\tC1\tSUPPORTED\tD\t1\tx\tx\nG\tG1\t1\tp\nR\tC1\tSUPPORTED\tC\t1\tx\tx\n' # Judge mutant: a substring test that always succeeds must let the mismatch through, which shows # the decision is made by claimcheck.om and not by the shell. M=$W/mutant diff --git a/tools/claimcheck.om b/tools/claimcheck.om index 0945e33..5011000 100644 --- a/tools/claimcheck.om +++ b/tools/claimcheck.om @@ -13,12 +13,16 @@ note EXTERNAL and NOT_RUN rows may have none). A missing file or line, or a mism 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, tools/claimcheck.sh, guarantees one G record per required gate id; a missing +note GATE row there becomes a G record with found 0, so this 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" @@ -156,6 +160,30 @@ 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 @@ -184,6 +212,10 @@ 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 @@ -236,6 +268,9 @@ 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 @@ -328,6 +363,9 @@ 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 diff --git a/tools/claimcheck.sh b/tools/claimcheck.sh index d1ad2da..5c9c07b 100644 --- a/tools/claimcheck.sh +++ b/tools/claimcheck.sh @@ -32,6 +32,7 @@ awk -F "$tab" ' { if (NF != 6) { printf "%s: line %d: %d fields, want 6\n", FILENAME, NR, NF > "/dev/stderr"; bad = 1; next } for (i = 1; i <= NF; i++) if ($i == "") { printf "%s: line %d: field %d empty\n", FILENAME, NR, i > "/dev/stderr"; bad = 1 } + if ($1 !~ /^[A-Za-z0-9_.-]+$/) { printf "%s: line %d: id is not one token\n", FILENAME, NR > "/dev/stderr"; bad = 1 } if ($2 == "GATE") { if (seen[$1]++) { printf "%s: line %d: gate %s repeated\n", FILENAME, NR, $1 > "/dev/stderr"; bad = 1 } } else claims++ } From cf1ef5660a8ff9a2ef07182b668624d95ad7a004 Mon Sep 17 00:00:00 2001 From: Drake Stapleton <213298340+drakestapleton@users.noreply.github.com> Date: Fri, 6 Nov 2026 22:55:57 -0600 Subject: [PATCH 15/18] crumbs: compile after the gate-id fix Agent: t_5fd2df46 (Hermes worker, claude-opus-5-5, anthropic) --- .crumb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.crumb b/.crumb index 8d39197..c2b77bd 100644 --- a/.crumb +++ b/.crumb @@ -64,14 +64,14 @@ } ], "children_root": "sha256:1b2dd79450d79cdf42d895cd7ec0db578db08215ad3497eab3c4ba8b56deece7", - "compiled_at": "2026-11-07T04:42:54Z", + "compiled_at": "2026-11-07T04:55:57Z", "compiler": "crumb-compile/1", - "digest": "sha256:6eca6a1b2b895d53a9695dd12447eb814128810c8c185c6b7d3c2f86db693b88", + "digest": "sha256:99e4d1530566fb8640d3bd75904508b817219a3218cb76d37eea6b4bbd83a7a9", "evidence_files": 626, - "evidence_root": "sha256:7de0a5569249749b1d699262aab4769c1c4c6737a9c751f5e978559a3bf53943", + "evidence_root": "sha256:607962e228c0c3becf27f0ea819803c09d570bf82c0145277e48f423d9f98328", "files": 991, - "generated_at_commit": "53c24a4d7e1884092f7f1fdbd95849f6cea90d6e", - "source_tree": "sha256:4a408740173e17111e89834d3666d2838eab30d5d6623cf2897819a391bb5fe7" + "generated_at_commit": "f49398d092723ed916108ca9a312bbc67e993677", + "source_tree": "sha256:4260cb665f6c513c19b4b864befe1ae0fb7d737be04a5511c87eb3ef395f3fa0" } }, "name": "BridgeHostAienX86", From 37459dc84d6de27e86aaf393e9708ed140b1313a Mon Sep 17 00:00:00 2001 From: Drake Stapleton <213298340+drakestapleton@users.noreply.github.com> Date: Fri, 6 Nov 2026 22:56:37 -0600 Subject: [PATCH 16/18] evidence: DRA-107 fresh-clone rehearsal at cf1ef566 after the second review (rc 0, 46 controls) Agent: t_5fd2df46 (Hermes worker, claude-opus-5-5, anthropic) --- evidence/release-v1/README.md | 3 +- ...resh-clone-claims-r2-review2-rehearsal.log | 299 ++++++++++++++++++ 2 files changed, 301 insertions(+), 1 deletion(-) create mode 100644 evidence/release-v1/fresh-clone-claims-r2-review2-rehearsal.log diff --git a/evidence/release-v1/README.md b/evidence/release-v1/README.md index 3f0dd24..2634503 100644 --- a/evidence/release-v1/README.md +++ b/evidence/release-v1/README.md @@ -7,7 +7,8 @@ | `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 the head after the reviewer's findings on `d9583619` were fixed. | +| `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). | 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 -- 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 From 0fbcf75ada31ac223dcbb1e0a8d37a13b0f4c9c8 Mon Sep 17 00:00:00 2001 From: Drake Stapleton <213298340+drakestapleton@users.noreply.github.com> Date: Fri, 6 Nov 2026 22:56:37 -0600 Subject: [PATCH 17/18] crumbs: compile after the rehearsal log commit Agent: t_5fd2df46 (Hermes worker, claude-opus-5-5, anthropic) --- .crumb | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.crumb b/.crumb index c2b77bd..f9d90bc 100644 --- a/.crumb +++ b/.crumb @@ -64,14 +64,14 @@ } ], "children_root": "sha256:1b2dd79450d79cdf42d895cd7ec0db578db08215ad3497eab3c4ba8b56deece7", - "compiled_at": "2026-11-07T04:55:57Z", + "compiled_at": "2026-11-07T04:56:37Z", "compiler": "crumb-compile/1", - "digest": "sha256:99e4d1530566fb8640d3bd75904508b817219a3218cb76d37eea6b4bbd83a7a9", - "evidence_files": 626, - "evidence_root": "sha256:607962e228c0c3becf27f0ea819803c09d570bf82c0145277e48f423d9f98328", - "files": 991, - "generated_at_commit": "f49398d092723ed916108ca9a312bbc67e993677", - "source_tree": "sha256:4260cb665f6c513c19b4b864befe1ae0fb7d737be04a5511c87eb3ef395f3fa0" + "digest": "sha256:988a22df6564f53b91fe42a5a3139f8d921401bf37243795b8572dc1d01591ad", + "evidence_files": 627, + "evidence_root": "sha256:06d647929e64531e6b04050200369c3a71d7841fecdb14156f78945a46112081", + "files": 992, + "generated_at_commit": "37459dc84d6de27e86aaf393e9708ed140b1313a", + "source_tree": "sha256:432fc6794e0338ac2118c8ff0cc5887d075fbda78eae2be63df9dc37704c5983" } }, "name": "BridgeHostAienX86", From a73b6ef76ca75bdc7ac5c194c0586109dc628180 Mon Sep 17 00:00:00 2001 From: Drake Stapleton <213298340+drakestapleton@users.noreply.github.com> Date: Sat, 7 Nov 2026 02:12:50 -0600 Subject: [PATCH 18/18] DRA-107: port the claims check to seeded Omega tools/claimcheck.om now does the whole check (table shape, path and line lookups, required gates, judge); tests/claimcheck_test.om is its gate. tools/claimcheck.sh and tests/claimcheck.sh are removed. Old-vs-new: 83 table runs and 16 judge streams equal in rc/stdout/stderr apart from dash noise and usage wording. Gate: claimcheck cases=59 failures=0 RC=0. Agent: BridgeFinish (omp subagent of omp-queen-spark) --- .crumb | 14 +- .github/workflows/portable.yml | 4 + evidence/claimcheck-om/README.md | 18 + evidence/claimcheck-om/gate-run.log | 64 ++ evidence/claimcheck-om/negative-controls.log | 20 + evidence/claimcheck-om/old-vs-new.tsv | 102 +++ evidence/claimcheck-om/real-claims.log | 19 + evidence/release-v1/README.md | 4 +- .../release-v1/RELEASE-NOTES-v1.0.0.draft.md | 4 +- evidence/release-v1/claims-ledger-d8174edd.md | 16 +- evidence/release-v1/claims.tsv | 2 +- tests/claimcheck.sh | 153 ---- tests/claimcheck_test.om | 762 ++++++++++++++++++ tests/fixtures/claimcheck/cases/comment.tsv | 10 + tests/fixtures/claimcheck/cases/crlf.tsv | 8 + .../fixtures/claimcheck/cases/dashexpect.tsv | 8 + tests/fixtures/claimcheck/cases/docline.tsv | 8 + tests/fixtures/claimcheck/cases/dotdotend.tsv | 8 + tests/fixtures/claimcheck/cases/dotslash.tsv | 8 + tests/fixtures/claimcheck/cases/empty.tsv | 0 .../fixtures/claimcheck/cases/emptyfield.tsv | 8 + tests/fixtures/claimcheck/cases/emptyline.tsv | 9 + tests/fixtures/claimcheck/cases/escape.tsv | 8 + tests/fixtures/claimcheck/cases/expect.tsv | 8 + tests/fixtures/claimcheck/cases/gate.tsv | 8 + tests/fixtures/claimcheck/cases/gateabs.tsv | 8 + .../claimcheck/cases/gatecombined.tsv | 5 + tests/fixtures/claimcheck/cases/gatedir.tsv | 8 + .../claimcheck/cases/gatemissingrow.tsv | 7 + .../fixtures/claimcheck/cases/gaterepeat.tsv | 8 + tests/fixtures/claimcheck/cases/gatetrav.tsv | 8 + tests/fixtures/claimcheck/cases/hugeline.tsv | 8 + tests/fixtures/claimcheck/cases/lastline.tsv | 8 + tests/fixtures/claimcheck/cases/leadzero.tsv | 8 + tests/fixtures/claimcheck/cases/linezero.tsv | 8 + tests/fixtures/claimcheck/cases/malformed.tsv | 1 + tests/fixtures/claimcheck/cases/missing.tsv | 8 + tests/fixtures/claimcheck/cases/multierr.tsv | 4 + tests/fixtures/claimcheck/cases/nocite.tsv | 8 + tests/fixtures/claimcheck/cases/noclaims.tsv | 5 + tests/fixtures/claimcheck/cases/nocolon.tsv | 8 + tests/fixtures/claimcheck/cases/nodoc.tsv | 8 + tests/fixtures/claimcheck/cases/nonnum.tsv | 8 + tests/fixtures/claimcheck/cases/pastend.tsv | 8 + tests/fixtures/claimcheck/cases/status.tsv | 8 + tests/fixtures/claimcheck/cases/symlink.tsv | 8 + tests/fixtures/claimcheck/cases/symlinkin.tsv | 8 + tests/fixtures/claimcheck/cases/unsup.tsv | 8 + .../claimcheck/cases/unterminated.tsv | 8 + .../claimcheck/streams/bad-mismatch.txt | 4 + .../judge-document-without-receipt.txt | 2 + .../streams/judge-gate-inside-pair.txt | 4 + .../claimcheck/streams/judge-mode-missing.txt | 3 + .../streams/judge-mode-repeated.txt | 4 + .../claimcheck/streams/judge-mode-unknown.txt | 3 + .../streams/judge-no-claim-rows.txt | 2 + .../claimcheck/streams/judge-no-mode.txt | 1 + .../streams/judge-receipt-other-id.txt | 3 + .../judge-receipt-without-document.txt | 2 + .../claimcheck/streams/judge-short-gate.txt | 4 + .../claimcheck/streams/judge-short-record.txt | 4 + .../streams/judge-unknown-found.txt | 2 + .../claimcheck/streams/judge-unknown-side.txt | 2 + .../claimcheck/streams/judge-unterminated.txt | 3 + .../claimcheck/streams/well-formed.txt | 4 + tests/fixtures/claimcheck/table.tsv | 2 +- tools/claimcheck.om | 702 +++++++++++++++- tools/claimcheck.sh | 91 --- tools/test.sh | 1 - 69 files changed, 2016 insertions(+), 274 deletions(-) create mode 100644 evidence/claimcheck-om/README.md create mode 100644 evidence/claimcheck-om/gate-run.log create mode 100644 evidence/claimcheck-om/negative-controls.log create mode 100644 evidence/claimcheck-om/old-vs-new.tsv create mode 100644 evidence/claimcheck-om/real-claims.log delete mode 100644 tests/claimcheck.sh create mode 100644 tests/claimcheck_test.om create mode 100644 tests/fixtures/claimcheck/cases/comment.tsv create mode 100644 tests/fixtures/claimcheck/cases/crlf.tsv create mode 100644 tests/fixtures/claimcheck/cases/dashexpect.tsv create mode 100644 tests/fixtures/claimcheck/cases/docline.tsv create mode 100644 tests/fixtures/claimcheck/cases/dotdotend.tsv create mode 100644 tests/fixtures/claimcheck/cases/dotslash.tsv create mode 100644 tests/fixtures/claimcheck/cases/empty.tsv create mode 100644 tests/fixtures/claimcheck/cases/emptyfield.tsv create mode 100644 tests/fixtures/claimcheck/cases/emptyline.tsv create mode 100644 tests/fixtures/claimcheck/cases/escape.tsv create mode 100644 tests/fixtures/claimcheck/cases/expect.tsv create mode 100644 tests/fixtures/claimcheck/cases/gate.tsv create mode 100644 tests/fixtures/claimcheck/cases/gateabs.tsv create mode 100644 tests/fixtures/claimcheck/cases/gatecombined.tsv create mode 100644 tests/fixtures/claimcheck/cases/gatedir.tsv create mode 100644 tests/fixtures/claimcheck/cases/gatemissingrow.tsv create mode 100644 tests/fixtures/claimcheck/cases/gaterepeat.tsv create mode 100644 tests/fixtures/claimcheck/cases/gatetrav.tsv create mode 100644 tests/fixtures/claimcheck/cases/hugeline.tsv create mode 100644 tests/fixtures/claimcheck/cases/lastline.tsv create mode 100644 tests/fixtures/claimcheck/cases/leadzero.tsv create mode 100644 tests/fixtures/claimcheck/cases/linezero.tsv create mode 100644 tests/fixtures/claimcheck/cases/malformed.tsv create mode 100644 tests/fixtures/claimcheck/cases/missing.tsv create mode 100644 tests/fixtures/claimcheck/cases/multierr.tsv create mode 100644 tests/fixtures/claimcheck/cases/nocite.tsv create mode 100644 tests/fixtures/claimcheck/cases/noclaims.tsv create mode 100644 tests/fixtures/claimcheck/cases/nocolon.tsv create mode 100644 tests/fixtures/claimcheck/cases/nodoc.tsv create mode 100644 tests/fixtures/claimcheck/cases/nonnum.tsv create mode 100644 tests/fixtures/claimcheck/cases/pastend.tsv create mode 100644 tests/fixtures/claimcheck/cases/status.tsv create mode 100644 tests/fixtures/claimcheck/cases/symlink.tsv create mode 100644 tests/fixtures/claimcheck/cases/symlinkin.tsv create mode 100644 tests/fixtures/claimcheck/cases/unsup.tsv create mode 100644 tests/fixtures/claimcheck/cases/unterminated.tsv create mode 100644 tests/fixtures/claimcheck/streams/bad-mismatch.txt create mode 100644 tests/fixtures/claimcheck/streams/judge-document-without-receipt.txt create mode 100644 tests/fixtures/claimcheck/streams/judge-gate-inside-pair.txt create mode 100644 tests/fixtures/claimcheck/streams/judge-mode-missing.txt create mode 100644 tests/fixtures/claimcheck/streams/judge-mode-repeated.txt create mode 100644 tests/fixtures/claimcheck/streams/judge-mode-unknown.txt create mode 100644 tests/fixtures/claimcheck/streams/judge-no-claim-rows.txt create mode 100644 tests/fixtures/claimcheck/streams/judge-no-mode.txt create mode 100644 tests/fixtures/claimcheck/streams/judge-receipt-other-id.txt create mode 100644 tests/fixtures/claimcheck/streams/judge-receipt-without-document.txt create mode 100644 tests/fixtures/claimcheck/streams/judge-short-gate.txt create mode 100644 tests/fixtures/claimcheck/streams/judge-short-record.txt create mode 100644 tests/fixtures/claimcheck/streams/judge-unknown-found.txt create mode 100644 tests/fixtures/claimcheck/streams/judge-unknown-side.txt create mode 100644 tests/fixtures/claimcheck/streams/judge-unterminated.txt create mode 100644 tests/fixtures/claimcheck/streams/well-formed.txt delete mode 100644 tools/claimcheck.sh diff --git a/.crumb b/.crumb index f9d90bc..48287f1 100644 --- a/.crumb +++ b/.crumb @@ -64,14 +64,14 @@ } ], "children_root": "sha256:1b2dd79450d79cdf42d895cd7ec0db578db08215ad3497eab3c4ba8b56deece7", - "compiled_at": "2026-11-07T04:56:37Z", + "compiled_at": "2026-11-07T08:12:50Z", "compiler": "crumb-compile/1", - "digest": "sha256:988a22df6564f53b91fe42a5a3139f8d921401bf37243795b8572dc1d01591ad", - "evidence_files": 627, - "evidence_root": "sha256:06d647929e64531e6b04050200369c3a71d7841fecdb14156f78945a46112081", - "files": 992, - "generated_at_commit": "37459dc84d6de27e86aaf393e9708ed140b1313a", - "source_tree": "sha256:432fc6794e0338ac2118c8ff0cc5887d075fbda78eae2be63df9dc37704c5983" + "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/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 index 2634503..f9d86e8 100644 --- a/evidence/release-v1/README.md +++ b/evidence/release-v1/README.md @@ -2,7 +2,7 @@ | 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.sh`. | +| `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`). | @@ -26,7 +26,7 @@ None of these files is a tag, a release or hardware evidence. receipt, and rename the ledger to the head (`claims-ledger-.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`; `sh tools/claimcheck.sh tag` must exit 0 and print + `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 `, and publishes the release notes with the `DRAFT` diff --git a/evidence/release-v1/RELEASE-NOTES-v1.0.0.draft.md b/evidence/release-v1/RELEASE-NOTES-v1.0.0.draft.md index d3a9ea2..be72b50 100644 --- a/evidence/release-v1/RELEASE-NOTES-v1.0.0.draft.md +++ b/evidence/release-v1/RELEASE-NOTES-v1.0.0.draft.md @@ -5,7 +5,7 @@ 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 -`sh tools/claimcheck.sh tag` (see `README.md` in this directory). +`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 @@ -86,7 +86,7 @@ DRA-100 decision 3 (Drake). Record: `evidence/release-v1/independent-review.md` From a fresh clone at the tag: `tools/bootstrap.sh && tools/build.sh && tools/test.sh` must end -`ALL SUITES RC=0`, and `sh tools/claimcheck.sh tag` must print +`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 diff --git a/evidence/release-v1/claims-ledger-d8174edd.md b/evidence/release-v1/claims-ledger-d8174edd.md index 81a0582..4adb824 100644 --- a/evidence/release-v1/claims-ledger-d8174edd.md +++ b/evidence/release-v1/claims-ledger-d8174edd.md @@ -9,11 +9,11 @@ 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). `sh tools/claimcheck.sh prep` re-reads every cited +[`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 -decision is made by `tools/claimcheck.om` (seeded Omega, built with the -bootstrap seed `191b776e…`). Its controls are `tests/claimcheck.sh`, run by -`tools/test.sh`. Every row needs a document citation, SUPPORTED rows a receipt; +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. @@ -24,7 +24,7 @@ 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 `tools/claimcheck.sh tag` +DRA-106 are not Done. Gates G1-G4 below are what `build/claimcheck tag` requires. ## Findings of revision 2 @@ -71,7 +71,7 @@ requires. ## Rows -| # | Document line | Receipt line (checked by `tools/claimcheck.sh`) | Status | Notes | +| # | 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. | @@ -155,7 +155,7 @@ requires. Every merge shifts document lines. After the last merge, update the line numbers and texts in `claims.tsv` and this table, then run -`sh tools/claimcheck.sh tag` on the release-candidate head. +`build/claimcheck tag` on the release-candidate head. ## Release gates @@ -177,4 +177,4 @@ grep '^| [RAM][0-9]' evidence/release-v1/claims-ledger-d8174edd.md \ Revision 1 result at `d8174edd`: no `MISSING` lines, with the planted-row negative control in `ledger-check-negative-control.log`. Superseded by -`tools/claimcheck.sh`, which also checks the line and its text. +`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 index 9a97b6f..bbf934b 100644 --- a/evidence/release-v1/claims.tsv +++ b/evidence/release-v1/claims.tsv @@ -1,4 +1,4 @@ -# DRA-107 claims table for tools/claimcheck.sh (judge: tools/claimcheck.om). One row per claim in README.md, AGENTS.md, MISSION-REPORT.md. +# 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 diff --git a/tests/claimcheck.sh b/tests/claimcheck.sh deleted file mode 100644 index 43d43c9..0000000 --- a/tests/claimcheck.sh +++ /dev/null @@ -1,153 +0,0 @@ -#!/bin/sh -# Controls for the release claims check (tools/claimcheck.sh, judge tools/claimcheck.om) on a -# fixed fixture table, independent of the real claims table (DRA-107). Needs the bootstrap seed. -set -eu -cd "$(dirname "$0")/.." -F=tests/fixtures/claimcheck -W=build/claimcheck-tests -mkdir -p "$W" -tab=$(printf '\t') -fails=0 -cases=0 -seed=${OMEGA_SEED:-build/bootstrap/omc} -case $seed in /*) ;; *) seed=$(pwd)/$seed ;; esac -ok() { echo "PASS $1"; } -no() { echo "FAIL $1"; [ -z "${2:-}" ] || printf '%s\n' "$2" | sed 's/^/ | /'; fails=$((fails + 1)); } -# check NAME WANT_RC WANT_LINE TABLE MODE [ROOT [SEED]]: run the check, compare rc and one line. -check() { - name=$1; want=$2; text=$3; table=$4; mode=$5; root=${6:-.}; s=${7:-$seed} - cases=$((cases + 1)) - set +e - out=$(OMEGA_SEED="$s" sh "$root/tools/claimcheck.sh" "$mode" "$table" 2>&1) - rc=$? - set -e - if [ "$rc" = "$want" ] && printf '%s\n' "$out" | grep -q -x -F -- "$text"; then - ok "$name (rc=$rc: $text)" - else - no "$name: want rc=$want and line '$text', got rc=$rc" "$out" - fi -} -# judge NAME STREAM: the compiled judge must refuse a malformed stream with rc 4 and no output. -judge() { - cases=$((cases + 1)) - set +e - out=$(printf "$2" | build/claimcheck 2>&1) - rc=$? - set -e - if [ "$rc" = 4 ] && [ -z "$out" ]; then ok "$1 (rc=4, no output)"; else no "$1: rc=$rc" "$out"; fi -} -good=$F/table.tsv -pass='CLAIMCHECK PASS rows=3 checked=4 not_run=1 unsupported=0 external=1 fixed=0 gates=4 gates_open=0' -mk() { sed "$2" $good > "$W/$1.tsv"; } -mk expect "s#receipt.log:2${tab}PASS 7 of 7#receipt.log:2${tab}PASS 8 of 7#" -mk docline "s#doc.md:1${tab}alpha claim#doc.md:2${tab}alpha claim#" -mk pastend "s#receipt.log:2#receipt.log:4#" -mk missing "s#receipt.log:2#nonexistent.log:2#" -mk nocite "s#${tab}tests/fixtures/claimcheck/receipt.log:2${tab}PASS 7 of 7#${tab}-${tab}-#" -mk nodoc "s#${tab}tests/fixtures/claimcheck/doc.md:1${tab}alpha claim${tab}#${tab}-${tab}-${tab}#" -mk dashexpect "s#${tab}PASS 7 of 7\$#${tab}-#" -mk status "s#^C1${tab}SUPPORTED#C1${tab}PROVEN#" -mk unsup "s#^C3${tab}EXTERNAL#C3${tab}UNSUPPORTED#" -mk gate "s#^\(G1.*\)gate.txt#\1gate-absent.txt#" -mk gatedir "s#^\(G1.*\)tests/fixtures/claimcheck/gate.txt#\1tests/fixtures/claimcheck#" -mk gateabs "s#^\(G1.*\)tests/fixtures/claimcheck/gate.txt#\1/bin/sh#" -mk gatetrav "s#^\(G1.*\)tests/fixtures/claimcheck/gate.txt#\1tests/../tests/fixtures/claimcheck/gate.txt#" -mk gatemissingrow "/^G4${tab}/d" -mk gaterepeat "s#^G2${tab}#G1${tab}#" -# One row whose id names all four gates must not satisfy the four required gates. -{ grep -v '^G[0-9]' $good; printf 'G1 G2 G3 G4\tGATE\t-\t-\ttests/fixtures/claimcheck/gate.txt\t-\n'; } > $W/gatecombined.tsv -mk escape "s#tests/fixtures/claimcheck/receipt.log:2#../tests/fixtures/claimcheck/receipt.log:2#" -mk nonnum "s#receipt.log:2#receipt.log:x2#" -mk emptyfield "s#${tab}alpha claim${tab}#${tab}${tab}#" -mk noclaims "/^C[0-9]/d" -printf 'R\tbroken\n' > $W/malformed.tsv -head -c -1 $good > $W/unterminated.tsv -# A receipt symlink that leaves the repository (to a temporary file outside it). -outside=$(mktemp) -trap 'rm -f "$outside"' EXIT -if printf 'PASS 7 of 7\n' > "$outside"; then - ln -sf "$outside" $W/outside-link - mk symlink "s#tests/fixtures/claimcheck/receipt.log:2#$W/outside-link:1#" -fi -ln -sf ../../tests/fixtures/claimcheck/receipt.log $W/inside-link -mk symlinkin "s#tests/fixtures/claimcheck/receipt.log:2#$W/inside-link:2#" - -check good-prep 0 "$pass" $good prep -check good-tag 0 'TAG-READY yes' $good tag -check receipt-text-mismatch 1 'BAD C1 C mismatch' $W/expect.tsv prep -check document-line-moved 1 'BAD C1 D mismatch' $W/docline.tsv prep -check receipt-line-past-end 1 'BAD C1 C missing' $W/pastend.tsv prep -check receipt-file-missing 1 'BAD C1 C missing' $W/missing.tsv prep -check supported-without-receipt 1 'BAD C1 C nocite' $W/nocite.tsv prep -check row-without-document 1 'BAD C1 D nodoc' $W/nodoc.tsv prep -check cited-dash-expect 1 'BAD C1 C noexpect' $W/dashexpect.tsv prep -check unknown-status 1 'BAD C1 D status' $W/status.tsv prep -check path-escape-refused 1 'BAD C1 C missing' $W/escape.tsv prep -check non-numeric-line 1 'BAD C1 C missing' $W/nonnum.tsv prep -check symlink-inside-accepted 0 "$pass" $W/symlinkin.tsv prep -if [ -f $W/symlink.tsv ]; then - check symlink-outside-refused 1 'BAD C1 C missing' $W/symlink.tsv prep -else - cases=$((cases + 1)); no 'symlink-outside-refused: could not create the outside fixture' -fi -check unsupported-prep 0 'TAG-READY no' $W/unsup.tsv prep -check unsupported-tag 3 'TAG-READY no' $W/unsup.tsv tag -check gate-open-tag 3 'GATE-OPEN G1 tests/fixtures/claimcheck/gate-absent.txt' $W/gate.tsv tag -check gate-directory-refused 3 'GATE-OPEN G1 tests/fixtures/claimcheck' $W/gatedir.tsv tag -check gate-absolute-refused 3 'GATE-OPEN G1 /bin/sh' $W/gateabs.tsv tag -check gate-traversal-refused 3 'GATE-OPEN G1 tests/../tests/fixtures/claimcheck/gate.txt' $W/gatetrav.tsv tag -check required-gate-row-absent 3 'GATE-OPEN G4 (no GATE row in the table)' $W/gatemissingrow.tsv tag -check gate-id-repeated 4 "$W/gaterepeat.tsv: line 6: gate G1 repeated" $W/gaterepeat.tsv prep -check gate-id-combined 4 "$W/gatecombined.tsv: line 5: id is not one token" $W/gatecombined.tsv tag -check malformed-table 4 "$W/malformed.tsv: line 1: 2 fields, want 6" $W/malformed.tsv prep -check empty-field 4 "$W/emptyfield.tsv: line 2: field 4 empty" $W/emptyfield.tsv prep -check no-claim-rows 4 "$W/noclaims.tsv: no claim rows" $W/noclaims.tsv prep -check unterminated-table 4 "$W/unterminated.tsv: last line has no newline" $W/unterminated.tsv tag -# Seed forms: absolute (Portable CI), relative to the repository root, and unset. -mkdir -p $W/seed -cp "$seed" $W/seed/omc -check seed-absolute 0 "$pass" $good prep . "$(pwd)/$W/seed/omc" -check seed-relative 0 "$pass" $good prep . "$W/seed/omc" -cases=$((cases + 1)) -set +e -out=$(env -u OMEGA_SEED sh tools/claimcheck.sh prep $good 2>&1) -rc=$? -set -e -if [ -f build/bootstrap/omc ]; then want=0; line=$pass; else want=2; line='seed missing: run tools/bootstrap.sh first'; fi -if [ "$rc" = "$want" ] && printf '%s\n' "$out" | grep -q -x -F -- "$line"; then ok "seed-unset (rc=$rc: $line)"; else no "seed-unset: rc=$rc" "$out"; fi -# The compiled judge accepts a well-formed stream (so the refusals below are not trivial) ... -cases=$((cases + 1)) -set +e -out=$(printf 'M\ttag\nR\tC1\tSUPPORTED\tD\t1\tx\tax\nR\tC1\tSUPPORTED\tC\t1\ty\tyy\nG\tG1\t1\tp\n' | build/claimcheck 2>&1) -rc=$? -set -e -if [ "$rc" = 0 ] && printf '%s\n' "$out" | grep -q -x -F 'TAG-READY yes'; then ok 'judge-well-formed-stream (rc=0: TAG-READY yes)'; else no "judge-well-formed-stream: rc=$rc" "$out"; fi -# ... and refuses malformed streams on its own. -judge judge-no-mode 'R\tx\n' -judge judge-mode-repeated 'M\tprep\nM\ttag\nR\tC1\tEXTERNAL\tD\t1\tx\tx\nR\tC1\tEXTERNAL\tC\t-\t-\t-\n' -judge judge-mode-unknown 'M\tgarbage\nR\tC1\tEXTERNAL\tD\t1\tx\tx\nR\tC1\tEXTERNAL\tC\t-\t-\t-\n' -judge judge-mode-missing 'M\nR\tC1\tEXTERNAL\tD\t1\tx\tx\nR\tC1\tEXTERNAL\tC\t-\t-\t-\n' -judge judge-short-record 'M\tprep\nR\tC1\tEXTERNAL\tD\t1\tx\tx\nR\tC1\tEXTERNAL\tC\t-\t-\t-\nR\n' -judge judge-unknown-side 'M\ttag\nR\tC1\tSUPPORTED\tZ\t1\tx\tx\n' -judge judge-unknown-found 'M\ttag\nR\tC1\tSUPPORTED\tD\t2\tx\tx\n' -judge judge-short-gate 'M\ttag\nR\tC1\tEXTERNAL\tD\t1\tx\tx\nR\tC1\tEXTERNAL\tC\t-\t-\t-\nG\tG1\n' -judge judge-no-claim-rows 'M\ttag\nG\tG1\t1\tp\n' -judge judge-unterminated 'M\tprep\nR\tC1\tEXTERNAL\tD\t1\tx\tx\nR\tC1\tEXTERNAL\tC\t-\t-\t-' -judge judge-document-without-receipt 'M\ttag\nR\tC1\tSUPPORTED\tD\t1\tx\tx\n' -judge judge-receipt-without-document 'M\ttag\nR\tC1\tSUPPORTED\tC\t1\tx\tx\n' -judge judge-receipt-other-id 'M\ttag\nR\tC1\tSUPPORTED\tD\t1\tx\tx\nR\tC2\tSUPPORTED\tC\t1\tx\tx\n' -judge judge-gate-inside-pair 'M\ttag\nR\tC1\tSUPPORTED\tD\t1\tx\tx\nG\tG1\t1\tp\nR\tC1\tSUPPORTED\tC\t1\tx\tx\n' -# Judge mutant: a substring test that always succeeds must let the mismatch through, which shows -# the decision is made by claimcheck.om and not by the shell. -M=$W/mutant -mkdir -p "$M/tools" "$M/tests/fixtures/claimcheck" "$M/build" -cp tools/claimcheck.sh "$M/tools/" -cp $F/doc.md $F/receipt.log $F/gate.txt "$M/tests/fixtures/claimcheck/" -sed 's/^if has 5 6$/if ge get fl 6 0/' tools/claimcheck.om > "$M/tools/claimcheck.om" -if cmp -s tools/claimcheck.om "$M/tools/claimcheck.om"; then - cases=$((cases + 1)); no 'judge-mutant: mutation did not apply' -else - check judge-mutant-accepts-mismatch 0 "$pass" "$(pwd)/$W/expect.tsv" prep "$M" -fi -printf 'claimcheck cases=%s failures=%s RC=%s\n' "$cases" "$fails" "$([ "$fails" = 0 ] && echo 0 || echo 1)" -[ "$fails" = 0 ] 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/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 index c2d0f38..9fe185b 100644 --- a/tests/fixtures/claimcheck/table.tsv +++ b/tests/fixtures/claimcheck/table.tsv @@ -1,4 +1,4 @@ -# claimcheck fixture table (tests/claimcheck.sh); not release evidence +# 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 - - diff --git a/tools/claimcheck.om b/tools/claimcheck.om index 5011000..67a2c1b 100644 --- a/tools/claimcheck.om +++ b/tools/claimcheck.om @@ -1,8 +1,23 @@ -note claimcheck.om: the judge of the release claims check (DRA-107, tools/claimcheck.sh). -note Built with the repository's bootstrap seed (build/bootstrap/omc, sha256 191b776e...). -note tools/claimcheck.sh does the file I/O: for every row of the claims table it looks up the -note cited document and receipt lines and streams them here. This program decides. -note Input on stdin, one record per line, fields separated by one tab byte: +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 @@ -14,8 +29,8 @@ note Exit 0 pass; 1 a BAD record; 3 tag mode while a gate is open or a row is UN 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, tools/claimcheck.sh, guarantees one G record per required gate id; a missing -note GATE row there becomes a G record with found 0, so this judge sees it as an open gate. +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 @@ -328,7 +343,8 @@ fn pstat k ulong v ulong to void pent k pnum v end -fn main to int +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 @@ -345,6 +361,10 @@ 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 @@ -400,3 +420,669 @@ 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 diff --git a/tools/claimcheck.sh b/tools/claimcheck.sh deleted file mode 100644 index 5c9c07b..0000000 --- a/tools/claimcheck.sh +++ /dev/null @@ -1,91 +0,0 @@ -#!/bin/sh -# Release claims check (DRA-107). For every row of the claims table this looks up the cited -# document line and receipt line and streams them to tools/claimcheck.om, which judges them: -# each cited line must contain the row's expect text, every row needs a document citation, -# SUPPORTED rows need a receipt, and in tag mode every release gate receipt must exist and no -# row may be UNSUPPORTED. -# Usage: tools/claimcheck.sh [prep|tag] [TABLE] (after tools/bootstrap.sh) -# Exit: 0 pass; 1 a BAD row; 2 usage; 3 tag mode with an open gate or UNSUPPORTED row; -# 4 malformed table or stream; 65 wrong seed compiler. -set -eu -cd "$(dirname "$0")/.." -root=$(pwd -P) -mode=${1:-prep} -table=${2:-evidence/release-v1/claims.tsv} -# The v1.0.0 release gates (DRA-104, DRA-105, DRA-106, DRA-103). Each must have one GATE row in -# the table; a missing row counts as an open gate. Changing this list is a reviewed edit here. -required='G1 G2 G3 G4' -case $mode in prep|tag) ;; *) echo 'usage: tools/claimcheck.sh [prep|tag] [TABLE]' >&2; exit 2 ;; esac -[ -f "$table" ] || { echo "claims table missing: $table" >&2; exit 2; } -omc=${OMEGA_SEED:-build/bootstrap/omc} -[ -f "$omc" ] || { echo 'seed missing: run tools/bootstrap.sh first' >&2; exit 2; } -[ "$(sha256sum "$omc" | cut -d' ' -f1)" = 191b776ef98821597c3e30655da6d680a9b66edbc9ceaca3c39c61ea6df098e9 ] || exit 65 -mkdir -p build -"$omc" < tools/claimcheck.om > build/claimcheck.tmp -chmod +x build/claimcheck.tmp -mv build/claimcheck.tmp build/claimcheck -tab=$(printf '\t') -# Table shape: six non-empty fields per row (adjacent tabs would otherwise collapse), at least -# one claim row, gate ids unique, and a final newline. -awk -F "$tab" ' - /^#/ { next } - { - if (NF != 6) { printf "%s: line %d: %d fields, want 6\n", FILENAME, NR, NF > "/dev/stderr"; bad = 1; next } - for (i = 1; i <= NF; i++) if ($i == "") { printf "%s: line %d: field %d empty\n", FILENAME, NR, i > "/dev/stderr"; bad = 1 } - if ($1 !~ /^[A-Za-z0-9_.-]+$/) { printf "%s: line %d: id is not one token\n", FILENAME, NR > "/dev/stderr"; bad = 1 } - if ($2 == "GATE") { if (seen[$1]++) { printf "%s: line %d: gate %s repeated\n", FILENAME, NR, $1 > "/dev/stderr"; bad = 1 } } - else claims++ - } - END { - if (!claims) { printf "%s: no claim rows\n", FILENAME > "/dev/stderr"; bad = 1 } - exit bad ? 4 : 0 - }' "$table" -[ "$(tail -c 1 "$table" | od -An -c | tr -d ' ')" = '\n' ] || { echo "$table: last line has no newline" >&2; exit 4; } -# inrepo PATH: 0 when PATH is a regular file inside the repository (relative, no .. component, -# and its resolved path, symlinks followed, still under the repository root). -inrepo() { - case $1 in /*|..|../*|*/..|*/../*|'') return 1 ;; esac - [ -f "$1" ] || return 1 - r=$(readlink -f -- "$1") || return 1 - case $r in "$root"/*) return 0 ;; *) return 1 ;; esac -} -# emit ID STATUS SIDE CITE EXPECT: one R record; found is 1 only when the cited file passes -# inrepo and has the cited line. -emit() { - if [ "$4" = - ]; then - printf 'R\t%s\t%s\t%s\t-\t-\t-\n' "$1" "$2" "$3" - return - fi - p=${4%:*} - n=${4##*:} - f=0 - a=- - case $n in - ''|*[!0-9]*) ;; - *) - if [ "$p" != "$4" ] && inrepo "$p" && [ "$n" -ge 1 ] && [ "$(wc -l < "$p")" -ge "$n" ]; then - f=1 - a=$(sed -n "${n}p" "$p") - fi - ;; - esac - printf 'R\t%s\t%s\t%s\t%s\t%s\t%s\n' "$1" "$2" "$3" "$f" "$5" "$a" -} -gates= -{ - printf 'M\t%s\n' "$mode" - while IFS="$tab" read -r id st doc dexp cite cexp; do - case $id in '#'*) continue ;; esac - if [ "$st" = GATE ]; then - if inrepo "$cite"; then f=1; else f=0; fi - gates="$gates $id" - printf 'G\t%s\t%s\t%s\n' "$id" "$f" "$cite" - continue - fi - emit "$id" "$st" D "$doc" "$dexp" - emit "$id" "$st" C "$cite" "$cexp" - done < "$table" - for g in $required; do - case " $gates " in *" $g "*) ;; *) printf 'G\t%s\t0\t(no GATE row in the table)\n' "$g" ;; esac - done -} | build/claimcheck diff --git a/tools/test.sh b/tools/test.sh index 8330718..8b6c381 100755 --- a/tools/test.sh +++ b/tools/test.sh @@ -9,5 +9,4 @@ python3 tests/refusals.py python3 tests/attachments.py python3 tests/controls.py python3 tests/robustness.py -sh tests/claimcheck.sh printf 'ALL SUITES RC=0\n'