Skip to content

docs(adr): ADR-0039 — pin the Rust toolchain to an exact release (Proposed) - #180

Merged
gonzafg2 merged 2 commits into
mainfrom
docs/adr-0039-pin-rust-toolchain
Oct 12, 2026
Merged

gonzafg2 merged 2 commits into
mainfrom
docs/adr-0039-pin-rust-toolchain

Conversation

@gonzafg2

@gonzafg2 gonzafg2 commented Oct 12, 2026 •

Copy link
Copy Markdown
Owner

Summary

Adds ADR-0039 (Proposed): pin the Rust toolchain to an exact stable release in rust-toolchain.toml, make that file the only place a Rust version is named, and move it through a reviewed bump PR.

Why now: rust-toolchain.toml tracks channel = "stable" (ADR-0010 line 41), and the three CI jobs that install Rust ask dtolnay/rust-toolchain for stable. Rust 1.99.0 reached stable on 2026-10-01 with the new clippy::assert_is_empty. build runs Clippy with -D warnings, so every PR run failed from 2026-10-05 (run 37271047382) to 2026-10-11 (run 38111812201): six runs on #170, #171 and the docs-only #172. build (…) is a required check (ADR-0031), so nothing could merge until #173 fixed the four assertions.

Decision in one screen

  • Exact pin: channel = "1.99.0", the release CI runs today (rustc 1.99.0 (b940084d7 2026-09-28)).
  • One source of truth: each job that installs Rust (build ×2, openssh-interop, audit) reads channel from rust-toolchain.toml and passes it to dtolnay/rust-toolchain. The step fails unless the value is an exact MAJOR.MINOR.PATCH. cargo deny already installs what the file names (cargo-deny-action entrypoint.sh line 41), so it needs no change.
  • Bump procedure: one PR that changes channel and fixes the new lints, with CI green on the new version. Dependabot's rust-toolchain ecosystem opens it each week a release lands.
  • Unchanged: MSRV 1.92 (rust-version, clippy.toml), resolver, edition, components. No MSRV CI job is added; the ADR lists it as a possible follow-up.

Facts verified while drafting

  • rustup already gives the toolchain file precedence over the action's default in CI ("overridden by '…/rust-toolchain.toml'", run 38184753507). The action's input only decides what gets installed first, so it must agree with the file.
  • dtolnay/rust-toolchain at the pinned 7e38f4b cannot read the file: toolchain is a required input (action.yml lines 9–11), and there is no other way to select a version. Its @1.99.0 refs sit outside master's history, so the README's SHA-pin rule (lines 102–108) rules them out.
  • Correction to the premise that Dependabot cannot track the toolchain. Dependabot has supported package-ecosystem: rust-toolchain since 2025-08-19 (GitHub changelog, options reference). What is true is that this repository's .github/dependabot.yml configures only cargo and github-actions. The ADR adds that entry and keeps the merge a reviewed decision. Alternative 5 records the manual-only option if the lead prefers it.

Why an ADR and not an RFC: there is no new dependency, action or host, and no user-visible default changes. The ADR supersedes one ADR bullet, the same lane ADR-0034 used for ADR-0020. It is stated in the ADR.

Merge order

  1. This PR first (docs only, ADR stays Proposed).
  2. ci(toolchain): pin Rust 1.99.0 in rust-toolchain.toml; CI reads it (ADR-0039) #181, the implementing PR, stacked on this branch: the rust-toolchain.toml pin, the workflow and Dependabot changes, the flip of ADR-0039 to Accepted, and the Status-only edit of ADR-0010 (ADR-0015). The ADR-0010 edit goes there, not here, because it takes effect when the pin does. After this PR merges, replay only ci(toolchain): pin Rust 1.99.0 in rust-toolchain.toml; CI reads it (ADR-0039) #181's own commits onto main (rebase --signoff --onto origin/main <this PR's final head>). ci(toolchain): pin Rust 1.99.0 in rust-toolchain.toml; CI reads it (ADR-0039) #181's body has the details.

Refs #109

https://claude.ai/code/session_01HxXXh6HEpJBs7tbuz3NmtW

…posed)

Rust 1.99.0 (2026-10-01) added clippy::assert_is_empty, and CI ran the
floating stable channel with -D warnings, so the required build checks
failed on every PR from 2026-10-05 until #173. ADR-0039 supersedes the
channel = "stable" part of ADR-0010: rust-toolchain.toml pins 1.99.0,
every CI job reads the version from that file, and a bump is one
reviewed PR, opened by Dependabot's rust-toolchain ecosystem.

Refs #109

Claude-Session: https://claude.ai/code/session_01HxXXh6HEpJBs7tbuz3NmtW
Signed-off-by: Gonzalo Fleming <[email protected]>
@gonzafg2 gonzafg2 added the documentation Improvements or additions to documentation label Oct 12, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 12, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-12T02:13:00.677698Z 54723b4 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 54723b415d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@opencode-agent

Copy link
Copy Markdown

APIError: Upstream request failed: Insufficient account funds

github run

@gonzafg2

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Hooray!

Reviewed commit: 54723b415d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@opencode-agent

Copy link
Copy Markdown

APIError: Upstream request failed: Insufficient account funds

github run

@claude

claude Bot commented Oct 12, 2026

Copy link
Copy Markdown
Contributor

PR Review: docs(adr): ADR-0039 — pin the Rust toolchain to an exact release (Proposed) (#180)

Decision: 🟢 Approved
Iteration: First review
Lenses applied: design decision (docs/adr/)

Executive summary

ADR-0039 records the decision to pin the Rust toolchain to an exact MAJOR.MINOR.PATCH release in rust-toolchain.toml, make that file the sole source of truth for the version, and automate bump PRs through Dependabot's rust-toolchain ecosystem. The ADR is well-grounded in a documented incident (six days of CI blockage due to the floating stable channel picking up clippy::assert_is_empty in Rust 1.99.0) and follows the same pinning discipline ADR-0020 and ADR-0034 applied to the OpenSSH client. No issues found across CLAUDE.md compliance, factual correctness, or security.

No issues found. Checked for bugs and CLAUDE.md compliance.

@gonzafg2
gonzafg2 merged commit 372691a into main Oct 12, 2026
10 of 11 checks passed
@gonzafg2
gonzafg2 deleted the docs/adr-0039-pin-rust-toolchain branch October 12, 2026 18:01
gonzafg2 added a commit that referenced this pull request Oct 12, 2026
#180 squash-merged ADR-0039 as Proposed. This branch carries the same
file plus its acceptance with #181 and the corrected README citation,
so the add/add conflict resolves to this branch's version.

Claude-Session: https://claude.ai/code/session_01HxXXh6HEpJBs7tbuz3NmtW
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

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant