Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ either loses real function — keep both.

== Secret scanning is single-sourced

`secret-scanner.yml` calls the standards reusable (gitleaks + a Rust-secrets
check). An inline TruffleHog job was removed: the reusable deliberately retired
`secret-scanner.yml` calls the suite reusable in proven-cicd-and-workflows (gitleaks + supplemental secret
checks). An inline TruffleHog job was removed: the standards reusable deliberately retired
TruffleHog as redundant with gitleaks, so re-adding it was duplicated work, not
extra coverage.

Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/actions.lock
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# This file is machine-generated by `gh actions-lock`.

Check failure on line 1 in .github/workflows/actions.lock

View workflow job for this annotation

GitHub Actions / Hypatia neurosymbolic scan

[hypatia] Invalid .github/workflows/actions.lock: {:self_sha_leaf_ref, ["actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9", "actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a", "denoland/setup-deno@22d081ff2d3a40755e97629de92e3bcbfa7cf2ed", "dtolnay/rust-toolchain@2c7215f132e9ebf062739d9130488b56d53c060c", "editorconfig-checker/action-editorconfig-checker@840e866d93b8e032123c23bac69dece044d4d84c", "erlef/setup-beam@54075bcc5e249e4758d363f27d099f55d843f124", "github/codeql-action@f205ea1c3313d32999d8d6a48b4f6530d4437b38", "ossf/scorecard-action@2d1146689b8cda280b9bc96326124645441f03bc", "oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6", "swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4", "webfactory/ssh-agent@e83874834305fe9a4a2997156cb26c5de65a8555"]}. Regenerate and verify it with gh actions-lock.
# Do not edit by hand; run `gh actions-lock` to update.
# Docs: https://gh.io/actions-lockfile
version: 'v0.0.3'
Expand Down Expand Up @@ -27,7 +27,6 @@
- 'metadatastician/standards@bd0df9ead7faf0cdfe0e13e7966d91e28d0101d4'
'.github/workflows/label-triage.yml': []
'.github/workflows/labels.yml': []
'.github/workflows/lock-sync-gate.yml': []
'.github/workflows/mirror.yml':
- 'metadatastician/standards@75bd5994470661a099df562d6d5ad2fe744dbd66'
'.github/workflows/openssf-compliance.yml':
Expand All @@ -41,6 +40,8 @@
- 'haskell-actions/setup@v2.12.1'
'.github/workflows/proof-kernel.yml':
- 'actions/checkout@v7.0.1'
'.github/workflows/proven-lock-gate.yml':
- 'actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1'
'.github/workflows/quality.yml':
- 'actions/checkout@v7.0.1'
- 'editorconfig-checker/action-editorconfig-checker@v3.0.0'
Expand All @@ -53,12 +54,8 @@
- 'actions/checkout@v7.0.1'
'.github/workflows/runtime-policy.yml':
- 'actions/checkout@v7.0.1'
'.github/workflows/rust-ci.yml':
- 'metadatastician/standards@bd0df9ead7faf0cdfe0e13e7966d91e28d0101d4'
'.github/workflows/scorecard.yml':
- 'metadatastician/standards@bd0df9ead7faf0cdfe0e13e7966d91e28d0101d4'
'.github/workflows/secret-scanner.yml':
- 'metadatastician/standards@b8f60511e76c9015d86990317162dce653c92fe1'
'.github/workflows/security-policy.yml':
- 'actions/checkout@v7.0.1'
'.github/workflows/sonarqube.yml':
Expand Down
62 changes: 62 additions & 0 deletions .github/workflows/agda-gate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
# SPDX-License-Identifier: MPL-2.0
# Agda Gate — thin caller of the estate's Agda gate in
# hyperpolymath/proven-cicd-and-workflows. Enforcing: the pinned Agda 2.6.3
# checks every module the MANIFEST lists under --safe --without-K
# --cubical-compatible --no-libraries --ignore-interfaces --double-check, a
# .agda file the MANIFEST does not list fails, and each reject fixture must
# be refused on its marked line. Planted controls prove the prover can say no
# before its green is credited.
#
# Require `agda / Agda verdict`.
#
# Full-SHA pin, DE-ONBOARDED from actions.lock, no `secrets:` — see
# rust-ci.yml in this directory for why. This gate calls no other reusable
# workflow, so `contents: read` is all it holds.
name: Agda Gate

