Skip to content

fix(roadmap): let the bootstrap of an existing branch update a stale lock #6557

Description

@dan-petty

Problem

The coder bootstrap of #6517 (PR #6537, merged) has two gaps that a review found after its last fix round:

  • On an existing branch the bootstrap syncs uv without --locked, so a stale uv.lock is locked again. But it still runs npm ci --ignore-scripts when a root package-lock.json exists, and npm ci refuses a lock that does not match package.json. So a staged branch whose package.json changed with no lock update now stops at the step bootstrap, and the model fix of fix-checks fails before its first model request.
  • The uv-seed path (perf(k8s): seed the uv cache of a runner pod from the image #4814) compares only the sha256 of uv.lock, so a stale lock can fit the seed. The bootstrap then syncs offline, and an offline sync cannot resolve to lock again.

The spec scenario "A stale lock of a staged branch locks again" also describes a locked-then-unlocked fallback that the code does not run.

Change

  • On an existing branch (locked false) run npm install --ignore-scripts; keep npm ci for the new branch of a Planned item.
  • Run the offline seed sync only with --locked; without it, copy the seed into the cache and sync online.
  • State the scenario as the one sync that runs.

Proof

Tests in tests/roadmap/test_roadmap_runner_tools.py fail before the change and pass after it.

Source

Source: #6537

Activity

  1. added
    type/bug
    source/agent
    scope/roadmap
    status/new
    on Nov 20, 2026
  2. dan-petty commented on Nov 20, 2026

    @dan-petty
    OwnerAuthor
  3. added
    value/medium
    effort/medium
    priority/p2-medium
    status/in-progress
    and removed
    status/new
    on Nov 20, 2026
  4. added
    status/in-review
    and removed
    status/in-progress
    on Nov 20, 2026
  5. removed
    status/in-review
    on Nov 20, 2026
  6. added a commit that references this issue on Nov 20, 2026
  7. devops-cli-service commented on Nov 20, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-20 22:40 UTC

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

    effort/mediumpriority/p2-mediumscope/roadmapsource/agenttype/bugvalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions