Skip to content

Latest commit

 

History

368 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Proven CI/CD and Workflows

An atlas of composable repository assurance: security, governance, build hygiene, contracts, language verification and ecosystem integration.

The workflow scope proposal keeps CI/CD and broader repository workflows together while preserving the current published coordinate.

Canonical repository and migration status

Note

This section came from hyperpolymath/proven-cicd when its history was merged into this repository on 2026-11-10. It describes that repository as of 2026-11-07. This repository is hyperpolymath/proven-cicd-and-workflows, the renamed cicd-suite. The owner has stated that the two repositories are to be one, under this name. The text below is kept as a dated record until the migration status is rewritten.

hyperpolymath/proven-cicd is the canonical destination for this suite. The GitHub import retained the existing Git history and both advertised branch heads, including the open Creusot execution-evidence work. The import checkpoint is recorded in the canonical history and rollout record. The legacy hyperpolymath/cicd-suite repository remains available for existing full-SHA callers and its review/run evidence.

Migration is staged: repository protections, two real caller canaries and the remaining caller inventory must qualify before an estate-wide cutover. Existing full-SHA pins keep their source identity; this repository’s scanner caller is a coordinate-only canary at the already published a12b2b4 source. No release or gate is certified merely by the new repository name.

The Idris2 verdict kernel is present. Its operational GitHub adapter remains unpromoted: review reproduced an invalid duplicate-field response becoming a false passed verdict, and the repair must complete its expanded controls before publication. See the checkpoint for the exact remaining boundary.

Discover the suite

Start with the CI/CD Capability Atlas: 36 composite actions in 8 clades, organised by both purpose and nature. Each capability has a source link, an assurance boundary and a status: enforcing, tool-dependent, advisory or unfinished. Reusable workflows and caller templates are linked where provided. This is the visitor catalogue, not repository-chora metadata.

The stamped, shadow-only proven coverage collector gathers raw and proven coverage reports for Hypatia to judge.

Clade Explore

Sentinel

Security scanning & trusted result receipts

Covenant

Governance, attribution & licensing

Forge

Source debt, formats & build hygiene

Schema

Manifest & contract validation

Proof

Language CI, proof execution & interface policy

Bridge

BoJ applicability & external analysis tools

Observatory

Advisory signals, with limitations made explicit

Frontier

Unfinished capabilities, not deployable assurance

Clades are a discovery taxonomy, not new runtime packages or a claim that every gate formally verifies code. Existing action paths and execution semantics are unchanged. The catalogue is generated from a validated inventory; CI rejects uncatalogued actions and stale pages.

See the capability assurance matrix for linked regression controls, explicit evidence gaps and consumer receipts, and the suite-first completion ledger for remaining shared work. These records do not certify every capability.

The experimental CI profile contract adds three proposed mother profiles, typed slots, validation controls and a bounded pilot manifest. It is non-enforcing and does not qualify consumer CI or add a workflow.

Estate-wide audit

A subset of the suite is orchestrated by the reusable workflow .github/workflows/main-estate-audit.yml. Each repository calls that workflow from a small caller; it does not copy it (see Consuming it). Dedicated language and scanner workflows are separate entry points, not automatically part of the estate audit.

The audit reports five component checks, one check run each:

Check Gates

governance

required-files · spdx-license · affirmation · referencing

hygiene

code-hygiene · formatting · linguist · secrets · vaulted-tokens

manifests

manifest · recipes-set

languages

idris2-abi · zig-unified-api-adapter · boj-cartridge

advisory

the seven advisory gates below; this check cannot fail, by design

Within a component every gate runs even after an earlier gate fails, so one push reports every failing gate. Before this change one job ran all 26 in sequence, and the first failure hid the rest behind "estate-audit: failing after 8s".

Status

Published 2026-08-07. Defects (1)–(3) are fixed and verified against two live estate repositories; (4) is partly fixed; (5) is closed by removing the stubs from the workflow; (6) is open; (7) is fixed by making an absent tool a not_run/exit 2 instead of a pass.

Before wiring this into a repository, read Known defects and Consuming it.

What actually enforces in the original audit inventory

The following 26-action baseline is not the total suite inventory. The current catalogue includes the four later language gates, bounded secret scanner and official SonarCloud receipt verifier as well.

Of the original 26 actions, 17 can fail a build and 9 cannot — and neither group is one kind of thing: the 17 split into 14 always-in-the-audit enforcing gates and 3 tool-dependent gates that also refuse (not_run, exit 2) when their tool is absent, while the 9 split into 7 advisory gates and 2 unimplemented stubs. Conflating them was the original error.

Class Actions Meaning

Enforcing (14)

affirmation · boj-cartridge · code-hygiene · formatting · idris2-abi · linguist · manifest · recipes-set · referencing · required-files · secrets · spdx-license · vaulted-tokens · zig-unified-api-adapter

Can fail. A green tick means something.

Advisory (7)

badges · gitsea · hosting · metrics · tests-benches · trust-humans · www-compliance

Signal-only checks; some outputs are simulated or heuristic. Warnings are not certification or a successful live-service check. See the catalogue cards for each capability’s actual boundary.

Tool-dependent, not in the audit (3)

contractile-validation · custom-tools · proof-runner

Can fail — and can refuse: with a subject present but its tool (pons/panic-attack, idris2/lake) absent they report status=not_run and exit 2, NO CHECK WAS PERFORMED. main-estate-audit installs none of those tools, so it no longer runs them; callers that install the tools may call them directly. See (7).

Unimplemented (2)

prat · semantic-audit

Stubs. Not referenced by the audit workflow. See (5).

The four language gates added 2026-10-14 (Rust CI, Creusot, SPARK, miniKanren) are enforcing by construction — every check.sh exits 1 on a defect and 2 when no check could be performed — and are classified tier by tier in Language gates below.

Four prover gates were added 2026-11-16 (Agda, Rocq, Lean axioms, TLA+). All four are enforcing: each check.sh exits 1 on a defect and 2 when no check could be performed. None is advisory and none is a stub. Each runs planted controls first, so a prover that cannot say no gives exit 2, not green. They are listed under Prover gates below. Enforcing is not the same as proven: a green tick means the pinned tool accepted what the caller listed, nothing more.

formatting and recipes-set moved out of the toothless column; the remaining advisory seven are advisory by design, which is defensible — provided nobody reads their green tick as a guarantee. Renaming them *-advisory would settle that permanently.

Verify inventory coverage and generated pages at any time:

bash scripts/build-capability-catalogue.sh --check
bash tests/capability-catalogue.sh

Classifications are reviewed metadata, not inferred by grepping for exit 1. That string alone cannot establish applicability, enforcement or real execution. The advisory cards explicitly flag simulated hosting output and the limits of log-marker counts; they must not be read as live health checks or proof certification. The metrics advisory leaves absent logs and proof status unassessed. The advisory repair evidence records the badge-applicability and metrics regression controls, including before/after observations on two real repository snapshots.

A gate that cannot fail is worse than no gate, because it is credited as assurance. The advisory seven should either grow teeth or be renamed so nobody reads their green tick as a guarantee.

Known defects

1. FIXED — code-hygiene-check scanned for the word, not the marker. It ran one case-insensitive, unanchored git grep over the whole tree, so “admit” matched “admitted”, “sorry” matched ordinary English, any document discussing a marker failed, and believe_me failed repos whose sanctioned axioms are their declared trusted base. Measured 112 matching files in one repo and 313 in another. Now two scans with different semantics — debt markers case-sensitive and whole-word in source only; circumventions in proof languages only, with comments filtered. Repos may exempt paths via .cicd-hygiene-allow. Result: 112 → 2 and 313 → 3, all true positives.

2. FIXED — required-files-check manufactured filler. Presence-only checking meant the cheapest way to pass was template boilerplate, and that is exactly what happened in the estate. It now checks presence, then format, then substance: documents need real content and no placeholders, ARCHITECTURE must name a directory that actually exists, and MAINTAINERS must mention the repository owner — which catches a template shipping its author’s handle. CODEOWNERS is judged on whether it assigns an owner, not on length.

3. FIXED — the suite contradicted itself. required-files-check hard-failed a repo for lacking GOVERNANCE.md while formatting-check warned that same file should be .adoc. Required-files now accepts every policy-legal form, and formatting-check owns the preference. Verified: a repo passes both gates with .adoc (silently) or with .md (with a nudge).

4. PARTLY FIXED — the toothless column is down from 13 to 7, and now triaged (the three tool-dependent gates it also held are defect (7)). recipes-set was a stub that printed “Checking Justfile syntax…” with the command commented out and then declared success; it now parse-checks Justfiles and Makefiles and fails on a file that does not parse. formatting gained teeth in (3). The seven remaining advisories are advisory by design and defensible; the honest fix for them is a rename to *-advisory, not teeth.

