Skip to content

ci(actions): pin dtolnay/rust-toolchain by SHA; ADR-0031 records the five required checks on main - #155

Merged
gonzafg2 merged 3 commits into
mainfrom
ci/pin-rust-toolchain-action
Sep 22, 2026
Merged

gonzafg2 merged 3 commits into
mainfrom
ci/pin-rust-toolchain-action

Conversation

@gonzafg2

@gonzafg2 gonzafg2 commented Sep 22, 2026 •

Copy link
Copy Markdown
Owner

Summary

Pins dtolnay/rust-toolchain to a full commit SHA in ci.yml, audit.yml and interop.yml, the only action still referenced by a mutable ref; records in ADR-0031 the extension of the required status checks on main to five (commit-lint, openssh-interop added); and updates the two documents that describe that state (docs/infrastructure.md, docs/operations.md).

Motivation

  • Action pin. Every other action is pinned to a SHA; dtolnay/rust-toolchain@stable pointed at a branch that upstream rebases on each Rust release. Upstream documents that a SHA pin must come from master's history (commits outside it get garbage-collected) with the toolchain passed as an input. So the pin is 02cb101e… (current master, also the v1 tag) plus toolchain: stable.
    Relative to the stable branch (6bed076) that commit differs in two ways: stable defaults the toolchain input to stable (now passed explicitly), and master (upstream PR 185, 2026-09-12) passes --force-non-host to rustup toolchain install / rustup default. With toolchain: stable the requested toolchain is the host one, so the flag changes nothing here: the CI logs of this PR resolve to stable-x86_64-unknown-linux-gnu / stable-aarch64-apple-darwin, rustc 1.98.1, same as main.
    The # v1 comment is informational. Dependabot derives the version from the ref, not from the comment, and proposes a bump once upstream moves the v1 tag off the pinned SHA (see github_actions/package/package_details_fetcher.rb in dependabot-core).
  • Required checks. ADR-0020 §Decision says the interop job is a required check for merge into main, but branch protection only required build (ubuntu-latest), build (macos-latest) and cargo deny, so a PR with a failing OpenSSH gate could merge. The protection rule was extended on 2026-09-22 to also require openssh-interop and commit-lint (verified with the recipe in docs/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

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that changes existing behaviour)
  • Documentation only
  • Refactor / chore / CI / build

Checklist

  • My commits are signed off under the
    Developer Certificate of Origin
    (git commit -s).
  • My commit messages follow Conventional Commits.
  • I have run cargo fmt --all and cargo clippy --workspace --all-targets -- -D warnings locally. (N/A: no Rust changed; actionlint passes on the three workflows.)
  • I have added or updated tests where appropriate. (N/A)
  • I have updated documentation (rustdoc, docs/, or README.md) where appropriate.
  • I have added a CHANGELOG.md entry under ## [Unreleased] if this change is user-visible. (N/A: not user-visible)
  • If this change introduces a new dependency, I have justified it in the PR description and verified it passes cargo deny check. (N/A)

Security considerations

Supply-chain hardening only. The build, openssh-interop and cargo audit jobs keep installing the same toolchain, which rust-toolchain.toml still pins. The only difference is that the action code can no longer change underneath them.

Notes for reviewers

  • ADR-0031 also states, without resolving it, that ADR-0020's package-version pin from a frozen source is still not implemented in 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.yml only runs on schedule / workflow_dispatch, so its pin is not exercised by this PR's checks; interop.yml uses the identical form and passed.
  • The action SHA must be bumped deliberately, the same discipline as the pinned claude-code-action. Before bumping, confirm the new SHA is in master's history: gh api repos/dtolnay/rust-toolchain/compare/master...<new> --jq .ahead_by must be 0; then read diff action.yml between 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 audit runs weekly) and manual review when needed.

https://claude.ai/code/session_018UmL9wcgKBGFjdjGSSLafa

@github-actions

Copy link
Copy Markdown

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
Iteration: First review
Lenses applied: CI workflows, operations documentation

Executive summary

This pins the remaining mutable Rust toolchain action reference to a full SHA and preserves the stable toolchain selection explicitly. The documented required-check names match the corresponding CI job names, including ADR-0020’s required openssh-interop gate. No high-signal findings identified; action-SHA provenance could not be independently verified without network access.

Decision: 🟢 Approved

@opencode-agent

Copy link
Copy Markdown