on:
push:
branches: [main, master]
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
contents: read

jobs:
agda:
uses: hyperpolymath/proven-cicd-and-workflows/.github/workflows/agda-gate.yml@50a443f01b1b85e4957b893a6f1a0ed2e8a52459 # cicd-suite main
# Inputs (optional; the defaults are hvn-dehallucinator's layout):
# manifest: verification/proofs/agda/MANIFEST
# proof_dir: verification/proofs/agda # every .agda here must be listed
# include_dirs: verification/proofs/agda # whitespace-separated
# siblings_script: scripts/fetch-siblings.sh # '' if the tree has no pinned siblings
# siblings_include_glob: _build/dependencies/*/src
# reject_dir: tests/reject # '' if the tree has no reject fixtures

# The ruleset requires the context `agda-kernel`, which this repository's
# proof-kernel.yml used to produce from its own Agda job. The suite gate
# above replaced that job, so this thin job keeps the required context
# reporting and makes it reflect the suite verdict. It runs under always():
# a skipped job would read as passing to a required check, so anything but
# a green suite gate fails here. It holds no permission and runs no repository code.
agda-kernel:
name: agda-kernel
needs: [agda]
if: ${{ always() }}
runs-on: ubuntu-24.04
timeout-minutes: 5
permissions: {}
env:
AGDA_GATE_RESULT: ${{ needs.agda.result }}
steps:
- name: Agda kernel verdict is the suite gate's verdict
run: |
if [ "$AGDA_GATE_RESULT" != success ]; then
echo "::error::agda-kernel: the suite Agda gate finished '$AGDA_GATE_RESULT', not success. Red."
exit 1
fi
echo "agda-kernel: the suite Agda gate (agda / Agda verdict) succeeded."
51 changes: 51 additions & 0 deletions .github/workflows/lean-axioms-gate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# SPDX-License-Identifier: MPL-2.0
# Lean Axioms Gate — thin caller of the estate's Lean Axioms gate in
# hyperpolymath/proven-cicd-and-workflows. Enforcing, for standalone
# (non-Lake) files: the pinned Lean 4.15.0 compiles each listed file, then the
# gate's own checker re-checks the compiled module out of process: kernel
# replay of every constant, and any axiom a safe constant uses (sorryAx,
# Classical.choice, propext, Quot.sound, a declared axiom) fails, module-wide.
# Nothing the file prints is evidence. Lake projects are proof-runner-check's,
# which builds them and does not judge axioms. Planted controls prove the
# judge can say no before its green is credited.
#
# Require `lean-axioms / Lean axioms verdict`.
#
# Full-SHA pin, DE-ONBOARDED from actions.lock, no `secrets:` — see
# rust-ci.yml in this directory for why. This gate calls no other reusable
# workflow, so `contents: read` is all it holds.
name: Lean Axioms Gate

on:
push:
branches: [main, master]
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
contents: read

