Skip to content

ci(001): adopt setup profile revision 26 and spec-spine 0.32.0; workspace deny.toml - #513

Merged
bartekus merged 3 commits into
mainfrom
ops/profile-rev26
Nov 5, 2026
Merged

bartekus merged 3 commits into
mainfrom
ops/profile-rev26

Conversation

@bartekus

@bartekus bartekus commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

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.

@github-actions

github-actions Bot commented Nov 5, 2026

Copy link
Copy Markdown

AI review (no-findings)

Reviewing the non-managed, non-generated changed files: .statecraft/setup/github-actions-rust.json, AGENTS.md, deny.toml, spec-spine.toml, and specs/001-boundaries-and-authority/spec.md.

.statecraft/setup/github-actions-rust.json
Job push modes change from "required" to "post-merge" for governance, preflight, supply-chain, workflow-lint, sg-scan, secret-scan, boundaries, verify, bindings, release-checks. This is consistent with the revision 24 description: when the merge queue is required, a push to main is a post-merge push already judged by the queue. The new post_merge_rule block documents the admission policy. New jobs (supply-chain, sg-scan, secret-scan, workflow-lint) added as required. File digests in files[] match those recorded in environment.json. Revision notes 21–26 are present. No inconsistencies found.

AGENTS.md
Only changes the revision number from 20 to 26. The surrounding text about ci.extra_required_jobs (boundaries, verify, bindings, release-checks) remains accurate: the four new built-in jobs (supply-chain, workflow-lint, sg-scan, secret-scan) are not ci.extra_required_jobs entries, so no update is needed there.

deny.toml
Structure is correct cargo-deny TOML: [graph], [advisories], [licenses], [bans], [sources] sections. Five advisory ignores each carry a reason, an affected-crate scope, and a revisit date (2027-02-05). None is stated to reach a release-set crate, consistent with the note that the release family's stricter tools/rustev-release/deny.toml is unchanged. allow-git for https://github.com/statecrafting/aicortex matches the AGENTS.md boundary rule that only integrations/* may depend on Aicortex. wildcards = "deny" with allow-wildcard-paths = true correctly permits workspace path dependencies that carry no version. exclude-dev = true is a deliberate scope choice documented in the comment.

spec-spine.toml
Only changes the required version from =0.31.0 to =0.32.0, matching environment.json.

specs/001-boundaries-and-authority/spec.md
New section records the owner decision of 2026-11-05 and accurately narrates what each revision 21–26 delivers. The claim that the declared extra workflows receive post_merge is consistent with the revision 24 requirement. The statement that revision 22 requires a committed deny.toml and "the plan withholds the profile without one" explains why deny.toml appears in the same PR as the profile upgrade rather than being split, which is not a violation because guard-policy-files.sh is itself introduced in this same upgrade and is absent at the base commit.

No concrete defects found.

{"head": "ab5b06c1a0cb3f66130b7fc313bd9d590552bfe0", "verdict": "no-findings", "findings": []}

Subject: 79447b6...ab5b06c, diff digest e26f23ccbfabf3ae905b14843a42259b1c53e527b83444f857165c7d673b0d80, 1 call(s). An AI comment is not an approval.

@bartekus
bartekus temporarily deployed to statecraft-review-exception November 5, 2026 19:32 — with GitHub Actions Inactive
@github-actions

github-actions Bot commented Nov 5, 2026

Copy link
Copy Markdown

AI review (findings)

Reviewing the diff for bugs, security issues, and inconsistencies.

Security changes (persist-credentials: false, package-manager-cache: false in release jobs, npm integrity check): all look correct and consistent.

deny.toml: structure is well-formed; the five ignored advisories each carry a reason and a revisit date, none reaches a release-set crate per the stated justification.

Managed-file digests in .statecraft/environment.json and .statecraft/setup/github-actions-rust.json: updated consistently with the profile revision bump; these are digest-verified.

zizmor: ignore annotations: both [self-repository] suppressions are on local reusable-workflow calls that are intentionally self-referential; both [adhoc-packages] suppressions are on steps that perform explicit sha512 integrity verification before use.

Finding 1 — spec record misstates workflow-lint's tool

