diff --git a/.github/workflows/actions.lock b/.github/workflows/actions.lock index 221b754..9009597 100644 --- a/.github/workflows/actions.lock +++ b/.github/workflows/actions.lock @@ -9,7 +9,7 @@ workflows: '.github/workflows/container-build.yml': - 'actions/checkout@v7.0.1' '.github/workflows/creusot.yml': - - 'hyperpolymath/cicd-suite@47a5fe0aa1039ad8a6a0614137d575e66649a174' + - 'hyperpolymath/proven-cicd-and-workflows@6a35e510a41037adfd422b7f449c3503c5e26a98' '.github/workflows/dependabot-automerge.yml': - 'dependabot/fetch-metadata@v3.1.0' '.github/workflows/dogfood-gate.yml': @@ -36,18 +36,25 @@ workflows: - 'actions/checkout@v7.0.1' - 'actions/deploy-pages@v5.0.1' - 'actions/upload-pages-artifact@v5.0.0' + '.github/workflows/proven-coverage-collect.yml': + - 'actions/checkout@v7.0.1' + - 'actions/setup-node@v7.1.0' + - 'actions/upload-artifact@v7.0.2' + - 'dtolnay/rust-toolchain@v1' + - 'erlef/setup-beam@v1.24.1' + - 'taiki-e/install-action@v2.90.3' '.github/workflows/push-email-notify.yml': - 'hyperpolymath/smtp-notify-action@v0.5.1' '.github/workflows/quality.yml': - 'actions/checkout@v7.0.1' - 'editorconfig-checker/action-editorconfig-checker@v3.0.0' '.github/workflows/release.yml': - - 'actions/attest-build-provenance@4d101475d8b20a2381f78447822ac1eab6504dd8' - - 'actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1' - - 'actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333' - - 'actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9' - - 'dtolnay/rust-toolchain@683b588c487a69d01f6c6ddf40f036ff682cc2c8' - - 'softprops/action-gh-release@8a0cd651e5b2365bd640854a3fa5dfc70e4875f3' + - 'actions/attest-build-provenance@v4.2.2' + - 'actions/checkout@v7.0.1' + - 'actions/download-artifact@v8.0.2' + - 'actions/upload-artifact@v7.0.2' + - 'dtolnay/rust-toolchain@v1' + - 'softprops/action-gh-release@v3.0.4' '.github/workflows/rhodibot.yml': - 'actions/checkout@v7.0.1' '.github/workflows/runtime-policy.yml': @@ -73,7 +80,7 @@ workflows: '.github/workflows/workflow-linter.yml': - 'actions/checkout@v7.0.1' dependencies: - 'actions/attest-build-provenance@4d101475d8b20a2381f78447822ac1eab6504dd8': + 'actions/attest-build-provenance@v4.2.2': ref: 'v4.2.2' commit: 'sha1-4d101475d8b20a2381f78447822ac1eab6504dd8' owner_id: 44036562 @@ -115,6 +122,11 @@ dependencies: commit: 'sha1-9000827ccba6bdab643e8b6fd33ac0654aef8333' owner_id: 44036562 repo_id: 192626254 + 'actions/setup-node@v7.1.0': + ref: 'v7.1.0' + commit: 'sha1-949feb2413d6458794dcd2491c4babbbce0c15c1' + owner_id: 44036562 + repo_id: 189476904 'actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f': ref: 'v7.0.0' commit: 'sha1-bbbca2ddaa5d8feaa63e36b76fdaad77386f024f' @@ -152,9 +164,9 @@ dependencies: commit: 'sha1-683b588c487a69d01f6c6ddf40f036ff682cc2c8' owner_id: 1940490 repo_id: 260749683 - 'dtolnay/rust-toolchain@e2a55d2ffb04f378e9626c28d38b36d230d1e12f': + 'dtolnay/rust-toolchain@v1': ref: 'v1' - commit: 'sha1-e2a55d2ffb04f378e9626c28d38b36d230d1e12f' + commit: 'sha1-683b588c487a69d01f6c6ddf40f036ff682cc2c8' owner_id: 1940490 repo_id: 260749683 'editorconfig-checker/action-editorconfig-checker@51f63319f592f97930c73d9c46184d20bd206393': @@ -197,15 +209,15 @@ dependencies: commit: 'sha1-0f8e8c99d88aeb3fbfd523f1ef2c6f762d10d64d' owner_id: 75048950 repo_id: 623796603 - 'hyperpolymath/cicd-suite@47a5fe0aa1039ad8a6a0614137d575e66649a174': - ref: '47a5fe0aa1039ad8a6a0614137d575e66649a174' - commit: 'sha1-47a5fe0aa1039ad8a6a0614137d575e66649a174' + 'hyperpolymath/proven-cicd-and-workflows@6a35e510a41037adfd422b7f449c3503c5e26a98': + ref: 'main' + commit: 'sha1-6a35e510a41037adfd422b7f449c3503c5e26a98' owner_id: 6759885 repo_id: 1326697643 uses: - 'actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9' - 'actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1' - - 'dtolnay/rust-toolchain@e2a55d2ffb04f378e9626c28d38b36d230d1e12f' + - 'dtolnay/rust-toolchain@683b588c487a69d01f6c6ddf40f036ff682cc2c8' 'hyperpolymath/smtp-notify-action@v0.5.1': ref: 'v0.5.1' commit: 'sha1-e384daf6167a7a7567642d6a62060106244d2413' @@ -253,7 +265,7 @@ dependencies: commit: 'sha1-0c5077e51419868618aeaa5fe8019c62421857d6' owner_id: 108928776 repo_id: 512644635 - 'softprops/action-gh-release@8a0cd651e5b2365bd640854a3fa5dfc70e4875f3': + 'softprops/action-gh-release@v3.0.4': ref: 'v3.0.4' commit: 'sha1-8a0cd651e5b2365bd640854a3fa5dfc70e4875f3' owner_id: 2242 @@ -268,6 +280,11 @@ dependencies: commit: 'sha1-d1527c8f67ef9af357290475d4af4b0fab8f12e0' owner_id: 580492 repo_id: 298565987 + 'taiki-e/install-action@v2.90.3': + ref: 'v2.90.3' + commit: 'sha1-cfdb7ed4ccc7c7dce37759eae89dc5674b469b39' + owner_id: 43724913 + repo_id: 442947557 'webfactory/ssh-agent@e83874834305fe9a4a2997156cb26c5de65a8555': ref: 'v0.10.0' commit: 'sha1-e83874834305fe9a4a2997156cb26c5de65a8555' diff --git a/.github/workflows/creusot.yml b/.github/workflows/creusot.yml index 0222b36..3bab2f9 100644 --- a/.github/workflows/creusot.yml +++ b/.github/workflows/creusot.yml @@ -2,7 +2,7 @@ # Copyright (c) 2026 Jonathan D.A. Jewell (hyperpolymath) # # Creusot Gate — thin caller of the estate's Rust deductive-verification gate -# (hyperpolymath/cicd-suite), the Rust twin of the SPARK gate that proves +# (hyperpolymath/proven-cicd-and-workflows), the Rust twin of the SPARK gate that proves # spark/gate_machine. It detects Creusot obligations and claims, fails a claim of # proof that has no contracts behind it, and — when obligations exist — installs # Creusot at a pinned release, proves a planted FALSE contract to show the prover @@ -14,9 +14,8 @@ # after rejecting the false control and proving the true one (docs/CREUSOT.adoc). # Each later source still needs its own proof run; this is not a whole-engine proof. # -# Full-SHA pin, DE-ONBOARDED from actions.lock — same rule as rust-ci.yml: the -# gate scripts are pinned by the caller's own `uses:` SHA, so this line is the -# single pin for both the workflow and the script it runs. +# The caller's full `uses:` SHA pins both the workflow and its gate scripts. +# Keep actions.lock in sync with this pin and the workflow's nested actions. name: Creusot Gate on: @@ -33,7 +32,7 @@ permissions: jobs: creusot: - uses: hyperpolymath/cicd-suite/.github/workflows/creusot-gate.yml@47a5fe0aa1039ad8a6a0614137d575e66649a174 + uses: hyperpolymath/proven-cicd-and-workflows/.github/workflows/creusot-gate.yml@6a35e510a41037adfd422b7f449c3503c5e26a98 with: # Paired inputs: Creusot v0.14.0 is built against nightly-2026-08-03 # (creusot-rs/creusot's own rust-toolchain at that tag, mirrored in diff --git a/.github/workflows/proven-coverage-collect.yml b/.github/workflows/proven-coverage-collect.yml index 96feb11..49abb85 100644 --- a/.github/workflows/proven-coverage-collect.yml +++ b/.github/workflows/proven-coverage-collect.yml @@ -47,7 +47,7 @@ jobs: PROVEN_COV_JS_PROVEN_TESTS: "test/**/props.test.js" steps: # proven-cicd:local-next - - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + - uses: actions/checkout@v7.0.1 with: persist-credentials: false - name: Fetch the proven suite at its pinned commit @@ -72,31 +72,31 @@ jobs: id: detect run: bash "$PROVEN_SUITE/scripts/proven-coverage-collect.sh" detect "$GITHUB_WORKSPACE" >> "$GITHUB_OUTPUT" # proven-cicd:local-next - - uses: dtolnay/rust-toolchain@683b588c487a69d01f6c6ddf40f036ff682cc2c8 # master 2026-08-04 (v1) + - uses: dtolnay/rust-toolchain@v1 if: ${{ steps.detect.outputs.rust == 'true' }} with: toolchain: ${{ env.PROVEN_COV_RUST_TOOLCHAIN }} components: llvm-tools-preview # proven-cicd:local-next - - uses: taiki-e/install-action@cfdb7ed4ccc7c7dce37759eae89dc5674b469b39 # v2.90.3 + - uses: taiki-e/install-action@v2.90.3 if: ${{ steps.detect.outputs.rust == 'true' }} with: tool: cargo-llvm-cov # proven-cicd:local-next - - uses: erlef/setup-beam@54075bcc5e249e4758d363f27d099f55d843f124 # v1.24.1 + - uses: erlef/setup-beam@v1.24.1 if: ${{ steps.detect.outputs.elixir == 'true' }} with: otp-version: ${{ env.PROVEN_COV_OTP_VERSION }} elixir-version: ${{ env.PROVEN_COV_ELIXIR_VERSION }} # proven-cicd:local-next - - uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 + - uses: actions/setup-node@v7.1.0 if: ${{ steps.detect.outputs.js == 'true' }} with: node-version: ${{ env.PROVEN_COV_NODE_VERSION }} - name: Collect raw and proven coverage reports (shadow, never judged here) run: bash "$PROVEN_SUITE/scripts/proven-coverage-collect.sh" collect "$GITHUB_WORKSPACE" .github/workflows/proven-coverage-collect.yml # proven-cicd:local-next - - uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 + - uses: actions/upload-artifact@v7.0.2 if: ${{ !cancelled() }} with: name: proven-coverage diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7b02cde..76a3f1f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -30,12 +30,12 @@ jobs: permissions: contents: read steps: - - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + - uses: actions/checkout@v7.0.1 with: persist-credentials: false # Untagged dtolnay/rust-toolchain master commit (2026-08-04, merge of #182); # an ancestor of the moving `v1` branch. Pinned by SHA, so no tag applies. - - uses: dtolnay/rust-toolchain@683b588c487a69d01f6c6ddf40f036ff682cc2c8 # master 2026-08-04 + - uses: dtolnay/rust-toolchain@v1 with: toolchain: 1.85.0 targets: x86_64-unknown-linux-musl @@ -58,7 +58,7 @@ jobs: done cd dist sha256sum -c SHA256SUMS - - uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 + - uses: actions/upload-artifact@v7.0.2 with: name: release-dist path: dist/ @@ -74,7 +74,7 @@ jobs: id-token: write # mint the OIDC token the provenance attestation is signed with attestations: write # store the build-provenance attestation steps: - - uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2 + - uses: actions/download-artifact@v8.0.2 with: name: release-dist path: dist @@ -92,11 +92,11 @@ jobs: cd dist sha256sum -c SHA256SUMS - name: Attest build provenance - uses: actions/attest-build-provenance@4d101475d8b20a2381f78447822ac1eab6504dd8 # v4.2.2 + uses: actions/attest-build-provenance@v4.2.2 with: subject-path: 'dist/*' - name: Create GitHub Release - uses: softprops/action-gh-release@8a0cd651e5b2365bd640854a3fa5dfc70e4875f3 # v3.0.4 + uses: softprops/action-gh-release@v3.0.4 with: files: dist/* fail_on_unmatched_files: true diff --git a/Cargo.toml b/Cargo.toml index 64f120b..a264628 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -17,7 +17,13 @@ members = [ # `verification/squabble-creusot` is deliberately outside this workspace too: it # is a nightly-only Creusot artefact with its own Cargo.lock, so the stable # `--locked` build and `cargo audit` here never resolve `creusot-std`. -exclude = [".standards-js", "verification"] +# The pinned Creusot gate checks out its suite under .cicd-suite and builds the +# source reader with its own lockfile before discovering proof obligations. +exclude = [ + ".standards-js", + "verification", + ".cicd-suite/actions/creusot-check/source-facts", +] [workspace.package] version = "0.1.0" diff --git a/Justfile b/Justfile index e27c3e4..783c08b 100644 --- a/Justfile +++ b/Justfile @@ -391,24 +391,25 @@ verify-creusot: cd verification/squabble-creusot && cargo creusot prove # The estate gate, verbatim: detect → theatre (T1 claims, T2 hollow, T3 trusted) -# → prove. Fetches the pinned script from hyperpolymath/cicd-suite rather than -# keeping a second copy that could drift. -verify-gate suite_sha=sha(current): +# → prove. Fetches the pinned suite checkout so the script can build its source reader. +verify-gate suite_sha="": #!/usr/bin/env bash set -euo pipefail - sha="{{suite_sha}}" - if [ "$sha" = "current" ]; then - echo "usage: just verify-gate " >&2 + sha="${1:-}" + if [[ ! "$sha" =~ ^[0-9a-f]{40}$ ]]; then + echo "usage: just verify-gate " >&2 exit 2 fi tmp="$(mktemp -d)" trap 'rm -rf "$tmp"' EXIT - gh api "repos/hyperpolymath/cicd-suite/contents/actions/creusot-check/check.sh?ref=$sha" \ - --jq .content | base64 -d > "$tmp/check.sh" + git -C "$tmp" init -q + git -C "$tmp" fetch -q --depth=1 https://github.com/hyperpolymath/proven-cicd-and-workflows.git "$sha" + git -C "$tmp" checkout -q --detach "$sha" for phase in detect theatre prove; do echo "── creusot-check[$phase]" CREUSOT_GATE_PHASE="$phase" WORKING_DIRECTORY="$PWD" CREUSOT_FACTS="$tmp/facts" \ - bash "$tmp/check.sh" + ENFORCE_HOLLOW=true PROVE_ARGS="" CREUSOT_SUITE_REVISION="$sha" \ + bash "$tmp/actions/creusot-check/check.sh" done # ═══════════════════════════════════════════════════════════════════════════════ diff --git a/docs/CREUSOT.adoc b/docs/CREUSOT.adoc index ac14140..cf02281 100644 --- a/docs/CREUSOT.adoc +++ b/docs/CREUSOT.adoc @@ -269,9 +269,9 @@ just verify-mirror # Discharge the obligations — the only step that turns "stated" into "proved" just verify-creusot -# The estate gate, verbatim, at the pinned cicd-suite commit -just verify-gate $(grep -oE 'cicd-suite/\.github/workflows/creusot-gate\.yml@[0-9a-f]{40}' \ - .github/workflows/creusot.yml | head -1 | sed 's/.*@//') +# The estate gate script at the commit pinned in the workflow +just verify-gate "$(sed -nE 's|^[[:space:]]+uses:[[:space:]]+hyperpolymath/proven-cicd-and-workflows/\.github/workflows/creusot-gate\.yml@([0-9a-f]{40})[[:space:]]*(#.*)?$|\1|p' \ + .github/workflows/creusot.yml)" ---- == Historical local gate-wiring check