Repository navigation
Description
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:
- docs(openspec): plan #3650 Count kept work by failure class and outcome #5876 (plan of feat(roadmap): count kept work by failure class and outcome #3650): the stage review labelled it at 19:01Z on 2026-11-15 and wrote "an open finding" at 19:10Z. At 19:26:53Z the bot removed the label with no new commit ("The plan drift row ... checked 3 plan pull request(s)"), and at 19:28:55Z
stage_readymarked it ready. An agent vet then found that the finding was still open (a counter that counts one Job more than once). - Of 35 plan pull requests merged since 2026-11-14 12:00Z, 4 lost the label in the same way, with no commit after the label: docs(openspec): plan #3407 Refuse a class claim the staged source lacks #5751, docs(openspec): plan #3453 Record the identifiers that a group adds #5764, docs(openspec): plan #3550 Cut the shared import cost of a CLI start #5781, docs(openspec): plan #3569 Give each attempt its own strategy #5787.
- docs(openspec): plan #3453 Record the identifiers that a group adds #5764 (plan of feat(roadmap): a plan states the identifiers that a behavior group adds #3453) had the open finding "major
false_premiseat tasks (4)". It merged, and on 2026-11-15 the implement job of feat(roadmap): a plan states the identifiers that a behavior group adds #3453 ran 53 min and then returned the item at group 4 (fix(roadmap): a late premise return drops passed groups #5881).
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 letstage_readyand 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
- feat(roadmap): Detect plan drift against the default branch #5745 (the drift row), feat(roadmap): detect drift against default branch on open plan PRs #3968, feat(roadmap): grade stage by the plans that build #5603 (stage grade by plans that build), fix(roadmap): a late premise return drops passed groups #5881.
Source: #5876
Activity
dan-petty commentedon Nov 15, 2026
Plans with open findings become ready and implement jobs run 53 min on invalid plans, wasting compute.Both concern the plan drift row; #3968 adds drift detection while the candidate fixes its label-clearing side effect.devops-cli-service commentedon Nov 15, 2026
Released in v0.159.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.159.0
devops-cli-service commentedon Nov 16, 2026
Live since 2026-11-15 23:51 UTC