specs/001-boundaries-and-authority/spec.md (new block, ~line 387) describes revision 22's workflow-lint job as running "zizmor and actionlint over every workflow". The managed profile definition in .statecraft/setup/github-actions-rust.json (revision 22 note, trusted) states the job runs "zizmor offline over .github/workflows, then verify-action-pins.sh" — no actionlint. The spec record names the wrong tool.

Finding 2 — AGENTS.md CI description is now incomplete

The diff updates only the revision number (20 → 26) but leaves the surrounding sentence unchanged: "one required check, ci-gate, over governance, preflight, code, the AI review and the declared extra jobs (ci.extra_required_jobs) boundaries and verify". Revision 26 adds four new profile-managed required jobs — supply-chain, workflow-lint, sg-scan, and secret-scan — that are not ci.extra_required_jobs entries and are not mentioned. The description is now materially incomplete for anyone reading AGENTS.md to understand what CI runs.

{"head": "9fe609381f30ec961571ecb8122488ec8cc0ba21", "verdict": "findings", "findings": [{"path": "specs/001-boundaries-and-authority/spec.md", "line": 387, "summary": "Upgrade record states workflow-lint runs 'zizmor and actionlint' but the managed profile definition (revision 22 note) states it runs zizmor then verify-action-pins.sh; actionlint is not part of the job."},{"path": "AGENTS.md", "line": 48, "summary": "CI description updated to revision 26 but still names only 'governance, preflight, code, the AI review and the declared extra jobs' — omitting the four new profile-managed required jobs (supply-chain, workflow-lint, sg-scan, secret-scan) added by revision 26."}]}

Subject: 79447b6...9fe6093, diff digest cd497268fba0c30133afc725a71f86f0fd519a05f9819c3f5fa995cbe5970b57, 1 call(s). An AI comment is not an approval.

@bartekus
bartekus temporarily deployed to statecraft-review-exception November 5, 2026 19:38 — with GitHub Actions Inactive
Base automatically changed from ops/ci-full-once-in-queue to main November 5, 2026 20:18
@github-actions

github-actions Bot commented Nov 5, 2026

Copy link
Copy Markdown

AI review (no-findings)

Reviewing the diff systematically across the changed paths.

Workflow changes (bindings.yml, boundaries.yml, qualify.yml, release-checks.yml, release.yml, verify.yml): All checkout steps gain persist-credentials: false. The release setup-node steps gain package-manager-cache: false. The npm-tarball integrity check pre-dates this PR; the sha512 comparison against NPM_INTEGRITY is correct (SRI format, base64 -w0 suppresses line wrapping). The two local reusable-workflow calls gain inline # zizmor: ignore[self-repository] comments; local uses: ./path is always pinned to the caller's commit, so the ignores are accurate. No change to what these workflows check or publish.

deny.toml: The five advisory ignores each state a path (non-release crates only), a reason, and a 2027-02-05 revisit date. wildcards = "deny" with allow-wildcard-paths = true correctly handles workspace path dependencies. The allow-git entry for statecrafting/aicortex is consistent with spec 010; the exact revision is enforced by Cargo.lock. exclude-dev = true is stated in the header comment. The license allowlist is internally consistent and covers the crates described. No concrete defect.

.statecraft/environment.json / github-actions-rust.json: Digest entries are updated for all managed files; new entries appear for REVIEW.md, guard-policy-files.sh, and verify-action-pins.sh. The profile revision number, identity hash, and remoteState.digest are updated consistently across both files. The job entries that change from push: "required" to push: "post-merge" match the revision-24 description. The new jobs (secret-scan, sg-scan, supply-chain, workflow-lint) are consistent with revision 22. freeDisk: true matches ci.code.free_disk in the parameters and revision 25.

spec-spine.toml: Pin updated from =0.31.0 to =0.32.0, matching environment.json.

specs/001-boundaries-and-authority/spec.md: The upgrade record accurately describes what each revision (21–26) changes, and each claim is consistent with an observable change in the diff (new jobs, persist-credentials, package-manager-cache, deny.toml, post_merge, freeDisk).

AGENTS.md: Revision number updated from 20 to 26. Consistent with the upgrade.

