interplane.Get Omega
Read in your language

aien-architecture-mv

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

Brought by drakestapleton

GitHub aien-dev/aien-architecture-mv#331 (code only)

closed derived 75cdf47953de3873 #331

Imported from GitHub aien-dev/aien-architecture-mv#331 (code only)

GitHub's metadata for this pull request is unavailable: its state is DERIVED from the commits (merged: the head is reachable from this project's main; open: GitHub kept a merge ref; else closed).

Base 27bc1c79ddbfc6468513ba6363369bc9704fc9c5 · Head d1a026cb17e011b29d58a2746310e499666f69b7

Apply it

git checkout -b patch-75cdf47953de3873 27bc1c79ddbfc6468513ba6363369bc9704fc9c5
curl -fsSL https://interplane.io/drakestapleton/aien-architecture-mv/patches/75cdf47953de3873.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/aien-architecture-mv
331
d1a026cb17e011b29d58a2746310e499666f69b7
{"kind":"github-import","owner":"aien-dev","repo":"aien-architecture-mv","number":331,"url":"https://github.com/aien-dev/aien-architecture-mv/pull/331","export_sha256":"967c79e26a893657b5cdaa45efd442be5dbd2ecfe68e25f9a8c1b5da4d60d452","imported_utc":"2026-11-18T16:38:01Z","metadata":"unavailable","state_derived":true}

Changes

diff --git a/README.md b/README.md
index 32b12fb..dee8822 100644
--- a/README.md
+++ b/README.md
@@ -4,7 +4,7 @@ The authority for how the AIEN project fits together: whole-system architecture,
 
 AIEN is a sovereign computing stack (one its owner builds, runs and controls end to end) being built in the open on an NVIDIA DGX Spark (Grace Blackwell GB10): its own operating system kernel (Aienux), its own reaction runtime and compiler (Omega), and its own machine realization layer (FORGE). Founding principle: closest to the metal, fastest wins. Build what is missing.
 
-Part of [AienOS](https://github.com/aien-dev/aienix), the core tree of AIEN. AienOS is the front door for newcomers; this repository is where the design decisions and the status of record are kept.
+Part of [AienOS](https://github.com/aien-dev/aienix), the whole system and core tree of AIEN. Aienux is its kernel, not the whole operating system. AienOS is the front door for newcomers; this repository is where the design decisions and the status of record are kept.
 
 **Status 2026-10-19: research-grade, pre-alpha.** Nothing in AIEN is described as qualified unless a receipt says so. Details follow.
 
@@ -12,7 +12,7 @@ Part of [AienOS](https://github.com/aien-dev/aienix), the core tree of AIEN. Aie
 
 Research-grade and pre-alpha. The live numbers are not repeated in this file because they change daily; read [CURRENT_EXECUTION_PLAN.md](CURRENT_EXECUTION_PLAN.md) and [doctrine/ROADMAP.md](doctrine/ROADMAP.md). What follows is a summary, with the source for each point.
 
-- **Aienux kernel.** The C kernel passes its emulator (QEMU) gates but is not physically qualified, and it has not been booted on the DGX Spark. Only an earlier first-boot test of the previous Rust kernel ran there, on 2026-09-24 (see the [aienos README](https://github.com/aien-dev/aienux#readme)). Its first runs on real hardware were on a Raspberry Pi 5 on 2026-10-13 (same README). An x86_64 build of it starts on a 2017 Intel iMac used as a test computer ([aienos-mv#405](https://github.com/aien-dev/aienux/pull/405), merged 2026-10-17, and the follow-up pull requests #406 to #408). The aienos README does not yet describe the iMac runs.
+- **Aienux kernel.** The C kernel passes its emulator (QEMU) gates but is not physically qualified, and it has not been booted on the DGX Spark. Only an earlier first-boot test of the previous Rust kernel ran there, on 2026-09-24 (see the [Aienux README](https://github.com/aien-dev/aienux#readme)). Its first runs on real hardware were on a Raspberry Pi 5 on 2026-10-13 (same README). An x86_64 build of it starts on a 2017 Intel iMac used as a test computer ([aienux#405](https://github.com/aien-dev/aienux/pull/405), merged 2026-10-17, and the follow-up pull requests #406 to #408). The Aienux README does not yet describe the iMac runs.
 - **Omega runtime, R1 to R16 ladder.** The ladder was first qualified on builds that predate the composition modules now in the living build. Requalification at omega `3108fc2` recorded R15 FAIL (14 of 16 gates) and R16 FAIL (omega [`evidence/REQUAL-3108fc2/`](https://github.com/aien-dev/omega-mv/tree/main/evidence/REQUAL-3108fc2)). The ladder was rerun on candidate CAND-3 (omega `f816473`): R16 gates G1 to G8 PASS, and R15 passed 16 of 16 gates as a conditional pass, because Secure Boot was off for that run ([CAND-3 results](qualification/candidates/CAND-3.gates.md), [exception 0002](qualification/exceptions/0002-r15-secure-boot-off.md)). CAND-3 as a whole is not claimed qualified, and CAND-4 has no R15 or R16 rerun ([CAND-4 results](qualification/candidates/CAND-4.gates.md)). The R15 and R16 rows in [doctrine/ROADMAP.md](doctrine/ROADMAP.md) still carry the earlier wording (they stop at CAND-0 and CAND-1).
 - **ARGUS** (the defensive plane, which watches for attacks and proposes responses but never authorizes them). ARGUS-0, its event substrate, is complete under documented limits and ARGUS-1 containment is in progress ([ADR 0017](docs/adr/0017-argus-defensive-plane.md)).
 - **Specifications only.** Physics Zero, DIRAC-0, the Evolution Arena and the necessary-work programme are documents or plans with no qualified code (see [Specifications and plans](#specifications-and-plans-not-qualified-code) below).
@@ -59,7 +59,7 @@ AEGIS VERIFIES.  HARDWARE ACTS.  EVIDENCE TEACHES.
 
 | Repository | Role |
 | :--- | :--- |
-| [aienos-mv](https://github.com/aien-dev/aienux) | The trusted operating system: its own kernel replacing Linux on the DGX Spark |
+| [aienux](https://github.com/aien-dev/aienux) | Aienux, the kernel of AienOS, intended to replace the Linux kernel on the DGX Spark |
 | [omega-mv](https://github.com/aien-dev/omega-mv) | The C reaction runtime and compiler that defines computation, and the native GB10 GPU engine |
 | [physics-mv](https://github.com/aien-dev/physics-mv) | FORGE machine realization, plus historical Atlas/PHYSICS boot evidence |
 | [aien-protocols-mv](https://github.com/aien-dev/aien-protocols-mv) | Versioned wire and state specifications |
diff --git a/docs/01-github-repository-map.md b/docs/01-github-repository-map.md
index eb7a072..27f514d 100644
--- a/docs/01-github-repository-map.md
+++ b/docs/01-github-repository-map.md
@@ -6,7 +6,8 @@ Snapshot-oriented map of the AIEN GitHub ecosystem, checked against `gh repo lis
 
 | Repository | Visibility | Role |
 |---|---|---|
-| `aien-dev/aienux` | public | AienOS, the sovereign operating system (pre-alpha). |
+| `aien-dev/aienux` | public | Aienux, the kernel of AienOS (pre-alpha), not the whole operating system. |
+| `aien-dev/aienix` | public | AienOS, the whole-system tree and newcomer entry point, including the Aienux kernel and other stack components. |
 | `aien-spark/omega` | public | Omega, the C reaction runtime and compiler. |
 | `aien-spark/physics` | public | FORGE machine realization plus historical Atlas/PHYSICS boot evidence. The subsystem was renamed FORGE by [ADR 0014](adr/0014-rename-machine-physics-to-forge.md), which keeps the existing `aien-spark/physics` repository name and history. The GitHub description is empty. |
 | `aien-dev/atlas` | public | Atlas, the bare-metal boot layer. The GitHub description is empty. |
diff --git a/docs/qualification/CANDIDATE.md b/docs/qualification/CANDIDATE.md
index a7062ab..70924dc 100644
--- a/docs/qualification/CANDIDATE.md
+++ b/docs/qualification/CANDIDATE.md
@@ -70,7 +70,7 @@ Promotion checks (for example `evidence-immutable`) are mandatory. A bypass need
 
 ## Checker
 
-`tools/candidate/check_candidate.om` (seeded native Omega, #316; built with the pinned compiler, `tools/candidate/README.md`; it replaced `scripts/check_candidate.sh` with byte-identical output) run as `check_candidate <manifest.toml>` verifies that all required fields are present, that each pinned commit (`[commits]` and `[contracts]`) is 40 hex digits and exists in its repo (checked with `gh api`), that executable digests are 64 hex and not all zero, that a `#` inside a quoted value is kept (only a trailing comment is dropped), and that a non-draft manifest has real executable digests. Test: `scripts/test_check_candidate.sh` (compiles the .om with `AIEN_OMC`; the 2026-10-01 draft is kept as `scripts/testdata/cand-draft-fixture.toml`; offline: a fake `gh` on PATH exercises the real `gh` code path, and mutant copies of the checker prove each check bites) and the frozen parity corpus `tools/candidate/parity/` (recorded from the bash checkers before their deletion). Locally the `ARCH-SCRIPT-TESTS` gate (`tests/gates/run.sh script-tests`) runs both; hosted CI wiring is not done and needs Drake's approval.
+`tools/candidate/check_candidate.om` (seeded native Omega, #316; built with the pinned compiler, `tools/candidate/README.md`; it replaced `scripts/check_candidate.sh` with frozen-oracle parity subject to the documented limits and exact kernel-repository naming delta) run as `check_candidate <manifest.toml>` verifies that all required fields are present, that each pinned commit (`[commits]` and `[contracts]`) is 40 hex digits and exists in its repo (checked with `gh api`), that executable digests are 64 hex and not all zero, that a `#` inside a quoted value is kept (only a trailing comment is dropped), and that a non-draft manifest has real executable digests. The historical manifest key `commits.aienos` resolves to the Aienux kernel repository `aien-dev/aienux`, not the AienOS whole system. Test: `scripts/test_check_candidate.sh` (compiles the .om with `AIEN_OMC`; the 2026-10-01 draft is kept as `scripts/testdata/cand-draft-fixture.toml`; offline: a fake `gh` on PATH exercises the real `gh` code path, and mutant copies of the checker prove each check bites) and the frozen parity corpus `tools/candidate/parity/` (recorded from the bash checkers before their deletion; original output bytes are retained and the naming delta is checked separately). Locally the `ARCH-SCRIPT-TESTS` gate (`tests/gates/run.sh script-tests`) runs both; hosted CI wiring is not done and needs Drake's approval.
 
 Amendments: a frozen manifest is not edited. Evidence recorded after the freeze goes in `<id>.amendment-<n>.toml` next to the manifest (schema `CandidateAmendmentV1`: `candidate`, `amendment`, `date`, `reason`, `manifest-sha256` = the sha256 of the frozen manifest file, then the added keys), with a dated note in `<id>.gates.md`. `check_candidate` reads every amendment with its manifest and refuses one that names another candidate or number, pins a manifest sha256 that is not the file's (so a later manifest edit fails), re-states a key the manifest already has, touches `[commits]`, `[contracts]`, `[executables]` or `[consumed_pins]`, or adds a `*-sha256` that is not a real digest. `check_pins` is unaffected, since an amendment cannot change pins. First use: CAND-4 Amendment 1 (oracle fixture digests, 2026-10-06).
 
diff --git a/tests/gates/run.sh b/tests/gates/run.sh
index 9a55c67..69a5791 100755
--- a/tests/gates/run.sh
+++ b/tests/gates/run.sh
@@ -72,7 +72,8 @@ case "$step" in
     cat "$build/parity.log"
     parity=$(sed -n 's/^parity: //p' "$build/parity.log")
     obs candidate_parity_identical "${parity%% *}"
-    obs candidate_parity_limits "$(printf '%s' "$parity" | sed 's/.*identical, \([0-9]*\) named limits.*/\1/')"
+    obs candidate_parity_naming_deltas "$(printf '%s' "$parity" | sed 's/.*identical, \([0-9]*\) exact naming deltas.*/\1/')"
+    obs candidate_parity_limits "$(printf '%s' "$parity" | sed 's/.*deltas, \([0-9]*\) named limits.*/\1/')"
     obs candidate_parity_different "$(printf '%s' "$parity" | sed 's/.*limits, \([0-9]*\) different$/\1/')"
     [ "$parity_rc" -eq 0 ]
     for t in scripts/test_pr_gate.sh scripts/test_rebase_crumb.sh scripts/test_check_candidate.sh scripts/test_check_candidate_pins.sh; do
diff --git a/tools/candidate/README.md b/tools/candidate/README.md
index 98f1589..dd63c56 100644
--- a/tools/candidate/README.md
+++ b/tools/candidate/README.md
@@ -3,7 +3,7 @@
 Two first-party tools of `docs/qualification/CANDIDATE.md`, rewritten from bash into seeded
 native Omega (`.om`) for the zero-legacy migration (#300, #316). They replace
 `scripts/check_candidate.sh` and `scripts/check_candidate_pins.sh` (last at 1dd84d1) with the
-same arguments, the same stdout and stderr lines in the same order, and the same exit codes.
+same arguments, output ordering and exit codes, subject to the explicit differences below.
 
 | program | usage | exit |
 |---|---|---|
@@ -27,8 +27,8 @@ or `$CAND_FILE_AT <repo> <sha> <path>`) and compares them with the manifest's pi
 `[consumed_pins]`.
 
 One deliberate change from the frozen bash: the key `commits.aienos` names the kernel repository,
-renamed to aien-dev/aienux, so `check_candidate` checks that pin as `<repo>` = `aienux` (the parity
-outputs that show it were updated from `aienos`).
+renamed to aien-dev/aienux, so `check_candidate` checks that pin as `<repo>` = `aienux`.
+The original oracle outputs remain unchanged; the runner asserts this exact naming delta.
 
 ## The parsed TOML subset
 
@@ -90,15 +90,26 @@ NUL bytes dropped, as `$(...)` does) and leaves stderr alone.
 `parity/run.sh <check_candidate> <check_pins> [record]` runs every case under `parity/cases/`
 and compares stdout+stderr (one pipe, in order) plus `rc=N` with `parity/expected/`. The expected
 files were recorded from the bash scripts at 1dd84d1 (`record`), before they were deleted; the
-.om binaries must reproduce them byte for byte. 74 candidate cases and 43 pins cases: every
+.om binaries must reproduce them byte for byte except for the exact naming delta below and the
+named limits. 74 candidate cases and 43 pins cases: every
 case of the two test suites, the live `CAND-0` and `CAND-4` manifests, the gh code path with its
 argv log, and adversarial inputs (missing, duplicate and wrongly typed keys, extra sections,
 CRLF, trailing spaces, no final newline, NUL and non-ASCII bytes, empty and junk files, 50 bad
 executables, 24 bad amendment keys, three amendments, a directory where a file is expected,
 command words in `CAND_SHA_CHECK`/`CAND_FILE_AT`, empty and comment-only lock files, several and
-forked Cargo.lock revisions, an 800-package Cargo.lock). Result: **113 identical, 4 named
-limits, 0 different**. A case with a `limit` file is a documented difference: it is printed, not
-counted as a failure, and reported if it ever becomes identical.
+forked Cargo.lock revisions, an 800-package Cargo.lock). Expected result: **107 identical,
+6 exact naming deltas, 4 named limits, 0 different**. A case with a `limit` file is a documented
+difference: it is printed, not counted as a failure, and reported if it ever becomes identical.
+
+The six naming cases are `gh-404-contract`, `gh-404`, `gh-good`, `gh-live-cand0`,
+`nonexistent-sha`, and `sha-check-unset-empty`. They are not limits. For these cases only,
+the runner derives a comparison from the frozen output by changing `aienos` to `aienux` in
+complete `api repos/aien-dev/aienos/commits/<40-hex> -q .sha` and
+`FAIL: commit <40-hex> not found in aien-dev/aienos` lines. Every other byte, including
+exit status, ordering, SHA and other repository names, must match. The transformation must
+actually change the oracle: refreshing it to the new name fails, as does reverting the
+checker to the old name. Do not use `record` with the current checker to refresh the frozen
+shell oracle. PR #326's six hand-edited outputs were restored from its parent `a211260`.
 
 The suites `scripts/test_check_candidate.sh` (47 checks, 7 mutants) and
 `scripts/test_check_candidate_pins.sh` (17 checks) compile the .om with `AIEN_OMC` and run it;
diff --git a/tools/candidate/parity/expected/candidate/gh-404-contract.out b/tools/candidate/parity/expected/candidate/gh-404-contract.out
index f6924b4..391dfb3 100644
--- a/tools/candidate/parity/expected/candidate/gh-404-contract.out
+++ b/tools/candidate/parity/expected/candidate/gh-404-contract.out
@@ -2,7 +2,7 @@ FAIL: commit deadbeefdeadbeefdeadbeefdeadbeefdeadbeef not found in aien-dev/spar
 rc=1
 -- gh calls --
 api repos/aien-dev/omega/commits/25b4a51141fa48be01d1cdbac8617d41065e523d -q .sha
-api repos/aien-dev/aienux/commits/bb3a5f4efb4c632d8485f9d05f615f466aff0f69 -q .sha
+api repos/aien-dev/aienos/commits/bb3a5f4efb4c632d8485f9d05f615f466aff0f69 -q .sha
 api repos/aien-dev/aien-sovereign-core/commits/e58742acbb781ad4e472b3355b9b6ac8624617d9 -q .sha
 api repos/aien-dev/aien-protocols/commits/4a4877a88e141cb0c2d397191459912b8bfa993a -q .sha
 api repos/aien-dev/aien-architecture/commits/f11ac55bd96908e004af625c8b53dc02b6188bca -q .sha
diff --git a/tools/candidate/parity/expected/candidate/gh-404.out b/tools/candidate/parity/expected/candidate/gh-404.out
index a166b11..a311e50 100644
--- a/tools/candidate/parity/expected/candidate/gh-404.out
+++ b/tools/candidate/parity/expected/candidate/gh-404.out
@@ -1,8 +1,8 @@
-FAIL: commit deadbeefdeadbeefdeadbeefdeadbeefdeadbeef not found in aien-dev/aienux
+FAIL: commit deadbeefdeadbeefdeadbeefdeadbeefdeadbeef not found in aien-dev/aienos
 rc=1
 -- gh calls --
 api repos/aien-dev/omega/commits/25b4a51141fa48be01d1cdbac8617d41065e523d -q .sha
-api repos/aien-dev/aienux/commits/deadbeefdeadbeefdeadbeefdeadbeefdeadbeef -q .sha
+api repos/aien-dev/aienos/commits/deadbeefdeadbeefdeadbeefdeadbeefdeadbeef -q .sha
 api repos/aien-dev/aien-sovereign-core/commits/e58742acbb781ad4e472b3355b9b6ac8624617d9 -q .sha
 api repos/aien-dev/aien-protocols/commits/4a4877a88e141cb0c2d397191459912b8bfa993a -q .sha
 api repos/aien-dev/aien-architecture/commits/f11ac55bd96908e004af625c8b53dc02b6188bca -q .sha
diff --git a/tools/candidate/parity/expected/candidate/gh-good.out b/tools/candidate/parity/expected/candidate/gh-good.out
index 6028e14..bf1eed4 100644
--- a/tools/candidate/parity/expected/candidate/gh-good.out
+++ b/tools/candidate/parity/expected/candidate/gh-good.out
@@ -2,7 +2,7 @@ OK: m.toml (amendments: 0)
 rc=0
 -- gh calls --
 api repos/aien-dev/omega/commits/25b4a51141fa48be01d1cdbac8617d41065e523d -q .sha
-api repos/aien-dev/aienux/commits/bb3a5f4efb4c632d8485f9d05f615f466aff0f69 -q .sha
+api repos/aien-dev/aienos/commits/bb3a5f4efb4c632d8485f9d05f615f466aff0f69 -q .sha
 api repos/aien-dev/aien-sovereign-core/commits/e58742acbb781ad4e472b3355b9b6ac8624617d9 -q .sha
 api repos/aien-dev/aien-protocols/commits/4a4877a88e141cb0c2d397191459912b8bfa993a -q .sha
 api repos/aien-dev/aien-architecture/commits/f11ac55bd96908e004af625c8b53dc02b6188bca -q .sha
diff --git a/tools/candidate/parity/expected/candidate/gh-live-cand0.out b/tools/candidate/parity/expected/candidate/gh-live-cand0.out
index 2cf959c..0703052 100644
--- a/tools/candidate/parity/expected/candidate/gh-live-cand0.out
+++ b/tools/candidate/parity/expected/candidate/gh-live-cand0.out
@@ -2,7 +2,7 @@ OK: m.toml (amendments: 0)
 rc=0
 -- gh calls --
 api repos/aien-dev/omega/commits/e5593ae488fcb9038557a4317a07faa7625649a3 -q .sha
-api repos/aien-dev/aienux/commits/9d41efc9d1bea31be0640ca70eeeec9d1d000fad -q .sha
+api repos/aien-dev/aienos/commits/9d41efc9d1bea31be0640ca70eeeec9d1d000fad -q .sha
 api repos/aien-dev/aien-sovereign-core/commits/0c1d249f2d119c7c2d726a2d252dc913e6185d28 -q .sha
 api repos/aien-dev/aien-protocols/commits/7ac6facb630ca7e9a6ab4125b292203fe2bb6687 -q .sha
 api repos/aien-dev/aien-architecture/commits/c5d80978c7a22cc039e67def9745cede5010f388 -q .sha
diff --git a/tools/candidate/parity/expected/candidate/nonexistent-sha.out b/tools/candidate/parity/expected/candidate/nonexistent-sha.out
index 39285ba..f9698f2 100644
--- a/tools/candidate/parity/expected/candidate/nonexistent-sha.out
+++ b/tools/candidate/parity/expected/candidate/nonexistent-sha.out
@@ -1,2 +1,2 @@
-FAIL: commit deadbeefdeadbeefdeadbeefdeadbeefdeadbeef not found in aien-dev/aienux
+FAIL: commit deadbeefdeadbeefdeadbeefdeadbeefdeadbeef not found in aien-dev/aienos
 rc=1
diff --git a/tools/candidate/parity/expected/candidate/sha-check-unset-empty.out b/tools/candidate/parity/expected/candidate/sha-check-unset-empty.out
index 6028e14..bf1eed4 100644
--- a/tools/candidate/parity/expected/candidate/sha-check-unset-empty.out
+++ b/tools/candidate/parity/expected/candidate/sha-check-unset-empty.out
@@ -2,7 +2,7 @@ OK: m.toml (amendments: 0)
 rc=0
 -- gh calls --
 api repos/aien-dev/omega/commits/25b4a51141fa48be01d1cdbac8617d41065e523d -q .sha
-api repos/aien-dev/aienux/commits/bb3a5f4efb4c632d8485f9d05f615f466aff0f69 -q .sha
+api repos/aien-dev/aienos/commits/bb3a5f4efb4c632d8485f9d05f615f466aff0f69 -q .sha
 api repos/aien-dev/aien-sovereign-core/commits/e58742acbb781ad4e472b3355b9b6ac8624617d9 -q .sha
 api repos/aien-dev/aien-protocols/commits/4a4877a88e141cb0c2d397191459912b8bfa993a -q .sha
 api repos/aien-dev/aien-architecture/commits/f11ac55bd96908e004af625c8b53dc02b6188bca -q .sha
diff --git a/tools/candidate/parity/run.sh b/tools/candidate/parity/run.sh
index 2f66750..6c310fc 100755
--- a/tools/candidate/parity/run.sh
+++ b/tools/candidate/parity/run.sh
@@ -11,6 +11,8 @@
 # word `record`; without it the outputs are compared and any difference is printed. A case with a
 # `limit` file is a named, documented difference (README "Limits"): it is shown, not counted as a
 # failure, and reported if it ever becomes identical.
+# Six candidate cases also assert the exact kernel-repository rename against the frozen oracle;
+# unlike a limit, any other byte difference (or the old repository name) fails.
 set -u
 here="$(cd "$(dirname "$0")" && pwd)"
 cand="$1"; pins="$2"; mode="${3:-compare}"
@@ -45,7 +47,7 @@ if [ "$sha" = "deadbeefdeadbeefdeadbeefdeadbeefdeadbeef" ]; then echo "gh: Not F
 echo "$sha"
 S
 chmod +x "$tmp/stub" "$tmp/stubw" "$tmp/stubf" "$tmp/stubfw" "$tmp/bin/gh"
-same=0; diff=0; limits=0
+same=0; diff=0; limits=0; renames=0
 one() { # one <group> <bin> <casedir>
   local g="$1" bin="$2" d="$3" name; name="$(basename "$d")"
   local m; m="$(cat "$d/mode")"
@@ -65,6 +67,21 @@ one() { # one <group> <bin> <casedir>
   ) | sed "s|$bin|<bin>|g" > "$tmp/out"
   local exp="$here/expected/$g/$name.out"
   if [ "$mode" = record ]; then mkdir -p "$here/expected/$g"; cp "$tmp/out" "$exp"; same=$((same+1)); return; fi
+  case "$g/$name" in
+    candidate/gh-404-contract|candidate/gh-404|candidate/gh-good|candidate/gh-live-cand0|candidate/nonexistent-sha|candidate/sha-check-unset-empty)
+      # Transform only complete API/diagnostic lines, never manifest keys or arbitrary text.
+      sed -E \
+        -e 's|^(api repos/aien-dev/)aienos(/commits/[0-9a-f]{40} -q \.sha)$|\1aienux\2|' \
+        -e 's|^(FAIL: commit [0-9a-f]{40} not found in aien-dev/)aienos$|\1aienux|' \
+        "$exp" > "$tmp/renamed"
+      if ! cmp -s "$exp" "$tmp/renamed" && cmp -s "$tmp/out" "$tmp/renamed"; then
+        renames=$((renames+1)); echo "RENAME (exact delta): $g/$name"
+      else
+        diff=$((diff+1)); echo "DIFF (required exact naming delta): $g/$name"
+        diff "$tmp/renamed" "$tmp/out" | sed 's/^/    /'
+      fi
+      return ;;
+  esac
   if cmp -s "$tmp/out" "$exp"; then
     if [ -f "$d/limit" ]; then echo "LIMIT CLOSED (now identical, drop the limit file): $g/$name"; fi
     same=$((same+1))
@@ -74,5 +91,5 @@ one() { # one <group> <bin> <casedir>
 }
 for d in "$here"/cases/candidate/*/; do one candidate "$cand" "${d%/}"; done
 for d in "$here"/cases/pins/*/; do one pins "$pins" "${d%/}"; done
-echo "parity: $same identical, $limits named limits, $diff different"
+echo "parity: $same identical, $renames exact naming deltas, $limits named limits, $diff different"
 [ "$diff" -eq 0 ]