Repository navigation
ci(actions): pin dtolnay/rust-toolchain by SHA; ADR-0031 records the five required checks on main - #155
Conversation
|
Reviewer: Codex (openai/codex-action, model gpt-5.6-terra) PR Review: ci(actions): pin dtolnay/rust-toolchain by SHA; document interop + commit-lint as required checks (#155)Decision: 🟢 Approved Executive summaryThis pins the remaining mutable Rust toolchain action reference to a full SHA and preserves the Decision: 🟢 Approved |
PR Review: ci(actions): pin dtolnay/rust-toolchain by SHA; document interop + commit-lint as required checks (#155)Decision: 🟢 Approved Executive summarySupply-chain hardening plus a doc update. The three workflows now pin New findingsNone. I verified each claim that carries risk:
Limitations
|
Every other action in the workflows is pinned to a full commit SHA; dtolnay/rust-toolchain was the exception, referenced as @stable, a branch upstream rebases on each Rust release. Pin it to the master commit that the v1 tag points at and pass toolchain: stable explicitly, which is the form upstream documents for SHA pinning (commits outside master's history get garbage-collected). Relative to the stable branch (6bed076) this master commit differs in two ways: stable defaults the toolchain input to stable, which is now passed explicitly; and master (upstream PR 185) passes --force-non-host to rustup toolchain install and rustup default. With toolchain: stable on the ubuntu, macos and Debian-container runners the requested toolchain is the host one, so the flag changes nothing here (CI logs resolve to stable-x86_64-unknown-linux-gnu and stable-aarch64-apple-darwin, rustc 1.98.1, as before). The # v1 comment is informational: Dependabot derives the version from the ref, not the comment, and proposes a bump once upstream moves the v1 tag off the pinned SHA. Every bump is reviewed against upstream master (compare/master...<new> must report ahead_by 0). Claude-Session: https://claude.ai/code/session_018UmL9wcgKBGFjdjGSSLafa Signed-off-by: Gonzalo Fleming <[email protected]>
ADR-0020 makes the OpenSSH interop job a required check for merge into main, but branch protection only required the two build jobs and cargo deny. The rule was extended on 2026-09-22 to also require openssh-interop and commit-lint. Update the two documents that describe that state: the expected output of the verification recipe in docs/operations.md and the "Required status checks" section of docs/infrastructure.md, which still enumerated three contexts. Claude-Session: https://claude.ai/code/session_018UmL9wcgKBGFjdjGSSLafa Signed-off-by: Gonzalo Fleming <[email protected]>
1116d51 to
af11d23
Compare
|
Reviewer: Codex (openai/codex-action, model gpt-5.6-terra) PR Review: ci(actions): pin dtolnay/rust-toolchain by SHA; document interop + commit-lint as required checks (#155)Decision: 🟡 Minor changes Executive summaryThe action references are now immutably pinned and retain the explicit stable-toolchain selection. However, the documentation changes establish a branch-protection decision that directly conflicts with the accepted ADR governing that configuration, without a superseding ADR. New findings🟡 Important (should be resolved)docs/infrastructure.md:299 — ADR governance (confidence: 86)
|
Records the 2026-09-22 extension of the branch-protection rule on main from three required checks (build x2, cargo deny) to five, adding commit-lint and openssh-interop. ADR-0008 enumerated the three contexts that existed at acceptance, so the change is a broadening of a recorded decision, not an erratum under ADR-0015: ADR-0031 amends that one bullet and leaves the rest of ADR-0008 in force. The openssh-interop half implements the required-check bullet of ADR-0020; commit-lint had no governance record until now. Also notes, without resolving it, that ADR-0020's package-version pin from a frozen source is still not implemented in interop.yml. ADR-0008's Status line points at ADR-0031, and the required-checks section of docs/infrastructure.md cites it. Claude-Session: https://claude.ai/code/session_018UmL9wcgKBGFjdjGSSLafa Signed-off-by: Gonzalo Fleming <[email protected]>
|
Reviewer: Codex (openai/codex-action, model gpt-5.6-terra) PR Review: ci(actions): pin dtolnay/rust-toolchain by SHA; ADR-0031 records the five required checks on main (#155)Decision: 🟡 Minor changes Executive summaryThe mutable toolchain-action references are now SHA-pinned with the previously implicit Previous issues
New findings🟡 Important (should be resolved)docs/adr/0031-required-status-checks-commit-lint-and-openssh-interop.md:3 — ADR lifecycle (confidence: 85)
|
|
Verified the pin independently: PR Review: ci(actions): pin dtolnay/rust-toolchain by SHA; document interop + commit-lint as required checks (#155)Decision: 🟢 Approved Executive summaryThree workflows now pin Previous issues
New findingsNone reach the reporting threshold (≥ 80). What I checked that carries risk:
Limitations
|
|
Re Codex review #3, "ADR-0031 remains Leaving the Status at No change to this PR for that finding. |
|
Reviewer: Codex (openai/codex-action, model gpt-5.6-terra) PR Review: ci(actions): pin dtolnay/rust-toolchain by SHA; ADR-0031 records the five required checks on main (#155)Decision: 🟡 Minor changes Executive summaryThe three mutable toolchain-action references are now full-SHA pins with the Previous issues
Decision: 🟡 Minor changes |
PR Review: ci(actions): pin dtolnay/rust-toolchain by SHA; ADR-0031 records the five required checks on main (#155)Decision: 🟢 Approved Executive summaryThe three workflows now pin Previous issues
New findingsNone reach the reporting threshold (≥ 80). What I verified that carries risk:
Limitations
|
|
All checks complete. Here is my review. PR Review: ci(actions): pin dtolnay/rust-toolchain by SHA; ADR-0031 records the five required checks on main (#155)Decision: 🟢 Approved Executive summarySupply-chain hardening plus a governance record. The three workflows now pin Previous issues
New findingsNone reach the reporting threshold (≥ 80). What I checked that carries risk:
Limitations
Decision: 🟢 Approved |
The second review round on #157 was cancelled by the 15-minute timeout while still working: the log shows subagent step 83 at minute 15 and no permission prompt, so it was slow, not hung. The first round with the same model (opencode-go/deepseek-v4.1-flash) took 9m38s; the same model through DeepSeek's direct API took under two minutes on #155 with the same prompt. 30 matches codex.yml. If a run reaches it, the model or the prompt is the problem. Claude-Session: https://claude.ai/code/session_018UmL9wcgKBGFjdjGSSLafa Signed-off-by: Gonzalo Fleming <[email protected]>
… and proof of review (ADR-0032) (#157) * docs(adr): add ADR-0032, opencode via OpenCode Go with the model in a variable Records the decision to move the opencode reviewer from DeepSeek's direct API with a model fixed in ADR-0025 to OpenCode Go with the model in the repository variable OPENCODE_MODEL, to require proof that a review was posted before the check goes green, and to drop the job's pull-requests permission to read. DeepSeek re-pointed the deepseek-v4-pro id to V4.1 Flash on 2026-09-14, so the reviewer had been running on a model the ADR does not name; and today's Claude reviewer runs on #155 showed a green check with no report. ADR-0025's Status line points at ADR-0032; the rest of ADR-0025 stands. Claude-Session: https://claude.ai/code/session_018UmL9wcgKBGFjdjGSSLafa Signed-off-by: Gonzalo Fleming <[email protected]> * ci(review): opencode reads its model from OPENCODE_MODEL and proves it reviewed (ADR-0032) Implements ADR-0032. The model leaves the YAML and lives in the repository variable OPENCODE_MODEL (<provider>/<model>); a validation step fails closed when the variable is missing or malformed, when the provider is not opencode-go or deepseek, or when the provider's secret is absent, naming what is missing and the command that fixes it, and writes the model to the job summary. After the action succeeds, the job counts the comments opencode-agent[bot] posted since the run started and fails if there are none. OpenCode Go reads OPENCODE_API_KEY, not OPENCODE_GO_API_KEY, so the provider block of OPENCODE_CONFIG_CONTENT points it at the secret; the same config denies filesystem access outside the checkout (except /etc) instead of opencode's default "ask", which hangs on a runner. The job gets a 15-minute ceiling and per-PR concurrency that lets a push cancel the running review but never lets the verdict's own issue_comment cancel the run publishing it. pull-requests drops to read: the App token from OIDC posts the review. persist-credentials is on because the comment-triggered path reads the git credential header and aborts when it is missing; the includeIf copy checkout also leaves is removed so git does not send two Authorization headers. Claude-Session: https://claude.ai/code/session_018UmL9wcgKBGFjdjGSSLafa Signed-off-by: Gonzalo Fleming <[email protected]> * docs(adr): ADR-0032 names what it supersedes in ADR-0025 by anchor ADR-0025 §Decision has five bullets and none is "provider/model": the provider and model are its opening sentence, and "green means reviewed" appears nowhere in it. Describe the superseded items by where they are — the opening sentence, the permissions bullet and the "sent to DeepSeek" clause of the No share bullet — in the Related line, the ADR-0025 Status line and the "everything else stands" bullet, which now notes that share: false applies to the provider OPENCODE_MODEL names. Claude-Session: https://claude.ai/code/session_018UmL9wcgKBGFjdjGSSLafa Signed-off-by: Gonzalo Fleming <[email protected]> * ci(review): one concurrency group per comment so a pending /oc is never displaced GitHub keeps one pending run per concurrency group and replaces it when another run is queued (docs: "any existing pending job or workflow in the same concurrency group will be canceled and the new queued job or workflow will take its place"). With comment runs in the PR's group, a human /oc waiting behind a push review was cancelled by the next bot comment, including opencode's own verdict. Pushes keep sharing the PR's group and cancel the stale in-progress review; each comment run now gets its own group (the comment id), starts alone and is discarded by the job if unless it was a human /oc. Also tells the model that its final answer must begin with the report heading: the first OpenCode Go run on #157 published its deliberation ("Let me write the report") ahead of the verdict. Claude-Session: https://claude.ai/code/session_018UmL9wcgKBGFjdjGSSLafa Signed-off-by: Gonzalo Fleming <[email protected]> * ci(review): raise the opencode ceiling to 30 minutes The second review round on #157 was cancelled by the 15-minute timeout while still working: the log shows subagent step 83 at minute 15 and no permission prompt, so it was slow, not hung. The first round with the same model (opencode-go/deepseek-v4.1-flash) took 9m38s; the same model through DeepSeek's direct API took under two minutes on #155 with the same prompt. 30 matches codex.yml. If a run reaches it, the model or the prompt is the problem. Claude-Session: https://claude.ai/code/session_018UmL9wcgKBGFjdjGSSLafa Signed-off-by: Gonzalo Fleming <[email protected]> * ci(review): proof of review matches this run's URL; only the selected provider's secret is passed With each comment-triggered run in its own concurrency group, two reviews of the same PR can run at once, and a comment posted by one could satisfy the proof step of the other. The action appends a "[github run](/owner/repo/actions/runs/<id>)" footer to every comment it posts, so the proof step now also requires that footer to name this run; the timestamp bound stays as a second filter. The validation step exports the provider it resolved, and the run step passes only that provider's secret to the action; the other is an empty string. Switching provider is still a change of OPENCODE_MODEL only. Claude-Session: https://claude.ai/code/session_018UmL9wcgKBGFjdjGSSLafa Signed-off-by: Gonzalo Fleming <[email protected]> * docs(adr): correct ADR-0032 — deepseek-v4-pro was not re-pointed to V4.1 Flash ADR-0032's Context, the workflow's model comment and the message of the commit that added the ADR said DeepSeek serves deepseek-v4-pro with V4.1 Flash since 2026-09-14, so the reviewer had been running on a smaller model than ADR-0025 names. That was the 2026-09-10 announcement, not the outcome: DeepSeek's pricing page (note 2) says it "decided to continue providing API services for DeepSeek V4 Pro after September 14, 2026", and the model version behind the id is still DeepSeek-V4-Pro-0813. Only the two flash ids were re-pointed. The decision stands on the flash-id instability and the reversed announcement alone; the Context, the "three model ids" count and the timing comparison (V4.1 Flash through Go versus V4 Pro on the direct API, not the same model) are corrected accordingly. Raised by the opencode review of #157. Claude-Session: https://claude.ai/code/session_018UmL9wcgKBGFjdjGSSLafa Signed-off-by: Gonzalo Fleming <[email protected]> * ci(review): keep persist-credentials false; cite DeepSeek's pages by the right note persist-credentials went to true on the premise that the action's git configuration aborts when the checkout's extraheader key is missing. The code that runs is the opencode CLI the composite installs from its latest release, and its configureGit checks the exit code of `git config --get` and moves on ("actions/checkout@v6 no longer stores credentials in .git/config"); main's runs with persist-credentials false posted reviews. Back to false, and the includeIf-removal step goes with it, which also leaves checkout's own credential cleanup intact. ADR-0032 now attributes the flash retirement to the pricing page (note 1) and the V4 Pro schedule and reversal to the changelog entry of 2026-09-10, where the quote lives, and records that the action SHA pins the composite wrapper, not the CLI it installs. Both raised by the opencode review of #157. Claude-Session: https://claude.ai/code/session_018UmL9wcgKBGFjdjGSSLafa Signed-off-by: Gonzalo Fleming <[email protected]> * ci(review): opencode refuses fork heads; ADR-0032 names the model boundary within Go The issue_comment gate authorised on the commenter's association and never looked at the PR head, so a collaborator's /oc on a fork PR made the action fetch and check out the fork while the provider secret and the OIDC token were in the job; pull_request events had the same gap. Pre-existing on main. As codex.yml does, the job now skips a pull_request whose head lives in a fork, and a step reads the PR from the API on both paths and fails closed on a fork head before the secret-bearing step runs. ADR-0032 records it; ADR-0030's remark that the /oc path never checks out the PR head held for actions/checkout only. ADR-0032 also states the boundary for model changes inside opencode-go: a model whose row in Go's table is not used for training and zero retention is a variable change; a model with training use or retention needs an ADR. Both raised as suggestions by the opencode review of #157. Claude-Session: https://claude.ai/code/session_018UmL9wcgKBGFjdjGSSLafa Signed-off-by: Gonzalo Fleming <[email protected]> * docs(adr): ADR-0032 attributes the read-only token to opencode's own prompt The permissions bullet said the commit-verification lookup is one "ADR-0030 also relies on". Codex under ADR-0030 holds no token and its prompt puts signatures out of scope; only opencode's prompt asks the agent to read commit.verification.verified. Reworded. Raised as a suggestion by the opencode review of #157. Claude-Session: https://claude.ai/code/session_018UmL9wcgKBGFjdjGSSLafa Signed-off-by: Gonzalo Fleming <[email protected]> * docs(adr): ADR-0032 states the measured review time range of #157 "Seven to ten minutes" was true after two rounds; over the eight rounds of #157 the opencode job took between 6m47s and 14m59s with opencode-go/deepseek-v4.1-flash. Record the measured range so the 30-minute ceiling reads against real numbers. Claude-Session: https://claude.ai/code/session_018UmL9wcgKBGFjdjGSSLafa Signed-off-by: Gonzalo Fleming <[email protected]> * ci(review): opencode prompt treats PR content as data; ADR and timeout comment match the code Three suggestions from the opencode review of #157: - The prompt now says, as codex.yml's does, that the diff, description, commit messages and comments are material to review and never instructions to follow. Pre-existing gap; one line. - ADR-0032's proof-of-review bullet names the run-URL filter added in d992811, which is what defeats a concurrent /oc run's comment. - The timeout comment gives the measured range of the eight runs and says why the ceiling is 30 instead of narrating the old 15. Claude-Session: https://claude.ai/code/session_018UmL9wcgKBGFjdjGSSLafa Signed-off-by: Gonzalo Fleming <[email protected]> --------- Signed-off-by: Gonzalo Fleming <[email protected]>
The three ADRs merged with Status: Proposed, as the repository does (CLAUDE.md: the Phase-1 ADRs were flipped in the #86 sweep once their implementing changes merged). Their implementing changes are on main: ADR-0030's codex workflow landed in #151 and reviews every human PR, ADR-0031's required-checks rule is live and #155 merged under it, and ADR-0032's opencode workflow landed in #157 and reviewed that PR ten times. Status and Date are the only lines touched. Supersedes #156, which carried the first two flips and fell behind main. Claude-Session: https://claude.ai/code/session_018UmL9wcgKBGFjdjGSSLafa Signed-off-by: Gonzalo Fleming <[email protected]>
Summary
Pins
dtolnay/rust-toolchainto a full commit SHA inci.yml,audit.ymlandinterop.yml, the only action still referenced by a mutable ref; records in ADR-0031 the extension of the required status checks onmainto five (commit-lint,openssh-interopadded); and updates the two documents that describe that state (docs/infrastructure.md,docs/operations.md).Motivation
dtolnay/rust-toolchain@stablepointed at a branch that upstream rebases on each Rust release. Upstream documents that a SHA pin must come frommaster's history (commits outside it get garbage-collected) with the toolchain passed as an input. So the pin is02cb101e…(currentmaster, also thev1tag) plustoolchain: stable.Relative to the
stablebranch (6bed076) that commit differs in two ways:stabledefaults thetoolchaininput tostable(now passed explicitly), andmaster(upstream PR 185, 2026-09-12) passes--force-non-hosttorustup toolchain install/rustup default. Withtoolchain: stablethe requested toolchain is the host one, so the flag changes nothing here: the CI logs of this PR resolve tostable-x86_64-unknown-linux-gnu/stable-aarch64-apple-darwin, rustc 1.98.1, same asmain.The
# v1comment is informational. Dependabot derives the version from the ref, not from the comment, and proposes a bump once upstream moves thev1tag off the pinned SHA (seegithub_actions/package/package_details_fetcher.rbin dependabot-core).main, but branch protection only requiredbuild (ubuntu-latest),build (macos-latest)andcargo deny, so a PR with a failing OpenSSH gate could merge. The protection rule was extended on 2026-09-22 to also requireopenssh-interopandcommit-lint(verified with the recipe indocs/operations.md). ADR-0008 §Decision enumerated the three checks that existed at its acceptance, so the change is a broadening of a recorded decision, not an erratum: ADR-0031 records it, amends that one bullet of ADR-0008 (its Status line now points at ADR-0031) and leaves the rest of ADR-0008 in force. As with ADR-0030 in ci(review): add Codex as a third automated PR reviewer (ADR-0030) #151, the ADR lands with the change it governs.Type of change
Checklist
Developer Certificate of Origin
(
git commit -s).cargo fmt --allandcargo clippy --workspace --all-targets -- -D warningslocally. (N/A: no Rust changed;actionlintpasses on the three workflows.)docs/, orREADME.md) where appropriate.CHANGELOG.mdentry under## [Unreleased]if this change is user-visible. (N/A: not user-visible)cargo deny check. (N/A)Security considerations
Supply-chain hardening only. The
build,openssh-interopandcargo auditjobs keep installing the same toolchain, whichrust-toolchain.tomlstill pins. The only difference is that the action code can no longer change underneath them.Notes for reviewers
interop.yml(ci(interop): pin openssh-client to an exact version via snapshot.debian.org #98 was closed unmerged). That is a separate decision.audit.ymlonly runs on schedule /workflow_dispatch, so its pin is not exercised by this PR's checks;interop.ymluses the identical form and passed.claude-code-action. Before bumping, confirm the new SHA is inmaster's history:gh api repos/dtolnay/rust-toolchain/compare/master...<new> --jq .ahead_bymust be0; then readdiff action.ymlbetween the old and new SHA.Automated reviews
PRs authored by
dependabot[bot](and other bots) do not trigger opencode, Claude Code Review or codex.They are covered by CI (
commit-lint,build,cargo deny,openssh-interop;cargo auditruns weekly) and manual review when needed.https://claude.ai/code/session_018UmL9wcgKBGFjdjGSSLafa