jobs:
lean-axioms:
uses: hyperpolymath/proven-cicd-and-workflows/.github/workflows/lean-axioms-gate.yml@50a443f01b1b85e4957b893a6f1a0ed2e8a52459 # cicd-suite main
with:
files: verification/proofs/lean4/Haruspex.lean
# The 26 theorems the HD-H-RL correspondence record names
# (docs/status/RECHECK-CORRESPONDENCE.adoc). Each must resolve to a constant
# of the listed module; axioms are judged module-wide and none is allowed.
required_theorems: >-
holdsAll_sound holdsAll_complete candidate_mem mem_candidate
entailed_sound refuted_sound refuted_refutes unresolved_sound
inconsistent_sound entailed_complete identified_sound
unidentified_sound unidentified_refutes no_candidate_sound
identified_complete actual_sound listing_complete_sound sound_given
sound_given_query haruspex to_finite from_finite candidates_match
presence_match identity_match outputs_match
# Inputs (optional; the defaults are hvn-dehallucinator's layout):
# files: verification/proofs/lean4/Haruspex.lean # whitespace-separated, no Lake project
# required_theorems: "name1 name2" # each must exist in a listed module
# allowed_axioms: "" # e.g. "propext"; sorryAx is never allowable
# # (empty by default: name the theorems that matter)
64 changes: 0 additions & 64 deletions .github/workflows/lock-sync-gate.yml

This file was deleted.

31 changes: 31 additions & 0 deletions .github/workflows/main-estate-audit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# SPDX-License-Identifier: MPL-2.0
name: Central Estate CI/CD Audit

# Thin caller of the estate audit, which lives in hyperpolymath/proven-cicd-and-workflows as
# a reusable workflow and reports five component checks: governance,
# hygiene, manifests, languages, advisory. Do not copy the audit's steps in
# here. A copy freezes this repository at whatever cicd-suite commit its
# actions.lock happened to hold, and fixes made upstream never arrive.
#
# The pin is a full SHA, advanced weekly by track-estate-audit.yml (a PR
# whose own run of this audit is the check).
#
# ⚠ DE-ONBOARDED from actions.lock, deliberately, like the secret-scanner
# caller. A reusable workflow onboarded cross-repo startup-fails with zero
# jobs under sha_pinning_required (see the header of cicd-suite's
# main-estate-audit.yml). Do not run a full-directory `gh actions-lock` that
# re-onboards this file. If one does, cicd-suite/scripts/deonboard-estate-audit.sh
# reverses it.

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

permissions:
contents: read

jobs:
estate:
uses: hyperpolymath/proven-cicd-and-workflows/.github/workflows/main-estate-audit.yml@50a443f01b1b85e4957b893a6f1a0ed2e8a52459 # cicd-suite main
77 changes: 20 additions & 57 deletions .github/workflows/proof-kernel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,18 @@
# SPDX-License-Identifier: MPL-2.0
# SPDX-FileCopyrightText: 2026 Jonathan D.A. Jewell
#
# Proof Kernel — the Agda gate, scripts/check-agda-kernel.sh:
# * residual-evidence-types fetched at its pin (scripts/fetch-siblings.sh);
# * every module in verification/proofs/agda/MANIFEST under
# --safe --without-K --cubical-compatible --no-libraries --ignore-interfaces --double-check;
# * every tests/reject fixture refused at its own declaration;
# then the gate's own negative controls, so a vacuous gate cannot stay green.
# A second job runs the TLA+ gate, scripts/check-tla.sh: TLC at a pinned,
# hash-checked release model-checks verification/proofs/tlaplus/Engine.tla, and
# must refute the original, caller-asserted engine (Original.cfg).
# A third job rechecks the Haruspex theory theorems in Rocq and Lean
# (scripts/check-recheck-legs.sh), standards PROOF-POLICY section 2.
# Proof Kernel. What stays local here:
# * models-agree-with-engine (HD-F-E): tests/difftest.sh runs the real engine
# and requires EngineCore.agda and Engine.tla to reproduce every trace;
# * recheck-legs: the mechanical cross-check of the 546-row explorer table in
# Agda, Rocq and Lean (tests/crosscheck/check.sh).
# What moved to the estate suite (hyperpolymath/proven-cicd-and-workflows, one
# full-SHA pin per caller): the Agda kernel gate (agda-gate.yml, which also
# carries the thin `agda-kernel` job the ruleset requires), the TLA+ model
# check (tla-gate.yml), and the Rocq and Lean axiom judgements (rocq-gate.yml,
# lean-axioms-gate.yml), which replace scripts/check-recheck-legs.sh's reading
# of printed text with out-of-process kernel checks. The scripts stay in the
# tree and run locally; CI no longer calls them.
# Agda comes from the Ubuntu 24.04 archive (agda-bin 2.6.3), the version the
# MANIFEST was ground-truthed with.