PR Review: ci(actions): pin dtolnay/rust-toolchain by SHA; document interop + commit-lint as required checks (#155)

Decision: 🟢 Approved
Iteration: First review (no prior comments or reviews)
Lenses applied: CI/workflows, docs (operations.md verification recipe)

Executive summary

Supply-chain hardening plus a doc update. The three workflows now pin dtolnay/rust-toolchain to a full commit SHA (02cb101e…) with an explicit toolchain: stable input, and docs/operations.md adds commit-lint and openssh-interop to the expected branch-protection contexts. No Rust changes, no dependencies, no behaviour change. I verified the pin, the input semantics, and the check-context names; nothing reaches the reporting threshold.

New findings

None. I verified each claim that carries risk:

  • SHA is real and stable. gh api repos/dtolnay/rust-toolchain/commits/02cb101ec7c40f2c49e1d9714d64511d8e1b74de resolves to a merge commit, and gh api repos/dtolnay/rust-toolchain/tags shows the v1 tag points at exactly this SHA — so the pin is on master's history and GC-safe, as the PR claims.
  • toolchain: stable is required and correct. With a SHA ref, github.action_ref is no longer stable, so the action's default toolchain would be empty; the explicit input restores the prior @stable behaviour. No drift in ci.yml (rustfmt+clippy components preserved) or interop.yml/audit.yml.
  • All uses: are now SHA-pinned. A grep across .github/workflows/ shows every remaining uses: is a 40-char SHA — the mutable-ref claim holds and the fix completes it.
  • Doc context names match reality. ci.yml job commit-lint (.github/workflows/ci.yml:27) and interop.yml job openssh-interop (.github/workflows/interop.yml:27) produce exactly those check-run names; build (ubuntu-latest)/build (macos-latest)/cargo deny are unchanged and correct.
  • Anchor satisfied. ADR-0020 §Decision states the interop job is a required check for merge into main; the doc change merely records that the protection rule now also enforces it, which is consistent rather than a design change.

Limitations

  • Branch-protection state is not observable from this runner: gh api …/branches/main/protection returns HTTP 403 for this integration, so I cannot independently confirm whether the rule already requires commit-lint/openssh-interop. The PR itself flags this as the merge-order concern ("merge only after the protection change is live"), so the temporary doc/reality gap is acknowledged, not hidden.
  • Commit signatures were not checked via git log %G? (not meaningful on a runner); the DCO Signed-off-by trailer is present on both commits and the messages are Conventional Commits.

github run

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]>
@gonzafg2
gonzafg2 force-pushed the ci/pin-rust-toolchain-action branch from 1116d51 to af11d23 Compare September 22, 2026 19:13
@github-actions

Copy link
Copy Markdown

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
Iteration: Review #2 (0 resolved, 0 open)
Lenses applied: CI workflows, operations documentation, ADR governance

Executive summary

The 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)

Problem: The PR changes the documented required-check set from the three checks mandated by accepted ADR-0008 to five, adding commit-lint and openssh-interop. ADR-0008 §Decision still explicitly requires “All three CI status checks,” so the repository has conflicting authoritative operational guidance. The PR description acknowledges that a follow-up ADR is still pending.

Fix: Include a superseding ADR that records the expanded required-check set and reconciles ADR-0008 with ADR-0020 before documenting it as the enforced configuration.

Anchor: CLAUDE.md, “RFC vs ADR vs plain PR” — accepted ADR decisions are changed through a superseding ADR; ADR-0008 §Decision; ADR-0020 §Decision.

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]>
@gonzafg2 gonzafg2 changed the title ci(actions): pin dtolnay/rust-toolchain by SHA; document interop + commit-lint as required checks ci(actions): pin dtolnay/rust-toolchain by SHA; ADR-0031 records the five required checks on main Sep 22, 2026
@github-actions

Copy link
Copy Markdown

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
Iteration: Review #3 (1 resolved, 0 open)
Lenses applied: CI workflows, ADR governance, operations documentation

Executive summary

The mutable toolchain-action references are now SHA-pinned with the previously implicit stable toolchain selection made explicit. The earlier ADR-governance finding is resolved: ADR-0031 properly records the expanded required-check decision and ADR-0008’s status identifies the superseded bullet. However, ADR-0031 remains Proposed, so merging this PR would not produce the Accepted decision record required by the ADR lifecycle.

Previous issues

# Issue Status Notes
1 Required-check documentation conflicted with ADR-0008 without a superseding ADR. ✅ ADR-0031 records the replacement decision and ADR-0008’s Status links to it.

New findings

🟡 Important (should be resolved)

docs/adr/0031-required-status-checks-commit-lint-and-openssh-interop.md:3 — ADR lifecycle (confidence: 85)

Problem: ADR-0031 is the record that supersedes part of accepted ADR-0008, but its status remains Proposed. The ADR process requires an ADR to be Accepted on merge before it becomes the authoritative record; a merged Proposed ADR leaves the prior decision marked superseded by a non-accepted document.

Fix: Set ADR-0031’s status to Accepted as part of this PR, with its merge date as appropriate.

Anchor: docs/adr/README.md “Process”, step 5 (“On merge, the ADR is Accepted”); CLAUDE.md “RFC vs ADR vs plain PR”.

@opencode-agent

Copy link
Copy Markdown

Verified the pin independently: gh api confirms 02cb101e… exists, the v1 tag points at it, and compare/master...02cb101e returns ahead_by: 0 (on master's history, GC-safe). No network gap here.

PR Review: ci(actions): pin dtolnay/rust-toolchain by SHA; document interop + commit-lint as required checks (#155)

Decision: 🟢 Approved
Iteration: Review #2 (1 resolved, 0 open)
Lenses applied: CI/workflows (action pinning), design decision (docs/adr/0031)

Executive summary

Three workflows now pin dtolnay/rust-toolchain to a full commit SHA with an explicit toolchain: stable input, and ADR-0031 records the branch-protection rule extended to five required checks (commit-lint, openssh-interop added), with the two ops docs brought into agreement. No Rust changes, no new dependencies. The only prior finding — a governance gap where the five-check docs contradicted ADR-0008 before a superseding ADR existed — is now closed by commit 6a41bfa.

Previous issues

# Issue Status Notes
1 codex #2 (docs/infrastructure.md:299): five-check list conflicts with ADR-0008 §Decision ("All three CI status checks"); no superseding ADR ✅ resolved Raised against af11d23 (before ADR-0031 existed). 6a41bfa adds ADR-0031 and amends ADR-0008's Status line to point at it. ADR-0008's decision body is untouched — only the Status field, which ADR-0015 permits.

New findings

None reach the reporting threshold (≥ 80). What I checked that carries risk:

  • Pin is real and GC-safe. gh api repos/dtolnay/rust-toolchain/commits/02cb101e… resolves; the v1 tag points at exactly that SHA; compare/master...02cb101e returns ahead_by: 0 — the SHA is on master's history, matching the PR's claim and the upstream garbage-collection caveat.
  • toolchain: stable is required, not cosmetic. With a SHA ref the action can no longer infer the toolchain from the branch name, so the explicit input restores the prior @stable behaviour; components: rustfmt, clippy is preserved in ci.yml:94. No drift in audit.yml/interop.yml.
  • No mutable action refs remain. Every uses: across .github/workflows/ is a 40-char SHA; grep rust-toolchain@ shows only the pinned form in the three edited files.
  • Context names match job names. commit-lint (ci.yml:27), build (${{ matrix.os }}) (ci.yml:59), cargo deny (deny.yml:17), openssh-interop (interop.yml:27) — the five names in operations.md:220 and ADR-0031 agree with the actual check-run names.
  • ADR-0008 edit is a Status-only change. git diff confirms a single line: Status: Accepted → Accepted; the required-status-checks bullet is superseded by ADR-0031. Permitted in-place edit under ADR-0015 / CLAUDE.md ("immutable except Status and errata"); the decision body ("All three CI status checks") is left as the historical record, superseded by a new ADR rather than rewritten.
  • ADR-0031 follows the ADR-0030 precedent — Status: Proposed, "becomes the acceptance date on merge", landing with the change it governs. This is the established lifecycle (Accepted flips happen in governance sweeps), not an inconsistency.

Limitations

  • The live branch-protection rule (branches/main/protection) is not observable from this runner for this repo (HTTP 403), so I cannot independently confirm the rule already enforces the five contexts. The PR flags the merge-order dependency itself, and the doc/reality gap is acknowledged rather than hidden.
  • Commit signatures were not checked via git log %G? (SSH signatures never validate on a runner); DCO Signed-off-by trailers are present and messages follow Conventional Commits.

github run

@gonzafg2

Copy link
Copy Markdown
Owner Author

Re Codex review #3, "ADR-0031 remains Proposed":

Leaving the Status at Proposed on merge is this repository's established practice, not an omission. CLAUDE.md §"What this is" records it: the Phase-1 ADRs (0016–0024, 0026) were "flipped from Proposed in the #86 governance sweep once their implementing milestones merged". ADR-0030 followed the same path in #151 (its header reads "Proposed … becomes the acceptance date on merge") and is still Proposed on main pending its flip. ADR-0031 uses the identical header wording; its Status flip to Accepted is a separate, one-line follow-up after this PR merges, so the acceptance date in the file matches the merge date.

No change to this PR for that finding.

@gonzafg2
gonzafg2 marked this pull request as ready for review September 22, 2026 19:29
@gonzafg2
gonzafg2 merged commit 108ad4d into main Sep 22, 2026
16 checks passed
@gonzafg2
gonzafg2 deleted the ci/pin-rust-toolchain-action branch September 22, 2026 19:30
@github-actions

Copy link
Copy Markdown

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
Iteration: Review #4 (1 resolved, 1 open)
Lenses applied: CI workflows, ADR governance, operations documentation

Executive summary

The three mutable toolchain-action references are now full-SHA pins with the stable selection explicitly preserved; all workflow uses: references are SHA-pinned. The ADR supersession properly resolves the earlier conflict with ADR-0008, but ADR-0031 remains Proposed while being made load-bearing.

Previous issues

# Issue Status Notes
1 Required-check documentation conflicted with ADR-0008 without a superseding ADR. ✅ ADR-0031 records the replacement decision, and ADR-0008’s Status field now points to it.
2 ADR-0031 must be Accepted when its decision merges. ❌ ADR-0031 remains Proposed. The author’s reply describes a later governance sweep, but the current ADR process requires that “on merge, the ADR is Accepted.”

Decision: 🟡 Minor changes

@opencode-agent

Copy link
Copy Markdown

PR Review: ci(actions): pin dtolnay/rust-toolchain by SHA; ADR-0031 records the five required checks on main (#155)

Decision: 🟢 Approved
Iteration: Review #3 (2 resolved, 0 open)
Lenses applied: CI/workflows (action pinning), design decision (docs/adr/0031, docs/adr/0008)

Executive summary

The three workflows now pin dtolnay/rust-toolchain to a full commit SHA with an explicit toolchain: stable input, and ADR-0031 records the branch-protection rule broadened from three to five required checks, with docs/infrastructure.md and docs/operations.md brought into agreement. No Rust changes, no new dependencies. I re-verified the pin against the upstream repo (network available here) and the ADR-0008 Status-only edit; nothing new reaches the reporting threshold.

Previous issues

# Issue Status Notes
1 codex #2 (docs/infrastructure.md:299): five-check list conflicts with ADR-0008 §Decision ("All three CI status checks") with no superseding ADR ✅ 6a41bfa adds ADR-0031 and amends ADR-0008's Status line. Decision body left as historical record; permitted Status-only edit under ADR-0015 / CLAUDE.md "immutable except Status and errata".
2 codex #3 (docs/adr/0031:3): ADR-0031 remains Proposed instead of Accepted on merge ✅ Author's justification holds: CLAUDE.md:33-35 documents the #86 sweep (Phase-1 ADRs flipped from Proposed after milestones merged), and ADR-0030 (merged #151) is the immediate precedent — still Proposed on main with identical "becomes the acceptance date on merge" header. This PR follows the established, documented lifecycle, not an omission. The residual tension with docs/adr/README.md §Process step 5 ("on merge, the ADR is Accepted") is a pre-existing repo-level doc inconsistency, not introduced here.

New findings

None reach the reporting threshold (≥ 80). What I verified that carries risk:

  • Pin is real, stable, and GC-safe. gh api confirms 02cb101e… resolves, the v1 tag points at exactly that SHA, and compare/master...02cb101e returns ahead_by: 0 — on master's history, matching the PR's claim and upstream's garbage-collection caveat.
  • No mutable action refs remain. Every uses: across .github/workflows/ is a 40-char SHA; the only non-pinned uses removed by this PR was dtolnay/rust-toolchain@stable. container.image in interop.yml is digest-pinned.
  • toolchain: stable is required, not cosmetic. With a SHA ref the action can no longer infer the toolchain from the branch name; the explicit input restores the prior @stable behaviour (components: rustfmt, clippy preserved in ci.yml:94).
  • Permissions are minimal. ci.yml, interop.yml, deny.yml, audit.yml all carry permissions: contents: read (audit additionally issues: write, unchanged).
  • All five context names match the actual check-run names — build (ubuntu-latest)/build (macos-latest) (ci.yml:59), cargo deny (deny.yml:17), commit-lint (ci.yml:27), openssh-interop (interop.yml:27). operations.md:220 and ADR-0031 agree.
  • ADR-0008 edit is Status-only — a single line changed; the decision body ("All three CI status checks") remains the historical record, superseded by a new ADR rather than rewritten, per ADR-0015.
  • Commit signature verified via the GitHub API (.commit.verification.verified = true on 6a41bfa), the field branch protection actually enforces.

Limitations

  • The live branch-protection rule (branches/main/protection) returns HTTP 403 for this integration, so I cannot independently confirm the rule already enforces the five contexts. The PR flags the merge-order dependency itself; the doc/reality gap is acknowledged, not hidden.

github run

@opencode-agent

Copy link
Copy Markdown

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
Iteration: Review #3 (2 resolved, 0 open)
Lenses applied: CI/workflows (action pinning, permissions), design decision (docs/adr/0031, docs/adr/0008)

Executive summary

Supply-chain hardening plus a governance record. The three workflows now pin dtolnay/rust-toolchain to a full commit SHA with an explicit toolchain: stable input (the only remaining mutable action ref), and ADR-0031 records the branch-protection rule extended to five required checks, with ADR-0008's Status line pointed at it and the two ops docs brought into agreement. No Rust, no dependency changes. I independently re-verified the pin, the input semantics, the job/context names, and both prior findings.

Previous issues

# Issue Status Notes
1 codex #2: five-check docs conflicted with ADR-0008 §Decision ("All three CI status checks") with no superseding ADR ✅ Raised against af11d23. 6a41bfa adds ADR-0031 and amends ADR-0008's Status line. Verified: ADR-0008's decision body is untouched — only the Status field, which ADR-0015 permits.
2 codex #3: ADR-0031 remains Proposed, leaving a "superseding" doc non-Accepted ✅ (not a valid finding) Verified against the repo's established practice: ADR-0030 (0030-codex-third-automated-reviewer.md) is still Status: Proposed on main, and CLAUDE.md §"What this is" records the ADRs are "flipped from Proposed in the #86 governance sweep once their implementing milestones merged". ADR-0031 uses ADR-0030's exact header wording. The README Process step-5 line codex cited is contradicted by the authoritative CLAUDE.md description and the live ADR-0030 precedent.

New findings

None reach the reporting threshold (≥ 80). What I checked that carries risk:

  • Pin is real and GC-safe. gh api repos/dtolnay/rust-toolchain/commits/02cb101e… resolves to "Merge pull request 185 from fufesou/feat/force-non-host"; compare/master...02cb101e returns ahead_by: 0, status: identical; the v1 tag points at exactly that SHA. Matches the PR's claim (and its --force-non-host caveat).
  • toolchain: stable is required, not cosmetic. With a SHA ref the action can no longer infer the toolchain from @stable; the explicit input restores prior behaviour. rust-toolchain.toml also pins stable, so no drift. components: rustfmt, clippy preserved in ci.yml:94.
  • No mutable refs remain. Every uses: across .github/workflows/ is a 40-char SHA (grep uses: above).
  • Context names match job names. commit-lint (ci.yml:27), build (… os …) (ci.yml:59), cargo deny (deny.yml:17, job name: cargo deny), openssh-interop (interop.yml:27) — the five names in operations.md:220 and ADR-0031 agree with the real check-run names.
  • ADR-0008 edit is Status-only. Diff confirms a single Status-line change; permitted under ADR-0015 and the README's two in-place exceptions.
  • Commits clean. All three verified via GitHub API (.commit.verification.verified: true), DCO trailers present, Conventional Commits types correct.

Limitations

  • The live branch-protection rule (branches/main/protection) returns HTTP 403 for this runner, so I cannot independently confirm the rule already enforces the five contexts. The PR flags the merge-order dependency itself; the doc/reality gap is acknowledged, not hidden.

Decision: 🟢 Approved

github run

gonzafg2 added a commit that referenced this pull request Sep 22, 2026
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]>
gonzafg2 added a commit that referenced this pull request Sep 22, 2026
… 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]>
gonzafg2 added a commit that referenced this pull request Sep 22, 2026
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]>
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