Repository navigation
ci(001): a change is tested in full once, in the merge queue; extra workflows take post_merge - #512
Conversation
…orkflows take post_merge A pull request's own run leaves the bindings and release-checks jobs to the merge queue, as it already did for the acceptance groups. The four declared extra workflows declare the boolean workflow_call input post_merge (profile revision 24, statecraft-cli spec 067); with it a push to main runs them only when Cargo.lock or the toolchain changed. The input defaults to false until the profile passes it.
AI review (findings)Reviewing the four workflow files and three spec files for concrete defects. Workflow logic analysis: All four workflows add a
Spec entries: The three spec changelog notes are dated, explicitly disclaim any normative claim ( No other concrete defects found in logic, security model, or governance consistency. {"head": "79447b6ff3265a662246796cad30a82e891d1f71", "verdict": "findings", "findings": [{"path": ".github/workflows/release-checks.yml", "line": 53, "summary": "The scope job calls `git diff --quiet HEAD~1 HEAD` in the post_merge branch but does not add `fetch-depth: 2` to its checkout step; with the default shallow clone (depth 1), HEAD~1 is absent, git diff exits fatally, the if-statement falls to the else branch, and run is always set to true on post-merge pushes, defeating the cache-refresh optimisation (compare: verify.yml correctly adds fetch-depth: 2)."}]}Subject: fce3f5d...79447b6, diff digest 49642d5de34b859ea361f23bf61bc5fa30469f99e0c7a06f20be2a9a3dd8015e, 1 call(s). An AI comment is not an approval. |
|
Review note on the release-checks.yml finding: not a defect. The |
…pace deny.toml (#513) Stacked on #512, which adds the `post_merge` input that revision 24 requires. The owner decided on 2026-11-05 to adopt the profile at revision 26, with a workspace `deny.toml`. - **Profile:** `github-actions-rust` moves from revision 20 to 26, rendered with statecraft-cli at 8fd5be05 (`init apply`). The managed files change only through that render: `statecraft-ci.yml`, `statecraft-ai-review.yml`, `scripts/statecraft/*`, CODEOWNERS, `.statecraft/setup/*` and the new `.statecraft/REVIEW.md`. - 22: a required `supply-chain` job (`cargo deny --locked check all`). - 23: a managed review guide. - 24: a push to `main` runs only the cache saves and `ci-gate`, judged by the merge-queue run at the same commit. - 25: `ci.code.free_disk` frees runner disk before the build. - 26: answered low-severity review findings need no exception. - **spec-spine:** the pin moves 0.31.0 to 0.32.0, as revision 26 requires. The registry and index are regenerated, so every registry shard changes. - **`deny.toml` (new, root):** the workspace policy. - Five advisories are ignored with reasons, to be revisited by 2027-02-05. All of them are in integration or backend crates, none in the release set. - Zlib, BSL-1.0 and MPL-2.0 licenses are allowed. - The Aicortex git source is allowed. - Duplicate versions warn instead of failing. - Path wildcards are allowed. `cargo deny --locked check all` passes locally. The release policy `tools/rustev-release/deny.toml` is unchanged. - **Record:** spec 001 gains "Profile and engine upgrade record (2026-11-05)". AGENTS.md now names revision 26.
The owner decided on 2026-11-05 that a change is tested in full once, in the merge queue.
statecraft:stacked-ci) now leaves out thebindingsandrelease-checksjobs, whatever it changes. It already left out the acceptance groups. The managed jobs (governance, preflight, code, AI review) andboundariesstill run, so a pull request can be armed in about 15 minutes instead of 45.main.workflow_callinputpost_merge, which profile revision 24 (statecraft-cli spec 067) requires and passes on a push tomain. With it set,verify,bindingsandrelease-checksrun on a push only whenCargo.lockorrust-toolchain.tomlchanged, to refresh the caches keyed on them.boundariesskips its check when its cache hits. Until the profile is upgraded, the input defaults to false and push runs are unchanged.The profile upgrade to revision 26 is a separate change. It needs the spec-spine 0.32.0 pin and a workspace
deny.tomlfor revision 22's supply-chain job.