Skip to content
Merged
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
8 changes: 4 additions & 4 deletions .github/workflows/container-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ jobs:
- uses: actions/checkout@v7
with:
repository: crunchtools/constitution
ref: ${{ inputs.constitution-ref || 'v1.46.1' }}
ref: ${{ inputs.constitution-ref || 'v1.47.0' }}
path: .constitution
persist-credentials: false
- id: r
Expand Down Expand Up @@ -358,7 +358,7 @@ jobs:
- uses: actions/checkout@v7
with:
repository: crunchtools/constitution
ref: ${{ inputs.constitution-ref || 'v1.46.1' }}
ref: ${{ inputs.constitution-ref || 'v1.47.0' }}
path: .constitution
persist-credentials: false
- if: needs.build.outputs.pushed == 'false'
Expand Down Expand Up @@ -434,7 +434,7 @@ jobs:
- uses: actions/checkout@v7
with:
repository: crunchtools/constitution
ref: ${{ inputs.constitution-ref || 'v1.46.1' }}
ref: ${{ inputs.constitution-ref || 'v1.47.0' }}
path: .constitution
persist-credentials: false
- env:
Expand Down Expand Up @@ -473,7 +473,7 @@ jobs:
- uses: actions/checkout@v7
with:
repository: crunchtools/constitution
ref: ${{ inputs.constitution-ref || 'v1.46.1' }}
ref: ${{ inputs.constitution-ref || 'v1.47.0' }}
path: .constitution
persist-credentials: false
# resolve runs only on push; a dispatch or schedule run on a v* ref
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dependency-audit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
- uses: actions/checkout@v7
with:
repository: crunchtools/constitution
ref: v1.46.1
ref: v1.47.0
path: .constitution
persist-credentials: false
- name: Install uv
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
- uses: actions/checkout@v7
with:
repository: crunchtools/constitution
ref: v1.46.1
ref: v1.47.0

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

HIGH (Constitution): The required validation check now checks out the candidate v1.47.0 instead of the last release. The constitution requires this check to use the last release so a PR is not judged by the validator it changes.

Suggestion: Keep this ref at the last released version until v1.47.0 is released.

Evidence:

ref: v1.47.0

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not a bug: the rule protects this repo's own caller, and constitution.yml still calls validate.yml@v1.46.0, so this PR is judged by the released validator. The ref: inside validate.yml is the validator that callers of @v1.47.0 get, so it must name the version this PR releases, exactly as #159 moved it from v1.46.0 to v1.46.1.

path: .constitution
persist-credentials: false
- uses: actions/setup-python@v7
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ Entries through 1.14.0 are derived from the Ratification History table in

## [Unreleased]

## [1.47.0] - 2026-11-18

### Changed

- The reusable workflows run their build and gate jobs on the organization's own runners when it names them: `validate.yml`'s `validate`, `dependency-audit.yml`'s `audit`, and `container-release.yml`'s `gates` (unless `free-disk` is set, which needs GitHub's image). A caller's same-repository pull request runs on `CACHED_RUNNER_LABEL`; its push, schedule, manual run, release or merge queue on `UNCACHED_RUNNER_LABEL`. Fork and Dependabot pull requests, Dependabot branches, and every other event, `pull_request_target` included, stay on `ubuntu-latest`, and clearing either variable sends its jobs back with no commit. Jobs that hold a registry credential, signing key or App key (`build`, `mark`, `promote`), or only write through the token (`resolve`, `automerge`), stay on `ubuntu-latest`.
Expand Down
3 changes: 2 additions & 1 deletion constitution.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# CrunchTools Constitution

> **Version:** 1.46.1
> **Version:** 1.47.0
> **Ratified:** 2026-11-04
> **Status:** Active

Expand Down Expand Up @@ -982,5 +982,6 @@ a public repository. Keep it host-side (for example
| 1.45.0 | 2026-11-17 | Crunchtools refers to crunchtools at a moving tag (XV rule 5): the constitution's workflows are called at `@v1`, which `major-tag.yml` moves to each published release on main, as Gatehouse's `@v0` and Ashigaru's `@v2` already were; crunchtools tool images in hooks and CI name `:latest` (Gourmand `:main`) and a hook pulls with `--pull=newer`; pre-commit `rev:` and third-party pins stay exact. `Inherits` alone is the version a repo is judged by, so the validator accepts an older `Inherits` and new checks stay version-gated. Governance profile 1.1.0. Also: `container_release.py` refuses an off-branch `v*` tag before signing (#146). Prompted by every repo calling the constitution at v1.41.0 three releases behind, Gatehouse's review running its own unpushed image, and python-sdlc's hook running Gatehouse 0.23.0 (crunchtools/constitution#149) |
| 1.46.0 | 2026-11-17 | Floating sdlc launcher, no rev pin (Scott). XII prefers one wiring for every repo, Python or not: a committed `.sdlc/bin/sdlc` (python-sdlc's bootstrap, pinned by sha256 in `sdlc_bootstrap_sha256`) run by `repo: local` `sdlc-commit` and `sdlc-push` hooks with no `rev:`, and the `sdlc ci` job running exactly `.sdlc/bin/sdlc ci`, with no `if:`, no `continue-on-error`, and the image only from `vars.SDLC_IMAGE`. The image prints its own launcher, so hooks and CI float with it and no repo ever needs a `rev:` bump. The rev-pinned python-sdlc hook and the standalone Gourmand and Gatehouse hooks are still accepted until the fleet has converted. Accepting a form is not a new requirement, so it applies at any `Inherits`. `sdlc_launcher` in requirements.toml; `sdlc` joins `floating_images`. Also: XV rule 2 third-party pin report (#151). Prompted by crunchtools/python-sdlc#62, whose pilots (josui, mcp-nagios, syslog) failed `sdlc ci` on the constitution alone |
| 1.46.1 | 2026-11-17 | Fix (a227): XV rule 5's image check read the tag of `${IMAGE:-quay.io/crunchtools/gatehouse:latest}` as `latest}`, and of `(...:latest).` as `latest).`, so a floating reference failed. A tag is now a registry tag or a shell or Actions expression that becomes one (`:${version}` is still a pin), and whatever closes it is not part of it. Prompted by gatehouse#151 |
| 1.47.0 | 2026-11-18 | The reusable workflows run their build and gate jobs on the organization's own runners when it names them (a273): `validate`, `audit`, and `container-release.yml`'s `gates` unless `free-disk` is set. A caller's same-repository, non-Dependabot pull request runs on `vars.CACHED_RUNNER_LABEL`; its push, schedule, manual run, release or merge queue on `vars.UNCACHED_RUNNER_LABEL`; every other event, `pull_request_target` included, and every fork or Dependabot pull request stays on `ubuntu-latest`, and clearing a variable is the kill switch. Jobs holding a registry credential, signing key or App key stay on `ubuntu-latest`. Prompted by Exedore's self-hosted runners and every repo calling these workflows on GitHub-hosted machines |
| 1.31.0 | 2026-11-04 | `sdlc ci` MUST be a required status check on the default branch, through an org ruleset rather than per-repo, and `fleet-drift.py` audits that ruleset's repo list against the repos XII applies to in both directions. Prompted by the v1.30.0 rollout: the conversion left the check advisory in all 33 repos, and auto-merge — Dependabot's and python-sdlc's own bump pull requests — merges on required checks alone, so a red `sdlc ci` would have landed every future bump. The reverse gap is as bad and had a live example: acquacotta's branch protection still required a `Python Tests` check the conversion had deleted, so a check that could never report again blocked every merge until it was found |
| 1.30.0 | 2026-11-04 | Python repos run their checks through python-sdlc (XII): one image, pinned at one release, three commands — `sdlc commit` at pre-commit, `sdlc push` at pre-push, `sdlc ci` in CI — each configured by the `pyproject.toml` block of the same name. Commit is seconds and offline; push renders the verdicts and never builds a container; CI runs push's checks except the two reviewers it gets from their own workflows, plus the repo's own. Repo checks are named kinds, never shell. Non-Python repos keep the standalone Gourmand and Gatehouse hooks. The validator requires the shape for repos inheriting v1.30.0, so a Python repo takes this version in the same pull request that converts it. Prompted by an audit of 35 Python repos (nine ruff versions, 15 with no type checker, 17 dependency scans that could not fail) and trentina's laptop running a two-week-old Gatehouse while CI ran a fresh one |
2 changes: 1 addition & 1 deletion tests/test_cascade.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def test_a_direct_dispatch_counts():

CALLER = (
"jobs:\n container:\n"
" uses: crunchtools/constitution/.github/workflows/container-release.yml@v1.46.1\n"
" uses: crunchtools/constitution/.github/workflows/container-release.yml@v1.47.0\n"
" with:\n cascade: true\n downstream: child other-child\n"
)

Expand Down
Loading