diff --git a/.crumb b/.crumb index 81f377ee2..d121d2dad 100644 --- a/.crumb +++ b/.crumb @@ -96,14 +96,14 @@ } ], "children_root": "sha256:e1a8c008214ad5dbc33a3e184d7e882dc56d1d50f9bd14c58f8773992961557e", - "compiled_at": "2026-10-16T19:04:20Z", + "compiled_at": "2026-10-18T21:10:38Z", "compiler": "crumb-compile/1", - "digest": "sha256:32086cfe6b319e0c0229bec39553d1b32f7460aa660ad888d5eb5990522e705a", + "digest": "sha256:be7220db494238bb4c33023d1df17286c35f947336bee5fc2e0405c136ec3e73", "evidence_files": 11127, "evidence_root": "sha256:4528085ec1661c442b64fb5dc8def65067ea2620ff88e42bcf52d58b7642ea6e", - "files": 14109, - "generated_at_commit": "88e24bdd57b27817d030d0ad95f62c3f3eacf426", - "source_tree": "sha256:e01c9caa38757306582443fe69f52cb061c3d27250f8ad0b9f4b4f43b009dc14" + "files": 14100, + "generated_at_commit": "f4a9849fb127f8d2d664dfc56890752ad180c507", + "source_tree": "sha256:21f93defce6c9ba159a4bd31083db787e156dfaa4afb80c3427cf88f732f8258" }, "owner_lane": "", "provenance": { diff --git a/.github/workflows/crumb.yml b/.github/workflows/crumb.yml deleted file mode 100644 index 455b75cad..000000000 --- a/.github/workflows/crumb.yml +++ /dev/null @@ -1,48 +0,0 @@ -name: Crumb compiler - -# RFC-0003 (aien-architecture, docs/CRUMB_PROTOCOL_RFC_0003.md): the repository compiles the -# structural part of its own .crumb files (files, children, evidence, one digest per directory). -# This check refuses a change whose committed crumbs are not exactly what the compiler produces. -# The hand-written fields (purpose, invariants, ...) are never touched by the compiler and a -# missing purpose is not an error here. -# To fix a failure: build the tool from the aien-architecture commit pinned in crumb.lock, -# run `crumb compile .` at the repository root and commit the .crumb files it rewrote. -# Directories listed in .crumbignore (one per line) are left alone with their whole subtree. - -on: - pull_request: - push: - branches: [main] - -permissions: - contents: read - -concurrency: - group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} - cancel-in-progress: ${{ github.event_name == 'pull_request' }} - -jobs: - crumb: - runs-on: ubuntu-latest - timeout-minutes: 10 - steps: - - uses: actions/checkout@v4 - - name: Read pinned crumb tool commit - id: pins - run: | - sha=$(tr -d '[:space:]' < crumb.lock) - test -n "$sha" - echo "crumb=$sha" >> "$GITHUB_OUTPUT" - - name: Checkout pinned aien-architecture (crumb tool source) - uses: actions/checkout@v4 - with: - repository: aien-spark/aien-architecture - ref: ${{ steps.pins.outputs.crumb }} - 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 - cp .crumb-tool-src/tools/crumb/crumb "$RUNNER_TEMP/crumb" - rm -rf .crumb-tool-src - - name: Crumbs must be exactly what the compiler produces now - run: ${RUNNER_TEMP}/crumb verify . diff --git a/.github/workflows/host-suites-2.yml b/.github/workflows/host-suites-2.yml deleted file mode 100644 index e2eeafb38..000000000 --- a/.github/workflows/host-suites-2.yml +++ /dev/null @@ -1,505 +0,0 @@ -name: Host suites 2 - -# Second batch of host-runnable suites (Lane 24, 2026-10-01), the follow-up list -# in host-suites.yml. All jobs run on the AArch64 hosted runner (same -# instruction set as the DGX Spark; several suites execute generated or -# hand-written AArch64 code). The runner is NOT the Spark: nothing here is a -# chip or hardware qualification, and no suite here touches the GB10. -# -# Per-job triggering: the workflow-level `paths` is the union of every job's -# inputs; the `changes` job then diffs the PR against its base and turns on -# only the jobs whose own files changed. Makefile and this workflow file turn on -# every job. A push to main is diffed against the previous tip the same way, -# except that runtime and argus always run on a push to main (Lane 32); -# workflow_dispatch (or a push with no known previous tip) runs everything. -# -# Jobs and the make targets they run (Spark -j1 time, 2026-10-01): -# visor : test-visor (all Visor lanes + language + physics-free build) 25 s -# turing : test-turing test-turing-exp001-a test-turing-exp001-coders 3 min -# test-turing-verify-indep test-turing-qcont test-turing-qrecord -# brownian : test-brownian-tps 4 min, test-brownian-active 1 s -# polyglot : test-polyglot-asm test-polyglot-encoder 1 min -# algebra : test-algebra test-algebra-asan test-realize test-phase-twin -# test-ma-digital-bottom 3.5 min -# path : test-path 30 s; crumbline : test-crumbline 1 s -# runtime : test-r15-instr test-r15-receipt test-r15-preflight test-r15-g15-diag test-r16-inventory -# test-r16-negative test-r16-surface test-r16-qualify-selftest test-allen -# test-r16-negative-mutants 5 min (Spark: 4.3 min) -# argus : test-argus-runtime test-machine-identity-argus -# numeric2 : test-numeric-reduce-cpu test-divsqrt-host 6 s -# tensor : test-tensor (M20 CPU tier, plain + ASan/UBSan + default-build -# no-test-hook nm check) test-tensor-store test-m20-receipt -# test-tensor-mutations -# Pinned dependencies are read from physics.lock, aienos.lock and argus.lock. -# -# Deliberately NOT here: -# test-turing-exp001-eval: environment. Its fail-closed tests run the -# evaluator inside a bubblewrap jail (/usr/bin/bwrap), which the runner does -# not have (79 passed, 4 failed: "bubblewrap not found"). Spark -j1: PASS; -# test-branch-reuse: environment. Its gate requires energy measured lower per -# action from the Spark power counters; the runner has none ("energy not -# measured lower (counters unavailable)", OMEGA_BRANCH_STATE_REUSE=FAIL). -# Spark -j1: PASS (4 min); -# test-turing-cal-blinding: environment. It reads development traces from -# $HOME/aien-data/crumbline, which lives only on the Spark (outside the -# repo). Spark -j1: PASS; -# test-r15-g7-host, test-r15-parity-host, test-r16-authpath: environment. -# They run R13 living episodes that "need both core classes" (Spark X925 + -# A725); the runner has one class (g7: 7/18 checks fail; parity: no episode -# completes, SEQ_SEMANTIC_PARITY=FAIL; authpath: r13 exits 1). Same reason -# rx-host.yml only builds the R13/R14 hosts. Spark -j1: all three PASS. -# rx-host.yml runs R16-G3 checks 1-3 (sources, link map, embedded names) on -# the host and silicon builds and declares every Spark/chip-only run SKIP; -# test-r16-operator-host, test-r16-operator-mutants: environment, same reason. -# They start the production R13 host program and drive it through its -# operator socket; every world runs an R13 episode ("needs both core -# classes", tests/runtime/rx_r13_living.c run()), and the host test holds -# threads of that program under gdb (non-stop). Spark -j1: host 34 s, -# mutants (25) about 5 min, both PASS; test-r16-operator-silicon is a chip target; -# test-polyglot: environment. mk/polyglot.mk builds its -O3 flavor with -# -mcpu=native next to -march=armv8.6-a+...; on the runner (Neoverse N2) gcc -# resolves native to a CPU that conflicts with that -march and -Werror stops -# the build. On the Spark (X925/A725) native resolves to generic armv8-a and -# it passes (Spark -j1: 3.8 min, PASS); -# test-numeric-sweep, test-numeric-e1-exhaustive (too long for CI); -# test-turing-yield, test-turing-energy (already in turing-yield.yml); -# every *-silicon target and test-m5..test-m19 (GB10 chip). - -on: - # Retired from pull requests and pushes on 2026-10-16 (ADR 0033 Decision 11, phase 3): the Spark - # runs these gates (tests/gates/) and the required AIEN Verification check verifies its signed - # bundle. Kept as a manual trigger so a hosted run is still possible when needed. - workflow_dispatch: - -concurrency: - group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} - cancel-in-progress: ${{ github.event_name == 'pull_request' }} - -jobs: - changes: - runs-on: ubuntu-24.04-arm - timeout-minutes: 5 - outputs: - visor: ${{ steps.f.outputs.visor }} - turing: ${{ steps.f.outputs.turing }} - brownian: ${{ steps.f.outputs.brownian }} - polyglot: ${{ steps.f.outputs.polyglot }} - algebra: ${{ steps.f.outputs.algebra }} - path: ${{ steps.f.outputs.path }} - crumbline: ${{ steps.f.outputs.crumbline }} - runtime: ${{ steps.f.outputs.runtime }} - argus: ${{ steps.f.outputs.argus }} - numeric2: ${{ steps.f.outputs.numeric2 }} - tensor: ${{ steps.f.outputs.tensor }} - gpuengine: ${{ steps.f.outputs.gpuengine }} - steps: - - uses: actions/checkout@v4 - with: - ref: ${{ github.event.pull_request.head.sha || github.sha }} - fetch-depth: 0 - - name: Select jobs from the changed files - id: f - env: - EVENT: ${{ github.event_name }} - BASE: ${{ github.event.pull_request.base.sha || github.event.before }} - HEAD: ${{ github.event.pull_request.head.sha || github.sha }} - run: | - set -eu - zero=0000000000000000000000000000000000000000 - if [ "$EVENT" = pull_request ]; then - git diff --name-only "$BASE...$HEAD" > changed.txt - elif [ "$EVENT" = push ] && [ -n "$BASE" ] && [ "$BASE" != "$zero" ] \ - && git cat-file -e "$BASE^{commit}" 2>/dev/null; then - git diff --name-only "$BASE" "$HEAD" > changed.txt - else - # workflow_dispatch, or a push whose previous tip is unknown: run all - echo Makefile > changed.txt - fi - echo "changed files:"; cat changed.txt - all='^(Makefile|\.github/workflows/host-suites-2\.yml)$' - core='^src/(omega_|aarch64_|sha256\.)' - sel() { - if grep -Eq "$all|$2" changed.txt; then v=true; else v=false; fi - # every push to main re-tests the runtime and ARGUS on the merge result - if [ "$EVENT" = push ] && { [ "$1" = runtime ] || [ "$1" = argus ]; }; then v=true; fi - echo "$1=$v" >> "$GITHUB_OUTPUT"; echo "$1=$v" - } - sel visor "$core|^src/(visor|language)/|^tests/(visor|language)/|^mk/(00-visor-core|visor-[^/]*)\.mk$|^tools/omega\.c$|^src/runtime/rx_(aegis|caproot|coherent|generation|world)\.|^aienos\.lock$" - sel turing "^src/(turing|algebra)/|^tests/turing/|^tools/turing_|^mk/turing_(exp001_[a-z]+|qcont|qrecord)\.mk$|^src/(omega_canonical|omega_types|sha256)\.|^data/(crumbline|turing-cal)/|^evidence/TURING_YIELD/|^docs/turing/|^calibration/" - sel brownian "^tests/brownian/|^tools/brownian/|^mk/brownian_(tps|active)\.mk$|^src/turing/ty_prd2?\.|^src/turing/(tc_|ty_math|ty_qcont)|^src/sha256\." - sel polyglot "^src/(polyglot|algebra)/|^tests/polyglot/|^mk/polyglot[^/]*\.mk$|^src/(aarch64_|sha256\.)|^spec/polyglot-0\.md$|^evidence/POLYGLOT/" - sel algebra "^src/(algebra|turing)/|^tests/algebra/|^src/(omega_canonical|omega_types|sha256)\.|^evidence/MIXED_ALGEBRA/" - sel path "^src/path/|^tests/path/|^src/(omega_types|sha256)\." - sel crumbline "$core|^src/crumbline/|^tests/crumbline/|^tools/crumbline_learner\.c$|^data/crumbline/|^tests/(test_omega_[a-z_]+\.c|vc_fixture\.h|genesis_variant/)|^docs/osc/VC-GENESIS-1\.md$" - sel runtime "$core|^src/(runtime|fabric)/|^tests/runtime/|^mk/fabric\.mk$|^tests/(r15_receipt_test\.sh|r16_[a-z_]+/)|^tools/(r15_|r16_|omegatool\.c|allen\.c)|^spec/(r16-|allen\.md)|^docs/r16-|^evidence/(R15|ALLEN)/|^src/allen/|^tests/allen/|^mk/allen\.mk$|^(physics|aienos)\.lock$" - sel argus "^src/runtime/|^tests/runtime/|^tests/bench_rx_argus\.c$|^mk/machine-identity\.mk$|^src/(sha256|omega_evidence)\.|^(physics|aienos|argus)\.lock$" - sel numeric2 "^tests/(test_omega_reduce|test_omega_divsqrt_gb10)\.c$|^tests/numeric_oracle\.h$|^src/(omega_numeric|omega_blackwell_(encoder|codegen|matmul|qmd)|sha256)" - sel tensor "^tools/m20_receipt(_mutations)?\.sh$|^tests/test_m20_receipt\.sh$|^tests/fixtures/m20_receipt/|^src/tensor/|^tests/test_omega_tensor(_store)?\.c$|^tools/tensor_mutations\.sh$|^mk/tensor\.mk$|^src/(omega_numeric|omega_blackwell_(encoder|codegen|matmul|qmd)|sha256)" - sel gpuengine "^src/omega_gpu_(engine|platform)\.|^src/omega_blackwell_(encoder|qmd|realize|codegen|matmul)\.|^src/omega_gpu_(session|serving|matmul_api|attention_api|wait|fmt|platform_linux|cmdlist|mem_cached)\.|^src/sha256\.|^tests/test_omega_(gpu_engine|gpu_engine_compile|gpu_platform|codegen_freestanding|gpu_session_platform|gpu_platform_linux)\.c$|^tests/fake_m16_native\.c$|^physics\.lock$|^tools/gpu_engine_mutations\.sh$|^mk/omega-gpu-engine\.mk$" - - visor: - needs: changes - if: needs.changes.outputs.visor == 'true' - runs-on: ubuntu-24.04-arm - timeout-minutes: 15 - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - name: Read pinned AIENOS authority - id: aienos - run: | - sha=$(awk 'NF && $1 !~ /^#/ {print $1; exit}' aienos.lock) - test -n "$sha" - echo "sha=$sha" >> "$GITHUB_OUTPUT" - - name: Checkout pinned AIENOS authority - uses: actions/checkout@v4 - with: - repository: aien-spark/aienos - ref: ${{ steps.aienos.outputs.sha }} - path: aienos-src - - name: Keep AIENOS checkout out of Omega tree status - run: echo 'aienos-src/' >> .git/info/exclude - - name: Visor suite (semantic, language, verify, evidence, machine, realization, console, world, authority, physics-free build) - env: - AIENOS_R7_DIR: ${{ github.workspace }}/aienos-src - run: make PHYSICS_DIR=/nonexistent PHYSICS_LOCK_CHECK=0 test-visor - - turing: - needs: changes - if: needs.changes.outputs.turing == 'true' - runs-on: ubuntu-24.04-arm - timeout-minutes: 30 - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - name: TURING field and selector (plain + ASan/UBSan) - run: make PHYSICS_DIR=/nonexistent PHYSICS_LOCK_CHECK=0 test-turing - - name: TURING EXP-001 calibration and reference coders - run: make PHYSICS_DIR=/nonexistent PHYSICS_LOCK_CHECK=0 test-turing-exp001-a test-turing-exp001-coders - - name: TURING independent verifier - run: make PHYSICS_DIR=/nonexistent PHYSICS_LOCK_CHECK=0 test-turing-verify-indep - - name: TURING q-continuous coder and records - run: make PHYSICS_DIR=/nonexistent PHYSICS_LOCK_CHECK=0 test-turing-qcont test-turing-qrecord - - brownian: - needs: changes - if: needs.changes.outputs.brownian == 'true' - runs-on: ubuntu-24.04-arm - timeout-minutes: 30 - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - name: Brownian TPS adapter - run: make PHYSICS_DIR=/nonexistent PHYSICS_LOCK_CHECK=0 test-brownian-tps - - name: Brownian active measurement choice (BRW-ACT-DEV0 library) - run: make PHYSICS_DIR=/nonexistent PHYSICS_LOCK_CHECK=0 test-brownian-active - - polyglot: - needs: changes - if: needs.changes.outputs.polyglot == 'true' - runs-on: ubuntu-24.04-arm - timeout-minutes: 30 - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - name: POLYGLOT hand-written AArch64 asm lane - run: make PHYSICS_DIR=/nonexistent PHYSICS_LOCK_CHECK=0 test-polyglot-asm - - name: POLYGLOT encoder lane - run: make PHYSICS_DIR=/nonexistent PHYSICS_LOCK_CHECK=0 test-polyglot-encoder - - algebra: - needs: changes - if: needs.changes.outputs.algebra == 'true' - runs-on: ubuntu-24.04-arm - timeout-minutes: 30 - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - name: Mixed algebra core (plain + ASan/UBSan) - run: make PHYSICS_DIR=/nonexistent PHYSICS_LOCK_CHECK=0 test-algebra test-algebra-asan - - name: MA-2 realizations (dotprod/i8mm/SVE) and selector - run: make PHYSICS_DIR=/nonexistent PHYSICS_LOCK_CHECK=0 test-realize - - name: Phase twin - run: make PHYSICS_DIR=/nonexistent PHYSICS_LOCK_CHECK=0 test-phase-twin - - name: MA DIGITAL_V1 bottom layer - run: make PHYSICS_DIR=/nonexistent PHYSICS_LOCK_CHECK=0 test-ma-digital-bottom - - path: - needs: changes - if: needs.changes.outputs.path == 'true' - runs-on: ubuntu-24.04-arm - timeout-minutes: 15 - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - name: PATH-1 identity, boundary and mutants - run: make PHYSICS_DIR=/nonexistent PHYSICS_LOCK_CHECK=0 test-path - - crumbline: - name: crumbline (${{ matrix.name }}) - needs: changes - if: needs.changes.outputs.crumbline == 'true' - runs-on: ubuntu-24.04-arm - timeout-minutes: 15 - strategy: - fail-fast: false - matrix: - include: - # test-*-genesis depend on test-vcstore / test-resolve in the Makefile, - # so each pair stays together in one make invocation (as before). - - name: learner and library - targets: test-crumbline test-library - - name: vcstore - targets: test-vcstore test-vcstore-genesis - - name: resolve - targets: test-resolve test-resolve-genesis - - name: genesis - targets: test-genesis test-genesis-real - - name: program-ir and vc-bridge - targets: test-program-ir test-vc-bridge - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - name: Crumbline learner conformance vectors (${{ matrix.name }}) - run: make PHYSICS_DIR=/nonexistent PHYSICS_LOCK_CHECK=0 ${{ matrix.targets }} - - runtime: - needs: changes - if: needs.changes.outputs.runtime == 'true' - runs-on: ubuntu-24.04-arm - timeout-minutes: 30 - steps: - - uses: actions/checkout@v4 - with: - ref: ${{ github.event.pull_request.head.sha || github.sha }} - fetch-depth: 0 - - name: Read pinned Physics and AIENOS commits - id: pins - run: | - p=$(tr -d '[:space:]' < physics.lock) - a=$(awk 'NF && $1 !~ /^#/ {print $1; exit}' aienos.lock) - test -n "$p" && test -n "$a" - echo "physics=$p" >> "$GITHUB_OUTPUT" - echo "aienos=$a" >> "$GITHUB_OUTPUT" - - name: Checkout pinned Physics headers - uses: actions/checkout@v4 - with: - repository: aien-spark/physics - ref: ${{ steps.pins.outputs.physics }} - path: physics-src - - name: Checkout pinned AIENOS authority - uses: actions/checkout@v4 - with: - repository: aien-spark/aienos - ref: ${{ steps.pins.outputs.aienos }} - path: aienos-src - - name: Keep dependency checkouts out of Omega tree status - run: printf 'physics-src/\naienos-src/\n' >> .git/info/exclude - - name: R15 instrumentation - if: ${{ !cancelled() }} - env: - PHYSICS_DIR: ${{ github.workspace }}/physics-src - AIENOS_R7_DIR: ${{ github.workspace }}/aienos-src - run: make test-r15-instr - - name: R15 receipt writer (attempt 1 stays a FAIL) - if: ${{ !cancelled() }} - env: - PHYSICS_DIR: ${{ github.workspace }}/physics-src - AIENOS_R7_DIR: ${{ github.workspace }}/aienos-src - run: make test-r15-receipt - - name: R15 preflight, energy-instrument preflight and G15 diagnostics - if: ${{ !cancelled() }} - env: - PHYSICS_DIR: ${{ github.workspace }}/physics-src - AIENOS_R7_DIR: ${{ github.workspace }}/aienos-src - run: make test-r15-preflight test-r15-g15-diag - - name: R16 G2 loop inventory - if: ${{ !cancelled() }} - env: - PHYSICS_DIR: ${{ github.workspace }}/physics-src - AIENOS_R7_DIR: ${{ github.workspace }}/aienos-src - run: make test-r16-inventory - - name: R16 G4 legacy paths refused - if: ${{ !cancelled() }} - env: - PHYSICS_DIR: ${{ github.workspace }}/physics-src - AIENOS_R7_DIR: ${{ github.workspace }}/aienos-src - run: make test-r16-negative - - name: R16 G5 API and build surface - if: ${{ !cancelled() }} - env: - PHYSICS_DIR: ${{ github.workspace }}/physics-src - AIENOS_R7_DIR: ${{ github.workspace }}/aienos-src - run: make test-r16-surface - - name: R16 qualify script self-test (dirty tree refused, NOT_RUN honest, failing check exits non-zero) - if: ${{ !cancelled() }} - run: make test-r16-qualify-selftest - - name: aienos.lock source proof (blobs of the full locked commit; modified, unrelated or other-commit trees refused) - if: ${{ !cancelled() }} - run: make test-aienos-lock-source - - name: ALLEN v0 host gates (identity, restart, memory, model independence, no authority, negative control) - if: ${{ !cancelled() }} - env: - PHYSICS_DIR: ${{ github.workspace }}/physics-src - AIENOS_R7_DIR: ${{ github.workspace }}/aienos-src - run: make test-allen - - # Split out of `runtime` so the 36-mutant sweep runs in parallel with the other R15/R16 steps. - runtime-mutants: - needs: changes - if: needs.changes.outputs.runtime == 'true' - runs-on: ubuntu-24.04-arm - timeout-minutes: 30 - steps: - - uses: actions/checkout@v4 - with: - ref: ${{ github.event.pull_request.head.sha || github.sha }} - fetch-depth: 0 - - name: Read pinned Physics and AIENOS commits - id: pins - run: | - p=$(tr -d '[:space:]' < physics.lock) - a=$(awk 'NF && $1 !~ /^#/ {print $1; exit}' aienos.lock) - test -n "$p" && test -n "$a" - echo "physics=$p" >> "$GITHUB_OUTPUT" - echo "aienos=$a" >> "$GITHUB_OUTPUT" - - name: Checkout pinned Physics headers - uses: actions/checkout@v4 - with: - repository: aien-spark/physics - ref: ${{ steps.pins.outputs.physics }} - path: physics-src - - name: Checkout pinned AIENOS authority - uses: actions/checkout@v4 - with: - repository: aien-spark/aienos - ref: ${{ steps.pins.outputs.aienos }} - path: aienos-src - - name: Keep dependency checkouts out of Omega tree status - run: printf 'physics-src/\naienos-src/\n' >> .git/info/exclude - - name: R16 G4 every guard load-bearing (36 mutants, each must turn the G4 test red) - env: - PHYSICS_DIR: ${{ github.workspace }}/physics-src - AIENOS_R7_DIR: ${{ github.workspace }}/aienos-src - run: make test-r16-negative-mutants - - argus: - needs: changes - if: needs.changes.outputs.argus == 'true' - runs-on: ubuntu-24.04-arm - timeout-minutes: 15 - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - name: Read pinned Physics, AIENOS and ARGUS commits - id: pins - run: | - p=$(tr -d '[:space:]' < physics.lock) - a=$(awk 'NF && $1 !~ /^#/ {print $1; exit}' aienos.lock) - g=$(awk 'NF && $1 !~ /^#/ {print $1; exit}' argus.lock) - test -n "$p" && test -n "$a" && test -n "$g" - echo "physics=$p" >> "$GITHUB_OUTPUT" - echo "aienos=$a" >> "$GITHUB_OUTPUT" - echo "argus=$g" >> "$GITHUB_OUTPUT" - - name: Checkout pinned Physics headers - uses: actions/checkout@v4 - with: - repository: aien-spark/physics - ref: ${{ steps.pins.outputs.physics }} - path: physics-src - - name: Checkout pinned AIENOS authority - uses: actions/checkout@v4 - with: - repository: aien-spark/aienos - ref: ${{ steps.pins.outputs.aienos }} - path: aienos-src - - name: Checkout pinned ARGUS sources (aienos native/argus) - uses: actions/checkout@v4 - with: - repository: aien-spark/aienos - ref: ${{ steps.pins.outputs.argus }} - path: aienos-argus - - name: Keep dependency checkouts out of Omega tree status - run: printf 'physics-src/\naienos-src/\naienos-argus/\n' >> .git/info/exclude - - name: ARGUS runtime integration (R7/R8/R9 into the real argus_core) and machine-id stamping - env: - PHYSICS_DIR: ${{ github.workspace }}/physics-src - AIENOS_R7_DIR: ${{ github.workspace }}/aienos-src - ARGUS_REPO: ${{ github.workspace }}/aienos-argus - ARGUS_STREAMS: ${{ runner.temp }}/argus-streams - run: make test-argus-runtime test-machine-identity-argus - - numeric2: - needs: changes - if: needs.changes.outputs.numeric2 == 'true' - runs-on: ubuntu-24.04-arm - timeout-minutes: 15 - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - name: Reduce CPU tier and GB10 div/sqrt sequences on the host (CPU only) - run: make PHYSICS_DIR=/nonexistent PHYSICS_LOCK_CHECK=0 test-numeric-reduce-cpu test-divsqrt-host - - gpu-engine: - needs: changes - if: needs.changes.outputs.gpuengine == 'true' - runs-on: ubuntu-24.04-arm - timeout-minutes: 15 - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - name: GPU engine core against the fake backend (host, no device) - run: make PHYSICS_DIR=/nonexistent PHYSICS_LOCK_CHECK=0 test-gpu-engine-compile test-gpu-engine - - name: Freestanding GPU link target and contract tests (native v1 P07 cut A) - run: make PHYSICS_DIR=/nonexistent PHYSICS_LOCK_CHECK=0 test-gpu-engine-freestanding - - name: Freestanding code generation, hosted vs freestanding byte-identical (native v1 P07 cut A.2) - run: make PHYSICS_DIR=/nonexistent PHYSICS_LOCK_CHECK=0 test-codegen-freestanding - - name: Engine mutants (each protection removed once must be caught) - run: make PHYSICS_DIR=/nonexistent PHYSICS_LOCK_CHECK=0 test-gpu-engine-mutants - - name: Portable GPU session over OmegaGpuPlatform, freestanding closure (native v1 P07 cut C session part) - run: make PHYSICS_DIR=/nonexistent PHYSICS_LOCK_CHECK=0 build/test_omega_gpu_session_platform test-gpu-session-mutants && ./build/test_omega_gpu_session_platform - - name: Read pinned Physics commit - id: pins - run: | - p=$(tr -d '[:space:]' < physics.lock) - test -n "$p" - echo "physics=$p" >> "$GITHUB_OUTPUT" - - name: Checkout pinned Physics headers (Linux reference platform only) - uses: actions/checkout@v4 - with: - repository: aien-spark/physics - ref: ${{ steps.pins.outputs.physics }} - path: physics-src - - name: Keep the Physics checkout out of Omega tree status - run: printf 'physics-src/\n' >> .git/info/exclude - - name: Linux reference platform (reference only, hosted, fake driver) and full session suite - run: make PHYSICS_DIR=$GITHUB_WORKSPACE/physics-src test-gpu-session-platform - - tensor: - needs: changes - if: needs.changes.outputs.tensor == 'true' - runs-on: ubuntu-24.04-arm - timeout-minutes: 15 - steps: - - uses: actions/checkout@v4 - with: - ref: ${{ github.event.pull_request.head.sha || github.sha }} - fetch-depth: 0 - - name: M20 OMEGA_TENSOR CPU tier (plain + ASan/UBSan, test hook absent from default build; CPU only) - run: make PHYSICS_DIR=/nonexistent PHYSICS_LOCK_CHECK=0 test-tensor - - name: M20 crash-safe storage lifetime (plain + ASan/UBSan; temp dirs only, CPU only) - run: make PHYSICS_DIR=/nonexistent PHYSICS_LOCK_CHECK=0 test-tensor-store - - name: M20 receipt writer tests (fixtures only; shell + git + jq, no device) - run: make PHYSICS_DIR=/nonexistent PHYSICS_LOCK_CHECK=0 test-m20-receipt - - name: M20 OMEGA_TENSOR mutation sweep (each rule must turn the tests red) - run: make PHYSICS_DIR=/nonexistent PHYSICS_LOCK_CHECK=0 test-tensor-mutations diff --git a/.github/workflows/host-suites-3.yml b/.github/workflows/host-suites-3.yml deleted file mode 100644 index d81a6b0b8..000000000 --- a/.github/workflows/host-suites-3.yml +++ /dev/null @@ -1,130 +0,0 @@ -name: Host suites 3 - -# Third batch of host-runnable suites (Lane 34, 2026-10-01): the `make test-*` -# targets that no workflow ran. All real jobs run on the AArch64 hosted runner -# (same instruction set as the DGX Spark). The runner is NOT the Spark: nothing -# here is a chip or hardware qualification. -# -# Coverage of this file: -# numeric-transc test-numeric-transc (sampled bound check + 10 mutants) -# numeric-transc-digest test-numeric-transc-digest (full 2^32 domain, 9 ops, -# against the frozen digests; long, own job) -# language test-language (Omega language V0 golden) -# milestones test-m6 .. test-m15 (omegatool gates + reference -# demonstrations; models and host reference, no chip) -# Listed as skipped jobs so GitHub shows them skipped, never green: -# test-numeric-transc-full (2^32 inputs against the binary128 oracle, twice; -# too long for a hosted runner, run detached on the Spark) -# test-m17 (its DEVICE_OUTPUT gate needs physical SM execution on the GB10) -# NOT WIRED, no such Makefile target on main: test-tensor, test-m16. - -on: - # Retired from pull requests and pushes on 2026-10-16 (ADR 0033 Decision 11, phase 3): the Spark - # runs these gates (tests/gates/) and the required AIEN Verification check verifies its signed - # bundle. Kept as a manual trigger so a hosted run is still possible when needed. - workflow_dispatch: - -concurrency: - group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} - cancel-in-progress: ${{ github.event_name == 'pull_request' }} - -jobs: - numeric-lifecycle: - # Simulated driver only. No device-parity or hardware qualification claim. - runs-on: ubuntu-24.04-arm - timeout-minutes: 5 - steps: - - uses: actions/checkout@v4 - - name: Numeric completion ownership, ASan and UBSan - run: make PHYSICS_DIR=/nonexistent PHYSICS_LOCK_CHECK=0 test-numeric-lifecycle - - numeric-transc: - runs-on: ubuntu-24.04-arm - timeout-minutes: 30 - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - name: FP32 transcendentals, sampled bound check and mutant kill (E1 WP-B) - run: | - set -o pipefail - make PHYSICS_DIR=/nonexistent PHYSICS_LOCK_CHECK=0 test-numeric-transc | tee transc.log - echo "mutants killed: $(grep -c '^mutant [0-9]* killed' transc.log)" - test "$(grep -c '^mutant [0-9]* killed' transc.log)" -eq 10 - ! grep -q '^FAIL' transc.log - - numeric-transc-digest: - runs-on: ubuntu-24.04-arm - timeout-minutes: 120 - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - name: FP32 transcendentals, full-domain digests against the frozen digests - run: | - set -o pipefail - make PHYSICS_DIR=/nonexistent PHYSICS_LOCK_CHECK=0 test-numeric-transc-digest | tee digest.log - echo "frozen digests matched: $(grep -c 'matches frozen digest' digest.log)" - test "$(grep -c 'matches frozen digest' digest.log)" -ge 1 - ! grep -q 'FAIL' digest.log - - numeric-transc-full: - name: "test-numeric-transc-full (SKIP: 2^32 inputs x 9 ops against the oracle, twice; too long for a hosted runner)" - if: ${{ false }} - runs-on: ubuntu-24.04-arm - steps: - - run: echo skipped - - language: - runs-on: ubuntu-24.04-arm - timeout-minutes: 15 - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - name: Omega language V0 golden - run: make PHYSICS_DIR=/nonexistent PHYSICS_LOCK_CHECK=0 test-language - - milestones: - # omegatool links Physics headers and sources, so the pinned Physics commit - # (physics.lock) is checked out and the lock check stays on. - name: test-${{ matrix.m }} - runs-on: ubuntu-24.04-arm - timeout-minutes: 20 - strategy: - fail-fast: false - matrix: - m: [m6, m7, m8, m9, m10, m11, m12, m13, m14, m15] - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - name: Read pinned Physics - id: pins - run: | - sha=$(tr -d '[:space:]' < physics.lock) - test -n "$sha" - echo "physics=$sha" >> "$GITHUB_OUTPUT" - - name: Checkout pinned Physics - uses: actions/checkout@v4 - with: - repository: aien-spark/physics - ref: ${{ steps.pins.outputs.physics }} - path: physics-src - - name: Keep Physics checkout out of Omega tree status - run: echo 'physics-src/' >> .git/info/exclude - - name: make test-${{ matrix.m }} - env: - PHYSICS_DIR: ${{ github.workspace }}/physics-src - run: | - set -o pipefail - make test-${{ matrix.m }} | tee gate.log - grep -E 'TOTAL GATES: [0-9]+ \| PASSED: [0-9]+ \| FAILED: 0' gate.log - ! grep -E 'FAILED: [1-9]' gate.log - - m17: - name: "test-m17 (SKIP: needs GB10 chip, physical SM execution gate)" - if: ${{ false }} - runs-on: ubuntu-24.04-arm - steps: - - run: echo skipped diff --git a/.github/workflows/host-suites.yml b/.github/workflows/host-suites.yml deleted file mode 100644 index ca0712761..000000000 --- a/.github/workflows/host-suites.yml +++ /dev/null @@ -1,311 +0,0 @@ -name: Host suites - -# Host-runnable suites that rx-host.yml does not run, each triggered by its own -# files. All jobs run on the AArch64 hosted runner (same instruction set as the -# DGX Spark; searchtrace executes generated AArch64 code). The runner is NOT the -# Spark: nothing here is a chip or hardware qualification. -# -# Coverage map of `make test-*` targets (Lane 20 audit, 2026-10-01): -# rx-host.yml host-reference : r3 r7 r8 r9 r12 action-graph state-projection -# capability-query capability-graph skillroute-compose semantic-comm -# cognitive-routing sem-incremental cortex jspace-prod composition -# composition-attach-asan composition-gate fabric fabric-living -# machine-identity effect-cap64 workflow-fusion typed-results costmodel -# rx-host.yml omega-faculty-arm : program-id program-realize r10 r11 -# empirical (EMPIRICAL_ALLOW_NO_WIN=1: single-core runner) plan-reuse -# (+ builds only of the R13/R14 living hosts; R16-G3 checks 1-3 on the -# host and silicon builds: test-r16-authpath-linkmap{,-silicon}) -# rx-host.yml chip-only-declared : prints SKIP for every Spark/chip-only run -# turing-yield.yml : turing-yield turing-energy -# host-suites-3.yml : numeric-transc numeric-transc-digest language test-m6..m15 -# (test-numeric-transc-full and test-m17 are listed there as skipped jobs; -# test-tensor and test-m16 have no Makefile target on main: NOT wired) -# this file : searchtrace, estimation est-tools estimation-v3 est3c-tools, -# ans (test-inertial-alignment: ANS Inertial Alignment v1, ARCH-0032), -# numeric-cpu numeric-qualify, train (M22 substrate, Lane 21), -# compiler (OSC-1, own path guard), -# one-layer-acceptance (test-one-layer-acceptance: stage-1 harness -# selftest on the public sample corpus; omega #443), -# exp445-tools (test-omega-emit test-exp445: stage-2 driver, scorer and -# mutants on dev tasks with a fake server; omega #445), -# omegese-oracle (test-omegese: the Omegese legal-word oracle, soundness -# walks and mutants on the -O2 build and under ASan and UBSan; omega #464), -# chip-tool-selftests (test-m19r-qualify test-gate14-combine -# test-window-lane-guard test-unwritten-trap-host test-ldst-host: the -# host-only self-tests of chip tooling; omega #425) -# -# Deliberately NOT on GitHub (no GB10, no resident seat, no quiet flag here): -# test-composition-gate-gpu, test-r12-silicon, test-r13-silicon, -# test-r14-silicon, test-r15-parity-silicon, test-r16-authpath-silicon, -# test-m5, test-m16..test-m19 (chip milestones; test-m17 is a skipped job in -# host-suites-3.yml), test-r13-host / test-r14-host -# (need both GB10 core classes; rx-host builds them only). -# Not yet wired (host-only, follow-up): test-numeric-sweep, -# test-numeric-e1-exhaustive (2^32 inputs per op, too long), visor-*, -# turing-* other than yield/energy, polyglot*, algebra, realize, phase-twin, -# ma-digital-bottom, path, crumbline, brownian-tps, argus-runtime, -# branch-reuse, r15-*-host, r16-inventory/negative/surface. - -on: - # Retired from pull requests and pushes on 2026-10-16 (ADR 0033 Decision 11, phase 3): the Spark - # runs these gates (tests/gates/) and the required AIEN Verification check verifies its signed - # bundle. Kept as a manual trigger so a hosted run is still possible when needed. - workflow_dispatch: - -concurrency: - group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} - cancel-in-progress: ${{ github.event_name == 'pull_request' }} - -jobs: - checker2: - # Independent checker2 (src/checker2), LRAT gate and receipts (spec/one-layer-receipts.md): - # plain + ASan/UBSan unit tests, black-box differential against oscc, 20-program LRAT gate, - # receipt signature tests, and the GUARD-line mutant negative controls. - runs-on: ubuntu-24.04-arm - timeout-minutes: 20 - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - name: Changed-path guard (checker2 inputs only) - id: guard - run: | - if [ "${{ github.event_name }}" != "pull_request" ]; then echo "run=true" >> "$GITHUB_OUTPUT"; exit 0; fi - CHANGED=$(git diff --name-only HEAD^1 HEAD) - if echo "$CHANGED" | grep -Eq '^(src/checker2/|tests/checker2/|mk/checker2\.mk$|spec/one-layer-receipts\.md$|src/compiler/|tests/compiler/|mk/compiler\.mk$|src/sha256\.|src/searchtrace/sig/|\.github/workflows/host-suites\.yml$)'; then - echo "run=true" >> "$GITHUB_OUTPUT" - else - echo "run=false" >> "$GITHUB_OUTPUT"; echo "no checker2 inputs changed; skipping" - fi - - name: checker2 unit, differential, LRAT gate, receipts, mutants (plain + ASan/UBSan) - if: steps.guard.outputs.run == 'true' - run: make PHYSICS_DIR=/nonexistent PHYSICS_LOCK_CHECK=0 test-checker2 - - searchtrace: - runs-on: ubuntu-24.04-arm - timeout-minutes: 15 - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - name: Search-trace corpus, G3 holdout format and signature (M23), plain + ASan/UBSan - run: make PHYSICS_DIR=/nonexistent PHYSICS_LOCK_CHECK=0 test-searchtrace - - estimation: - name: estimation (${{ matrix.name }}) - runs-on: ubuntu-24.04-arm - timeout-minutes: 15 - strategy: - fail-fast: false - matrix: - include: - - name: EST-0/EST-1 types, filter, reference (plain + ASan/UBSan, purity) - target: test-estimation - - name: EST-2/EST-3 replay, fit and evaluation tools (synthetic + run A data) - target: test-est-tools - - name: ESTIMATION-2 v3 predictive layer - target: test-estimation-v3 - - name: EST-3c v3 tools (synthetic data; no sealed run) - target: test-est3c-tools - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - name: ${{ matrix.name }} - run: make PHYSICS_DIR=/nonexistent PHYSICS_LOCK_CHECK=0 ${{ matrix.target }} - - ans: - runs-on: ubuntu-24.04-arm - timeout-minutes: 15 - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - name: ANS Inertial Alignment v1 (plain + ASan/UBSan, purity) - run: make PHYSICS_DIR=/nonexistent PHYSICS_LOCK_CHECK=0 test-inertial-alignment - - numeric-cpu: - runs-on: ubuntu-24.04-arm - timeout-minutes: 15 - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - name: Gate 5 CPU tier (only the declared chip-only IDs may SKIP) - run: make PHYSICS_DIR=/nonexistent PHYSICS_LOCK_CHECK=0 test-numeric-cpu - - name: Gate 5 qualifier and receipt writer (host-only, fake descriptors) - run: make PHYSICS_DIR=/nonexistent PHYSICS_LOCK_CHECK=0 test-numeric-qualify - - name: E1 closure combiner (host-only, synthetic constituents, every hostile mutant refused) - run: make PHYSICS_DIR=/nonexistent PHYSICS_LOCK_CHECK=0 test-e1-combine - - name: Chipwait campaign runner (host-only, stub qualifier, no GPU) - run: make PHYSICS_DIR=/nonexistent PHYSICS_LOCK_CHECK=0 test-chipwait-campaign - - name: GPU completion wait primitive (host-only, fake memory and clock, mutants must die) - run: make PHYSICS_DIR=/nonexistent PHYSICS_LOCK_CHECK=0 test-gpu-wait - - name: GPU completion wait real-code mutants (each flagged build of the real code must fail) - run: make PHYSICS_DIR=/nonexistent PHYSICS_LOCK_CHECK=0 test-gpu-wait-mutants - - name: GPU code buffer prefetch tail (host-only, NO_TAIL mutant must die, source scan) - run: make PHYSICS_DIR=/nonexistent PHYSICS_LOCK_CHECK=0 test-gpu-code-alloc - - train: - runs-on: ubuntu-24.04-arm - timeout-minutes: 15 - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - name: M22 substrate (generation store, crash matrix, provenance, SGD), plain + ASan/UBSan - run: make PHYSICS_DIR=/nonexistent PHYSICS_LOCK_CHECK=0 test-train - - compiler: - # OSC-1 compiler slice (docs/osc/OSC-1-DESIGN.md) and the OSC-0B II.11 model. - # Runs only when its own files (or this workflow / the shared sha256) change. - runs-on: ubuntu-24.04-arm - timeout-minutes: 15 - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - name: Changed-path guard (compiler files only) - id: guard - run: | - if [ "${{ github.event_name }}" != "pull_request" ]; then echo "run=true" >> "$GITHUB_OUTPUT"; echo "full=true" >> "$GITHUB_OUTPUT"; exit 0; fi - CHANGED=$(git diff --name-only HEAD^1 HEAD) - if echo "$CHANGED" | grep -Eq '^(src/compiler/|tests/compiler/|mk/compiler\.mk$|src/sha256\.|src/aarch64_|\.github/workflows/host-suites\.yml$)'; then - echo "run=true" >> "$GITHUB_OUTPUT" - else - echo "run=false" >> "$GITHUB_OUTPUT"; echo "no OSC compiler files changed; skipping" - fi - # OSC-3 item 1: the full suite runs when the compiler or the legacy writer itself changes - if echo "$CHANGED" | grep -Eq '^(src/compiler/|src/aarch64_)'; then - echo "full=true" >> "$GITHUB_OUTPUT" - else - echo "full=false" >> "$GITHUB_OUTPUT" - fi - - name: OSC compiler quick suite (every compiler-path change; smoke counts, < 60 s) - if: steps.guard.outputs.run == 'true' - run: make PHYSICS_DIR=/nonexistent PHYSICS_LOCK_CHECK=0 test-compiler-quick - - name: OSC-0B model sweep, back end, compiler golden/negative/model agreement, determinism, legacy writer (full, plain + ASan/UBSan) - if: steps.guard.outputs.run == 'true' && steps.guard.outputs.full == 'true' - run: make PHYSICS_DIR=/nonexistent PHYSICS_LOCK_CHECK=0 test-compiler-full - - physics0: - # PD-0 hidden-equation benchmark substrate (docs/physics0/README.md): G0 self-test, - # G5 isolation, G1 oracle calibration, mutant check, Omega-language differential. - # Runs only when its own files (or this workflow / the shared sha256 / the OSC - # compiler the differential test links) change. - runs-on: ubuntu-24.04-arm - timeout-minutes: 15 - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - name: Changed-path guard (physics0 files only) - id: guard - run: | - if [ "${{ github.event_name }}" != "pull_request" ]; then echo "run=true" >> "$GITHUB_OUTPUT"; exit 0; fi - CHANGED=$(git diff --name-only HEAD^1 HEAD) - if echo "$CHANGED" | grep -Eq '^(src/physics0/|tests/physics0/|mk/physics0\.mk$|src/compiler/|src/sha256\.|src/turing/history_selector\.c$|\.github/workflows/host-suites\.yml$)'; then - echo "run=true" >> "$GITHUB_OUTPUT" - else - echo "run=false" >> "$GITHUB_OUTPUT"; echo "no physics0 files changed; skipping" - fi - - name: PD-0 substrate gates (plain + ASan/UBSan; V3 breach rates are recorded, not gated) - if: steps.guard.outputs.run == 'true' - run: make PHYSICS_DIR=/nonexistent PHYSICS_LOCK_CHECK=0 physics0-test - - one-layer-acceptance: - # One-layer stage 1 hostile acceptance harness (omega#443): selftest on the PUBLIC sample - # corpus (verdicts, receipts, isolation probes with negative controls, replays, mutants). - # Needs Landlock + seccomp on the runner kernel; the harness fails closed without them. - runs-on: ubuntu-24.04-arm - timeout-minutes: 15 - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - name: Changed-path guard (one-layer acceptance files only) - id: guard - run: | - if [ "${{ github.event_name }}" != "pull_request" ]; then echo "run=true" >> "$GITHUB_OUTPUT"; exit 0; fi - CHANGED=$(git diff --name-only HEAD^1 HEAD) - if echo "$CHANGED" | grep -Eq '^(tests/one_layer/|mk/one-layer-acceptance\.mk$|evidence/ONE-LAYER-1/|src/compiler/|src/omega_program|src/omega_exec|src/omega_realize|src/aarch64_|src/sha256\.|\.github/workflows/host-suites\.yml$)'; then - echo "run=true" >> "$GITHUB_OUTPUT" - else - echo "run=false" >> "$GITHUB_OUTPUT"; echo "no one-layer acceptance files changed; skipping" - fi - - name: Kernel sandbox support (Landlock in the LSM list) - if: steps.guard.outputs.run == 'true' - run: cat /sys/kernel/security/lsm || true - - name: Stage-1 acceptance harness selftest (sample corpus) - if: steps.guard.outputs.run == 'true' - run: make PHYSICS_DIR=/nonexistent PHYSICS_LOCK_CHECK=0 test-one-layer-acceptance - - exp445-tools: - # One-layer stage 2 (omega#445): omega_emit and the exp445 experiment driver, scorer and their - # mutants, against a fake local server on dev tasks only (no model, no GPU, no held-out data). - runs-on: ubuntu-24.04-arm - timeout-minutes: 20 - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - name: Changed-path guard (stage-2 tools only) - id: guard - run: | - if [ "${{ github.event_name }}" != "pull_request" ]; then echo "run=true" >> "$GITHUB_OUTPUT"; exit 0; fi - CHANGED=$(git diff --name-only HEAD^1 HEAD) - if echo "$CHANGED" | grep -Eq '^(tools/omega_emit/|tools/exp445/|tools/omegese/|mk/omega-emit\.mk$|mk/omegese\.mk$|mk/one-layer-acceptance\.mk$|tests/one_layer/|docs/one_layer/EXP445_PROTOCOL\.md$|src/compiler/|src/checker2/|src/sha256\.|\.github/workflows/host-suites\.yml$)'; then - echo "run=true" >> "$GITHUB_OUTPUT" - else - echo "run=false" >> "$GITHUB_OUTPUT"; echo "no stage-2 tool files changed; skipping" - fi - - name: Tools the driver needs (jq, curl, flock) - if: steps.guard.outputs.run == 'true' - run: command -v jq && command -v curl && command -v flock - - name: omega_emit and exp445 driver self-tests (dev tasks, fake server) - if: steps.guard.outputs.run == 'true' - run: make PHYSICS_DIR=/nonexistent PHYSICS_LOCK_CHECK=0 test-omega-emit test-exp445 - - omegese-oracle: - # Omegese (omega#464): the legal-word oracle `omegese next`, `complete` and `emit`, its soundness - # walks through omega_emit and checker2, and its mutants, on the -O2 build and on an ASan and - # UBSan build. Dev programs only (no model, no GPU, no held-out data). - runs-on: ubuntu-24.04-arm - timeout-minutes: 30 - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - name: Changed-path guard (Omegese and its downstream checks) - id: guard - run: | - if [ "${{ github.event_name }}" != "pull_request" ]; then echo "run=true" >> "$GITHUB_OUTPUT"; exit 0; fi - CHANGED=$(git diff --name-only HEAD^1 HEAD) - if echo "$CHANGED" | grep -Eq '^(tools/omegese/|tests/one_layer/omegese/|tools/omega_emit/|mk/omegese\.mk$|mk/checker2\.mk$|mk/omega-emit\.mk$|docs/one_layer/OMEGESE\.md$|src/compiler/|src/checker2/|src/sha256\.|\.github/workflows/host-suites\.yml$)'; then - echo "run=true" >> "$GITHUB_OUTPUT" - else - echo "run=false" >> "$GITHUB_OUTPUT"; echo "no Omegese files changed; skipping" - fi - - name: Omegese oracle self-tests (-O2, then ASan and UBSan) - if: steps.guard.outputs.run == 'true' - run: make PHYSICS_DIR=/nonexistent PHYSICS_LOCK_CHECK=0 test-omegese - - chip-tool-selftests: - # Host-only self-tests of chip tooling that previously ran nowhere in CI - # (omega #425): stub qualifier, synthetic receipts, CPU references. No GPU. - runs-on: ubuntu-24.04-arm - timeout-minutes: 15 - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - name: M19R qualifier (candidate binding, immutable emission, stubbed qualification) - run: make PHYSICS_DIR=/nonexistent PHYSICS_LOCK_CHECK=0 test-m19r-qualify - - name: Gate 14 combiner (host-only, hostile inputs refused) - run: make PHYSICS_DIR=/nonexistent PHYSICS_LOCK_CHECK=0 test-gate14-combine - - name: Window lane guard (an unarchived receipt blocks the next lane) - run: make PHYSICS_DIR=/nonexistent PHYSICS_LOCK_CHECK=0 test-window-lane-guard - - name: Unwritten-register trap (host-only) - run: make PHYSICS_DIR=/nonexistent PHYSICS_LOCK_CHECK=0 test-unwritten-trap-host - - name: E1 row 2 global load/store tables (host-only, no device) - run: make PHYSICS_DIR=/nonexistent PHYSICS_LOCK_CHECK=0 test-ldst-host diff --git a/.github/workflows/pr-smoke.yml b/.github/workflows/pr-smoke.yml deleted file mode 100644 index 8e5c8f91c..000000000 --- a/.github/workflows/pr-smoke.yml +++ /dev/null @@ -1,68 +0,0 @@ -name: Omega smoke - -# Always-on check (Lane 34, 2026-10-01): NO path filter, so it runs on every PR -# and can be a required status check under branch protection. Every other omega -# workflow is path-filtered and would block unrelated PRs if required. -# Cheap (a few minutes on the AArch64 hosted runner, NOT the Spark; nothing here -# is a chip qualification): build omegatool against the pinned Physics, run the -# base gates (make test), the language V0 golden suite and the E1 FP32 -# transcendental sampled check with its mutant kill. -# On pull_request actions/checkout uses refs/pull/N/merge: the merged result is tested. - -on: - # Retired from pull requests and pushes on 2026-10-16 (ADR 0033 Decision 11, phase 3): the Spark - # runs these gates (tests/gates/) and the required AIEN Verification check verifies its signed - # bundle. Kept as a manual trigger so a hosted run is still possible when needed. - workflow_dispatch: - -permissions: - contents: read - -concurrency: - group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} - cancel-in-progress: ${{ github.event_name == 'pull_request' }} - -jobs: - smoke: - name: omega-smoke - runs-on: ubuntu-24.04-arm - timeout-minutes: 15 - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - name: Read pinned Physics - id: pins - run: | - sha=$(tr -d '[:space:]' < physics.lock) - test -n "$sha" - echo "physics=$sha" >> "$GITHUB_OUTPUT" - - name: Checkout pinned Physics - uses: actions/checkout@v4 - with: - repository: aien-spark/physics - ref: ${{ steps.pins.outputs.physics }} - path: physics-src - - name: Keep Physics checkout out of Omega tree status - run: echo 'physics-src/' >> .git/info/exclude - - name: Build and base gates (make test) - env: - PHYSICS_DIR: ${{ github.workspace }}/physics-src - run: | - set -o pipefail - make test | tee base.log - grep -E 'TOTAL GATES: ([0-9]+) \| PASSED: \1 \| FAILED: 0' base.log - ! grep -qE 'FAILED: [1-9]|\[FAIL\]|\(FAIL\)' base.log - - name: Language V0 golden - run: | - set -o pipefail - make PHYSICS_DIR=/nonexistent PHYSICS_LOCK_CHECK=0 test-language | tee lang.log - grep -E '^PASS ([0-9]+)/\1$' lang.log - ! grep -q '^FAIL' lang.log - - name: FP32 transcendentals, sampled check and mutant kill - run: | - set -o pipefail - make PHYSICS_DIR=/nonexistent PHYSICS_LOCK_CHECK=0 test-numeric-transc | tee transc.log - test "$(grep -cE '^mutant [0-9]+ killed' transc.log)" -eq 10 - grep -qE '^test-numeric-transc: PASS \(all 10 mutants killed\)' transc.log - ! grep -q '^FAIL' transc.log diff --git a/.github/workflows/reservoir.yml b/.github/workflows/reservoir.yml deleted file mode 100644 index 3e81c0b74..000000000 --- a/.github/workflows/reservoir.yml +++ /dev/null @@ -1,59 +0,0 @@ -name: Omega reservoir - -# omega#440 ionic-droplet reservoir (docs/reservoir/RESERVOIR_REFERENCE.md). -# Path-filtered, physics-free, CPU only (nothing here opens a GPU): the Gate 1 -# simulator and readout tests, the Gate 2 archive-reader tests on the two -# committed CC-BY fixtures (plain and ASan/UBSan), the build of the Gate 2 -# tool and its config-drift check. The Gate 2 comparison itself needs the -# authors' archive (Zenodo 10.5281/zenodo.17296788) and runs locally -# (make qualify-reservoir RES_ARCHIVE=...); its receipts are under -# evidence/RESERVOIR/. -# On pull_request actions/checkout uses refs/pull/N/merge: the merged result is tested. - -on: - pull_request: - paths: - - 'src/reservoir/**' - - 'tests/reservoir/**' - - 'tools/reservoir/**' - - 'mk/reservoir.mk' - - 'docs/reservoir/gate2_config.json' - - 'src/omega_numeric*' - - 'src/omega_blackwell_*' - - 'src/sha256.*' - - '.github/workflows/reservoir.yml' - push: - branches: [main] - paths: - - 'src/reservoir/**' - - 'tests/reservoir/**' - - 'tools/reservoir/**' - - 'mk/reservoir.mk' - - 'docs/reservoir/gate2_config.json' - - 'src/omega_numeric*' - - 'src/omega_blackwell_*' - - 'src/sha256.*' - - '.github/workflows/reservoir.yml' - workflow_dispatch: - -permissions: - contents: read - -concurrency: - group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} - cancel-in-progress: ${{ github.event_name == 'pull_request' }} - -jobs: - reservoir: - name: reservoir-gates - runs-on: ubuntu-24.04-arm - timeout-minutes: 15 - steps: - - uses: actions/checkout@v4 - - name: Reservoir tests (Gate 1, Gate 2 reader, Gate 2 config) - run: | - set -o pipefail - make PHYSICS_DIR=/nonexistent PHYSICS_LOCK_CHECK=0 test-reservoir | tee res.log - test "$(grep -cE '^test_reservoir: [0-9]+ checks, 0 failed' res.log)" -eq 2 - test "$(grep -cE '^test_res_mat: [0-9]+ checks, 0 failed' res.log)" -eq 2 - grep -q 'Gate 2 config unchanged' res.log diff --git a/.github/workflows/rx-host.yml b/.github/workflows/rx-host.yml deleted file mode 100644 index 6456693a0..000000000 --- a/.github/workflows/rx-host.yml +++ /dev/null @@ -1,446 +0,0 @@ -name: Resident Reaction Host - -on: - # Retired from pull requests and pushes on 2026-10-16 (ADR 0033 Decision 11, phase 3): the Spark - # runs these gates (tests/gates/) and the required AIEN Verification check verifies its signed - # bundle. Kept as a manual trigger so a hosted run is still possible when needed. - workflow_dispatch: - -concurrency: - group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} - cancel-in-progress: ${{ github.event_name == 'pull_request' }} - -jobs: - host-reference: - runs-on: ubuntu-latest - timeout-minutes: 10 - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - name: Checkout pinned Physics headers - uses: actions/checkout@v4 - with: - repository: aien-spark/physics - ref: 6d7cf0d4d8eb2cda7b512100ff6058e25dbb3ddf - path: physics-src - - name: Keep Physics checkout out of Omega tree status - run: echo 'physics-src/' >> .git/info/exclude - - name: Read pinned AIENOS authority - id: aienos - run: | - sha=$(awk 'NF && $1 !~ /^#/ {print $1; exit}' aienos.lock) - test -n "$sha" - echo "sha=$sha" >> "$GITHUB_OUTPUT" - - name: Checkout pinned AIENOS authority - uses: actions/checkout@v4 - with: - repository: aien-spark/aienos - ref: ${{ steps.aienos.outputs.sha }} - path: aienos-src - - name: Keep AIENOS checkout out of Omega tree status - run: echo 'aienos-src/' >> .git/info/exclude - - name: Build and run resident reaction host qualification - env: - OMEGA_CANDIDATE_COMMIT: ${{ github.sha }} - PHYSICS_COMMIT: 6d7cf0d4d8eb2cda7b512100ff6058e25dbb3ddf - PHYSICS_DIR: ${{ github.workspace }}/physics-src - AIENOS_R7_DIR: ${{ github.workspace }}/aienos-src - AIENOS_COMMIT: ${{ steps.aienos.outputs.sha }} - run: 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 - - name: Canonical machine identity (M20) - run: make test-machine-identity - - name: Effect capability generations are 64-bit end to end (OMEGA_EFFECT_CAP64) - env: - PHYSICS_DIR: ${{ github.workspace }}/physics-src - AIENOS_R7_DIR: ${{ github.workspace }}/aienos-src - run: | - mkdir -p build - make test-effect-cap64 | tee build/effect-cap64.log - grep -q '^OMEGA_EFFECT_CAP64_PASS$' build/effect-cap64.log - - name: Omega's AIENOS capability header matches the pinned AIENOS header (OMEGA_AIENOS_CAP_ABI) - env: - PHYSICS_DIR: ${{ github.workspace }}/physics-src - AIENOS_R7_DIR: ${{ github.workspace }}/aienos-src - run: | - mkdir -p build - make test-aienos-cap-abi | tee build/aienos-cap-abi.log - grep -q '^OMEGA_AIENOS_CAP_ABI_PASS$' build/aienos-cap-abi.log - - name: Show state projection receipt - run: | - receipt="$(find build/qual-runs -name omega_state_projection_receipt.json -type f | head -n 1)" - test -n "$receipt" - grep -q '"failures": 0,' "$receipt" - grep -q '"candidate_bound": true,' "$receipt" - grep -q '"OMEGA_STATE_PROJECTION_PASS": "PASS"' "$receipt" - sha256sum "$receipt" - cat "$receipt" - - name: Show action graph receipt - run: | - receipt="$(find build/qual-runs -name rx_action_graph_receipt.json -type f | head -n 1)" - test -n "$receipt" - grep -q '"failures": 0,' "$receipt" - grep -q '"candidate_bound": true,' "$receipt" - grep -q '"OMEGA_ACTION_GRAPH_IR_PASS": "PASS"' "$receipt" - sha256sum "$receipt" - cat "$receipt" - - name: Check incremental semantics receipt - run: | - receipt="$(find build/qual-runs -name omega_incremental_semantics_receipt.json -type f | head -n 1)" - test -n "$receipt" - grep -q '"OMEGA_INCREMENTAL_SEMANTICS_PASS": "HOST_PASS_ENERGY_UNMEASURED"' "$receipt" - grep -q '"false_hits": 0,' "$receipt" - - name: Show capability query receipt - run: | - receipt="$(find build/qual-runs -name rx_capability_query_receipt.json -type f | head -n 1)" - test -n "$receipt" - grep -q '"failures": 0,' "$receipt" - grep -q '"candidate_bound": true,' "$receipt" - grep -q '"OMEGA_CAPABILITY_QUERY_PASS": "PASS"' "$receipt" - sha256sum "$receipt" - cat "$receipt" - - name: Show semantic communication receipt - run: | - receipt="$(find build/qual-runs -name rx_semantic_comm_receipt.json -type f | head -n 1)" - test -n "$receipt" - grep -q '"failures": 0,' "$receipt" - grep -q '"candidate_bound": true,' "$receipt" - grep -q '"OMEGA_SEMANTIC_COMMUNICATION_PASS": "PASS"' "$receipt" - sha256sum "$receipt" - cat "$receipt" - - name: Show cognitive routing receipt - run: | - receipt="$(find build/qual-runs -name rx_cognitive_routing_receipt.json -type f | head -n 1)" - test -n "$receipt" - grep -q '"failures": 0,' "$receipt" - grep -q '"candidate_bound": true,' "$receipt" - grep -q '"OMEGA_COGNITIVE_ROUTING_PASS": "PASS"' "$receipt" - - name: Build and run workflow fusion qualification - env: - OMEGA_CANDIDATE_COMMIT: ${{ github.sha }} - PHYSICS_COMMIT: 6d7cf0d4d8eb2cda7b512100ff6058e25dbb3ddf - PHYSICS_DIR: ${{ github.workspace }}/physics-src - AIENOS_R7_DIR: ${{ github.workspace }}/aienos-src - AIENOS_COMMIT: ${{ steps.aienos.outputs.sha }} - run: make test-workflow-fusion - - name: Show workflow fusion receipt - run: | - receipt="$(find build/qual-runs -name rx_workflow_fusion_receipt.json -type f | head -n 1)" - test -n "$receipt" - grep -q '"failures": 0,' "$receipt" - grep -q '"candidate_bound": true,' "$receipt" - grep -q '"OMEGA_WORKFLOW_FUSION_PASS": "PASS"' "$receipt" - sha256sum "$receipt" - cat "$receipt" - - name: Build and run typed result constraints - env: - OMEGA_CANDIDATE_COMMIT: ${{ github.sha }} - PHYSICS_COMMIT: 6d7cf0d4d8eb2cda7b512100ff6058e25dbb3ddf - PHYSICS_DIR: ${{ github.workspace }}/physics-src - AIENOS_R7_DIR: ${{ github.workspace }}/aienos-src - AIENOS_COMMIT: ${{ steps.aienos.outputs.sha }} - run: make test-typed-results - - name: Show typed result constraints receipt - run: | - receipt="$(find build/qual-runs -name rx_typed_results_receipt.json -type f | head -n 1)" - test -n "$receipt" - grep -q '"failures": 0,' "$receipt" - grep -q '"candidate_bound": true,' "$receipt" - grep -q '"OMEGA_TYPED_RESULT_CONSTRAINTS_PASS": "PASS"' "$receipt" - sha256sum "$receipt" - cat "$receipt" - - name: Empirical cost model on synthetic measurements (OMEGA_EMPIRICAL_OPTIMIZER, any host) - env: - PHYSICS_DIR: ${{ github.workspace }}/physics-src - run: make test-costmodel - - name: Show R8 receipt - run: | - receipt="$(find build/qual-runs -name rx_aegis_resident_receipt.json -type f | head -n 1)" - test -n "$receipt" - grep -q '"failures": 0,' "$receipt" - grep -q '"candidate_bound": true,' "$receipt" - grep -q '"R8_CONSTITUTIONAL_AEGIS": "PASS"' "$receipt" - sha256sum "$receipt" - cat "$receipt" - - name: Emit qualification receipt - env: - OMEGA_CANDIDATE_COMMIT: ${{ github.sha }} - PHYSICS_COMMIT: 6d7cf0d4d8eb2cda7b512100ff6058e25dbb3ddf - run: | - receipt="$(find build/qual-runs -name rx_heartbeat_receipt.json -type f | head -n 1)" - native="$(find build/qual-runs -name rx_native_authority_receipt.json -type f | head -n 1)" - generation="$(find build/qual-runs -name rx_generation_barrier_receipt.json -type f | head -n 1)" - test -n "$receipt" - test -n "$native" - test -n "$generation" - echo "candidate commit: ${OMEGA_CANDIDATE_COMMIT}" - echo "physics commit: ${PHYSICS_COMMIT}" - if git diff --quiet && git diff --cached --quiet; then - echo "tree cleanliness: clean" - else - echo "tree cleanliness: dirty" - fi - tools/rx_host_receipts.sh heartbeat "$receipt" - tools/rx_host_receipts.sh native "$native" "$OMEGA_CANDIDATE_COMMIT" - tools/rx_host_receipts.sh generation "$generation" "$OMEGA_CANDIDATE_COMMIT" - cat "$receipt" - cat "$native" - cat "$generation" - - omega-faculty-arm: - # R10 runs Omega's native AArch64 realizations, so it needs an AArch64 host. - # The hosted runner is not the DGX Spark: whether an Omega realization beats - # the reference there is recorded, not required. The chain itself is required. - runs-on: ubuntu-24.04-arm - timeout-minutes: 15 - env: - # Lane 32: the production R13 program links the pinned ARGUS (argus.lock). - ARGUS_REPO: ${{ github.workspace }}/aienos-argus - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - name: Checkout pinned Physics headers - uses: actions/checkout@v4 - with: - repository: aien-spark/physics - ref: 6d7cf0d4d8eb2cda7b512100ff6058e25dbb3ddf - path: physics-src - - name: Read pinned AIENOS authority - id: aienos - run: | - sha=$(awk 'NF && $1 !~ /^#/ {print $1; exit}' aienos.lock) - test -n "$sha" - echo "sha=$sha" >> "$GITHUB_OUTPUT" - g=$(awk 'NF && $1 !~ /^#/ {print $1; exit}' argus.lock) - test -n "$g" - echo "argus=$g" >> "$GITHUB_OUTPUT" - - name: Checkout pinned AIENOS authority - uses: actions/checkout@v4 - with: - repository: aien-spark/aienos - ref: ${{ steps.aienos.outputs.sha }} - path: aienos-src - - name: Checkout pinned ARGUS sources (aienos native/argus, argus.lock; linked into the production R13 program) - uses: actions/checkout@v4 - with: - repository: aien-spark/aienos - ref: ${{ steps.aienos.outputs.argus }} - path: aienos-argus - - name: Keep dependency checkouts out of Omega tree status - run: printf 'physics-src/\naienos-src/\naienos-argus/\n' >> .git/info/exclude - - name: Program identity binds the canonical semantic body (OMEGA_PROGRAM_ID) - # AArch64 job: the Visor objects this test links only build on AArch64 hosts - # (visor_realization.c k_diff_inputs is aarch64-only, pre-existing). - run: make OUT_DIR=build/pid PHYSICS_DIR=/nonexistent PHYSICS_LOCK_CHECK=0 test-program-id - - name: Realization is driven by the actual Omega program (OMEGA_PROGRAM_REALIZE) - # AArch64 job: the test executes the generated AArch64 code natively. - run: make OUT_DIR=build/prz PHYSICS_DIR=/nonexistent PHYSICS_LOCK_CHECK=0 test-program-realize - - name: Omega as a resident realization faculty (R10) - env: - OMEGA_CANDIDATE_COMMIT: ${{ github.sha }} - PHYSICS_DIR: ${{ github.workspace }}/physics-src - AIENOS_R7_DIR: ${{ github.workspace }}/aienos-src - AIENOS_COMMIT: ${{ steps.aienos.outputs.sha }} - R10_ALLOW_NO_WIN: '1' - run: make test-r10 - - name: Show R10 receipt - run: | - receipt="$(find build/qual-runs -name rx_omega_faculty_receipt.json -type f | head -n 1)" - test -n "$receipt" - grep -q '"failures": 0,' "$receipt" - grep -q '"candidate_bound": true,' "$receipt" - grep -q '"tree_dirty": false,' "$receipt" - sha256sum "$receipt" - cat "$receipt" - - name: Bounded resource regulation (ADAPTIVE-M4) - env: - PHYSICS_DIR: ${{ github.workspace }}/physics-src - AIENOS_R7_DIR: ${{ github.workspace }}/aienos-src - AIENOS_COMMIT: ${{ steps.aienos.outputs.sha }} - run: make test-regulate - - name: AIEN as a resident cognitive faculty (R11) - env: - OMEGA_CANDIDATE_COMMIT: ${{ github.sha }} - PHYSICS_DIR: ${{ github.workspace }}/physics-src - AIENOS_R7_DIR: ${{ github.workspace }}/aienos-src - AIENOS_COMMIT: ${{ steps.aienos.outputs.sha }} - run: make test-r11 - - name: Show R11 receipt - run: | - receipt="$(find build/qual-runs -name rx_aien_faculty_receipt.json -type f | head -n 1)" - test -n "$receipt" - grep -q '"failures": 0,' "$receipt" - grep -q '"candidate_bound": true,' "$receipt" - grep -q '"tree_dirty": false,' "$receipt" - sha256sum "$receipt" - cat "$receipt" - - name: R13 living system builds, production program (ARGUS linked) and AIEN_TEST_BUILD test variant (runs need both GB10 core classes and the resident seat) - env: - PHYSICS_DIR: ${{ github.workspace }}/physics-src - AIENOS_R7_DIR: ${{ github.workspace }}/aienos-src - run: make build/rx_r13_living_host build/rx_r13_living_testbuild_host - - name: R14 living recovery builds (its run needs the R13 body, both GB10 core classes and, for the gate, the resident seat) - env: - PHYSICS_DIR: ${{ github.workspace }}/physics-src - AIENOS_R7_DIR: ${{ github.workspace }}/aienos-src - run: make build/rx_r14_recovery_host - - name: R16-G3 host build link map (checks 1-3 of 5 on the current R13/R14 host binaries; not the gate) - # Sources, link map, shared libraries and embedded names of the living - # system as built from this commit. Checks 4-5 (exec trace + living run) - # need the Spark core classes and are declared SKIP below. - env: - PHYSICS_DIR: ${{ github.workspace }}/physics-src - AIENOS_R7_DIR: ${{ github.workspace }}/aienos-src - run: | - 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 - echo "- R16-G3 host build link map: checks 1-3 STATIC_PASS; gate NOT_RUN (checks 4-5 need the Spark)" >> "$GITHUB_STEP_SUMMARY" - - name: R16-G3 silicon build link map (silicon R13/R14 binaries built here and never run; checks 1-3 of 5; not the gate) - env: - PHYSICS_DIR: ${{ github.workspace }}/physics-src - AIENOS_R7_DIR: ${{ github.workspace }}/aienos-src - run: | - 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 - echo "- R16-G3 silicon build link map (runner build, not run): checks 1-3 STATIC_PASS; gate NOT_RUN (needs the GB10 seat)" >> "$GITHUB_STEP_SUMMARY" - - name: Production program hygiene, host (no test pieces in the link map or strings; ARGUS linked and observing in a host run) - # Lane 32: the production R13 program carries no AIEN_TEST_BUILD piece - # (Fabric loopback, HMAC stand-in, fixed test keys, Fabric living phase, - # composition fault and rogue hooks) and links the pinned ARGUS. The - # --argus-probe run proves ARGUS is present and observing on this host. - env: - PHYSICS_DIR: ${{ github.workspace }}/physics-src - AIENOS_R7_DIR: ${{ github.workspace }}/aienos-src - run: | - make test-prod-hygiene | tee build/prod-hygiene-host.log - grep -q '^R16 prod: PROD_HYGIENE=PASS mode=host ' build/prod-hygiene-host.log - echo "- Production hygiene host: PROD_HYGIENE=PASS (no test pieces; ARGUS linked and observing)" >> "$GITHUB_STEP_SUMMARY" - - name: Production program hygiene, silicon build (static checks only; the binary is built here and never run) - env: - PHYSICS_DIR: ${{ github.workspace }}/physics-src - AIENOS_R7_DIR: ${{ github.workspace }}/aienos-src - R16_PROD_NO_RUN: '1' - run: | - 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 - echo "- Production hygiene silicon build: static checks PASS; ARGUS probe run NOT_RUN (Spark check)" >> "$GITHUB_STEP_SUMMARY" - - name: Negative build test (EXPECTED FAILURE, compiling the production program with any test piece must fail) - # Every case compiles a test piece with the production flags and must be - # refused by its build-time guard; three controls must compile; make must - # refuse AIEN_TEST_BUILD in CFLAGS for the production binary. - env: - PHYSICS_DIR: ${{ github.workspace }}/physics-src - AIENOS_R7_DIR: ${{ github.workspace }}/aienos-src - run: | - make test-prod-refuses-test-pieces | tee build/prod-refuses.log - grep -q '^R16 prod: PROD_REFUSES_TEST_PIECES=PASS ' build/prod-refuses.log - echo "- Negative build test: every test piece refused in the production build (expected failures observed)" >> "$GITHUB_STEP_SUMMARY" - - name: Empirical optimizer (OMEGA_EMPIRICAL_OPTIMIZER; the gate is claimed only on the DGX Spark) - env: - OMEGA_CANDIDATE_COMMIT: ${{ github.sha }} - PHYSICS_DIR: ${{ github.workspace }}/physics-src - AIENOS_R7_DIR: ${{ github.workspace }}/aienos-src - AIENOS_COMMIT: ${{ steps.aienos.outputs.sha }} - EMPIRICAL_ALLOW_NO_WIN: '1' - run: make test-empirical - - name: Show empirical optimizer receipt - run: | - receipt="$(find build/qual-runs -name rx_empirical_optimizer_receipt.json -type f | head -n 1)" - test -n "$receipt" - grep -q '"failures": 0,' "$receipt" - grep -q '"candidate_bound": true,' "$receipt" - grep -q '"tree_dirty": false,' "$receipt" - grep -q '"mismatches": 0,' "$receipt" - grep -Eq '"OMEGA_EMPIRICAL_OPTIMIZER_PASS": "(PASS|CHAIN_PASS_NO_WIN)"' "$receipt" - sha256sum "$receipt" - cat "$receipt" - - name: Plan IR and verified plan cache (OMEGA_PLAN_REUSE; timing criteria are judged on the Spark receipt) - env: - OMEGA_CANDIDATE_COMMIT: ${{ github.sha }} - PHYSICS_DIR: ${{ github.workspace }}/physics-src - AIENOS_R7_DIR: ${{ github.workspace }}/aienos-src - AIENOS_COMMIT: ${{ steps.aienos.outputs.sha }} - PLAN_REUSE_NO_ENERGY: '1' - run: | - make test-plan-reuse - receipt="$(find build/qual-runs -name 'rx_plan_reuse_receipt.*.json' -type f | head -n 1)" - test -n "$receipt" - grep -q '"failures": 0,' "$receipt" - grep -q '"G3_outcome_and_evidence": "PASS"' "$receipt" - grep -q '"G4_false_applicability_zero": "PASS"' "$receipt" - grep -q '"G5_identity": "PASS"' "$receipt" - sha256sum "$receipt" - cat "$receipt" - # Host-only runtime gates that existed in the Makefile but ran nowhere in CI - # (omega #425). CPU only; built against the pinned AIENOS and Physics checkouts. - - name: HD-09 declared deadline cancels a late reaction (test-rx-deadline-cancel) - env: - PHYSICS_DIR: ${{ github.workspace }}/physics-src - AIENOS_R7_DIR: ${{ github.workspace }}/aienos-src - AIENOS_COMMIT: ${{ steps.aienos.outputs.sha }} - run: make test-rx-deadline-cancel - - name: I11 held dependent merges the writer's wake; the no-hold mutant must fail (test-i11-wake-merge) - env: - PHYSICS_DIR: ${{ github.workspace }}/physics-src - AIENOS_R7_DIR: ${{ github.workspace }}/aienos-src - AIENOS_COMMIT: ${{ steps.aienos.outputs.sha }} - run: make test-i11-wake-merge - - name: C4 requalification under interruption and recovery (test-c4-requal) - env: - PHYSICS_DIR: ${{ github.workspace }}/physics-src - AIENOS_R7_DIR: ${{ github.workspace }}/aienos-src - AIENOS_COMMIT: ${{ steps.aienos.outputs.sha }} - run: make test-c4-requal - - chip-only-declared: - # Checks that cannot run on a GitHub runner, declared explicitly so their - # absence is visible on every run. Each step prints one SKIP line (never a - # pass) and writes it to the job summary. chip-only: needs the GB10 - # resident seat. spark-only: needs the DGX Spark itself (the R13/R14 - # harnesses stop with "needs both core classes" unless the X925 and A725 - # cores are present; hosted runners have neither). These are qualified only - # by candidate-bound receipts produced on the Spark. - runs-on: ubuntu-latest - timeout-minutes: 5 - steps: - - uses: actions/checkout@v4 - - name: Summary header - run: echo "### Declared SKIP (not run on GitHub runners; never a pass)" >> "$GITHUB_STEP_SUMMARY" - - name: R12 silicon seat (SKIP chip-only) - run: tools/ci_declare_skip.sh test-r12-silicon chip-only "needs the GB10 resident seat; qualified only by a candidate-bound Spark receipt" - - name: R13 living system host run (SKIP spark-only) - run: tools/ci_declare_skip.sh test-r13-host spark-only "needs both Spark core classes (X925 + A725); the build is checked in omega-faculty-arm" - - name: R14 living recovery host run (SKIP spark-only) - run: tools/ci_declare_skip.sh test-r14-host spark-only "needs both Spark core classes (X925 + A725); the build is checked in omega-faculty-arm" - - name: R13 living system silicon (SKIP chip-only) - run: tools/ci_declare_skip.sh test-r13-silicon chip-only "needs the GB10 resident seat and both Spark core classes; qualified only by a candidate-bound Spark receipt" - - name: R13 test-build variant host run (SKIP spark-only) - run: tools/ci_declare_skip.sh test-r13-testbuild-host spark-only "needs both Spark core classes (X925 + A725); the test-build variant (AIEN_TEST_BUILD) is built in omega-faculty-arm" - - name: R13 test-build variant silicon (SKIP chip-only) - run: tools/ci_declare_skip.sh test-r13-testbuild-silicon chip-only "needs the GB10 resident seat and both Spark core classes; qualified only by a candidate-bound Spark receipt" - - name: Production hygiene silicon ARGUS probe run (SKIP chip-only) - run: tools/ci_declare_skip.sh test-prod-hygiene-silicon chip-only "the probe run of the silicon production binary is a Spark check; its static link map and strings checks run in omega-faculty-arm" - - name: R14 living recovery silicon (SKIP chip-only) - run: tools/ci_declare_skip.sh test-r14-silicon chip-only "needs the GB10 resident seat and both Spark core classes; qualified only by a candidate-bound Spark receipt" - - name: R11 own quiet hold living run (SKIP spark-only) - run: tools/ci_declare_skip.sh test-r11-own-hold spark-only "the q1-abc case must start the R11 living run, which needs both Spark core classes (X925 + A725)" - - name: R15 G7 and parity host runs (SKIP spark-only) - run: | - tools/ci_declare_skip.sh test-r15-g7-host spark-only "runs R13 living episodes; needs both Spark core classes (X925 + A725)" - tools/ci_declare_skip.sh test-r15-parity-host spark-only "runs R13 living episodes; needs both Spark core classes (X925 + A725)" - - name: R15 parity silicon (SKIP chip-only) - run: tools/ci_declare_skip.sh test-r15-parity-silicon chip-only "needs the GB10 resident seat; qualified only by a candidate-bound Spark receipt" - - name: R16-G3 host checks 4-5, exec trace and living run (SKIP spark-only) - run: tools/ci_declare_skip.sh test-r16-authpath spark-only "checks 4-5 run the R13/R14 living systems, which need both Spark core classes; checks 1-3 run in omega-faculty-arm" - - name: R16-G3 silicon gate (SKIP chip-only) - run: tools/ci_declare_skip.sh test-r16-authpath-silicon chip-only "needs the GB10 resident seat; qualified only by a candidate-bound Spark receipt; checks 1-3 on the silicon build run in omega-faculty-arm" - - name: Composition gate on the GPU (SKIP chip-only) - run: tools/ci_declare_skip.sh test-composition-gate-gpu chip-only "needs the GB10 resident seat" - - name: Chip milestones M5, M19 (SKIP chip-only; M6-M15 run and M17 is declared in host-suites-3.yml; the M19R qualifier and gate 14 combiner self-tests run in host-suites.yml) - run: | - for t in test-m5 test-m19; do - tools/ci_declare_skip.sh "$t" chip-only "chip milestone gate; needs the GB10 (declared not-on-GitHub in host-suites.yml)" - done diff --git a/.github/workflows/turing-yield.yml b/.github/workflows/turing-yield.yml deleted file mode 100644 index e68549087..000000000 --- a/.github/workflows/turing-yield.yml +++ /dev/null @@ -1,18 +0,0 @@ -name: Turing yield boundaries -on: - # Retired from pull requests and pushes on 2026-10-16 (ADR 0033 Decision 11, phase 3): the Spark - # runs these gates (tests/gates/) and the required AIEN Verification check verifies its signed - # bundle. Kept as a manual trigger so a hosted run is still possible when needed. - workflow_dispatch: - -concurrency: - group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} - cancel-in-progress: ${{ github.event_name == 'pull_request' }} - -jobs: - portable-boundaries: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - name: Math, attribution and hostile fixtures with sanitizers - run: make test-turing-yield test-turing-energy diff --git a/.github/workflows/zig-cc.yml b/.github/workflows/zig-cc.yml deleted file mode 100644 index 5075c0ead..000000000 --- a/.github/workflows/zig-cc.yml +++ /dev/null @@ -1,124 +0,0 @@ -name: Zig cc cross-check - -# Purpose: an independent toolchain cross-check. The same Omega sources are built -# with `zig cc` (clang 22: a different front end, optimiser and code generator -# than the gcc used everywhere else; it reads the same system C headers) and -# must pass the same host gates. -# The identities the gates print (64-hex SHA-256 values) must be byte-for-byte -# the same as a gcc build of the same commit prints. A gate that passes under gcc -# only, or an identity that changes with the compiler, is a portability or -# undefined-behaviour finding in Omega, not a Zig problem. -# -# Pinned toolchain: Zig 0.17.0, aarch64-linux, from -# https://ziglang.org/download/0.17.0/zig-aarch64-linux-0.17.0.tar.xz -# sha256 9e8d11661d4ae3bd57702a3832781e23ad151dde5798e16a5ccd503f65234ff8 -# The tarball is checked against that digest before it is unpacked. Raising the -# version is a deliberate change to this file (new URL and new digest together). -# -# The gcc lanes remain authoritative: pr-smoke.yml and the host-suites workflows -# define what "passes" means. This lane never replaces them and is not a -# migration to Zig. Not covered here: any GPU or chip suite, the Makefile targets -# that hard-code `gcc` (numeric CPU/reduce/transcendental), the ASan half of -# test-compiler-quick (zig cc builds the _asan binaries without AddressSanitizer; -# UBSan is applied), and the QEMU-backed gates (M5 and the realization demo), -# because no omega workflow installs QEMU. See docs/zig-cc-lane.md. -# -# Like pr-smoke.yml this runs on every pull request (no path filter), against the -# merged result that actions/checkout produces for pull_request events. - -on: - pull_request: - push: - branches: [main] - -permissions: - contents: read - -env: - ZIG_VERSION: "0.17.0" - ZIG_SHA256: "9e8d11661d4ae3bd57702a3832781e23ad151dde5798e16a5ccd503f65234ff8" - -concurrency: - group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} - cancel-in-progress: ${{ github.event_name == 'pull_request' }} - -jobs: - zig-cc: - name: omega-zig-cc - runs-on: ubuntu-24.04-arm - timeout-minutes: 20 - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - name: Read pinned Physics - id: pins - run: | - sha=$(tr -d '[:space:]' < physics.lock) - test -n "$sha" - echo "physics=$sha" >> "$GITHUB_OUTPUT" - - name: Checkout pinned Physics - uses: actions/checkout@v4 - with: - repository: aien-spark/physics - ref: ${{ steps.pins.outputs.physics }} - path: physics-src - - name: Keep Physics checkout out of Omega tree status - run: echo 'physics-src/' >> .git/info/exclude - - name: Install pinned Zig (checksum verified before unpacking) - run: | - set -euo pipefail - tarball="zig-aarch64-linux-${ZIG_VERSION}.tar.xz" - cd "$RUNNER_TEMP" - curl -fsSL --retry 3 -o "$tarball" "https://ziglang.org/download/${ZIG_VERSION}/${tarball}" - echo "${ZIG_SHA256} ${tarball}" | sha256sum -c - - tar -xJf "$tarball" - rm -f "$tarball" - zig="$RUNNER_TEMP/zig-aarch64-linux-${ZIG_VERSION}/zig" - test "$("$zig" version)" = "${ZIG_VERSION}" - "$zig" cc --version | head -2 - echo "ZIGCC=$zig cc" >> "$GITHUB_ENV" - - name: Build with zig cc and base gates (make test) - env: - PHYSICS_DIR: ${{ github.workspace }}/physics-src - run: | - set -o pipefail - make -j"$(nproc)" CC="$ZIGCC" build/omegatool - make CC="$ZIGCC" test | tee base.log - grep -E 'TOTAL GATES: ([0-9]+) \| PASSED: \1 \| FAILED: 0' base.log - ! grep -qE 'FAILED: [1-9]|\[FAIL\]|\(FAIL\)' base.log - - name: Language V0 golden (zig cc) - run: | - set -o pipefail - make CC="$ZIGCC" PHYSICS_DIR=/nonexistent PHYSICS_LOCK_CHECK=0 test-language | tee lang.log - grep -E '^PASS ([0-9]+)/\1$' lang.log - ! grep -q '^FAIL' lang.log - - name: Compiler quick smoke (zig cc) - run: | - set -o pipefail - make CC="$ZIGCC" PHYSICS_DIR=/nonexistent PHYSICS_LOCK_CHECK=0 test-compiler-quick | tee compiler.log - grep -E '^test-compiler-quick: PASS' compiler.log - - name: Cross-check against a gcc build (same gates, same identities) - env: - PHYSICS_DIR: ${{ github.workspace }}/physics-src - run: | - set -o pipefail - make -j"$(nproc)" CC=gcc OUT_DIR=build-gcc build-gcc/omegatool - mkdir -p xcheck - # QEMU-backed suites (run-m5-gates, reference-demonstrate-realization) are left out: no QEMU on this runner. - for flag in run-gates run-m6-gates run-m7-gates run-m8-gates run-m9-gates run-m10-gates \ - run-m11-gates run-m12-gates run-m13-gates run-m14-gates \ - reference-demonstrate-arithmetic reference-demonstrate-physics \ - reference-demonstrate-self-host reference-demonstrate-verify \ - reference-demonstrate-program reference-demonstrate-synthesis \ - reference-demonstrate-library reference-demonstrate-discovery; do - build-gcc/omegatool "--$flag" > "xcheck/gcc-$flag.log" 2>&1 - build/omegatool "--$flag" > "xcheck/zig-$flag.log" 2>&1 - cmp "xcheck/gcc-$flag.log" "xcheck/zig-$flag.log" || { diff "xcheck/gcc-$flag.log" "xcheck/zig-$flag.log" | head -20; exit 1; } - done - cat xcheck/gcc-*.log | grep -ohE '\b[0-9a-f]{64}\b' | sort -u > xcheck/ids-gcc.txt - cat xcheck/zig-*.log | grep -ohE '\b[0-9a-f]{64}\b' | sort -u > xcheck/ids-zig.txt - diff xcheck/ids-gcc.txt xcheck/ids-zig.txt - test -s xcheck/ids-zig.txt - echo "identities identical: $(wc -l < xcheck/ids-zig.txt) distinct 64-hex values across 18 suites" - cat xcheck/zig-*.log | grep -E 'TOTAL GATES' | sort | uniq -c