5. CLOSED — two actions are unimplemented stubs, and the workflow no longer runs them.

  • semantic-audit is pure echo with “Placeholder for actual invocation”. cicd-squabbler now exists, but is a gate diagnosis and legitimate-remediation engine, not evidence of the imagined audit --semantic interface. Keep this stub out of enforcement; do not confuse pipeline diagnosis with semantic verification.

  • prat claims to validate “PRAT testing”, but PRAT is defined nowhere in the estate — a search of every repository turns up only further copies of the workflow that calls it. Its current check passes any repository that has a tests/ directory or contains the letters “prat” anywhere. It cannot be honestly implemented until somebody says what PRAT is.

A stub that prints success cannot be credited as assurance, so neither step is in main-estate-audit.yml any more. The two directories stay under actions/ for now, for two reasons. Repositories still running a pre-caller copy of the workflow reference them by path. And tests/lock-transitive-closure.sh requires that the SHA the workflow pins serves the whole actions/ tree at HEAD. Move them to draft/ once the estate runs the caller (see Consuming it).

6. OPEN — six actions use bare git grep with no path restriction (idris2-abi, metrics, secrets, spdx-license, vaulted-tokens, zig-unified-api-adapter) and may inherit a milder form of defect (1).

7. FIXED — pass-on-absence: a gate certifying a scan that never ran. custom-tools-check ("Panic Attack & Pons Gate") printed “Custom tools validation passed” when neither pons nor panic-attack was on PATH — the normal case on GitHub runners — so every consumer of main-estate-audit was certifying scans that never ran. It now lives in check.sh (estate convention: exit 1 = ran and failed, exit 2 = NO CHECK WAS PERFORMED) with a status output (passed/failed/not_run), and is out of main-estate-audit, which installs neither tool; panic-attack/pons evidence comes from the standards Hypatia lane’s envelopes.

The sibling audit of every *-check composite found the same shape twice more, both fixed the same way and both removed from the audit for the same reason: contractile-validation-check echoed “Invoking … runner…” in front of a commented-out command and printed “Contractile Validation Passed.” unconditionally (now: a detection step finds the declarations — with the canonical Intentfile stem, not Intendfile — and the estate DEED validator, the deed-ecosystem/validate-action manifest-check already pins, runs only when they exist; no declarations ⇒ explicit not_applicable, never a pass; there is no deed-lint CLI and an earlier draft of this fix invented one from the placeholder comment), and proof-runner-check had its only invocation commented out and printed “All detected proofs executed successfully.” regardless (now: proof project present + idris2/lake absent ⇒ not_run/exit 2; no project ⇒ not_applicable).

Audited and not the same defect: recipes-set already exits 1 when its tool is missing and a recipe file is present (the model for this fix); the language gates (rust-ci/creusot/spark/kanren) already exit 2 on a missing tool; idris2-abi, zig-unified-api-adapter, boj-cartridge, affirmation and referencing say “Skipping”/::notice:: and exit 0 only when their subject is absent — not applicable, not a scan that failed to run — and manifest delegates to real validator actions. The remaining advisory gates invoke no external tool, so absence-of-tool cannot arise; two of them (vaulted-tokens, www-compliance) did print “Passing…”/“…passed” for the no-subject case and now say not applicable … (this is not a pass) instead. tests/pass-on-absence.sh holds the controls: tool-absent ⇒ exit 2 with no success line, stand-in tools ⇒ invoked for real, failing stand-in ⇒ exit 1.

Blast radius

