Skip to content

fix(roadmap): plan drift clears other needs-fix labels #5884

Closed

Description

@dan-petty

Problem

The plan drift row removes the label plan/needs-fix from a plan pull request that has no drift problem, also when another check put the label there. Then the stage_ready row marks the pull request ready. So a plan with an open review finding becomes ready with no change.

The code is src/devops_cli/roadmap/stage/plan_drift.py:188-190 (from #5745, 2026-11-14):

if not problems:
    if pull.number in store.labelled_pulls(PLAN_NEEDS_FIX_LABEL):
        store.unlabel_issue(pull.number, PLAN_NEEDS_FIX_LABEL)

Three checks write the same label: the stage model review (stage.py:3635), the fix-plan step, and the agent vet before a person merges. The drift row clears all of them.

Evidence:

Expected behavior

The drift row removes only the plan/needs-fix label that the drift row added. A label from the stage review, the fix-plan step or a person stays until its own check clears it.

Fix options (the plan decides)

  • Remove the label only when the drift comment of the pull request exists (the drift row wrote it) and the review of the stage has no open finding.
  • Or give drift its own label (for example plan/drift) and let stage_ready and the implement job block on both.

Test first: a plan pull request with plan/needs-fix from the stage review and no drift problem keeps the label after a drift round.

Related

Source: #5876

Activity

  1. added
    source/agent
    type/bug
    scope/roadmap
    status/new
    value/high
    effort/medium
    on Nov 15, 2026
  2. dan-petty commented on Nov 15, 2026

    @dan-petty
    OwnerAuthor
  3. added
    priority/p1-high
    owner/agent
    status/in-progress
    status/in-review
    and removed
    status/new
    status/in-progress
    on Nov 15, 2026
  4. removed
    status/in-review
    owner/agent
    on Nov 15, 2026
  5. devops-cli-service commented on Nov 16, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-15 23:51 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/p1-highscope/roadmapsource/agenttype/bugvalue/high

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions