Skip to content

fix(roadmap): implement leaves out items with open dependencies #4009

Description

@dan-petty

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

  1. Create an issue that depends on an open issue.
  2. Let the item reach the Planned or Staged status.
  3. Run devops roadmap implement.
  4. 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

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

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 ImplementTarget for 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_implement judges 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_dependencies in src/devops_cli/roadmap/refine/refine.py:1044 reads 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_dependencies in src/devops_cli/roadmap/stage/stage_change.py reads the #<number>: entries of the plan dependencies. [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.judge before 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_implement after selection. It misses the --item path and cannot report a clean left-out reason.
    • Rejected: Check in implement_run before each step. It starts the job and fails later, which the issue reports.
  • How must the judge learn that a dependency issue is open?: Use the same RoadmapStore issue-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_dependency message 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

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

    @dan-petty
    OwnerAuthor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.

    • Type: type/bug. The fix prefix of the title gives the type.
    • Scope: scope/roadmap. The (roadmap) scope of the title gives the scope.
    • Priority: P2-Medium. The bug causes wasted implement runs and later failures, but it does not block all roadmap work.
    • Value: Medium. It prevents the implement job from starting work on items whose prerequisite is not yet delivered.
    • Effort: Low. The fix adds one field read and one status check to the existing _Judge.judge method.
    • Related: fix(roadmap): the implement job refuses a plan that fails the plan check #3393, which asks for a different change. 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.
  3. added
    priority/p2-medium
    on Nov 7, 2026
  4. added
    status/ready
    and removed
    status/new
    on Nov 8, 2026
  5. devops-cli-service commented on Nov 8, 2026

    @devops-cli-service
    Contributor

    Status set to Ready at 5c9fb88 (see proposed design in issue body).

  6. devops-cli-service commented on Nov 9, 2026

    @devops-cli-service
    Contributor

    Alternatives check: none

    Reason: The one search returned nothing relevant. The issue is a bug fix inside the project's own _Judge.judge in the implement job. It adds a check that reuses the project's existing body_dependencies, issue_dependencies and RoadmapStore lookup. No external tool or library can replace that selection rule.

    Tool: none found

    Lacks:

    • Reads the project's own issue-body and plan-proposal dependency formats
    • Implements the implement job's target-selection rule

    Searches run:

    • skip issues with open dependencies automation tool blocked-by issue dependencies GitHub, results: 5

    Checked on 2026-11-09. A person decides what this means for the item. The check changes no label and closes no issue.

  7. added
    status/in-progress
    status/in-review
    and removed
    status/ready
    status/in-progress
    on Nov 14, 2026
  8. removed
    status/in-review
    on Nov 14, 2026
  9. added a commit that references this issue on Nov 14, 2026
  10. devops-cli-service commented on Nov 14, 2026

    @devops-cli-service
    Contributor
  11. devops-cli-service commented on Nov 14, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-14 15:02 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/lowpriority/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