diff --git a/.aien/always b/.aien/always new file mode 100644 index 000000000..be2b941aa --- /dev/null +++ b/.aien/always @@ -0,0 +1,5 @@ +# Gates that run on every commit regardless of changed paths (ADR 0033 Decision 12 +# allow-list; inventory contract C6). One gate name per line. Read from the base ref. +CRUMB-VERIFY +OMEGA-EVIDENCE-IMMUTABLE +OMEGA-ZERO-DISK-SECRETS diff --git a/.aien/unmapped-ok b/.aien/unmapped-ok new file mode 100644 index 000000000..e1ead45db --- /dev/null +++ b/.aien/unmapped-ok @@ -0,0 +1,8 @@ +# Changed paths matching these globs need only the always-run set (.aien/always). +# Everything else must be covered by a manifest's inputs or the commit is NOT_RUN. +# Conservative: several hosted workflows path-filter on docs/ and evidence/ subtrees, +# so only the repository's top-level prose is listed. Read from the base ref. +LICENSE +.gitignore +README.md +CONTRIBUTORS.md diff --git a/.aien/verify.pub b/.aien/verify.pub new file mode 100644 index 000000000..3e654113d --- /dev/null +++ b/.aien/verify.pub @@ -0,0 +1 @@ +01368e0b02dc1113ae7425ad6ab00fdf5aa7dd97e0690745918a52f051d5cf68 diff --git a/.crumb b/.crumb index 2bf37ec1c..9d6444cf3 100644 --- a/.crumb +++ b/.crumb @@ -46,74 +46,74 @@ "children": [ { "digest": "fb7cc6e608fdbe68a9735a1313285782b9717ff12bde17343f8ce635de3644f6", - "last_commit": "30c65a3", + "last_commit": "190ff891", "name": "calibration", "purpose": "Directory calibration. Purpose not yet described by a human." }, { "digest": "24d7c03a26a7ffe9b181b73585480b5801289accbdf63146edbc36cf3e1cf21f", - "last_commit": "6637b32", + "last_commit": "6637b32b", "name": "docs", "purpose": "Directory docs. Purpose not yet described by a human." }, { "digest": "536f7b8db9a92a1f586bad4379d47544a30d1b8e83c2d799c18e66cf8660c9ae", - "last_commit": "30c65a3", + "last_commit": "30bb116c", "name": "doctrine", "purpose": "Directory doctrine. Purpose not yet described by a human." }, { "digest": "ac43a69e03617abcc3c94f3fc1bc10c7593d9d57d49059c20bc4ce3abfaa8489", - "last_commit": "e59633e", + "last_commit": "e59633e5", "name": "mk", "purpose": "Directory mk. Purpose not yet described by a human." }, { "digest": "69cbb8ef13ccce47ccc21f159e95f1eac58679319e2cc25937065f95c4eb9207", - "last_commit": "30c65a3", + "last_commit": "ae8c7c54", "name": "polyglot", "purpose": "Directory polyglot. Purpose not yet described by a human." }, { "digest": "2aa8396144fa241f695a99c882fc347425604ac4822d5162be9c3ad80354fc9f", - "last_commit": "c02b278", + "last_commit": "c02b278c", "name": "research", "purpose": "Directory research. Purpose not yet described by a human." }, { "digest": "830ce7faaea9ae86190aa304fd8d7797881fbaca9d14fc39a327d202712f73fb", - "last_commit": "9e168fc", + "last_commit": "9e168fc8", "name": "spec", "purpose": "Directory spec. Purpose not yet described by a human." }, { "digest": "5a7af4c7ecebc57aae07e6eec5f187b21427ca5f9890364927fb21c344d927df", - "last_commit": "e39d0c5", + "last_commit": "82f31173", "name": "src", "purpose": "Directory src. Purpose not yet described by a human." }, { - "digest": "ddb73f8dcc17dc0921d17e0f3f9a1216b32d4145f21e23a8845e4bf81d3ec2f5", - "last_commit": "e39d0c5", + "digest": "84683e48b78333a6f484b1ffbe176dcbb027817cdcc132548b91e616e6d5ff34", + "last_commit": "a7771136", "name": "tests", "purpose": "Directory tests. Purpose not yet described by a human." }, { "digest": "acd42de9387a133f34b4b6afca962c82d340fba67c6a770a74852406769b4186", - "last_commit": "7683eaa", + "last_commit": "7683eaaa", "name": "tools", "purpose": "Directory tools. Purpose not yet described by a human." } ], - "children_root": "sha256:861dd7ec42b6147528e8179462f3de9fc86b4df793770f43da7f7f493315f2c8", - "compiled_at": "2026-10-11T15:34:01Z", + "children_root": "sha256:f486f217fa8ad62d0df366246290c97b60e58cb2ba4e07913eaf1a2b35881bad", + "compiled_at": "2026-10-11T19:13:12Z", "compiler": "crumb-compile/1", - "digest": "sha256:a267c4c7730f70c4d3608f96694d3235f8db7ee81691c4383a5e1a72447d941c", + "digest": "sha256:0555fe54fd37a274621ce6ea3abbdd8525198d56efc7a3c8181f9d14cad99c6a", "evidence_files": 7245, "evidence_root": "sha256:035beef5cdb99afaefd1743640f5e7eeaaed13c4a5ec6c8b4b6a4cb0c528407a", - "files": 9666, - "generated_at_commit": "e39d0c58fa08564c61c92d43f1523f06d3a67d66", - "source_tree": "sha256:ae770ca9483afe52e3b2421751dee8d2b318da5166570924850da4875eae23ca" + "files": 9730, + "generated_at_commit": "a777113639f2849ef32e48121049e02487624d29", + "source_tree": "sha256:b912ec0adc13286baf640b402299591a2a8d5b8ef047c7f53a3c37809dc77ac4" }, "owner_lane": "", "provenance": { diff --git a/.github/workflows/aien-verification.yml b/.github/workflows/aien-verification.yml new file mode 100644 index 000000000..de6ff06f3 --- /dev/null +++ b/.github/workflows/aien-verification.yml @@ -0,0 +1,186 @@ +# AIEN Verification: the GitHub thin gate (ADR 0033 Decision 11, inventory contract C5). +# +# PHASE 2 DRAFT (2026-10-11, lane REPOS). This workflow is NOT a required check yet. It runs +# beside the existing hosted workflows so that, for N >= 3 commits, the hosted verdict and the +# locally signed bundle verdict can be compared (advisor amendment A7). Nothing here changes +# the repository's required contexts; that switch is phase 3 and needs Drake's agreement. +# +# What it does: checkout; read the trust anchors from the BASE ref (origin/main), never from +# the head under test (amendment A1); crumb verify; fetch //bundle.json from +# aien-dev/aien-receipts; verify the bundle signature and content with the pinned aien-test +# build; run the repository's portable smoke set (gates whose requires is only "portable"). +# +# GitHub-hosted compute: this workflow compiles only the two pinned verifier tools (the crumb +# checker, and aien-test once the repository is enrolled). It never builds or tests this +# repository's own code; the portable smoke set is text scans and format checks only. +# +# PHASE 3 FLIPS (marked "PHASE3" below): a missing bundle becomes NOT_RUN (status pending with +# a retry window) instead of a neutral note, and a trust-surface change becomes a failure +# unless the operator ran it by hand (BLOCKED_OPERATOR). +name: AIEN Verification + +on: + pull_request: + push: + branches: [main] + +permissions: + contents: read + +jobs: + verify: + name: AIEN Verification + runs-on: ubuntu-latest + timeout-minutes: 30 + env: + REPO_SLUG: aien-dev/omega + AIEN_TEST_PIN: c26f4d7ac3156088469b27462390f5b08ef4f436 + RECEIPTS_RAW: https://raw.githubusercontent.com/aien-dev/aien-receipts/main + steps: + - name: Checkout the head under test + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Resolve the commit under test and the base ref + id: ids + run: | + if [ "${{ github.event_name }}" = pull_request ]; then + sha="${{ github.event.pull_request.head.sha }}" + else + sha="${{ github.sha }}" + fi + git fetch -q origin main + echo "sha=$sha" >> "$GITHUB_OUTPUT" + echo "base=$(git rev-parse origin/main)" >> "$GITHUB_OUTPUT" + echo "commit under test: $sha" + echo "base (trust anchors): $(git rev-parse origin/main)" + + - name: "Trust anchors from the base ref (A1: never from the head under test)" + id: anchors + run: | + mkdir -p "$RUNNER_TEMP/anchors" + base="${{ steps.ids.outputs.base }}" + if git show "$base:.aien/verify.pub" > "$RUNNER_TEMP/anchors/verify.pub" 2>/dev/null; then + echo "enrolled=true" >> "$GITHUB_OUTPUT" + git show "$base:.aien/always" > "$RUNNER_TEMP/anchors/always" 2>/dev/null || : > "$RUNNER_TEMP/anchors/always" + git show "$base:.aien/unmapped-ok" > "$RUNNER_TEMP/anchors/unmapped-ok" 2>/dev/null || : > "$RUNNER_TEMP/anchors/unmapped-ok" + echo "verify.pub (base): $(cat "$RUNNER_TEMP/anchors/verify.pub")" + else + echo "enrolled=false" >> "$GITHUB_OUTPUT" + echo "::notice::.aien/verify.pub is not on the base ref yet: this repository is not enrolled. Phase 2: neutral." + fi + # Trust-surface changes are run by the operator by hand (A1): BLOCKED_OPERATOR. + changed=$(git diff --name-only "$base...${{ steps.ids.outputs.sha }}" -- .aien tests/gates .github/workflows .forgejo tools/aien-test || true) + if [ -n "$changed" ]; then + echo "blocked=true" >> "$GITHUB_OUTPUT" + echo "::notice::BLOCKED_OPERATOR: this head changes the trust surface:"; echo "$changed" + # PHASE3: fail here unless an operator attestation for this sha is present. + else + echo "blocked=false" >> "$GITHUB_OUTPUT" + fi + + - name: Checkout the pinned crumb tool source (aien-architecture @ d0f0b95d344b4c6628c3d868346932fd247ce168) + uses: actions/checkout@v4 + with: + repository: aien-dev/aien-architecture + ref: d0f0b95d344b4c6628c3d868346932fd247ce168 + path: .crumb-tool-src + + - name: Build the crumb tool, then remove its source from this tree + run: | + make -C .crumb-tool-src/tools/crumb crumb + mkdir -p "$RUNNER_TEMP/bin" && cp .crumb-tool-src/tools/crumb/crumb "$RUNNER_TEMP/bin/crumb" + rm -rf .crumb-tool-src + echo "$RUNNER_TEMP/bin" >> "$GITHUB_PATH" + + - name: Crumbs must be exactly what the compiler produces now (stays GitHub-hosted, D11) + run: crumb verify . + + - name: Install Stable Rust Toolchain (for the pinned aien-test build and the smoke set) + if: steps.anchors.outputs.enrolled == 'true' + uses: dtolnay/rust-toolchain@stable + with: + components: rustfmt + + - name: Checkout the pinned aien-test source (aien-sovereign-core @ ${{ env.AIEN_TEST_PIN }}) + if: steps.anchors.outputs.enrolled == 'true' + uses: actions/checkout@v4 + with: + repository: aien-dev/aien-sovereign-core + ref: ${{ env.AIEN_TEST_PIN }} + path: .aien-test-src + + - name: Cache the pinned aien-test build + if: steps.anchors.outputs.enrolled == 'true' + uses: actions/cache@v4 + with: + path: | + ~/.cargo/registry + ~/.cargo/git + .aien-test-src/target + key: aien-test-${{ runner.os }}-${{ env.AIEN_TEST_PIN }} + + - name: Build aien-test from the pin (never from the tree under test), then remove the source + if: steps.anchors.outputs.enrolled == 'true' + run: | + cargo build --release -p aien-test --manifest-path .aien-test-src/Cargo.toml + cp .aien-test-src/target/release/aien-test "$RUNNER_TEMP/bin/aien-test" 2>/dev/null || { mkdir -p "$RUNNER_TEMP/bin"; cp .aien-test-src/target/release/aien-test "$RUNNER_TEMP/bin/aien-test"; } + echo "$RUNNER_TEMP/bin" >> "$GITHUB_PATH" + rm -rf .aien-test-src + git status --porcelain --untracked-files=normal + + - name: Fetch the signed verification bundle for this commit + id: bundle + run: | + url="$RECEIPTS_RAW/omega/${{ steps.ids.outputs.sha }}/bundle.json" + echo "bundle url: $url" + if curl -fsSL "$url" -o "$RUNNER_TEMP/bundle.json"; then + echo "present=true" >> "$GITHUB_OUTPUT" + else + echo "present=false" >> "$GITHUB_OUTPUT" + echo "::notice::bundle not published yet for ${{ steps.ids.outputs.sha }} (phase 2: neutral)." + # PHASE3: exit 2 here (NOT_RUN, status pending with a retry window) instead of a neutral note. + fi + + - name: Verify the bundle with the base-ref public key + if: steps.bundle.outputs.present == 'true' && steps.anchors.outputs.enrolled == 'true' + run: | + required=$(grep -v '^#' "$RUNNER_TEMP/anchors/always" | grep -v '^$' | paste -sd, -) + set +e + aien-test verify-bundle "$RUNNER_TEMP/bundle.json" \ + --repo "github.com/$REPO_SLUG" \ + --commit "${{ steps.ids.outputs.sha }}" \ + --pubkey "$RUNNER_TEMP/anchors/verify.pub" \ + ${required:+--require "$required"} + rc=$? + set -e + echo "verify-bundle exit $rc (0 PASS, 1 FAIL, 2 NOT_RUN, 3 REJECTED)" + [ "$rc" = 0 ] || exit "$rc" + + - name: Portable smoke set (gates whose requires is only portable, named at the base ref) + if: steps.anchors.outputs.enrolled == 'true' && steps.anchors.outputs.blocked == 'false' + run: | + base="${{ steps.ids.outputs.base }}" + names=$(for f in $(git ls-tree -r --name-only "$base" -- tests/gates | grep '\.gate$'); do + git show "$base:$f" | awk ' + /^gate:/ {g=$2} + /^requires:/ {inr=1; next} + inr && /^ - / { if ($2 != "portable") other=1; next } + /^[a-z]/ {inr=0} + END { if (g != "" && !other) print g }' + done) + echo "portable smoke set: $(echo $names)" + mkdir -p "$RUNNER_TEMP/evidence" + fail=0 + for g in $names; do + echo "::group::$g" + if timeout 600 aien-test run "$g" --evidence-dir "$RUNNER_TEMP/evidence"; then echo "$g: PASS"; else echo "::error::$g: not PASS"; fail=1; fi + echo "::endgroup::" + done + exit $fail + + - name: "Not enrolled or blocked: nothing to verify in this phase" + if: steps.anchors.outputs.enrolled != 'true' || steps.anchors.outputs.blocked == 'true' + run: | + echo "AIEN Verification: neutral (enrolled=${{ steps.anchors.outputs.enrolled }}, blocked=${{ steps.anchors.outputs.blocked }}). PHASE3 turns this into a failure." diff --git a/tests/.crumb b/tests/.crumb index c83a9b7e3..b9a8f8808 100644 --- a/tests/.crumb +++ b/tests/.crumb @@ -110,194 +110,194 @@ "children": [ { "digest": "e7498eca87fe5ca8dc27d92f2d99be0de3e4c804711f9d8cba5bb1e47ca95f74", - "last_commit": "30c65a3", + "last_commit": "28911be7", "name": "algebra", "purpose": "Directory tests/algebra. Purpose not yet described by a human." }, { "digest": "d484ca176e9932b098df5664d01bdd679c78f5b89f4d15a77eb30f43d235f570", - "last_commit": "30c65a3", + "last_commit": "834ee93e", "name": "ans", "purpose": "Tests 1-10 for ANS (docs/ans/INERTIAL_ALIGNMENT_SPEC_V1.md): freeze/digest, hostile reference mu" }, { "digest": "42a7efc25b16d1ea7bd7a5cbc31be7e499c9bc64c9e7df179c7627121d7df637", - "last_commit": "1b0e296", + "last_commit": "1b0e2968", "name": "brownian", "purpose": "Directory tests/brownian. Purpose not yet described by a human." }, { "digest": "1cbe9561b87b394e200f67996ce1407c377025d07ad033b27cdd542625e277d4", - "last_commit": "30c65a3", + "last_commit": "30bb116c", "name": "canonicalization", "purpose": "Directory tests/canonicalization. Purpose not yet described by a human." }, { "digest": "d0d9e7040af5d739682fe07e15cb59598f0a981ab1a766a4c2ad2f26e4e1e458", - "last_commit": "eb8dedf", + "last_commit": "eb8dedf7", "name": "compiler", "purpose": "Directory tests/compiler. Purpose not yet described by a human." }, { "digest": "47683e6a56ca8e14ee526004b2a90dd08498507e8d4b0b42c3d85d22afb07d28", - "last_commit": "30c65a3", + "last_commit": "28b87934", "name": "constraints", "purpose": "Directory tests/constraints. Purpose not yet described by a human." }, { "digest": "95b2041562face1ba7baa6c57456bf07d77a0f44e093b989ec18f559064e22d9", - "last_commit": "30c65a3", + "last_commit": "49abb024", "name": "crumbline", "purpose": "Directory tests/crumbline. Purpose not yet described by a human." }, { "digest": "d57833fb3f63ef6475cf25e2e16319d818a0a407b825d5b4c5cbdd3cc0e06492", - "last_commit": "30c65a3", + "last_commit": "00f54b6b", "name": "dual_experiment", "purpose": "Tests for the DUAL applicability experiment: determinism (same seed, byte-identical results dige" }, { "digest": "fb0a9296a93d065d5e016ad0a950fc6b9691f8ddca12ad0111cee2e35791cdb4", - "last_commit": "30c65a3", + "last_commit": "c819b376", "name": "effect", "purpose": "Directory tests/effect. Purpose not yet described by a human." }, { "digest": "bc2473da101ba5a74c32021a9d27ecb2007897f07a9689ba50ccc99b9030bf0c", - "last_commit": "30c65a3", + "last_commit": "1a147e40", "name": "estimation", "purpose": "Directory tests/estimation. Purpose not yet described by a human." }, { "digest": "de2bc4e310a257dbd21cc5c9624641b137b1b4487d8876cb52469aea2af5b904", - "last_commit": "30c65a3", + "last_commit": "3108fc2f", "name": "fabric", "purpose": "Directory tests/fabric. Purpose not yet described by a human." }, { "digest": "90418926706f827aafd72938aee1dea89222cb5e465fba06a8df5a83253e0412", - "last_commit": "30c65a3", + "last_commit": "28b87934", "name": "identity", "purpose": "Directory tests/identity. Purpose not yet described by a human." }, { "digest": "c653c851c8934ce9ac4eabaa32a9df65d858c9ac7a556e76b265b1ee81494443", - "last_commit": "30c65a3", + "last_commit": "4f55f45e", "name": "language", "purpose": "Directory tests/language. Purpose not yet described by a human." }, { "digest": "e485aa0a00f0a588e22d55caa704db8581a5da1b53080b311086e6edd38f6044", - "last_commit": "30c65a3", + "last_commit": "30bb116c", "name": "malformed", "purpose": "Directory tests/malformed. Purpose not yet described by a human." }, { "digest": "adba9b5ea1c000db36078fca7d1bfef0b2769b73c8fb474024d9409bd48bdbc1", - "last_commit": "30c65a3", + "last_commit": "40d1ea37", "name": "numeric_native", "purpose": "Simulated M16 driver for numeric resource-lifecycle tests. No device execution or numeric parity" }, { "digest": "f3085ce1facdcdb22bfedc85de659dd5e512aa7b59cd8103666c24a4456681c3", - "last_commit": "6d8d92a", + "last_commit": "6d8d92ad", "name": "osh", "purpose": "osh lexer host driver, vendored aien-protocols PR#16 draft vectors (5ae5292)" }, { "digest": "a4d320b3203650a28c43ea954957d8902d1cc25cbdc8aecd15628c01a92f68f8", - "last_commit": "30c65a3", + "last_commit": "d550b705", "name": "path", "purpose": "Directory tests/path. Purpose not yet described by a human." }, { "digest": "d5153d318a11642a5e13824353222fc392ead92108540bc8ffd747fcfd40b813", - "last_commit": "e59633e", + "last_commit": "e59633e5", "name": "physics0", "purpose": "PD-0 gates: world self-test, oracle calibration, learner L0/L1/NULL, mutations, OSC differential" }, { "digest": "4619a90a957e77cd3d5680132ab4d1a5ef65f43419ddcc089743ca5b7a7719ee", - "last_commit": "30c65a3", + "last_commit": "8f8babe9", "name": "polyglot", "purpose": "Directory tests/polyglot. Purpose not yet described by a human." }, { "digest": "16bea65aa50f0b3ab8b90cb286de048639fa8e635ff84e517e138c6f9f26a059", - "last_commit": "30c65a3", + "last_commit": "3c82389f", "name": "program", "purpose": "Directory tests/program. Purpose not yet described by a human." }, { "digest": "ba0c09f67d12b5d7de906129bdbe2f6e0a228e1a34236ecc4b779c523cb2061e", - "last_commit": "30c65a3", + "last_commit": "6fdc4c33", "name": "r16_inventory", "purpose": "Directory tests/r16_inventory. Purpose not yet described by a human." }, { "digest": "000c487afa8f600842eff25a22a671afb5e29b26845105405de9542a21b70746", - "last_commit": "79a805d", + "last_commit": "79a805d1", "name": "r16_negative", "purpose": "Directory tests/r16_negative. Purpose not yet described by a human." }, { "digest": "25cabf47d18353539db28146434d246a2f81bf9c323471566451aca56806f279", - "last_commit": "30c65a3", + "last_commit": "44d8c06c", "name": "r16_surface", "purpose": "Directory tests/r16_surface. Purpose not yet described by a human." }, { "digest": "9106f2ea57e8f453322f0a988b61cfcbd06631573c9ff32a777903d27d7741e1", - "last_commit": "30c65a3", + "last_commit": "40d1ea37", "name": "realize", "purpose": "Directory tests/realize. Purpose not yet described by a human." }, { "digest": "381184e79b26920b256dd4a774fb11f17a92afa8ceda4813eada241bac4163a9", - "last_commit": "30c65a3", + "last_commit": "30bb116c", "name": "relations", "purpose": "Directory tests/relations. Purpose not yet described by a human." }, { "digest": "6ce8e4d40746ec42f2f06437583fb91a613f25997fa0b427bbd640c6b4d2c649", - "last_commit": "e39d0c5", + "last_commit": "82f31173", "name": "runtime", "purpose": "Directory tests/runtime. Purpose not yet described by a human." }, { "digest": "b1311025a3bfd8dd7b5e07b1adf1d7ece502a15200f7207f515334f7083b8315", - "last_commit": "30c65a3", + "last_commit": "5ae192a4", "name": "searchtrace", "purpose": "Directory tests/searchtrace. Purpose not yet described by a human." }, { "digest": "3ecf636e2923038708cafa062895b8d8f2664dc1865cdff38575911eaa9f1b2d", - "last_commit": "30c65a3", + "last_commit": "54826a37", "name": "train", "purpose": "Directory tests/train. Purpose not yet described by a human." }, { "digest": "75d5e576c38a0497a55e9f5ee79550cb94f9b75008f3e4e126312802704b3f86", - "last_commit": "30c65a3", + "last_commit": "2564f57a", "name": "turing", "purpose": "Directory tests/turing. Purpose not yet described by a human." }, { "digest": "3f19e3034ff999211cb13ab8995ca6c38d0d8e1f5bfbbbd621caaa08412d3f1f", - "last_commit": "30c65a3", + "last_commit": "fed4f077", "name": "visor", "purpose": "Directory tests/visor. Purpose not yet described by a human." } ], "children_root": "sha256:2187e90416056b45aa2201a569aaef1933d170b2d851ed0ceb0cf688b368675f", - "compiled_at": "2026-10-11T15:34:01Z", + "compiled_at": "2026-10-11T19:13:12Z", "compiler": "crumb-compile/1", - "digest": "sha256:ddb73f8dcc17dc0921d17e0f3f9a1216b32d4145f21e23a8845e4bf81d3ec2f5", + "digest": "sha256:84683e48b78333a6f484b1ffbe176dcbb027817cdcc132548b91e616e6d5ff34", "evidence_files": 16, "evidence_root": "sha256:96d08097822ad95f4e562c19e0ba5df5a035774c48632f1832912c40a27bd27a", - "files": 960, - "generated_at_commit": "e39d0c58fa08564c61c92d43f1523f06d3a67d66", - "source_tree": "sha256:8ed8c7e50daade08217b085625db89ec345ab328a293331a4fe00f1e27737bfb" + "files": 1020, + "generated_at_commit": "a777113639f2849ef32e48121049e02487624d29", + "source_tree": "sha256:f64de1064e0d0c161ce34e669ced086c5b845e4ad174e165ce5c60888e40c53e" }, "owner_lane": "", "provenance": { diff --git a/tests/gates/crumb.gate b/tests/gates/crumb.gate new file mode 100644 index 000000000..5e039b34e --- /dev/null +++ b/tests/gates/crumb.gate @@ -0,0 +1,24 @@ +# tests/gates/crumb.gate +# Mirrors hosted: crumb.yml 'crumb verify .' with the tool built from crumb.lock (hosted job 12 s) +# cache: never because crumbs live in many directories and inputs are literal paths; the check is sub-second. +# requires: host because run.sh builds the tool from the sibling ../aien-architecture checkout, which a +# GitHub runner does not have (portable means the tree alone). The thin gate runs crumb verify itself. +gate: CRUMB-VERIFY +manifest_version: 2 +owner: omega +requires: + - host +inputs: + - .crumb + - crumb.lock + - tests/gates/ +run: + exec: tests/gates/run.sh + args: ["crumb-verify"] +expects: + exit: 0 + verdict: PASS +timeout: 5m +exactness: EXACT +cache_scope: machine +cache: never diff --git a/tests/gates/omega-algebra.gate b/tests/gates/omega-algebra.gate new file mode 100644 index 000000000..e4f3dd4f1 --- /dev/null +++ b/tests/gates/omega-algebra.gate @@ -0,0 +1,25 @@ +# tests/gates/omega-algebra.gate +# Mirrors hosted: host-suites-2.yml algebra: test-algebra test-algebra-asan, test-realize, test-phase-twin, test-ma-digital-bottom (hosted 189 s) +gate: OMEGA-ALGEBRA +manifest_version: 2 +owner: omega +requires: + - host +inputs: + - Makefile + - mk/ + - src/algebra/ + - src/turing/ + - tests/algebra/ + - evidence/MIXED_ALGEBRA/ + - src/ + - tests/gates/ +run: + exec: tests/gates/run.sh + args: ["algebra"] +expects: + exit: 0 + verdict: PASS +timeout: 15m +exactness: EXACT +cache_scope: machine diff --git a/tests/gates/omega-ans.gate b/tests/gates/omega-ans.gate new file mode 100644 index 000000000..0c0c21ebb --- /dev/null +++ b/tests/gates/omega-ans.gate @@ -0,0 +1,24 @@ +# tests/gates/omega-ans.gate +# Mirrors hosted: host-suites.yml ans: make test-inertial-alignment (hosted 16 s) +gate: OMEGA-ANS +manifest_version: 2 +owner: omega +requires: + - host +inputs: + - Makefile + - mk/ans.mk + - src/ans/ + - tests/ans/ + - docs/ans/ + - src/ + - tests/gates/ +run: + exec: tests/gates/run.sh + args: ["ans"] +expects: + exit: 0 + verdict: PASS +timeout: 10m +exactness: EXACT +cache_scope: machine diff --git a/tests/gates/omega-argus.gate b/tests/gates/omega-argus.gate new file mode 100644 index 000000000..65c2beca9 --- /dev/null +++ b/tests/gates/omega-argus.gate @@ -0,0 +1,30 @@ +# tests/gates/omega-argus.gate +# Mirrors hosted: host-suites-2.yml argus: test-argus-runtime test-machine-identity-argus with physics-src, aienos-src and aienos-argus at their locks (hosted 22 s) +gate: OMEGA-ARGUS +manifest_version: 2 +owner: omega +requires: + - host +inputs: + - Makefile + - mk/machine-identity.mk + - src/runtime/ + - tests/runtime/ + - tests/bench_rx_argus.c + - src/sha256.c + - src/sha256.h + - src/omega_evidence.c + - src/omega_evidence.h + - physics.lock + - aienos.lock + - argus.lock + - tests/gates/ +run: + exec: tests/gates/run.sh + args: ["argus"] +expects: + exit: 0 + verdict: PASS +timeout: 10m +exactness: EXACT +cache_scope: machine diff --git a/tests/gates/omega-base.gate b/tests/gates/omega-base.gate new file mode 100644 index 000000000..c22391275 --- /dev/null +++ b/tests/gates/omega-base.gate @@ -0,0 +1,24 @@ +# tests/gates/omega-base.gate +# Mirrors hosted: pr-smoke.yml 'Build and base gates (make test)' with physics-src at physics.lock (hosted job 101 s total) +gate: OMEGA-BASE +manifest_version: 2 +owner: omega +requires: + - host +inputs: + - Makefile + - mk/ + - src/ + - tests/ + - tools/ + - tests/gates/ + - physics.lock +run: + exec: tests/gates/run.sh + args: ["base"] +expects: + exit: 0 + verdict: PASS +timeout: 15m +exactness: EXACT +cache_scope: machine diff --git a/tests/gates/omega-brownian.gate b/tests/gates/omega-brownian.gate new file mode 100644 index 000000000..7a8c80e32 --- /dev/null +++ b/tests/gates/omega-brownian.gate @@ -0,0 +1,24 @@ +# tests/gates/omega-brownian.gate +# Mirrors hosted: host-suites-2.yml brownian: test-brownian-tps, test-brownian-active (hosted 233 s) +gate: OMEGA-BROWNIAN +manifest_version: 2 +owner: omega +requires: + - host +inputs: + - Makefile + - mk/ + - tests/brownian/ + - tools/brownian/ + - src/turing/ + - src/ + - tests/gates/ +run: + exec: tests/gates/run.sh + args: ["brownian"] +expects: + exit: 0 + verdict: PASS +timeout: 20m +exactness: EXACT +cache_scope: machine diff --git a/tests/gates/omega-compiler.gate b/tests/gates/omega-compiler.gate new file mode 100644 index 000000000..0d2168d57 --- /dev/null +++ b/tests/gates/omega-compiler.gate @@ -0,0 +1,23 @@ +# tests/gates/omega-compiler.gate +# Mirrors hosted: host-suites.yml compiler: test-compiler-quick then test-compiler-full (hosted 253 s; hosted runs full only when src/compiler or src/aarch64_ changed) +gate: OMEGA-COMPILER +manifest_version: 2 +owner: omega +requires: + - host +inputs: + - Makefile + - mk/compiler.mk + - src/compiler/ + - tests/compiler/ + - src/ + - tests/gates/ +run: + exec: tests/gates/run.sh + args: ["compiler"] +expects: + exit: 0 + verdict: PASS +timeout: 20m +exactness: EXACT +cache_scope: machine diff --git a/tests/gates/omega-composition-gate-gpu.gate b/tests/gates/omega-composition-gate-gpu.gate new file mode 100644 index 000000000..38035da50 --- /dev/null +++ b/tests/gates/omega-composition-gate-gpu.gate @@ -0,0 +1,26 @@ +# tests/gates/omega-composition-gate-gpu.gate +# Mirrors hosted: rx-host.yml chip-only-declared: test-composition-gate-gpu is declared SKIP on GitHub (needs the GB10 resident seat); qualified only by a candidate-bound Spark receipt +gate: OMEGA-COMPOSITION-GATE-GPU +manifest_version: 2 +owner: omega +requires: + - gb10 +inputs: + - Makefile + - mk/ + - src/ + - tests/ + - tools/ + - aienos.lock + - argus.lock + - tests/gates/ +run: + exec: tests/gates/run.sh + args: ["chip:test-composition-gate-gpu"] +expects: + exit: 0 + verdict: PASS +timeout: 60m +exactness: EXACT +cache_scope: hardware +cache: never diff --git a/tests/gates/omega-crumbline.gate b/tests/gates/omega-crumbline.gate new file mode 100644 index 000000000..5dc8c7b26 --- /dev/null +++ b/tests/gates/omega-crumbline.gate @@ -0,0 +1,27 @@ +# tests/gates/omega-crumbline.gate +# Mirrors hosted: host-suites-2.yml crumbline: test-crumbline test-library test-vcstore test-resolve test-vcstore-genesis test-resolve-genesis test-genesis test-genesis-real test-program-ir test-vc-bridge (hosted 801 s) +gate: OMEGA-CRUMBLINE +manifest_version: 2 +owner: omega +requires: + - host +inputs: + - Makefile + - mk/ + - src/crumbline/ + - tests/crumbline/ + - tools/crumbline_learner.c + - data/crumbline/ + - tests/ + - docs/osc/VC-GENESIS-1.md + - src/ + - tests/gates/ +run: + exec: tests/gates/run.sh + args: ["crumbline"] +expects: + exit: 0 + verdict: PASS +timeout: 40m +exactness: EXACT +cache_scope: machine diff --git a/tests/gates/omega-estimation.gate b/tests/gates/omega-estimation.gate new file mode 100644 index 000000000..346dc16b1 --- /dev/null +++ b/tests/gates/omega-estimation.gate @@ -0,0 +1,26 @@ +# tests/gates/omega-estimation.gate +# Mirrors hosted: host-suites.yml estimation: test-estimation test-est-tools test-estimation-v3 test-est3c-tools (hosted 576 s) +gate: OMEGA-ESTIMATION +manifest_version: 2 +owner: omega +requires: + - host +inputs: + - Makefile + - mk/ + - src/estimation/ + - tests/estimation/ + - tools/estimation/ + - docs/estimation/ + - evidence/R15/raw/ + - src/ + - tests/gates/ +run: + exec: tests/gates/run.sh + args: ["estimation"] +expects: + exit: 0 + verdict: PASS +timeout: 30m +exactness: EXACT +cache_scope: machine diff --git a/tests/gates/omega-evidence-immutable.gate b/tests/gates/omega-evidence-immutable.gate new file mode 100644 index 000000000..ffadd4790 --- /dev/null +++ b/tests/gates/omega-evidence-immutable.gate @@ -0,0 +1,22 @@ +# tests/gates/omega-evidence-immutable.gate +# Mirrors hosted: evidence-immutable.yml: existing files under evidence/ are never modified, deleted or renamed (hosted compares PR base...head; here origin/main or AIEN_BASE_REF...HEAD) +# requires: host (git history and a base ref), always-run. +gate: OMEGA-EVIDENCE-IMMUTABLE +manifest_version: 2 +owner: omega +requires: + - host +inputs: + - evidence/ + - tests/gates/ +run: + exec: tests/gates/run.sh + args: ["evidence-immutable"] +expects: + exit: 0 + observe: ["evidence_rewrites == 0"] + verdict: PASS +timeout: 2m +exactness: EXACT +cache_scope: portable +cache: never diff --git a/tests/gates/omega-faculty-arm.gate b/tests/gates/omega-faculty-arm.gate new file mode 100644 index 000000000..229c4b7a8 --- /dev/null +++ b/tests/gates/omega-faculty-arm.gate @@ -0,0 +1,27 @@ +# tests/gates/omega-faculty-arm.gate +# Mirrors hosted: rx-host.yml omega-faculty-arm: program-id, program-realize, R10, regulate, R11, R13/R14 host and silicon builds, R16-G3 link maps, production hygiene, negative build, empirical optimizer, plan reuse; pinned physics, aienos and ARGUS (hosted 157 s) +# cache: never because receipts bind the candidate commit and the step reads pinned sibling sources. +gate: OMEGA-FACULTY-ARM +manifest_version: 2 +owner: omega +requires: + - host +inputs: + - Makefile + - mk/ + - src/ + - tests/ + - tools/ + - aienos.lock + - argus.lock + - tests/gates/ +run: + exec: tests/gates/run.sh + args: ["faculty-arm"] +expects: + exit: 0 + verdict: PASS +timeout: 30m +exactness: EXACT +cache_scope: machine +cache: never diff --git a/tests/gates/omega-gate14-combine.gate b/tests/gates/omega-gate14-combine.gate new file mode 100644 index 000000000..04131af9d --- /dev/null +++ b/tests/gates/omega-gate14-combine.gate @@ -0,0 +1,26 @@ +# tests/gates/omega-gate14-combine.gate +# Mirrors hosted: rx-host.yml chip-only-declared: test-gate14-combine is declared SKIP on GitHub (needs the GB10 resident seat); qualified only by a candidate-bound Spark receipt +gate: OMEGA-GATE14-COMBINE +manifest_version: 2 +owner: omega +requires: + - gb10 +inputs: + - Makefile + - mk/ + - src/ + - tests/ + - tools/ + - aienos.lock + - argus.lock + - tests/gates/ +run: + exec: tests/gates/run.sh + args: ["chip:test-gate14-combine"] +expects: + exit: 0 + verdict: PASS +timeout: 60m +exactness: EXACT +cache_scope: hardware +cache: never diff --git a/tests/gates/omega-language.gate b/tests/gates/omega-language.gate new file mode 100644 index 000000000..34e343e83 --- /dev/null +++ b/tests/gates/omega-language.gate @@ -0,0 +1,23 @@ +# tests/gates/omega-language.gate +# Mirrors hosted: pr-smoke.yml 'Language V0 golden' and host-suites-3.yml language: make test-language, PASS n/n, no FAIL (hosted 13 s) +gate: OMEGA-LANGUAGE +manifest_version: 2 +owner: omega +requires: + - host +inputs: + - Makefile + - mk/ + - src/ + - tests/language/ + - tools/ + - tests/gates/ +run: + exec: tests/gates/run.sh + args: ["language"] +expects: + exit: 0 + verdict: PASS +timeout: 10m +exactness: EXACT +cache_scope: machine diff --git a/tests/gates/omega-m10.gate b/tests/gates/omega-m10.gate new file mode 100644 index 000000000..61518c313 --- /dev/null +++ b/tests/gates/omega-m10.gate @@ -0,0 +1,25 @@ +# tests/gates/omega-m10.gate +# Mirrors hosted: host-suites-3.yml milestones matrix test-m10 with physics-src at physics.lock, TOTAL GATES line with FAILED: 0 (hosted ~18 s) +gate: OMEGA-M10 +manifest_version: 2 +owner: omega +requires: + - host +inputs: + - Makefile + - mk/ + - src/ + - tests/run_m10_gates.sh + - tests/ + - tools/omegatool.c + - physics.lock + - tests/gates/ +run: + exec: tests/gates/run.sh + args: ["m10"] +expects: + exit: 0 + verdict: PASS +timeout: 10m +exactness: EXACT +cache_scope: machine diff --git a/tests/gates/omega-m11.gate b/tests/gates/omega-m11.gate new file mode 100644 index 000000000..86936d883 --- /dev/null +++ b/tests/gates/omega-m11.gate @@ -0,0 +1,25 @@ +# tests/gates/omega-m11.gate +# Mirrors hosted: host-suites-3.yml milestones matrix test-m11 with physics-src at physics.lock, TOTAL GATES line with FAILED: 0 (hosted ~18 s) +gate: OMEGA-M11 +manifest_version: 2 +owner: omega +requires: + - host +inputs: + - Makefile + - mk/ + - src/ + - tests/run_m11_gates.sh + - tests/ + - tools/omegatool.c + - physics.lock + - tests/gates/ +run: + exec: tests/gates/run.sh + args: ["m11"] +expects: + exit: 0 + verdict: PASS +timeout: 10m +exactness: EXACT +cache_scope: machine diff --git a/tests/gates/omega-m12.gate b/tests/gates/omega-m12.gate new file mode 100644 index 000000000..fd6d6576f --- /dev/null +++ b/tests/gates/omega-m12.gate @@ -0,0 +1,25 @@ +# tests/gates/omega-m12.gate +# Mirrors hosted: host-suites-3.yml milestones matrix test-m12 with physics-src at physics.lock, TOTAL GATES line with FAILED: 0 (hosted ~18 s) +gate: OMEGA-M12 +manifest_version: 2 +owner: omega +requires: + - host +inputs: + - Makefile + - mk/ + - src/ + - tests/run_m12_gates.sh + - tests/ + - tools/omegatool.c + - physics.lock + - tests/gates/ +run: + exec: tests/gates/run.sh + args: ["m12"] +expects: + exit: 0 + verdict: PASS +timeout: 10m +exactness: EXACT +cache_scope: machine diff --git a/tests/gates/omega-m13.gate b/tests/gates/omega-m13.gate new file mode 100644 index 000000000..1c333dfd9 --- /dev/null +++ b/tests/gates/omega-m13.gate @@ -0,0 +1,25 @@ +# tests/gates/omega-m13.gate +# Mirrors hosted: host-suites-3.yml milestones matrix test-m13 with physics-src at physics.lock, TOTAL GATES line with FAILED: 0 (hosted ~18 s) +gate: OMEGA-M13 +manifest_version: 2 +owner: omega +requires: + - host +inputs: + - Makefile + - mk/ + - src/ + - tests/run_m13_gates.sh + - tests/ + - tools/omegatool.c + - physics.lock + - tests/gates/ +run: + exec: tests/gates/run.sh + args: ["m13"] +expects: + exit: 0 + verdict: PASS +timeout: 10m +exactness: EXACT +cache_scope: machine diff --git a/tests/gates/omega-m14.gate b/tests/gates/omega-m14.gate new file mode 100644 index 000000000..32a125976 --- /dev/null +++ b/tests/gates/omega-m14.gate @@ -0,0 +1,25 @@ +# tests/gates/omega-m14.gate +# Mirrors hosted: host-suites-3.yml milestones matrix test-m14 with physics-src at physics.lock, TOTAL GATES line with FAILED: 0 (hosted ~18 s) +gate: OMEGA-M14 +manifest_version: 2 +owner: omega +requires: + - host +inputs: + - Makefile + - mk/ + - src/ + - tests/run_m14_gates.sh + - tests/ + - tools/omegatool.c + - physics.lock + - tests/gates/ +run: + exec: tests/gates/run.sh + args: ["m14"] +expects: + exit: 0 + verdict: PASS +timeout: 10m +exactness: EXACT +cache_scope: machine diff --git a/tests/gates/omega-m15.gate b/tests/gates/omega-m15.gate new file mode 100644 index 000000000..a8702cb91 --- /dev/null +++ b/tests/gates/omega-m15.gate @@ -0,0 +1,25 @@ +# tests/gates/omega-m15.gate +# Mirrors hosted: host-suites-3.yml milestones matrix test-m15 with physics-src at physics.lock, TOTAL GATES line with FAILED: 0 (hosted ~18 s) +gate: OMEGA-M15 +manifest_version: 2 +owner: omega +requires: + - host +inputs: + - Makefile + - mk/ + - src/ + - tests/run_m15_gates.sh + - tests/ + - tools/omegatool.c + - physics.lock + - tests/gates/ +run: + exec: tests/gates/run.sh + args: ["m15"] +expects: + exit: 0 + verdict: PASS +timeout: 10m +exactness: EXACT +cache_scope: machine diff --git a/tests/gates/omega-m17.gate b/tests/gates/omega-m17.gate new file mode 100644 index 000000000..2aa3a72b9 --- /dev/null +++ b/tests/gates/omega-m17.gate @@ -0,0 +1,23 @@ +# tests/gates/omega-m17.gate +# Mirrors hosted: host-suites-3.yml m17 is SKIP on GitHub (needs GB10 chip, physical SM execution gate): make test-m17 +gate: OMEGA-M17 +manifest_version: 2 +owner: omega +requires: + - gb10 +inputs: + - Makefile + - mk/ + - src/ + - tests/ + - physics.lock + - tests/gates/ +run: + exec: tests/gates/run.sh + args: ["m17"] +expects: + exit: 0 + verdict: PASS +timeout: 30m +exactness: EXACT +cache_scope: hardware diff --git a/tests/gates/omega-m19.gate b/tests/gates/omega-m19.gate new file mode 100644 index 000000000..8e8ae88eb --- /dev/null +++ b/tests/gates/omega-m19.gate @@ -0,0 +1,26 @@ +# tests/gates/omega-m19.gate +# Mirrors hosted: rx-host.yml chip-only-declared: test-m19 is declared SKIP on GitHub (needs the GB10 resident seat); qualified only by a candidate-bound Spark receipt +gate: OMEGA-M19 +manifest_version: 2 +owner: omega +requires: + - gb10 +inputs: + - Makefile + - mk/ + - src/ + - tests/ + - tools/ + - aienos.lock + - argus.lock + - tests/gates/ +run: + exec: tests/gates/run.sh + args: ["chip:test-m19"] +expects: + exit: 0 + verdict: PASS +timeout: 60m +exactness: EXACT +cache_scope: hardware +cache: never diff --git a/tests/gates/omega-m19r-qualify.gate b/tests/gates/omega-m19r-qualify.gate new file mode 100644 index 000000000..294ef17bb --- /dev/null +++ b/tests/gates/omega-m19r-qualify.gate @@ -0,0 +1,26 @@ +# tests/gates/omega-m19r-qualify.gate +# Mirrors hosted: rx-host.yml chip-only-declared: test-m19r-qualify is declared SKIP on GitHub (needs the GB10 resident seat); qualified only by a candidate-bound Spark receipt +gate: OMEGA-M19R-QUALIFY +manifest_version: 2 +owner: omega +requires: + - gb10 +inputs: + - Makefile + - mk/ + - src/ + - tests/ + - tools/ + - aienos.lock + - argus.lock + - tests/gates/ +run: + exec: tests/gates/run.sh + args: ["chip:test-m19r-qualify"] +expects: + exit: 0 + verdict: PASS +timeout: 60m +exactness: EXACT +cache_scope: hardware +cache: never diff --git a/tests/gates/omega-m5.gate b/tests/gates/omega-m5.gate new file mode 100644 index 000000000..a875f165f --- /dev/null +++ b/tests/gates/omega-m5.gate @@ -0,0 +1,26 @@ +# tests/gates/omega-m5.gate +# Mirrors hosted: rx-host.yml chip-only-declared: test-m5 is declared SKIP on GitHub (needs the GB10 resident seat); qualified only by a candidate-bound Spark receipt +gate: OMEGA-M5 +manifest_version: 2 +owner: omega +requires: + - gb10 +inputs: + - Makefile + - mk/ + - src/ + - tests/ + - tools/ + - aienos.lock + - argus.lock + - tests/gates/ +run: + exec: tests/gates/run.sh + args: ["chip:test-m5"] +expects: + exit: 0 + verdict: PASS +timeout: 60m +exactness: EXACT +cache_scope: hardware +cache: never diff --git a/tests/gates/omega-m6.gate b/tests/gates/omega-m6.gate new file mode 100644 index 000000000..1bee2e814 --- /dev/null +++ b/tests/gates/omega-m6.gate @@ -0,0 +1,25 @@ +# tests/gates/omega-m6.gate +# Mirrors hosted: host-suites-3.yml milestones matrix test-m6 with physics-src at physics.lock, TOTAL GATES line with FAILED: 0 (hosted ~18 s) +gate: OMEGA-M6 +manifest_version: 2 +owner: omega +requires: + - host +inputs: + - Makefile + - mk/ + - src/ + - tests/run_m6_gates.sh + - tests/ + - tools/omegatool.c + - physics.lock + - tests/gates/ +run: + exec: tests/gates/run.sh + args: ["m6"] +expects: + exit: 0 + verdict: PASS +timeout: 10m +exactness: EXACT +cache_scope: machine diff --git a/tests/gates/omega-m7.gate b/tests/gates/omega-m7.gate new file mode 100644 index 000000000..28413a2c9 --- /dev/null +++ b/tests/gates/omega-m7.gate @@ -0,0 +1,25 @@ +# tests/gates/omega-m7.gate +# Mirrors hosted: host-suites-3.yml milestones matrix test-m7 with physics-src at physics.lock, TOTAL GATES line with FAILED: 0 (hosted ~18 s) +gate: OMEGA-M7 +manifest_version: 2 +owner: omega +requires: + - host +inputs: + - Makefile + - mk/ + - src/ + - tests/run_m7_gates.sh + - tests/ + - tools/omegatool.c + - physics.lock + - tests/gates/ +run: + exec: tests/gates/run.sh + args: ["m7"] +expects: + exit: 0 + verdict: PASS +timeout: 10m +exactness: EXACT +cache_scope: machine diff --git a/tests/gates/omega-m8.gate b/tests/gates/omega-m8.gate new file mode 100644 index 000000000..39f362e8e --- /dev/null +++ b/tests/gates/omega-m8.gate @@ -0,0 +1,25 @@ +# tests/gates/omega-m8.gate +# Mirrors hosted: host-suites-3.yml milestones matrix test-m8 with physics-src at physics.lock, TOTAL GATES line with FAILED: 0 (hosted ~18 s) +gate: OMEGA-M8 +manifest_version: 2 +owner: omega +requires: + - host +inputs: + - Makefile + - mk/ + - src/ + - tests/run_m8_gates.sh + - tests/ + - tools/omegatool.c + - physics.lock + - tests/gates/ +run: + exec: tests/gates/run.sh + args: ["m8"] +expects: + exit: 0 + verdict: PASS +timeout: 10m +exactness: EXACT +cache_scope: machine diff --git a/tests/gates/omega-m9.gate b/tests/gates/omega-m9.gate new file mode 100644 index 000000000..763a7ab99 --- /dev/null +++ b/tests/gates/omega-m9.gate @@ -0,0 +1,25 @@ +# tests/gates/omega-m9.gate +# Mirrors hosted: host-suites-3.yml milestones matrix test-m9 with physics-src at physics.lock, TOTAL GATES line with FAILED: 0 (hosted ~18 s) +gate: OMEGA-M9 +manifest_version: 2 +owner: omega +requires: + - host +inputs: + - Makefile + - mk/ + - src/ + - tests/run_m9_gates.sh + - tests/ + - tools/omegatool.c + - physics.lock + - tests/gates/ +run: + exec: tests/gates/run.sh + args: ["m9"] +expects: + exit: 0 + verdict: PASS +timeout: 10m +exactness: EXACT +cache_scope: machine diff --git a/tests/gates/omega-numeric-cpu.gate b/tests/gates/omega-numeric-cpu.gate new file mode 100644 index 000000000..5d1ea7294 --- /dev/null +++ b/tests/gates/omega-numeric-cpu.gate @@ -0,0 +1,25 @@ +# tests/gates/omega-numeric-cpu.gate +# Mirrors hosted: host-suites.yml numeric-cpu: test-numeric-cpu test-numeric-qualify test-e1-combine test-chipwait-campaign test-gpu-wait test-gpu-wait-mutants test-gpu-code-alloc (hosted 63 s) +gate: OMEGA-NUMERIC-CPU +manifest_version: 2 +owner: omega +requires: + - host +inputs: + - Makefile + - mk/ + - src/ + - tests/test_omega_numeric.c + - tests/numeric_oracle.h + - tests/run_numeric_gates.sh + - tools/ + - tests/gates/ +run: + exec: tests/gates/run.sh + args: ["numeric-cpu"] +expects: + exit: 0 + verdict: PASS +timeout: 15m +exactness: EXACT +cache_scope: machine diff --git a/tests/gates/omega-numeric-lifecycle.gate b/tests/gates/omega-numeric-lifecycle.gate new file mode 100644 index 000000000..b4725c2d5 --- /dev/null +++ b/tests/gates/omega-numeric-lifecycle.gate @@ -0,0 +1,23 @@ +# tests/gates/omega-numeric-lifecycle.gate +# Mirrors hosted: host-suites-3.yml numeric-lifecycle: make test-numeric-lifecycle (hosted 9 s) +gate: OMEGA-NUMERIC-LIFECYCLE +manifest_version: 2 +owner: omega +requires: + - host +inputs: + - Makefile + - mk/ + - tests/test_numeric_lifecycle.c + - tests/numeric_native/ + - src/ + - tests/gates/ +run: + exec: tests/gates/run.sh + args: ["numeric-lifecycle"] +expects: + exit: 0 + verdict: PASS +timeout: 10m +exactness: EXACT +cache_scope: machine diff --git a/tests/gates/omega-numeric-transc-digest.gate b/tests/gates/omega-numeric-transc-digest.gate new file mode 100644 index 000000000..df86b54c4 --- /dev/null +++ b/tests/gates/omega-numeric-transc-digest.gate @@ -0,0 +1,26 @@ +# tests/gates/omega-numeric-transc-digest.gate +# Mirrors hosted: host-suites-3.yml numeric-transc-digest: make test-numeric-transc-digest, at least one 'matches frozen digest' (hosted 293 s) +gate: OMEGA-NUMERIC-TRANSC-DIGEST +manifest_version: 2 +owner: omega +requires: + - host +inputs: + - Makefile + - mk/ + - tests/test_omega_transc.c + - tests/numeric_native/ + - tools/omegatool.c + - docs/numeric/E1_TRANSCENDENTAL_CONTRACT.md + - src/ + - tests/gates/ +run: + exec: tests/gates/run.sh + args: ["numeric-transc-digest"] +expects: + exit: 0 + observe: ["frozen_digests_matched >= 1"] + verdict: PASS +timeout: 20m +exactness: EXACT +cache_scope: machine diff --git a/tests/gates/omega-numeric-transc-full.gate b/tests/gates/omega-numeric-transc-full.gate new file mode 100644 index 000000000..81dad44b6 --- /dev/null +++ b/tests/gates/omega-numeric-transc-full.gate @@ -0,0 +1,25 @@ +# tests/gates/omega-numeric-transc-full.gate +# Mirrors hosted: host-suites-3.yml numeric-transc-full is SKIP on GitHub (2^32 inputs x 9 ops against the oracle, twice; too long for a hosted runner) +# requires: operator because this is a multi-hour exhaustive run that needs an explicit operator window on the Spark; no hardware beyond a host is required. +gate: OMEGA-NUMERIC-TRANSC-FULL +manifest_version: 2 +owner: omega +requires: + - host + - operator +inputs: + - Makefile + - mk/ + - tests/test_omega_transc.c + - tests/numeric_native/ + - src/ + - tests/gates/ +run: + exec: tests/gates/run.sh + args: ["numeric-transc-full"] +expects: + exit: 0 + verdict: PASS +timeout: 720m +exactness: EXACT +cache_scope: machine diff --git a/tests/gates/omega-numeric-transc.gate b/tests/gates/omega-numeric-transc.gate new file mode 100644 index 000000000..02d8f32ac --- /dev/null +++ b/tests/gates/omega-numeric-transc.gate @@ -0,0 +1,27 @@ +# tests/gates/omega-numeric-transc.gate +# Mirrors hosted: pr-smoke.yml 'FP32 transcendentals' and host-suites-3.yml numeric-transc: make test-numeric-transc, 10 mutants killed (hosted 85 s) +gate: OMEGA-NUMERIC-TRANSC +manifest_version: 2 +owner: omega +requires: + - host +inputs: + - Makefile + - mk/ + - src/ + - tests/test_omega_transc.c + - tests/numeric_oracle.h + - tests/numeric_native/ + - tools/ + - docs/numeric/E1_TRANSCENDENTAL_CONTRACT.md + - tests/gates/ +run: + exec: tests/gates/run.sh + args: ["numeric-transc"] +expects: + exit: 0 + observe: ["mutants_killed == 10"] + verdict: PASS +timeout: 15m +exactness: EXACT +cache_scope: machine diff --git a/tests/gates/omega-numeric2.gate b/tests/gates/omega-numeric2.gate new file mode 100644 index 000000000..72fa366be --- /dev/null +++ b/tests/gates/omega-numeric2.gate @@ -0,0 +1,24 @@ +# tests/gates/omega-numeric2.gate +# Mirrors hosted: host-suites-2.yml numeric2: test-numeric-reduce-cpu test-divsqrt-host (hosted 15 s) +gate: OMEGA-NUMERIC2 +manifest_version: 2 +owner: omega +requires: + - host +inputs: + - Makefile + - mk/ + - tests/test_omega_reduce.c + - tests/test_omega_divsqrt_gb10.c + - tests/numeric_oracle.h + - src/ + - tests/gates/ +run: + exec: tests/gates/run.sh + args: ["numeric2"] +expects: + exit: 0 + verdict: PASS +timeout: 10m +exactness: EXACT +cache_scope: machine diff --git a/tests/gates/omega-path.gate b/tests/gates/omega-path.gate new file mode 100644 index 000000000..93886018d --- /dev/null +++ b/tests/gates/omega-path.gate @@ -0,0 +1,23 @@ +# tests/gates/omega-path.gate +# Mirrors hosted: host-suites-2.yml path: make test-path (hosted 31 s) +gate: OMEGA-PATH +manifest_version: 2 +owner: omega +requires: + - host +inputs: + - Makefile + - mk/ + - src/path/ + - tests/path/ + - src/ + - tests/gates/ +run: + exec: tests/gates/run.sh + args: ["path"] +expects: + exit: 0 + verdict: PASS +timeout: 10m +exactness: EXACT +cache_scope: machine diff --git a/tests/gates/omega-physics0.gate b/tests/gates/omega-physics0.gate new file mode 100644 index 000000000..4a42d1950 --- /dev/null +++ b/tests/gates/omega-physics0.gate @@ -0,0 +1,24 @@ +# tests/gates/omega-physics0.gate +# Mirrors hosted: host-suites.yml physics0: make physics0-test (hosted 44 s) +gate: OMEGA-PHYSICS0 +manifest_version: 2 +owner: omega +requires: + - host +inputs: + - Makefile + - mk/physics0.mk + - src/physics0/ + - tests/physics0/ + - src/compiler/ + - src/ + - tests/gates/ +run: + exec: tests/gates/run.sh + args: ["physics0"] +expects: + exit: 0 + verdict: PASS +timeout: 15m +exactness: EXACT +cache_scope: machine diff --git a/tests/gates/omega-polyglot.gate b/tests/gates/omega-polyglot.gate new file mode 100644 index 000000000..928a22c85 --- /dev/null +++ b/tests/gates/omega-polyglot.gate @@ -0,0 +1,26 @@ +# tests/gates/omega-polyglot.gate +# Mirrors hosted: host-suites-2.yml polyglot: test-polyglot-asm, test-polyglot-encoder (hosted 56 s) +gate: OMEGA-POLYGLOT +manifest_version: 2 +owner: omega +requires: + - host +inputs: + - Makefile + - mk/ + - src/polyglot/ + - src/algebra/ + - tests/polyglot/ + - spec/polyglot-0.md + - evidence/POLYGLOT/ + - src/ + - tests/gates/ +run: + exec: tests/gates/run.sh + args: ["polyglot"] +expects: + exit: 0 + verdict: PASS +timeout: 10m +exactness: EXACT +cache_scope: machine diff --git a/tests/gates/omega-prod-hygiene-silicon.gate b/tests/gates/omega-prod-hygiene-silicon.gate new file mode 100644 index 000000000..3411fe93f --- /dev/null +++ b/tests/gates/omega-prod-hygiene-silicon.gate @@ -0,0 +1,26 @@ +# tests/gates/omega-prod-hygiene-silicon.gate +# Mirrors hosted: rx-host.yml chip-only-declared: test-prod-hygiene-silicon is declared SKIP on GitHub (needs the GB10 resident seat); qualified only by a candidate-bound Spark receipt +gate: OMEGA-PROD-HYGIENE-SILICON +manifest_version: 2 +owner: omega +requires: + - gb10 +inputs: + - Makefile + - mk/ + - src/ + - tests/ + - tools/ + - aienos.lock + - argus.lock + - tests/gates/ +run: + exec: tests/gates/run.sh + args: ["chip:test-prod-hygiene-silicon"] +expects: + exit: 0 + verdict: PASS +timeout: 60m +exactness: EXACT +cache_scope: hardware +cache: never diff --git a/tests/gates/omega-r12-silicon.gate b/tests/gates/omega-r12-silicon.gate new file mode 100644 index 000000000..6dd9e2b7e --- /dev/null +++ b/tests/gates/omega-r12-silicon.gate @@ -0,0 +1,26 @@ +# tests/gates/omega-r12-silicon.gate +# Mirrors hosted: rx-host.yml chip-only-declared: test-r12-silicon is declared SKIP on GitHub (needs the GB10 resident seat); qualified only by a candidate-bound Spark receipt +gate: OMEGA-R12-SILICON +manifest_version: 2 +owner: omega +requires: + - gb10 +inputs: + - Makefile + - mk/ + - src/ + - tests/ + - tools/ + - aienos.lock + - argus.lock + - tests/gates/ +run: + exec: tests/gates/run.sh + args: ["chip:test-r12-silicon"] +expects: + exit: 0 + verdict: PASS +timeout: 60m +exactness: EXACT +cache_scope: hardware +cache: never diff --git a/tests/gates/omega-r13-host.gate b/tests/gates/omega-r13-host.gate new file mode 100644 index 000000000..987e1fab6 --- /dev/null +++ b/tests/gates/omega-r13-host.gate @@ -0,0 +1,28 @@ +# tests/gates/omega-r13-host.gate +# Mirrors hosted: rx-host.yml chip-only-declared: test-r13-host is declared SKIP on GitHub (spark-only: needs both Spark core classes, X925 + A725, no GPU) +# requires: aarch64 + bare_metal because the living systems need both Spark CPU core classes on the real machine; a hosted or virtual AArch64 runner does not qualify. +gate: OMEGA-R13-HOST +manifest_version: 2 +owner: omega +requires: + - aarch64 + - bare_metal +inputs: + - Makefile + - mk/ + - src/ + - tests/ + - tools/ + - aienos.lock + - argus.lock + - tests/gates/ +run: + exec: tests/gates/run.sh + args: ["spark:test-r13-host"] +expects: + exit: 0 + verdict: PASS +timeout: 60m +exactness: EXACT +cache_scope: machine +cache: never diff --git a/tests/gates/omega-r13-silicon.gate b/tests/gates/omega-r13-silicon.gate new file mode 100644 index 000000000..0bb89eac8 --- /dev/null +++ b/tests/gates/omega-r13-silicon.gate @@ -0,0 +1,26 @@ +# tests/gates/omega-r13-silicon.gate +# Mirrors hosted: rx-host.yml chip-only-declared: test-r13-silicon is declared SKIP on GitHub (needs the GB10 resident seat); qualified only by a candidate-bound Spark receipt +gate: OMEGA-R13-SILICON +manifest_version: 2 +owner: omega +requires: + - gb10 +inputs: + - Makefile + - mk/ + - src/ + - tests/ + - tools/ + - aienos.lock + - argus.lock + - tests/gates/ +run: + exec: tests/gates/run.sh + args: ["chip:test-r13-silicon"] +expects: + exit: 0 + verdict: PASS +timeout: 60m +exactness: EXACT +cache_scope: hardware +cache: never diff --git a/tests/gates/omega-r13-testbuild-host.gate b/tests/gates/omega-r13-testbuild-host.gate new file mode 100644 index 000000000..556dcc051 --- /dev/null +++ b/tests/gates/omega-r13-testbuild-host.gate @@ -0,0 +1,28 @@ +# tests/gates/omega-r13-testbuild-host.gate +# Mirrors hosted: rx-host.yml chip-only-declared: test-r13-testbuild-host is declared SKIP on GitHub (spark-only: needs both Spark core classes, X925 + A725, no GPU) +# requires: aarch64 + bare_metal because the living systems need both Spark CPU core classes on the real machine; a hosted or virtual AArch64 runner does not qualify. +gate: OMEGA-R13-TESTBUILD-HOST +manifest_version: 2 +owner: omega +requires: + - aarch64 + - bare_metal +inputs: + - Makefile + - mk/ + - src/ + - tests/ + - tools/ + - aienos.lock + - argus.lock + - tests/gates/ +run: + exec: tests/gates/run.sh + args: ["spark:test-r13-testbuild-host"] +expects: + exit: 0 + verdict: PASS +timeout: 60m +exactness: EXACT +cache_scope: machine +cache: never diff --git a/tests/gates/omega-r13-testbuild-silicon.gate b/tests/gates/omega-r13-testbuild-silicon.gate new file mode 100644 index 000000000..264e58dd7 --- /dev/null +++ b/tests/gates/omega-r13-testbuild-silicon.gate @@ -0,0 +1,26 @@ +# tests/gates/omega-r13-testbuild-silicon.gate +# Mirrors hosted: rx-host.yml chip-only-declared: test-r13-testbuild-silicon is declared SKIP on GitHub (needs the GB10 resident seat); qualified only by a candidate-bound Spark receipt +gate: OMEGA-R13-TESTBUILD-SILICON +manifest_version: 2 +owner: omega +requires: + - gb10 +inputs: + - Makefile + - mk/ + - src/ + - tests/ + - tools/ + - aienos.lock + - argus.lock + - tests/gates/ +run: + exec: tests/gates/run.sh + args: ["chip:test-r13-testbuild-silicon"] +expects: + exit: 0 + verdict: PASS +timeout: 60m +exactness: EXACT +cache_scope: hardware +cache: never diff --git a/tests/gates/omega-r14-host.gate b/tests/gates/omega-r14-host.gate new file mode 100644 index 000000000..370753eb8 --- /dev/null +++ b/tests/gates/omega-r14-host.gate @@ -0,0 +1,28 @@ +# tests/gates/omega-r14-host.gate +# Mirrors hosted: rx-host.yml chip-only-declared: test-r14-host is declared SKIP on GitHub (spark-only: needs both Spark core classes, X925 + A725, no GPU) +# requires: aarch64 + bare_metal because the living systems need both Spark CPU core classes on the real machine; a hosted or virtual AArch64 runner does not qualify. +gate: OMEGA-R14-HOST +manifest_version: 2 +owner: omega +requires: + - aarch64 + - bare_metal +inputs: + - Makefile + - mk/ + - src/ + - tests/ + - tools/ + - aienos.lock + - argus.lock + - tests/gates/ +run: + exec: tests/gates/run.sh + args: ["spark:test-r14-host"] +expects: + exit: 0 + verdict: PASS +timeout: 60m +exactness: EXACT +cache_scope: machine +cache: never diff --git a/tests/gates/omega-r14-silicon.gate b/tests/gates/omega-r14-silicon.gate new file mode 100644 index 000000000..8695eba50 --- /dev/null +++ b/tests/gates/omega-r14-silicon.gate @@ -0,0 +1,26 @@ +# tests/gates/omega-r14-silicon.gate +# Mirrors hosted: rx-host.yml chip-only-declared: test-r14-silicon is declared SKIP on GitHub (needs the GB10 resident seat); qualified only by a candidate-bound Spark receipt +gate: OMEGA-R14-SILICON +manifest_version: 2 +owner: omega +requires: + - gb10 +inputs: + - Makefile + - mk/ + - src/ + - tests/ + - tools/ + - aienos.lock + - argus.lock + - tests/gates/ +run: + exec: tests/gates/run.sh + args: ["chip:test-r14-silicon"] +expects: + exit: 0 + verdict: PASS +timeout: 60m +exactness: EXACT +cache_scope: hardware +cache: never diff --git a/tests/gates/omega-r15-g7-host.gate b/tests/gates/omega-r15-g7-host.gate new file mode 100644 index 000000000..cde550d38 --- /dev/null +++ b/tests/gates/omega-r15-g7-host.gate @@ -0,0 +1,28 @@ +# tests/gates/omega-r15-g7-host.gate +# Mirrors hosted: rx-host.yml chip-only-declared: test-r15-g7-host is declared SKIP on GitHub (spark-only: needs both Spark core classes, X925 + A725, no GPU) +# requires: aarch64 + bare_metal because the living systems need both Spark CPU core classes on the real machine; a hosted or virtual AArch64 runner does not qualify. +gate: OMEGA-R15-G7-HOST +manifest_version: 2 +owner: omega +requires: + - aarch64 + - bare_metal +inputs: + - Makefile + - mk/ + - src/ + - tests/ + - tools/ + - aienos.lock + - argus.lock + - tests/gates/ +run: + exec: tests/gates/run.sh + args: ["spark:test-r15-g7-host"] +expects: + exit: 0 + verdict: PASS +timeout: 60m +exactness: EXACT +cache_scope: machine +cache: never diff --git a/tests/gates/omega-r15-parity-host.gate b/tests/gates/omega-r15-parity-host.gate new file mode 100644 index 000000000..afdef1a4b --- /dev/null +++ b/tests/gates/omega-r15-parity-host.gate @@ -0,0 +1,28 @@ +# tests/gates/omega-r15-parity-host.gate +# Mirrors hosted: rx-host.yml chip-only-declared: test-r15-parity-host is declared SKIP on GitHub (spark-only: needs both Spark core classes, X925 + A725, no GPU) +# requires: aarch64 + bare_metal because the living systems need both Spark CPU core classes on the real machine; a hosted or virtual AArch64 runner does not qualify. +gate: OMEGA-R15-PARITY-HOST +manifest_version: 2 +owner: omega +requires: + - aarch64 + - bare_metal +inputs: + - Makefile + - mk/ + - src/ + - tests/ + - tools/ + - aienos.lock + - argus.lock + - tests/gates/ +run: + exec: tests/gates/run.sh + args: ["spark:test-r15-parity-host"] +expects: + exit: 0 + verdict: PASS +timeout: 60m +exactness: EXACT +cache_scope: machine +cache: never diff --git a/tests/gates/omega-r15-parity-silicon.gate b/tests/gates/omega-r15-parity-silicon.gate new file mode 100644 index 000000000..e497ca9f7 --- /dev/null +++ b/tests/gates/omega-r15-parity-silicon.gate @@ -0,0 +1,26 @@ +# tests/gates/omega-r15-parity-silicon.gate +# Mirrors hosted: rx-host.yml chip-only-declared: test-r15-parity-silicon is declared SKIP on GitHub (needs the GB10 resident seat); qualified only by a candidate-bound Spark receipt +gate: OMEGA-R15-PARITY-SILICON +manifest_version: 2 +owner: omega +requires: + - gb10 +inputs: + - Makefile + - mk/ + - src/ + - tests/ + - tools/ + - aienos.lock + - argus.lock + - tests/gates/ +run: + exec: tests/gates/run.sh + args: ["chip:test-r15-parity-silicon"] +expects: + exit: 0 + verdict: PASS +timeout: 60m +exactness: EXACT +cache_scope: hardware +cache: never diff --git a/tests/gates/omega-r16-authpath-silicon.gate b/tests/gates/omega-r16-authpath-silicon.gate new file mode 100644 index 000000000..2aab53c2f --- /dev/null +++ b/tests/gates/omega-r16-authpath-silicon.gate @@ -0,0 +1,26 @@ +# tests/gates/omega-r16-authpath-silicon.gate +# Mirrors hosted: rx-host.yml chip-only-declared: test-r16-authpath-silicon is declared SKIP on GitHub (needs the GB10 resident seat); qualified only by a candidate-bound Spark receipt +gate: OMEGA-R16-AUTHPATH-SILICON +manifest_version: 2 +owner: omega +requires: + - gb10 +inputs: + - Makefile + - mk/ + - src/ + - tests/ + - tools/ + - aienos.lock + - argus.lock + - tests/gates/ +run: + exec: tests/gates/run.sh + args: ["chip:test-r16-authpath-silicon"] +expects: + exit: 0 + verdict: PASS +timeout: 60m +exactness: EXACT +cache_scope: hardware +cache: never diff --git a/tests/gates/omega-r16-authpath.gate b/tests/gates/omega-r16-authpath.gate new file mode 100644 index 000000000..fcbf9e66c --- /dev/null +++ b/tests/gates/omega-r16-authpath.gate @@ -0,0 +1,28 @@ +# tests/gates/omega-r16-authpath.gate +# Mirrors hosted: rx-host.yml chip-only-declared: test-r16-authpath is declared SKIP on GitHub (spark-only: needs both Spark core classes, X925 + A725, no GPU) +# requires: aarch64 + bare_metal because the living systems need both Spark CPU core classes on the real machine; a hosted or virtual AArch64 runner does not qualify. +gate: OMEGA-R16-AUTHPATH +manifest_version: 2 +owner: omega +requires: + - aarch64 + - bare_metal +inputs: + - Makefile + - mk/ + - src/ + - tests/ + - tools/ + - aienos.lock + - argus.lock + - tests/gates/ +run: + exec: tests/gates/run.sh + args: ["spark:test-r16-authpath"] +expects: + exit: 0 + verdict: PASS +timeout: 60m +exactness: EXACT +cache_scope: machine +cache: never diff --git a/tests/gates/omega-runtime.gate b/tests/gates/omega-runtime.gate new file mode 100644 index 000000000..1793df34e --- /dev/null +++ b/tests/gates/omega-runtime.gate @@ -0,0 +1,34 @@ +# tests/gates/omega-runtime.gate +# Mirrors hosted: host-suites-2.yml runtime: r15 instr/receipt/preflight/g15-diag, r16 inventory/negative/surface/negative-mutants/qualify-selftest, aienos-lock-source, allen; physics-src and aienos-src at their locks (hosted 466 s) +gate: OMEGA-RUNTIME +manifest_version: 2 +owner: omega +requires: + - host +inputs: + - Makefile + - mk/ + - src/runtime/ + - src/fabric/ + - src/allen/ + - tests/runtime/ + - tests/allen/ + - tests/r15_receipt_test.sh + - tools/ + - spec/ + - docs/ + - evidence/R15/ + - evidence/ALLEN/ + - physics.lock + - aienos.lock + - src/ + - tests/gates/ +run: + exec: tests/gates/run.sh + args: ["runtime"] +expects: + exit: 0 + verdict: PASS +timeout: 30m +exactness: EXACT +cache_scope: machine diff --git a/tests/gates/omega-rx-host-reference.gate b/tests/gates/omega-rx-host-reference.gate new file mode 100644 index 000000000..3e45f4c94 --- /dev/null +++ b/tests/gates/omega-rx-host-reference.gate @@ -0,0 +1,26 @@ +# tests/gates/omega-rx-host-reference.gate +# Mirrors hosted: rx-host.yml host-reference: the resident reaction host reference suite, receipts checked, qualification receipt emitted; physics-src at e95e3ed, aienos-src at aienos.lock (hosted 339 s) +# cache: never because the suite binds receipts to the candidate commit and reads pinned sibling sources. +gate: OMEGA-RX-HOST-REFERENCE +manifest_version: 2 +owner: omega +requires: + - host +inputs: + - Makefile + - mk/ + - src/ + - tests/ + - tools/ + - aienos.lock + - tests/gates/ +run: + exec: tests/gates/run.sh + args: ["rx-host-reference"] +expects: + exit: 0 + verdict: PASS +timeout: 30m +exactness: EXACT +cache_scope: machine +cache: never diff --git a/tests/gates/omega-searchtrace.gate b/tests/gates/omega-searchtrace.gate new file mode 100644 index 000000000..57847dcd9 --- /dev/null +++ b/tests/gates/omega-searchtrace.gate @@ -0,0 +1,23 @@ +# tests/gates/omega-searchtrace.gate +# Mirrors hosted: host-suites.yml searchtrace: make test-searchtrace (hosted 63 s) +gate: OMEGA-SEARCHTRACE +manifest_version: 2 +owner: omega +requires: + - host +inputs: + - Makefile + - mk/searchtrace.mk + - src/searchtrace/ + - tests/searchtrace/ + - src/ + - tests/gates/ +run: + exec: tests/gates/run.sh + args: ["searchtrace"] +expects: + exit: 0 + verdict: PASS +timeout: 10m +exactness: EXACT +cache_scope: machine diff --git a/tests/gates/omega-tensor.gate b/tests/gates/omega-tensor.gate new file mode 100644 index 000000000..c17a26141 --- /dev/null +++ b/tests/gates/omega-tensor.gate @@ -0,0 +1,29 @@ +# tests/gates/omega-tensor.gate +# Mirrors hosted: host-suites-2.yml tensor: test-tensor, test-tensor-store, test-m20-receipt, test-tensor-mutations (hosted 210 s) +gate: OMEGA-TENSOR +manifest_version: 2 +owner: omega +requires: + - host +inputs: + - Makefile + - mk/tensor.mk + - src/tensor/ + - tests/test_omega_tensor.c + - tests/test_omega_tensor_store.c + - tests/test_m20_receipt.sh + - tests/fixtures/m20_receipt/ + - tools/m20_receipt.sh + - tools/m20_receipt_mutations.sh + - tools/tensor_mutations.sh + - src/ + - tests/gates/ +run: + exec: tests/gates/run.sh + args: ["tensor"] +expects: + exit: 0 + verdict: PASS +timeout: 15m +exactness: EXACT +cache_scope: machine diff --git a/tests/gates/omega-train.gate b/tests/gates/omega-train.gate new file mode 100644 index 000000000..942c56042 --- /dev/null +++ b/tests/gates/omega-train.gate @@ -0,0 +1,23 @@ +# tests/gates/omega-train.gate +# Mirrors hosted: host-suites.yml train: make test-train (hosted 11 s) +gate: OMEGA-TRAIN +manifest_version: 2 +owner: omega +requires: + - host +inputs: + - Makefile + - mk/train.mk + - src/train/ + - tests/train/ + - src/ + - tests/gates/ +run: + exec: tests/gates/run.sh + args: ["train"] +expects: + exit: 0 + verdict: PASS +timeout: 10m +exactness: EXACT +cache_scope: machine diff --git a/tests/gates/omega-turing-yield.gate b/tests/gates/omega-turing-yield.gate new file mode 100644 index 000000000..e41520e30 --- /dev/null +++ b/tests/gates/omega-turing-yield.gate @@ -0,0 +1,26 @@ +# tests/gates/omega-turing-yield.gate +# Mirrors hosted: turing-yield.yml portable-boundaries: make test-turing-yield test-turing-energy (hosted 22 s) +gate: OMEGA-TURING-YIELD +manifest_version: 2 +owner: omega +requires: + - host +inputs: + - Makefile + - mk/ + - src/turing/ + - tests/turing/ + - tools/turing_yield.c + - tools/r15_reduce.c + - tools/ + - src/ + - tests/gates/ +run: + exec: tests/gates/run.sh + args: ["turing-yield"] +expects: + exit: 0 + verdict: PASS +timeout: 10m +exactness: EXACT +cache_scope: machine diff --git a/tests/gates/omega-turing.gate b/tests/gates/omega-turing.gate new file mode 100644 index 000000000..0c5b5659b --- /dev/null +++ b/tests/gates/omega-turing.gate @@ -0,0 +1,30 @@ +# tests/gates/omega-turing.gate +# Mirrors hosted: host-suites-2.yml turing: test-turing, exp001-a/coders, verify-indep, qcont/qrecord (hosted 155 s) +gate: OMEGA-TURING +manifest_version: 2 +owner: omega +requires: + - host +inputs: + - Makefile + - mk/ + - src/turing/ + - src/algebra/ + - tests/turing/ + - tools/ + - data/crumbline/ + - data/turing-cal/ + - evidence/TURING_YIELD/ + - docs/turing/ + - calibration/ + - src/ + - tests/gates/ +run: + exec: tests/gates/run.sh + args: ["turing"] +expects: + exit: 0 + verdict: PASS +timeout: 20m +exactness: EXACT +cache_scope: machine diff --git a/tests/gates/omega-visor.gate b/tests/gates/omega-visor.gate new file mode 100644 index 000000000..f8e715635 --- /dev/null +++ b/tests/gates/omega-visor.gate @@ -0,0 +1,28 @@ +# tests/gates/omega-visor.gate +# Mirrors hosted: host-suites-2.yml visor: make test-visor with aienos-src at aienos.lock (hosted 26 s) +gate: OMEGA-VISOR +manifest_version: 2 +owner: omega +requires: + - host +inputs: + - Makefile + - mk/ + - src/visor/ + - src/language/ + - tests/visor/ + - tests/language/ + - tools/omega.c + - src/runtime/ + - aienos.lock + - src/ + - tests/gates/ +run: + exec: tests/gates/run.sh + args: ["visor"] +expects: + exit: 0 + verdict: PASS +timeout: 10m +exactness: EXACT +cache_scope: machine diff --git a/tests/gates/omega-zero-disk-secrets.gate b/tests/gates/omega-zero-disk-secrets.gate new file mode 100644 index 000000000..061e25bc6 --- /dev/null +++ b/tests/gates/omega-zero-disk-secrets.gate @@ -0,0 +1,19 @@ +# tests/gates/omega-zero-disk-secrets.gate +# Mirrors hosted: no hosted step; the zero-disk-secrets invariant of the Rust repos (always-run) +gate: OMEGA-ZERO-DISK-SECRETS +manifest_version: 2 +owner: omega +requires: + - portable +inputs: + - tests/gates/ +run: + exec: tests/gates/run.sh + args: ["zero-disk-secrets"] +expects: + exit: 0 + observe: ["env_files_found == false"] + verdict: PASS +timeout: 2m +exactness: EXACT +cache_scope: portable diff --git a/tests/gates/run.sh b/tests/gates/run.sh new file mode 100755 index 000000000..36dd13cd9 --- /dev/null +++ b/tests/gates/run.sh @@ -0,0 +1,242 @@ +#!/usr/bin/env bash +# tests/gates/run.sh: the one entry point for the local verification gates of omega. +# Every step runs the SAME command as the hosted job it mirrors (.github/workflows/pr-smoke.yml, +# host-suites.yml, host-suites-2.yml, host-suites-3.yml, rx-host.yml, turing-yield.yml, +# evidence-immutable.yml, crumb.yml). Manifests under tests/gates/ name this script plus one +# step word, so no manifest needs shell expansion (ADR 0028 P6). +# +# Pinned sibling sources. The hosted jobs check out aien-dev/physics at physics.lock (rx-host +# at its own hard-coded commit), aien-dev/aienos at aienos.lock and aien-dev/aienos at +# argus.lock, as physics-src/, aienos-src/ and aienos-argus/ next to the Makefile, and exclude +# them from git status. Here the same commits are materialised under build/pins/ (build/ is +# gitignored) from the sibling local clones ../physics and ../aienos, offline. +set -euo pipefail +ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)" +cd "$ROOT" +step="${1:?usage: tests/gates/run.sh }" +obs() { printf 'AIEN-OBS %s %s\n' "$1" "$2"; } + +PINS="$ROOT/build/pins" +NOPHYS="PHYSICS_DIR=/nonexistent PHYSICS_LOCK_CHECK=0" +lock() { awk 'NF && $1 !~ /^#/ {print $1; exit}' "$1"; } + +# pin : build/pins/ is a detached checkout of +# taken from the object store of ../. Reused when already at that commit. +pin() { + local name="$1" repo="$2" sha="$3" dir="$PINS/$1" + if [ ! -d "../$repo/.git" ] && [ ! -f "../$repo/.git" ]; then + echo "run.sh: ../$repo is missing; the hosted job checks out aien-dev/$repo at $sha" >&2 + exit 3 + fi + if [ ! -d "$dir" ] || [ "$(git -C "$dir" rev-parse HEAD 2>/dev/null)" != "$sha" ]; then + rm -rf "$dir"; mkdir -p "$PINS" + git clone --quiet --shared --no-checkout "../$repo" "$dir" + git -C "$dir" checkout --quiet --detach "$sha" + fi + obs "pin_${name//-/_}" "\"$sha\"" +} +physics_pin() { pin physics-src physics "$(lock physics.lock)"; export PHYSICS_DIR="$PINS/physics-src"; } +aienos_pin() { pin aienos-src aienos "$(lock aienos.lock)"; export AIENOS_R7_DIR="$PINS/aienos-src"; export AIENOS_COMMIT="$(lock aienos.lock)"; } +argus_pin() { pin aienos-argus aienos "$(lock argus.lock)"; export ARGUS_REPO="$PINS/aienos-argus"; } +export OMEGA_CANDIDATE_COMMIT="$(git rev-parse HEAD)" + +# receipt ...: the hosted "Show ... receipt" steps. +# Only receipts written during this step count: a hosted job starts from a fresh checkout, so it +# can only see its own run, while a reused local tree keeps build/qual-runs from earlier runs. +STEP_MARK="$(mktemp /tmp/omega-gate-step.XXXXXX)" +trap 'rm -f "$STEP_MARK"' EXIT +receipt() { + local r; r="$(find build/qual-runs -name "$1" -type f -newer "$STEP_MARK" | head -n 1)"; shift + test -n "$r" + local p; for p in "$@"; do grep -q "$p" "$r"; done + sha256sum "$r" +} +gates_pass() { grep -E 'TOTAL GATES: [0-9]+ \| PASSED: [0-9]+ \| FAILED: 0' "$1" && ! grep -E 'FAILED: [1-9]' "$1"; } + +case "$step" in + crumb-verify) + # Hosted crumb.yml builds the crumb tool from the aien-architecture commit in crumb.lock. + # Same here, from the sibling checkout ../aien-architecture into a temp dir outside the + # tree, so a newer crumb on PATH can never change the verdict. + if [ ! -d ../aien-architecture ]; then + echo "run.sh: ../aien-architecture is missing; the hosted job checks out aien-dev/aien-architecture at crumb.lock" >&2 + exit 3 + fi + tool="$(mktemp -d /tmp/omega-crumb-tool.XXXXXX)" + trap 'rm -rf "$tool" "$STEP_MARK"' EXIT + git -C ../aien-architecture archive "$(lock crumb.lock)" tools/crumb | tar -x -C "$tool" + make -s -C "$tool/tools/crumb" crumb + obs crumb_tool_commit "\"$(lock crumb.lock)\"" + "$tool/tools/crumb/crumb" verify . + ;; + # pr-smoke.yml + base) + physics_pin; set -o pipefail + make test | tee build/base.log + grep -E 'TOTAL GATES: ([0-9]+) \| PASSED: \1 \| FAILED: 0' build/base.log + ! grep -qE 'FAILED: [1-9]|\[FAIL\]|\(FAIL\)' build/base.log + ;; + language) # pr-smoke.yml and host-suites-3.yml (same command) + set -o pipefail; mkdir -p build + make $NOPHYS test-language | tee build/lang.log + grep -E '^PASS ([0-9]+)/\1$' build/lang.log + ! grep -q '^FAIL' build/lang.log + ;; + numeric-transc) # pr-smoke.yml and host-suites-3.yml (same command and checks) + set -o pipefail; mkdir -p build + make $NOPHYS test-numeric-transc | tee build/transc.log + test "$(grep -cE '^mutant [0-9]+ killed' build/transc.log)" -eq 10 + grep -qE '^test-numeric-transc: PASS \(all 10 mutants killed\)' build/transc.log + ! grep -q '^FAIL' build/transc.log + obs mutants_killed 10 + ;; + # host-suites.yml + searchtrace) make $NOPHYS test-searchtrace ;; + estimation) for t in test-estimation test-est-tools test-estimation-v3 test-est3c-tools; do make $NOPHYS $t; done ;; + ans) make $NOPHYS test-inertial-alignment ;; + numeric-cpu) for t in test-numeric-cpu test-numeric-qualify test-e1-combine test-chipwait-campaign test-gpu-wait test-gpu-wait-mutants test-gpu-code-alloc; do make $NOPHYS $t; done ;; + train) make $NOPHYS test-train ;; + compiler) make $NOPHYS test-compiler-quick; make $NOPHYS test-compiler-full ;; + physics0) make $NOPHYS physics0-test ;; + # host-suites-2.yml + visor) aienos_pin; make $NOPHYS test-visor ;; + turing) make $NOPHYS test-turing; make $NOPHYS test-turing-exp001-a test-turing-exp001-coders; make $NOPHYS test-turing-verify-indep; make $NOPHYS test-turing-qcont test-turing-qrecord ;; + brownian) make $NOPHYS test-brownian-tps; make $NOPHYS test-brownian-active ;; + polyglot) make $NOPHYS test-polyglot-asm; make $NOPHYS test-polyglot-encoder ;; + algebra) make $NOPHYS test-algebra test-algebra-asan; make $NOPHYS test-realize; make $NOPHYS test-phase-twin; make $NOPHYS test-ma-digital-bottom ;; + path) make $NOPHYS test-path ;; + crumbline) make $NOPHYS test-crumbline test-library test-vcstore test-resolve test-vcstore-genesis test-resolve-genesis test-genesis test-genesis-real test-program-ir test-vc-bridge ;; + runtime) + physics_pin; aienos_pin + # host-suites-2.yml sets only PHYSICS_DIR and AIENOS_R7_DIR, and only on the steps that list + # them; the qualify self-test and the aienos.lock source proof run with neither (the latter + # checks the default cache, which an inherited AIENOS_R7_DIR override would bypass). + unset AIENOS_COMMIT OMEGA_CANDIDATE_COMMIT + make test-r15-instr + make test-r15-receipt + make test-r15-preflight test-r15-g15-diag + make test-r16-inventory + make test-r16-negative + make test-r16-surface + make test-r16-negative-mutants + env -u PHYSICS_DIR -u AIENOS_R7_DIR make test-r16-qualify-selftest + env -u PHYSICS_DIR -u AIENOS_R7_DIR make test-aienos-lock-source + make test-allen + ;; + argus) + physics_pin; aienos_pin; argus_pin + ARGUS_STREAMS="$(mktemp -d /tmp/argus-streams.XXXXXX)"; export ARGUS_STREAMS + make test-argus-runtime test-machine-identity-argus + ;; + numeric2) make $NOPHYS test-numeric-reduce-cpu test-divsqrt-host ;; + tensor) make $NOPHYS test-tensor; make $NOPHYS test-tensor-store; make $NOPHYS test-m20-receipt; make $NOPHYS test-tensor-mutations ;; + # host-suites-3.yml + numeric-lifecycle) make $NOPHYS test-numeric-lifecycle ;; + numeric-transc-digest) + set -o pipefail; mkdir -p build + make $NOPHYS test-numeric-transc-digest | tee build/digest.log + n=$(grep -c 'matches frozen digest' build/digest.log); obs frozen_digests_matched "$n" + test "$n" -ge 1 + ;; + numeric-transc-full) make $NOPHYS test-numeric-transc-full ;; + m6|m7|m8|m9|m10|m11|m12|m13|m14|m15|m17|m5|m19|m19r-qualify|gate14-combine) + physics_pin; set -o pipefail; mkdir -p build + make "test-$step" | tee "build/gate-$step.log" + gates_pass "build/gate-$step.log" + ;; + # rx-host.yml + rx-host-reference) + pin physics-src-e95e3ed physics e95e3ed2a86fe4bffe4d954fa94c27dfb5284280 + export PHYSICS_COMMIT=e95e3ed2a86fe4bffe4d954fa94c27dfb5284280 PHYSICS_DIR="$PINS/physics-src-e95e3ed" + aienos_pin; set -o pipefail; mkdir -p build + make test-r3 test-r7 test-r16-operator-authority-misuse test-r8 test-r9 test-r12 test-rx-emergency test-action-graph test-state-projection test-capability-query test-capability-graph test-skillroute-compose test-semantic-comm test-cognitive-routing test-sem-incremental test-cortex test-jspace-prod test-composition test-composition-attach-asan test-composition-gate test-fabric test-fabric-living + make test-machine-identity + make test-effect-cap64 | tee build/effect-cap64.log + grep -q '^OMEGA_EFFECT_CAP64_PASS$' build/effect-cap64.log + receipt omega_state_projection_receipt.json '"failures": 0,' '"candidate_bound": true,' '"OMEGA_STATE_PROJECTION_PASS": "PASS"' + receipt rx_action_graph_receipt.json '"failures": 0,' '"candidate_bound": true,' '"OMEGA_ACTION_GRAPH_IR_PASS": "PASS"' + receipt omega_incremental_semantics_receipt.json '"OMEGA_INCREMENTAL_SEMANTICS_PASS": "HOST_PASS_ENERGY_UNMEASURED"' '"false_hits": 0,' + receipt rx_capability_query_receipt.json '"failures": 0,' '"candidate_bound": true,' '"OMEGA_CAPABILITY_QUERY_PASS": "PASS"' + receipt rx_semantic_comm_receipt.json '"failures": 0,' '"candidate_bound": true,' '"OMEGA_SEMANTIC_COMMUNICATION_PASS": "PASS"' + receipt rx_cognitive_routing_receipt.json '"failures": 0,' '"candidate_bound": true,' '"OMEGA_COGNITIVE_ROUTING_PASS": "PASS"' + make test-workflow-fusion + receipt rx_workflow_fusion_receipt.json '"failures": 0,' '"candidate_bound": true,' '"OMEGA_WORKFLOW_FUSION_PASS": "PASS"' + make test-typed-results + receipt rx_typed_results_receipt.json '"failures": 0,' '"candidate_bound": true,' '"OMEGA_TYPED_RESULT_CONSTRAINTS_PASS": "PASS"' + make test-costmodel + receipt rx_aegis_resident_receipt.json '"failures": 0,' '"candidate_bound": true,' '"R8_CONSTITUTIONAL_AEGIS": "PASS"' + r="$(find build/qual-runs -name rx_heartbeat_receipt.json -type f -newer "$STEP_MARK" | head -n 1)" + native="$(find build/qual-runs -name rx_native_authority_receipt.json -type f -newer "$STEP_MARK" | head -n 1)" + generation="$(find build/qual-runs -name rx_generation_barrier_receipt.json -type f -newer "$STEP_MARK" | head -n 1)" + test -n "$r"; test -n "$native"; test -n "$generation" + if git diff --quiet && git diff --cached --quiet; then obs tree_cleanliness '"clean"'; else obs tree_cleanliness '"dirty"'; fi + tools/rx_host_receipts.sh heartbeat "$r" + tools/rx_host_receipts.sh native "$native" "$OMEGA_CANDIDATE_COMMIT" + tools/rx_host_receipts.sh generation "$generation" "$OMEGA_CANDIDATE_COMMIT" + ;; + faculty-arm) + pin physics-src-e95e3ed physics e95e3ed2a86fe4bffe4d954fa94c27dfb5284280 + export PHYSICS_DIR="$PINS/physics-src-e95e3ed" + aienos_pin; argus_pin; set -o pipefail; mkdir -p build + make OUT_DIR=build/pid $NOPHYS test-program-id + make OUT_DIR=build/prz $NOPHYS test-program-realize + R10_ALLOW_NO_WIN=1 make test-r10 + receipt rx_omega_faculty_receipt.json '"failures": 0,' '"candidate_bound": true,' '"tree_dirty": false,' + make test-regulate + make test-r11 + receipt rx_aien_faculty_receipt.json '"failures": 0,' '"candidate_bound": true,' '"tree_dirty": false,' + make build/rx_r13_living_host build/rx_r13_living_testbuild_host + make build/rx_r14_recovery_host + make test-r16-authpath-linkmap | tee build/r16-g3-linkmap-host.log + grep -qx 'R16-G3 static: R16_G3_LINKMAP=STATIC_PASS mode=host (checks 1-3 of 5 on this build; not the gate)' build/r16-g3-linkmap-host.log + grep -qx 'R16 gate: R16_G3_AUTHPATH=NOT_RUN (checks 4-5, exec trace and living run, not run in static-only mode)' build/r16-g3-linkmap-host.log + make test-r16-authpath-linkmap-silicon | tee build/r16-g3-linkmap-silicon.log + grep -qx 'R16-G3 static: R16_G3_LINKMAP=STATIC_PASS mode=silicon (checks 1-3 of 5 on this build; not the gate)' build/r16-g3-linkmap-silicon.log + grep -qx 'R16 gate: R16_G3_AUTHPATH=NOT_RUN (checks 4-5, exec trace and living run, not run in static-only mode)' build/r16-g3-linkmap-silicon.log + make test-prod-hygiene | tee build/prod-hygiene-host.log + grep -q '^R16 prod: PROD_HYGIENE=PASS mode=host ' build/prod-hygiene-host.log + R16_PROD_NO_RUN=1 make test-prod-hygiene-silicon | tee build/prod-hygiene-silicon.log + grep -q '^R16 prod: PROD_HYGIENE=PASS mode=silicon ' build/prod-hygiene-silicon.log + make test-prod-refuses-test-pieces | tee build/prod-refuses.log + grep -q '^R16 prod: PROD_REFUSES_TEST_PIECES=PASS ' build/prod-refuses.log + EMPIRICAL_ALLOW_NO_WIN=1 make test-empirical + receipt rx_empirical_optimizer_receipt.json '"failures": 0,' '"candidate_bound": true,' '"tree_dirty": false,' '"mismatches": 0,' '"OMEGA_EMPIRICAL_OPTIMIZER_PASS": "\(PASS\|CHAIN_PASS_NO_WIN\)"' + PLAN_REUSE_NO_ENERGY=1 make test-plan-reuse + receipt 'rx_plan_reuse_receipt.*.json' '"failures": 0,' '"G3_outcome_and_evidence": "PASS"' '"G4_false_applicability_zero": "PASS"' '"G5_identity": "PASS"' + ;; + # rx-host.yml chip-only-declared and spark-only targets (SKIP on GitHub, never a pass there) + chip:*|spark:*) + t="${step#*:}" + pin physics-src-e95e3ed physics e95e3ed2a86fe4bffe4d954fa94c27dfb5284280 + export PHYSICS_DIR="$PINS/physics-src-e95e3ed" + aienos_pin; argus_pin + make "$t" + ;; + # turing-yield.yml + turing-yield) make test-turing-yield test-turing-energy ;; + # evidence-immutable.yml: reviewed evidence is additions-only. Hosted compares the PR base + # and head; locally the base is origin/main (or AIEN_BASE_REF). + evidence-immutable) + base="${AIEN_BASE_REF:-origin/main}" + obs base_ref "\"$(git rev-parse "$base")\"" + changed="$(git diff --name-status --diff-filter=MDRT "$base...HEAD" -- evidence/)" + if [ -n "$changed" ]; then + echo "These existing evidence files would be changed:"; echo "$changed" + echo "Add a new, content-addressed file instead of rewriting reviewed evidence." + obs evidence_rewrites "$(printf '%s\n' "$changed" | grep -c .)" + exit 1 + fi + obs evidence_rewrites 0 + echo "evidence/: additions only" + ;; + zero-disk-secrets) + echo "Auditing repository for prohibited plaintext secret files..." + if find . -maxdepth 4 -name ".env*" -not -path "*/.git/*" -not -path "*/build/*" | grep -q .; then + echo "::error::Prohibited plaintext .env file found. Use an approved AIEN SecretProvider." + obs env_files_found true; exit 1 + fi + obs env_files_found false + echo "Zero plaintext .env files verified." + ;; + *) echo "run.sh: unknown step '$step'" >&2; exit 2 ;; +esac