Skip to content

fix(roadmap): the stage job waits for an open plan that creates a path - #3613

Merged
dan-petty merged 19 commits into
mainfrom
fix/3418-stage-waits-on-open-plan
Nov 5, 2026
Merged

dan-petty merged 19 commits into
mainfrom
fix/3418-stage-waits-on-open-plan

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

The stage job reads the open plans before it plans an item. A cited path that is missing at the staging commit, and that an open plan creates, is a dependency. The stage job returns the item to New and records the open item in refine.blocked_by. It makes no model call for that item. The stage selection leaves out an item while a recorded open item stays open.

A plan that lists a path in creates, and that another open plan also creates, is refused. The check sends the reply back to the model once. A plan of a closed or archived item is no dependency.

Why: the stage job did not read the open plans. Two open plans then created the same new module, src/devops_cli/roadmap/stage_constants.py.

Closes #3418

Change: openspec/changes/archive/2026-11-05-3418-stage-waits-on-open-plan/

Plans #3418. The stage job returns an item whose premise needs a path
that an open plan creates. The stage selection leaves out an item with
an open recorded blocker. The stage check refuses a plan that creates
a path that another open plan creates.
The premise probe of the stage job returns the open items whose plans
create a cited path that the staging commit lacks. A test pins the
result. Refs #3418.
The stage job returns an item whose cited path an open plan creates. It
records the open item in refine.blocked_by, sets the item to New, and
makes no model call. Refine waits on that record. The plan report lists
the returned items. Refs #3418.
The stage selection leaves out an item while a refine record names an
open item as its blocker, and the reason names that item. A closed
blocker holds nothing back. Refs #3418.
The reader of the open plans takes the active change of each open item
only. A plan of a closed item names no path for the stage job. Refs #3418.
The stage check refuses a reply whose group creates a path that the plan
of another open item also creates. The problem names the path and the
item. The reply goes back to the model once. Refs #3418.
The roadmap workflow tells how the stage job returns an item whose
premise needs an open plan, and how the selection and refine wait on
the recorded blocker. Refs #3418.
The golden set reads no open plan, so the planner returns a returned
item only through the job. The eval maps such an outcome to refused
and names the blockers. Refs #3418.
The change folder of #3418 moves to the archive, and its spec delta joins
the roadmap-stage spec. Refs #3418.
A split reply is a plan too. The test expects a split group that creates a
path an open plan creates to go back to the model once. It fails until the
split branch checks the creates, which the next commit adds. Refs #3418.
The split branch of the planner checked no creates. A split group that
created a path an open plan created went through. The check now runs the
same creates rule as a first reply, through creates_problems. Refs #3418.
The stage job reads the tasks of each open plan on the default branch. The
dry run says it lists the reads of a run, so the test asks for that read. It
fails until the request exists. Refs #3418.
The run reads the tasks of each open plan on the default branch, once for
the round. The dry run now lists that git show, with its condition and its
repeat, so the list matches the reads of a run. Refs #3418.
The requirement says an archived change is no dependency, but no test
or scenario pinned it. The test merges an open item's plan into an
archived change and asserts that no open creates entry remains. The spec
delta gets the matching scenario, and its requirements are shorter. Refs #3418.
The eval never reaches the blocked outcome. plan_item builds its planner
with no open plan, so the planner finds no dependency. The branch of
_planned_as was dead. plan_item now narrows the outcome and raises the
refusal sentence if the type ever carries a dependency. Refs #3418.
The paragraph gets at most six sentences, and each sentence gives one
fact. The two output sentences of the stage messages are split the same
way. Refs #3418.
The proposal and the design keep their facts. Each sentence gives one
fact, and the design records the dry-run read and the plan_item guard.
The Feasibility claims were checked again at origin/main d254410. Refs #3418.
@dan-petty dan-petty added type/bug Type bug: the code does not do what it must scope/roadmap The roadmap jobs: intake, refine, stage, implement and the Service that runs them labels Nov 5, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Finish notes

Result: the pull request stays a draft. The finish stage recommends draft. This stage did not change that recommendation.

Local CI

  • Command: uv run devops ci at commit 2ae3944.
  • Result: fail. 18643 tests pass, 2 are skipped, 4 fail and 1 errors.
  • All five failures are host-state failures that issue fix(ci): host state fails four tests and one case #3585 covers: tests/crypto/test_ssh.py, tests/telemetry/test_config_env_overrides.py, tests/commands/test_devcontainer_install_tools_dry_run.py and tests/ai/test_tool_executor_contract.py.
  • The coverage gate fails after the test gate fails. The coverage run reports 94.50%, and the required minimum is 85.0%.
  • Pytest and coverage ran in 4 min 43 s. The run gave no timing warning.
  • The other gates pass, including lint, format, typecheck, security, docs and openspec.

Fail-to-pass

  • Command: uv run devops ci fail-to-pass --base origin/main. Exit code 0.
  • Five changed tests fail on the base: test_dependency_returns_item_without_model_call, test_a_split_reply_that_creates_a_path_an_open_plan_creates_goes_back_to_the_model_once, test_check_proposal_refuses_path_an_open_plan_creates, test_the_stage_plan_reads_the_tasks_of_each_open_plan_once_for_the_round and test_open_recorded_blocker_leaves_item_out.
  • Two changed test modules fail to collect on the base: test_roadmap_stage_planned and test_roadmap_stage_probe. The check counts them as errored.
  • No failure reports the host path guard.

Deviations

Open items

@dan-petty
dan-petty marked this pull request as ready for review November 5, 2026 12:11
@dan-petty
dan-petty merged commit 7e66373 into main Nov 5, 2026
23 checks passed
@dan-petty
dan-petty deleted the fix/3418-stage-waits-on-open-plan branch November 5, 2026 12:11
dan-petty pushed a commit that referenced this pull request Nov 5, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.61.0](v0.60.0...v0.61.0)
(2026-11-05)


### Features

* **roadmap:** check each behavior group fails on base before the change
([#3602](#3602))
([7b8a4a1](7b8a4a1))
* **roadmap:** the inbox lists every person wait of each service repo
([#3616](#3616))
([b81913b](b81913b))
* **telemetry:** measure how long roadmap items wait in each state
([#3601](#3601))
([05c9ebd](05c9ebd))


### Bug Fixes

* **github:** send a GET again when its connection is lost
([#3608](#3608))
([4528f49](4528f49))
* **roadmap:** accept a clean merge by a person on a branch
([#3603](#3603))
([4fff490](4fff490))
* **roadmap:** the stage job waits for an open plan that creates a path
([#3613](#3613))
([7e66373](7e66373))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/roadmap The roadmap jobs: intake, refine, stage, implement and the Service that runs them type/bug Type bug: the code does not do what it must

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(roadmap): the stage job blocks a plan that needs another open item's plan

1 participant