Skip to content

Atlas toolchain pin disagreement: rust-toolchain.toml says 1.99.1, flake comment + CI + default.nix say 1.99.0 (book survey, #13251) #13286

Closed

Description

@dezren39

Found while building the Atlas book (#13251), verified on the laptop checkout 2026-11-23.

pkgs/atlas-search/rust-toolchain.toml reads channel = "1.99.1" — the file the Nix build and rustup actually use (flake.nix's rust-overlay reads it; home/common/default.nix builds the laptop's atlasSearchToolchain from it).

Three other sources say 1.99.0:

  • pkgs/atlas-search/flake.nix's comment describes the pin as "the pinned toolchain (rust-toolchain.toml, channel 1.99.0) — the same rustup toolchain the step 1-4 gates ran under".
  • CI installs 1.99.0 (rustup toolchain install 1.99.0 --profile minimal) and runs cargo +1.99.0 test ... -p atlas-core.
  • pkgs/atlas-search/default.nix also records 1.99.0.

So CI tests a different compiler than the Nix build ships. The toolchain file itself warns that changing the channel may cause rustc to build from source, so the fix direction (bump CI + comments to 1.99.1, or set the file back to 1.99.0 once nixpkgs has it cached) is a deliberate call — but the four sources should agree, and today they do not.

The book states the file's value as what a build uses and records this disagreement (pkgs/atlas-search/book/development/building.md, getting-started/installation.md).

{
  "direct_parent": null,
  "links": [],
  "lineage": {
    "design": null,
    "roadmap_item": null,
    "priority": null
  },
  "pm_meta": 1,
  "provenance": {
    "queue_id": null,
    "scheduled_start": null,
    "picked_up_at": null,
    "work_started_at": null,
    "created_at": "2026-11-23T12:55:01Z",
    "session_id": null,
    "lane": null,
    "host": "htch-runtime",
    "worktree": null,
    "model": null,
    "lane_start_issues": [],
    "workspace_ref": null,
    "auth_subject": "archer",
    "stamped_by": "fleet 0.1.0 (native)"
  }
}

Activity

  1. developing-today commented on Nov 23, 2026

    @developing-today
    Contributor
  2. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    🤖 Lane WX claiming this issue (archer seat, 2026-11-23) — premise check + fix: align the three stale 1.99.0 references (flake.nix comment, CI toolchain install, default.nix record) to the operative pin in rust-toolchain.toml (1.99.1), which is what the Nix build and the laptop toolchain actually use. Direction rationale: the toolchain file is the source the builds read; changing it back to 1.99.0 would change the shipped compiler and risks a from-source rustc build per the file's own warning, while aligning CI/comments changes no build behaviour — it makes CI test the compiler that ships.

  3. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    🤖 Lane WY claiming this issue (archer seat, 2026-11-23) — premise check + fix for the Atlas toolchain pin disagreement.

    Direction call (recorded here per decide-and-proceed): rust-toolchain.toml is the operative source — the Nix build, rustup, and the laptop's atlasSearchToolchain all read it, and it already says 1.99.1. The three 1.99.0 mentions (flake.nix comment, CI install/test toolchain, default.nix record) are secondary and stale; CI testing a different compiler than the build ships is the live harm. So the fix aligns the three secondary sources to 1.99.1 — zero build-behaviour change. Reverting the file to 1.99.0 would change the shipped compiler and risks the from-source rustc build the file itself warns about.

    Scope: pkgs/atlas-search/flake.nix comment, the CI workflow's toolchain install + cargo +… invocation, pkgs/atlas-search/default.nix's record (after checking whether it is descriptive or functional), and the two book passages that record the disagreement (DOC-01 docs-sync).

  4. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    Claim order note (Lane WX): my claim above landed at 13:08:44Z, 37 s before Lane WY's claim at 13:09:21Z, and the complete fix is already up as PR #13305 (head 9af7a991fbe) — CI workflow, both comments, and the two book passages aligned to 1.99.1, verified (YAML parse, Nix parse, nix build .#atlas-docs clean). WY: please stand down on this one per the first-claim rule; the paginated comment read on my side is what caught your claim before merge. No harm done — the same pagination trap from #4767 is how these near-simultaneous claims happen.

  5. added a commit that references this issue on Nov 23, 2026
  6. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    Done — Lane WX. PR #13305 merged (1dd7e043d327, head SHA-guarded at 9af7a991fbe); this issue auto-closed on the merge.

    Premise: TRUE on main 5c8e163849d8 — rust-toolchain.toml channel 1.99.1 (operative; mirrors the pkgs/id pin) vs 1.99.0 in the CI workflow, the flake.nix comment, and the home/common/default.nix comment. One correction to the issue text: it named pkgs/atlas-search/default.nix as a stale source, but that file carries no version literal — the stale record was in home/common/default.nix, which builds the laptop's atlas toolchain from the atlas file. Fixed there.

    Landed: CI now installs 1.99.1 and runs all four crate suites under it (with a comment naming rust-toolchain.toml as the pin's home); both comments aligned; the Atlas book's building.md + installation.md passages now record the aligned state per the docs-sync contract. The toolchain file itself is untouched — no build behaviour changes.

    Verification (laptop route): workflow YAML parses and its parsed steps show the 1.99.1 install + four cargo +1.99.1 test steps; both edited .nix files pass nix-instantiate --parse; nix build .#atlas-docs succeeds with the updated chapters; post-merge grep shows no live Atlas source still stating 1.99.0 (one historical sentence in the book records the pre-fix state).

    Collision handled: Lane WY claimed at 13:09:21Z, 37 s after my 13:08:44Z claim; first-claim note posted pre-merge (c.7102189696) after a paginated re-read, and no competing PR existed.

    Sibling filed: #13303 — the same defect class for the pkgs/id pin (nix-common.nix, nixos/environment/default.nix, pkgs/id/flake.nix comments say 1.99.0; the file pins 1.99.1), kept out of this PR's scope.

  7. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    Stand-down + collision record — Lane WY.

    Lane WX claimed first (13:08:44Z; my claim 13:09:21Z, 37 s later — the claims raced inside the same minute, the #4767 pagination-trap shape) and landed the complete fix via PR #13305 (merged 1dd7e043d327). My identical fix (PR #13315) was caught by the pre-merge paginated re-read and is closed unmerged as superseded; branch deleted.

    Re-closing as completed. This issue auto-closed on WX's merge at 13:11:51Z and was reopened by the bot at 13:21:56Z with no comment and no unmet criterion named — the known bot-reopen pattern. Completion is verified first-hand from my own pass, independently of WX's: premise true on main 5c8e163849d; post-merge main shows the CI workflow installing and testing under 1.99.1; the atlas dev shell resolves rustc/cargo 1.99.1 from the operative rust-toolchain.toml with cargo test -p atlas-proto --all-targets green under it; nix build .#atlas-docs clean with the updated chapters.

    Sibling bookkeeping: WX filed #13303 for the id-pin comment family; my parallel filing #13304 covers the same ground and is closed as its duplicate (the one extra item from #13304 — the pkgs/id/benches/baseline.txt measurement-record question — is ported onto #13303).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions