Skip to content

fix(roadmap): read only blockers in a Dependencies section #6451

Closed

Description

@dan-petty

Problem Description

The stage and implement jobs read each #N under a Dependencies heading as an open dependency. This includes a parent link, a related item and a reverse link. Examples are "Part of #5014", "Child 5 of #4893", "Related: #4408", "#4691 needs this item" and the line "Source: #4989" that intake adds. Each such issue holds the item back, and a Ready item never becomes Staged.

On 2026-11-19, 18 Ready items are held only by such a mention. devops roadmap explain gives "Stage job: no. The item depends on the open issue #N" for each:

Text under Dependencies Ready items held Issue that holds them
"Source: #4989" (intake line, after "None.") dan-petty/homelab#344, dan-petty/homelab#345, #5003, dan-petty/homelab#347, dan-petty/homelab#348, dan-petty/homelab#351, #5011 tracker #4989
"Part of #5014 (track the Service step jobs)." #5026, #5028 tracker #5014
"No blocker. Part of #5311." #5316, #5318 tracker #5311
"Child 5 of #4893.", "Child 6 of #4893." #4909, #4911 tracker #4893
"#4691 needs this item." #4814 #4691, which waits on #4814
"This item blocks #5134 step 6" #5298 #5134
"None. #4385, #4386 and #5168 use these records." #5460 #4385, #4386
"None. Related: #4408 ..." #4847 #4408
"Related: #5504, #3942, #4517, #1533" #5555 #5504, #4517

The first 4 rows name a parent tracker. They are also cases of the bug "an open tracker holds back no item", and a fix of either bug releases them. The other rows are not trackers, so only this bug covers them.

A pattern search finds 66 open items with an open #N on such a line under Dependencies. The counts by form: "Part of" 25, "Source:" 16, "Related" 13, "None." 9, "Child N of" 9, reverse 5. The reverse links make cycles: #4691 ↔ #4814, and #5348 ↔ #5356 ("Related: #5348 adds the agent client side and depends on this item."). Refine reads the same text as input, so a mention can also reach refine.blocked_by. For example, #4805 records 4809 from this scope comment: "The resolver stays the stewards CronWorkflow of #4809".

Cause, at origin/main 0d90de5:

  • body_dependencies (src/devops_cli/roadmap/refine/refine.py:1224-1233) returns each word # and digits in each inline token of the section, up to the next heading. _issues (refine.py:1236-1239) does not look at the words around it.
  • open_dependency (src/devops_cli/roadmap/dependencies.py:30-42) gives that list to stage (stage.py:771-774) and implement (implement.py:379-382). The stage job reads both the section of the person and the section of refine.
  • NewCandidate.filed_body (src/devops_cli/roadmap/intake/intake.py:227) appends Source: {source} to the end of the body. The last heading is usually Dependencies, so the source line falls under it. A source #4989 becomes a dependency. A source URL does not, because the word does not start with #.
  • docs/roadmap/refine.md:21 says that the section "names an issue as #N or by its quoted title". It gives no rule for a related or a parent issue.

Reproduction Steps

  1. Read the Dependencies section of dan-petty/homelab#345: "None." and then "Source: feat(k8s): track the cluster integration plan #4989".
  2. Run devops roadmap explain 5001. The stage job leaves it out for the open issue feat(k8s): track the cluster integration plan #4989.
  3. Read the Dependencies section of perf(k8s): seed the uv cache of a runner pod from the image #4814: "perf(k8s): put the dependencies in their own image layers #4550 puts the dependencies in their own image layers first. feat(k8s): add the CI gate WorkflowTemplate #4691 needs this item."
  4. Run devops roadmap explain 4814. The stage job leaves it out for the open issue feat(k8s): add the CI gate WorkflowTemplate #4691. The refine section of perf(k8s): seed the uv cache of a runner pod from the image #4814 names only perf(k8s): put the dependencies in their own image layers #4550.

Expected vs Actual Behavior

  • Expected: only an issue that the item waits for holds the item back. A parent, a related issue, an issue that waits for this item and the source line do not.
  • Actual: each #N under the heading holds the item back. 18 Ready items never become Staged, and 2 reverse links make dependency cycles.

Environment Diagnostics

  • DevOps CLI Version: 0.180.0 (origin/main 0d90de5).
  • Execution Environment: devops roadmap explain in the devcontainer on 2026-11-19, and the issue bodies through the GitHub REST API.

Logs, Traces, or Terminal Output

$ devops roadmap explain 4993
Refine job: no. The item is Ready. A round takes a Ready item only when no round refined it, or when it holds a covering tool that no round asked about.
Stage job: no. The item depends on the open issue dan-petty/devops-cli#4989.
Implement job: no. The item depends on the open issue dan-petty/devops-cli#4989.
$ devops roadmap explain 4814
Stage job: no. The item depends on the open issue dan-petty/devops-cli#4691.

Pre-Submission Checklist

Existing Tool Considered

markdown-it-py already parses the section. The GitHub issue dependencies API (issues/<n>/dependencies/blocked_by, read by github_store.py:616) holds typed blocked-by links, and a parent link is a separate API. No tool reads blocker intent from free text. Two options: read the blocked-by links as the source, or keep the text and accept only a list item that starts with #N or with "Merge first". The cost of the text rule: about 50,000 tokens and 1.5 hours.

Acceptance Criteria

  • Test first: a Dependencies section that holds "None.", then "Source: #N", gives no dependency. The test fails on the base.
  • A test: "Part of #N", "Child 2 of #N", "Related: #N" and "#N needs this item" give no dependency. "- #N" and "Merge first: #N" still give one.
  • Intake writes the source line under its own heading, or as a link, so that it is never under Dependencies.
  • docs/roadmap/refine.md and docs/roadmap/stage.md state the rule.
  • Live proof: after the release, devops roadmap explain 5001 and devops roadmap explain 5026 give no dependency reason.

Dependencies

None.