An earlier rollout_estate.sh copied the whole workflow into 199 repositories. Each copy froze at whatever cicd-suite commit its actions.lock held. That is why a gate fixed here kept failing downstream. The composite-shell fix to required-files (#32, 2026-09-22) had still not reached hyperpolymath/marches on 2026-10-14, because its lock held 5a10b72, the commit before it. The caller replaces those copies.

The workflow now has permissions: contents: read and pins actions/checkout and every gate by full SHA.

Consuming it

A repository calls the audit; it does not copy it. Three pieces:

  1. templates/estate-audit-caller.yml becomes .github/workflows/main-estate-audit.yml, with __CICD_SUITE_SHA__ replaced by a full cicd-suite commit SHA:

    jobs:
      estate:
        uses: hyperpolymath/proven-cicd-and-workflows/.github/workflows/main-estate-audit.yml@<40-hex sha> # cicd-suite main

    Pin a full SHA, never @main or a tag: the account enforces sha_pinning_required, and @main would silently change the gate in every consuming repository at once. Pin a commit that contains the migrated main-estate-audit.yml (1fd5e63 or later). An earlier commit still names hyperpolymath/cicd-suite in its steps.

  2. The caller must be de-onboarded from the repository’s actions.lock. Onboarded, a cross-repository reusable-workflow call startup-fails with zero jobs. scripts/deonboard-estate-audit.sh <repo> removes the entry and prunes the dependencies only it reached, comparing owner and repository names case-insensitively as GitHub does. It is the estate-audit entry point to scripts/deonboard-workflow.sh, the one implementation every de-onboard goes through. It needs mikefarah yq v4, and it is idempotent. It refuses any actions.lock schema it has not been tested on; tests/deonboard-lock-schemas.sh holds one fixture per supported schema (v0.0.2, v0.0.3) and runs each through both entry points.

  3. templates/track-estate-audit.yml becomes .github/workflows/track-estate-audit.yml. Weekly, it opens a PR that moves the pin to cicd-suite HEAD; that PR’s own audit run is the check. It needs an AUTOMATION_TOKEN secret (a fine-grained token on that repository with Contents, Pull requests and Workflows set to read/write), because GITHUB_TOKEN may not write under .github/workflows/. Its one uses: is step-security/harden-runner at a full SHA (egress to GitHub only); a repository that carries actions.lock must add that record (gh actions-lock) or the first run dies at Set up job.

rollout_estate.sh does all three for every local estate clone. It writes files and does not commit them.

Language gates (Rust, Creusot, SPARK, miniKanren)

Added 2026-10-14. Four reusable workflows, consumed exactly like the estate audit (a thin caller at a full SHA, de-onboarded from actions.lock), and each built so that its oracle has demonstrably said no before its green is credited.

Reusable Check contexts (caller job id, then job name) Oracle

.github/workflows/rust-ci.yml

rust-ci / Detect Cargo.toml · Cargo check + clippy + fmt · Cargo test · Cargo doc (warnings denied) · MSRV check · cargo-deny (advisories, bans, sources) · llvm-cov line coverage (opt-in) · Rust CI verdict

cargo, every call --locked, every compile -D warnings, doctests run, MSRV builds, cargo-deny. The verdict job turns a skipped mandatory job into red.

.github/workflows/creusot-gate.yml

creusot / Detect Creusot obligations · Creusot theatre gate · Creusot proofs (cargo creusot prove) · Creusot verdict

Creusot at a pinned release. A planted FALSE contract must be refused and a planted TRUE one proved before the caller’s crates are proved; otherwise the verdict is VOID (exit 2), never green.

.github/workflows/spark-gate.yml

spark / SPARK theatre gate (standards) · Detect SPARK units · GNATprove · SPARK verdict

standards' SPARK Theatre Gate (claims side, called at a pin, not copied) plus GNATprove at pinned GNAT/GNATprove versions via Alire, --checks-as-errors=on --warnings=error, with the same planted controls.

.github/workflows/kanren-gate.yml

kanren / miniKanren gate

The relations are RUN by the interpreter their dialect names (guile, Chez, racket); relations with no goal-level test fail; impure operators are listed (enforceable); a claim with no relations is named.

Why. From 2026-09-29 every rust-ci / Cargo check + clippy + fmt calling standards' rust-ci-reusable.yml at a pre-fix SHA died in six seconds: the reusable pinned dtolnay/rust-toolchain by commit and passed no toolchain:, and a SHA ref carries no channel (plasma-parser-writer#105). The fix landed upstream; the callers stayed pinned behind it. actions/rust-ci-check/resolve.sh now computes the channel before any action runs and refuses an empty one, and the previous gate’s silent holes are closed: cargo test --all-targets never ran a doctest, nothing denied rustc warnings outside clippy, cargo doc never ran, the declared rust-version was never built, and no supply-chain check ran unless opted in.

Tiers. Within each gate the theatre tier (a claim with nothing behind it) and the oracle tier (the prover or interpreter run) are enforcing and exit 1; the hollow and purity tiers warn by default and become enforcing through an input (enforce_hollow, enforce_zero_contract, enforce_purity, enforce_claims), mirroring standards' SPARK T2. A tree with nothing to gate gets a ::notice:: that nothing ran — never a tick read as assurance. A missing tool is exit 2, "no check was performed".

How the scripts are pinned. Each reusable job reads the caller’s own uses: line back out of the caller’s checked-out workflow file (GITHUB_WORKFLOW_REF names it; inside a reusable the github context is the caller’s), checks this repository out at that SHA into .cicd-suite/ and runs actions/*-check/check.sh from there, after scripts/verify-suite-checkout.sh has proved the checkout is that commit. A caller pinned at a SHA runs exactly that commit’s scripts, with no second pin to drift and no repin commit after a change to actions/. The caller’s tree is read through git ls-files, so the untracked .cicd-suite/ is invisible to it.

Self-test. .github/workflows/language-gates-self-test.yml runs each gate’s test.sh: a fixture, a planted defect per claim, the exact composite shell, and a mutant where one applies. The prover tiers are exercised against stand-in oracles there; the planted controls in the check scripts exercise the real provers on every live run.

Consuming. templates/rust-ci-caller.yml, creusot-gate-caller.yml, spark-gate-caller.yml, kanren-gate-caller.yml and the four prover callers (agda-gate-caller.yml, rocq-gate-caller.yml, lean-axioms-gate-caller.yml, tla-gate-caller.yml) become .github/workflows/<name>.yml with __CICD_SUITE_SHA__ replaced; scripts/deonboard-workflow.sh <repo> <workflow-path> de-onboards each (the estate-audit script now delegates to it); templates/track-estate-audit.yml moves every cicd-suite pin weekly by PR. rollout_language_gates.sh does all of it per clone, by what the tree contains. Keep the caller job ids above: they are the context strings branch rules require.

Not yet witnessed live (2026-10-14). The Creusot and GNATprove install steps and the exit-code contract of cargo creusot prove and gnatprove --checks-as-errors=on were validated against the tools' documentation and stand-ins, not against a live runner. The planted controls are the safeguard: if either prover cannot refuse a false contract on the runner, the gate reports VOID rather than green. The first live subject for SPARK is cicd-squabbler’s spark/squabble_gate.gpr; no repository in the first rollout carries Creusot obligations yet.

Prover gates (Agda, Rocq, Lean axioms, TLA+)

Added 2026-11-16, built from the proof gates in metadatastician/hvn-dehallucinator’s own `proof-kernel.yml. Same shape as the language gates above: a reusable workflow called at a full SHA that checks this repository out at the caller’s pin and runs scripts/verify-suite-checkout.sh first; one actions/<x>-check/ per prover (action.yml, check.sh, test.sh); one thin caller template. They do not use the stamped "proven content" pattern, which is for the lock and pin gates.

Every gate has three jobs. detect counts the sources. prove asserts the pinned toolchain, runs planted controls, then judges the caller’s files. verdict is the one context to require. A skipped prove with sources present is VOID, not green. A toolchain that is not the pinned build is exit 2. Defaults reproduce hvn-dehallucinator’s layout; another layout sets the inputs.

Gate Require this check context Pinned toolchain

agda-gate.yml
templates/agda-gate-caller.yml

agda / Agda verdict

Agda 2.6.3: Ubuntu 24.04 agda-bin 2.6.3-1build1, /usr/bin/agda at sha256 852806…af00d

rocq-gate.yml
templates/rocq-gate-caller.yml

rocq / Rocq verdict

Coq 8.18.0: coq 8.18.0+dfsg-1build2, /usr/bin/coqc at sha256 f14ab0…3ec, /usr/bin/coqchk at sha256 788a7a…c87

lean-axioms-gate.yml
templates/lean-axioms-gate-caller.yml

lean-axioms / Lean axioms verdict

Lean 4.15.0: archive lean-4.15.0-linux.tar.zst at sha256 af71a2…85c9, bin/lean at sha256 eacf75…a215

tla-gate.yml
templates/tla-gate-caller.yml

tla / TLA verdict+

tla2tools.jar v1.7.4 at sha256 936a26…0e88; Java 21 from openjdk-21-jre-headless (version asserted, digest printed, not pinned: the archive ships security rebuilds)

The full digests are in the header of each check.sh.

  • Agda. Checks every module the MANIFEST lists under agda --safe --without-K --cubical-compatible --no-libraries --ignore-interfaces --double-check (standards PROOF-POLICY §2.1). Fails on any .agda file under proof_dir that the MANIFEST does not list, and on a .agda file outside every configured directory. Optional pinned siblings come from a caller script (siblings_script); the gate cannot verify what that script fetches. Every fixture under reject_dir (found recursively) must be refused with a type error on the one line it marks -- refused here. A scope or parse error does not count. Inputs: manifest, proof_dir, include_dirs, siblings_script, siblings_include_glob, reject_dir. Planted controls: a true module accepted, a false one refused on its marked line, a postulate refused under --safe.

  • Rocq. coqc compiles each file in files. Then coqchk -o, a separate program, re-checks the compiled modules and everything they Require. Its CONTEXT SUMMARY must list no axiom (an Admitted lemma and a Parameter are axioms), no constant relying on type-in-type, no unsafe (co)fixpoint (guard checking was off) and no inductive whose positivity is assumed. The judgement is module-wide: a theorem needs no Print Assumptions to be covered. Nothing the file prints is read, so a Notation that makes Check print "Closed under the global context" over a real Axiom fails. A summary in an unexpected shape is exit 2. coqchk’s summary cannot see an axiom inside a functor body that is never instantiated, nor an unsafe fixpoint hidden by a sealed module, so the gate refuses, fail-closed and by text, any Module M : S or <: S, any functor Module F (X : T), Unset Guard/Positivity/Universe Checking, #[bypass_check], Load, Add LoadPath and Declare ML Module. The scan is of the raw text, comments included: a false refusal is accepted, a false pass is not. The probe module for required names has a name no listed file has. required_theorems (empty by default) must each resolve to a constant of a listed module, judged by the exit code of a file of the gate’s own; a name may resolve to an abbreviation. allowed_axioms (empty by default) lists full names as coqchk prints them. Axioms of the whole Require closure count, used or not. Planted controls: closed theorems accepted, with and without a print; an Axiom, an Admitted lemma, a Parameter, an ill-typed file, disabled guard, universe and positivity checking, the Notation forge, a sealed module and a functor body refused.

  • Lean axioms. lean -o compiles each standalone file in files. Then the gate’s own checker, run with lean --run from a fresh directory, loads the compiled module with importModules (no initializer is enabled) and replays every safe constant through the kernel (Lean.Environment.replay, as lean4checker does; unsafe and partial constants are skipped, and no safe constant can use them). A declaration added without the kernel (debug.skipKernelTC) is rejected. It then collects the axioms of every AUTHORED safe constant of the module. A constant is not authored only when the checker has verified that it is the lemma Lean generates: <ctor>.injEq for a constructor of an inductive type declared in the module, with the same universe parameters, type and proof term as Lean’s own generator produces when the checker runs it again. Name shape alone does not qualify. Such a lemma carries propext, so its axioms still count whenever an authored constant uses it. In hvn-dehallucinator that excuses 14 theorems. <ctor>.inj carried no axiom there and stays a root. Any axiom not in allowed_axioms fails, and sorryAx is never allowable. The planted controls run with no allowance, whatever the caller allows. The checker takes its search path from the running verified lean, never from a lean on PATH. The gate judges by the checker’s exit code. Nothing lean prints while compiling is read, so a #eval printing the clean line, or elab_rules rewriting #print axioms, fails. required_theorems must each resolve to a constant of a listed module, exactly or as a component suffix. Planted controls: clean theorems accepted, with and without a print; a sorry, a classical proof, a declared axiom, an axiom used by an unprinted theorem, an ill-typed file, the #eval forge, the elab_rules forge and a skipKernelTC declaration refused: and a structure, whose generated lemmas carry propext, accepted; a hand-written use of that lemma, a fake Foo.injEq, and hand-written injEq lemmas with a different type or with Lean’s type and a proof through an axiom refused.

  • TLA+. TLC runs each config in must_pass, which must complete with no error. Each must_refute entry (<config>.cfg:<Invariant>) must be refuted by exactly that invariant: TLC exit status 12 (safety violation) and its own "Invariant X is violated." line, or the initial-state form. An evaluation error that only prints that text is not a refutation. A must-refute config that passes fails the gate, as does one that fails some other way. A model check is tested at its declared bounds, not proven. Planted controls: a holding model passes; a violating model is refuted by its invariant and by no other name.

Trust model for Rocq and Lean. A .v` or `.lean file runs code when it is compiled. It can print any line, rewrite what its own commands print, or add declarations the kernel never saw. So these two gates never read what the prover printed while compiling the caller’s file, and never read the file’s text for prints. They judge the compiled artefact with a separate program: coqchk for Rocq, the gate’s own kernel-replay checker for Lean. What remains trusted: the pinned prover binaries (coqc, coqchk, lean) and the library Lean ships, importModules running no initializer, the kernel itself, and the runner. Code a file runs at compile time can write to the filesystem; that is outside this model. Agda and TLA+ already judge exit codes and TLC’s own anchored output, which a file cannot forge. TLC’s PrintT and Assert text is quoted and escaped, so it cannot start a line with Error:.

Lean axioms and proof-runner-check. They do not overlap. proof-runner-check runs lake build on a Lake project (a lakefile.lean or lakefile.toml) with whatever Lean is on PATH. It proves the project builds. It does not judge axioms: a sorry is a warning, and the build still exits 0. lean-axioms-gate takes plain .lean files that no Lake project owns, runs the pinned Lean 4.15.0 on each, and judges the compiled module: a kernel replay of every safe constant, and the axioms of every authored safe constant, module-wide (see the Lean bullet above). Its detect step ignores files inside a Lake project. A Lake project that needs the axiom check is not covered by either gate today.

Runner evidence. The four test.sh suites ran against the real pinned tools in the authoring environment, and on a GitHub runner: Language Gates Self-Test run 43949978719, on 7593837, passed all four. Later heads are pending their own CI. The reusable workflows themselves have not yet run in a consumer repository.

Advisory auto-fix

.github/workflows/advisory-autofix.yml audits, on a schedule, every Cargo workspace it discovers through a tracked, non-vendored Cargo.lock (a workspace without a tracked lockfile is not covered), bumps a vulnerable crate to its lowest patched version with cargo update --precise, and opens one signed PR (never auto-merged). It opens or updates one issue per unresolved advisory when no compatible patched version is available. Caller: templates/advisory-autofix-caller.yml; Dependabot config generator: scripts/advisory-autofix-dependabot.sh. What it does and does not cover, including that proof-lane failures are not advisories: docs/ADVISORY-AUTOFIX.adoc.

What a gate may use, and what a consumer’s lock must hold

Two constraints are evaluated in the caller’s repository, so nothing in this repository’s own CI can witness them; both are now guarded here.

  • Actions policy. The estate’s GitHub Actions policy admits actions that are hyperpolymath-owned, GitHub-made, Marketplace-verified, or on a short pattern list. A reusable that uses anything else startup-fails for every caller with "The action … is not allowed" — which is how EmbarkStudios/cargo-deny-action killed the first live Rust gate caller (plasma-parser-writer#108, 2026-10-19) while the Creusot gate from the same commit ran. The gates now use only actions/, github/, hyperpolymath/*, dtolnay, swatinem, goto-bus-stop and taiki-e, every one at a full SHA, and tests/gate-action-owners.sh (run by the self-test workflow) refuses any other owner or a tag pin. cargo-deny is installed through taiki-e/install-action; Alire is a sha256-pinned release binary rather than alire-project/setup-alire, which also nested floating @v4 tags.

  • Callee lock. Since about 2026-10-15 GitHub validates a called reusable against the callee repository’s actions.lock at the called SHA and rejects a dependency record whose ref: is its own commit SHA ("invalid lockfile pin"). The gate workflows are deliberately not keyed in this repository’s lock, and that resolves (witnessed: the Creusot gate on plasma-parser-writer#108). The SPARK gate’s nested standards theatre gate is pinned at standards 75bd599, the first standards commit whose lock passes that validation; hypatia’s PIN-003 lists the 545 that do not.

  • Consumers with a lock-sync gate. A repository whose CI requires every job-level reusable ref to be keyed in its own actions.lock with a transitively closed dependencies: section (cicd-squabbler’s scripts/check-lock-sync.sh) cannot de-onboard the caller as the templates assume. Such a repository onboards instead: one hyperpolymath/proven-cicd-and-workflows@<sha> record whose uses: is the union of what the called gates use at that SHA, plus a record for each of those copied from a lock GitHub accepts, with the tag — never the SHA — as ref:. cicd-squabbler#135 is the worked example (for its standards callers); gitbot-fleet’s scripts/fix-lock-self-sha-refs.sh and scripts/lib/action-ref-tags.tsv carry the tag map.

Licence

Code MPL-2.0, prose CC-BY-SA-4.0. See LICENSE.

Merge-blocker diagnosis and secret-scan latency

bash scripts/inspect-pr-ci.sh OWNER/REPO PR_NUMBER collects read-only JSON evidence: PR checks, effective branch rules, classic protection, head-SHA workflow runs and jobs, including failed workflows with zero jobs. Requires gh and jq; exit 2 means collection did not complete, including invalid arguments, missing gh or jq, and denied API probes. Exit 0 means collection succeeded, not that CI passed. The report is not merge authorisation, a full check-history export, or an implementation of cicd-squabbler. Use squabbler for attribution and repair. No logs, artifacts, secrets, policy edits, reruns or merges are requested.

See the sampled estate diagnosis and the secret-scan latency investigation and implementation handoff. The bounded scanner is deployed to the suite and Echidna canaries. The earlier paired full-history receipts are retained in suite PR 84. Canonical-name hosted canaries subsequently passed in Proven CI/CD run 41910602874 at subject 5f2fd18c3ec710db00486b9985d0cbb242803463 and Echidna run 41909747996 at subject b8dc7fa90f82ab124b6af18398999ef6a9724e32. Both runs used scanner source a12b2b4644db1a1250bc50b58fd24c99f89f564e. These receipts qualify those historical heads only; later heads require their own hosted receipts before promotion. See the canonical import checkpoint for the retained evidence and remaining rollout conditions. An estate-wide replacement has not completed.

Bounded secret scanner (canary, not estate-deployed)

.github/workflows/secret-scanner-reusable.yml and actions/secret-scan-check/ provide a checksum-pinned Gitleaks 8.30.1 implementation with bounded download/scan deadlines, redacted logs, real detector controls using the effective configuration, and separate working-tree/history passes. The vendored estate baseline records its upstream SHA; no renamed standards reusable is needed at runtime.

The direct caller template preserves scan / gitleaks. Full history remains the default. fast-pr: true explicitly opts PRs into scanning all introduced commits, not merely the final diff; non-PR runs remain full. PR scans use the base commit’s configuration and extensions; extensions must stay within that tree. A changed .gitleaksignore fails the scan. PR scans require Python 3.11 or newer to validate configuration paths. A full ancestry checkout is still required: this version reduces scanning work, not checkout history size. No speed claim is established without runner measurements. The job deadline is 15 minutes; each main scan is bounded to 180 seconds plus termination grace. Oversized audits fail visibly rather than wait forever or silently pass.

Do not bulk-replace the old three-job standards bundle yet: this scanner is not claimed to reproduce its specialised Rust/shell heuristic checks. Keep those protections until parity controls or an owner-approved migration exist. The real-binary CI controls and a caller canary must pass before production rollout; see rollout status.

Post-merge startup repair and supplemental detector ports

The dated checkpoint in Startup and supplemental coverage records the earlier pre-merge pin and admission failures. Its deployment status is historical. The integrated source was subsequently published and qualified with the suite and Echidna callers; the current full source pin is a12b2b4644db1a1250bc50b58fd24c99f89f564e.

The reusable scanner now provides all three original contexts: Gitleaks, Rust secrets and shell secrets. Both canonical-name caller runs linked above executed that exact published source. The separate local supplemental workflow remains a regression control; it does not supply a missing port in the deployed source. The 26 differential fixtures and five hardening controls retain their finite coverage boundary. No estate-wide rollout or whole-corpus equivalence is claimed.

Strict scanner coverage and audit checkpoint

The shared custom-tools gate now requires complete coverage from both scanners, gates Pons WARN/ERROR findings and bounds each invocation to 180 seconds by default (CUSTOM_TOOLS_TIMEOUT_SECONDS, 1..3600). Both scanners run even when the first refuses. Unsupported inputs therefore make the gate incomplete; callers must add a real adapter or explicitly scoped analysis rather than interpret an exit-zero partial scan as assurance. panic-attack assail findings remain report-only; strict coverage is not a security verdict.

See the adversarial audit checkpoint for executed controls, coverage gaps and proof boundaries. The canonical repository now exists; protection and consumer migration are still in progress. Reproduce bounded scanner controls with bash tests/scanner-adversarial.sh /path/to/pons /path/to/panic-attack.

Releases

Sponsor this project

Packages

Used by

Contributors

Languages