Repository navigation
Description
Problem Description
The stage job leaves out an item when its declared issue dependencies are open. But devops roadmap implement checks no issue dependencies during target selection. In src/devops_cli/roadmap/implement/implement.py, _Judge.judge inspects the branch reason, plan reason, and pull request status. It never reads issue_dependencies from the plan proposal or body_dependencies from the issue body. The implement job then selects and starts an item whose prerequisite issue is open. The implementation run fails because code on the default branch does not hold the prerequisite change, or devops roadmap plan-check blocks the pull request with the rule issue-dependency.
Reproduction Steps
- Create an issue that depends on an open issue.
- Let the item reach the Planned or Staged status.
- Run
devops roadmap implement. - Observe that the implement job selects the item and begins implementation while the prerequisite issue is open.
Expected vs Actual Behavior
Expected: devops roadmap implement checks the issue dependencies of the item and its plan. It leaves out the item with a clear reason while any dependency issue is open.
Actual: devops roadmap implement ignores open issue dependencies, selects the item, and fails later during execution or quality gate verification.
Environment Diagnostics
- DevOps CLI Version: 0.82.0
- Python Version: 3.14.10
- OS & Architecture: Linux x86_64
- Execution Environment: DevContainer / Kubernetes runner
Logs, Traces, or Terminal Output
# Plan check fails after premature implementation:
Problem: openspec/changes/archive/.../proposal.md: issue-dependency: The plan depends on issue #XXXX, and that issue is open.Pre-Submission Checklist
- I have verified that no sensitive credentials, private keys, or internal tokens are contained in this issue report.
- I have checked existing issues and pull requests to ensure this is not a duplicate.
Proposed design
Problem statement
The implement job ignores issue dependencies. It can start an item while a prerequisite issue is open. The run then fails, or plan-check blocks the pull request. The change makes implement leave out such items with a clear reason.
Acceptance criteria
Requirement: Open body dependency blocks implement
The implement judge SHALL leave out an item when the issue body names an open dependency.
Scenario: Open dependency in the issue body
- WHEN The issue body names dependency feat(ai): llm structured output retry and json schema repair engine #123 and issue feat(ai): llm structured output retry and json schema repair engine #123 is open.
- THEN The judge returns a left-out reason that names feat(ai): llm structured output retry and json schema repair engine #123 and selects no target.
Requirement: Open plan dependency blocks implement
The implement judge SHALL leave out an item when the plan proposal names an open issue dependency.
Scenario: Open dependency in the plan proposal
- WHEN The plan proposal lists
#456: prerequisiteand issue fix(config): gateway provider and per-task AI settings cannot be set from the CLI or environment #456 is open. - THEN The judge returns a left-out reason that names fix(config): gateway provider and per-task AI settings cannot be set from the CLI or environment #456 and selects no target.
Requirement: Closed dependencies allow selection
The implement judge SHALL select an item when every issue body and plan dependency is closed.
Scenario: All declared dependencies are closed
- WHEN The issue body and the plan proposal name only closed dependency issues.
- THEN The judge returns an
ImplementTargetfor the item.
Requirement: Plan report shows the dependency reason
The implement plan SHALL show an open dependency as the left-out reason for the item.
Scenario: Rendered plan lists the open dependency
- WHEN
plan_implementjudges an item with an open dependency. - THEN The rendered plan lists the item under left out with the dependency reason.
Requirement: Stage dependency behavior stays the same
The stage judge MUST return the same dependency left-out reason after the shared helper replaces its private check.
Scenario: Stage judge still blocks an open dependency
- WHEN The stage judge runs for an item whose body names an open dependency.
- THEN The stage judge returns the dependency reason and selects no target.
Existing Tool Considered
No alternatives check has run. No open, maintained tool or library covers the project's issue-body and plan-proposal dependency formats or the implement selection rule. The change builds its own code. The build cost is about 10,000 to 14,000 output tokens. The keep and fix cost is about 1,000 to 3,000 tokens for each later change. The elapsed time is about 3 hours.
Key questions
- Which function reads issue dependencies from the issue body?:
body_dependenciesinsrc/devops_cli/roadmap/refine/refine.py:1044reads the issue body dependencies. [sources: src/devops_cli/roadmap/refine/refine.py:1044, src/devops_cli/roadmap/consolidate_shortlist.py] - Which function reads issue dependencies from a plan proposal?:
issue_dependenciesinsrc/devops_cli/roadmap/stage/stage_change.pyreads the#<number>:entries of the plandependencies. [sources: src/devops_cli/roadmap/stage/stage_change.py, src/devops_cli/roadmap/plan_check.py] - Where must the implement job check issue dependencies?: In
_Judge.judgebefore it returns a target. A shared helper checks the body and the plan, so--item, filter runs and probes use one rule. (best practice) [sources: src/devops_cli/roadmap/implement/implement.py, src/devops_cli/roadmap/stage/stage.py]- Chosen: Check in
_Judge.judge. It covers every selection path and leaves out the item before a runner Job starts. - Rejected: Check in
plan_implementafter selection. It misses the--itempath and cannot report a clean left-out reason. - Rejected: Check in
implement_runbefore each step. It starts the job and fails later, which the issue reports.
- Chosen: Check in
- How must the judge learn that a dependency issue is open?: Use the same
RoadmapStoreissue-state lookup as the stage job's_Judge._dependency. (best practice) [sources: src/devops_cli/roadmap/stage/stage.py, src/devops_cli/roadmap/stores/store.py, src/devops_cli/roadmap/implement/implement.py]- Chosen: RoadmapStore issue-state lookup. It adds no GitHub call and keeps the stage and implement rules the same.
- Rejected: GitHub API call for each dependency. It adds network latency and failure modes to selection.
- Rejected: Treat every declared dependency as open. It blocks items whose dependencies are closed.
- What reason must the implement job report for an open dependency?: A new
implement_left_dependencymessage that names the first open dependency number. (best practice) [sources: src/devops_cli/roadmap/implement/implement.py, src/devops_cli/roadmap/stage/stage.py]- Chosen: New implement-specific message. It matches the other implement left-out messages and names the blocking issue.
- Rejected: Reuse the stage message. It names a stage action for an implement result.
- Rejected: Use the generic not-staged message. It hides the open dependency from the operator.
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Alternatives check of 2026-11-09: none.
Tool: none found.
Activity
dan-petty commentedon Nov 7, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.
fixprefix of the title gives the type.(roadmap)scope of the title gives the scope.The bug causes wasted implement runs and later failures, but it does not block all roadmap work.It prevents the implement job from starting work on items whose prerequisite is not yet delivered.The fix adds one field read and one status check to the existing _Judge.judge method.Both add a refusal check to the implement job's _Judge.judge, but #3393 checks plan content validity while the candidate checks dependency issue status.devops-cli-service commentedon Nov 8, 2026
Status set to Ready at 5c9fb88 (see proposed design in issue body).
devops-cli-service commentedon Nov 9, 2026
Alternatives check: none
Reason: The one search returned nothing relevant. The issue is a bug fix inside the project's own
_Judge.judgein the implement job. It adds a check that reuses the project's existingbody_dependencies,issue_dependenciesandRoadmapStorelookup. No external tool or library can replace that selection rule.Tool: none found
Lacks:
Searches run:
Checked on 2026-11-09. A person decides what this means for the item. The check changes no label and closes no issue.
docs(openspec): plan #4009 leave out open dependencies
fix(roadmap): leave out an item with an open dependency in implement (#…
docs(openspec): archive #4009 leave out open dependencies
chore(main): release 0.138.0 (#5690)
devops-cli-service commentedon Nov 14, 2026
Released in v0.138.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.138.0
devops-cli-service commentedon Nov 14, 2026
Live since 2026-11-14 15:02 UTC