Alternatives check of 2026-11-19: in-use.
The repository already uses this tool.
Tool: markdown-it-py (https://pypi.org/project/markdown-it-py), MIT License, last activity 2026-11-10, maintained.
Reason: Searches found no library that reads blocker intent from free-text dependency sections. markdown-it-py, already used here, tokenises the section and separates list items from inline mentions, but the blocker rule itself remains to be written.

Covers:

  • Parses the Dependencies heading into typed tokens
  • Tells a list item from an inline mention
  • Gives token positions for a line-start rule

Lacks:

  • No notion of blocker, parent, related or source
  • No read of GitHub blocked-by link types
  • No migration of existing bodies with non-blocker mentions

Proposed design

Problem statement

The stage and implement jobs treat every #N under Dependencies as an open dependency. Parent, related, reverse and source mentions then hold Ready items. The change adds a blocker rule and moves the intake source line out of Dependencies.

Acceptance criteria

Requirement: Ignore a source line

The dependency reader SHALL return no issue for a non-blocker source line under Dependencies.

Scenario: Source line after None

  • WHEN body_dependencies reads a Dependencies section with None. and then Source: dan-petty/devops-cli#4989 as a separate paragraph.
  • THEN body_dependencies returns an empty list.

Requirement: Ignore non-blocker mentions

The dependency reader MUST ignore a #N mention that is not a blocker list item or a Merge first line.

Scenario: Parent, child, related and reverse mentions

  • WHEN body_dependencies reads separate paragraphs Part of dan-petty/devops-cli#5014, Child 5 of dan-petty/devops-cli#4893, Related: dan-petty/devops-cli#4408, #4691 needs this item and This item blocks dan-petty/devops-cli#5134 step 6.
  • THEN body_dependencies returns an empty list.

Requirement: Read blocker forms

The dependency reader SHALL return the issue number of a blocker list item or a Merge first line.

Scenario: List item and Merge first

  • WHEN body_dependencies reads separate paragraphs - dan-petty/devops-cli#4989 and Merge first: dan-petty/devops-cli#5134.
  • THEN body_dependencies returns [4989, 5134] in section order.

Requirement: Do not hold an item for a related open issue

The open-dependency check MUST return no reason when the only open issue is a non-blocker mention.

Scenario: Open related issue

Requirement: Keep intake source out of Dependencies

Intake MUST write the source line under its own heading so that it never falls under Dependencies.

Scenario: Filed body with a source

  • WHEN NewCandidate.filed_body builds a body that ends with ## Dependencies and a source of #4989.
  • THEN The body holds a ## Source heading and body_dependencies returns an empty list.

Requirement: Document the blocker rule

The roadmap documentation SHALL state that only a blocker line under Dependencies marks a dependency.

Scenario: Refine and stage pages name the rule

  • WHEN A test reads docs/roadmap/refine.md and docs/roadmap/stage.md.
  • THEN Both pages name - #N and Merge first as blockers, and parent, related, reverse and source mentions as non-blockers.

Existing Tool Considered

markdown-it-py, verdict in-use. The alternatives check in the issue body lists what the tool covers and lacks. The proposal uses markdown-it-py to tokenise the Dependencies section and adds the blocker rule that the tool lacks. The written cost of the blocker rule is about 50,000 tokens and 1.5 hours.

Key questions

  • What does body_dependencies return now?: It returns every #N in each inline token under the Dependencies heading. This includes parent, related, reverse and source mentions. [sources: src/devops_cli/roadmap/refine/refine.py:1224, src/devops_cli/roadmap/refine/refine.py:1236]
  • Which source should the jobs read for an item's dependencies?: Keep the Dependencies section as the source and add a strict blocker rule. Do not switch to the GitHub blocked-by API in this change. (best practice) [sources: src/devops_cli/roadmap/dependencies.py:30, docs/roadmap/refine.md:21, src/devops_cli/roadmap/refine/refine.py:1224]
    • Chosen: Strict text rule. The issue needs the existing Dependencies text to release the held items. The API does not hold those text mentions, and a migration would change every dependency read.
    • Rejected: GitHub blocked-by API. The API holds typed links only. It would drop the text blockers that existing items use, and the migration is larger than this fix.
    • Rejected: All #N mentions. This is the current defect. Parent, related, reverse and source mentions hold items back.
  • What text marks a blocker in the Dependencies section?: A list item whose first word is #N, or a line that starts with Merge first, marks a blocker. A parent, child, related, reverse or source mention does not. (best practice) [sources: docs/roadmap/refine.md:21, src/devops_cli/roadmap/refine/refine.py:1236]
    • Chosen: Line-start blocker rule. It keeps the two blocker forms that the issue names and ignores the phrases that cause false dependencies.
    • Rejected: Phrase blocklist. A blocklist of 'Part of', 'Related', 'Source' and other words misses new phrases and reverse links.
    • Rejected: All #N mentions. It keeps the defect and holds Ready items.
  • Where should the blocker rule live?: In body_dependencies, after the section tokens are read. Keep _issues as the generic #N extractor for its other callers. (best practice) [sources: src/devops_cli/roadmap/refine/refine.py:1224, src/devops_cli/roadmap/refine/refine.py:1236, src/devops_cli/roadmap/request_plan.py:154, src/devops_cli/roadmap/dependencies.py:30, src/devops_cli/roadmap/stage/stage.py, src/devops_cli/roadmap/implement/implement.py]
    • Chosen: Filter in body_dependencies. Every dependency caller reads this function, and _issues keeps its current use for request plans.
    • Rejected: Change _issues. _issues has callers outside the Dependencies section, so a section rule there would change other reads.
    • Rejected: Filter in open_dependency. Refine and stage read body_dependencies directly, so the false numbers would remain in those paths.
  • How should intake place the source line?: Write the source under a separate ## Source heading after the body. Do not write it as a link or at the end of Dependencies. (best practice) [sources: src/devops_cli/roadmap/intake/intake.py:227, src/devops_cli/roadmap/refine/refine.py:1224]
    • Chosen: Separate ## Source heading. It keeps the source out of the Dependencies section and preserves the source value for every source form.
    • Rejected: Markdown link. Link text can still hold #N, and the source may not be a URL.
    • Rejected: Leave the line at the end. It stays under Dependencies and relies on the parser to ignore it.

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

None.

Activity

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

    @dan-petty
    OwnerAuthor
    • Priority: P1-High. 18 Ready items never become Staged and 66 open items are held, blocking workflow progress.
    • Related: fix(roadmap): an open tracker holds back no item #6450, which asks for a different change. Both fix the stage and implement jobs reading too many items as open dependencies; dan-petty/devops-cli#6450 excludes open trackers, this candidate excludes all non-blocker mentions such as related, reverse, and source lines.
  3. added
    priority/p1-high
    on Nov 19, 2026
  4. devops-cli-service commented on Nov 19, 2026

    @devops-cli-service
    Contributor

    Next step: the alternatives check records a verdict. See the section Proposed design of the body.

  5. devops-cli-service commented on Nov 19, 2026

    @devops-cli-service
    Contributor

    The result in the alternatives block of the issue body changed. Before this check: no check. A person decides what the new result means for the item.

    Searches (6)

    Tools considered:

    Searches run:

    • extract blocker dependencies from issue text markdown tool, results: 5
    • GitHub issue dependencies blocked_by REST API, results: 5
    • "blocked_by" github issue dependencies API docs.github.com, results: 5
    • markdown-it-py parse sections tokens library, results: 5
    • markdown-it-py python markdown parser GitHub repository, results: 5
    • python library build dependency graph from issue tracker links, results: 5

    Sources:

  6. added
    status/ready
    and removed
    status/new
    on Nov 19, 2026
  7. devops-cli-service commented on Nov 19, 2026

    @devops-cli-service
    Contributor

    Next step: the stage job writes the plan of the item. See the section Proposed design of the body.

  8. added
    owner/service
    on Nov 20, 2026
  9. devops-cli-service commented on Nov 20, 2026

    @devops-cli-service
    Contributor

    Plan state: branch fix/6451-read-only-blockers-in-a-dependencies, draft pull request #6499. The pull request plans the item and closes no issue. The stage job and the step fix-plan edit this comment, and a comment of each run tells what the run did.

    The task groups, with the tokens of the inputs of each step, for a budget of 64000 tokens:

    1. Read only a blocker line under Dependencies: 43297 tokens
    2. File the source under its own heading: 37574 tokens
    3. Move the sub-issue test to the new filed-body form: 18135 tokens
    4. State the blocker rule in the roadmap pages: 29965 tokens

    A model review of the plan found these points. They stop no draft, and a person judges them:

    • major false_premise at proposal (feasibility): The feasibility says no test pins the old filed-body form, but tests/roadmap/intake/test_roadmap_intake_evidence.py:93 asserts the filed body ends with Source: https://example.test/review/1. Group 2 writes the body, then a ## Source heading, then the source, so the body no longer ends with a Source: line, that test fails, and group 2 changes neither it nor its assertion. Evidence: "so no test and no document pins the old filed-body form, and the source heading breaks no other assertion"
    • minor false_premise at proposal (what_changes): test_an_item_with_an_open_plan_dependency_is_left_out takes its dependency from the plan proposal's ## Dependencies section, which plan_read reads with its own bullet reader, not with body_dependencies, so the claim that each of the stage, implement and consolidate tests reads the one reader is not supported for that test. Evidence: "The stage, implement and consolidate tests that hold a dependency keep it with no change of their own, because each of them reads the one reader."
    • minor false_premise at design (rejected): The rejected entry says Refine reads body_dependencies, but refine.py only defines it and exports it; refine takes its dependencies from the model proposal, so no refine path keeps a false number through this reader. Evidence: "Refine and the stage request read body_dependencies with no open_dependency, so the false numbers would stay in those paths."
    • minor false_premise at design (decisions): The decision says a run that stopped after filing still finds its issue, but _new_subject compares the body exactly: an issue filed before this change holds Source: #N at its end and no longer matches the new ## Source body, so the retry files a second issue. Evidence: "Both sides of the comparison come from filed_body, so the ## Source heading changes both together and a run that stopped after filing still finds its issue."
  10. 14 remaining items

  11. added
    status/in-review
    and removed
    status/in-progress
    on Nov 20, 2026
  12. devops-cli-service commented on Nov 20, 2026

    @devops-cli-service
    Contributor

    Pull request #6514 is ready for review. The checks passed.

    Spend: 89 model requests, 5526619 input tokens, 29010 output tokens.

  13. removed
    owner/service
    on Nov 20, 2026
  14. removed
    status/in-review
    on Nov 20, 2026
  15. devops-cli-service commented on Nov 20, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-20 16:25 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