Expand All @@ -27,46 +28,6 @@ concurrency:
permissions:
contents: read
jobs:
agda-kernel:
runs-on: ubuntu-24.04
timeout-minutes: 20
env:
LC_ALL: C.UTF-8
LANG: C.UTF-8
steps:
- name: Checkout
uses: actions/checkout@v7.0.1
# PROOF-POLICY section 6 deviation: Agda from the Ubuntu archive, not the
# Guix manifest (guix.scm carries no proof toolchain). The next step
# asserts the pinned version and digest and fails on a mismatch.
- name: Install Agda (Ubuntu 24.04 archive)
run: |
sudo apt-get update -q
sudo apt-get install -y -q --no-install-recommends agda-bin
- name: Assert the pinned toolchain
run: bash scripts/assert-toolchain.sh agda
- name: Agda kernel gate
run: bash scripts/check-agda-kernel.sh
- name: Gate refuses its negative controls
run: bash tests/proofs/agda_kernel_gate_test.sh
tla-model-check:
runs-on: ubuntu-24.04
timeout-minutes: 15
env:
JAVA: /usr/lib/jvm/java-21-openjdk-amd64/bin/java
steps:
- name: Checkout
uses: actions/checkout@v7.0.1
# PROOF-POLICY section 6 deviation: the Java runtime from the Ubuntu
# archive; the TLC jar is fetched by scripts/check-tla.sh and SHA-256 pinned.
- name: Install Java 21 (Ubuntu 24.04 archive)
run: |
sudo apt-get update -q
sudo apt-get install -y -q --no-install-recommends openjdk-21-jre-headless
- name: Assert the pinned toolchain
run: bash scripts/assert-toolchain.sh java
- name: TLA+ gate (pinned TLC; the original engine must be refuted)
run: bash scripts/check-tla.sh
models-agree-with-engine:
# HD-F-E: tests/difftest.sh runs the real engine over 3,183 command
# sequences and requires EngineCore.agda (via the proof kernel) and
Expand All @@ -92,10 +53,14 @@ jobs:
run: bash tests/difftest.sh
recheck-legs:
# PROOF-POLICY section 2: the Rocq and Lean recheck legs of the Haruspex
# theory theorems (Haruspex.agda, HaruspexExplorer.agda), re-proved. Each
# leg must compile and report no axiom for every theorem the correspondence
# record names (scripts/check-recheck-legs.sh); then the gate's negative
# controls. docs/status/RECHECK-CORRESPONDENCE.adoc records the bridge.
# theory theorems (Haruspex.agda, HaruspexExplorer.agda), re-proved. That
# each leg compiles with no axiom, and names every theorem the
# correspondence record lists, is judged by the suite's rocq-gate.yml and
# lean-axioms-gate.yml (own workflows), no longer by a step here. This job
# keeps the cross-check of the explorer table in all three kernels, and the
# negative controls of scripts/check-recheck-legs.sh, which stays in the
# tree but is no longer run by CI. docs/status/RECHECK-CORRESPONDENCE.adoc
# records the bridge.
runs-on: ubuntu-24.04
timeout-minutes: 45
env:
Expand All @@ -120,8 +85,6 @@ jobs:
echo /opt/lean/lean-4.15.0-linux/bin >> "$GITHUB_PATH"
- name: Assert the pinned toolchain
run: bash scripts/assert-toolchain.sh coq lean agda
- name: Recheck legs (Rocq and Lean, no axioms)
run: bash scripts/check-recheck-legs.sh
- name: Gate refuses its negative controls
run: bash tests/proofs/recheck_legs_test.sh
# The mechanical bridge: Agda (residual-evidence-types' own checker),
Expand Down
Loading
Loading