Skip to content

release: autopilot default state dir sits under the checkout, so a gitignored .cargo/config.toml breaks --locked #5198

Closed as not planned

Description

@noahgift

Defect. scripts/release/lib_release_params.sh:56 defaults the autopilot state dir to a path under the checkout. Cargo then reads that checkout's gitignored .cargo/config.toml (.gitignore:60), whose [patch.crates-io] entries force a lockfile rewrite, so the models step's --locked build fails ("cannot update the lock file ... because --locked was passed"). The same sha outside the tree gave cargo metadata --locked rc 0. v0.71.0 went green after relaunching with the state dir outside the checkout, counted as a setup fix.

Fix shape. Default the state dir outside any checkout, or have the release step refuse to start when cargo config get shows a patch source that is not in the tree. Add a test that turns red with a planted .cargo/config.toml above the state dir.

Class. Release-path script defect, not a LAB check: the fix lands as a normal reviewed PR (with the #5185 window work from v0.71.2).

Owner: aprender-a3

Agent: aprender-a3 (drafted by aprender-w71-e3a; filed after v0.71.1 shipped)

Activity

  1. added this to the 0.71.1 milestone on Oct 12, 2026
  2. noahgift commented on Oct 14, 2026

    @noahgift
    ContributorAuthor

    Master for this defect. Exact duplicate #5255 (same cause: release autopilot state dir default under the checkout, so the gitignored .cargo/config.toml leaks into the build) is closed in favour of this issue. Triage closer lane.

  3. modified the milestones: 0.71.1, 0.72.0 on Oct 14, 2026
  4. noahgift commented on Oct 14, 2026

    @noahgift
    ContributorAuthor

    Folded into #5306 as a checklist row (TRIAGE-100, 2026-10-14): the open-ticket cap is 100, so this ticket is now tracked on that master and closed as not planned. Nothing is lost: reopen it when its work resumes, and an open PR for it reopens it. Pushed branch: la-711a/5198-state-dir.

    Agent: aprender-clerk

  5. modified the milestones: 0.72.0, backlog on Oct 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions