interplane.Get Omega
Read in your language

omega-bridge

Omega-first language interoperability: checked conversion backends and native language bindings

Brought by drakestapleton

DRA-104: physical x86 receipt checker and current-pin runbook note

open 60ccc8c9b45c4249 #79 · opened 2026-11-06 20:41 UTC

Imported from GitHub aien-dev/omega-bridge#79, by drakestapleton

Base d8174eddf953ad53e16f19eb5841459df99e24bb · Head 882e3c061723205fbaf34c8a949e1be3451ac9e7

drakestapleton wrote on 2026-11-06 20:41 UTC

DRA-104 (W3 physical x86-64 qualification): the physical receipt checker, written in seeded Omega. Head 882e3c061723205fbaf34c8a949e1be3451ac9e7, base main d8174eddf953ad53e16f19eb5841459df99e24bb. Commits: 6d5c0ddb (runbook note, EMULATED controls, Python checker), f072eef5 + 882e3c06 (Omega port, gate, Python removed).

Change

  • Already on main: the runbook and receipt format, docs/NATIVE-X86-PHYSICAL.md:1-168. The x86 pin after #74 is still X86_PIN=be8c5130 (tools/native:52). X86_HOST_PIN c5ac9979 is used only for hosted runs; the doc now says so.
  • tests/native/x86/check_physical_receipt.om is the checker. It is pure OM-2, 2233 lines, and builds with the seeded omc (omega-mv e5b32567, sha256 2c82480596bbdc50cda9626866209ef662d5834f278f839ff4ce0250c495029f).
    • It reads the receipt, its four logs and the pins in tools/native. It runs nothing.
    • It has its own JSON reader, which handles duplicate keys and Python-style value display.
    • SHA-256 is copied from omega-mv e5b32567 om/sha256/sha256-om2.om, with attribution in the file's notes.
  • tests/native/x86/check_physical_receipt.py is removed. Its output at git 6d5c0ddb is now used only as an ORACLE: it produced the committed golden files and the comparison below. CI never runs it and it is never shipped.
  • tests/native/x86/check_receipt_test.om is the gate. It runs in portable.yml (step "Physical x86 receipt checker, seeded Omega gate"), which is a one-line wrapper that compiles and runs the gate with $OMEGA_SEEDED_OMC. The gate:
    1. checks the compiler's sha256 and exits 65 on a mismatch;
    2. compiles the checker;
    3. compares the whole output byte for byte with tests/native/x86/receipt-fixtures/expected/*.out (18 cases: the committed and EMULATED receipts, the forged receipt, the accept/forged fixtures and 13 edge receipts);
    4. runs 7 scratch cases (an accepted copy, a renamed receipt, a missing receipt, invalid JSON, 0 or 3 arguments, one appended log byte);
    5. builds 2 checker mutants (the log sha comparison always passes; the EMULATED scan is switched off). Each mutant must fail at least one case.
  • Docs: "Checking a receipt" now shows the Omega build and run commands. evidence/native-x86-physical-checker/README.md lists every difference from the Python checker.

Evidence (Spark aarch64, core 18, taskset + nice)

  • evidence/native-x86-physical-checker/om-port-comparison.tsv compares the two checkers on 323 receipts plus 2 usage cases. The exit status is equal in all 325.
    • 287 outputs are byte-identical.
    • 19 differ only in the read-error wording.
    • 17 differ only in display: a float literal is shown as written (2.50, 1e0 rather than 2.5, 1.0). NaN and nesting deeper than 900 are refused as unreadable; the result is still rc 1.
  • evidence/native-x86-physical-checker/om-gate-run.log holds the gate run on this head and its negative controls:
    • Gate: CHECK-RECEIPT-TEST PASS (18 golden outputs, 7 scratch cases, 2 of 2 checker mutants caught), exit 0. Mutant m1 failed 1 case and m2 failed 4.
    • Wrong compiler hash: exit 65.
    • One edited golden byte: exit 1, FAIL case edge-repr-strings.
    • Edited verdict text in the checker: exit 1, 5 cases fail.
    • Mutant site missing: exit 2.
    • No arguments: exit 2.
  • Historical, from 6d5c0ddb with the Python checker, kept unedited:
    • sh tests/native/x86/run.sh: rc 0, 399 PASS, NATIVE-X86 EMULATED PASS.
    • Wrong pin: rc 1, NATIVE-X86 FAIL x86 compiler pin.
    • Both checkers reject the EMULATED receipt, the committed receipt and the relabelled EMULATED logs. Both accept the synthetic fixture (which tests only the accept path and is not evidence).

Labels

  • Runbook and format: IMPLEMENTED (main).
  • Omega checker and gate: IMPLEMENTED and EXERCISED on Spark aarch64.
  • Emulated suite: PASS, EMULATED.
  • Physical x86: NOT_RUN. DRA-104 is closed only when Drake runs the runbook on a physical x86-64 host and this checker accepts the receipt.

Host tools

ToolVersionRole
seeded omcomega-mv e5b32567, sha256 2c824805…build and gate
Linux7.0.0-1019-nvidiahost
git2.43.0
crumbsha256 29002ba5…crumb compile and verify, 12 crumbs current
python33.12.3ORACLE comparison only (the removed checker at 6d5c0ddb); not used by CI or the gate

Agent: BridgeFinish (omp subagent of omp-queen-spark)

Apply it

git checkout -b patch-60ccc8c9b45c4249 d8174eddf953ad53e16f19eb5841459df99e24bb
curl -fsSL https://interplane.io/drakestapleton/omega-bridge/patches/60ccc8c9b45c4249.patch | git am

Raw patch (mbox) · Diff

Provenance

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

github-import 1
aien-dev/omega-bridge
79
882e3c061723205fbaf34c8a949e1be3451ac9e7
{"kind":"github-import","owner":"aien-dev","repo":"omega-bridge","number":79,"url":"https://github.com/aien-dev/omega-bridge/pull/79","export_sha256":"4437ac3fc1482693a79ee39d37851494fabbe28ae00418da79120f49debe1d7b","imported_utc":"2026-11-18T16:39:53Z"}

Changes

diff --git a/.crumb b/.crumb
index b9c7395..448c98b 100644
--- a/.crumb
+++ b/.crumb
@@ -3,8 +3,8 @@
     "generated": {
       "children": [
         {
-          "digest": "631aae2f6592ff7c71ce09e8de91d0df86c64bdb31380e8696dba24d48e57f16",
-          "last_commit": "e0c9a8e",
+          "digest": "d491916ad163c4b3783bbaf3e9a74ae9e84a5fc527fee36a256909cb57b5a9f8",
+          "last_commit": "f072eef",
           "name": "docs",
           "purpose": "Native ABI contracts and qualification boundaries"
         },
@@ -57,21 +57,21 @@
           "purpose": "Bounded CPU-only device-word controls; no device opens"
         },
         {
-          "digest": "c05117a5ef1852f3d16215fce4a3585c78a5573baf14c0af8645ffe3043a3ad7",
-          "last_commit": "1bba670",
+          "digest": "7e92c8db0109ce936e359caa8053f020410ab1e3069b385dba39fb9aae820653",
+          "last_commit": "f072eef",
           "name": "tests/native/x86",
           "purpose": "Cross-toolchain ABI v2 qualification under qemu-x86_64; never native hardware evidence"
         }
       ],
-      "children_root": "sha256:1b2dd79450d79cdf42d895cd7ec0db578db08215ad3497eab3c4ba8b56deece7",
-      "compiled_at": "2026-11-06T14:10:05Z",
+      "children_root": "sha256:597042075a340681491a693fbc06b51838d998c45782a3a268f5a6e5c31871e9",
+      "compiled_at": "2026-11-07T08:03:31Z",
       "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:c7447345a57635a749bf85db8e9c51fdaf176b2bea324f9b540f2c7ac7cd0f92",
+      "evidence_files": 621,
+      "evidence_root": "sha256:88d4d131b43fedf2de5b0fbb94bbcd1cf9a59ebbb8e6ddd9a18fe953ebdbbb21",
+      "files": 1024,
+      "generated_at_commit": "f072eef56f701f3c0ad9c5525e51ab671aada0d9",
+      "source_tree": "sha256:a11f1bf0c0c440819bc509983c04652a228c81128e51041118abf8e443d3d56a"
     }
   },
   "name": "BridgeHostAienX86",
diff --git a/.github/workflows/portable.yml b/.github/workflows/portable.yml
index 6b43788..2a5f1ba 100644
--- a/.github/workflows/portable.yml
+++ b/.github/workflows/portable.yml
@@ -31,6 +31,8 @@ jobs:
           git -C "$RUNNER_TEMP/cudapp" checkout -q dbb1b5002fd7d96ff4695b2da4dcb3238db226c2
       - name: Unchanged baseline behavioral and refusal suites
         run: sh tools/test.sh
+      - name: Physical x86 receipt checker, seeded Omega gate
+        run: '"$OMEGA_SEEDED_OMC" < tests/native/x86/check_receipt_test.om > "$RUNNER_TEMP/crt" && chmod +x "$RUNNER_TEMP/crt" && mkdir "$RUNNER_TEMP/crtwd" && "$RUNNER_TEMP/crt" "$OMEGA_SEEDED_OMC" "$RUNNER_TEMP/crtwd"'
       - name: Explicit x86 verification oracle, never a production dependency
         shell: bash
         run: |
diff --git a/docs/.crumb b/docs/.crumb
index 02289e5..4eec755 100644
--- a/docs/.crumb
+++ b/docs/.crumb
@@ -3,14 +3,14 @@
     "generated": {
       "children": [],
       "children_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
-      "compiled_at": "2026-11-06T14:10:05Z",
+      "compiled_at": "2026-11-07T08:03:12Z",
       "compiler": "crumb-compile/1",
-      "digest": "sha256:631aae2f6592ff7c71ce09e8de91d0df86c64bdb31380e8696dba24d48e57f16",
+      "digest": "sha256:d491916ad163c4b3783bbaf3e9a74ae9e84a5fc527fee36a256909cb57b5a9f8",
       "evidence_files": 0,
       "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
       "files": 18,
-      "generated_at_commit": "8e1d5244e3cc1dd6892aa90b214ef508bde3be0e",
-      "source_tree": "sha256:c07e11105274b150e428e9154ad22157e6066cfc7147879b57209e78730102c1"
+      "generated_at_commit": "6d5c0ddbf39c54346d33d1c7eb19ee9458621e6f",
+      "source_tree": "sha256:b658920fd264f00e239d7fde8f2d821f967c7a258a7c9bb3e3bf4a4bb475988c"
     }
   },
   "name": "native-contract",
diff --git a/docs/NATIVE-X86-PHYSICAL.md b/docs/NATIVE-X86-PHYSICAL.md
index 974b6a8..ba543e4 100644
--- a/docs/NATIVE-X86-PHYSICAL.md
+++ b/docs/NATIVE-X86-PHYSICAL.md
@@ -79,6 +79,10 @@ chmod +x omc-gen omc-x86
 sha256sum omc-gen omc-x86   # must print the two pins above
 ```
 
+These are `PIN` and `X86_PIN` in `tools/native`. The separate hosted pin
+`X86_HOST_PIN` (`c5ac9979…`, selected by `tools/native --host`) is not used by
+`tests/native/x86/run.sh`; a physical receipt names `X86_PIN`.
+
 ## Commands
 
 From the omega-bridge checkout at the commit under test, with fresh empty
@@ -166,3 +170,25 @@ Label rule:
 A physical receipt qualifies the ABI v2 boundary on that CPU model and kernel
 only. It says nothing about CPU timing, other microarchitectures, other
 kernels or other C libraries.
+
+## Checking a receipt
+
+```sh
+omc < tests/native/x86/check_physical_receipt.om > check_physical_receipt
+chmod +x check_physical_receipt
+./check_physical_receipt evidence/native-x86-physical-<pin8>.json
+```
+
+`omc` is the seeded compiler (omega-mv e5b32567, sha256 `2c824805…`); run the
+checker from the repository root. It reads the receipt, the four logs in
+`evidence/native-x86-physical-<pin8>/` and the pins in `tools/native`; it runs
+nothing. It exits 0 with `PHYSICAL-RECEIPT ACCEPTED` only if the receipt is
+`PHYSICAL`/`NATIVE_PASS` at the current `PIN` and `X86_PIN`, records host,
+binfmt and toolchain versions, lists the four commands with their expected
+exits and results, the log hashes match, and the suite log itself ends with
+`NATIVE-X86 NATIVE PASS … virtualization=none`, shows
+`INFO virtualization=none` and `INFO cpu hypervisor flag=no`, matches the
+receipt's CPU model and kernel, and never says `EMULATED`. Any other receipt,
+including every EMULATED receipt and an EMULATED log relabelled `PHYSICAL`,
+exits 1 with `PHYSICAL-RECEIPT REJECTED`. Acceptance is a consistency check of
+the receipt, not evidence by itself.
diff --git a/evidence/native-x86-physical-checker/README.md b/evidence/native-x86-physical-checker/README.md
new file mode 100644
index 0000000..66f98fb
--- /dev/null
+++ b/evidence/native-x86-physical-checker/README.md
@@ -0,0 +1,16 @@
+Checker controls for the physical x86 receipt checker (DRA-104), Spark aarch64, bridge base d8174eddf953ad53e16f19eb5841459df99e24bb, X86_PIN be8c5130, PIN 734f0a39.
+
+The checker is tests/native/x86/check_physical_receipt.om (pure seeded Omega, built by omega-mv e5b32567 omc sha256 2c82480596bbdc50cda9626866209ef662d5834f278f839ff4ce0250c495029f). Its gate is tests/native/x86/check_receipt_test.om, run in .github/workflows/portable.yml. It replaces check_physical_receipt.py (git 6d5c0ddb, removed); the Python checker is kept only as the ORACLE that produced tests/native/x86/receipt-fixtures/expected/*.out and the comparison below, and is never shipped or run by CI.
+
+Historical receipts (Python checker at 6d5c0ddb, kept unedited):
+EMULATED run: OMEGA_NATIVE_X86_EXEC unset, QEMU 10.0.14 oracle, taskset 16,17 under flock+bwrap: sh tests/native/x86/run.sh -> rc 0, 399 PASS 0 FAIL, last line "NATIVE-X86 EMULATED PASS (six languages built and run; native x86 NOT_RUN)"; log sha256 ead06880dbcfbde5073317f2f374f152529ebfe0b185d741a1a3743aebb708e5.
+Wrong-pin control (generator omc as x86 omc): rc 1, "NATIVE-X86 FAIL x86 compiler pin".
+emulated-receipt.json (from that run, label EMULATED): rc 1 REJECTED. evidence/native-x86-be8c5130.json: rc 1 REJECTED.
+forged-receipt.json (EMULATED logs, receipt relabelled PHYSICAL with every field filled): rc 1 REJECTED on the suite-log checks.
+synthetic-fixture: hand-written logs, no run; rc 0 ACCEPTED (accept path only, not evidence); one appended log byte -> REJECTED.
+
+Omega port, EXERCISED on Spark aarch64 core 18:
+om-port-comparison.tsv: 323 receipts (mutations of every field, JSON syntax and number forms, duplicate keys, escapes, log tampering, size and depth stress) plus 2 usage cases, run through both checkers. Exit status equal in all 325. Output byte-identical in 287. 19 differ only in the read-error wording (Python's json message vs "invalid JSON near byte N" or "open or read failed: errno N"). 17 differ only in display: a float is shown as its source literal (2.50, 1e0) where Python shows repr (2.5, 1.0); NaN (json_12) is refused as unreadable where Python fails "schema is 1"; nesting deeper than 900 (json_19) is refused as unreadable where Python fails "receipt is a JSON object". Both usage lines name the program differently; exit 2 in both.
+Other differences by construction: receipts over 900000 bytes and logs of 16 MiB or more are refused; numbers equal to 0 or 1 only after binary64 rounding (1.00000000000000001, 1e-400) are refused (tightening); command, bridge_commit and sha fields that are not strings are refused; tools/native is read relative to the current directory, so run from the repository root; one display line is cut at 8 MiB.
+om-gate-run.log: the gate passes (18 golden outputs, 7 scratch cases, 2 of 2 checker mutants caught); negative controls: wrong compiler hash exit 65, an edited golden byte exit 1, an edited verdict text in the checker exit 1, a missing mutant site exit 2, no arguments exit 2.
+physical x86: NOT_RUN.
diff --git a/evidence/native-x86-physical-checker/committed-be8c5130-receipt-rejected.log b/evidence/native-x86-physical-checker/committed-be8c5130-receipt-rejected.log
new file mode 100644
index 0000000..4e767f7
--- /dev/null
+++ b/evidence/native-x86-physical-checker/committed-be8c5130-receipt-rejected.log
@@ -0,0 +1,51 @@
+PASS receipt is a JSON object
+PASS schema is 1
+FAIL label is PHYSICAL (got None)
+FAIL status is NATIVE_PASS (got 'EMULATED_PASS')
+FAIL native_x86 is PASS (got 'NOT_RUN')
+FAIL receipt nowhere says EMULATED
+PASS bridge_commit is a full sha
+PASS x86_omc_sha256 is the tools/native X86_PIN
+PASS baseline_omc_sha256 is the tools/native PIN
+FAIL file name carries the x86 pin prefix
+FAIL host.virtualization is none (got None)
+FAIL host.hypervisor_flag is no (got None)
+FAIL host.cpu_model is recorded
+FAIL host.kernel is recorded
+FAIL host.os is recorded
+FAIL host.binfmt_qemu_aarch64 interpreter and version recorded
+FAIL host.binfmt_qemu_aarch64 sha256 recorded
+FAIL toolchains.gcc version recorded
+FAIL toolchains.g++ version recorded
+FAIL toolchains.rustc version recorded
+FAIL toolchains.zig version recorded
+FAIL toolchains.go version recorded
+FAIL toolchains.python version recorded
+FAIL four runbook commands recorded (got 6)
+FAIL command 1 is the runbook command (OMEGA_NATIVE_X86_EXEC=native sh tests/native/x86/run.sh)
+PASS command 1 exit is 0 (got 0)
+FAIL command 1 result names NATIVE-X86 NATIVE PASS
+FAIL command 2 is the runbook command (OMEGA_NATIVE_X86_EXEC=native python3 tests/native/x86/test_build_failures.py)
+PASS command 2 exit is 0 (got 0)
+FAIL command 2 result names NATIVE-X86 CONTROLS PASS
+FAIL command 3 is the runbook command (OMEGA_NATIVE_X86_OMC=)
+FAIL command 3 exit is 1 (got 0)
+FAIL command 3 result names FAIL x86 compiler pin
+FAIL command 4 is the runbook command (tools/native --target x86linux)
+FAIL command 4 exit is 1 (got 0)
+FAIL command 4 result names refused
+FAIL log x86-native.log present in /dev/shm/hive/BridgeCompiler/W104X86/rcpt/none
+FAIL log x86-native-controls.log present in /dev/shm/hive/BridgeCompiler/W104X86/rcpt/none
+FAIL log x86-native-wrongpin.log present in /dev/shm/hive/BridgeCompiler/W104X86/rcpt/none
+FAIL log x86-native-mut.log present in /dev/shm/hive/BridgeCompiler/W104X86/rcpt/none
+FAIL suite log ends with the NATIVE PASS line
+PASS suite log never ran EMULATED
+FAIL suite log shows virtualization=none
+FAIL suite log shows hypervisor flag clear
+PASS suite log has no FAIL line
+FAIL suite log cpu model matches receipt
+FAIL suite log kernel matches receipt
+FAIL controls log reports NATIVE CONTROLS PASS
+FAIL wrong-pin log refuses the x86 compiler pin
+FAIL mutated-compiler log is refused by tools/native
+PHYSICAL-RECEIPT REJECTED (41 failed: label is PHYSICAL (got None); status is NATIVE_PASS (got 'EMULATED_PASS'); native_x86 is PASS (got 'NOT_RUN'); receipt nowhere says EMULATED)
diff --git a/evidence/native-x86-physical-checker/emulated-logs-relabelled-physical-rejected.log b/evidence/native-x86-physical-checker/emulated-logs-relabelled-physical-rejected.log
new file mode 100644
index 0000000..b8cdf22
--- /dev/null
+++ b/evidence/native-x86-physical-checker/emulated-logs-relabelled-physical-rejected.log
@@ -0,0 +1,55 @@
+PASS receipt is a JSON object
+PASS schema is 1
+PASS label is PHYSICAL (got 'PHYSICAL')
+PASS status is NATIVE_PASS (got 'NATIVE_PASS')
+PASS native_x86 is PASS (got 'PASS')
+PASS receipt nowhere says EMULATED
+PASS bridge_commit is a full sha
+PASS x86_omc_sha256 is the tools/native X86_PIN
+PASS baseline_omc_sha256 is the tools/native PIN
+PASS file name carries the x86 pin prefix
+PASS host.virtualization is none (got 'none')
+PASS host.hypervisor_flag is no (got 'no')
+PASS host.cpu_model is recorded
+PASS host.kernel is recorded
+PASS host.os is recorded
+PASS host.binfmt_qemu_aarch64 interpreter and version recorded
+PASS host.binfmt_qemu_aarch64 sha256 recorded
+PASS toolchains.gcc version recorded
+PASS toolchains.g++ version recorded
+PASS toolchains.rustc version recorded
+PASS toolchains.zig version recorded
+PASS toolchains.go version recorded
+PASS toolchains.python version recorded
+PASS four runbook commands recorded (got 4)
+PASS command 1 is the runbook command (OMEGA_NATIVE_X86_EXEC=native sh tests/native/x86/run.sh)
+PASS command 1 exit is 0 (got 0)
+PASS command 1 result names NATIVE-X86 NATIVE PASS
+PASS command 2 is the runbook command (OMEGA_NATIVE_X86_EXEC=native python3 tests/native/x86/test_build_failures.py)
+PASS command 2 exit is 0 (got 0)
+PASS command 2 result names NATIVE-X86 CONTROLS PASS
+PASS command 3 is the runbook command (OMEGA_NATIVE_X86_OMC=)
+PASS command 3 exit is 1 (got 1)
+PASS command 3 result names FAIL x86 compiler pin
+PASS command 4 is the runbook command (tools/native --target x86linux)
+PASS command 4 exit is 1 (got 1)
+PASS command 4 result names refused
+PASS log x86-native.log present in /dev/shm/hive/BridgeCompiler/W104X86/forged/native-x86-physical-be8c5130
+PASS log x86-native.log sha256 matches receipt
+PASS log x86-native-controls.log present in /dev/shm/hive/BridgeCompiler/W104X86/forged/native-x86-physical-be8c5130
+PASS log x86-native-controls.log sha256 matches receipt
+PASS log x86-native-wrongpin.log present in /dev/shm/hive/BridgeCompiler/W104X86/forged/native-x86-physical-be8c5130
+PASS log x86-native-wrongpin.log sha256 matches receipt
+PASS log x86-native-mut.log present in /dev/shm/hive/BridgeCompiler/W104X86/forged/native-x86-physical-be8c5130
+PASS log x86-native-mut.log sha256 matches receipt
+FAIL suite log ends with the NATIVE PASS line
+FAIL suite log never ran EMULATED
+FAIL suite log shows virtualization=none
+FAIL suite log shows hypervisor flag clear
+PASS suite log has no FAIL line
+FAIL suite log cpu model matches receipt
+FAIL suite log kernel matches receipt
+PASS controls log reports NATIVE CONTROLS PASS
+PASS wrong-pin log refuses the x86 compiler pin
+PASS mutated-compiler log is refused by tools/native
+PHYSICAL-RECEIPT REJECTED (6 failed: suite log ends with the NATIVE PASS line; suite log never ran EMULATED; suite log shows virtualization=none; suite log shows hypervisor flag clear)
diff --git a/evidence/native-x86-physical-checker/emulated-receipt-rejected.log b/evidence/native-x86-physical-checker/emulated-receipt-rejected.log
new file mode 100644
index 0000000..5ee699a
--- /dev/null
+++ b/evidence/native-x86-physical-checker/emulated-receipt-rejected.log
@@ -0,0 +1,52 @@
+PASS receipt is a JSON object
+PASS schema is 1
+FAIL label is PHYSICAL (got 'EMULATED')
+FAIL status is NATIVE_PASS (got 'EMULATED_PASS')
+FAIL native_x86 is PASS (got 'NOT_RUN')
+FAIL receipt nowhere says EMULATED
+PASS bridge_commit is a full sha
+PASS x86_omc_sha256 is the tools/native X86_PIN
+PASS baseline_omc_sha256 is the tools/native PIN
+PASS file name carries the x86 pin prefix
+FAIL host.virtualization is none (got 'qemu-user')
+PASS host.hypervisor_flag is no (got 'no')
+PASS host.cpu_model is recorded
+FAIL host.kernel is recorded
+FAIL host.os is recorded
+FAIL host.binfmt_qemu_aarch64 interpreter and version recorded
+FAIL host.binfmt_qemu_aarch64 sha256 recorded
+FAIL toolchains.gcc version recorded
+FAIL toolchains.g++ version recorded
+FAIL toolchains.rustc version recorded
+FAIL toolchains.zig version recorded
+FAIL toolchains.go version recorded
+FAIL toolchains.python version recorded
+FAIL four runbook commands recorded (got 1)
+FAIL command 1 is the runbook command (OMEGA_NATIVE_X86_EXEC=native sh tests/native/x86/run.sh)
+PASS command 1 exit is 0 (got 0)
+FAIL command 1 result names NATIVE-X86 NATIVE PASS
+FAIL command 2 is the runbook command (OMEGA_NATIVE_X86_EXEC=native python3 tests/native/x86/test_build_failures.py)
+FAIL command 2 exit is 0 (got None)
+FAIL command 2 result names NATIVE-X86 CONTROLS PASS
+FAIL command 3 is the runbook command (OMEGA_NATIVE_X86_OMC=)
+FAIL command 3 exit is 1 (got None)
+FAIL command 3 result names FAIL x86 compiler pin
+FAIL command 4 is the runbook command (tools/native --target x86linux)
+FAIL command 4 exit is 1 (got None)
+FAIL command 4 result names refused
+PASS log x86-native.log present in /dev/shm/hive/BridgeCompiler/W104X86/rcpt/native-x86-physical-be8c5130
+PASS log x86-native.log sha256 matches receipt
+FAIL log x86-native-controls.log present in /dev/shm/hive/BridgeCompiler/W104X86/rcpt/native-x86-physical-be8c5130
+FAIL log x86-native-wrongpin.log present in /dev/shm/hive/BridgeCompiler/W104X86/rcpt/native-x86-physical-be8c5130
+FAIL log x86-native-mut.log present in /dev/shm/hive/BridgeCompiler/W104X86/rcpt/native-x86-physical-be8c5130
+FAIL suite log ends with the NATIVE PASS line
+FAIL suite log never ran EMULATED
+FAIL suite log shows virtualization=none
+FAIL suite log shows hypervisor flag clear
+PASS suite log has no FAIL line
+FAIL suite log cpu model matches receipt
+FAIL suite log kernel matches receipt
+FAIL controls log reports NATIVE CONTROLS PASS
+FAIL wrong-pin log refuses the x86 compiler pin
+FAIL mutated-compiler log is refused by tools/native
+PHYSICAL-RECEIPT REJECTED (39 failed: label is PHYSICAL (got 'EMULATED'); status is NATIVE_PASS (got 'EMULATED_PASS'); native_x86 is PASS (got 'NOT_RUN'); receipt nowhere says EMULATED)
diff --git a/evidence/native-x86-physical-checker/emulated-receipt.json b/evidence/native-x86-physical-checker/emulated-receipt.json
new file mode 100644
index 0000000..ece981d
--- /dev/null
+++ b/evidence/native-x86-physical-checker/emulated-receipt.json
@@ -0,0 +1,26 @@
+{
+ "schema": 1,
+ "status": "EMULATED_PASS",
+ "label": "EMULATED",
+ "bridge_commit": "d8174eddf953ad53e16f19eb5841459df99e24bb",
+ "x86_omc_sha256": "be8c51301307555254fc59e351d281aae1aa096d91521777e33a41c8b446448a",
+ "baseline_omc_sha256": "734f0a39319fbfa930bcc62cb30dbf06d47d78e126372b74f5baf478e6126b61",
+ "native_x86": "NOT_RUN",
+ "host": {
+  "cpu_model": "(aarch64 Spark; callers under qemu-x86_64 10.0.14)",
+  "hypervisor_flag": "no",
+  "virtualization": "qemu-user",
+  "kernel": "",
+  "os": ""
+ },
+ "commands": [
+  {
+   "command": "sh tests/native/x86/run.sh EMPTY_OUTPUT",
+   "exit": 0,
+   "result": "NATIVE-X86 EMULATED PASS (six languages built and run; native x86 NOT_RUN)"
+  }
+ ],
+ "logs_sha256": {
+  "x86-native.log": "ead06880dbcfbde5073317f2f374f152529ebfe0b185d741a1a3743aebb708e5"
+ }
+}
\ No newline at end of file
diff --git a/evidence/native-x86-physical-checker/forged-receipt.json b/evidence/native-x86-physical-checker/forged-receipt.json
new file mode 100644
index 0000000..923602f
--- /dev/null
+++ b/evidence/native-x86-physical-checker/forged-receipt.json
@@ -0,0 +1,57 @@
+{
+ "schema": 1,
+ "status": "NATIVE_PASS",
+ "label": "PHYSICAL",
+ "bridge_commit": "d8174eddf953ad53e16f19eb5841459df99e24bb",
+ "x86_omc_sha256": "be8c51301307555254fc59e351d281aae1aa096d91521777e33a41c8b446448a",
+ "baseline_omc_sha256": "734f0a39319fbfa930bcc62cb30dbf06d47d78e126372b74f5baf478e6126b61",
+ "native_x86": "PASS",
+ "host": {
+  "cpu_model": "SYNTH CPU",
+  "hypervisor_flag": "no",
+  "virtualization": "none",
+  "kernel": "6.8.0-synth",
+  "os": "synth",
+  "binfmt_qemu_aarch64": {
+   "interpreter": "/usr/bin/qemu-aarch64-static",
+   "version": "v",
+   "sha256": "0000000000000000000000000000000000000000000000000000000000000000"
+  }
+ },
+ "toolchains": {
+  "gcc": "v",
+  "g++": "v",
+  "rustc": "v",
+  "zig": "v",
+  "go": "v",
+  "python": "v"
+ },
+ "commands": [
+  {
+   "command": "OMEGA_NATIVE_X86_EXEC=native sh tests/native/x86/run.sh EMPTY_OUTPUT",
+   "exit": 0,
+   "result": "1 PASS, 0 FAIL; NATIVE-X86 NATIVE PASS"
+  },
+  {
+   "command": "OMEGA_NATIVE_X86_EXEC=native python3 tests/native/x86/test_build_failures.py EMPTY_OUTPUT",
+   "exit": 0,
+   "result": "NATIVE-X86 CONTROLS PASS (NATIVE)"
+  },
+  {
+   "command": "OMEGA_NATIVE_X86_EXEC=native OMEGA_NATIVE_X86_OMC=<734f0a39 omc> sh tests/native/x86/run.sh EMPTY_OUTPUT",
+   "exit": 1,
+   "result": "negative control: FAIL x86 compiler pin"
+  },
+  {
+   "command": "OMEGA_NATIVE_X86_OMC=<mut> sh tools/native --target x86linux OUTDIR tests/native/x86/follow.om",
+   "exit": 1,
+   "result": "negative control: tools/native refused"
+  }
+ ],
+ "logs_sha256": {
+  "x86-native.log": "ead06880dbcfbde5073317f2f374f152529ebfe0b185d741a1a3743aebb708e5",
+  "x86-native-wrongpin.log": "39950f1abe283c0c5e3df3b96c2a2ae03ce2f3f216da5c555f7e59dfe2dcfc2d",
+  "x86-native-controls.log": "a142d94bdb8fefa4903593b58388a4de8c13c98f54f95b567cd3b4a19c1b5b4b",
+  "x86-native-mut.log": "4477616f650e6f590a92d68a339f72d55df9a80f4966c3e9bf5e8c6c84bc5503"
+ }
+}
\ No newline at end of file
diff --git a/evidence/native-x86-physical-checker/om-gate-run.log b/evidence/native-x86-physical-checker/om-gate-run.log
new file mode 100644
index 0000000..ddaaed5
--- /dev/null
+++ b/evidence/native-x86-physical-checker/om-gate-run.log
@@ -0,0 +1,36 @@
+# tests/native/x86/check_receipt_test.om, built and run on Spark aarch64 (core 18) with seeded omc
+# sha256 2c82480596bbdc50cda9626866209ef662d5834f278f839ff4ce0250c495029f (omega-mv e5b32567), from the repository root:
+#   omc < tests/native/x86/check_receipt_test.om > crt; crt OMC WORKDIR
+# usage: no arguments. wrong-omc: the checker binary passed as OMC. golden-edited: one byte of
+# expected/edge-repr-strings.out changed. checker-edited: the ACCEPTED verdict text changed in the checker.
+# mutant-site-missing: the EMULATED-scan mutant site edited away. Every edit was reverted before 'restored'.
+== usage: exit 2
+usage: check_receipt_test OMC WORKDIR   (run from the repository root)
+
+== wrong-omc: exit 65
+CHECK-RECEIPT-TEST FAIL omc sha256 is not the seeded omega-mv e5b32567 compiler 2c824805
+
+== golden-edited: exit 1
+FAIL case edge-repr-strings exit 1
+MUTANT m1.om caught by 2 failing cases
+MUTANT m2.om caught by 5 failing cases
+CHECK-RECEIPT-TEST FAIL
+
+== checker-edited: exit 1
+FAIL case accept exit 0
+FAIL case edge-dup-key-last-wins exit 0
+FAIL case edge-escaped-label exit 0
+FAIL case edge-exit-forms exit 0
+FAIL case edge-schema-true exit 0
+MUTANT m1.om caught by 6 failing cases
+MUTANT m2.om caught by 9 failing cases
+CHECK-RECEIPT-TEST FAIL
+
+== mutant-site-missing: exit 2
+MUTANT m1.om caught by 1 failing cases
+CHECK-RECEIPT-TEST FAIL setup: building a mutant
+
+== restored: exit 0
+MUTANT m1.om caught by 1 failing cases
+MUTANT m2.om caught by 4 failing cases
+CHECK-RECEIPT-TEST PASS (18 golden outputs, 7 scratch cases, 2 of 2 checker mutants caught)
diff --git a/evidence/native-x86-physical-checker/om-port-comparison.tsv b/evidence/native-x86-physical-checker/om-port-comparison.tsv
new file mode 100644
index 0000000..45c4d49
--- /dev/null
+++ b/evidence/native-x86-physical-checker/om-port-comparison.tsv
@@ -0,0 +1,326 @@
+# case	python_exit	om_exit	class   (python = check_physical_receipt.py at git 6d5c0ddb, ORACLE; om = check_physical_receipt.om built by seeded omc 2c824805)
+accept	0	0	identical
+schema_0	1	1	identical
+schema_1	0	0	identical
+schema_2	0	0	identical
+schema_3	1	1	identical
+schema_4	1	1	identical
+schema_5	1	1	identical
+schema_6	1	1	identical
+schema_7	0	0	identical
+schema_8	1	1	identical
+schema_del	1	1	identical
+label_0	1	1	identical
+label_1	1	1	identical
+label_2	1	1	identical
+label_3	1	1	identical
+label_4	1	1	identical
+label_5	1	1	identical
+label_6	1	1	identical
+label_7	1	1	identical
+label_8	1	1	identical
+label_del	1	1	identical
+status_0	1	1	identical
+status_1	1	1	identical
+status_2	1	1	identical
+status_3	1	1	identical
+status_4	1	1	identical
+status_5	1	1	identical
+status_6	1	1	identical
+status_7	1	1	identical
+status_8	1	1	identical
+status_del	1	1	identical
+native_x86_0	1	1	identical
+native_x86_1	1	1	identical
+native_x86_2	1	1	identical
+native_x86_3	1	1	identical
+native_x86_4	1	1	identical
+native_x86_5	1	1	identical
+native_x86_6	1	1	identical
+native_x86_7	1	1	identical
+native_x86_8	1	1	identical
+native_x86_del	1	1	identical
+bridge_commit_0	1	1	identical
+bridge_commit_1	1	1	identical
+bridge_commit_2	1	1	identical
+bridge_commit_3	1	1	identical
+bridge_commit_4	1	1	identical
+bridge_commit_5	1	1	identical
+bridge_commit_6	1	1	identical
+bridge_commit_7	1	1	identical
+bridge_commit_8	1	1	identical
+bridge_commit_del	1	1	identical
+x86_omc_sha256_0	1	1	identical
+x86_omc_sha256_1	1	1	identical
+x86_omc_sha256_2	1	1	identical
+x86_omc_sha256_3	1	1	identical
+x86_omc_sha256_4	1	1	identical
+x86_omc_sha256_5	1	1	identical
+x86_omc_sha256_6	1	1	identical
+x86_omc_sha256_7	1	1	identical
+x86_omc_sha256_8	1	1	identical
+x86_omc_sha256_del	1	1	identical
+baseline_omc_sha256_0	1	1	identical
+baseline_omc_sha256_1	1	1	identical
+baseline_omc_sha256_2	1	1	identical
+baseline_omc_sha256_3	1	1	identical
+baseline_omc_sha256_4	1	1	identical
+baseline_omc_sha256_5	1	1	identical
+baseline_omc_sha256_6	1	1	identical
+baseline_omc_sha256_7	1	1	identical
+baseline_omc_sha256_8	1	1	identical
+baseline_omc_sha256_del	1	1	identical
+host_0	1	1	identical
+host_1	1	1	identical
+host_2	1	1	identical
+host_3	1	1	identical
+host_4	1	1	identical
+host_5	1	1	identical
+host_6	1	1	identical
+host_7	1	1	identical
+host_8	1	1	identical
+host_del	1	1	identical
+toolchains_0	1	1	identical
+toolchains_1	1	1	identical
+toolchains_2	1	1	identical
+toolchains_3	1	1	identical
+toolchains_4	1	1	identical
+toolchains_5	1	1	identical
+toolchains_6	1	1	identical
+toolchains_7	1	1	identical
+toolchains_8	1	1	identical
+toolchains_del	1	1	identical
+commands_0	1	1	identical
+commands_1	1	1	identical
+commands_2	1	1	identical
+commands_3	1	1	identical
+commands_4	1	1	identical
+commands_5	1	1	identical
+commands_6	1	1	identical
+commands_7	1	1	identical
+commands_8	1	1	identical
+commands_del	1	1	identical
+logs_sha256_0	1	1	identical
+logs_sha256_1	1	1	identical
+logs_sha256_2	1	1	identical
+logs_sha256_3	1	1	identical
+logs_sha256_4	1	1	identical
+logs_sha256_5	1	1	identical
+logs_sha256_6	1	1	identical
+logs_sha256_7	1	1	identical
+logs_sha256_8	1	1	identical
+logs_sha256_del	1	1	identical
+host_cpu_model_0	1	1	identical
+host_cpu_model_1	1	1	identical
+host_cpu_model_2	1	1	identical
+host_cpu_model_3	1	1	identical
+host_cpu_model_4	1	1	identical
+host_cpu_model_5	1	1	identical
+host_cpu_model_6	1	1	identical
+host_cpu_model_7	1	1	identical
+host_cpu_model_8	1	1	identical
+host_cpu_model_9	1	1	identical
+host_cpu_model_10	1	1	identical
+host_cpu_model_11	1	1	identical
+host_cpu_model_12	1	1	identical
+host_kernel_0	1	1	identical
+host_kernel_1	1	1	identical
+host_kernel_2	1	1	identical
+host_kernel_3	1	1	identical
+host_kernel_4	1	1	identical
+host_kernel_5	1	1	identical
+host_kernel_6	1	1	identical
+host_kernel_7	1	1	identical
+host_kernel_8	1	1	identical
+host_kernel_9	1	1	identical
+host_kernel_10	1	1	identical
+host_kernel_11	1	1	identical
+host_kernel_12	1	1	identical
+host_os_0	1	1	identical
+host_os_1	1	1	identical
+host_os_2	1	1	identical
+host_os_3	1	1	identical
+host_os_4	0	0	identical
+host_os_5	0	0	identical
+host_os_6	0	0	identical
+host_os_7	0	0	identical
+host_os_8	0	0	identical
+host_os_9	1	1	identical
+host_os_10	0	0	identical
+host_os_11	1	1	identical
+host_os_12	1	1	identical
+host_virtualization_0	1	1	identical
+host_virtualization_1	1	1	identical
+host_virtualization_2	1	1	identical
+host_virtualization_3	1	1	identical
+host_virtualization_4	1	1	identical
+host_virtualization_5	1	1	identical
+host_virtualization_6	1	1	identical
+host_virtualization_7	1	1	identical
+host_virtualization_8	1	1	identical
+host_virtualization_9	1	1	identical
+host_virtualization_10	1	1	identical
+host_virtualization_11	1	1	identical
+host_virtualization_12	1	1	identical
+host_hypervisor_flag_0	1	1	identical
+host_hypervisor_flag_1	1	1	identical
+host_hypervisor_flag_2	1	1	identical
+host_hypervisor_flag_3	1	1	identical
+host_hypervisor_flag_4	1	1	identical
+host_hypervisor_flag_5	1	1	identical
+host_hypervisor_flag_6	1	1	identical
+host_hypervisor_flag_7	1	1	identical
+host_hypervisor_flag_8	1	1	identical
+host_hypervisor_flag_9	1	1	identical
+host_hypervisor_flag_10	1	1	identical
+host_hypervisor_flag_11	1	1	identical
+host_hypervisor_flag_12	1	1	identical
+host_binfmt_qemu_aarch64_0	1	1	identical
+host_binfmt_qemu_aarch64_1	1	1	identical
+host_binfmt_qemu_aarch64_2	1	1	identical
+host_binfmt_qemu_aarch64_3	1	1	identical
+host_binfmt_qemu_aarch64_4	1	1	identical
+host_binfmt_qemu_aarch64_5	1	1	identical
+host_binfmt_qemu_aarch64_6	1	1	identical
+host_binfmt_qemu_aarch64_7	1	1	identical
+host_binfmt_qemu_aarch64_8	1	1	identical
+host_binfmt_qemu_aarch64_9	1	1	identical
+host_binfmt_qemu_aarch64_10	1	1	identical
+host_binfmt_qemu_aarch64_11	1	1	identical
+host_binfmt_qemu_aarch64_12	1	1	identical
+tc_gcc_0	1	1	identical
+tc_gcc_1	1	1	identical
+tc_gcc_2	0	0	identical
+tc_gcc_3	1	1	identical
+tc_python_0	1	1	identical
+tc_python_1	1	1	identical
+tc_python_2	0	0	identical
+tc_python_3	1	1	identical
+exit2_0	0	0	identical
+exit0_0	1	1	identical
+exit2_1	1	1	identical
+exit0_1	0	0	identical
+exit2_2	0	0	identical
+exit0_2	1	1	identical
+exit2_3	1	1	identical
+exit0_3	0	0	identical
+exit2_4	1	1	identical
+exit0_4	0	0	identical
+exit2_5	1	1	identical
+exit0_5	1	1	identical
+exit2_6	1	1	identical
+exit0_6	1	1	identical
+exit2_7	1	1	identical
+exit0_7	1	1	identical
+exit2_8	1	1	identical
+exit0_8	1	1	identical
+exit2_9	1	1	identical
+exit0_9	1	1	identical
+exit2_10	1	1	identical
+exit0_10	1	1	identical
+schema_v0	0	0	identical
+schema_v1	0	0	identical
+schema_v2	1	1	identical
+schema_v3	1	1	identical
+cmds3	1	1	identical
+cmds5	1	1	identical
+cmd_notdict	1	1	identical
+cmd_wrongtext	1	1	identical
+cmd_result	1	1	identical
+emu_key	1	1	identical
+emu_val	1	1	identical
+dup_live	0	0	identical
+dup_dead	1	1	identical
+esc_label	0	0	identical
+esc_slash	0	0	identical
+surr_pair	1	1	identical
+surr_lone	1	1	identical
+repr_dictdup	1	1	display
+ws_crlf	0	0	identical
+compact	0	0	identical
+json_0	1	1	read-error-wording
+json_1	1	1	read-error-wording
+json_2	1	1	identical
+json_3	1	1	identical
+json_4	1	1	identical
+json_5	1	1	identical
+json_6	1	1	read-error-wording
+json_7	1	1	read-error-wording
+json_8	1	1	read-error-wording
+json_9	1	1	read-error-wording
+json_10	1	1	read-error-wording
+json_11	1	1	read-error-wording
+json_12	1	1	display
+json_13	1	1	read-error-wording
+json_14	1	1	read-error-wording
+json_15	1	1	read-error-wording
+json_16	1	1	read-error-wording
+json_17	1	1	read-error-wording
+json_18	1	1	read-error-wording
+json_19	1	1	display
+json_20	1	1	identical
+json_21	0	0	identical
+bad_utf8	1	1	read-error-wording
+overlong	1	1	read-error-wording
+surr_utf8	1	1	read-error-wording
+valid4	0	0	identical
+log_append	1	1	identical
+slog_crlf	0	0	identical
+slog_cr	0	0	identical
+slog_u2028	0	0	identical
+slog_x85	0	0	identical
+slog_vt	0	0	identical
+slog_notrail	0	0	identical
+slog_trailblank	1	1	identical
+slog_failline	1	1	identical
+slog_emul	1	1	identical
+slog_empty	1	1	identical
+slog_lastnovirt	1	1	identical
+slog_bin	0	0	identical
+clog_nonative	1	1	identical
+clog_indent	1	1	identical
+log_missing	1	1	identical
+logdir_missing	1	1	identical
+wrongname	1	1	identical
+nosuffix	1	1	identical
+logisdir	1	1	identical
+logsymlink	0	0	identical
+explicit_logdir	0	0	identical
+explicit_bad_logdir	1	1	identical
+dotslash	0	0	identical
+relative	1	1	identical
+committed	1	1	identical
+emulated-receipt.json	1	1	identical
+forged-receipt.json	1	1	identical
+missing	1	1	read-error-wording
+dirreceipt	1	1	read-error-wording
+expo_0	0	0	identical
+expoexit_0	1	1	display
+expo_1	0	0	identical
+expoexit_1	1	1	display
+expo_2	0	0	identical
+expoexit_2	1	1	display
+expo_3	0	0	identical
+expoexit_3	1	1	display
+expo_4	1	1	identical
+expoexit_4	1	1	display
+expo_5	0	0	identical
+expoexit_5	1	1	display
+expo_6	1	1	identical
+expoexit_6	0	0	display
+expo_7	1	1	identical
+expoexit_7	0	0	display
+expo_8	1	1	identical
+expoexit_8	1	1	display
+expo_9	0	0	identical
+expoexit_9	1	1	display
+expo_10	0	0	identical
+expoexit_10	1	1	display
+expo_11	1	1	identical
+expoexit_11	1	1	display
+expo_12	1	1	identical
+expoexit_12	1	1	display
+expo_13	0	0	identical
+expoexit_13	1	1	display
+usage_0	2	2	identical
+usage_3	2	2	identical
diff --git a/evidence/native-x86-physical-checker/synthetic-fixture-accepted.log b/evidence/native-x86-physical-checker/synthetic-fixture-accepted.log
new file mode 100644
index 0000000..b92960f
--- /dev/null
+++ b/evidence/native-x86-physical-checker/synthetic-fixture-accepted.log
@@ -0,0 +1,55 @@
+PASS receipt is a JSON object
+PASS schema is 1
+PASS label is PHYSICAL (got 'PHYSICAL')
+PASS status is NATIVE_PASS (got 'NATIVE_PASS')
+PASS native_x86 is PASS (got 'PASS')
+PASS receipt nowhere says EMULATED
+PASS bridge_commit is a full sha
+PASS x86_omc_sha256 is the tools/native X86_PIN
+PASS baseline_omc_sha256 is the tools/native PIN
+PASS file name carries the x86 pin prefix
+PASS host.virtualization is none (got 'none')
+PASS host.hypervisor_flag is no (got 'no')
+PASS host.cpu_model is recorded
+PASS host.kernel is recorded
+PASS host.os is recorded
+PASS host.binfmt_qemu_aarch64 interpreter and version recorded
+PASS host.binfmt_qemu_aarch64 sha256 recorded
+PASS toolchains.gcc version recorded
+PASS toolchains.g++ version recorded
+PASS toolchains.rustc version recorded
+PASS toolchains.zig version recorded
+PASS toolchains.go version recorded
+PASS toolchains.python version recorded
+PASS four runbook commands recorded (got 4)
+PASS command 1 is the runbook command (OMEGA_NATIVE_X86_EXEC=native sh tests/native/x86/run.sh)
+PASS command 1 exit is 0 (got 0)
+PASS command 1 result names NATIVE-X86 NATIVE PASS
+PASS command 2 is the runbook command (OMEGA_NATIVE_X86_EXEC=native python3 tests/native/x86/test_build_failures.py)
+PASS command 2 exit is 0 (got 0)
+PASS command 2 result names NATIVE-X86 CONTROLS PASS
+PASS command 3 is the runbook command (OMEGA_NATIVE_X86_OMC=)
+PASS command 3 exit is 1 (got 1)
+PASS command 3 result names FAIL x86 compiler pin
+PASS command 4 is the runbook command (tools/native --target x86linux)
+PASS command 4 exit is 1 (got 1)
+PASS command 4 result names refused
+PASS log x86-native.log present in /dev/shm/hive/BridgeCompiler/W104X86/synthetic/native-x86-physical-be8c5130
+PASS log x86-native.log sha256 matches receipt
+PASS log x86-native-controls.log present in /dev/shm/hive/BridgeCompiler/W104X86/synthetic/native-x86-physical-be8c5130
+PASS log x86-native-controls.log sha256 matches receipt
+PASS log x86-native-wrongpin.log present in /dev/shm/hive/BridgeCompiler/W104X86/synthetic/native-x86-physical-be8c5130
+PASS log x86-native-wrongpin.log sha256 matches receipt
+PASS log x86-native-mut.log present in /dev/shm/hive/BridgeCompiler/W104X86/synthetic/native-x86-physical-be8c5130
+PASS log x86-native-mut.log sha256 matches receipt
+PASS suite log ends with the NATIVE PASS line
+PASS suite log never ran EMULATED
+PASS suite log shows virtualization=none
+PASS suite log shows hypervisor flag clear
+PASS suite log has no FAIL line
+PASS suite log cpu model matches receipt
+PASS suite log kernel matches receipt
+PASS controls log reports NATIVE CONTROLS PASS
+PASS wrong-pin log refuses the x86 compiler pin
+PASS mutated-compiler log is refused by tools/native
+PHYSICAL-RECEIPT ACCEPTED (format and log consistency only; not a run)
diff --git a/tests/native/x86/.crumb b/tests/native/x86/.crumb
index 06be425..02bb414 100644
--- a/tests/native/x86/.crumb
+++ b/tests/native/x86/.crumb
@@ -3,14 +3,14 @@
     "generated": {
       "children": [],
       "children_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
-      "compiled_at": "2026-11-06T13:03:52Z",
+      "compiled_at": "2026-11-07T08:03:31Z",
       "compiler": "crumb-compile/1",
-      "digest": "sha256:c05117a5ef1852f3d16215fce4a3585c78a5573baf14c0af8645ffe3043a3ad7",
+      "digest": "sha256:7e92c8db0109ce936e359caa8053f020410ab1e3069b385dba39fb9aae820653",
       "evidence_files": 0,
       "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
-      "files": 15,
-      "generated_at_commit": "3a655311e2900e6f39440b1efe3b5a5a2e0011e0",
-      "source_tree": "sha256:c08ec160e07e268e8e241abe9cccbd359ec1f05a4255c2ce28a09a5c71fa62dd"
+      "files": 60,
+      "generated_at_commit": "f072eef56f701f3c0ad9c5525e51ab671aada0d9",
+      "source_tree": "sha256:339bd44f442e341a4c78ae681f2ee6c091b759fbe67ba23bc4c423153fafa4e8"
     }
   },
   "layer": "tests",
diff --git a/tests/native/x86/check_physical_receipt.om b/tests/native/x86/check_physical_receipt.om
new file mode 100644
index 0000000..c219fcd
--- /dev/null
+++ b/tests/native/x86/check_physical_receipt.om
@@ -0,0 +1,2233 @@
+om2
+note check_physical_receipt.om: check a physical x86-64 receipt against docs/NATIVE-X86-PHYSICAL.md (DRA-104).
+note usage: check_physical_receipt RECEIPT.json [LOGDIR], run from the repository root (it reads tools/native).
+note LOGDIR defaults to the receipt path without its suffix (evidence/native-x86-physical-PIN8/).
+note It reads only the receipt, its four logs and tools/native; it runs no compiler, caller or emulator.
+note It refuses any receipt that is not a PHYSICAL NATIVE_PASS at the current x86 pin, including every
+note EMULATED or VIRTUAL receipt, and any receipt whose logs do not show the suite's own NATIVE PASS line
+note with virtualization=none and the hypervisor flag clear. Passing is a format and consistency check;
+note it is not itself a run. Output: one PASS or FAIL line per check, then PHYSICAL-RECEIPT ACCEPTED (exit 0)
+note or PHYSICAL-RECEIPT REJECTED (exit 1); a wrong argument count prints the usage line and exits 2.
+note This program replaces check_physical_receipt.py (removed); the differences are listed in
+note evidence/native-x86-physical-checker/README.md.
+const PO ulong 0
+const RL ulong 1
+const NN ulong 2
+const PU ulong 3
+const SO ulong 4
+const SL ulong 5
+const NF ulong 6
+const LN ulong 7
+const FL ulong 8
+const PL ulong 9
+const DL ulong 10
+const ABN ulong 11
+const NBN ulong 12
+const E1 ulong 13
+const E2 ulong 14
+const HX ulong 15
+const HB ulong 16
+const LS ulong 17
+const LE ulong 18
+const TL ulong 19
+const FLAST ulong 20
+const FEMU ulong 21
+const FVIRT ulong 22
+const FHYP ulong 23
+const FFAIL ulong 24
+const FCPU ulong 25
+const FKERN ulong 26
+const FCTRL ulong 27
+const FWRONG ulong 28
+const FMUT ulong 29
+const OPN ulong 30
+const BIGN ulong 31
+const NODES ulong 524288
+const RCAP ulong 900000
+const FCAP ulong 16777215
+const KNONE ulong 4294967295
+global gv ulong 64
+global rcp uchar 1048576
+global pool uchar 1048576
+global nty uchar 524288
+global npa long 524288
+global nko ulong 524288
+global nkl ulong 524288
+global nvo ulong 524288
+global nvl ulong 524288
+global nix ulong 524288
+global fch long 524288
+global nxs long 524288
+global lch long 524288
+global hfst ulong 524288
+global hlst ulong 524288
+global liv uchar 524288
+global htab ulong 1048576
+global fbuf uchar 16777216
+global hexo uchar 64
+global ln uchar 8388608
+global fl uchar 8388608
+global pth uchar 4096
+global ldr uchar 4096
+global ab uchar 4096
+global nb uchar 4096
+global opn uchar 8192
+global xp uchar 2097152
+global pinb uchar 128
+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
+
+note ---- output: one check line is built in ln, then written as PASS/FAIL ----
+text tpass "PASS "
+text tfail "FAIL "
+note a line longer than ln (only from a pathological receipt value) is cut there
+fn lnb b uchar to void
+n = get gv LN
+if ge n 8388608
+ret
+end
+put ln n b
+put gv LN add n 1
+end
+fn lnt t view uchar * to void
+for i ulong len t
+lnb get t i
+end
+end
+fn lnpool o ulong n ulong to void
+for i ulong n
+lnb get pool add o i
+end
+end
+fn lndec v ulong to void
+d = new uchar 24 0
+k = ulong 0
+x = v
+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
+lnb get d k
+end
+end
+fn lnhex v ulong nd ulong to void
+k = nd
+while gt k 0 bound 16
+k = sub k 1
+d = ulong and shr v mul k 4 15
+lnb get hexd d
+end
+end
+fn wln to void
+n = get gv LN
+o = ulong 0
+while lt o n bound 999999
+w = write 1 ln o sub n o
+if le w 0
+exit 3
+end
+o = add o ulong w
+end
+put gv LN 0
+end
+fn flkeep to void
+f = get gv FL
+if ge f 8388606
+ret
+end
+if gt f 0
+put fl f 59
+put fl add f 1 32
+f = add f 2
+end
+n = get gv LN
+if gt n sub 8388608 f
+n = sub 8388608 f
+end
+for i ulong n
+put fl add f i get ln i
+end
+put gv FL add f n
+end
+fn emit ok bool to void
+if ok
+w = write 1 tpass 0 5
+else
+w2 = write 1 tfail 0 5
+nf = get gv NF
+if lt nf 4
+flkeep
+end
+put gv NF add nf 1
+end
+lnb 10
+wln
+end
+fn chk t view uchar * ok bool to void
+lnt t
+emit ok
+end
+text trej "PHYSICAL-RECEIPT REJECTED ("
+text tfailed " failed: "
+text tacc "PHYSICAL-RECEIPT ACCEPTED (format and log consistency only; not a run)\n"
+fn finish to int
+nf = get gv NF
+if eq nf 0
+w = write 1 tacc 0 len tacc
+ret 0
+end
+put gv LN 0
+lnt trej
+lndec nf
+lnt tfailed
+f = get gv FL
+for i ulong f
+lnb get fl i
+end
+lnb 41
+lnb 10
+wln
+ret 1
+end
+
+note ---- JSON (RFC 8259 as Python json.loads accepts it, without NaN/Infinity) into a node table ----
+note node j: nty 1 object, 2 array, 3 string, 4 integer, 8 number with a fraction, 9 number with an
+note exponent, 5 true, 6 false, 7 null; npa parent (-1 for the top value); nko/nkl the member key in pool
+note (nkl KNONE for array elements, which carry their index in nix); nvo/nvl the decoded string or the
+note number's text in pool. Every pass of each loop consumes at least one receipt byte (at most RCAP).
+fn pk to long
+p = get gv PO
+if lt p get gv RL
+ret long get rcp p
+end
+ret -1
+end
+fn adv to void
+put gv PO add get gv PO 1
+end
+fn skipws to void
+go = true
+while go bound 999999
+c = pk
+go = or or eq c 32 eq c 9 or eq c 10 eq c 13
+if go
+adv
+end
+end
+end
+fn isdig c long to bool
+ret and ge c 48 le c 57
+end
+fn hexv c long to long
+if isdig c
+ret sub c 48
+end
+if and ge c 97 le c 102
+ret sub c 87
+end
+if and ge c 65 le c 70
+ret sub c 55
+end
+ret -1
+end
+fn hex4 to long
+v = long 0
+for i ulong 4
+h = hexv pk
+if lt h 0
+ret -1
+end
+v = add mul v 16 h
+adv
+end
+ret v
+end
+fn pput b ulong to void
+u = get gv PU
+put pool u uchar b
+put gv PU add u 1
+end
+fn putcp cp ulong to void
+if lt cp 128
+pput cp
+ret
+end
+if lt cp 2048
+pput or 192 shr cp 6
+pput or 128 and cp 63
+ret
+end
+if lt cp 65536
+pput or 224 shr cp 12
+pput or 128 and shr cp 6 63
+pput or 128 and cp 63
+ret
+end
+pput or 240 shr cp 18
+pput or 128 and shr cp 12 63
+pput or 128 and shr cp 6 63
+pput or 128 and cp 63
+end
+fn lowsur v long to long
+if or lt v 0xd800 ge v 0xdc00
+ret v
+end
+p = get gv PO
+if ne pk 92
+ret v
+end
+adv
+if ne pk 117
+put gv PO p
+ret v
+end
+adv
+w = hex4
+if and ge w 0xdc00 lt w 0xe000
+ret add 0x10000 add shl sub v 0xd800 10 sub w 0xdc00
+end
+put gv PO p
+ret v
+end
+fn pesc to bool
+c = pk
+if lt c 0
+ret false
+end
+adv
+if eq c 117
+v = hex4
+if lt v 0
+ret false
+end
+v2 = lowsur v
+putcp ulong v2
+ret true
+end
+m = long -1
+if or eq c 34 or eq c 92 eq c 47
+m = c
+end
+if eq c 98
+m = 8
+end
+if eq c 102
+m = 12
+end
+if eq c 110
+m = 10
+end
+if eq c 114
+m = 13
+end
+if eq c 116
+m = 9
+end
+if lt m 0
+ret false
+end
+pput ulong m
+ret true
+end
+fn pstr to bool
+if ne pk 34
+ret false
+end
+adv
+put gv SO get gv PU
+go = true
+while go bound 999999
+c = pk
+if lt c 32
+ret false
+end
+adv
+if eq c 34
+go = false
+else
+if eq c 92
+ok = pesc
+if not ok
+ret false
+end
+else
+pput ulong c
+end
+end
+end
+put gv SL sub get gv PU get gv SO
+ret true
+end
+fn digs to ulong
+k = ulong 0
+while isdig pk bound 999999
+adv
+k = add k 1
+end
+ret k
+end
+fn pnum to long
+s = get gv PO
+if eq pk 45
+adv
+end
+c = pk
+if eq c 48
+adv
+else
+if not isdig c
+ret -1
+end
+d = digs
+end
+ty = long 4
+if eq pk 46
+adv
+if eq digs 0
+ret -1
+end
+ty = 8
+end
+c = pk
+if or eq c 101 eq c 69
+adv
+c = pk
+if or eq c 43 eq c 45
+adv
+end
+if eq digs 0
+ret -1
+end
+ty = 9
+end
+put gv SO get gv PU
+e = get gv PO
+while lt s e bound 999999
+pput ulong get rcp s
+s = add s 1
+end
+put gv SL sub get gv PU get gv SO
+ret ty
+end
+fn plit t view uchar * to bool
+for i ulong len t
+if ne pk long get t i
+ret false
+end
+adv
+end
+ret true
+end
+note ---- object members: a hash of (parent, key) finds the first member with that key (hfst) and the
+note last one (hlst of the first), so lookups and Python dict order cost one probe, not a scan ----
+fn hpool p long o ulong k ulong to ulong
+h = ulong 0xcbf29ce484222325
+h = xor h ulong add p 1
+h = mul h 0x100000001b3
+for i ulong k
+h = xor h ulong get pool add o i
+h = mul h 0x100000001b3
+end
+r = and h 1048575
+ret r
+end
+fn htext p long t view uchar * to ulong
+h = ulong 0xcbf29ce484222325
+h = xor h ulong add p 1
+h = mul h 0x100000001b3
+for i ulong len t
+h = xor h ulong get t i
+h = mul h 0x100000001b3
+end
+r = and h 1048575
+ret r
+end
+fn sibeq a ulong b ulong to bool
+if ne get nkl a get nkl b
+ret false
+end
+oa = get nko a
+ob = get nko b
+k = get nkl a
+for i ulong k
+x = get pool add oa i
+if ne x get pool add ob i
+ret false
+end
+end
+ret true
+end
+note at most NODES entries in 1048576 slots, so a probe always reaches an empty slot
+fn hput n ulong to void
+p = get npa n
+s = hpool p get nko n get nkl n
+go = true
+while go bound 999999
+v = get htab s
+if eq v 0
+put htab s add n 1
+put hfst n n
+put hlst n n
+ret
+end
+m = sub v 1
+if eq get npa m p
+if sibeq m n
+put hfst n m
+put hlst m n
+ret
+end
+end
+s = and add s 1 1048575
+end
+end
+fn keyeq j ulong t view uchar * to bool
+if ne get nkl j len t
+ret false
+end
+o = get nko j
+for i ulong len t
+if ne get pool add o i get t i
+ret false
+end
+end
+ret true
+end
+fn dget par long t view uchar * to long
+if lt par 0
+ret -1
+end
+if ne get nty par 1
+ret -1
+end
+s = htext par t
+go = true
+while go bound 999999
+v = get htab s
+if eq v 0
+ret -1
+end
+m = sub v 1
+if eq get npa m par
+if keyeq m t
+ret long get hlst m
+end
+end
+s = and add s 1 1048575
+end
+ret -1
+end
+fn newnd ty uchar par long ko ulong kl ulong ix ulong to long
+n = get gv NN
+if ge n NODES
+ret -1
+end
+put nty n ty
+put npa n par
+put nko n ko
+put nkl n kl
+put nix n ix
+put nvo n get gv SO
+put nvl n get gv SL
+put fch n -1
+put nxs n -1
+put lch n -1
+if ge par 0
+l = get lch par
+if lt l 0
+put fch par long n
+else
+put nxs l long n
+end
+put lch par long n
+end
+if ne kl KNONE
+hput n
+end
+put gv NN add n 1
+ret long n
+end
+text ttrue "true"
+text tfalse "false"
+text tnull "null"
+fn pobj par long ko ulong kl ulong ix ulong dep ulong to bool
+n = newnd 1 par ko kl ix
+if lt n 0
+ret false
+end
+adv
+skipws
+if eq pk 125
+adv
+ret true
+end
+go = true
+while go bound 999999
+skipws
+ok = pstr
+if not ok
+ret false
+end
+k0 = get gv SO
+k1 = get gv SL
+skipws
+if ne pk 58
+ret false
+end
+adv
+ok2 = pval n k0 k1 0 add dep 1
+if not ok2
+ret false
+end
+skipws
+c = pk
+adv
+if eq c 125
+go = false
+else
+if ne c 44
+ret false
+end
+end
+end
+ret true
+end
+fn parr par long ko ulong kl ulong ix ulong dep ulong to bool
+n = newnd 2 par ko kl ix
+if lt n 0
+ret false
+end
+adv
+skipws
+if eq pk 93
+adv
+ret true
+end
+i = ulong 0
+go = true
+while go bound 999999
+ok = pval n 0 KNONE i add dep 1
+if not ok
+ret false
+end
+i = add i 1
+skipws
+c = pk
+adv
+if eq c 93
+go = false
+else
+if ne c 44
+ret false
+end
+end
+end
+ret true
+end
+fn pscal par long ko ulong kl ulong ix ulong to bool
+c = pk
+ty = long 0
+if eq c 34
+ok = pstr
+if not ok
+ret false
+end
+ty = 3
+end
+if eq c 116
+if not plit ttrue
+ret false
+end
+ty = 5
+end
+if eq c 102
+if not plit tfalse
+ret false
+end
+ty = 6
+end
+if eq c 110
+if not plit tnull
+ret false
+end
+ty = 7
+end
+if or eq c 45 isdig c
+ty = pnum
+end
+if le ty 0
+ret false
+end
+n = newnd uchar ty par ko kl ix
+ret ge n 0
+end
+fn pval par long ko ulong kl ulong ix ulong dep ulong to bool
+if gt dep 900
+ret false
+end
+skipws
+c = pk
+if eq c 123
+ret pobj par ko kl ix dep
+end
+if eq c 91
+ret parr par ko kl ix dep
+end
+ret pscal par ko kl ix
+end
+
+note ---- receipt bytes must be UTF-8 (Python read_text then json.loads) ----
+fn cont p ulong lo ulong hi ulong to bool
+if ge p get gv RL
+ret false
+end
+b = ulong get rcp p
+ret and ge b lo le b hi
+end
+fn u8len p ulong to ulong
+b = ulong get rcp p
+if lt b 0x80
+ret 1
+end
+if and ge b 0xc2 le b 0xdf
+if cont add p 1 0x80 0xbf
+ret 2
+end
+ret 0
+end
+lo = ulong 0x80
+hi = ulong 0xbf
+if eq b 0xe0
+lo = 0xa0
+end
+if eq b 0xed
+hi = 0x9f
+end
+if and ge b 0xe0 le b 0xef
+if and cont add p 1 lo hi cont add p 2 0x80 0xbf
+ret 3
+end
+ret 0
+end
+if eq b 0xf0
+lo = 0x90
+end
+if eq b 0xf4
+hi = 0x8f
+end
+if and ge b 0xf0 le b 0xf4
+if and cont add p 1 lo hi and cont add p 2 0x80 0xbf cont add p 3 0x80 0xbf
+ret 4
+end
+end
+ret 0
+end
+fn utf8ok to long
+p = ulong 0
+n = get gv RL
+while lt p n bound 999999
+k = u8len p
+if eq k 0
+ret long p
+end
+p = add p k
+end
+ret -1
+end
+note ---- node lookups (a repeated key: the last one wins, as in a Python dict) ----
+fn isobj n long to bool
+if lt n 0
+ret false
+end
+ret eq get nty n 1
+end
+fn nch par long to ulong
+if lt par 0
+ret 0
+end
+if ne get nty par 2
+ret 0
+end
+c = ulong 0
+j = get fch par
+while ge j 0 bound 999999
+c = add c 1
+j = get nxs j
+end
+ret c
+end
+fn aget par long i ulong to long
+if lt par 0
+ret -1
+end
+if ne get nty par 2
+ret -1
+end
+j = get fch par
+while ge j 0 bound 999999
+if eq get nix j i
+ret j
+end
+j = get nxs j
+end
+ret -1
+end
+note ---- value tests ----
+fn peq o ulong n ulong t view uchar * to bool
+if ne n len t
+ret false
+end
+for i ulong n
+if ne get pool add o i get t i
+ret false
+end
+end
+ret true
+end
+fn vstr n long t view uchar * to bool
+if lt n 0
+ret false
+end
+if ne get nty n 3
+ret false
+end
+ret peq get nvo n get nvl n t
+end
+fn psub o ulong n ulong t view uchar * to bool
+m = len t
+if lt n m
+ret false
+end
+s = ulong 0
+while le s sub n m bound 999999
+if peq add o s m t
+ret true
+end
+s = add s 1
+end
+ret false
+end
+fn vsub n long t view uchar * to bool
+if lt n 0
+ret false
+end
+if ne get nty n 3
+ret false
+end
+ret psub get nvo n get nvl n t
+end
+note value == d for d 0 or 1 with exact decimal arithmetic: true is 1, false is 0, and a number is
+note compared by its digits and exponent (-0, 1.0, 10e-1, 0e5 all count). Python compares the binary64
+note rounding instead, so a number like 1.00000000000000001 that only rounds to 1 is refused here.
+fn numcls n long to ulong
+o = get nvo n
+e = add o get nvl n
+if eq get pool o 45
+o = add o 1
+end
+ipe = e
+st = ulong 0
+nz = ulong 0
+dig = ulong 0
+pz = ulong 0
+ex = long 0
+while lt o e bound 999999
+c = ulong get pool o
+if or eq c 46 or eq c 101 eq c 69
+if eq st 0
+ipe = o
+end
+st = 1
+if ne c 46
+st = 2
+end
+else
+if eq c 45
+st = 3
+else
+if lt st 2
+if and ne c 43 ne c 48
+nz = add nz 1
+dig = c
+pz = o
+end
+else
+if and ne c 43 lt ex 100000000
+ex = add mul ex 10 long sub c 48
+end
+end
+end
+end
+o = add o 1
+end
+if eq nz 0
+ret 0
+end
+s0 = get nvo n
+if eq get pool s0 45
+ret 2
+end
+if or ne nz 1 ne dig 49
+ret 2
+end
+if eq st 3
+ex = neg ex
+end
+r = add long ipe ex
+if lt pz ipe
+r = sub r 1
+end
+if eq long pz r
+ret 1
+end
+ret 2
+end
+fn numis n long d ulong to bool
+if lt n 0
+ret false
+end
+t = get nty n
+if eq t 5
+ret eq d 1
+end
+if eq t 6
+ret eq d 0
+end
+if and and ne t 4 ne t 8 ne t 9
+ret false
+end
+ret eq numcls n d
+end
+fn cplen o ulong to ulong
+b = get pool o
+if lt b 0x80
+ret 1
+end
+if lt b 0xe0
+ret 2
+end
+if lt b 0xf0
+ret 3
+end
+ret 4
+end
+fn cpat o ulong to ulong
+b = ulong get pool o
+k = cplen o
+if eq k 1
+ret b
+end
+v = ulong and b 0x1f
+if eq k 3
+v = and b 0x0f
+end
+if eq k 4
+v = and b 0x07
+end
+for i ulong sub k 1
+v = or shl v 6 and ulong get pool add o add i 1 0x3f
+end
+ret v
+end
+fn isspc cp ulong to bool
+if or and ge cp 9 le cp 13 and ge cp 28 le cp 32
+ret true
+end
+if or or eq cp 0x85 eq cp 0xa0 or eq cp 0x1680 and ge cp 0x2000 le cp 0x200a
+ret true
+end
+ret or or eq cp 0x2028 eq cp 0x2029 or or eq cp 0x202f eq cp 0x205f eq cp 0x3000
+end
+note text(v): a string that is not empty after Python str.strip()
+fn vtext n long to bool
+if lt n 0
+ret false
+end
+if ne get nty n 3
+ret false
+end
+o = get nvo n
+e = add o get nvl n
+while lt o e bound 999999
+if not isspc cpat o
+ret true
+end
+o = add o cplen o
+end
+ret false
+end
+fn ishexs n long k ulong to bool
+if lt n 0
+ret false
+end
+if ne get nty n 3
+ret false
+end
+if ne get nvl n k
+ret false
+end
+o = get nvo n
+for i ulong k
+c = long get pool add o i
+if not or isdig c and ge c 97 le c 102
+ret false
+end
+end
+ret true
+end
+
+note ---- Python repr() and str() of a JSON value, appended to the check line ----
+text tnone "None"
+text ttru "True"
+text tfls "False"
+fn npr cp ulong to bool
+if or le cp 0xa0 eq cp 0xad
+ret true
+end
+if or and ge cp 0xd800 le cp 0xf8ff or eq cp 0x1680 and ge cp 0x2000 le cp 0x200f
+ret true
+end
+if or and ge cp 0x2028 le cp 0x202f or eq cp 0x205f and ge cp 0x2060 le cp 0x206f
+ret true
+end
+ret or or eq cp 0x3000 eq cp 0xfeff and ge cp 0xfff9 le cp 0xfffb
+end
+fn rpcp cp ulong q ulong o ulong k ulong to void
+if or eq cp q eq cp 92
+lnb 92
+lnb uchar cp
+ret
+end
+if eq cp 9
+lnb 92
+lnb 116
+ret
+end
+if eq cp 10
+lnb 92
+lnb 110
+ret
+end
+if eq cp 13
+lnb 92
+lnb 114
+ret
+end
+if and ge cp 32 lt cp 127
+lnb uchar cp
+ret
+end
+if and lt cp 128 or lt cp 32 eq cp 127
+lnb 92
+lnb 120
+lnhex cp 2
+ret
+end
+if npr cp
+lnb 92
+if le cp 0xff
+lnb 120
+lnhex cp 2
+else
+lnb 117
+lnhex cp 4
+end
+ret
+end
+lnpool o k
+end
+fn rpstr o ulong n ulong to void
+sq = false
+dq = false
+for i ulong n
+b = get pool add o i
+if eq b 39
+sq = true
+end
+if eq b 34
+dq = true
+end
+end
+q = ulong 39
+if and sq not dq
+q = 34
+end
+lnb uchar q
+i = ulong 0
+while lt i n bound 999999
+p = add o i
+k = cplen p
+rpcp cpat p q p k
+i = add i k
+end
+lnb uchar q
+end
+fn rpnum n long to void
+o = get nvo n
+k = get nvl n
+if eq get nty n 4
+if eq k 2
+if and eq get pool o 45 eq get pool add o 1 48
+lnb 48
+ret
+end
+end
+end
+lnpool o k
+end
+fn rpobj n long to void
+lnb 123
+c = ulong 0
+j = get fch n
+while ge j 0 bound 999999
+u = ulong j
+if eq get hfst u u
+if gt c 0
+lnb 44
+lnb 32
+end
+rpstr get nko u get nkl u
+lnb 58
+lnb 32
+prep long get hlst u
+c = add c 1
+end
+j = get nxs u
+end
+lnb 125
+end
+fn rparr n long to void
+lnb 91
+j = get fch n
+while ge j 0 bound 999999
+if ne j get fch n
+lnb 44
+lnb 32
+end
+prep j
+j = get nxs j
+end
+lnb 93
+end
+fn prep n long to void
+if lt n 0
+lnt tnone
+ret
+end
+t = get nty n
+if eq t 3
+rpstr get nvo n get nvl n
+ret
+end
+if eq t 5
+lnt ttru
+ret
+end
+if eq t 6
+lnt tfls
+ret
+end
+if eq t 7
+lnt tnone
+ret
+end
+if eq t 1
+rpobj n
+ret
+end
+if eq t 2
+rparr n
+ret
+end
+rpnum n
+end
+fn pstrv n long to void
+if ge n 0
+if eq get nty n 3
+lnpool get nvo n get nvl n
+ret
+end
+end
+prep n
+end
+note the receipt (its live members only, as json.dumps sees the dict) names EMULATED anywhere
+text temu "EMULATED"
+note live: the member json.dumps would see, i.e. no later sibling has its key and its parent is live;
+note parents come before children in the node table, so one forward pass fills liv
+fn sayemu to bool
+k = get gv NN
+for j ulong k
+p = get npa j
+ok = true
+if ge p 0
+ok = eq get liv p 1
+end
+if ne get nkl j KNONE
+if ne get hlst get hfst j j
+ok = false
+end
+end
+put liv j 0
+if ok
+put liv j 1
+if ne get nkl j KNONE
+if psub get nko j get nkl j temu
+ret true
+end
+end
+if eq get nty j 3
+if psub get nvo j get nvl j temu
+ret true
+end
+end
+end
+end
+ret false
+end
+
+note ---- paths: Python pathlib display (str(Path(arg))) and Path.with_suffix("") ----
+fn nbb b uchar to void
+k = get gv NBN
+put nb k b
+put gv NBN add k 1
+end
+note normalise ab[0..ABN) into nb: repeated slashes and "." parts dropped, "//" kept at the start
+fn normp to void
+n = get gv ABN
+put gv NBN 0
+pre = ulong 0
+if gt n 0
+if eq get ab 0 47
+nbb 47
+pre = 1
+if gt n 1
+if eq get ab 1 47
+if or eq n 2 ne get ab 2 47
+nbb 47
+pre = 2
+end
+end
+end
+end
+end
+i = ulong 0
+while lt i n bound 4097
+if eq get ab i 47
+i = add i 1
+continue
+end
+j = i
+while lt j n bound 4097
+if eq get ab j 47
+break
+end
+j = add j 1
+end
+dot = and eq sub j i 1 eq get ab i 46
+if not dot
+if gt get gv NBN pre
+nbb 47
+end
+for k ulong sub j i
+nbb get ab add i k
+end
+end
+i = j
+end
+if eq get gv NBN 0
+nbb 46
+end
+end
+fn rdarg i ulong to void
+r = argread i ab 0 4096
+if lt r 0
+exit 2
+end
+put gv ABN ulong r
+normp
+end
+note start of the last path part of nb (the name); equal to NBN when the name is empty
+fn namest to ulong
+k = get gv NBN
+if and eq k 1 eq get nb 0 46
+ret 1
+end
+i = k
+while gt i 0 bound 4097
+if eq get nb sub i 1 47
+ret i
+end
+i = sub i 1
+end
+ret 0
+end
+fn topth to void
+k = get gv NBN
+for i ulong k
+put pth i get nb i
+end
+put gv PL k
+end
+fn toldr k ulong to void
+for i ulong k
+put ldr i get nb i
+end
+put gv DL k
+end
+note logdir default: the receipt path without its suffix (Python Path.suffix: 0 < rfind(".") < len-1)
+fn dfltdir to void
+k = get gv NBN
+s = namest
+c = k
+i = k
+while gt i s bound 4097
+i = sub i 1
+if eq get nb i 46
+c = i
+break
+end
+end
+if or eq c k or eq c s eq c sub k 1
+c = k
+end
+toldr c
+end
+note ---- tools/native pins: the first line exactly KEY= plus 64 lowercase hex ----
+text tpin "PIN="
+text tx86 "X86_PIN="
+fn fhex p ulong to bool
+c = long get fbuf p
+ret or isdig c and ge c 97 le c 102
+end
+fn pinln s ulong e ulong t view uchar * to bool
+k = len t
+if ne sub e s add k 64
+ret false
+end
+for i ulong k
+if ne get fbuf add s i get t i
+ret false
+end
+end
+for i ulong 64
+if not fhex add s add k i
+ret false
+end
+end
+ret true
+end
+text tnat "tools/native"
+fn rdfile fd int to long
+n = ulong 0
+go = true
+while go bound 999999
+r = read fd fbuf n sub FCAP n
+if lt r 0
+ret r
+end
+if eq r 0
+go = false
+else
+n = add n ulong r
+if eq n FCAP
+r2 = read fd fbuf n 1
+if ne r2 0
+ret -27
+end
+go = false
+end
+end
+end
+ret long n
+end
+fn natpins to void
+put gv HX 0
+put gv HB 0
+fd = fopen tnat 0 len tnat 0 0
+if lt fd 0
+ret
+end
+n = rdfile int fd
+c = fclose int fd
+if lt n 0
+ret
+end
+s = ulong 0
+while lt s ulong n bound 999999
+e = s
+while lt e ulong n bound 999999
+if eq get fbuf e 10
+break
+end
+e = add e 1
+end
+if and eq get gv HX 0 pinln s e tx86
+put gv HX 1
+for i ulong 64
+put pinb i get fbuf add s add 8 i
+end
+end
+if and eq get gv HB 0 pinln s e tpin
+put gv HB 1
+for i ulong 64
+put pinb add 64 i get fbuf add s add 4 i
+end
+end
+s = add e 1
+end
+end
+fn pineq n long base ulong to bool
+if lt n 0
+ret false
+end
+if ne get nty n 3
+ret false
+end
+if ne get nvl n 64
+ret false
+end
+o = get nvo n
+for i ulong 64
+if ne get pool add o i get pinb add base i
+ret false
+end
+end
+ret true
+end
+text tfpre "native-x86-physical-"
+text tjson ".json"
+fn fnameok to bool
+k = get gv PL
+s = k
+while gt s 0 bound 4097
+if eq get pth sub s 1 47
+break
+end
+s = sub s 1
+end
+if eq k 1
+if eq get pth 0 46
+s = 1
+end
+end
+if ne sub k s 33
+ret false
+end
+for i ulong 20
+if ne get pth add s i get tfpre i
+ret false
+end
+end
+for i ulong 8
+if ne get pth add s add 20 i get pinb i
+ret false
+end
+end
+for i ulong 5
+if ne get pth add s add 28 i get tjson i
+ret false
+end
+end
+ret true
+end
+
+note ---- logs: open LOGDIR/NAME, require a regular file (Path.is_file), read it into fbuf ----
+text tlog0 "x86-native.log"
+text tlog1 "x86-native-controls.log"
+text tlog2 "x86-native-wrongpin.log"
+text tlog3 "x86-native-mut.log"
+fn opb b uchar to void
+k = get gv OPN
+put opn k b
+put gv OPN add k 1
+end
+fn opnam t view uchar * to void
+put gv OPN 0
+k = get gv DL
+for i ulong k
+opb get ldr i
+end
+opb 47
+for i ulong len t
+opb get t i
+end
+end
+note returns the byte count, -1 when the path is not a regular file, -2 when larger than FCAP
+fn rdlog t view uchar * to long
+opnam t
+fd = fopen opn 0 get gv OPN 2048 0
+if lt fd 0
+ret -1
+end
+st = new uchar 128 0
+r = fstat int fd st 0 128
+m = or uint get st 16 shl uint get st 17 8
+if or lt r 0 ne and m 0xf000 0x8000
+c = fclose int fd
+ret -1
+end
+n = rdfile int fd
+c2 = fclose int fd
+if lt n 0
+ret -2
+end
+ret n
+end
+note ---- line scan with Python str.splitlines() terminators ----
+fn lend s ulong n ulong to ulong
+e = s
+while lt e n bound 999999
+b = get fbuf e
+put gv TL 1
+if or eq b 10 eq b 13
+if eq b 13
+if lt add e 1 n
+if eq get fbuf add e 1 10
+put gv TL 2
+end
+end
+end
+ret e
+end
+if or or eq b 11 eq b 12 and ge b 28 le b 30
+ret e
+end
+if and eq b 0xc2 lt add e 1 n
+if eq get fbuf add e 1 0x85
+put gv TL 2
+ret e
+end
+end
+if and eq b 0xe2 lt add e 2 n
+if eq get fbuf add e 1 0x80
+c = get fbuf add e 2
+if or eq c 0xa8 eq c 0xa9
+put gv TL 3
+ret e
+end
+end
+end
+e = add e 1
+end
+put gv TL 0
+ret n
+end
+fn fpre s ulong e ulong t view uchar * to bool
+k = len t
+if lt sub e s k
+ret false
+end
+for i ulong k
+if ne get fbuf add s i get t i
+ret false
+end
+end
+ret true
+end
+fn feq s ulong e ulong t view uchar * to bool
+if ne sub e s len t
+ret false
+end
+ret fpre s e t
+end
+fn xeq s ulong e ulong o ulong k ulong to bool
+if ne sub e s k
+ret false
+end
+for i ulong k
+if ne get fbuf add s i get xp add o i
+ret false
+end
+end
+ret true
+end
+note substring search of t in fbuf[s..e)
+fn fsubc a ulong b ulong e ulong t view uchar * to bool
+p = a
+while lt p b bound 999999
+if fpre p e t
+ret true
+end
+p = add p 1
+end
+ret false
+end
+fn fsub s ulong e ulong t view uchar * to bool
+m = len t
+if lt sub e s m
+ret false
+end
+lst = add sub e m 1
+a = s
+while lt a lst bound 999999
+b = add a 900000
+if gt b lst
+b = lst
+end
+if fsubc a b e t
+ret true
+end
+a = b
+end
+ret false
+end
+text tvirt "INFO virtualization=none"
+text thyp "INFO cpu hypervisor flag=no"
+text tfln "FAIL "
+text tctl "NATIVE-X86 CONTROLS PASS (NATIVE"
+text tnpass "NATIVE-X86 NATIVE PASS "
+text tvnone "virtualization=none"
+fn sline s ulong e ulong to void
+put gv LS s
+put gv LE e
+if feq s e tvirt
+put gv FVIRT 1
+end
+if feq s e thyp
+put gv FHYP 1
+end
+if fpre s e tfln
+put gv FFAIL 1
+end
+if xeq s e 0 get gv E1
+put gv FCPU 1
+end
+if xeq s e 1048576 get gv E2
+put gv FKERN 1
+end
+end
+fn kline s ulong e ulong kind ulong to void
+if eq kind 0
+sline s e
+else
+if fpre s e tctl
+put gv FCTRL 1
+end
+end
+end
+note one pass over at most 900000 lines from s; returns where it stopped
+fn lchunk s ulong n ulong kind ulong to ulong
+p = s
+c = ulong 0
+while and lt p n lt c 900000 bound 999999
+e = lend p n
+kline p e kind
+p = add e get gv TL
+if eq get gv TL 0
+p = n
+end
+c = add c 1
+end
+ret p
+end
+fn lscan n ulong kind ulong to void
+p = ulong 0
+while lt p n bound 999999
+p = lchunk p n kind
+end
+end
+
+note ---- the checks, in the order and wording of the replaced Python checker ----
+text tusage "usage: check_physical_receipt RECEIPT.json [LOGDIR]   (run from the repository root)\n"
+text trdj "receipt is readable JSON ("
+text terrno "open or read failed: errno "
+text tbig "larger than 900000 bytes"
+text tutf "not UTF-8 at byte "
+text tbad "invalid JSON near byte "
+text tobj "receipt is a JSON object"
+fn rdfail t view uchar * v ulong hasv bool to int
+put gv LN 0
+lnt trdj
+lnt t
+if hasv
+lndec v
+end
+lnb 41
+emit false
+ret finish
+end
+note returns -1 when the receipt parsed (node 0 is the top value), else the finish status
+fn rdrcp to int
+fd = fopen pth 0 get gv PL 0 0
+if lt fd 0
+ret rdfail terrno ulong neg fd true
+end
+n = ulong 0
+go = true
+while go bound 999999
+r = read int fd rcp n sub 1048576 n
+if lt r 0
+c = fclose int fd
+ret rdfail terrno ulong neg r true
+end
+if eq r 0
+go = false
+end
+n = add n ulong r
+if gt n RCAP
+c2 = fclose int fd
+ret rdfail tbig 0 false
+end
+end
+c3 = fclose int fd
+put gv RL n
+u = utf8ok
+if ge u 0
+ret rdfail tutf ulong u true
+end
+put gv PO 0
+ok = pval -1 0 KNONE 0 0
+skipws
+if or not ok ne get gv PO n
+ret rdfail tbad get gv PO true
+end
+ret -1
+end
+text tsch "schema is 1"
+text tsch2 "schema"
+text tlab "label is PHYSICAL (got "
+text tlabk "label"
+text tphys "PHYSICAL"
+text tsta "status is NATIVE_PASS (got "
+text tstak "status"
+text tnp "NATIVE_PASS"
+text tnx "native_x86 is PASS (got "
+text tnxk "native_x86"
+text tpassv "PASS"
+text tnoemu "receipt nowhere says EMULATED"
+text tbc "bridge_commit is a full sha"
+text tbck "bridge_commit"
+text txo "x86_omc_sha256 is the tools/native X86_PIN"
+text txok "x86_omc_sha256"
+text tbo "baseline_omc_sha256 is the tools/native PIN"
+text tbok "baseline_omc_sha256"
+text tfn "file name carries the x86 pin prefix"
+text tgotc ")"
+fn gotchk t view uchar * v long want view uchar * to void
+put gv LN 0
+lnt t
+prep v
+lnb 41
+emit vstr v want
+end
+fn chktop to void
+r = long 0
+put gv LN 0
+chk tsch numis dget r tsch2 1
+gotchk tlab dget r tlabk tphys
+gotchk tsta dget r tstak tnp
+gotchk tnx dget r tnxk tpassv
+chk tnoemu not sayemu
+chk tbc ishexs dget r tbck 40
+hx = eq get gv HX 1
+chk txo and hx pineq dget r txok 0
+chk tbo and eq get gv HB 1 pineq dget r tbok 64
+chk tfn and hx fnameok
+end
+text thost "host"
+text tvirtk "virtualization"
+text thv "host.virtualization is none (got "
+text tnone2 "none"
+text thf "host.hypervisor_flag is no (got "
+text thfk "hypervisor_flag"
+text tno "no"
+text tcpu "host.cpu_model is recorded"
+text tcpuk "cpu_model"
+text tker "host.kernel is recorded"
+text tkerk "kernel"
+text tos "host.os is recorded"
+text tosk "os"
+text tbin "binfmt_qemu_aarch64"
+text tbiv "host.binfmt_qemu_aarch64 interpreter and version recorded"
+text tbis "host.binfmt_qemu_aarch64 sha256 recorded"
+text tinter "interpreter"
+text tver "version"
+text tsha "sha256"
+fn objor n long to long
+if isobj n
+ret n
+end
+ret -1
+end
+fn chkhost to long
+h = objor dget long 0 thost
+gotchk thv dget h tvirtk tnone2
+gotchk thf dget h thfk tno
+chk tcpu vtext dget h tcpuk
+chk tker vtext dget h tkerk
+chk tos vtext dget h tosk
+b = objor dget h tbin
+chk tbiv and vtext dget b tinter vtext dget b tver
+chk tbis ishexs dget b tsha 64
+ret h
+end
+text ttools "toolchains"
+text ttc "toolchains."
+text tvrec " version recorded"
+text tgcc "gcc"
+text tgpp "g++"
+text trustc "rustc"
+text tzig "zig"
+text tgo "go"
+text tpy "python"
+fn chktc t long name view uchar * to void
+put gv LN 0
+lnt ttc
+lnt name
+lnt tvrec
+emit vtext dget t name
+end
+fn chktools to void
+t = objor dget long 0 ttools
+chktc t tgcc
+chktc t tgpp
+chktc t trustc
+chktc t tzig
+chktc t tgo
+chktc t tpy
+end
+text tcmds "commands"
+text tfour "four runbook commands recorded (got "
+text tcmd "command "
+text tisrb " is the runbook command ("
+text texit " exit is "
+text tgot " (got "
+text tresn " result names "
+text tcmdk "command"
+text texitk "exit"
+text tresk "result"
+text tn1 "OMEGA_NATIVE_X86_EXEC=native sh tests/native/x86/run.sh"
+text tn2 "OMEGA_NATIVE_X86_EXEC=native python3 tests/native/x86/test_build_failures.py"
+text tn3 "OMEGA_NATIVE_X86_OMC="
+text tn4 "tools/native --target x86linux"
+text tr1 "NATIVE-X86 NATIVE PASS"
+text tr2 "NATIVE-X86 CONTROLS PASS"
+text tr3 "FAIL x86 compiler pin"
+text tr4 "refused"
+fn chkcmd c long i ulong nd view uchar * res view uchar * to void
+code = ulong 0
+if ge i 2
+code = 1
+end
+e = objor aget c i
+put gv LN 0
+lnt tcmd
+lndec add i 1
+lnt tisrb
+lnt nd
+lnb 41
+emit vsub dget e tcmdk nd
+put gv LN 0
+lnt tcmd
+lndec add i 1
+lnt texit
+lndec code
+lnt tgot
+x = dget e texitk
+prep x
+lnb 41
+emit numis x code
+put gv LN 0
+lnt tcmd
+lndec add i 1
+lnt tresn
+lnt res
+emit vsub dget e tresk res
+end
+fn chkcmds to void
+c = dget long 0 tcmds
+if lt c 0
+c = -1
+else
+if ne get nty c 2
+c = -1
+end
+end
+k = nch c
+put gv LN 0
+lnt tfour
+lndec k
+lnb 41
+emit eq k 4
+chkcmd c 0 tn1 tr1
+chkcmd c 1 tn2 tr2
+chkcmd c 2 tn3 tr3
+chkcmd c 3 tn4 tr4
+end
+text tlg "log "
+text tpres " present in "
+text tsham " sha256 matches receipt"
+text tlogs "logs_sha256"
+fn chklog h long t view uchar * to long
+put gv LN 0
+lnt tlg
+lnt t
+lnt tpres
+k = get gv DL
+for i ulong k
+lnb get ldr i
+end
+n = rdlog t
+emit ne n -1
+if eq n -1
+ret -1
+end
+ok = false
+if ge n 0
+shafbuf ulong n
+x = dget h t
+if ge x 0
+if eq get nty x 3
+if eq get nvl x 64
+ok = true
+o = get nvo x
+for i ulong 64
+if ne get pool add o i get hexo i
+ok = false
+end
+end
+end
+end
+end
+end
+put gv LN 0
+lnt tlg
+lnt t
+lnt tsham
+emit ok
+if lt n 0
+ret 0
+end
+ret n
+end
+note expected suite lines "INFO cpu model=" + str(host.cpu_model) and "INFO kernel=" + str(host.kernel)
+text tem1 "INFO cpu model="
+text tem2 "INFO kernel="
+fn mkexp h long to void
+put gv LN 0
+lnt tem1
+pstrv dget h tcpuk
+k = get gv LN
+for i ulong k
+put xp i get ln i
+end
+put gv E1 k
+put gv LN 0
+lnt tem2
+pstrv dget h tkerk
+k2 = get gv LN
+for i ulong k2
+put xp add 1048576 i get ln i
+end
+put gv E2 k2
+put gv LN 0
+end
+text tsl1 "suite log ends with the NATIVE PASS line"
+text tsl2 "suite log never ran EMULATED"
+text tsl3 "suite log shows virtualization=none"
+text tsl4 "suite log shows hypervisor flag clear"
+text tsl5 "suite log has no FAIL line"
+text tsl6 "suite log cpu model matches receipt"
+text tsl7 "suite log kernel matches receipt"
+text tcl "controls log reports NATIVE CONTROLS PASS"
+text twp "wrong-pin log refuses the x86 compiler pin"
+text tmu "mutated-compiler log is refused by tools/native"
+text twpn "NATIVE-X86 FAIL x86 compiler pin"
+text tmun "tools/native: x86 omc sha256"
+fn fg i ulong to bool
+ret eq get gv i 1
+end
+fn suitefx n long to void
+if le n 0
+ret
+end
+k = ulong n
+if fsub 0 k temu
+put gv FEMU 1
+end
+put gv LS 0
+put gv LE 0
+put gv FLAST 2
+lscan k 0
+s = get gv LS
+e = get gv LE
+if and fpre s e tnpass fsub s e tvnone
+put gv FLAST 1
+end
+end
+fn chklogs h long to void
+l = objor dget long 0 tlogs
+n0 = chklog l tlog0
+suitefx n0
+n1 = chklog l tlog1
+if gt n1 0
+lscan ulong n1 1
+end
+n2 = chklog l tlog2
+if gt n2 0
+if fsub 0 ulong n2 twpn
+put gv FWRONG 1
+end
+end
+n3 = chklog l tlog3
+if gt n3 0
+if fsub 0 ulong n3 tmun
+put gv FMUT 1
+end
+end
+chk tsl1 fg FLAST
+chk tsl2 not fg FEMU
+chk tsl3 fg FVIRT
+chk tsl4 fg FHYP
+chk tsl5 not fg FFAIL
+chk tsl6 fg FCPU
+chk tsl7 fg FKERN
+chk tcl fg FCTRL
+chk twp fg FWRONG
+chk tmu fg FMUT
+end
+fn main to int
+c = argcnt
+if or lt c 2 gt c 3
+w = write 2 tusage 0 len tusage
+ret 2
+end
+rdarg 1
+topth
+if eq c 3
+rdarg 2
+toldr get gv NBN
+else
+rdarg 1
+dfltdir
+end
+r = rdrcp
+if ge r 0
+ret r
+end
+put gv LN 0
+ob = isobj 0
+chk tobj ob
+if not ob
+ret finish
+end
+natpins
+chktop
+h = chkhost
+chktools
+chkcmds
+mkexp h
+chklogs h
+ret finish
+end
diff --git a/tests/native/x86/check_receipt_test.om b/tests/native/x86/check_receipt_test.om
new file mode 100644
index 0000000..fe7f7b0
--- /dev/null
+++ b/tests/native/x86/check_receipt_test.om
@@ -0,0 +1,964 @@
+om2
+note check_receipt_test.om: the gate for tests/native/x86/check_physical_receipt.om (DRA-104).
+note usage: check_receipt_test OMC WORKDIR, run from the repository root. OMC must be the seeded omc
+note (omega-mv e5b32567, sha256 2c824805...); WORKDIR is an empty scratch directory this program fills.
+note It compiles the checker with OMC, then runs it on every committed fixture and compares the whole
+note output with tests/native/x86/receipt-fixtures/expected/NAME.out, which the replaced Python checker
+note (git 6d5c0ddb, ORACLE, not shipped) produced; then runs the cases that need a scratch copy (one log
+note byte appended, renamed receipt, missing receipt, argument counts) by exit status and one line.
+note Negative controls: two mutants of the checker (the log sha256 comparison always passing, the
+note EMULATED scan switched off) are compiled and must each fail at least one case.
+note Output: CHECK-RECEIPT-TEST PASS (exit 0) or FAIL lines and CHECK-RECEIPT-TEST FAIL (exit 1);
+note a wrong compiler hash exits 65, a usage or setup error exits 2.
+global fbuf uchar 4194304
+global hexo uchar 64
+global eb uchar 1048576
+global ob uchar 1048576
+global pk uchar 4096
+global wd uchar 4096
+global omc uchar 4096
+global pa uchar 4096
+global pb uchar 4096
+global cb uchar 4096
+global gv ulong 16
+const WDN ulong 0
+const OMN ulong 1
+const PKN ulong 2
+const PAN ulong 3
+const PBN ulong 4
+const BAD ulong 5
+const CAUGHT ulong 6
+const CASES ulong 7
+const FCAP ulong 4194304
+const CBN ulong 8
+const MUT ulong 9
+const ON ulong 10
+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 sayln t view uchar * to void
+say t
+say tline
+end
+note ---- path builder: pa = WORKDIR "/" name ----
+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 wpath t view uchar * to void
+put gv PAN 0
+k = get gv WDN
+for i ulong k
+pab get wd i
+end
+pab 47
+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
+note ---- packed argument list in pk: u16 count, then u16 length and bytes per argument ----
+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
+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
+note ---- files ----
+fn rdinto t view uchar * to long
+fd = fopen t 0 len t 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 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 fbuf 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
+note copy file t (relative to the repository root) to pa
+fn cpto t view uchar * to bool
+n = rdinto t
+if lt n 0
+ret false
+end
+ret wrpa ulong n
+end
+note ---- child processes: stdin, stdout and stderr redirected, exit status returned ----
+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 run pk with stdin from pb (or /dev/null when PBN is 0) and stdout to pa; stderr to WORKDIR/err
+text tnull "/dev/null"
+text terr "err"
+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
+wpath terr
+e = int fopen pa 0 get gv PAN 577 420
+d2 = dupfd e 2 0
+x = execprog pk 0 get gv PKN
+exit 121
+end
+ret waitst pid
+end
+
+fn pkbuf 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
+note compile the source at pb into pa with the seeded compiler
+fn compile to bool
+pkstart
+pkbuf 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
+note ---- one case: the checker's stdout is read into ob (ON bytes) ----
+text tout "out"
+fn runchk to long
+put gv PBN 0
+wpath 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
+text tfcase "FAIL case "
+text tgotrc " exit "
+fn bad name view uchar * rc long to void
+put gv BAD add get gv BAD 1
+if eq get gv MUT 0
+say tfcase
+say name
+say tgotrc
+v = ulong rc
+if lt rc 0
+v = 999
+end
+sayn v
+say tline
+end
+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 hasob t view uchar * to bool
+n = get gv ON
+m = len t
+if lt n m
+ret false
+end
+s = ulong 0
+while le s sub n m bound 999999
+ok = true
+for i ulong m
+if ok
+if ne get ob add s i get t i
+ok = false
+end
+end
+end
+if ok
+ret true
+end
+s = add s 1
+end
+ret false
+end
+text tacc "PHYSICAL-RECEIPT ACCEPTED"
+text texp "tests/native/x86/receipt-fixtures/expected/"
+text tdotout ".out"
+note compare the output with the golden file; its verdict line sets the expected exit status
+fn golden name view uchar * to void
+rc = runchk
+put gv PAN 0
+pat texp
+pat name
+pat tdotout
+n = rdpa
+if lt n 0
+bad name -2
+ret
+end
+k = ulong n
+ok = eq k get gv ON
+for i ulong k
+put eb i get fbuf i
+end
+if ok
+for i ulong k
+if ne get eb i get ob i
+ok = false
+end
+end
+end
+want = long 1
+put gv ON k
+for i ulong k
+put ob i get eb i
+end
+if hasob tacc
+want = 0
+end
+if or not ok ne rc want
+bad name rc
+end
+end
+fn pkchk to void
+pkstart
+pkbuf 1
+end
+text tfx "tests/native/x86/receipt-fixtures/"
+text tev "evidence/"
+text taccl "tests/native/x86/receipt-fixtures/accept/native-x86-physical-be8c5130"
+fn g1 name view uchar * r view uchar * to void
+pkchk
+pkt r
+golden name
+end
+text tedge "tests/native/x86/receipt-fixtures/edge/"
+text tpj "/native-x86-physical-be8c5130.json"
+text tedp "edge-"
+fn gedge e view uchar * to void
+pkchk
+put gv PAN 0
+pat tedge
+pat e
+pat tpj
+pkpa
+pkt taccl
+put gv PAN 0
+pat tedp
+pat e
+k = get gv PAN
+for i ulong k
+put pb i get pa i
+end
+put gv PBN k
+gedge2 k
+end
+fn gedge2 k ulong to void
+nm = new uchar 4096 0
+for i ulong k
+put nm i get pb i
+end
+golden part nm 0 k
+end
+
+note ---- scratch cases ----
+text tapp "app"
+text tappd "app/native-x86-physical-be8c5130"
+text tappj "app/native-x86-physical-be8c5130.json"
+text tappr "app/receipt.json"
+text tnone "none.json"
+text taccj "tests/native/x86/receipt-fixtures/accept/native-x86-physical-be8c5130.json"
+text tl0 "x86-native.log"
+text tl1 "x86-native-controls.log"
+text tl2 "x86-native-wrongpin.log"
+text tl3 "x86-native-mut.log"
+text tsl "/"
+text tcopy "scratch-copy-accepted"
+text tren "renamed-receipt"
+text tappc "appended-log-byte"
+text tmiss "missing-receipt"
+text tinv "invalid-json"
+text tu0 "usage-no-argument"
+text tu3 "usage-three-arguments"
+text tvren "PHYSICAL-RECEIPT REJECTED (1 failed: file name carries the x86 pin prefix)\n"
+text tvapp "PHYSICAL-RECEIPT REJECTED (1 failed: log x86-native-mut.log sha256 matches receipt)\n"
+text tvmiss "FAIL receipt is readable JSON (open or read failed: errno 2)\n"
+text tvinv "FAIL receipt is readable JSON (invalid JSON near byte 13)\n"
+text tinvp "tests/native/x86/receipt-fixtures/edge/invalid-json/native-x86-physical-be8c5130.json"
+fn cplog t view uchar * to bool
+put gv PAN 0
+pat taccl
+pat tsl
+pat t
+n = rdpa
+if lt n 0
+ret false
+end
+wpath tappd
+pat tsl
+pat t
+ret wrpa ulong n
+end
+fn expect name view uchar * want long line view uchar * to void
+rc = runchk
+if or ne rc want not hasob line
+bad name rc
+end
+end
+fn setup to bool
+wpath tapp
+m = makedir pa 0 get gv PAN 493
+wpath tappd
+m2 = makedir pa 0 get gv PAN 493
+wpath tappj
+if not cpto taccj
+ret false
+end
+wpath tappr
+if not cpto taccj
+ret false
+end
+ok = and and cplog tl0 cplog tl1 and cplog tl2 cplog tl3
+ret ok
+end
+fn pkw t view uchar * to void
+wpath t
+pkpa
+end
+fn appendbyte to bool
+wpath tappd
+pat tsl
+pat tl3
+n = rdpa
+if lt n 0
+ret false
+end
+put fbuf ulong n 120
+ret wrpa add ulong n 1
+end
+fn scratch to void
+pkchk
+pkw tappj
+expect tcopy 0 tacc
+pkchk
+pkw tappr
+pkw tappd
+expect tren 1 tvren
+pkchk
+pkw tnone
+expect tmiss 1 tvmiss
+pkchk
+pkt tinvp
+expect tinv 1 tvinv
+pkchk
+rc = runchk
+if or ne rc 2 ne get gv ON 0
+bad tu0 rc
+end
+pkchk
+pkt tinvp
+pkt tinvp
+pkt tinvp
+rc2 = runchk
+if or ne rc2 2 ne get gv ON 0
+bad tu3 rc2
+end
+end
+fn scratch2 to void
+pkchk
+pkw tappj
+expect tappc 1 tvapp
+end
+text tg1 "committed-be8c5130"
+text tr1 "evidence/native-x86-be8c5130.json"
+text tg2 "emulated-receipt"
+text tr2 "evidence/native-x86-physical-checker/emulated-receipt.json"
+text tg3 "forged-receipt-evidence"
+text tr3 "evidence/native-x86-physical-checker/forged-receipt.json"
+text tg4 "accept"
+text tg5 "forged"
+text tr5 "tests/native/x86/receipt-fixtures/forged/native-x86-physical-be8c5130.json"
+text te1 "dup-key-last-wins"
+text te2 "dup-key-dead-emulated"
+text te3 "escaped-label"
+text te4 "repr-strings"
+text te5 "repr-nested"
+text te6 "exit-forms"
+text te7 "exit-wrong-types"
+text te8 "schema-true"
+text te9 "three-commands"
+text te10 "host-not-object"
+text te11 "blank-fields"
+text te12 "emulated-in-key"
+text te13 "not-object"
+note every case; the scratch copy must be fresh (setup) and the byte is appended last
+fn allcases to bool
+if not setup
+ret false
+end
+g1 tg1 tr1
+g1 tg2 tr2
+g1 tg3 tr3
+g1 tg4 taccj
+g1 tg5 tr5
+gedge te1
+gedge te2
+gedge te3
+gedge te4
+gedge te5
+gedge te6
+gedge te7
+gedge te8
+gedge te9
+gedge te10
+gedge te11
+gedge te12
+gedge te13
+scratch
+if not appendbyte
+ret false
+end
+scratch2
+ret true
+end
+note ---- checker mutants (negative controls) ----
+text tsrc "tests/native/x86/check_physical_receipt.om"
+text tm1a "if ne get pool add o i get hexo i\nok = false"
+text tm1b "if ne get pool add o i get hexo i\nok = true"
+text tm2a "chk tnoemu not sayemu"
+text tm2b "chk tnoemu true"
+text tm1 "m1.om"
+text tm1x "m1"
+text tm2 "m2.om"
+text tm2x "m2"
+fn atf p ulong t view uchar * n ulong to bool
+if gt add p len t n
+ret false
+end
+for i ulong len t
+if ne get fbuf add p i get t i
+ret false
+end
+end
+ret true
+end
+fn putb o ulong b view uchar * to ulong
+for i ulong len b
+put eb add o i get b i
+end
+ret add o len b
+end
+note write the checker source with the one occurrence of a replaced by b to pa; false unless exactly one
+fn subst a view uchar * b view uchar * n ulong to ulong
+hits = ulong 0
+o = ulong 0
+p = ulong 0
+while lt p n bound 999999
+if atf p a n
+hits = add hits 1
+o = putb o b
+p = add p len a
+else
+put eb o get fbuf p
+o = add o 1
+p = add p 1
+end
+end
+if ne hits 1
+ret 0
+end
+ret o
+end
+fn mutate a view uchar * b view uchar * to bool
+pan = get gv PAN
+put gv PBN pan
+for i ulong pan
+put pb i get pa i
+end
+r = rdinto tsrc
+if lt r 0
+ret false
+end
+o = subst a b ulong r
+if eq o 0
+ret false
+end
+for i ulong o
+put fbuf i get eb i
+end
+pbn = get gv PBN
+for i ulong pbn
+put pa i get pb i
+end
+put gv PAN pbn
+ret wrpa o
+end
+
+text tusage "usage: check_receipt_test OMC WORKDIR   (run from the repository root)\n"
+text tpin "2c82480596bbdc50cda9626866209ef662d5834f278f839ff4ce0250c495029f"
+text twrong "CHECK-RECEIPT-TEST FAIL omc sha256 is not the seeded omega-mv e5b32567 compiler 2c824805\n"
+text tsetup "CHECK-RECEIPT-TEST FAIL setup: "
+text tcpr "cpr"
+text tccomp "compiling the checker"
+text tmcomp "building a mutant"
+text tscr "copying the scratch fixtures"
+text tnc "FAIL mutant not caught: "
+text tmc "MUTANT "
+text tmby " caught by "
+text tmcases " failing cases"
+text tpass "CHECK-RECEIPT-TEST PASS (18 golden outputs, 7 scratch cases, 2 of 2 checker mutants caught)\n"
+text tfail "CHECK-RECEIPT-TEST FAIL\n"
+fn setupfail t view uchar * to int
+say tsetup
+sayln t
+ret 2
+end
+fn rdarg i ulong which ulong to bool
+if eq which 0
+r = argread i omc 0 4096
+put gv OMN ulong r
+ret gt r 0
+end
+r2 = argread i wd 0 4096
+put gv WDN ulong r2
+ret gt r2 0
+end
+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
+note compile pb into WORKDIR/bin and make it the checker under test
+fn build bin view uchar * to bool
+wpath bin
+if not compile
+ret false
+end
+setcb
+ret true
+end
+fn mutant src view uchar * bin view uchar * which ulong to int
+wpath src
+ok = false
+if eq which 1
+ok = mutate tm1a tm1b
+else
+ok = mutate tm2a tm2b
+end
+if not ok
+ret 2
+end
+pbcopy
+if not build bin
+ret 2
+end
+put gv MUT 1
+put gv BAD 0
+if not allcases
+ret 2
+end
+put gv MUT 0
+if gt get gv BAD 0
+say tmc
+say src
+say tmby
+sayn get gv BAD
+sayln tmcases
+ret 1
+end
+say tnc
+sayln src
+ret 0
+end
+fn main to int
+if ne argcnt 3
+w = write 2 tusage 0 len tusage
+ret 2
+end
+if not and rdarg 1 0 rdarg 2 1
+w2 = write 2 tusage 0 len tusage
+ret 2
+end
+if not omcok
+say twrong
+ret 65
+end
+put gv PAN 0
+pat tsrc
+pbcopy
+if not build tcpr
+ret setupfail tccomp
+end
+put gv BAD 0
+if not allcases
+ret setupfail tscr
+end
+cb1 = get gv BAD
+m1 = mutant tm1 tm1x 1
+m2 = mutant tm2 tm2x 2
+if or eq m1 2 eq m2 2
+ret setupfail tmcomp
+end
+if and eq cb1 0 and eq m1 1 eq m2 1
+say tpass
+ret 0
+end
+say tfail
+ret 1
+end
diff --git a/tests/native/x86/receipt-fixtures/README.md b/tests/native/x86/receipt-fixtures/README.md
new file mode 100644
index 0000000..2698dd6
--- /dev/null
+++ b/tests/native/x86/receipt-fixtures/README.md
@@ -0,0 +1,6 @@
+Fixtures for tests/native/x86/check_receipt_test.om. None of them is evidence of a run.
+
+- accept/: a synthetic PHYSICAL receipt and four hand-written logs whose hashes it records; the checker must accept it (accept path only).
+- forged/: the same receipt shape over the EMULATED suite and controls logs of evidence/native-x86-pr44-merge; it must be rejected on the suite-log checks.
+- edge/NAME/: receipts that probe duplicate keys, escapes, value display, number forms and wrong types; each is checked against accept/'s logs.
+- expected/NAME.out: the whole stdout of the replaced Python checker (git 6d5c0ddb, ORACLE, not shipped) for each case; the Omega checker must reproduce it byte for byte, and its last line sets the expected exit status.
diff --git a/tests/native/x86/receipt-fixtures/accept/native-x86-physical-be8c5130.json b/tests/native/x86/receipt-fixtures/accept/native-x86-physical-be8c5130.json
new file mode 100644
index 0000000..dc6769c
--- /dev/null
+++ b/tests/native/x86/receipt-fixtures/accept/native-x86-physical-be8c5130.json
@@ -0,0 +1,57 @@
+{
+ "schema": 1,
+ "status": "NATIVE_PASS",
+ "label": "PHYSICAL",
+ "bridge_commit": "d8174eddf953ad53e16f19eb5841459df99e24bb",
+ "x86_omc_sha256": "be8c51301307555254fc59e351d281aae1aa096d91521777e33a41c8b446448a",
+ "baseline_omc_sha256": "734f0a39319fbfa930bcc62cb30dbf06d47d78e126372b74f5baf478e6126b61",
+ "native_x86": "PASS",
+ "host": {
+  "cpu_model": "SYNTH CPU",
+  "hypervisor_flag": "no",
+  "virtualization": "none",
+  "kernel": "6.8.0-synth",
+  "os": "synth",
+  "binfmt_qemu_aarch64": {
+   "interpreter": "/usr/bin/qemu-aarch64-static",
+   "version": "v",
+   "sha256": "0000000000000000000000000000000000000000000000000000000000000000"
+  }
+ },
+ "toolchains": {
+  "gcc": "v",
+  "g++": "v",
+  "rustc": "v",
+  "zig": "v",
+  "go": "v",
+  "python": "v"
+ },
+ "commands": [
+  {
+   "command": "OMEGA_NATIVE_X86_EXEC=native sh tests/native/x86/run.sh EMPTY_OUTPUT",
+   "exit": 0,
+   "result": "1 PASS, 0 FAIL; NATIVE-X86 NATIVE PASS"
+  },
+  {
+   "command": "OMEGA_NATIVE_X86_EXEC=native python3 tests/native/x86/test_build_failures.py EMPTY_OUTPUT",
+   "exit": 0,
+   "result": "NATIVE-X86 CONTROLS PASS (NATIVE)"
+  },
+  {
+   "command": "OMEGA_NATIVE_X86_EXEC=native OMEGA_NATIVE_X86_OMC=<734f0a39 omc> sh tests/native/x86/run.sh EMPTY_OUTPUT",
+   "exit": 1,
+   "result": "negative control: FAIL x86 compiler pin"
+  },
+  {
+   "command": "OMEGA_NATIVE_X86_OMC=<mut> sh tools/native --target x86linux OUTDIR tests/native/x86/follow.om",
+   "exit": 1,
+   "result": "negative control: tools/native refused"
+  }
+ ],
+ "logs_sha256": {
+  "x86-native.log": "6b764c5ad52f458abaac582df82bf3ab9d037c2ce40884df383ee6f9026be78e",
+  "x86-native-controls.log": "c80ee095054f493bcf40fc63566c4efae6d3cd8bd16ea14a00812ef150788ec6",
+  "x86-native-wrongpin.log": "3a970734477b984eb801e1a5bc4e78d4808f3fad82f76e9739b06ae8e03f540c",
+  "x86-native-mut.log": "b6eb5490eb831d9c917a893fd1582a0f1001c13301fed67404611d5eb2c534b0"
+ }
+}
diff --git a/tests/native/x86/receipt-fixtures/accept/native-x86-physical-be8c5130/x86-native-controls.log b/tests/native/x86/receipt-fixtures/accept/native-x86-physical-be8c5130/x86-native-controls.log
new file mode 100644
index 0000000..acfe92f
--- /dev/null
+++ b/tests/native/x86/receipt-fixtures/accept/native-x86-physical-be8c5130/x86-native-controls.log
@@ -0,0 +1,2 @@
+INFO synthetic fixture: hand-written, no run
+NATIVE-X86 CONTROLS PASS (NATIVE; synthetic fixture)
diff --git a/tests/native/x86/receipt-fixtures/accept/native-x86-physical-be8c5130/x86-native-mut.log b/tests/native/x86/receipt-fixtures/accept/native-x86-physical-be8c5130/x86-native-mut.log
new file mode 100644
index 0000000..69b3111
--- /dev/null
+++ b/tests/native/x86/receipt-fixtures/accept/native-x86-physical-be8c5130/x86-native-mut.log
@@ -0,0 +1,2 @@
+INFO synthetic fixture: hand-written, no run
+tools/native: x86 omc sha256 mismatch (synthetic fixture)
diff --git a/tests/native/x86/receipt-fixtures/accept/native-x86-physical-be8c5130/x86-native-wrongpin.log b/tests/native/x86/receipt-fixtures/accept/native-x86-physical-be8c5130/x86-native-wrongpin.log
new file mode 100644
index 0000000..0ab3980
--- /dev/null
+++ b/tests/native/x86/receipt-fixtures/accept/native-x86-physical-be8c5130/x86-native-wrongpin.log
@@ -0,0 +1,2 @@
+INFO synthetic fixture: hand-written, no run
+NATIVE-X86 FAIL x86 compiler pin (synthetic fixture)
diff --git a/tests/native/x86/receipt-fixtures/accept/native-x86-physical-be8c5130/x86-native.log b/tests/native/x86/receipt-fixtures/accept/native-x86-physical-be8c5130/x86-native.log
new file mode 100644
index 0000000..f173f0f
--- /dev/null
+++ b/tests/native/x86/receipt-fixtures/accept/native-x86-physical-be8c5130/x86-native.log
@@ -0,0 +1,7 @@
+INFO synthetic fixture: hand-written, no run; exercises the checker's accept path only
+INFO virtualization=none
+INFO cpu hypervisor flag=no
+INFO cpu model=SYNTH CPU
+INFO kernel=6.8.0-synth
+PASS synthetic
+NATIVE-X86 NATIVE PASS (synthetic fixture; virtualization=none)
diff --git a/tests/native/x86/receipt-fixtures/edge/blank-fields/native-x86-physical-be8c5130.json b/tests/native/x86/receipt-fixtures/edge/blank-fields/native-x86-physical-be8c5130.json
new file mode 100644
index 0000000..bbfd3a3
--- /dev/null
+++ b/tests/native/x86/receipt-fixtures/edge/blank-fields/native-x86-physical-be8c5130.json
@@ -0,0 +1,57 @@
+{
+ "schema": 1,
+ "status": "NATIVE_PASS",
+ "label": "PHYSICAL",
+ "bridge_commit": "d8174eddf953ad53e16f19eb5841459df99e24bb",
+ "x86_omc_sha256": "be8c51301307555254fc59e351d281aae1aa096d91521777e33a41c8b446448a",
+ "baseline_omc_sha256": "734f0a39319fbfa930bcc62cb30dbf06d47d78e126372b74f5baf478e6126b61",
+ "native_x86": "PASS",
+ "host": {
+  "cpu_model": "   ",
+  "hypervisor_flag": "no",
+  "virtualization": "none",
+  "kernel": "6.8.0-synth",
+  "os": 5,
+  "binfmt_qemu_aarch64": {
+   "interpreter": "/usr/bin/qemu-aarch64-static",
+   "version": "v",
+   "sha256": "0000000000000000000000000000000000000000000000000000000000000000"
+  }
+ },
+ "toolchains": {
+  "gcc": "v",
+  "g++": "v",
+  "rustc": "v",
+  "zig": "",
+  "go": "v",
+  "python": "v"
+ },
+ "commands": [
+  {
+   "command": "OMEGA_NATIVE_X86_EXEC=native sh tests/native/x86/run.sh EMPTY_OUTPUT",
+   "exit": 0,
+   "result": "1 PASS, 0 FAIL; NATIVE-X86 NATIVE PASS"
+  },
+  {
+   "command": "OMEGA_NATIVE_X86_EXEC=native python3 tests/native/x86/test_build_failures.py EMPTY_OUTPUT",
+   "exit": 0,
+   "result": "NATIVE-X86 CONTROLS PASS (NATIVE)"
+  },
+  {
+   "command": "OMEGA_NATIVE_X86_EXEC=native OMEGA_NATIVE_X86_OMC=<734f0a39 omc> sh tests/native/x86/run.sh EMPTY_OUTPUT",
+   "exit": 1,
+   "result": "negative control: FAIL x86 compiler pin"
+  },
+  {
+   "command": "OMEGA_NATIVE_X86_OMC=<mut> sh tools/native --target x86linux OUTDIR tests/native/x86/follow.om",
+   "exit": 1,
+   "result": "negative control: tools/native refused"
+  }
+ ],
+ "logs_sha256": {
+  "x86-native.log": "6b764c5ad52f458abaac582df82bf3ab9d037c2ce40884df383ee6f9026be78e",
+  "x86-native-controls.log": "c80ee095054f493bcf40fc63566c4efae6d3cd8bd16ea14a00812ef150788ec6",
+  "x86-native-wrongpin.log": "3a970734477b984eb801e1a5bc4e78d4808f3fad82f76e9739b06ae8e03f540c",
+  "x86-native-mut.log": "b6eb5490eb831d9c917a893fd1582a0f1001c13301fed67404611d5eb2c534b0"
+ }
+}
diff --git a/tests/native/x86/receipt-fixtures/edge/dup-key-dead-emulated/native-x86-physical-be8c5130.json b/tests/native/x86/receipt-fixtures/edge/dup-key-dead-emulated/native-x86-physical-be8c5130.json
new file mode 100644
index 0000000..51a228a
--- /dev/null
+++ b/tests/native/x86/receipt-fixtures/edge/dup-key-dead-emulated/native-x86-physical-be8c5130.json
@@ -0,0 +1,57 @@
+{
+ "schema": 1,
+ "status": "NATIVE_PASS",
+ "label": "PHYSICAL", "label": "EMULATED",
+ "bridge_commit": "d8174eddf953ad53e16f19eb5841459df99e24bb",
+ "x86_omc_sha256": "be8c51301307555254fc59e351d281aae1aa096d91521777e33a41c8b446448a",
+ "baseline_omc_sha256": "734f0a39319fbfa930bcc62cb30dbf06d47d78e126372b74f5baf478e6126b61",
+ "native_x86": "PASS",
+ "host": {
+  "cpu_model": "SYNTH CPU",
+  "hypervisor_flag": "no",
+  "virtualization": "none",
+  "kernel": "6.8.0-synth",
+  "os": "synth",
+  "binfmt_qemu_aarch64": {
+   "interpreter": "/usr/bin/qemu-aarch64-static",
+   "version": "v",
+   "sha256": "0000000000000000000000000000000000000000000000000000000000000000"
+  }
+ },
+ "toolchains": {
+  "gcc": "v",
+  "g++": "v",
+  "rustc": "v",
+  "zig": "v",
+  "go": "v",
+  "python": "v"
+ },
+ "commands": [
+  {
+   "command": "OMEGA_NATIVE_X86_EXEC=native sh tests/native/x86/run.sh EMPTY_OUTPUT",
+   "exit": 0,
+   "result": "1 PASS, 0 FAIL; NATIVE-X86 NATIVE PASS"
+  },
+  {
+   "command": "OMEGA_NATIVE_X86_EXEC=native python3 tests/native/x86/test_build_failures.py EMPTY_OUTPUT",
+   "exit": 0,
+   "result": "NATIVE-X86 CONTROLS PASS (NATIVE)"
+  },
+  {
+   "command": "OMEGA_NATIVE_X86_EXEC=native OMEGA_NATIVE_X86_OMC=<734f0a39 omc> sh tests/native/x86/run.sh EMPTY_OUTPUT",
+   "exit": 1,
+   "result": "negative control: FAIL x86 compiler pin"
+  },
+  {
+   "command": "OMEGA_NATIVE_X86_OMC=<mut> sh tools/native --target x86linux OUTDIR tests/native/x86/follow.om",
+   "exit": 1,
+   "result": "negative control: tools/native refused"
+  }
+ ],
+ "logs_sha256": {
+  "x86-native.log": "6b764c5ad52f458abaac582df82bf3ab9d037c2ce40884df383ee6f9026be78e",
+  "x86-native-controls.log": "c80ee095054f493bcf40fc63566c4efae6d3cd8bd16ea14a00812ef150788ec6",
+  "x86-native-wrongpin.log": "3a970734477b984eb801e1a5bc4e78d4808f3fad82f76e9739b06ae8e03f540c",
+  "x86-native-mut.log": "b6eb5490eb831d9c917a893fd1582a0f1001c13301fed67404611d5eb2c534b0"
+ }
+}
diff --git a/tests/native/x86/receipt-fixtures/edge/dup-key-last-wins/native-x86-physical-be8c5130.json b/tests/native/x86/receipt-fixtures/edge/dup-key-last-wins/native-x86-physical-be8c5130.json
new file mode 100644
index 0000000..ffc7ee2
--- /dev/null
+++ b/tests/native/x86/receipt-fixtures/edge/dup-key-last-wins/native-x86-physical-be8c5130.json
@@ -0,0 +1,57 @@
+{
+ "schema": 1,
+ "status": "NATIVE_PASS",
+ "label": "EMULATED", "label": "PHYSICAL",
+ "bridge_commit": "d8174eddf953ad53e16f19eb5841459df99e24bb",
+ "x86_omc_sha256": "be8c51301307555254fc59e351d281aae1aa096d91521777e33a41c8b446448a",
+ "baseline_omc_sha256": "734f0a39319fbfa930bcc62cb30dbf06d47d78e126372b74f5baf478e6126b61",
+ "native_x86": "PASS",
+ "host": {
+  "cpu_model": "SYNTH CPU",
+  "hypervisor_flag": "no",
+  "virtualization": "none",
+  "kernel": "6.8.0-synth",
+  "os": "synth",
+  "binfmt_qemu_aarch64": {
+   "interpreter": "/usr/bin/qemu-aarch64-static",
+   "version": "v",
+   "sha256": "0000000000000000000000000000000000000000000000000000000000000000"
+  }
+ },
+ "toolchains": {
+  "gcc": "v",
+  "g++": "v",
+  "rustc": "v",
+  "zig": "v",
+  "go": "v",
+  "python": "v"
+ },
+ "commands": [
+  {
+   "command": "OMEGA_NATIVE_X86_EXEC=native sh tests/native/x86/run.sh EMPTY_OUTPUT",
+   "exit": 0,
+   "result": "1 PASS, 0 FAIL; NATIVE-X86 NATIVE PASS"
+  },
+  {
+   "command": "OMEGA_NATIVE_X86_EXEC=native python3 tests/native/x86/test_build_failures.py EMPTY_OUTPUT",
+   "exit": 0,
+   "result": "NATIVE-X86 CONTROLS PASS (NATIVE)"
+  },
+  {
+   "command": "OMEGA_NATIVE_X86_EXEC=native OMEGA_NATIVE_X86_OMC=<734f0a39 omc> sh tests/native/x86/run.sh EMPTY_OUTPUT",
+   "exit": 1,
+   "result": "negative control: FAIL x86 compiler pin"
+  },
+  {
+   "command": "OMEGA_NATIVE_X86_OMC=<mut> sh tools/native --target x86linux OUTDIR tests/native/x86/follow.om",
+   "exit": 1,
+   "result": "negative control: tools/native refused"
+  }
+ ],
+ "logs_sha256": {
+  "x86-native.log": "6b764c5ad52f458abaac582df82bf3ab9d037c2ce40884df383ee6f9026be78e",
+  "x86-native-controls.log": "c80ee095054f493bcf40fc63566c4efae6d3cd8bd16ea14a00812ef150788ec6",
+  "x86-native-wrongpin.log": "3a970734477b984eb801e1a5bc4e78d4808f3fad82f76e9739b06ae8e03f540c",
+  "x86-native-mut.log": "b6eb5490eb831d9c917a893fd1582a0f1001c13301fed67404611d5eb2c534b0"
+ }
+}
diff --git a/tests/native/x86/receipt-fixtures/edge/emulated-in-key/native-x86-physical-be8c5130.json b/tests/native/x86/receipt-fixtures/edge/emulated-in-key/native-x86-physical-be8c5130.json
new file mode 100644
index 0000000..67b5e3b
--- /dev/null
+++ b/tests/native/x86/receipt-fixtures/edge/emulated-in-key/native-x86-physical-be8c5130.json
@@ -0,0 +1,58 @@
+{
+ "schema": 1,
+ "status": "NATIVE_PASS",
+ "label": "PHYSICAL",
+ "bridge_commit": "d8174eddf953ad53e16f19eb5841459df99e24bb",
+ "x86_omc_sha256": "be8c51301307555254fc59e351d281aae1aa096d91521777e33a41c8b446448a",
+ "baseline_omc_sha256": "734f0a39319fbfa930bcc62cb30dbf06d47d78e126372b74f5baf478e6126b61",
+ "native_x86": "PASS",
+ "host": {
+  "cpu_model": "SYNTH CPU",
+  "hypervisor_flag": "no",
+  "virtualization": "none",
+  "kernel": "6.8.0-synth",
+  "os": "synth",
+  "binfmt_qemu_aarch64": {
+   "interpreter": "/usr/bin/qemu-aarch64-static",
+   "version": "v",
+   "sha256": "0000000000000000000000000000000000000000000000000000000000000000"
+  }
+ },
+ "toolchains": {
+  "gcc": "v",
+  "g++": "v",
+  "rustc": "v",
+  "zig": "v",
+  "go": "v",
+  "python": "v",
+  "EMULATED": "x"
+ },
+ "commands": [
+  {
+   "command": "OMEGA_NATIVE_X86_EXEC=native sh tests/native/x86/run.sh EMPTY_OUTPUT",
+   "exit": 0,
+   "result": "1 PASS, 0 FAIL; NATIVE-X86 NATIVE PASS"
+  },
+  {
+   "command": "OMEGA_NATIVE_X86_EXEC=native python3 tests/native/x86/test_build_failures.py EMPTY_OUTPUT",
+   "exit": 0,
+   "result": "NATIVE-X86 CONTROLS PASS (NATIVE)"
+  },
+  {
+   "command": "OMEGA_NATIVE_X86_EXEC=native OMEGA_NATIVE_X86_OMC=<734f0a39 omc> sh tests/native/x86/run.sh EMPTY_OUTPUT",
+   "exit": 1,
+   "result": "negative control: FAIL x86 compiler pin"
+  },
+  {
+   "command": "OMEGA_NATIVE_X86_OMC=<mut> sh tools/native --target x86linux OUTDIR tests/native/x86/follow.om",
+   "exit": 1,
+   "result": "negative control: tools/native refused"
+  }
+ ],
+ "logs_sha256": {
+  "x86-native.log": "6b764c5ad52f458abaac582df82bf3ab9d037c2ce40884df383ee6f9026be78e",
+  "x86-native-controls.log": "c80ee095054f493bcf40fc63566c4efae6d3cd8bd16ea14a00812ef150788ec6",
+  "x86-native-wrongpin.log": "3a970734477b984eb801e1a5bc4e78d4808f3fad82f76e9739b06ae8e03f540c",
+  "x86-native-mut.log": "b6eb5490eb831d9c917a893fd1582a0f1001c13301fed67404611d5eb2c534b0"
+ }
+}
diff --git a/tests/native/x86/receipt-fixtures/edge/escaped-label/native-x86-physical-be8c5130.json b/tests/native/x86/receipt-fixtures/edge/escaped-label/native-x86-physical-be8c5130.json
new file mode 100644
index 0000000..9a6b47b
--- /dev/null
+++ b/tests/native/x86/receipt-fixtures/edge/escaped-label/native-x86-physical-be8c5130.json
@@ -0,0 +1,57 @@
+{
+ "schema": 1,
+ "status": "NATIVE_PASS",
+ "label": "PHYSIC\u0041L",
+ "bridge_commit": "d8174eddf953ad53e16f19eb5841459df99e24bb",
+ "x86_omc_sha256": "be8c51301307555254fc59e351d281aae1aa096d91521777e33a41c8b446448a",
+ "baseline_omc_sha256": "734f0a39319fbfa930bcc62cb30dbf06d47d78e126372b74f5baf478e6126b61",
+ "native_x86": "PASS",
+ "host": {
+  "cpu_model": "SYNTH CPU",
+  "hypervisor_flag": "no",
+  "virtualization": "none",
+  "kernel": "6.8.0-synth",
+  "os": "synth",
+  "binfmt_qemu_aarch64": {
+   "interpreter": "/usr/bin/qemu-aarch64-static",
+   "version": "v",
+   "sha256": "0000000000000000000000000000000000000000000000000000000000000000"
+  }
+ },
+ "toolchains": {
+  "gcc": "v",
+  "g++": "v",
+  "rustc": "v",
+  "zig": "v",
+  "go": "v",
+  "python": "v"
+ },
+ "commands": [
+  {
+   "command": "OMEGA_NATIVE_X86_EXEC=native sh tests/native/x86/run.sh EMPTY_OUTPUT",
+   "exit": 0,
+   "result": "1 PASS, 0 FAIL; NATIVE-X86 NATIVE PASS"
+  },
+  {
+   "command": "OMEGA_NATIVE_X86_EXEC=native python3 tests/native/x86/test_build_failures.py EMPTY_OUTPUT",
+   "exit": 0,
+   "result": "NATIVE-X86 CONTROLS PASS (NATIVE)"
+  },
+  {
+   "command": "OMEGA_NATIVE_X86_EXEC=native OMEGA_NATIVE_X86_OMC=<734f0a39 omc> sh tests/native/x86/run.sh EMPTY_OUTPUT",
+   "exit": 1,
+   "result": "negative control: FAIL x86 compiler pin"
+  },
+  {
+   "command": "OMEGA_NATIVE_X86_OMC=<mut> sh tools/native --target x86linux OUTDIR tests/native/x86/follow.om",
+   "exit": 1,
+   "result": "negative control: tools/native refused"
+  }
+ ],
+ "logs_sha256": {
+  "x86-native.log": "6b764c5ad52f458abaac582df82bf3ab9d037c2ce40884df383ee6f9026be78e",
+  "x86-native-controls.log": "c80ee095054f493bcf40fc63566c4efae6d3cd8bd16ea14a00812ef150788ec6",
+  "x86-native-wrongpin.log": "3a970734477b984eb801e1a5bc4e78d4808f3fad82f76e9739b06ae8e03f540c",
+  "x86-native-mut.log": "b6eb5490eb831d9c917a893fd1582a0f1001c13301fed67404611d5eb2c534b0"
+ }
+}
diff --git a/tests/native/x86/receipt-fixtures/edge/exit-forms/native-x86-physical-be8c5130.json b/tests/native/x86/receipt-fixtures/edge/exit-forms/native-x86-physical-be8c5130.json
new file mode 100644
index 0000000..4a53167
--- /dev/null
+++ b/tests/native/x86/receipt-fixtures/edge/exit-forms/native-x86-physical-be8c5130.json
@@ -0,0 +1,58 @@
+{
+ "schema": 1,
+ "status": "NATIVE_PASS",
+ "label": "PHYSICAL",
+ "bridge_commit": "d8174eddf953ad53e16f19eb5841459df99e24bb",
+ "x86_omc_sha256": "be8c51301307555254fc59e351d281aae1aa096d91521777e33a41c8b446448a",
+ "baseline_omc_sha256": "734f0a39319fbfa930bcc62cb30dbf06d47d78e126372b74f5baf478e6126b61",
+ "native_x86": "PASS",
+ "host": {
+  "cpu_model": "SYNTH CPU",
+  "hypervisor_flag": "no",
+  "virtualization": "none",
+  "kernel": "6.8.0-synth",
+  "os": "synth",
+  "binfmt_qemu_aarch64": {
+   "interpreter": "/usr/bin/qemu-aarch64-static",
+   "version": "v",
+   "sha256": "0000000000000000000000000000000000000000000000000000000000000000"
+  }
+ },
+ "toolchains": {
+  "gcc": "v",
+  "g++": "v",
+  "rustc": "v",
+  "zig": "v",
+  "go": "v",
+  "python": "v"
+ },
+ "commands": [
+  {
+   "command": "OMEGA_NATIVE_X86_EXEC=native sh tests/native/x86/run.sh EMPTY_OUTPUT",
+   "exit": false,
+   "result": "1 PASS, 0 FAIL; NATIVE-X86 NATIVE PASS"
+  },
+  {
+   "command": "OMEGA_NATIVE_X86_EXEC=native python3 tests/native/x86/test_build_failures.py EMPTY_OUTPUT",
+   "exit": -0,
+   "result": "NATIVE-X86 CONTROLS PASS (NATIVE)"
+  },
+  {
+   "command": "OMEGA_NATIVE_X86_EXEC=native OMEGA_NATIVE_X86_OMC=<734f0a39 omc> sh tests/native/x86/run.sh EMPTY_OUTPUT",
+   "exit": true,
+   "result": "negative control: FAIL x86 compiler pin"
+  },
+  {
+   "command": "OMEGA_NATIVE_X86_OMC=<mut> sh tools/native --target x86linux OUTDIR tests/native/x86/follow.om",
+   "exit": 1.0,
+   "result": "negative control: tools/native refused"
+  }
+ ],
+ "logs_sha256": {
+  "x86-native.log": "6b764c5ad52f458abaac582df82bf3ab9d037c2ce40884df383ee6f9026be78e",
+  "x86-native-controls.log": "c80ee095054f493bcf40fc63566c4efae6d3cd8bd16ea14a00812ef150788ec6",
+  "x86-native-wrongpin.log": "3a970734477b984eb801e1a5bc4e78d4808f3fad82f76e9739b06ae8e03f540c",
+  "x86-native-mut.log": "b6eb5490eb831d9c917a893fd1582a0f1001c13301fed67404611d5eb2c534b0"
+ }
+}
+
diff --git a/tests/native/x86/receipt-fixtures/edge/exit-wrong-types/native-x86-physical-be8c5130.json b/tests/native/x86/receipt-fixtures/edge/exit-wrong-types/native-x86-physical-be8c5130.json
new file mode 100644
index 0000000..dfdd2ba
--- /dev/null
+++ b/tests/native/x86/receipt-fixtures/edge/exit-wrong-types/native-x86-physical-be8c5130.json
@@ -0,0 +1,57 @@
+{
+ "schema": 1,
+ "status": "NATIVE_PASS",
+ "label": "PHYSICAL",
+ "bridge_commit": "d8174eddf953ad53e16f19eb5841459df99e24bb",
+ "x86_omc_sha256": "be8c51301307555254fc59e351d281aae1aa096d91521777e33a41c8b446448a",
+ "baseline_omc_sha256": "734f0a39319fbfa930bcc62cb30dbf06d47d78e126372b74f5baf478e6126b61",
+ "native_x86": "PASS",
+ "host": {
+  "cpu_model": "SYNTH CPU",
+  "hypervisor_flag": "no",
+  "virtualization": "none",
+  "kernel": "6.8.0-synth",
+  "os": "synth",
+  "binfmt_qemu_aarch64": {
+   "interpreter": "/usr/bin/qemu-aarch64-static",
+   "version": "v",
+   "sha256": "0000000000000000000000000000000000000000000000000000000000000000"
+  }
+ },
+ "toolchains": {
+  "gcc": "v",
+  "g++": "v",
+  "rustc": "v",
+  "zig": "v",
+  "go": "v",
+  "python": "v"
+ },
+ "commands": [
+  {
+   "command": "OMEGA_NATIVE_X86_EXEC=native sh tests/native/x86/run.sh EMPTY_OUTPUT",
+   "exit": "0",
+   "result": "1 PASS, 0 FAIL; NATIVE-X86 NATIVE PASS"
+  },
+  {
+   "command": "OMEGA_NATIVE_X86_EXEC=native python3 tests/native/x86/test_build_failures.py EMPTY_OUTPUT",
+   "exit": 0,
+   "result": "NATIVE-X86 CONTROLS PASS (NATIVE)"
+  },
+  {
+   "command": "OMEGA_NATIVE_X86_EXEC=native OMEGA_NATIVE_X86_OMC=<734f0a39 omc> sh tests/native/x86/run.sh EMPTY_OUTPUT",
+   "exit": null,
+   "result": "negative control: FAIL x86 compiler pin"
+  },
+  {
+   "command": "OMEGA_NATIVE_X86_OMC=<mut> sh tools/native --target x86linux OUTDIR tests/native/x86/follow.om",
+   "exit": 1,
+   "result": "negative control: tools/native refused"
+  }
+ ],
+ "logs_sha256": {
+  "x86-native.log": "6b764c5ad52f458abaac582df82bf3ab9d037c2ce40884df383ee6f9026be78e",
+  "x86-native-controls.log": "c80ee095054f493bcf40fc63566c4efae6d3cd8bd16ea14a00812ef150788ec6",
+  "x86-native-wrongpin.log": "3a970734477b984eb801e1a5bc4e78d4808f3fad82f76e9739b06ae8e03f540c",
+  "x86-native-mut.log": "b6eb5490eb831d9c917a893fd1582a0f1001c13301fed67404611d5eb2c534b0"
+ }
+}
diff --git a/tests/native/x86/receipt-fixtures/edge/host-not-object/native-x86-physical-be8c5130.json b/tests/native/x86/receipt-fixtures/edge/host-not-object/native-x86-physical-be8c5130.json
new file mode 100644
index 0000000..a85b42c
--- /dev/null
+++ b/tests/native/x86/receipt-fixtures/edge/host-not-object/native-x86-physical-be8c5130.json
@@ -0,0 +1,48 @@
+{
+ "schema": 1,
+ "status": "NATIVE_PASS",
+ "label": "PHYSICAL",
+ "bridge_commit": "d8174eddf953ad53e16f19eb5841459df99e24bb",
+ "x86_omc_sha256": "be8c51301307555254fc59e351d281aae1aa096d91521777e33a41c8b446448a",
+ "baseline_omc_sha256": "734f0a39319fbfa930bcc62cb30dbf06d47d78e126372b74f5baf478e6126b61",
+ "native_x86": "PASS",
+ "host": [
+  "none"
+ ],
+ "toolchains": {
+  "gcc": "v",
+  "g++": "v",
+  "rustc": "v",
+  "zig": "v",
+  "go": "v",
+  "python": "v"
+ },
+ "commands": [
+  {
+   "command": "OMEGA_NATIVE_X86_EXEC=native sh tests/native/x86/run.sh EMPTY_OUTPUT",
+   "exit": 0,
+   "result": "1 PASS, 0 FAIL; NATIVE-X86 NATIVE PASS"
+  },
+  {
+   "command": "OMEGA_NATIVE_X86_EXEC=native python3 tests/native/x86/test_build_failures.py EMPTY_OUTPUT",
+   "exit": 0,
+   "result": "NATIVE-X86 CONTROLS PASS (NATIVE)"
+  },
+  {
+   "command": "OMEGA_NATIVE_X86_EXEC=native OMEGA_NATIVE_X86_OMC=<734f0a39 omc> sh tests/native/x86/run.sh EMPTY_OUTPUT",
+   "exit": 1,
+   "result": "negative control: FAIL x86 compiler pin"
+  },
+  {
+   "command": "OMEGA_NATIVE_X86_OMC=<mut> sh tools/native --target x86linux OUTDIR tests/native/x86/follow.om",
+   "exit": 1,
+   "result": "negative control: tools/native refused"
+  }
+ ],
+ "logs_sha256": {
+  "x86-native.log": "6b764c5ad52f458abaac582df82bf3ab9d037c2ce40884df383ee6f9026be78e",
+  "x86-native-controls.log": "c80ee095054f493bcf40fc63566c4efae6d3cd8bd16ea14a00812ef150788ec6",
+  "x86-native-wrongpin.log": "3a970734477b984eb801e1a5bc4e78d4808f3fad82f76e9739b06ae8e03f540c",
+  "x86-native-mut.log": "b6eb5490eb831d9c917a893fd1582a0f1001c13301fed67404611d5eb2c534b0"
+ }
+}
diff --git a/tests/native/x86/receipt-fixtures/edge/invalid-json/native-x86-physical-be8c5130.json b/tests/native/x86/receipt-fixtures/edge/invalid-json/native-x86-physical-be8c5130.json
new file mode 100644
index 0000000..82d03a0
--- /dev/null
+++ b/tests/native/x86/receipt-fixtures/edge/invalid-json/native-x86-physical-be8c5130.json
@@ -0,0 +1 @@
+{"schema": 1,}
diff --git a/tests/native/x86/receipt-fixtures/edge/not-object/native-x86-physical-be8c5130.json b/tests/native/x86/receipt-fixtures/edge/not-object/native-x86-physical-be8c5130.json
new file mode 100644
index 0000000..b56644e
--- /dev/null
+++ b/tests/native/x86/receipt-fixtures/edge/not-object/native-x86-physical-be8c5130.json
@@ -0,0 +1 @@
+["PHYSICAL"]
diff --git a/tests/native/x86/receipt-fixtures/edge/repr-nested/native-x86-physical-be8c5130.json b/tests/native/x86/receipt-fixtures/edge/repr-nested/native-x86-physical-be8c5130.json
new file mode 100644
index 0000000..d23790e
--- /dev/null
+++ b/tests/native/x86/receipt-fixtures/edge/repr-nested/native-x86-physical-be8c5130.json
@@ -0,0 +1,57 @@
+{
+ "schema": 1,
+ "status": {"a": 1, "b": [true, null, -0, 2, "x"], "a": "z", "c": {}},
+ "label": "PHYSICAL",
+ "bridge_commit": "d8174eddf953ad53e16f19eb5841459df99e24bb",
+ "x86_omc_sha256": "be8c51301307555254fc59e351d281aae1aa096d91521777e33a41c8b446448a",
+ "baseline_omc_sha256": "734f0a39319fbfa930bcc62cb30dbf06d47d78e126372b74f5baf478e6126b61",
+ "native_x86": [],
+ "host": {
+  "cpu_model": "SYNTH CPU",
+  "hypervisor_flag": "no",
+  "virtualization": "none",
+  "kernel": "6.8.0-synth",
+  "os": "synth",
+  "binfmt_qemu_aarch64": {
+   "interpreter": "/usr/bin/qemu-aarch64-static",
+   "version": "v",
+   "sha256": "0000000000000000000000000000000000000000000000000000000000000000"
+  }
+ },
+ "toolchains": {
+  "gcc": "v",
+  "g++": "v",
+  "rustc": "v",
+  "zig": "v",
+  "go": "v",
+  "python": "v"
+ },
+ "commands": [
+  {
+   "command": "OMEGA_NATIVE_X86_EXEC=native sh tests/native/x86/run.sh EMPTY_OUTPUT",
+   "exit": 0,
+   "result": "1 PASS, 0 FAIL; NATIVE-X86 NATIVE PASS"
+  },
+  {
+   "command": "OMEGA_NATIVE_X86_EXEC=native python3 tests/native/x86/test_build_failures.py EMPTY_OUTPUT",
+   "exit": 0,
+   "result": "NATIVE-X86 CONTROLS PASS (NATIVE)"
+  },
+  {
+   "command": "OMEGA_NATIVE_X86_EXEC=native OMEGA_NATIVE_X86_OMC=<734f0a39 omc> sh tests/native/x86/run.sh EMPTY_OUTPUT",
+   "exit": 1,
+   "result": "negative control: FAIL x86 compiler pin"
+  },
+  {
+   "command": "OMEGA_NATIVE_X86_OMC=<mut> sh tools/native --target x86linux OUTDIR tests/native/x86/follow.om",
+   "exit": 1,
+   "result": "negative control: tools/native refused"
+  }
+ ],
+ "logs_sha256": {
+  "x86-native.log": "6b764c5ad52f458abaac582df82bf3ab9d037c2ce40884df383ee6f9026be78e",
+  "x86-native-controls.log": "c80ee095054f493bcf40fc63566c4efae6d3cd8bd16ea14a00812ef150788ec6",
+  "x86-native-wrongpin.log": "3a970734477b984eb801e1a5bc4e78d4808f3fad82f76e9739b06ae8e03f540c",
+  "x86-native-mut.log": "b6eb5490eb831d9c917a893fd1582a0f1001c13301fed67404611d5eb2c534b0"
+ }
+}
diff --git a/tests/native/x86/receipt-fixtures/edge/repr-strings/native-x86-physical-be8c5130.json b/tests/native/x86/receipt-fixtures/edge/repr-strings/native-x86-physical-be8c5130.json
new file mode 100644
index 0000000..1d7b6a6
--- /dev/null
+++ b/tests/native/x86/receipt-fixtures/edge/repr-strings/native-x86-physical-be8c5130.json
@@ -0,0 +1,57 @@
+{
+ "schema": 1,
+ "status": "NATIVE_PASS",
+ "label": "PHYSICAL",
+ "bridge_commit": "d8174eddf953ad53e16f19eb5841459df99e24bb",
+ "x86_omc_sha256": "be8c51301307555254fc59e351d281aae1aa096d91521777e33a41c8b446448a",
+ "baseline_omc_sha256": "734f0a39319fbfa930bcc62cb30dbf06d47d78e126372b74f5baf478e6126b61",
+ "native_x86": "PASS",
+ "host": {
+  "cpu_model": "SYNTH CPU",
+  "hypervisor_flag": "it's",
+  "virtualization": "a\"b'c \u0001\u007f é \u2028 \ud83d\ude00 \u00a0",
+  "kernel": "6.8.0-synth",
+  "os": "synth",
+  "binfmt_qemu_aarch64": {
+   "interpreter": "/usr/bin/qemu-aarch64-static",
+   "version": "v",
+   "sha256": "0000000000000000000000000000000000000000000000000000000000000000"
+  }
+ },
+ "toolchains": {
+  "gcc": "v",
+  "g++": "v",
+  "rustc": "v",
+  "zig": "v",
+  "go": "v",
+  "python": "v"
+ },
+ "commands": [
+  {
+   "command": "OMEGA_NATIVE_X86_EXEC=native sh tests/native/x86/run.sh EMPTY_OUTPUT",
+   "exit": 0,
+   "result": "1 PASS, 0 FAIL; NATIVE-X86 NATIVE PASS"
+  },
+  {
+   "command": "OMEGA_NATIVE_X86_EXEC=native python3 tests/native/x86/test_build_failures.py EMPTY_OUTPUT",
+   "exit": 0,
+   "result": "NATIVE-X86 CONTROLS PASS (NATIVE)"
+  },
+  {
+   "command": "OMEGA_NATIVE_X86_EXEC=native OMEGA_NATIVE_X86_OMC=<734f0a39 omc> sh tests/native/x86/run.sh EMPTY_OUTPUT",
+   "exit": 1,
+   "result": "negative control: FAIL x86 compiler pin"
+  },
+  {
+   "command": "OMEGA_NATIVE_X86_OMC=<mut> sh tools/native --target x86linux OUTDIR tests/native/x86/follow.om",
+   "exit": 1,
+   "result": "negative control: tools/native refused"
+  }
+ ],
+ "logs_sha256": {
+  "x86-native.log": "6b764c5ad52f458abaac582df82bf3ab9d037c2ce40884df383ee6f9026be78e",
+  "x86-native-controls.log": "c80ee095054f493bcf40fc63566c4efae6d3cd8bd16ea14a00812ef150788ec6",
+  "x86-native-wrongpin.log": "3a970734477b984eb801e1a5bc4e78d4808f3fad82f76e9739b06ae8e03f540c",
+  "x86-native-mut.log": "b6eb5490eb831d9c917a893fd1582a0f1001c13301fed67404611d5eb2c534b0"
+ }
+}
diff --git a/tests/native/x86/receipt-fixtures/edge/schema-true/native-x86-physical-be8c5130.json b/tests/native/x86/receipt-fixtures/edge/schema-true/native-x86-physical-be8c5130.json
new file mode 100644
index 0000000..14fa041
--- /dev/null
+++ b/tests/native/x86/receipt-fixtures/edge/schema-true/native-x86-physical-be8c5130.json
@@ -0,0 +1,57 @@
+{
+ "schema": true,
+ "status": "NATIVE_PASS",
+ "label": "PHYSICAL",
+ "bridge_commit": "d8174eddf953ad53e16f19eb5841459df99e24bb",
+ "x86_omc_sha256": "be8c51301307555254fc59e351d281aae1aa096d91521777e33a41c8b446448a",
+ "baseline_omc_sha256": "734f0a39319fbfa930bcc62cb30dbf06d47d78e126372b74f5baf478e6126b61",
+ "native_x86": "PASS",
+ "host": {
+  "cpu_model": "SYNTH CPU",
+  "hypervisor_flag": "no",
+  "virtualization": "none",
+  "kernel": "6.8.0-synth",
+  "os": "synth",
+  "binfmt_qemu_aarch64": {
+   "interpreter": "/usr/bin/qemu-aarch64-static",
+   "version": "v",
+   "sha256": "0000000000000000000000000000000000000000000000000000000000000000"
+  }
+ },
+ "toolchains": {
+  "gcc": "v",
+  "g++": "v",
+  "rustc": "v",
+  "zig": "v",
+  "go": "v",
+  "python": "v"
+ },
+ "commands": [
+  {
+   "command": "OMEGA_NATIVE_X86_EXEC=native sh tests/native/x86/run.sh EMPTY_OUTPUT",
+   "exit": 0,
+   "result": "1 PASS, 0 FAIL; NATIVE-X86 NATIVE PASS"
+  },
+  {
+   "command": "OMEGA_NATIVE_X86_EXEC=native python3 tests/native/x86/test_build_failures.py EMPTY_OUTPUT",
+   "exit": 0,
+   "result": "NATIVE-X86 CONTROLS PASS (NATIVE)"
+  },
+  {
+   "command": "OMEGA_NATIVE_X86_EXEC=native OMEGA_NATIVE_X86_OMC=<734f0a39 omc> sh tests/native/x86/run.sh EMPTY_OUTPUT",
+   "exit": 1,
+   "result": "negative control: FAIL x86 compiler pin"
+  },
+  {
+   "command": "OMEGA_NATIVE_X86_OMC=<mut> sh tools/native --target x86linux OUTDIR tests/native/x86/follow.om",
+   "exit": 1,
+   "result": "negative control: tools/native refused"
+  }
+ ],
+ "logs_sha256": {
+  "x86-native.log": "6b764c5ad52f458abaac582df82bf3ab9d037c2ce40884df383ee6f9026be78e",
+  "x86-native-controls.log": "c80ee095054f493bcf40fc63566c4efae6d3cd8bd16ea14a00812ef150788ec6",
+  "x86-native-wrongpin.log": "3a970734477b984eb801e1a5bc4e78d4808f3fad82f76e9739b06ae8e03f540c",
+  "x86-native-mut.log": "b6eb5490eb831d9c917a893fd1582a0f1001c13301fed67404611d5eb2c534b0"
+ }
+}
diff --git a/tests/native/x86/receipt-fixtures/edge/three-commands/native-x86-physical-be8c5130.json b/tests/native/x86/receipt-fixtures/edge/three-commands/native-x86-physical-be8c5130.json
new file mode 100644
index 0000000..52fbd6c
--- /dev/null
+++ b/tests/native/x86/receipt-fixtures/edge/three-commands/native-x86-physical-be8c5130.json
@@ -0,0 +1,52 @@
+{
+ "schema": 1,
+ "status": "NATIVE_PASS",
+ "label": "PHYSICAL",
+ "bridge_commit": "d8174eddf953ad53e16f19eb5841459df99e24bb",
+ "x86_omc_sha256": "be8c51301307555254fc59e351d281aae1aa096d91521777e33a41c8b446448a",
+ "baseline_omc_sha256": "734f0a39319fbfa930bcc62cb30dbf06d47d78e126372b74f5baf478e6126b61",
+ "native_x86": "PASS",
+ "host": {
+  "cpu_model": "SYNTH CPU",
+  "hypervisor_flag": "no",
+  "virtualization": "none",
+  "kernel": "6.8.0-synth",
+  "os": "synth",
+  "binfmt_qemu_aarch64": {
+   "interpreter": "/usr/bin/qemu-aarch64-static",
+   "version": "v",
+   "sha256": "0000000000000000000000000000000000000000000000000000000000000000"
+  }
+ },
+ "toolchains": {
+  "gcc": "v",
+  "g++": "v",
+  "rustc": "v",
+  "zig": "v",
+  "go": "v",
+  "python": "v"
+ },
+ "commands": [
+  {
+   "command": "OMEGA_NATIVE_X86_EXEC=native sh tests/native/x86/run.sh EMPTY_OUTPUT",
+   "exit": 0,
+   "result": "1 PASS, 0 FAIL; NATIVE-X86 NATIVE PASS"
+  },
+  {
+   "command": "OMEGA_NATIVE_X86_EXEC=native python3 tests/native/x86/test_build_failures.py EMPTY_OUTPUT",
+   "exit": 0,
+   "result": "NATIVE-X86 CONTROLS PASS (NATIVE)"
+  },
+  {
+   "command": "OMEGA_NATIVE_X86_EXEC=native OMEGA_NATIVE_X86_OMC=<734f0a39 omc> sh tests/native/x86/run.sh EMPTY_OUTPUT",
+   "exit": 1,
+   "result": "negative control: FAIL x86 compiler pin"
+  }
+ ],
+ "logs_sha256": {
+  "x86-native.log": "6b764c5ad52f458abaac582df82bf3ab9d037c2ce40884df383ee6f9026be78e",
+  "x86-native-controls.log": "c80ee095054f493bcf40fc63566c4efae6d3cd8bd16ea14a00812ef150788ec6",
+  "x86-native-wrongpin.log": "3a970734477b984eb801e1a5bc4e78d4808f3fad82f76e9739b06ae8e03f540c",
+  "x86-native-mut.log": "b6eb5490eb831d9c917a893fd1582a0f1001c13301fed67404611d5eb2c534b0"
+ }
+}
diff --git a/tests/native/x86/receipt-fixtures/expected/accept.out b/tests/native/x86/receipt-fixtures/expected/accept.out
new file mode 100644
index 0000000..4f638cc
--- /dev/null
+++ b/tests/native/x86/receipt-fixtures/expected/accept.out
@@ -0,0 +1,55 @@
+PASS receipt is a JSON object
+PASS schema is 1
+PASS label is PHYSICAL (got 'PHYSICAL')
+PASS status is NATIVE_PASS (got 'NATIVE_PASS')
+PASS native_x86 is PASS (got 'PASS')
+PASS receipt nowhere says EMULATED
+PASS bridge_commit is a full sha
+PASS x86_omc_sha256 is the tools/native X86_PIN
+PASS baseline_omc_sha256 is the tools/native PIN
+PASS file name carries the x86 pin prefix
+PASS host.virtualization is none (got 'none')
+PASS host.hypervisor_flag is no (got 'no')
+PASS host.cpu_model is recorded
+PASS host.kernel is recorded
+PASS host.os is recorded
+PASS host.binfmt_qemu_aarch64 interpreter and version recorded
+PASS host.binfmt_qemu_aarch64 sha256 recorded
+PASS toolchains.gcc version recorded
+PASS toolchains.g++ version recorded
+PASS toolchains.rustc version recorded
+PASS toolchains.zig version recorded
+PASS toolchains.go version recorded
+PASS toolchains.python version recorded
+PASS four runbook commands recorded (got 4)
+PASS command 1 is the runbook command (OMEGA_NATIVE_X86_EXEC=native sh tests/native/x86/run.sh)
+PASS command 1 exit is 0 (got 0)
+PASS command 1 result names NATIVE-X86 NATIVE PASS
+PASS command 2 is the runbook command (OMEGA_NATIVE_X86_EXEC=native python3 tests/native/x86/test_build_failures.py)
+PASS command 2 exit is 0 (got 0)
+PASS command 2 result names NATIVE-X86 CONTROLS PASS
+PASS command 3 is the runbook command (OMEGA_NATIVE_X86_OMC=)
+PASS command 3 exit is 1 (got 1)
+PASS command 3 result names FAIL x86 compiler pin
+PASS command 4 is the runbook command (tools/native --target x86linux)
+PASS command 4 exit is 1 (got 1)
+PASS command 4 result names refused
+PASS log x86-native.log present in tests/native/x86/receipt-fixtures/accept/native-x86-physical-be8c5130
+PASS log x86-native.log sha256 matches receipt
+PASS log x86-native-controls.log present in tests/native/x86/receipt-fixtures/accept/native-x86-physical-be8c5130
+PASS log x86-native-controls.log sha256 matches receipt
+PASS log x86-native-wrongpin.log present in tests/native/x86/receipt-fixtures/accept/native-x86-physical-be8c5130
+PASS log x86-native-wrongpin.log sha256 matches receipt
+PASS log x86-native-mut.log present in tests/native/x86/receipt-fixtures/accept/native-x86-physical-be8c5130
+PASS log x86-native-mut.log sha256 matches receipt
+PASS suite log ends with the NATIVE PASS line
+PASS suite log never ran EMULATED
+PASS suite log shows virtualization=none
+PASS suite log shows hypervisor flag clear
+PASS suite log has no FAIL line
+PASS suite log cpu model matches receipt
+PASS suite log kernel matches receipt
+PASS controls log reports NATIVE CONTROLS PASS
+PASS wrong-pin log refuses the x86 compiler pin
+PASS mutated-compiler log is refused by tools/native
+PHYSICAL-RECEIPT ACCEPTED (format and log consistency only; not a run)
diff --git a/tests/native/x86/receipt-fixtures/expected/committed-be8c5130.out b/tests/native/x86/receipt-fixtures/expected/committed-be8c5130.out
new file mode 100644
index 0000000..e942302
--- /dev/null
+++ b/tests/native/x86/receipt-fixtures/expected/committed-be8c5130.out
@@ -0,0 +1,51 @@
+PASS receipt is a JSON object
+PASS schema is 1
+FAIL label is PHYSICAL (got None)
+FAIL status is NATIVE_PASS (got 'EMULATED_PASS')
+FAIL native_x86 is PASS (got 'NOT_RUN')
+FAIL receipt nowhere says EMULATED
+PASS bridge_commit is a full sha
+PASS x86_omc_sha256 is the tools/native X86_PIN
+PASS baseline_omc_sha256 is the tools/native PIN
+FAIL file name carries the x86 pin prefix
+FAIL host.virtualization is none (got None)
+FAIL host.hypervisor_flag is no (got None)
+FAIL host.cpu_model is recorded
+FAIL host.kernel is recorded
+FAIL host.os is recorded
+FAIL host.binfmt_qemu_aarch64 interpreter and version recorded
+FAIL host.binfmt_qemu_aarch64 sha256 recorded
+FAIL toolchains.gcc version recorded
+FAIL toolchains.g++ version recorded
+FAIL toolchains.rustc version recorded
+FAIL toolchains.zig version recorded
+FAIL toolchains.go version recorded
+FAIL toolchains.python version recorded
+FAIL four runbook commands recorded (got 6)
+FAIL command 1 is the runbook command (OMEGA_NATIVE_X86_EXEC=native sh tests/native/x86/run.sh)
+PASS command 1 exit is 0 (got 0)
+FAIL command 1 result names NATIVE-X86 NATIVE PASS
+FAIL command 2 is the runbook command (OMEGA_NATIVE_X86_EXEC=native python3 tests/native/x86/test_build_failures.py)
+PASS command 2 exit is 0 (got 0)
+FAIL command 2 result names NATIVE-X86 CONTROLS PASS
+FAIL command 3 is the runbook command (OMEGA_NATIVE_X86_OMC=)
+FAIL command 3 exit is 1 (got 0)
+FAIL command 3 result names FAIL x86 compiler pin
+FAIL command 4 is the runbook command (tools/native --target x86linux)
+FAIL command 4 exit is 1 (got 0)
+FAIL command 4 result names refused
+FAIL log x86-native.log present in evidence/native-x86-be8c5130
+FAIL log x86-native-controls.log present in evidence/native-x86-be8c5130
+FAIL log x86-native-wrongpin.log present in evidence/native-x86-be8c5130
+FAIL log x86-native-mut.log present in evidence/native-x86-be8c5130
+FAIL suite log ends with the NATIVE PASS line
+PASS suite log never ran EMULATED
+FAIL suite log shows virtualization=none
+FAIL suite log shows hypervisor flag clear
+PASS suite log has no FAIL line
+FAIL suite log cpu model matches receipt
+FAIL suite log kernel matches receipt
+FAIL controls log reports NATIVE CONTROLS PASS
+FAIL wrong-pin log refuses the x86 compiler pin
+FAIL mutated-compiler log is refused by tools/native
+PHYSICAL-RECEIPT REJECTED (41 failed: label is PHYSICAL (got None); status is NATIVE_PASS (got 'EMULATED_PASS'); native_x86 is PASS (got 'NOT_RUN'); receipt nowhere says EMULATED)
diff --git a/tests/native/x86/receipt-fixtures/expected/edge-blank-fields.out b/tests/native/x86/receipt-fixtures/expected/edge-blank-fields.out
new file mode 100644
index 0000000..2dd4c9a
--- /dev/null
+++ b/tests/native/x86/receipt-fixtures/expected/edge-blank-fields.out
@@ -0,0 +1,55 @@
+PASS receipt is a JSON object
+PASS schema is 1
+PASS label is PHYSICAL (got 'PHYSICAL')
+PASS status is NATIVE_PASS (got 'NATIVE_PASS')
+PASS native_x86 is PASS (got 'PASS')
+PASS receipt nowhere says EMULATED
+PASS bridge_commit is a full sha
+PASS x86_omc_sha256 is the tools/native X86_PIN
+PASS baseline_omc_sha256 is the tools/native PIN
+PASS file name carries the x86 pin prefix
+PASS host.virtualization is none (got 'none')
+PASS host.hypervisor_flag is no (got 'no')
+FAIL host.cpu_model is recorded
+PASS host.kernel is recorded
+FAIL host.os is recorded
+PASS host.binfmt_qemu_aarch64 interpreter and version recorded
+PASS host.binfmt_qemu_aarch64 sha256 recorded
+PASS toolchains.gcc version recorded
+PASS toolchains.g++ version recorded
+PASS toolchains.rustc version recorded
+FAIL toolchains.zig version recorded
+PASS toolchains.go version recorded
+PASS toolchains.python version recorded
+PASS four runbook commands recorded (got 4)
+PASS command 1 is the runbook command (OMEGA_NATIVE_X86_EXEC=native sh tests/native/x86/run.sh)
+PASS command 1 exit is 0 (got 0)
+PASS command 1 result names NATIVE-X86 NATIVE PASS
+PASS command 2 is the runbook command (OMEGA_NATIVE_X86_EXEC=native python3 tests/native/x86/test_build_failures.py)
+PASS command 2 exit is 0 (got 0)
+PASS command 2 result names NATIVE-X86 CONTROLS PASS
+PASS command 3 is the runbook command (OMEGA_NATIVE_X86_OMC=)
+PASS command 3 exit is 1 (got 1)
+PASS command 3 result names FAIL x86 compiler pin
+PASS command 4 is the runbook command (tools/native --target x86linux)
+PASS command 4 exit is 1 (got 1)
+PASS command 4 result names refused
+PASS log x86-native.log present in tests/native/x86/receipt-fixtures/accept/native-x86-physical-be8c5130
+PASS log x86-native.log sha256 matches receipt
+PASS log x86-native-controls.log present in tests/native/x86/receipt-fixtures/accept/native-x86-physical-be8c5130
+PASS log x86-native-controls.log sha256 matches receipt
+PASS log x86-native-wrongpin.log present in tests/native/x86/receipt-fixtures/accept/native-x86-physical-be8c5130
+PASS log x86-native-wrongpin.log sha256 matches receipt
+PASS log x86-native-mut.log present in tests/native/x86/receipt-fixtures/accept/native-x86-physical-be8c5130
+PASS log x86-native-mut.log sha256 matches receipt
+PASS suite log ends with the NATIVE PASS line
+PASS suite log never ran EMULATED
+PASS suite log shows virtualization=none
+PASS suite log shows hypervisor flag clear
+PASS suite log has no FAIL line
+FAIL suite log cpu model matches receipt
+PASS suite log kernel matches receipt
+PASS controls log reports NATIVE CONTROLS PASS
+PASS wrong-pin log refuses the x86 compiler pin
+PASS mutated-compiler log is refused by tools/native
+PHYSICAL-RECEIPT REJECTED (4 failed: host.cpu_model is recorded; host.os is recorded; toolchains.zig version recorded; suite log cpu model matches receipt)
diff --git a/tests/native/x86/receipt-fixtures/expected/edge-dup-key-dead-emulated.out b/tests/native/x86/receipt-fixtures/expected/edge-dup-key-dead-emulated.out
new file mode 100644
index 0000000..ae90772
--- /dev/null
+++ b/tests/native/x86/receipt-fixtures/expected/edge-dup-key-dead-emulated.out
@@ -0,0 +1,55 @@
+PASS receipt is a JSON object
+PASS schema is 1
+FAIL label is PHYSICAL (got 'EMULATED')
+PASS status is NATIVE_PASS (got 'NATIVE_PASS')
+PASS native_x86 is PASS (got 'PASS')
+FAIL receipt nowhere says EMULATED
+PASS bridge_commit is a full sha
+PASS x86_omc_sha256 is the tools/native X86_PIN
+PASS baseline_omc_sha256 is the tools/native PIN
+PASS file name carries the x86 pin prefix
+PASS host.virtualization is none (got 'none')
+PASS host.hypervisor_flag is no (got 'no')
+PASS host.cpu_model is recorded
+PASS host.kernel is recorded
+PASS host.os is recorded
+PASS host.binfmt_qemu_aarch64 interpreter and version recorded
+PASS host.binfmt_qemu_aarch64 sha256 recorded
+PASS toolchains.gcc version recorded
+PASS toolchains.g++ version recorded
+PASS toolchains.rustc version recorded
+PASS toolchains.zig version recorded
+PASS toolchains.go version recorded
+PASS toolchains.python version recorded
+PASS four runbook commands recorded (got 4)
+PASS command 1 is the runbook command (OMEGA_NATIVE_X86_EXEC=native sh tests/native/x86/run.sh)
+PASS command 1 exit is 0 (got 0)
+PASS command 1 result names NATIVE-X86 NATIVE PASS
+PASS command 2 is the runbook command (OMEGA_NATIVE_X86_EXEC=native python3 tests/native/x86/test_build_failures.py)
+PASS command 2 exit is 0 (got 0)
+PASS command 2 result names NATIVE-X86 CONTROLS PASS
+PASS command 3 is the runbook command (OMEGA_NATIVE_X86_OMC=)
+PASS command 3 exit is 1 (got 1)
+PASS command 3 result names FAIL x86 compiler pin
+PASS command 4 is the runbook command (tools/native --target x86linux)
+PASS command 4 exit is 1 (got 1)
+PASS command 4 result names refused
+PASS log x86-native.log present in tests/native/x86/receipt-fixtures/accept/native-x86-physical-be8c5130
+PASS log x86-native.log sha256 matches receipt
+PASS log x86-native-controls.log present in tests/native/x86/receipt-fixtures/accept/native-x86-physical-be8c5130
+PASS log x86-native-controls.log sha256 matches receipt
+PASS log x86-native-wrongpin.log present in tests/native/x86/receipt-fixtures/accept/native-x86-physical-be8c5130
+PASS log x86-native-wrongpin.log sha256 matches receipt
+PASS log x86-native-mut.log present in tests/native/x86/receipt-fixtures/accept/native-x86-physical-be8c5130
+PASS log x86-native-mut.log sha256 matches receipt
+PASS suite log ends with the NATIVE PASS line
+PASS suite log never ran EMULATED
+PASS suite log shows virtualization=none
+PASS suite log shows hypervisor flag clear
+PASS suite log has no FAIL line
+PASS suite log cpu model matches receipt
+PASS suite log kernel matches receipt
+PASS controls log reports NATIVE CONTROLS PASS
+PASS wrong-pin log refuses the x86 compiler pin
+PASS mutated-compiler log is refused by tools/native
+PHYSICAL-RECEIPT REJECTED (2 failed: label is PHYSICAL (got 'EMULATED'); receipt nowhere says EMULATED)
diff --git a/tests/native/x86/receipt-fixtures/expected/edge-dup-key-last-wins.out b/tests/native/x86/receipt-fixtures/expected/edge-dup-key-last-wins.out
new file mode 100644
index 0000000..4f638cc
--- /dev/null
+++ b/tests/native/x86/receipt-fixtures/expected/edge-dup-key-last-wins.out
@@ -0,0 +1,55 @@
+PASS receipt is a JSON object
+PASS schema is 1
+PASS label is PHYSICAL (got 'PHYSICAL')
+PASS status is NATIVE_PASS (got 'NATIVE_PASS')
+PASS native_x86 is PASS (got 'PASS')
+PASS receipt nowhere says EMULATED
+PASS bridge_commit is a full sha
+PASS x86_omc_sha256 is the tools/native X86_PIN
+PASS baseline_omc_sha256 is the tools/native PIN
+PASS file name carries the x86 pin prefix
+PASS host.virtualization is none (got 'none')
+PASS host.hypervisor_flag is no (got 'no')
+PASS host.cpu_model is recorded
+PASS host.kernel is recorded
+PASS host.os is recorded
+PASS host.binfmt_qemu_aarch64 interpreter and version recorded
+PASS host.binfmt_qemu_aarch64 sha256 recorded
+PASS toolchains.gcc version recorded
+PASS toolchains.g++ version recorded
+PASS toolchains.rustc version recorded
+PASS toolchains.zig version recorded
+PASS toolchains.go version recorded
+PASS toolchains.python version recorded
+PASS four runbook commands recorded (got 4)
+PASS command 1 is the runbook command (OMEGA_NATIVE_X86_EXEC=native sh tests/native/x86/run.sh)
+PASS command 1 exit is 0 (got 0)
+PASS command 1 result names NATIVE-X86 NATIVE PASS
+PASS command 2 is the runbook command (OMEGA_NATIVE_X86_EXEC=native python3 tests/native/x86/test_build_failures.py)
+PASS command 2 exit is 0 (got 0)
+PASS command 2 result names NATIVE-X86 CONTROLS PASS
+PASS command 3 is the runbook command (OMEGA_NATIVE_X86_OMC=)
+PASS command 3 exit is 1 (got 1)
+PASS command 3 result names FAIL x86 compiler pin
+PASS command 4 is the runbook command (tools/native --target x86linux)
+PASS command 4 exit is 1 (got 1)
+PASS command 4 result names refused
+PASS log x86-native.log present in tests/native/x86/receipt-fixtures/accept/native-x86-physical-be8c5130
+PASS log x86-native.log sha256 matches receipt
+PASS log x86-native-controls.log present in tests/native/x86/receipt-fixtures/accept/native-x86-physical-be8c5130
+PASS log x86-native-controls.log sha256 matches receipt
+PASS log x86-native-wrongpin.log present in tests/native/x86/receipt-fixtures/accept/native-x86-physical-be8c5130
+PASS log x86-native-wrongpin.log sha256 matches receipt
+PASS log x86-native-mut.log present in tests/native/x86/receipt-fixtures/accept/native-x86-physical-be8c5130
+PASS log x86-native-mut.log sha256 matches receipt
+PASS suite log ends with the NATIVE PASS line
+PASS suite log never ran EMULATED
+PASS suite log shows virtualization=none
+PASS suite log shows hypervisor flag clear
+PASS suite log has no FAIL line
+PASS suite log cpu model matches receipt
+PASS suite log kernel matches receipt
+PASS controls log reports NATIVE CONTROLS PASS
+PASS wrong-pin log refuses the x86 compiler pin
+PASS mutated-compiler log is refused by tools/native
+PHYSICAL-RECEIPT ACCEPTED (format and log consistency only; not a run)
diff --git a/tests/native/x86/receipt-fixtures/expected/edge-emulated-in-key.out b/tests/native/x86/receipt-fixtures/expected/edge-emulated-in-key.out
new file mode 100644
index 0000000..3657e67
--- /dev/null
+++ b/tests/native/x86/receipt-fixtures/expected/edge-emulated-in-key.out
@@ -0,0 +1,55 @@
+PASS receipt is a JSON object
+PASS schema is 1
+PASS label is PHYSICAL (got 'PHYSICAL')
+PASS status is NATIVE_PASS (got 'NATIVE_PASS')
+PASS native_x86 is PASS (got 'PASS')
+FAIL receipt nowhere says EMULATED
+PASS bridge_commit is a full sha
+PASS x86_omc_sha256 is the tools/native X86_PIN
+PASS baseline_omc_sha256 is the tools/native PIN
+PASS file name carries the x86 pin prefix
+PASS host.virtualization is none (got 'none')
+PASS host.hypervisor_flag is no (got 'no')
+PASS host.cpu_model is recorded
+PASS host.kernel is recorded
+PASS host.os is recorded
+PASS host.binfmt_qemu_aarch64 interpreter and version recorded
+PASS host.binfmt_qemu_aarch64 sha256 recorded
+PASS toolchains.gcc version recorded
+PASS toolchains.g++ version recorded
+PASS toolchains.rustc version recorded
+PASS toolchains.zig version recorded
+PASS toolchains.go version recorded
+PASS toolchains.python version recorded
+PASS four runbook commands recorded (got 4)
+PASS command 1 is the runbook command (OMEGA_NATIVE_X86_EXEC=native sh tests/native/x86/run.sh)
+PASS command 1 exit is 0 (got 0)
+PASS command 1 result names NATIVE-X86 NATIVE PASS
+PASS command 2 is the runbook command (OMEGA_NATIVE_X86_EXEC=native python3 tests/native/x86/test_build_failures.py)
+PASS command 2 exit is 0 (got 0)
+PASS command 2 result names NATIVE-X86 CONTROLS PASS
+PASS command 3 is the runbook command (OMEGA_NATIVE_X86_OMC=)
+PASS command 3 exit is 1 (got 1)
+PASS command 3 result names FAIL x86 compiler pin
+PASS command 4 is the runbook command (tools/native --target x86linux)
+PASS command 4 exit is 1 (got 1)
+PASS command 4 result names refused
+PASS log x86-native.log present in tests/native/x86/receipt-fixtures/accept/native-x86-physical-be8c5130
+PASS log x86-native.log sha256 matches receipt
+PASS log x86-native-controls.log present in tests/native/x86/receipt-fixtures/accept/native-x86-physical-be8c5130
+PASS log x86-native-controls.log sha256 matches receipt
+PASS log x86-native-wrongpin.log present in tests/native/x86/receipt-fixtures/accept/native-x86-physical-be8c5130
+PASS log x86-native-wrongpin.log sha256 matches receipt
+PASS log x86-native-mut.log present in tests/native/x86/receipt-fixtures/accept/native-x86-physical-be8c5130
+PASS log x86-native-mut.log sha256 matches receipt
+PASS suite log ends with the NATIVE PASS line
+PASS suite log never ran EMULATED
+PASS suite log shows virtualization=none
+PASS suite log shows hypervisor flag clear
+PASS suite log has no FAIL line
+PASS suite log cpu model matches receipt
+PASS suite log kernel matches receipt
+PASS controls log reports NATIVE CONTROLS PASS
+PASS wrong-pin log refuses the x86 compiler pin
+PASS mutated-compiler log is refused by tools/native
+PHYSICAL-RECEIPT REJECTED (1 failed: receipt nowhere says EMULATED)
diff --git a/tests/native/x86/receipt-fixtures/expected/edge-escaped-label.out b/tests/native/x86/receipt-fixtures/expected/edge-escaped-label.out
new file mode 100644
index 0000000..4f638cc
--- /dev/null
+++ b/tests/native/x86/receipt-fixtures/expected/edge-escaped-label.out
@@ -0,0 +1,55 @@
+PASS receipt is a JSON object
+PASS schema is 1
+PASS label is PHYSICAL (got 'PHYSICAL')
+PASS status is NATIVE_PASS (got 'NATIVE_PASS')
+PASS native_x86 is PASS (got 'PASS')
+PASS receipt nowhere says EMULATED
+PASS bridge_commit is a full sha
+PASS x86_omc_sha256 is the tools/native X86_PIN
+PASS baseline_omc_sha256 is the tools/native PIN
+PASS file name carries the x86 pin prefix
+PASS host.virtualization is none (got 'none')
+PASS host.hypervisor_flag is no (got 'no')
+PASS host.cpu_model is recorded
+PASS host.kernel is recorded
+PASS host.os is recorded
+PASS host.binfmt_qemu_aarch64 interpreter and version recorded
+PASS host.binfmt_qemu_aarch64 sha256 recorded
+PASS toolchains.gcc version recorded
+PASS toolchains.g++ version recorded
+PASS toolchains.rustc version recorded
+PASS toolchains.zig version recorded
+PASS toolchains.go version recorded
+PASS toolchains.python version recorded
+PASS four runbook commands recorded (got 4)
+PASS command 1 is the runbook command (OMEGA_NATIVE_X86_EXEC=native sh tests/native/x86/run.sh)
+PASS command 1 exit is 0 (got 0)
+PASS command 1 result names NATIVE-X86 NATIVE PASS
+PASS command 2 is the runbook command (OMEGA_NATIVE_X86_EXEC=native python3 tests/native/x86/test_build_failures.py)
+PASS command 2 exit is 0 (got 0)
+PASS command 2 result names NATIVE-X86 CONTROLS PASS
+PASS command 3 is the runbook command (OMEGA_NATIVE_X86_OMC=)
+PASS command 3 exit is 1 (got 1)
+PASS command 3 result names FAIL x86 compiler pin
+PASS command 4 is the runbook command (tools/native --target x86linux)
+PASS command 4 exit is 1 (got 1)
+PASS command 4 result names refused
+PASS log x86-native.log present in tests/native/x86/receipt-fixtures/accept/native-x86-physical-be8c5130
+PASS log x86-native.log sha256 matches receipt
+PASS log x86-native-controls.log present in tests/native/x86/receipt-fixtures/accept/native-x86-physical-be8c5130
+PASS log x86-native-controls.log sha256 matches receipt
+PASS log x86-native-wrongpin.log present in tests/native/x86/receipt-fixtures/accept/native-x86-physical-be8c5130
+PASS log x86-native-wrongpin.log sha256 matches receipt
+PASS log x86-native-mut.log present in tests/native/x86/receipt-fixtures/accept/native-x86-physical-be8c5130
+PASS log x86-native-mut.log sha256 matches receipt
+PASS suite log ends with the NATIVE PASS line
+PASS suite log never ran EMULATED
+PASS suite log shows virtualization=none
+PASS suite log shows hypervisor flag clear
+PASS suite log has no FAIL line
+PASS suite log cpu model matches receipt
+PASS suite log kernel matches receipt
+PASS controls log reports NATIVE CONTROLS PASS
+PASS wrong-pin log refuses the x86 compiler pin
+PASS mutated-compiler log is refused by tools/native
+PHYSICAL-RECEIPT ACCEPTED (format and log consistency only; not a run)
diff --git a/tests/native/x86/receipt-fixtures/expected/edge-exit-forms.out b/tests/native/x86/receipt-fixtures/expected/edge-exit-forms.out
new file mode 100644
index 0000000..a5f0b85
--- /dev/null
+++ b/tests/native/x86/receipt-fixtures/expected/edge-exit-forms.out
@@ -0,0 +1,55 @@
+PASS receipt is a JSON object
+PASS schema is 1
+PASS label is PHYSICAL (got 'PHYSICAL')
+PASS status is NATIVE_PASS (got 'NATIVE_PASS')
+PASS native_x86 is PASS (got 'PASS')
+PASS receipt nowhere says EMULATED
+PASS bridge_commit is a full sha
+PASS x86_omc_sha256 is the tools/native X86_PIN
+PASS baseline_omc_sha256 is the tools/native PIN
+PASS file name carries the x86 pin prefix
+PASS host.virtualization is none (got 'none')
+PASS host.hypervisor_flag is no (got 'no')
+PASS host.cpu_model is recorded
+PASS host.kernel is recorded
+PASS host.os is recorded
+PASS host.binfmt_qemu_aarch64 interpreter and version recorded
+PASS host.binfmt_qemu_aarch64 sha256 recorded
+PASS toolchains.gcc version recorded
+PASS toolchains.g++ version recorded
+PASS toolchains.rustc version recorded
+PASS toolchains.zig version recorded
+PASS toolchains.go version recorded
+PASS toolchains.python version recorded
+PASS four runbook commands recorded (got 4)
+PASS command 1 is the runbook command (OMEGA_NATIVE_X86_EXEC=native sh tests/native/x86/run.sh)
+PASS command 1 exit is 0 (got False)
+PASS command 1 result names NATIVE-X86 NATIVE PASS
+PASS command 2 is the runbook command (OMEGA_NATIVE_X86_EXEC=native python3 tests/native/x86/test_build_failures.py)
+PASS command 2 exit is 0 (got 0)
+PASS command 2 result names NATIVE-X86 CONTROLS PASS
+PASS command 3 is the runbook command (OMEGA_NATIVE_X86_OMC=)
+PASS command 3 exit is 1 (got True)
+PASS command 3 result names FAIL x86 compiler pin
+PASS command 4 is the runbook command (tools/native --target x86linux)
+PASS command 4 exit is 1 (got 1.0)
+PASS command 4 result names refused
+PASS log x86-native.log present in tests/native/x86/receipt-fixtures/accept/native-x86-physical-be8c5130
+PASS log x86-native.log sha256 matches receipt
+PASS log x86-native-controls.log present in tests/native/x86/receipt-fixtures/accept/native-x86-physical-be8c5130
+PASS log x86-native-controls.log sha256 matches receipt
+PASS log x86-native-wrongpin.log present in tests/native/x86/receipt-fixtures/accept/native-x86-physical-be8c5130
+PASS log x86-native-wrongpin.log sha256 matches receipt
+PASS log x86-native-mut.log present in tests/native/x86/receipt-fixtures/accept/native-x86-physical-be8c5130
+PASS log x86-native-mut.log sha256 matches receipt
+PASS suite log ends with the NATIVE PASS line
+PASS suite log never ran EMULATED
+PASS suite log shows virtualization=none
+PASS suite log shows hypervisor flag clear
+PASS suite log has no FAIL line
+PASS suite log cpu model matches receipt
+PASS suite log kernel matches receipt
+PASS controls log reports NATIVE CONTROLS PASS
+PASS wrong-pin log refuses the x86 compiler pin
+PASS mutated-compiler log is refused by tools/native
+PHYSICAL-RECEIPT ACCEPTED (format and log consistency only; not a run)
diff --git a/tests/native/x86/receipt-fixtures/expected/edge-exit-wrong-types.out b/tests/native/x86/receipt-fixtures/expected/edge-exit-wrong-types.out
new file mode 100644
index 0000000..cb727c2
--- /dev/null
+++ b/tests/native/x86/receipt-fixtures/expected/edge-exit-wrong-types.out
@@ -0,0 +1,55 @@
+PASS receipt is a JSON object
+PASS schema is 1
+PASS label is PHYSICAL (got 'PHYSICAL')
+PASS status is NATIVE_PASS (got 'NATIVE_PASS')
+PASS native_x86 is PASS (got 'PASS')
+PASS receipt nowhere says EMULATED
+PASS bridge_commit is a full sha
+PASS x86_omc_sha256 is the tools/native X86_PIN
+PASS baseline_omc_sha256 is the tools/native PIN
+PASS file name carries the x86 pin prefix
+PASS host.virtualization is none (got 'none')
+PASS host.hypervisor_flag is no (got 'no')
+PASS host.cpu_model is recorded
+PASS host.kernel is recorded
+PASS host.os is recorded
+PASS host.binfmt_qemu_aarch64 interpreter and version recorded
+PASS host.binfmt_qemu_aarch64 sha256 recorded
+PASS toolchains.gcc version recorded
+PASS toolchains.g++ version recorded
+PASS toolchains.rustc version recorded
+PASS toolchains.zig version recorded
+PASS toolchains.go version recorded
+PASS toolchains.python version recorded
+PASS four runbook commands recorded (got 4)
+PASS command 1 is the runbook command (OMEGA_NATIVE_X86_EXEC=native sh tests/native/x86/run.sh)
+FAIL command 1 exit is 0 (got '0')
+PASS command 1 result names NATIVE-X86 NATIVE PASS
+PASS command 2 is the runbook command (OMEGA_NATIVE_X86_EXEC=native python3 tests/native/x86/test_build_failures.py)
+PASS command 2 exit is 0 (got 0)
+PASS command 2 result names NATIVE-X86 CONTROLS PASS
+PASS command 3 is the runbook command (OMEGA_NATIVE_X86_OMC=)
+FAIL command 3 exit is 1 (got None)
+PASS command 3 result names FAIL x86 compiler pin
+PASS command 4 is the runbook command (tools/native --target x86linux)
+PASS command 4 exit is 1 (got 1)
+PASS command 4 result names refused
+PASS log x86-native.log present in tests/native/x86/receipt-fixtures/accept/native-x86-physical-be8c5130
+PASS log x86-native.log sha256 matches receipt
+PASS log x86-native-controls.log present in tests/native/x86/receipt-fixtures/accept/native-x86-physical-be8c5130
+PASS log x86-native-controls.log sha256 matches receipt
+PASS log x86-native-wrongpin.log present in tests/native/x86/receipt-fixtures/accept/native-x86-physical-be8c5130
+PASS log x86-native-wrongpin.log sha256 matches receipt
+PASS log x86-native-mut.log present in tests/native/x86/receipt-fixtures/accept/native-x86-physical-be8c5130
+PASS log x86-native-mut.log sha256 matches receipt
+PASS suite log ends with the NATIVE PASS line
+PASS suite log never ran EMULATED
+PASS suite log shows virtualization=none
+PASS suite log shows hypervisor flag clear
+PASS suite log has no FAIL line
+PASS suite log cpu model matches receipt
+PASS suite log kernel matches receipt
+PASS controls log reports NATIVE CONTROLS PASS
+PASS wrong-pin log refuses the x86 compiler pin
+PASS mutated-compiler log is refused by tools/native
+PHYSICAL-RECEIPT REJECTED (2 failed: command 1 exit is 0 (got '0'); command 3 exit is 1 (got None))
diff --git a/tests/native/x86/receipt-fixtures/expected/edge-host-not-object.out b/tests/native/x86/receipt-fixtures/expected/edge-host-not-object.out
new file mode 100644
index 0000000..05d061e
--- /dev/null
+++ b/tests/native/x86/receipt-fixtures/expected/edge-host-not-object.out
@@ -0,0 +1,55 @@
+PASS receipt is a JSON object
+PASS schema is 1
+PASS label is PHYSICAL (got 'PHYSICAL')
+PASS status is NATIVE_PASS (got 'NATIVE_PASS')
+PASS native_x86 is PASS (got 'PASS')
+PASS receipt nowhere says EMULATED
+PASS bridge_commit is a full sha
+PASS x86_omc_sha256 is the tools/native X86_PIN
+PASS baseline_omc_sha256 is the tools/native PIN
+PASS file name carries the x86 pin prefix
+FAIL host.virtualization is none (got None)
+FAIL host.hypervisor_flag is no (got None)
+FAIL host.cpu_model is recorded
+FAIL host.kernel is recorded
+FAIL host.os is recorded
+FAIL host.binfmt_qemu_aarch64 interpreter and version recorded
+FAIL host.binfmt_qemu_aarch64 sha256 recorded
+PASS toolchains.gcc version recorded
+PASS toolchains.g++ version recorded
+PASS toolchains.rustc version recorded
+PASS toolchains.zig version recorded
+PASS toolchains.go version recorded
+PASS toolchains.python version recorded
+PASS four runbook commands recorded (got 4)
+PASS command 1 is the runbook command (OMEGA_NATIVE_X86_EXEC=native sh tests/native/x86/run.sh)
+PASS command 1 exit is 0 (got 0)
+PASS command 1 result names NATIVE-X86 NATIVE PASS
+PASS command 2 is the runbook command (OMEGA_NATIVE_X86_EXEC=native python3 tests/native/x86/test_build_failures.py)
+PASS command 2 exit is 0 (got 0)
+PASS command 2 result names NATIVE-X86 CONTROLS PASS
+PASS command 3 is the runbook command (OMEGA_NATIVE_X86_OMC=)
+PASS command 3 exit is 1 (got 1)
+PASS command 3 result names FAIL x86 compiler pin
+PASS command 4 is the runbook command (tools/native --target x86linux)
+PASS command 4 exit is 1 (got 1)
+PASS command 4 result names refused
+PASS log x86-native.log present in tests/native/x86/receipt-fixtures/accept/native-x86-physical-be8c5130
+PASS log x86-native.log sha256 matches receipt
+PASS log x86-native-controls.log present in tests/native/x86/receipt-fixtures/accept/native-x86-physical-be8c5130
+PASS log x86-native-controls.log sha256 matches receipt
+PASS log x86-native-wrongpin.log present in tests/native/x86/receipt-fixtures/accept/native-x86-physical-be8c5130
+PASS log x86-native-wrongpin.log sha256 matches receipt
+PASS log x86-native-mut.log present in tests/native/x86/receipt-fixtures/accept/native-x86-physical-be8c5130
+PASS log x86-native-mut.log sha256 matches receipt
+PASS suite log ends with the NATIVE PASS line
+PASS suite log never ran EMULATED
+PASS suite log shows virtualization=none
+PASS suite log shows hypervisor flag clear
+PASS suite log has no FAIL line
+FAIL suite log cpu model matches receipt
+FAIL suite log kernel matches receipt
+PASS controls log reports NATIVE CONTROLS PASS
+PASS wrong-pin log refuses the x86 compiler pin
+PASS mutated-compiler log is refused by tools/native
+PHYSICAL-RECEIPT REJECTED (9 failed: host.virtualization is none (got None); host.hypervisor_flag is no (got None); host.cpu_model is recorded; host.kernel is recorded)
diff --git a/tests/native/x86/receipt-fixtures/expected/edge-not-object.out b/tests/native/x86/receipt-fixtures/expected/edge-not-object.out
new file mode 100644
index 0000000..261bf9f
--- /dev/null
+++ b/tests/native/x86/receipt-fixtures/expected/edge-not-object.out
@@ -0,0 +1,2 @@
+FAIL receipt is a JSON object
+PHYSICAL-RECEIPT REJECTED (1 failed: receipt is a JSON object)
diff --git a/tests/native/x86/receipt-fixtures/expected/edge-repr-nested.out b/tests/native/x86/receipt-fixtures/expected/edge-repr-nested.out
new file mode 100644
index 0000000..1b71e96
--- /dev/null
+++ b/tests/native/x86/receipt-fixtures/expected/edge-repr-nested.out
@@ -0,0 +1,55 @@
+PASS receipt is a JSON object
+PASS schema is 1
+PASS label is PHYSICAL (got 'PHYSICAL')
+FAIL status is NATIVE_PASS (got {'a': 'z', 'b': [True, None, 0, 2, 'x'], 'c': {}})
+FAIL native_x86 is PASS (got [])
+PASS receipt nowhere says EMULATED
+PASS bridge_commit is a full sha
+PASS x86_omc_sha256 is the tools/native X86_PIN
+PASS baseline_omc_sha256 is the tools/native PIN
+PASS file name carries the x86 pin prefix
+PASS host.virtualization is none (got 'none')
+PASS host.hypervisor_flag is no (got 'no')
+PASS host.cpu_model is recorded
+PASS host.kernel is recorded
+PASS host.os is recorded
+PASS host.binfmt_qemu_aarch64 interpreter and version recorded
+PASS host.binfmt_qemu_aarch64 sha256 recorded
+PASS toolchains.gcc version recorded
+PASS toolchains.g++ version recorded
+PASS toolchains.rustc version recorded
+PASS toolchains.zig version recorded
+PASS toolchains.go version recorded
+PASS toolchains.python version recorded
+PASS four runbook commands recorded (got 4)
+PASS command 1 is the runbook command (OMEGA_NATIVE_X86_EXEC=native sh tests/native/x86/run.sh)
+PASS command 1 exit is 0 (got 0)
+PASS command 1 result names NATIVE-X86 NATIVE PASS
+PASS command 2 is the runbook command (OMEGA_NATIVE_X86_EXEC=native python3 tests/native/x86/test_build_failures.py)
+PASS command 2 exit is 0 (got 0)
+PASS command 2 result names NATIVE-X86 CONTROLS PASS
+PASS command 3 is the runbook command (OMEGA_NATIVE_X86_OMC=)
+PASS command 3 exit is 1 (got 1)
+PASS command 3 result names FAIL x86 compiler pin
+PASS command 4 is the runbook command (tools/native --target x86linux)
+PASS command 4 exit is 1 (got 1)
+PASS command 4 result names refused
+PASS log x86-native.log present in tests/native/x86/receipt-fixtures/accept/native-x86-physical-be8c5130
+PASS log x86-native.log sha256 matches receipt
+PASS log x86-native-controls.log present in tests/native/x86/receipt-fixtures/accept/native-x86-physical-be8c5130
+PASS log x86-native-controls.log sha256 matches receipt
+PASS log x86-native-wrongpin.log present in tests/native/x86/receipt-fixtures/accept/native-x86-physical-be8c5130
+PASS log x86-native-wrongpin.log sha256 matches receipt
+PASS log x86-native-mut.log present in tests/native/x86/receipt-fixtures/accept/native-x86-physical-be8c5130
+PASS log x86-native-mut.log sha256 matches receipt
+PASS suite log ends with the NATIVE PASS line
+PASS suite log never ran EMULATED
+PASS suite log shows virtualization=none
+PASS suite log shows hypervisor flag clear
+PASS suite log has no FAIL line
+PASS suite log cpu model matches receipt
+PASS suite log kernel matches receipt
+PASS controls log reports NATIVE CONTROLS PASS
+PASS wrong-pin log refuses the x86 compiler pin
+PASS mutated-compiler log is refused by tools/native
+PHYSICAL-RECEIPT REJECTED (2 failed: status is NATIVE_PASS (got {'a': 'z', 'b': [True, None, 0, 2, 'x'], 'c': {}}); native_x86 is PASS (got []))
diff --git a/tests/native/x86/receipt-fixtures/expected/edge-repr-strings.out b/tests/native/x86/receipt-fixtures/expected/edge-repr-strings.out
new file mode 100644
index 0000000..1c5a089
--- /dev/null
+++ b/tests/native/x86/receipt-fixtures/expected/edge-repr-strings.out
@@ -0,0 +1,55 @@
+PASS receipt is a JSON object
+PASS schema is 1
+PASS label is PHYSICAL (got 'PHYSICAL')
+PASS status is NATIVE_PASS (got 'NATIVE_PASS')
+PASS native_x86 is PASS (got 'PASS')
+PASS receipt nowhere says EMULATED
+PASS bridge_commit is a full sha
+PASS x86_omc_sha256 is the tools/native X86_PIN
+PASS baseline_omc_sha256 is the tools/native PIN
+PASS file name carries the x86 pin prefix
+FAIL host.virtualization is none (got 'a"b\'c \x01\x7f é \u2028 😀 \xa0')
+FAIL host.hypervisor_flag is no (got "it's")
+PASS host.cpu_model is recorded
+PASS host.kernel is recorded
+PASS host.os is recorded
+PASS host.binfmt_qemu_aarch64 interpreter and version recorded
+PASS host.binfmt_qemu_aarch64 sha256 recorded
+PASS toolchains.gcc version recorded
+PASS toolchains.g++ version recorded
+PASS toolchains.rustc version recorded
+PASS toolchains.zig version recorded
+PASS toolchains.go version recorded
+PASS toolchains.python version recorded
+PASS four runbook commands recorded (got 4)
+PASS command 1 is the runbook command (OMEGA_NATIVE_X86_EXEC=native sh tests/native/x86/run.sh)
+PASS command 1 exit is 0 (got 0)
+PASS command 1 result names NATIVE-X86 NATIVE PASS
+PASS command 2 is the runbook command (OMEGA_NATIVE_X86_EXEC=native python3 tests/native/x86/test_build_failures.py)
+PASS command 2 exit is 0 (got 0)
+PASS command 2 result names NATIVE-X86 CONTROLS PASS
+PASS command 3 is the runbook command (OMEGA_NATIVE_X86_OMC=)
+PASS command 3 exit is 1 (got 1)
+PASS command 3 result names FAIL x86 compiler pin
+PASS command 4 is the runbook command (tools/native --target x86linux)
+PASS command 4 exit is 1 (got 1)
+PASS command 4 result names refused
+PASS log x86-native.log present in tests/native/x86/receipt-fixtures/accept/native-x86-physical-be8c5130
+PASS log x86-native.log sha256 matches receipt
+PASS log x86-native-controls.log present in tests/native/x86/receipt-fixtures/accept/native-x86-physical-be8c5130
+PASS log x86-native-controls.log sha256 matches receipt
+PASS log x86-native-wrongpin.log present in tests/native/x86/receipt-fixtures/accept/native-x86-physical-be8c5130
+PASS log x86-native-wrongpin.log sha256 matches receipt
+PASS log x86-native-mut.log present in tests/native/x86/receipt-fixtures/accept/native-x86-physical-be8c5130
+PASS log x86-native-mut.log sha256 matches receipt
+PASS suite log ends with the NATIVE PASS line
+PASS suite log never ran EMULATED
+PASS suite log shows virtualization=none
+PASS suite log shows hypervisor flag clear
+PASS suite log has no FAIL line
+PASS suite log cpu model matches receipt
+PASS suite log kernel matches receipt
+PASS controls log reports NATIVE CONTROLS PASS
+PASS wrong-pin log refuses the x86 compiler pin
+PASS mutated-compiler log is refused by tools/native
+PHYSICAL-RECEIPT REJECTED (2 failed: host.virtualization is none (got 'a"b\'c \x01\x7f é \u2028 😀 \xa0'); host.hypervisor_flag is no (got "it's"))
diff --git a/tests/native/x86/receipt-fixtures/expected/edge-schema-true.out b/tests/native/x86/receipt-fixtures/expected/edge-schema-true.out
new file mode 100644
index 0000000..4f638cc
--- /dev/null
+++ b/tests/native/x86/receipt-fixtures/expected/edge-schema-true.out
@@ -0,0 +1,55 @@
+PASS receipt is a JSON object
+PASS schema is 1
+PASS label is PHYSICAL (got 'PHYSICAL')
+PASS status is NATIVE_PASS (got 'NATIVE_PASS')
+PASS native_x86 is PASS (got 'PASS')
+PASS receipt nowhere says EMULATED
+PASS bridge_commit is a full sha
+PASS x86_omc_sha256 is the tools/native X86_PIN
+PASS baseline_omc_sha256 is the tools/native PIN
+PASS file name carries the x86 pin prefix
+PASS host.virtualization is none (got 'none')
+PASS host.hypervisor_flag is no (got 'no')
+PASS host.cpu_model is recorded
+PASS host.kernel is recorded
+PASS host.os is recorded
+PASS host.binfmt_qemu_aarch64 interpreter and version recorded
+PASS host.binfmt_qemu_aarch64 sha256 recorded
+PASS toolchains.gcc version recorded
+PASS toolchains.g++ version recorded
+PASS toolchains.rustc version recorded
+PASS toolchains.zig version recorded
+PASS toolchains.go version recorded
+PASS toolchains.python version recorded
+PASS four runbook commands recorded (got 4)
+PASS command 1 is the runbook command (OMEGA_NATIVE_X86_EXEC=native sh tests/native/x86/run.sh)
+PASS command 1 exit is 0 (got 0)
+PASS command 1 result names NATIVE-X86 NATIVE PASS
+PASS command 2 is the runbook command (OMEGA_NATIVE_X86_EXEC=native python3 tests/native/x86/test_build_failures.py)
+PASS command 2 exit is 0 (got 0)
+PASS command 2 result names NATIVE-X86 CONTROLS PASS
+PASS command 3 is the runbook command (OMEGA_NATIVE_X86_OMC=)
+PASS command 3 exit is 1 (got 1)
+PASS command 3 result names FAIL x86 compiler pin
+PASS command 4 is the runbook command (tools/native --target x86linux)
+PASS command 4 exit is 1 (got 1)
+PASS command 4 result names refused
+PASS log x86-native.log present in tests/native/x86/receipt-fixtures/accept/native-x86-physical-be8c5130
+PASS log x86-native.log sha256 matches receipt
+PASS log x86-native-controls.log present in tests/native/x86/receipt-fixtures/accept/native-x86-physical-be8c5130
+PASS log x86-native-controls.log sha256 matches receipt
+PASS log x86-native-wrongpin.log present in tests/native/x86/receipt-fixtures/accept/native-x86-physical-be8c5130
+PASS log x86-native-wrongpin.log sha256 matches receipt
+PASS log x86-native-mut.log present in tests/native/x86/receipt-fixtures/accept/native-x86-physical-be8c5130
+PASS log x86-native-mut.log sha256 matches receipt
+PASS suite log ends with the NATIVE PASS line
+PASS suite log never ran EMULATED
+PASS suite log shows virtualization=none
+PASS suite log shows hypervisor flag clear
+PASS suite log has no FAIL line
+PASS suite log cpu model matches receipt
+PASS suite log kernel matches receipt
+PASS controls log reports NATIVE CONTROLS PASS
+PASS wrong-pin log refuses the x86 compiler pin
+PASS mutated-compiler log is refused by tools/native
+PHYSICAL-RECEIPT ACCEPTED (format and log consistency only; not a run)
diff --git a/tests/native/x86/receipt-fixtures/expected/edge-three-commands.out b/tests/native/x86/receipt-fixtures/expected/edge-three-commands.out
new file mode 100644
index 0000000..8b4d33a
--- /dev/null
+++ b/tests/native/x86/receipt-fixtures/expected/edge-three-commands.out
@@ -0,0 +1,55 @@
+PASS receipt is a JSON object
+PASS schema is 1
+PASS label is PHYSICAL (got 'PHYSICAL')
+PASS status is NATIVE_PASS (got 'NATIVE_PASS')
+PASS native_x86 is PASS (got 'PASS')
+PASS receipt nowhere says EMULATED
+PASS bridge_commit is a full sha
+PASS x86_omc_sha256 is the tools/native X86_PIN
+PASS baseline_omc_sha256 is the tools/native PIN
+PASS file name carries the x86 pin prefix
+PASS host.virtualization is none (got 'none')
+PASS host.hypervisor_flag is no (got 'no')
+PASS host.cpu_model is recorded
+PASS host.kernel is recorded
+PASS host.os is recorded
+PASS host.binfmt_qemu_aarch64 interpreter and version recorded
+PASS host.binfmt_qemu_aarch64 sha256 recorded
+PASS toolchains.gcc version recorded
+PASS toolchains.g++ version recorded
+PASS toolchains.rustc version recorded
+PASS toolchains.zig version recorded
+PASS toolchains.go version recorded
+PASS toolchains.python version recorded
+FAIL four runbook commands recorded (got 3)
+PASS command 1 is the runbook command (OMEGA_NATIVE_X86_EXEC=native sh tests/native/x86/run.sh)
+PASS command 1 exit is 0 (got 0)
+PASS command 1 result names NATIVE-X86 NATIVE PASS
+PASS command 2 is the runbook command (OMEGA_NATIVE_X86_EXEC=native python3 tests/native/x86/test_build_failures.py)
+PASS command 2 exit is 0 (got 0)
+PASS command 2 result names NATIVE-X86 CONTROLS PASS
+PASS command 3 is the runbook command (OMEGA_NATIVE_X86_OMC=)
+PASS command 3 exit is 1 (got 1)
+PASS command 3 result names FAIL x86 compiler pin
+FAIL command 4 is the runbook command (tools/native --target x86linux)
+FAIL command 4 exit is 1 (got None)
+FAIL command 4 result names refused
+PASS log x86-native.log present in tests/native/x86/receipt-fixtures/accept/native-x86-physical-be8c5130
+PASS log x86-native.log sha256 matches receipt
+PASS log x86-native-controls.log present in tests/native/x86/receipt-fixtures/accept/native-x86-physical-be8c5130
+PASS log x86-native-controls.log sha256 matches receipt
+PASS log x86-native-wrongpin.log present in tests/native/x86/receipt-fixtures/accept/native-x86-physical-be8c5130
+PASS log x86-native-wrongpin.log sha256 matches receipt
+PASS log x86-native-mut.log present in tests/native/x86/receipt-fixtures/accept/native-x86-physical-be8c5130
+PASS log x86-native-mut.log sha256 matches receipt
+PASS suite log ends with the NATIVE PASS line
+PASS suite log never ran EMULATED
+PASS suite log shows virtualization=none
+PASS suite log shows hypervisor flag clear
+PASS suite log has no FAIL line
+PASS suite log cpu model matches receipt
+PASS suite log kernel matches receipt
+PASS controls log reports NATIVE CONTROLS PASS
+PASS wrong-pin log refuses the x86 compiler pin
+PASS mutated-compiler log is refused by tools/native
+PHYSICAL-RECEIPT REJECTED (4 failed: four runbook commands recorded (got 3); command 4 is the runbook command (tools/native --target x86linux); command 4 exit is 1 (got None); command 4 result names refused)
diff --git a/tests/native/x86/receipt-fixtures/expected/emulated-receipt.out b/tests/native/x86/receipt-fixtures/expected/emulated-receipt.out
new file mode 100644
index 0000000..7d2aadf
--- /dev/null
+++ b/tests/native/x86/receipt-fixtures/expected/emulated-receipt.out
@@ -0,0 +1,51 @@
+PASS receipt is a JSON object
+PASS schema is 1
+FAIL label is PHYSICAL (got 'EMULATED')
+FAIL status is NATIVE_PASS (got 'EMULATED_PASS')
+FAIL native_x86 is PASS (got 'NOT_RUN')
+FAIL receipt nowhere says EMULATED
+PASS bridge_commit is a full sha
+PASS x86_omc_sha256 is the tools/native X86_PIN
+PASS baseline_omc_sha256 is the tools/native PIN
+FAIL file name carries the x86 pin prefix
+FAIL host.virtualization is none (got 'qemu-user')
+PASS host.hypervisor_flag is no (got 'no')
+PASS host.cpu_model is recorded
+FAIL host.kernel is recorded
+FAIL host.os is recorded
+FAIL host.binfmt_qemu_aarch64 interpreter and version recorded
+FAIL host.binfmt_qemu_aarch64 sha256 recorded
+FAIL toolchains.gcc version recorded
+FAIL toolchains.g++ version recorded
+FAIL toolchains.rustc version recorded
+FAIL toolchains.zig version recorded
+FAIL toolchains.go version recorded
+FAIL toolchains.python version recorded
+FAIL four runbook commands recorded (got 1)
+FAIL command 1 is the runbook command (OMEGA_NATIVE_X86_EXEC=native sh tests/native/x86/run.sh)
+PASS command 1 exit is 0 (got 0)
+FAIL command 1 result names NATIVE-X86 NATIVE PASS
+FAIL command 2 is the runbook command (OMEGA_NATIVE_X86_EXEC=native python3 tests/native/x86/test_build_failures.py)
+FAIL command 2 exit is 0 (got None)
+FAIL command 2 result names NATIVE-X86 CONTROLS PASS
+FAIL command 3 is the runbook command (OMEGA_NATIVE_X86_OMC=)
+FAIL command 3 exit is 1 (got None)
+FAIL command 3 result names FAIL x86 compiler pin
+FAIL command 4 is the runbook command (tools/native --target x86linux)
+FAIL command 4 exit is 1 (got None)
+FAIL command 4 result names refused
+FAIL log x86-native.log present in evidence/native-x86-physical-checker/emulated-receipt
+FAIL log x86-native-controls.log present in evidence/native-x86-physical-checker/emulated-receipt
+FAIL log x86-native-wrongpin.log present in evidence/native-x86-physical-checker/emulated-receipt
+FAIL log x86-native-mut.log present in evidence/native-x86-physical-checker/emulated-receipt
+FAIL suite log ends with the NATIVE PASS line
+PASS suite log never ran EMULATED
+FAIL suite log shows virtualization=none
+FAIL suite log shows hypervisor flag clear
+PASS suite log has no FAIL line
+FAIL suite log cpu model matches receipt
+FAIL suite log kernel matches receipt
+FAIL controls log reports NATIVE CONTROLS PASS
+FAIL wrong-pin log refuses the x86 compiler pin
+FAIL mutated-compiler log is refused by tools/native
+PHYSICAL-RECEIPT REJECTED (40 failed: label is PHYSICAL (got 'EMULATED'); status is NATIVE_PASS (got 'EMULATED_PASS'); native_x86 is PASS (got 'NOT_RUN'); receipt nowhere says EMULATED)
diff --git a/tests/native/x86/receipt-fixtures/expected/forged-receipt-evidence.out b/tests/native/x86/receipt-fixtures/expected/forged-receipt-evidence.out
new file mode 100644
index 0000000..b6c8c88
--- /dev/null
+++ b/tests/native/x86/receipt-fixtures/expected/forged-receipt-evidence.out
@@ -0,0 +1,51 @@
+PASS receipt is a JSON object
+PASS schema is 1
+PASS label is PHYSICAL (got 'PHYSICAL')
+PASS status is NATIVE_PASS (got 'NATIVE_PASS')
+PASS native_x86 is PASS (got 'PASS')
+PASS receipt nowhere says EMULATED
+PASS bridge_commit is a full sha
+PASS x86_omc_sha256 is the tools/native X86_PIN
+PASS baseline_omc_sha256 is the tools/native PIN
+FAIL file name carries the x86 pin prefix
+PASS host.virtualization is none (got 'none')
+PASS host.hypervisor_flag is no (got 'no')
+PASS host.cpu_model is recorded
+PASS host.kernel is recorded
+PASS host.os is recorded
+PASS host.binfmt_qemu_aarch64 interpreter and version recorded
+PASS host.binfmt_qemu_aarch64 sha256 recorded
+PASS toolchains.gcc version recorded
+PASS toolchains.g++ version recorded
+PASS toolchains.rustc version recorded
+PASS toolchains.zig version recorded
+PASS toolchains.go version recorded
+PASS toolchains.python version recorded
+PASS four runbook commands recorded (got 4)
+PASS command 1 is the runbook command (OMEGA_NATIVE_X86_EXEC=native sh tests/native/x86/run.sh)
+PASS command 1 exit is 0 (got 0)
+PASS command 1 result names NATIVE-X86 NATIVE PASS
+PASS command 2 is the runbook command (OMEGA_NATIVE_X86_EXEC=native python3 tests/native/x86/test_build_failures.py)
+PASS command 2 exit is 0 (got 0)
+PASS command 2 result names NATIVE-X86 CONTROLS PASS
+PASS command 3 is the runbook command (OMEGA_NATIVE_X86_OMC=)
+PASS command 3 exit is 1 (got 1)
+PASS command 3 result names FAIL x86 compiler pin
+PASS command 4 is the runbook command (tools/native --target x86linux)
+PASS command 4 exit is 1 (got 1)
+PASS command 4 result names refused
+FAIL log x86-native.log present in evidence/native-x86-physical-checker/forged-receipt
+FAIL log x86-native-controls.log present in evidence/native-x86-physical-checker/forged-receipt
+FAIL log x86-native-wrongpin.log present in evidence/native-x86-physical-checker/forged-receipt
+FAIL log x86-native-mut.log present in evidence/native-x86-physical-checker/forged-receipt
+FAIL suite log ends with the NATIVE PASS line
+PASS suite log never ran EMULATED
+FAIL suite log shows virtualization=none
+FAIL suite log shows hypervisor flag clear
+PASS suite log has no FAIL line
+FAIL suite log cpu model matches receipt
+FAIL suite log kernel matches receipt
+FAIL controls log reports NATIVE CONTROLS PASS
+FAIL wrong-pin log refuses the x86 compiler pin
+FAIL mutated-compiler log is refused by tools/native
+PHYSICAL-RECEIPT REJECTED (13 failed: file name carries the x86 pin prefix; log x86-native.log present in evidence/native-x86-physical-checker/forged-receipt; log x86-native-controls.log present in evidence/native-x86-physical-checker/forged-receipt; log x86-native-wrongpin.log present in evidence/native-x86-physical-checker/forged-receipt)
diff --git a/tests/native/x86/receipt-fixtures/expected/forged.out b/tests/native/x86/receipt-fixtures/expected/forged.out
new file mode 100644
index 0000000..2950222
--- /dev/null
+++ b/tests/native/x86/receipt-fixtures/expected/forged.out
@@ -0,0 +1,55 @@
+PASS receipt is a JSON object
+PASS schema is 1
+PASS label is PHYSICAL (got 'PHYSICAL')
+PASS status is NATIVE_PASS (got 'NATIVE_PASS')
+PASS native_x86 is PASS (got 'PASS')
+PASS receipt nowhere says EMULATED
+PASS bridge_commit is a full sha
+PASS x86_omc_sha256 is the tools/native X86_PIN
+PASS baseline_omc_sha256 is the tools/native PIN
+PASS file name carries the x86 pin prefix
+PASS host.virtualization is none (got 'none')
+PASS host.hypervisor_flag is no (got 'no')
+PASS host.cpu_model is recorded
+PASS host.kernel is recorded
+PASS host.os is recorded
+PASS host.binfmt_qemu_aarch64 interpreter and version recorded
+PASS host.binfmt_qemu_aarch64 sha256 recorded
+PASS toolchains.gcc version recorded
+PASS toolchains.g++ version recorded
+PASS toolchains.rustc version recorded
+PASS toolchains.zig version recorded
+PASS toolchains.go version recorded
+PASS toolchains.python version recorded
+PASS four runbook commands recorded (got 4)
+PASS command 1 is the runbook command (OMEGA_NATIVE_X86_EXEC=native sh tests/native/x86/run.sh)
+PASS command 1 exit is 0 (got 0)
+PASS command 1 result names NATIVE-X86 NATIVE PASS
+PASS command 2 is the runbook command (OMEGA_NATIVE_X86_EXEC=native python3 tests/native/x86/test_build_failures.py)
+PASS command 2 exit is 0 (got 0)
+PASS command 2 result names NATIVE-X86 CONTROLS PASS
+PASS command 3 is the runbook command (OMEGA_NATIVE_X86_OMC=)
+PASS command 3 exit is 1 (got 1)
+PASS command 3 result names FAIL x86 compiler pin
+PASS command 4 is the runbook command (tools/native --target x86linux)
+PASS command 4 exit is 1 (got 1)
+PASS command 4 result names refused
+PASS log x86-native.log present in tests/native/x86/receipt-fixtures/forged/native-x86-physical-be8c5130
+PASS log x86-native.log sha256 matches receipt
+PASS log x86-native-controls.log present in tests/native/x86/receipt-fixtures/forged/native-x86-physical-be8c5130
+PASS log x86-native-controls.log sha256 matches receipt
+PASS log x86-native-wrongpin.log present in tests/native/x86/receipt-fixtures/forged/native-x86-physical-be8c5130
+PASS log x86-native-wrongpin.log sha256 matches receipt
+PASS log x86-native-mut.log present in tests/native/x86/receipt-fixtures/forged/native-x86-physical-be8c5130
+PASS log x86-native-mut.log sha256 matches receipt
+FAIL suite log ends with the NATIVE PASS line
+FAIL suite log never ran EMULATED
+FAIL suite log shows virtualization=none
+FAIL suite log shows hypervisor flag clear
+PASS suite log has no FAIL line
+FAIL suite log cpu model matches receipt
+FAIL suite log kernel matches receipt
+FAIL controls log reports NATIVE CONTROLS PASS
+PASS wrong-pin log refuses the x86 compiler pin
+PASS mutated-compiler log is refused by tools/native
+PHYSICAL-RECEIPT REJECTED (7 failed: suite log ends with the NATIVE PASS line; suite log never ran EMULATED; suite log shows virtualization=none; suite log shows hypervisor flag clear)
diff --git a/tests/native/x86/receipt-fixtures/forged/native-x86-physical-be8c5130.json b/tests/native/x86/receipt-fixtures/forged/native-x86-physical-be8c5130.json
new file mode 100644
index 0000000..0d8aba9
--- /dev/null
+++ b/tests/native/x86/receipt-fixtures/forged/native-x86-physical-be8c5130.json
@@ -0,0 +1,57 @@
+{
+ "schema": 1,
+ "status": "NATIVE_PASS",
+ "label": "PHYSICAL",
+ "bridge_commit": "d8174eddf953ad53e16f19eb5841459df99e24bb",
+ "x86_omc_sha256": "be8c51301307555254fc59e351d281aae1aa096d91521777e33a41c8b446448a",
+ "baseline_omc_sha256": "734f0a39319fbfa930bcc62cb30dbf06d47d78e126372b74f5baf478e6126b61",
+ "native_x86": "PASS",
+ "host": {
+  "cpu_model": "SYNTH CPU",
+  "hypervisor_flag": "no",
+  "virtualization": "none",
+  "kernel": "6.8.0-synth",
+  "os": "synth",
+  "binfmt_qemu_aarch64": {
+   "interpreter": "/usr/bin/qemu-aarch64-static",
+   "version": "v",
+   "sha256": "0000000000000000000000000000000000000000000000000000000000000000"
+  }
+ },
+ "toolchains": {
+  "gcc": "v",
+  "g++": "v",
+  "rustc": "v",
+  "zig": "v",
+  "go": "v",
+  "python": "v"
+ },
+ "commands": [
+  {
+   "command": "OMEGA_NATIVE_X86_EXEC=native sh tests/native/x86/run.sh EMPTY_OUTPUT",
+   "exit": 0,
+   "result": "1 PASS, 0 FAIL; NATIVE-X86 NATIVE PASS"
+  },
+  {
+   "command": "OMEGA_NATIVE_X86_EXEC=native python3 tests/native/x86/test_build_failures.py EMPTY_OUTPUT",
+   "exit": 0,
+   "result": "NATIVE-X86 CONTROLS PASS (NATIVE)"
+  },
+  {
+   "command": "OMEGA_NATIVE_X86_EXEC=native OMEGA_NATIVE_X86_OMC=<734f0a39 omc> sh tests/native/x86/run.sh EMPTY_OUTPUT",
+   "exit": 1,
+   "result": "negative control: FAIL x86 compiler pin"
+  },
+  {
+   "command": "OMEGA_NATIVE_X86_OMC=<mut> sh tools/native --target x86linux OUTDIR tests/native/x86/follow.om",
+   "exit": 1,
+   "result": "negative control: tools/native refused"
+  }
+ ],
+ "logs_sha256": {
+  "x86-native.log": "9ff1b37ffe9a015138d07a0c9ee736f308be823809c4aca7c2637f7cff56afd5",
+  "x86-native-controls.log": "1044a11af9f1451724403eb191bddf17e00ccffed266344881959d687f12e17c",
+  "x86-native-wrongpin.log": "3a970734477b984eb801e1a5bc4e78d4808f3fad82f76e9739b06ae8e03f540c",
+  "x86-native-mut.log": "b6eb5490eb831d9c917a893fd1582a0f1001c13301fed67404611d5eb2c534b0"
+ }
+}
diff --git a/tests/native/x86/receipt-fixtures/forged/native-x86-physical-be8c5130/x86-native-controls.log b/tests/native/x86/receipt-fixtures/forged/native-x86-physical-be8c5130/x86-native-controls.log
new file mode 100644
index 0000000..8628d02
--- /dev/null
+++ b/tests/native/x86/receipt-fixtures/forged/native-x86-physical-be8c5130/x86-native-controls.log
@@ -0,0 +1,385 @@
+INFO control evidence: OUT/ctl
+PASS failed-toolchain control ZIG
+PASS failed-toolchain control GO
+PASS missing Zig and Go refuse aggregate PASS (#34)
+PASS Python is ELF64 x86-64, not the host interpreter
+PASS generator compiler pin
+PASS x86 compiler pin
+INFO x86 compiler sha256=be8c51301307555254fc59e351d281aae1aa096d91521777e33a41c8b446448a
+INFO generator compiler sha256=734f0a39319fbfa930bcc62cb30dbf06d47d78e126372b74f5baf478e6126b61
+PASS x86 Python interpreter and ctypes runtime
+PASS tools/native built mixed OM-1/OM-2 x86 library and all bindings
+PASS x86 floor uses actual usable stack base, independent of out carve
+PASS library ELF machine is x86-64
+PASS original source/compiler identity madd
+PASS source snapshot excludes target directive madd
+PASS compiler bytes reproduce madd
+PASS embedded bytes unchanged madd
+PASS original source/compiler identity vec
+PASS source snapshot excludes target directive vec
+PASS compiler bytes reproduce vec
+PASS six-byte JMP/NOP entry slots vec
+PASS independent x86 instruction oracle vec
+PASS embedded bytes unchanged vec
+PASS original source/compiler identity lay
+PASS source snapshot excludes target directive lay
+PASS compiler bytes reproduce lay
+PASS six-byte JMP/NOP entry slots lay
+PASS independent x86 instruction oracle lay
+PASS embedded bytes unchanged lay
+PASS original source/compiler identity one
+PASS source snapshot excludes target directive one
+PASS compiler bytes reproduce one
+PASS embedded bytes unchanged one
+PASS exact public ABI symbol set
+PASS all runtime/code/entry symbols private
+PASS no caller hand-declares Omega ABI
+PASS target-independent declarations h
+PASS target-independent declarations python
+PASS target-independent declarations rust
+PASS target-independent declarations zig
+PASS target-independent declarations go
+PASS target-independent declarations api
+PASS target-independent declarations apih
+PASS target-independent declarations apic
+PASS AArch64 byte parity f637021 big.om c
+PASS AArch64 byte parity f637021 big.om h
+PASS AArch64 byte parity f637021 big.om python
+PASS AArch64 byte parity f637021 big.om rust
+PASS AArch64 byte parity f637021 big.om zig
+PASS AArch64 byte parity f637021 big.om go
+PASS AArch64 byte parity f637021 big.om api
+PASS AArch64 byte parity f637021 big.om apih
+PASS AArch64 byte parity f637021 big.om apic
+INFO exit=110 log=OUT/ctl/positive/0071.log
+INFO exit=110 log=OUT/ctl/positive/0072.log
+PASS AArch64 byte parity f637021 big.om freest
+PASS AArch64 byte parity f637021 fill.om c
+PASS AArch64 byte parity f637021 fill.om h
+PASS AArch64 byte parity f637021 fill.om python
+PASS AArch64 byte parity f637021 fill.om rust
+PASS AArch64 byte parity f637021 fill.om zig
+PASS AArch64 byte parity f637021 fill.om go
+PASS AArch64 byte parity f637021 fill.om api
+PASS AArch64 byte parity f637021 fill.om apih
+PASS AArch64 byte parity f637021 fill.om apic
+INFO exit=110 log=OUT/ctl/positive/0091.log
+INFO exit=110 log=OUT/ctl/positive/0092.log
+PASS AArch64 byte parity f637021 fill.om freest
+PASS AArch64 byte parity f637021 fsum.om c
+PASS AArch64 byte parity f637021 fsum.om h
+PASS AArch64 byte parity f637021 fsum.om python
+PASS AArch64 byte parity f637021 fsum.om rust
+PASS AArch64 byte parity f637021 fsum.om zig
+PASS AArch64 byte parity f637021 fsum.om go
+PASS AArch64 byte parity f637021 fsum.om api
+PASS AArch64 byte parity f637021 fsum.om apih
+PASS AArch64 byte parity f637021 fsum.om apic
+INFO exit=110 log=OUT/ctl/positive/0111.log
+INFO exit=110 log=OUT/ctl/positive/0112.log
+PASS AArch64 byte parity f637021 fsum.om freest
+PASS AArch64 byte parity f637021 g1/calc.lowered.om c
+PASS AArch64 byte parity f637021 g1/calc.lowered.om h
+PASS AArch64 byte parity f637021 g1/calc.lowered.om python
+PASS AArch64 byte parity f637021 g1/calc.lowered.om rust
+PASS AArch64 byte parity f637021 g1/calc.lowered.om zig
+PASS AArch64 byte parity f637021 g1/calc.lowered.om go
+PASS AArch64 byte parity f637021 g1/calc.lowered.om api
+PASS AArch64 byte parity f637021 g1/calc.lowered.om apih
+PASS AArch64 byte parity f637021 g1/calc.lowered.om apic
+INFO exit=110 log=OUT/ctl/positive/0131.log
+INFO exit=110 log=OUT/ctl/positive/0132.log
+PASS AArch64 byte parity f637021 g1/calc.lowered.om freest
+PASS AArch64 byte parity f637021 g1/calc.om c
+PASS AArch64 byte parity f637021 g1/calc.om h
+PASS AArch64 byte parity f637021 g1/calc.om python
+PASS AArch64 byte parity f637021 g1/calc.om rust
+PASS AArch64 byte parity f637021 g1/calc.om zig
+PASS AArch64 byte parity f637021 g1/calc.om go
+PASS AArch64 byte parity f637021 g1/calc.om api
+PASS AArch64 byte parity f637021 g1/calc.om apih
+PASS AArch64 byte parity f637021 g1/calc.om apic
+INFO exit=110 log=OUT/ctl/positive/0151.log
+INFO exit=110 log=OUT/ctl/positive/0152.log
+PASS AArch64 byte parity f637021 g1/calc.om freest
+PASS AArch64 byte parity f637021 halve.om c
+PASS AArch64 byte parity f637021 halve.om h
+PASS AArch64 byte parity f637021 halve.om python
+PASS AArch64 byte parity f637021 halve.om rust
+PASS AArch64 byte parity f637021 halve.om zig
+PASS AArch64 byte parity f637021 halve.om go
+PASS AArch64 byte parity f637021 halve.om api
+PASS AArch64 byte parity f637021 halve.om apih
+PASS AArch64 byte parity f637021 halve.om apic
+INFO exit=110 log=OUT/ctl/positive/0171.log
+INFO exit=110 log=OUT/ctl/positive/0172.log
+PASS AArch64 byte parity f637021 halve.om freest
+PASS AArch64 byte parity f637021 hsum.om c
+PASS AArch64 byte parity f637021 hsum.om h
+PASS AArch64 byte parity f637021 hsum.om python
+PASS AArch64 byte parity f637021 hsum.om rust
+PASS AArch64 byte parity f637021 hsum.om zig
+PASS AArch64 byte parity f637021 hsum.om go
+PASS AArch64 byte parity f637021 hsum.om api
+PASS AArch64 byte parity f637021 hsum.om apih
+PASS AArch64 byte parity f637021 hsum.om apic
+INFO exit=110 log=OUT/ctl/positive/0191.log
+INFO exit=110 log=OUT/ctl/positive/0192.log
+PASS AArch64 byte parity f637021 hsum.om freest
+PASS AArch64 byte parity f637021 madd.om c
+PASS AArch64 byte parity f637021 madd.om h
+PASS AArch64 byte parity f637021 madd.om python
+PASS AArch64 byte parity f637021 madd.om rust
+PASS AArch64 byte parity f637021 madd.om zig
+PASS AArch64 byte parity f637021 madd.om go
+PASS AArch64 byte parity f637021 madd.om api
+PASS AArch64 byte parity f637021 madd.om apih
+PASS AArch64 byte parity f637021 madd.om apic
+PASS AArch64 byte parity f637021 madd.om freest
+PASS AArch64 byte parity f637021 mix.om c
+PASS AArch64 byte parity f637021 mix.om h
+PASS AArch64 byte parity f637021 mix.om python
+PASS AArch64 byte parity f637021 mix.om rust
+PASS AArch64 byte parity f637021 mix.om zig
+PASS AArch64 byte parity f637021 mix.om go
+PASS AArch64 byte parity f637021 mix.om api
+PASS AArch64 byte parity f637021 mix.om apih
+PASS AArch64 byte parity f637021 mix.om apic
+INFO exit=110 log=OUT/ctl/positive/0231.log
+INFO exit=110 log=OUT/ctl/positive/0232.log
+PASS AArch64 byte parity f637021 mix.om freest
+PASS AArch64 byte parity f637021 smadd.om c
+PASS AArch64 byte parity f637021 smadd.om h
+PASS AArch64 byte parity f637021 smadd.om python
+PASS AArch64 byte parity f637021 smadd.om rust
+PASS AArch64 byte parity f637021 smadd.om zig
+PASS AArch64 byte parity f637021 smadd.om go
+PASS AArch64 byte parity f637021 smadd.om api
+PASS AArch64 byte parity f637021 smadd.om apih
+PASS AArch64 byte parity f637021 smadd.om apic
+PASS AArch64 byte parity f637021 smadd.om freest
+PASS AArch64 byte parity f637021 spin.om c
+PASS AArch64 byte parity f637021 spin.om h
+PASS AArch64 byte parity f637021 spin.om python
+PASS AArch64 byte parity f637021 spin.om rust
+PASS AArch64 byte parity f637021 spin.om zig
+PASS AArch64 byte parity f637021 spin.om go
+PASS AArch64 byte parity f637021 spin.om api
+PASS AArch64 byte parity f637021 spin.om apih
+PASS AArch64 byte parity f637021 spin.om apic
+PASS AArch64 byte parity f637021 spin.om freest
+PASS AArch64 byte parity f637021 v2/lay.om c
+PASS AArch64 byte parity f637021 v2/lay.om h
+PASS AArch64 byte parity f637021 v2/lay.om python
+PASS AArch64 byte parity f637021 v2/lay.om rust
+PASS AArch64 byte parity f637021 v2/lay.om zig
+PASS AArch64 byte parity f637021 v2/lay.om go
+PASS AArch64 byte parity f637021 v2/lay.om api
+PASS AArch64 byte parity f637021 v2/lay.om apih
+PASS AArch64 byte parity f637021 v2/lay.om apic
+INFO exit=110 log=OUT/ctl/positive/0291.log
+INFO exit=110 log=OUT/ctl/positive/0292.log
+PASS AArch64 byte parity f637021 v2/lay.om freest
+PASS AArch64 byte parity f637021 v2/one.om c
+PASS AArch64 byte parity f637021 v2/one.om h
+PASS AArch64 byte parity f637021 v2/one.om python
+PASS AArch64 byte parity f637021 v2/one.om rust
+PASS AArch64 byte parity f637021 v2/one.om zig
+PASS AArch64 byte parity f637021 v2/one.om go
+PASS AArch64 byte parity f637021 v2/one.om api
+PASS AArch64 byte parity f637021 v2/one.om apih
+PASS AArch64 byte parity f637021 v2/one.om apic
+INFO exit=110 log=OUT/ctl/positive/0311.log
+INFO exit=110 log=OUT/ctl/positive/0312.log
+PASS AArch64 byte parity f637021 v2/one.om freest
+PASS AArch64 byte parity f637021 v2/v1use/bsum.om c
+PASS AArch64 byte parity f637021 v2/v1use/bsum.om h
+PASS AArch64 byte parity f637021 v2/v1use/bsum.om python
+PASS AArch64 byte parity f637021 v2/v1use/bsum.om rust
+PASS AArch64 byte parity f637021 v2/v1use/bsum.om zig
+PASS AArch64 byte parity f637021 v2/v1use/bsum.om go
+PASS AArch64 byte parity f637021 v2/v1use/bsum.om api
+PASS AArch64 byte parity f637021 v2/v1use/bsum.om apih
+PASS AArch64 byte parity f637021 v2/v1use/bsum.om apic
+INFO exit=110 log=OUT/ctl/positive/0331.log
+INFO exit=110 log=OUT/ctl/positive/0332.log
+PASS AArch64 byte parity f637021 v2/v1use/bsum.om freest
+PASS AArch64 byte parity f637021 v2/vec.om c
+PASS AArch64 byte parity f637021 v2/vec.om h
+PASS AArch64 byte parity f637021 v2/vec.om python
+PASS AArch64 byte parity f637021 v2/vec.om rust
+PASS AArch64 byte parity f637021 v2/vec.om zig
+PASS AArch64 byte parity f637021 v2/vec.om go
+PASS AArch64 byte parity f637021 v2/vec.om api
+PASS AArch64 byte parity f637021 v2/vec.om apih
+PASS AArch64 byte parity f637021 v2/vec.om apic
+INFO exit=110 log=OUT/ctl/positive/0351.log
+INFO exit=110 log=OUT/ctl/positive/0352.log
+PASS AArch64 byte parity f637021 v2/vec.om freest
+PASS AArch64 byte parity f637021 v1-set c
+PASS AArch64 byte parity f637021 v1-set h
+PASS AArch64 byte parity f637021 v1-set python
+PASS AArch64 byte parity f637021 v1-set rust
+PASS AArch64 byte parity f637021 v1-set zig
+PASS AArch64 byte parity f637021 v1-set go
+PASS AArch64 byte parity f637021 v1-set api
+PASS AArch64 byte parity f637021 v1-set apih
+PASS AArch64 byte parity f637021 v1-set apic
+INFO exit=110 log=OUT/ctl/positive/0371.log
+INFO exit=110 log=OUT/ctl/positive/0372.log
+PASS AArch64 byte parity f637021 v1-set freest
+PASS AArch64 byte parity f637021 v2-set c
+PASS AArch64 byte parity f637021 v2-set h
+PASS AArch64 byte parity f637021 v2-set python
+PASS AArch64 byte parity f637021 v2-set rust
+PASS AArch64 byte parity f637021 v2-set zig
+PASS AArch64 byte parity f637021 v2-set go
+PASS AArch64 byte parity f637021 v2-set api
+PASS AArch64 byte parity f637021 v2-set apih
+PASS AArch64 byte parity f637021 v2-set apic
+INFO exit=110 log=OUT/ctl/positive/0391.log
+INFO exit=110 log=OUT/ctl/positive/0392.log
+PASS AArch64 byte parity f637021 v2-set freest
+PASS c caller built
+PASS c caller EMULATED
+PASS cpp caller built
+PASS cpp caller EMULATED
+PASS go caller built
+PASS go caller EMULATED
+PASS python caller EMULATED
+PASS rust caller built
+PASS rust caller EMULATED
+PASS rust-2024 caller EMULATED
+PASS zig caller built
+PASS zig caller EMULATED
+PASS SysV AMD64 saved-register oracle EMULATED
+PASS stale source mutation changes bytes
+PASS stale h generated
+PASS stale python generated
+INFO exit=3 log=OUT/ctl/positive/0411.log
+PASS stale C identity refused
+PASS fresh C identity control
+INFO exit=1 log=OUT/ctl/positive/0414.log
+PASS stale Python import refused for identity
+PASS v1 refusal binding generated h
+PASS v1 refusal binding generated python
+PASS v1 refusal binding generated rust
+PASS v1 refusal binding generated zig
+PASS v1 refusal binding generated go
+INFO exit=1 log=OUT/ctl/positive/0421.log
+PASS c refuses old v1 symbol
+INFO exit=1 log=OUT/ctl/positive/0422.log
+PASS cpp refuses old v1 symbol
+INFO exit=1 log=OUT/ctl/positive/0423.log
+PASS go refuses old v1 symbol
+INFO exit=1 log=OUT/ctl/positive/0424.log
+PASS python refuses old v1 symbol
+INFO exit=1 log=OUT/ctl/positive/0425.log
+PASS rust refuses old v1 symbol
+INFO exit=1 log=OUT/ctl/positive/0426.log
+PASS zig refuses old v1 symbol
+PASS generator accepts refusal control
+INFO exit=110 log=OUT/ctl/positive/0428.log
+PASS generator refuses missing identity
+INFO exit=110 log=OUT/ctl/positive/0429.log
+PASS generator refuses short digest
+INFO exit=110 log=OUT/ctl/positive/0430.log
+PASS generator refuses nonhex digest
+INFO exit=110 log=OUT/ctl/positive/0431.log
+PASS generator refuses invalid unit name
+INFO exit=110 log=OUT/ctl/positive/0432.log
+PASS generator refuses repeated unit
+INFO exit=110 log=OUT/ctl/positive/0433.log
+PASS generator refuses repeated export
+INFO exit=110 log=OUT/ctl/positive/0434.log
+PASS generator refuses diag
+INFO exit=110 log=OUT/ctl/positive/0435.log
+PASS generator refuses eight slots
+INFO exit=110 log=OUT/ctl/positive/0436.log
+PASS generator refuses unknown layout
+INFO exit=110 log=OUT/ctl/positive/0437.log
+PASS generator refuses oversized out
+INFO exit=110 log=OUT/ctl/positive/0438.log
+PASS generator refuses uint scalar
+INFO exit=110 log=OUT/ctl/positive/0439.log
+PASS generator refuses uint result
+INFO exit=110 log=OUT/ctl/positive/0440.log
+PASS generator refuses reserved len name
+INFO exit=110 log=OUT/ctl/positive/0441.log
+PASS generator refuses short six-byte entry table
+INFO exit=110 log=OUT/ctl/positive/0442.log
+PASS generator refuses unknown c-type layout
+INFO exit=110 log=OUT/ctl/positive/0443.log
+PASS generator refuses argument vector []
+INFO exit=110 log=OUT/ctl/positive/0444.log
+PASS generator refuses argument vector ['java', 'x86linux']
+INFO exit=110 log=OUT/ctl/positive/0445.log
+PASS generator refuses argument vector ['c', 'unknown']
+INFO exit=110 log=OUT/ctl/positive/0446.log
+PASS generator refuses argument vector ['c', 'x86linux', 'extra']
+INFO exit=1 log=OUT/ctl/positive/0447.log
+PASS mismatched x86 compiler refuses before creating outputs
+INFO exit=1 log=OUT/ctl/positive/0449.log
+PASS mismatched x86 compiler preserves previous outputs
+INFO exit=110 log=OUT/ctl/positive/0450.log
+PASS tools/native refusal preserves previous outputs and removes scratch
+PASS wrap mutant generated c
+PASS wrap mutant generated h
+PASS wrap mutant differs
+INFO exit=-11 log=OUT/ctl/positive/0456.log
+PASS wrap mutant caught by existing boundary oracle
+PASS overlap mutant generated c
+PASS overlap mutant generated h
+PASS overlap mutant differs
+INFO exit=1 log=OUT/ctl/positive/0462.log
+PASS overlap mutant caught by existing boundary oracle
+PASS outcopy mutant generated c
+PASS outcopy mutant generated h
+PASS outcopy mutant differs
+INFO exit=1 log=OUT/ctl/positive/0468.log
+PASS outcopy mutant caught by existing boundary oracle
+PASS private fixture generated madd
+PASS separate object private locals madd
+PASS private fixture generated smadd
+PASS separate object private locals smadd
+PASS separate bindings and TLS isolation EMULATED
+PASS private fixture generated madd
+PASS private fixture generated smadd
+INFO exit=1 log=OUT/ctl/positive/0486.log
+PASS global helper mutant rejected at link
+PASS prototype-only API has no libc imports
+PASS out-of-line API owns abort and definitions
+PASS inline API import negative control
+PASS out-of-line API EMULATED
+INFO exit=-6 log=OUT/ctl/positive/0496.log
+PASS out-of-line API trap aborts
+PASS apih API mutant generated
+PASS prototype-only API mutant caught
+PASS api API mutant generated
+PASS inline API mutant caught
+PASS nested explicit trap uses ESI and runtime table slot 2
+PASS legacy basic write remains permitted in bare code
+INFO exit=9 log=OUT/ctl/positive/0507.log
+PASS advanced bare host helper remains compiler refusal 9
+PASS trap control generated c
+PASS trap control generated h
+PASS trap: status 5, sentinel, saved regs and subsequent call EMULATED
+PASS zero-code control generated c
+PASS zero-code control generated h
+PASS zero-code: status 34, sentinel, saved regs and subsequent call EMULATED
+PASS wrong-slot control generated c
+PASS wrong-slot control generated h
+PASS wrong-slot: status 34, sentinel, saved regs and subsequent call EMULATED
+PASS xsave-stack control generated c
+PASS xsave control bounds only owned runtime stack
+PASS xsave-stack control generated h
+PASS xsave-stack: status 6, sentinel, saved regs and subsequent call EMULATED
+PASS direct floor oracle generated c
+PASS direct floor oracle generated h
+PASS direct floor oracle finds one true-floor argument
+PASS actual R15 mapping floor with ABI-v2 out buffer EMULATED
+INFO exit=1 log=OUT/ctl/positive/0533.log
+PASS carved-top floor mutant rejected without crash EMULATED
+NATIVE-X86 NATIVE NOT_RUN (physical x86 execution not requested)
+NATIVE-X86 EMULATED PASS (six languages built and run; native x86 NOT_RUN)
+NATIVE-X86 CONTROLS PASS (EMULATED; native x86 NOT_RUN)
diff --git a/tests/native/x86/receipt-fixtures/forged/native-x86-physical-be8c5130/x86-native-mut.log b/tests/native/x86/receipt-fixtures/forged/native-x86-physical-be8c5130/x86-native-mut.log
new file mode 100644
index 0000000..69b3111
--- /dev/null
+++ b/tests/native/x86/receipt-fixtures/forged/native-x86-physical-be8c5130/x86-native-mut.log
@@ -0,0 +1,2 @@
+INFO synthetic fixture: hand-written, no run
+tools/native: x86 omc sha256 mismatch (synthetic fixture)
diff --git a/tests/native/x86/receipt-fixtures/forged/native-x86-physical-be8c5130/x86-native-wrongpin.log b/tests/native/x86/receipt-fixtures/forged/native-x86-physical-be8c5130/x86-native-wrongpin.log
new file mode 100644
index 0000000..0ab3980
--- /dev/null
+++ b/tests/native/x86/receipt-fixtures/forged/native-x86-physical-be8c5130/x86-native-wrongpin.log
@@ -0,0 +1,2 @@
+INFO synthetic fixture: hand-written, no run
+NATIVE-X86 FAIL x86 compiler pin (synthetic fixture)
diff --git a/tests/native/x86/receipt-fixtures/forged/native-x86-physical-be8c5130/x86-native.log b/tests/native/x86/receipt-fixtures/forged/native-x86-physical-be8c5130/x86-native.log
new file mode 100644
index 0000000..b361c80
--- /dev/null
+++ b/tests/native/x86/receipt-fixtures/forged/native-x86-physical-be8c5130/x86-native.log
@@ -0,0 +1,380 @@
+PASS Python is ELF64 x86-64, not the host interpreter
+PASS generator compiler pin
+PASS x86 compiler pin
+INFO x86 compiler sha256=be8c51301307555254fc59e351d281aae1aa096d91521777e33a41c8b446448a
+INFO generator compiler sha256=734f0a39319fbfa930bcc62cb30dbf06d47d78e126372b74f5baf478e6126b61
+PASS x86 Python interpreter and ctypes runtime
+PASS tools/native built mixed OM-1/OM-2 x86 library and all bindings
+PASS x86 floor uses actual usable stack base, independent of out carve
+PASS library ELF machine is x86-64
+PASS original source/compiler identity madd
+PASS source snapshot excludes target directive madd
+PASS compiler bytes reproduce madd
+PASS embedded bytes unchanged madd
+PASS original source/compiler identity vec
+PASS source snapshot excludes target directive vec
+PASS compiler bytes reproduce vec
+PASS six-byte JMP/NOP entry slots vec
+PASS independent x86 instruction oracle vec
+PASS embedded bytes unchanged vec
+PASS original source/compiler identity lay
+PASS source snapshot excludes target directive lay
+PASS compiler bytes reproduce lay
+PASS six-byte JMP/NOP entry slots lay
+PASS independent x86 instruction oracle lay
+PASS embedded bytes unchanged lay
+PASS original source/compiler identity one
+PASS source snapshot excludes target directive one
+PASS compiler bytes reproduce one
+PASS embedded bytes unchanged one
+PASS exact public ABI symbol set
+PASS all runtime/code/entry symbols private
+PASS no caller hand-declares Omega ABI
+PASS target-independent declarations h
+PASS target-independent declarations python
+PASS target-independent declarations rust
+PASS target-independent declarations zig
+PASS target-independent declarations go
+PASS target-independent declarations api
+PASS target-independent declarations apih
+PASS target-independent declarations apic
+PASS AArch64 byte parity f637021 big.om c
+PASS AArch64 byte parity f637021 big.om h
+PASS AArch64 byte parity f637021 big.om python
+PASS AArch64 byte parity f637021 big.om rust
+PASS AArch64 byte parity f637021 big.om zig
+PASS AArch64 byte parity f637021 big.om go
+PASS AArch64 byte parity f637021 big.om api
+PASS AArch64 byte parity f637021 big.om apih
+PASS AArch64 byte parity f637021 big.om apic
+INFO exit=110 log=OUT/x86/0071.log
+INFO exit=110 log=OUT/x86/0072.log
+PASS AArch64 byte parity f637021 big.om freest
+PASS AArch64 byte parity f637021 fill.om c
+PASS AArch64 byte parity f637021 fill.om h
+PASS AArch64 byte parity f637021 fill.om python
+PASS AArch64 byte parity f637021 fill.om rust
+PASS AArch64 byte parity f637021 fill.om zig
+PASS AArch64 byte parity f637021 fill.om go
+PASS AArch64 byte parity f637021 fill.om api
+PASS AArch64 byte parity f637021 fill.om apih
+PASS AArch64 byte parity f637021 fill.om apic
+INFO exit=110 log=OUT/x86/0091.log
+INFO exit=110 log=OUT/x86/0092.log
+PASS AArch64 byte parity f637021 fill.om freest
+PASS AArch64 byte parity f637021 fsum.om c
+PASS AArch64 byte parity f637021 fsum.om h
+PASS AArch64 byte parity f637021 fsum.om python
+PASS AArch64 byte parity f637021 fsum.om rust
+PASS AArch64 byte parity f637021 fsum.om zig
+PASS AArch64 byte parity f637021 fsum.om go
+PASS AArch64 byte parity f637021 fsum.om api
+PASS AArch64 byte parity f637021 fsum.om apih
+PASS AArch64 byte parity f637021 fsum.om apic
+INFO exit=110 log=OUT/x86/0111.log
+INFO exit=110 log=OUT/x86/0112.log
+PASS AArch64 byte parity f637021 fsum.om freest
+PASS AArch64 byte parity f637021 g1/calc.lowered.om c
+PASS AArch64 byte parity f637021 g1/calc.lowered.om h
+PASS AArch64 byte parity f637021 g1/calc.lowered.om python
+PASS AArch64 byte parity f637021 g1/calc.lowered.om rust
+PASS AArch64 byte parity f637021 g1/calc.lowered.om zig
+PASS AArch64 byte parity f637021 g1/calc.lowered.om go
+PASS AArch64 byte parity f637021 g1/calc.lowered.om api
+PASS AArch64 byte parity f637021 g1/calc.lowered.om apih
+PASS AArch64 byte parity f637021 g1/calc.lowered.om apic
+INFO exit=110 log=OUT/x86/0131.log
+INFO exit=110 log=OUT/x86/0132.log
+PASS AArch64 byte parity f637021 g1/calc.lowered.om freest
+PASS AArch64 byte parity f637021 g1/calc.om c
+PASS AArch64 byte parity f637021 g1/calc.om h
+PASS AArch64 byte parity f637021 g1/calc.om python
+PASS AArch64 byte parity f637021 g1/calc.om rust
+PASS AArch64 byte parity f637021 g1/calc.om zig
+PASS AArch64 byte parity f637021 g1/calc.om go
+PASS AArch64 byte parity f637021 g1/calc.om api
+PASS AArch64 byte parity f637021 g1/calc.om apih
+PASS AArch64 byte parity f637021 g1/calc.om apic
+INFO exit=110 log=OUT/x86/0151.log
+INFO exit=110 log=OUT/x86/0152.log
+PASS AArch64 byte parity f637021 g1/calc.om freest
+PASS AArch64 byte parity f637021 halve.om c
+PASS AArch64 byte parity f637021 halve.om h
+PASS AArch64 byte parity f637021 halve.om python
+PASS AArch64 byte parity f637021 halve.om rust
+PASS AArch64 byte parity f637021 halve.om zig
+PASS AArch64 byte parity f637021 halve.om go
+PASS AArch64 byte parity f637021 halve.om api
+PASS AArch64 byte parity f637021 halve.om apih
+PASS AArch64 byte parity f637021 halve.om apic
+INFO exit=110 log=OUT/x86/0171.log
+INFO exit=110 log=OUT/x86/0172.log
+PASS AArch64 byte parity f637021 halve.om freest
+PASS AArch64 byte parity f637021 hsum.om c
+PASS AArch64 byte parity f637021 hsum.om h
+PASS AArch64 byte parity f637021 hsum.om python
+PASS AArch64 byte parity f637021 hsum.om rust
+PASS AArch64 byte parity f637021 hsum.om zig
+PASS AArch64 byte parity f637021 hsum.om go
+PASS AArch64 byte parity f637021 hsum.om api
+PASS AArch64 byte parity f637021 hsum.om apih
+PASS AArch64 byte parity f637021 hsum.om apic
+INFO exit=110 log=OUT/x86/0191.log
+INFO exit=110 log=OUT/x86/0192.log
+PASS AArch64 byte parity f637021 hsum.om freest
+PASS AArch64 byte parity f637021 madd.om c
+PASS AArch64 byte parity f637021 madd.om h
+PASS AArch64 byte parity f637021 madd.om python
+PASS AArch64 byte parity f637021 madd.om rust
+PASS AArch64 byte parity f637021 madd.om zig
+PASS AArch64 byte parity f637021 madd.om go
+PASS AArch64 byte parity f637021 madd.om api
+PASS AArch64 byte parity f637021 madd.om apih
+PASS AArch64 byte parity f637021 madd.om apic
+PASS AArch64 byte parity f637021 madd.om freest
+PASS AArch64 byte parity f637021 mix.om c
+PASS AArch64 byte parity f637021 mix.om h
+PASS AArch64 byte parity f637021 mix.om python
+PASS AArch64 byte parity f637021 mix.om rust
+PASS AArch64 byte parity f637021 mix.om zig
+PASS AArch64 byte parity f637021 mix.om go
+PASS AArch64 byte parity f637021 mix.om api
+PASS AArch64 byte parity f637021 mix.om apih
+PASS AArch64 byte parity f637021 mix.om apic
+INFO exit=110 log=OUT/x86/0231.log
+INFO exit=110 log=OUT/x86/0232.log
+PASS AArch64 byte parity f637021 mix.om freest
+PASS AArch64 byte parity f637021 smadd.om c
+PASS AArch64 byte parity f637021 smadd.om h
+PASS AArch64 byte parity f637021 smadd.om python
+PASS AArch64 byte parity f637021 smadd.om rust
+PASS AArch64 byte parity f637021 smadd.om zig
+PASS AArch64 byte parity f637021 smadd.om go
+PASS AArch64 byte parity f637021 smadd.om api
+PASS AArch64 byte parity f637021 smadd.om apih
+PASS AArch64 byte parity f637021 smadd.om apic
+PASS AArch64 byte parity f637021 smadd.om freest
+PASS AArch64 byte parity f637021 spin.om c
+PASS AArch64 byte parity f637021 spin.om h
+PASS AArch64 byte parity f637021 spin.om python
+PASS AArch64 byte parity f637021 spin.om rust
+PASS AArch64 byte parity f637021 spin.om zig
+PASS AArch64 byte parity f637021 spin.om go
+PASS AArch64 byte parity f637021 spin.om api
+PASS AArch64 byte parity f637021 spin.om apih
+PASS AArch64 byte parity f637021 spin.om apic
+PASS AArch64 byte parity f637021 spin.om freest
+PASS AArch64 byte parity f637021 v2/lay.om c
+PASS AArch64 byte parity f637021 v2/lay.om h
+PASS AArch64 byte parity f637021 v2/lay.om python
+PASS AArch64 byte parity f637021 v2/lay.om rust
+PASS AArch64 byte parity f637021 v2/lay.om zig
+PASS AArch64 byte parity f637021 v2/lay.om go
+PASS AArch64 byte parity f637021 v2/lay.om api
+PASS AArch64 byte parity f637021 v2/lay.om apih
+PASS AArch64 byte parity f637021 v2/lay.om apic
+INFO exit=110 log=OUT/x86/0291.log
+INFO exit=110 log=OUT/x86/0292.log
+PASS AArch64 byte parity f637021 v2/lay.om freest
+PASS AArch64 byte parity f637021 v2/one.om c
+PASS AArch64 byte parity f637021 v2/one.om h
+PASS AArch64 byte parity f637021 v2/one.om python
+PASS AArch64 byte parity f637021 v2/one.om rust
+PASS AArch64 byte parity f637021 v2/one.om zig
+PASS AArch64 byte parity f637021 v2/one.om go
+PASS AArch64 byte parity f637021 v2/one.om api
+PASS AArch64 byte parity f637021 v2/one.om apih
+PASS AArch64 byte parity f637021 v2/one.om apic
+INFO exit=110 log=OUT/x86/0311.log
+INFO exit=110 log=OUT/x86/0312.log
+PASS AArch64 byte parity f637021 v2/one.om freest
+PASS AArch64 byte parity f637021 v2/v1use/bsum.om c
+PASS AArch64 byte parity f637021 v2/v1use/bsum.om h
+PASS AArch64 byte parity f637021 v2/v1use/bsum.om python
+PASS AArch64 byte parity f637021 v2/v1use/bsum.om rust
+PASS AArch64 byte parity f637021 v2/v1use/bsum.om zig
+PASS AArch64 byte parity f637021 v2/v1use/bsum.om go
+PASS AArch64 byte parity f637021 v2/v1use/bsum.om api
+PASS AArch64 byte parity f637021 v2/v1use/bsum.om apih
+PASS AArch64 byte parity f637021 v2/v1use/bsum.om apic
+INFO exit=110 log=OUT/x86/0331.log
+INFO exit=110 log=OUT/x86/0332.log
+PASS AArch64 byte parity f637021 v2/v1use/bsum.om freest
+PASS AArch64 byte parity f637021 v2/vec.om c
+PASS AArch64 byte parity f637021 v2/vec.om h
+PASS AArch64 byte parity f637021 v2/vec.om python
+PASS AArch64 byte parity f637021 v2/vec.om rust
+PASS AArch64 byte parity f637021 v2/vec.om zig
+PASS AArch64 byte parity f637021 v2/vec.om go
+PASS AArch64 byte parity f637021 v2/vec.om api
+PASS AArch64 byte parity f637021 v2/vec.om apih
+PASS AArch64 byte parity f637021 v2/vec.om apic
+INFO exit=110 log=OUT/x86/0351.log
+INFO exit=110 log=OUT/x86/0352.log
+PASS AArch64 byte parity f637021 v2/vec.om freest
+PASS AArch64 byte parity f637021 v1-set c
+PASS AArch64 byte parity f637021 v1-set h
+PASS AArch64 byte parity f637021 v1-set python
+PASS AArch64 byte parity f637021 v1-set rust
+PASS AArch64 byte parity f637021 v1-set zig
+PASS AArch64 byte parity f637021 v1-set go
+PASS AArch64 byte parity f637021 v1-set api
+PASS AArch64 byte parity f637021 v1-set apih
+PASS AArch64 byte parity f637021 v1-set apic
+INFO exit=110 log=OUT/x86/0371.log
+INFO exit=110 log=OUT/x86/0372.log
+PASS AArch64 byte parity f637021 v1-set freest
+PASS AArch64 byte parity f637021 v2-set c
+PASS AArch64 byte parity f637021 v2-set h
+PASS AArch64 byte parity f637021 v2-set python
+PASS AArch64 byte parity f637021 v2-set rust
+PASS AArch64 byte parity f637021 v2-set zig
+PASS AArch64 byte parity f637021 v2-set go
+PASS AArch64 byte parity f637021 v2-set api
+PASS AArch64 byte parity f637021 v2-set apih
+PASS AArch64 byte parity f637021 v2-set apic
+INFO exit=110 log=OUT/x86/0391.log
+INFO exit=110 log=OUT/x86/0392.log
+PASS AArch64 byte parity f637021 v2-set freest
+PASS c caller built
+PASS c caller EMULATED
+PASS cpp caller built
+PASS cpp caller EMULATED
+PASS go caller built
+PASS go caller EMULATED
+PASS python caller EMULATED
+PASS rust caller built
+PASS rust caller EMULATED
+PASS rust-2024 caller EMULATED
+PASS zig caller built
+PASS zig caller EMULATED
+PASS SysV AMD64 saved-register oracle EMULATED
+PASS stale source mutation changes bytes
+PASS stale h generated
+PASS stale python generated
+INFO exit=3 log=OUT/x86/0411.log
+PASS stale C identity refused
+PASS fresh C identity control
+INFO exit=1 log=OUT/x86/0414.log
+PASS stale Python import refused for identity
+PASS v1 refusal binding generated h
+PASS v1 refusal binding generated python
+PASS v1 refusal binding generated rust
+PASS v1 refusal binding generated zig
+PASS v1 refusal binding generated go
+INFO exit=1 log=OUT/x86/0421.log
+PASS c refuses old v1 symbol
+INFO exit=1 log=OUT/x86/0422.log
+PASS cpp refuses old v1 symbol
+INFO exit=1 log=OUT/x86/0423.log
+PASS go refuses old v1 symbol
+INFO exit=1 log=OUT/x86/0424.log
+PASS python refuses old v1 symbol
+INFO exit=1 log=OUT/x86/0425.log
+PASS rust refuses old v1 symbol
+INFO exit=1 log=OUT/x86/0426.log
+PASS zig refuses old v1 symbol
+PASS generator accepts refusal control
+INFO exit=110 log=OUT/x86/0428.log
+PASS generator refuses missing identity
+INFO exit=110 log=OUT/x86/0429.log
+PASS generator refuses short digest
+INFO exit=110 log=OUT/x86/0430.log
+PASS generator refuses nonhex digest
+INFO exit=110 log=OUT/x86/0431.log
+PASS generator refuses invalid unit name
+INFO exit=110 log=OUT/x86/0432.log
+PASS generator refuses repeated unit
+INFO exit=110 log=OUT/x86/0433.log
+PASS generator refuses repeated export
+INFO exit=110 log=OUT/x86/0434.log
+PASS generator refuses diag
+INFO exit=110 log=OUT/x86/0435.log
+PASS generator refuses eight slots
+INFO exit=110 log=OUT/x86/0436.log
+PASS generator refuses unknown layout
+INFO exit=110 log=OUT/x86/0437.log
+PASS generator refuses oversized out
+INFO exit=110 log=OUT/x86/0438.log
+PASS generator refuses uint scalar
+INFO exit=110 log=OUT/x86/0439.log
+PASS generator refuses uint result
+INFO exit=110 log=OUT/x86/0440.log
+PASS generator refuses reserved len name
+INFO exit=110 log=OUT/x86/0441.log
+PASS generator refuses short six-byte entry table
+INFO exit=110 log=OUT/x86/0442.log
+PASS generator refuses unknown c-type layout
+INFO exit=110 log=OUT/x86/0443.log
+PASS generator refuses argument vector []
+INFO exit=110 log=OUT/x86/0444.log
+PASS generator refuses argument vector ['java', 'x86linux']
+INFO exit=110 log=OUT/x86/0445.log
+PASS generator refuses argument vector ['c', 'unknown']
+INFO exit=110 log=OUT/x86/0446.log
+PASS generator refuses argument vector ['c', 'x86linux', 'extra']
+INFO exit=1 log=OUT/x86/0447.log
+PASS mismatched x86 compiler refuses before creating outputs
+INFO exit=1 log=OUT/x86/0449.log
+PASS mismatched x86 compiler preserves previous outputs
+INFO exit=110 log=OUT/x86/0450.log
+PASS tools/native refusal preserves previous outputs and removes scratch
+PASS wrap mutant generated c
+PASS wrap mutant generated h
+PASS wrap mutant differs
+INFO exit=-11 log=OUT/x86/0456.log
+PASS wrap mutant caught by existing boundary oracle
+PASS overlap mutant generated c
+PASS overlap mutant generated h
+PASS overlap mutant differs
+INFO exit=1 log=OUT/x86/0462.log
+PASS overlap mutant caught by existing boundary oracle
+PASS outcopy mutant generated c
+PASS outcopy mutant generated h
+PASS outcopy mutant differs
+INFO exit=1 log=OUT/x86/0468.log
+PASS outcopy mutant caught by existing boundary oracle
+PASS private fixture generated madd
+PASS separate object private locals madd
+PASS private fixture generated smadd
+PASS separate object private locals smadd
+PASS separate bindings and TLS isolation EMULATED
+PASS private fixture generated madd
+PASS private fixture generated smadd
+INFO exit=1 log=OUT/x86/0486.log
+PASS global helper mutant rejected at link
+PASS prototype-only API has no libc imports
+PASS out-of-line API owns abort and definitions
+PASS inline API import negative control
+PASS out-of-line API EMULATED
+INFO exit=-6 log=OUT/x86/0496.log
+PASS out-of-line API trap aborts
+PASS apih API mutant generated
+PASS prototype-only API mutant caught
+PASS api API mutant generated
+PASS inline API mutant caught
+PASS nested explicit trap uses ESI and runtime table slot 2
+PASS legacy basic write remains permitted in bare code
+INFO exit=9 log=OUT/x86/0507.log
+PASS advanced bare host helper remains compiler refusal 9
+PASS trap control generated c
+PASS trap control generated h
+PASS trap: status 5, sentinel, saved regs and subsequent call EMULATED
+PASS zero-code control generated c
+PASS zero-code control generated h
+PASS zero-code: status 34, sentinel, saved regs and subsequent call EMULATED
+PASS wrong-slot control generated c
+PASS wrong-slot control generated h
+PASS wrong-slot: status 34, sentinel, saved regs and subsequent call EMULATED
+PASS xsave-stack control generated c
+PASS xsave control bounds only owned runtime stack
+PASS xsave-stack control generated h
+PASS xsave-stack: status 6, sentinel, saved regs and subsequent call EMULATED
+PASS direct floor oracle generated c
+PASS direct floor oracle generated h
+PASS direct floor oracle finds one true-floor argument
+PASS actual R15 mapping floor with ABI-v2 out buffer EMULATED
+INFO exit=1 log=OUT/x86/0533.log
+PASS carved-top floor mutant rejected without crash EMULATED
+NATIVE-X86 NATIVE NOT_RUN (physical x86 execution not requested)
+NATIVE-X86 EMULATED PASS (six languages built and run; native x86 NOT_RUN)