No bugs, security defects, or inconsistencies found in the evidence supplied.

{"head": "546756322ea162ba9228873de691f49d1f0bd963", "verdict": "no-findings", "findings": []}

Subject: a19c9e4...5467563, diff digest cd497268fba0c30133afc725a71f86f0fd519a05f9819c3f5fa995cbe5970b57, 1 call(s). An AI comment is not an approval.

@bartekus
bartekus temporarily deployed to statecraft-review-exception November 5, 2026 20:23 — with GitHub Actions Inactive
@bartekus
bartekus temporarily deployed to statecraft-review-exception November 5, 2026 20:33 — with GitHub Actions Inactive
@bartekus
bartekus changed the base branch from main to ops/policy-rev26 November 5, 2026 22:12
@github-actions

github-actions Bot commented Nov 5, 2026

Copy link
Copy Markdown

AI review (no-findings)

Reviewing the PR, which upgrades the github-actions-rust Statecraft profile from revision 20 to revision 26 and spec-spine from 0.31.0 to 0.32.0.

Workflow changes (bindings, boundaries, qualify, release-checks, release, verify)

All actions/checkout steps within the changed hunks correctly receive persist-credentials: false. The three actions/setup-node calls in release jobs receive package-manager-cache: false. The two inline zizmor: ignore[self-repository] comments on local reusable-workflow uses: lines and two zizmor: ignore[adhoc-packages] comments on the npm-install run: blocks are consistent with the stated revision-22 workflow-lint requirement.

tools/rustev-release/tests/release_workflow.rs

The custom line-by-line YAML reader wasn't stripping comments; after adding # zizmor: ignore[self-repository] to the uses: lines, the parser would read the comment as part of the target string. The fix (value.split(" #").next().unwrap().trim()) is correct. Iterator::next() on the result of split always yields Some, so the unwrap() cannot panic.

.statecraft/environment.json / .statecraft/setup/github-actions-rust.json

Digests, byte counts, and written_at timestamps are consistently updated for every managed file. New managed files (guard-policy-files.sh, verify-action-pins.sh, .statecraft/REVIEW.md) are recorded in both places with matching digests. The new jobs (secret-scan, sg-scan, supply-chain, workflow-lint) and the post_merge_rule block align with the revision notes. The freeDisk/ci.code.free_disk parameter pair is present in both documents.

specs/001-boundaries-and-authority/spec.md

The added section is a governance record (not a normative claim), consistent with the constitution's "Legacy as evidence" and the spec-first development model. The five-advisory exception window and the licence additions are recorded as owner decisions, not spec claims. No frontmatter fields appear to have changed.

AGENTS.md

Revision number updated from 20 to 26, consistent with the upgrade. AGENTS.md is not in the MANAGED list, so this is a normal manual edit.

No concrete defects found.

{"head": "9f9f508a4cf3b1796b599587bc6eb5d3cd641595", "verdict": "no-findings", "findings": []}

Subject: 52cbc8c...9f9f508, diff digest 0bb504756c0f8388c98f93e1171909a79bb68775b481130c601a2f196f2e3c88, 1 call(s). An AI comment is not an approval.

