From 465ecc8852c66deed45433e7f5f3a22e932e69d9 Mon Sep 17 00:00:00 2001 From: AIEN Atlas Date: Tue, 29 Sep 2026 14:50:19 -0500 Subject: [PATCH 1/3] Close critical review gaps: architecture Co-authored-by: Drake Stapleton --- .github/workflows/qualification-status.yml | 17 +++++++++ CURRENT_EXECUTION_PLAN.md | 2 +- doctrine/ROADMAP.md | 2 +- scripts/verify-r16-status.py | 42 ++++++++++++++++++++++ 4 files changed, 61 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/qualification-status.yml create mode 100644 scripts/verify-r16-status.py diff --git a/.github/workflows/qualification-status.yml b/.github/workflows/qualification-status.yml new file mode 100644 index 0000000..e63b41c --- /dev/null +++ b/.github/workflows/qualification-status.yml @@ -0,0 +1,17 @@ +name: Qualification status +on: + pull_request: + push: + branches: [main] +permissions: + contents: read +jobs: + r16: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/checkout@v4 + with: + repository: aien-dev/omega + path: omega-evidence + - run: python3 scripts/verify-r16-status.py omega-evidence diff --git a/CURRENT_EXECUTION_PLAN.md b/CURRENT_EXECUTION_PLAN.md index ef6f3a3..e6060c1 100644 --- a/CURRENT_EXECUTION_PLAN.md +++ b/CURRENT_EXECUTION_PLAN.md @@ -42,7 +42,7 @@ As of 2026-09-27: Addendum, 2026-09-29 (from live evidence): - ADR 0016 R15 (quantitative performance) PASSED: `aien-dev/omega#67`, merge `bba3bd3`, receipt `evidence/R15/065c6884...json`, 16/16 gates. -- ADR 0016 R16 (orchestrator retirement) is IN PROGRESS: `aien-dev/omega#68` draft, spec and loop inventory pre-registered, no receipt on `main`. +- ADR 0016 R16 (orchestrator retirement) is IN PROGRESS: `aien-dev/omega#68` merged, G1/G2 inventory PASS, but the required G3-G8 qualification and final receipt are absent from `main`. - Omega effect capabilities now carry 64-bit generations (`aien-dev/omega#71`, `8e7a445`); 32-bit v1 effect payloads are refused. - The FORGE v1 realize/verify seam is closed: `aien-dev/physics#13` merged (`5969159`), Gates 3 and 4 pass. - AR1 (FORGE substrate-neutral descriptor contract) PASSED: `aien-dev/physics#16` (`1f7c321`) and `aien-dev/physics#13` (`5969159`) merged on main; V1 and V2 combined gates pass. diff --git a/doctrine/ROADMAP.md b/doctrine/ROADMAP.md index 93b13f9..18fefa1 100644 --- a/doctrine/ROADMAP.md +++ b/doctrine/ROADMAP.md @@ -281,7 +281,7 @@ These are the implementation stages of ADR 0016, not roadmap milestones; they ca | R15 quantitative performance | PASS | DGX Spark (per receipt) | #67 (`bba3bd3`, `evidence/R15/065c6884...json`, outcome PASS, 16/16 gates) | | R16 orchestrator retirement | IN PROGRESS | DGX Spark | #68 merged (`6fdc4c3`): only R16-G1/G2 loop-inventory gate PASS (0 unclassified, 0 question). Not yet evidenced: G3 authority path (`make test-r16-authpath`), G4 negative test (`rx_r16_negative.c`), G5 API/build surface, G6 protected surfaces, G7 full R1-R15 ladder on candidate, G8 receipt `evidence/R16/.json` (`AIEN_RX_R16_ORCHESTRATOR_RETIRED_V1`) | -Status corrected 2026-09-29 from live evidence. +Status corrected 2026-09-29 against committed acceptance evidence. R16 inventory completion does not close the overall milestone. ### M22 — `OMEGA_OPTIMIZER` Omega-native semantics for SGD, Adam, and AdamW, with verified CPU reference realizations and optional accelerator-fused realizations. diff --git a/scripts/verify-r16-status.py b/scripts/verify-r16-status.py new file mode 100644 index 0000000..f870f98 --- /dev/null +++ b/scripts/verify-r16-status.py @@ -0,0 +1,42 @@ +#!/usr/bin/env python3 +"""Refuse an overall R16 PASS without its candidate-bound qualification receipt.""" +import hashlib +import json +from pathlib import Path +import sys + +ROOT = Path(__file__).resolve().parents[1] + +def verify(omega, roadmap): + row = next(line for line in roadmap.splitlines() if line.startswith("| R16 orchestrator retirement |")) + status = row.split("|")[2].strip() + if status != "PASS": + return "R16 overall qualification is not claimed" + for path in (omega / "evidence/R16").glob("*.json"): + try: + raw = path.read_bytes() + receipt = json.loads(raw) + if receipt.get("schema") != "AIEN_RX_R16_ORCHESTRATOR_RETIRED_V1": + continue + if path.stem != hashlib.sha256(raw).hexdigest(): + continue + if not (receipt.get("candidate_bound") is True and receipt.get("tree_dirty") is False + and receipt.get("silicon_observed") is True + and receipt.get("candidate_commit") == receipt.get("run_commit") + and len(receipt.get("candidate_commit", "")) == 40): + continue + gates = receipt.get("gates", {}) + if not all(gates.get(f"R16-G{i}") == "PASS" for i in range(1, 9)): + continue + if not receipt.get("production_entry_point") or receipt.get("remaining_unclassified_semantic_loop_count") != 0: + continue + return f"R16 qualified receipt: {path.name}" + except (ValueError, TypeError, AttributeError): + continue + raise ValueError("R16 PASS has no valid final G1-G8 candidate-bound silicon receipt; inventory alone is insufficient") + +if __name__ == "__main__": + try: + print(verify(Path(sys.argv[1]), (ROOT / "doctrine/ROADMAP.md").read_text())) + except (IndexError, ValueError) as error: + sys.exit(str(error)) From e387fad969bab8f1f2af043bf75e3365097dca4c Mon Sep 17 00:00:00 2001 From: AIEN Atlas Date: Tue, 29 Sep 2026 14:55:06 -0500 Subject: [PATCH 2/3] Reject unsupported qualification aliases Co-authored-by: Drake Stapleton --- scripts/verify-r16-status.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/verify-r16-status.py b/scripts/verify-r16-status.py index f870f98..f1d8ea9 100644 --- a/scripts/verify-r16-status.py +++ b/scripts/verify-r16-status.py @@ -10,7 +10,7 @@ ROOT = Path(__file__).resolve().parents[1] def verify(omega, roadmap): row = next(line for line in roadmap.splitlines() if line.startswith("| R16 orchestrator retirement |")) status = row.split("|")[2].strip() - if status != "PASS": + if status == "IN PROGRESS": return "R16 overall qualification is not claimed" for path in (omega / "evidence/R16").glob("*.json"): try: From 067c9700659556360ece1712de998d8a6de271ad Mon Sep 17 00:00:00 2001 From: Drake Stapleton Date: Tue, 29 Sep 2026 14:56:37 -0500 Subject: [PATCH 3/3] Replace R16 status checker with shell (no Python rule) scripts/verify-r16-status.py -> scripts/verify-r16-status.sh (awk, sha256sum, jq). Same rule: any R16 status other than IN PROGRESS needs a hash-named AIEN_RX_R16_ORCHESTRATOR_RETIRED_V1 receipt with G1-G8 PASS, candidate-bound, clean tree, silicon observed. Workflow now calls the shell script. Co-authored-by: Drake Stapleton Co-Authored-By: Claude Opus 5.5 --- .github/workflows/qualification-status.yml | 2 +- scripts/verify-r16-status.py | 42 ------------------ scripts/verify-r16-status.sh | 50 ++++++++++++++++++++++ 3 files changed, 51 insertions(+), 43 deletions(-) delete mode 100644 scripts/verify-r16-status.py create mode 100755 scripts/verify-r16-status.sh diff --git a/.github/workflows/qualification-status.yml b/.github/workflows/qualification-status.yml index e63b41c..78dd02e 100644 --- a/.github/workflows/qualification-status.yml +++ b/.github/workflows/qualification-status.yml @@ -14,4 +14,4 @@ jobs: with: repository: aien-dev/omega path: omega-evidence - - run: python3 scripts/verify-r16-status.py omega-evidence + - run: sh scripts/verify-r16-status.sh omega-evidence diff --git a/scripts/verify-r16-status.py b/scripts/verify-r16-status.py deleted file mode 100644 index f1d8ea9..0000000 --- a/scripts/verify-r16-status.py +++ /dev/null @@ -1,42 +0,0 @@ -#!/usr/bin/env python3 -"""Refuse an overall R16 PASS without its candidate-bound qualification receipt.""" -import hashlib -import json -from pathlib import Path -import sys - -ROOT = Path(__file__).resolve().parents[1] - -def verify(omega, roadmap): - row = next(line for line in roadmap.splitlines() if line.startswith("| R16 orchestrator retirement |")) - status = row.split("|")[2].strip() - if status == "IN PROGRESS": - return "R16 overall qualification is not claimed" - for path in (omega / "evidence/R16").glob("*.json"): - try: - raw = path.read_bytes() - receipt = json.loads(raw) - if receipt.get("schema") != "AIEN_RX_R16_ORCHESTRATOR_RETIRED_V1": - continue - if path.stem != hashlib.sha256(raw).hexdigest(): - continue - if not (receipt.get("candidate_bound") is True and receipt.get("tree_dirty") is False - and receipt.get("silicon_observed") is True - and receipt.get("candidate_commit") == receipt.get("run_commit") - and len(receipt.get("candidate_commit", "")) == 40): - continue - gates = receipt.get("gates", {}) - if not all(gates.get(f"R16-G{i}") == "PASS" for i in range(1, 9)): - continue - if not receipt.get("production_entry_point") or receipt.get("remaining_unclassified_semantic_loop_count") != 0: - continue - return f"R16 qualified receipt: {path.name}" - except (ValueError, TypeError, AttributeError): - continue - raise ValueError("R16 PASS has no valid final G1-G8 candidate-bound silicon receipt; inventory alone is insufficient") - -if __name__ == "__main__": - try: - print(verify(Path(sys.argv[1]), (ROOT / "doctrine/ROADMAP.md").read_text())) - except (IndexError, ValueError) as error: - sys.exit(str(error)) diff --git a/scripts/verify-r16-status.sh b/scripts/verify-r16-status.sh new file mode 100755 index 0000000..c24254f --- /dev/null +++ b/scripts/verify-r16-status.sh @@ -0,0 +1,50 @@ +#!/bin/sh +# Refuse an overall R16 PASS without its candidate-bound qualification receipt. +# Usage: scripts/verify-r16-status.sh [roadmap-file] +# Needs: awk, sha256sum, jq. +set -u + +fail() { echo "$*" >&2; exit 1; } + +[ $# -ge 1 ] || fail "usage: $0 [roadmap-file]" +omega=$1 +root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) +roadmap=${2:-$root/doctrine/ROADMAP.md} +[ -f "$roadmap" ] || fail "roadmap not found: $roadmap" + +status=$(awk -F'|' 'index($0, "| R16 orchestrator retirement |") == 1 { + s = $3; gsub(/^[ \t]+|[ \t]+$/, "", s); print s; exit }' "$roadmap") +[ -n "$status" ] || fail "R16 row not found in $roadmap" + +if [ "$status" = "IN PROGRESS" ]; then + echo "R16 overall qualification is not claimed" + exit 0 +fi + +command -v jq >/dev/null 2>&1 || fail "jq is required to check R16 receipts" + +for path in "$omega"/evidence/R16/*.json; do + [ -f "$path" ] || continue + name=$(basename "$path" .json) + digest=$(sha256sum "$path" | awk '{print $1}') + [ "$name" = "$digest" ] || continue + if jq -e ' + type == "object" + and .schema == "AIEN_RX_R16_ORCHESTRATOR_RETIRED_V1" + and .candidate_bound == true + and .tree_dirty == false + and .silicon_observed == true + and (.candidate_commit | type) == "string" + and (.candidate_commit | length) == 40 + and .candidate_commit == .run_commit + and ((.gates // {}) | type) == "object" + and ([range(1; 9) as $i | (.gates // {})["R16-G\($i)"] == "PASS"] | all) + and ((.production_entry_point // false) | if type == "string" then length > 0 else . == true end) + and .remaining_unclassified_semantic_loop_count == 0 + ' "$path" >/dev/null 2>&1; then + echo "R16 qualified receipt: $(basename "$path")" + exit 0 + fi +done + +fail "R16 status '$status' has no valid final G1-G8 candidate-bound silicon receipt; inventory alone is insufficient"