From 2bbeb965f2858169d41ae0398cf4ec28b3d5af3c Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 23 Nov 2026 20:35:11 +0000 Subject: [PATCH 1/4] ci: add CI/gate caller (placeholder pin) Adds the suite's thin caller that produces the CI/gate commit status the Branch-Floor ruleset requires. Pinned to proven-cicd-and-workflows a0760cea695a815a96b3944f3d03ee015da856d0. The pin is a placeholder: the profile is not in the suite yet, so the gate fails closed until it lands and the caller is re-pinned. Not onboarded to actions.lock (per template). Co-Authored-By: Claude Sonnet 5.5 Claude-Session: https://claude.ai/code/session_01J4QvDkRpLkJCEKarSaVLYp --- .github/workflows/ci-gate.yml | 92 +++++++++++++++++++++++++++++++++++ CHANGELOG.adoc | 9 ++++ 2 files changed, 101 insertions(+) create mode 100644 .github/workflows/ci-gate.yml diff --git a/.github/workflows/ci-gate.yml b/.github/workflows/ci-gate.yml new file mode 100644 index 0000000..3accc5a --- /dev/null +++ b/.github/workflows/ci-gate.yml @@ -0,0 +1,92 @@ +# SPDX-License-Identifier: MPL-2.0 +# CI gate — thin caller of the estate's interim gate, which lives in +# hyperpolymath/proven-cicd-and-workflows as a reusable workflow. Do not copy +# its jobs in here: a copy freezes at one cicd-suite commit and never receives +# a fix. +# +# It emits the commit status `CI/gate`, which the Branch-Floor ruleset +# requires. It is a COMMIT STATUS, not a check run, because a job inside a +# reusable workflow gets the check-run name ` / ` +# (see rust-ci-caller.yml: `rust-ci / Cargo test`), which always contains +# " / " and can never equal `CI/gate`. +# +# It triggers on workflow_run, schedule and workflow_dispatch, all of which GitHub runs from the +# DEFAULT branch: a pull request cannot alter this file, its pin or its list. The consequence: +# the pull request that adds this caller can never receive `CI/gate` itself, and +# would be merged past the gate once (owner action) without the gate-pr job at the end. There is no +# pull_request start here except the gate-pr job at the end (docs/CI-GATE.adoc, "The pull_request start"), +# whose shape tests/ci-gate.sh asserts. +# +# `schedule` and `workflow_dispatch` run a SWEEP: the reusable lists the open pull requests and the +# default branch head and re-evaluates each distinct head SHA with the same guarded publisher. A stale state +# then normally lasts until the next sweep. It is still last-writer-wins, a sweep is itself an evaluator, +# and GitHub may delay or skip scheduled runs (docs/CI-GATE.adoc, "Residual limit"). The cron below runs at minutes +# 7, 22, 37 and 52 of every hour; keep the minutes off :00 and :30, where scheduled load is highest. +# The sweep reads open pull requests, so the caller must grant `pull-requests: read`. +# +# It also fires when a workflow run STARTS (`in_progress`, which GitHub also sends for a rerun): +# any active run makes the verdict pending, so a rerun replaces a stale success with pending, +# approximating a native required check. `completed` then re-evaluates it (last-writer-wins; see docs/CI-GATE.adoc, "Residual limit"). +# +# The required-check list is NOT in this repository: it lives in +# proven-cicd-and-workflows/profiles/ci-gate//.json at the pinned +# SHA below, selected by github.repository. A repository with no profile there +# fails the gate closed until one is added to the suite. +# +# The job id MUST stay `gate`. The pin is a full SHA, never `@main` or a tag: +# the account enforces sha_pinning_required. An A3 `estate-gate` replaces this +# interim gate by changing ONE pin and ONE context (`with: context`) here. +# +# ⚠ DE-ONBOARDED from actions.lock, deliberately, like the estate-audit and +# Rust CI callers: an onboarded cross-repo reusable startup-fails with zero +# jobs under sha_pinning_required. cicd-suite/scripts/deonboard-workflow.sh +# reverses a re-onboarding. +# +# There is deliberately NO `concurrency:` block here: serialising per SHA would delay the +# in_progress caller behind a running evaluation that then writes a stale success. The reusable's +# own job cancels a running evaluation of the same SHA instead, and re-reads the runs just before it +# writes (scripts/ci-gate-publish.sh; tests/ci-gate.sh asserts the template has no concurrency). +# +# API budget: "**" starts the gate for every workflow. If the profile's required checks come from a +# few workflows, naming them (workflows: ["CI", "Lint"]) cuts the events; keep that list in step with +# the profile (docs/CI-GATE.adoc, "API budget"). +# +# No `secrets:` line: the reusable consumes none. +name: CI gate + +on: + pull_request: + workflow_run: + workflows: ["**", "!CI gate"] + types: [completed, in_progress] + schedule: + - cron: "7,22,37,52 * * * *" + workflow_dispatch: {} + +permissions: + statuses: write + actions: read + contents: read + pull-requests: read + +jobs: + gate: + if: github.event_name != 'pull_request' && (github.event_name != 'workflow_run' || github.event.workflow_run.name != 'CI gate') + uses: hyperpolymath/proven-cicd-and-workflows/.github/workflows/ci-gate.yml@a0760cea695a815a96b3944f3d03ee015da856d0 # cicd-suite ci-gate + with: + context: "CI/gate" + # timeout_minutes: 180 # how long a missing check keeps the gate pending + + # The pull_request start. workflow_run, schedule and workflow_dispatch run only from the default + # branch, so without this job the pull request that adds or changes the gate never gets the status + # and a ruleset requiring it blocks that very pull request. This job runs from the pull request's own + # branch and posts the same verdict, waiting (bounded) for the checks named in the profile to report. + # Same-repository branches only: a fork's or Dependabot's pull_request token cannot write statuses, + # and those are covered by the workflow_run job. No trust decision uses github.actor. + # Because a pull request can edit this file, the Gate tamper guard (ci-gate-tamper-guard.yml, run from + # the default branch) fails a pull request that touches gate files unless the owner has approved it. + gate-pr: + if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository + uses: hyperpolymath/proven-cicd-and-workflows/.github/workflows/ci-gate.yml@a0760cea695a815a96b3944f3d03ee015da856d0 # cicd-suite ci-gate + with: + context: "CI/gate" diff --git a/CHANGELOG.adoc b/CHANGELOG.adoc index b49023b..e0e49b3 100644 --- a/CHANGELOG.adoc +++ b/CHANGELOG.adoc @@ -8,6 +8,15 @@ https://semver.org/spec/v2.0.0.html[Semantic Versioning]. === [Unreleased] +==== Added + +* *Caller for the estate `CI/gate` commit status (2026-11-23).* The Branch-Floor +ruleset requires `CI/gate` but nothing in this repository produced it, so every +pull request was blocked. `+.github/workflows/ci-gate.yml+` is the suite's thin +caller, pinned to `+a0760ce+` of proven-cicd-and-workflows. The pin is a +placeholder: the required-check profile is not in the suite yet, so the gate +fails closed ("no CI/gate profile") until it lands and the caller is re-pinned. + ==== Fixed * *Three more places said Vocarium does not exist (2026-11-17).* What does not From e1686c0a35d70959cd7dcf67a0923ceb0b484cb5 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 23 Nov 2026 20:41:12 +0000 Subject: [PATCH 2/4] ci: record CI/gate caller in actions.lock The suite caller must be listed in actions.lock: governance's Actions lockfile verify fails when it is missing. Same two records as the live consumers (workflow key plus the proven-cicd-and-workflows leaf), pinned to a0760cea695a815a96b3944f3d03ee015da856d0. Nothing else changed. Co-Authored-By: Claude Sonnet 5.5 Claude-Session: https://claude.ai/code/session_01J4QvDkRpLkJCEKarSaVLYp --- .github/workflows/actions.lock | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/actions.lock b/.github/workflows/actions.lock index e531ccb..9d07e35 100644 --- a/.github/workflows/actions.lock +++ b/.github/workflows/actions.lock @@ -3,6 +3,8 @@ # Docs: https://gh.io/actions-lockfile version: 'v0.0.3' workflows: + '.github/workflows/ci-gate.yml': + - 'hyperpolymath/proven-cicd-and-workflows@a0760cea695a815a96b3944f3d03ee015da856d0' '.github/workflows/codeql.yml': - 'actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1' - 'actions/checkout@v7.0.1' @@ -199,6 +201,11 @@ dependencies: commit: 'sha1-33d7b85da1a04171e211befe2c739303b9a4c066' owner_id: 9919 repo_id: 259445878 + 'hyperpolymath/proven-cicd-and-workflows@a0760cea695a815a96b3944f3d03ee015da856d0': + ref: 'main' + commit: 'sha1-a0760cea695a815a96b3944f3d03ee015da856d0' + owner_id: 6759885 + repo_id: 1326697643 'hyperpolymath/smtp-notify-action@e384daf6167a7a7567642d6a62060106244d2413': ref: 'v0.5.1' commit: 'sha1-e384daf6167a7a7567642d6a62060106244d2413' From d105ac57ec082f24d344e639330fc82faf6c19fc Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 23 Nov 2026 21:18:32 +0000 Subject: [PATCH 3/4] ci: list CI/gate caller in actions.lock with an empty entry Use the empty form, as for other cross-repo reusable callers: the key is listed with [] and the proven-cicd-and-workflows leaf record is removed. Tested on trope-checker by the coordinator: this form passes governance lockfile verify and the lint lock-coverage step, while the leaf record failed lint as an unused lockfile entry. Lock file only. Co-Authored-By: Claude Sonnet 5.5 Claude-Session: https://claude.ai/code/session_01J4QvDkRpLkJCEKarSaVLYp --- .github/workflows/actions.lock | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/.github/workflows/actions.lock b/.github/workflows/actions.lock index 9d07e35..8394df9 100644 --- a/.github/workflows/actions.lock +++ b/.github/workflows/actions.lock @@ -3,8 +3,7 @@ # Docs: https://gh.io/actions-lockfile version: 'v0.0.3' workflows: - '.github/workflows/ci-gate.yml': - - 'hyperpolymath/proven-cicd-and-workflows@a0760cea695a815a96b3944f3d03ee015da856d0' + '.github/workflows/ci-gate.yml': [] '.github/workflows/codeql.yml': - 'actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1' - 'actions/checkout@v7.0.1' @@ -201,11 +200,6 @@ dependencies: commit: 'sha1-33d7b85da1a04171e211befe2c739303b9a4c066' owner_id: 9919 repo_id: 259445878 - 'hyperpolymath/proven-cicd-and-workflows@a0760cea695a815a96b3944f3d03ee015da856d0': - ref: 'main' - commit: 'sha1-a0760cea695a815a96b3944f3d03ee015da856d0' - owner_id: 6759885 - repo_id: 1326697643 'hyperpolymath/smtp-notify-action@e384daf6167a7a7567642d6a62060106244d2413': ref: 'v0.5.1' commit: 'sha1-e384daf6167a7a7567642d6a62060106244d2413' From 750a1a148bf8440571547782674f5060025dc115 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 23 Nov 2026 22:19:04 +0000 Subject: [PATCH 4/4] ci: re-pin CI/gate caller to the suite commit with the profile Phase C: both uses: pins in the caller move from the placeholder a0760cea695a815a96b3944f3d03ee015da856d0 to d28d73ef10c623b507e98ffddb040268e29b5443, the suite main that carries this repository's profile. Nothing else in the caller changes; actions.lock keeps the empty entry. No licence files touched. Co-Authored-By: Claude Sonnet 5.5 Claude-Session: https://claude.ai/code/session_01J4QvDkRpLkJCEKarSaVLYp --- .github/workflows/ci-gate.yml | 4 ++-- CHANGELOG.adoc | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci-gate.yml b/.github/workflows/ci-gate.yml index 3accc5a..53bea7a 100644 --- a/.github/workflows/ci-gate.yml +++ b/.github/workflows/ci-gate.yml @@ -72,7 +72,7 @@ permissions: jobs: gate: if: github.event_name != 'pull_request' && (github.event_name != 'workflow_run' || github.event.workflow_run.name != 'CI gate') - uses: hyperpolymath/proven-cicd-and-workflows/.github/workflows/ci-gate.yml@a0760cea695a815a96b3944f3d03ee015da856d0 # cicd-suite ci-gate + uses: hyperpolymath/proven-cicd-and-workflows/.github/workflows/ci-gate.yml@d28d73ef10c623b507e98ffddb040268e29b5443 # cicd-suite ci-gate with: context: "CI/gate" # timeout_minutes: 180 # how long a missing check keeps the gate pending @@ -87,6 +87,6 @@ jobs: # the default branch) fails a pull request that touches gate files unless the owner has approved it. gate-pr: if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository - uses: hyperpolymath/proven-cicd-and-workflows/.github/workflows/ci-gate.yml@a0760cea695a815a96b3944f3d03ee015da856d0 # cicd-suite ci-gate + uses: hyperpolymath/proven-cicd-and-workflows/.github/workflows/ci-gate.yml@d28d73ef10c623b507e98ffddb040268e29b5443 # cicd-suite ci-gate with: context: "CI/gate" diff --git a/CHANGELOG.adoc b/CHANGELOG.adoc index e0e49b3..6be5656 100644 --- a/CHANGELOG.adoc +++ b/CHANGELOG.adoc @@ -13,9 +13,8 @@ https://semver.org/spec/v2.0.0.html[Semantic Versioning]. * *Caller for the estate `CI/gate` commit status (2026-11-23).* The Branch-Floor ruleset requires `CI/gate` but nothing in this repository produced it, so every pull request was blocked. `+.github/workflows/ci-gate.yml+` is the suite's thin -caller, pinned to `+a0760ce+` of proven-cicd-and-workflows. The pin is a -placeholder: the required-check profile is not in the suite yet, so the gate -fails closed ("no CI/gate profile") until it lands and the caller is re-pinned. +caller, pinned to `+d28d73e+` of proven-cicd-and-workflows, which carries this +repository's required-check profile. ==== Fixed