@bartekus
bartekus temporarily deployed to statecraft-review-exception November 5, 2026 22:18 — with GitHub Actions Inactive
Base automatically changed from ops/policy-rev26 to main November 5, 2026 23:06
bartekus added a commit that referenced this pull request Nov 5, 2026
Policy-only part of the setup-profile revision 26 adoption (#513), split
out because revision 26's policy-isolation guard refuses policy and
other paths in one pull request.

- `spec-spine.toml` pins `=0.32.0`; `.statecraft/derived` regenerated by
the engine bump.
- New root `deny.toml` (owner decision 2026-11-05, workspace policy):
Zlib, BSL-1.0 and MPL-2.0 allowed; the aicortex git source allowed;
duplicate versions warn; path wildcards allowed; five advisories ignored
(RUSTSEC-2025-0141 bincode, RUSTSEC-2025-0057 fxhash, RUSTSEC-2026-0385
ctutils, RUSTSEC-2026-0194 and RUSTSEC-2026-0195 quick-xml; non-release
crates only), to be revisited by 2027-02-05. The release deny.toml is
unchanged.

Nothing reads `deny.toml` until #513 renders the supply-chain job. `make
gate` passes.

Advisory change: the ctutils ignore was dropped; ctutils is updated to
0.4.8 instead (see review note).

Spec-Drift-Waiver: Cargo.lock moves ctutils 0.4.3 to 0.4.8 for
RUSTSEC-2026-0385, a lockfile-only security update with no API change;
the policy-isolation guard keeps spec edits out of this policy PR, and
spec 001's revision 26 record lands in #513. Owner direction 2026-11-05:
escalate and land every open PR.
…pace deny.toml

Revision 22's supply-chain job checks a root deny.toml, the workspace policy decided by the owner on 2026-11-05 (the release policy in tools/rustev-release/deny.toml is unchanged). Revision 24 runs only cache saves and ci-gate on a push to main, judged by the queue run at the same commit. Revision 25 frees runner disk in the code job (ci.code.free_disk). Revision 26 lets answered low-severity review findings pass without an exception.
Every checkout drops persisted credentials; the release jobs' setup-node keeps no dependency cache; the two pinned npm installs and two local reusable-workflow calls carry inline zizmor ignores. zizmor 1.31.1 and actionlint are clean.
@bartekus
bartekus merged commit 8bd6c94 into main Nov 5, 2026
11 of 19 checks passed
@bartekus
bartekus deleted the ops/profile-rev26 branch November 5, 2026 23:06
@bartekus
bartekus temporarily deployed to statecraft-review-exception November 5, 2026 23:07 — with GitHub Actions Inactive
@github-actions

github-actions Bot commented Nov 5, 2026

Copy link
Copy Markdown

AI review (no-findings)

Reviewing the PR: a Statecraft profile upgrade from revision 20 to 26, spec-spine from 0.31.0 to 0.32.0, with security-hardening workflow changes and new required CI jobs.

Workflow changes (bindings.yml, boundaries.yml, qualify.yml, release-checks.yml, release.yml, verify.yml)
All persist-credentials: false additions are consistent security hardening. The package-manager-cache: false additions in release jobs (pack, npm-publish, publish) correctly prevent cache-poisoning in release paths. The zizmor: ignore comments are intentional per the spec record ("two pinned npm installs, and the two local reusable-workflow calls, carry inline zizmor ignores, as the managed workflow's calls do").

Digest consistency between environment.json and github-actions-rust.json
All managed-file digests cross-checked: every entry in environment.json matches the corresponding entry in github-actions-rust.json. Setup identity 39e2a7a244759e35b35b089449054b69062d619d9d418b94a6e83a2accdd3b88 is consistent in both files and in the setup block of environment.json.

New required jobs in github-actions-rust.json
supply-chain, workflow-lint, sg-scan, secret-scan are added as standard profile jobs (not ci.extra_required_jobs), so AGENTS.md's description of ci.extra_required_jobs (boundaries, verify, bindings, release-checks) remains accurate.

Post-merge push handling
Jobs shifted to push: "post-merge" are consistent with the post_merge_rule block and revision 24's description. The ci.code.free_disk / freeDisk naming difference is an intentional external-vs-internal name mapping per the revision notes.

tools/rustev-release/tests/release_workflow.rs
value.split(" #").next().unwrap() is safe — split on a separator always yields at least one element. The trim correctly strips trailing whitespace. Handles both the annotated case ("./.github/workflows/bindings.yml # zizmor: ignore[self-repository]") and the unannotated case correctly.

spec 001 upgrade record
The addition to spec 001 is an appropriate owner-decision record for the profile and engine upgrade. No frontmatter conflict is visible in the diff.

No concrete defects found.

{"head": "70fe5cf6c88e855fd63cbccbb430281b603c516c", "verdict": "no-findings", "findings": []}

Subject: 23087c1...70fe5cf, diff digest 0bb504756c0f8388c98f93e1171909a79bb68775b481130c601a2f196f2e3c88, 1 call(s). An AI comment is not an approval.

This branch was previously deployed

1 inactive deployment
statecraft-review-exception — 70fe5cf6 Deployed Nov 5, 2026 by bartekus via review-exception #3460
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant