Repository navigation
Description
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) appendsSource: {source}to the end of the body. The last heading is usually Dependencies, so the source line falls under it. A source#4989becomes a dependency. A source URL does not, because the word does not start with#.docs/roadmap/refine.md:21says that the section "names an issue as#Nor by its quoted title". It gives no rule for a related or a parent issue.
Reproduction Steps
- Read the Dependencies section of dan-petty/homelab#345: "None." and then "Source: feat(k8s): track the cluster integration plan #4989".
- Run
devops roadmap explain 5001. The stage job leaves it out for the open issue feat(k8s): track the cluster integration plan #4989. - 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."
- 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
#Nunder 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 explainin 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
- 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. Searches: "body_dependencies", "Dependencies section Related", "dependency parse reverse", "Dependencies section names". fix(roadmap): refine reads a dependency that the body names by title #4803 and fix(roadmap): refine reads a dependency named by title #4877 (closed) added quoted titles. feat(roadmap): devops roadmap stage writes the change of a Ready item in context-sized task groups and opens its draft pull request #2654, fix(roadmap): refine holds back an item with an open dependency #3500 and fix(roadmap): implement leaves out items with open dependencies #4009 (closed) added the
#Nread.
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.mdanddocs/roadmap/stage.mdstate the rule. - Live proof: after the release,
devops roadmap explain 5001anddevops roadmap explain 5026give 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_dependenciesreads a Dependencies section withNone.and thenSource: dan-petty/devops-cli#4989as a separate paragraph. - THEN
body_dependenciesreturns 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_dependenciesreads separate paragraphsPart of dan-petty/devops-cli#5014,Child 5 of dan-petty/devops-cli#4893,Related: dan-petty/devops-cli#4408,#4691 needs this itemandThis item blocks dan-petty/devops-cli#5134 step 6. - THEN
body_dependenciesreturns 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_dependenciesreads separate paragraphs- dan-petty/devops-cli#4989andMerge first: dan-petty/devops-cli#5134. - THEN
body_dependenciesreturns[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
- WHEN
open_dependencyreads an item whose Dependencies section holdsRelated: dan-petty/devops-cli#4408, and issue chore(roadmap): track the decision model workflows #4408 is open. - THEN
open_dependencyreturnsNone.
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_bodybuilds a body that ends with## Dependenciesand a source of#4989. - THEN The body holds a
## Sourceheading andbody_dependenciesreturns 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.mdanddocs/roadmap/stage.md. - THEN Both pages name
- #NandMerge firstas 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_dependenciesreturn now?: It returns every#Nin 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
#Nmentions. 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 withMerge 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
#Nmentions. It keeps the defect and holds Ready items.
- Where should the blocker rule live?: In
body_dependencies, after the section tokens are read. Keep_issuesas the generic#Nextractor 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_issueskeeps its current use for request plans. - Rejected: Change
_issues._issueshas callers outside the Dependencies section, so a section rule there would change other reads. - Rejected: Filter in
open_dependency. Refine and stage readbody_dependenciesdirectly, so the false numbers would remain in those paths.
- Chosen: Filter in
- How should intake place the source line?: Write the source under a separate
## Sourceheading 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
## Sourceheading. 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.
- Chosen: Separate
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Activity
dan-petty commentedon Nov 19, 2026
18 Ready items never become Staged and 66 open items are held, blocking workflow progress.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.devops-cli-service commentedon Nov 19, 2026
Next step: the alternatives check records a verdict. See the section Proposed design of the body.
devops-cli-service commentedon Nov 19, 2026
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:
Sources:
devops-cli-service commentedon Nov 19, 2026
Next step: the stage job writes the plan of the item. See the section Proposed design of the body.
devops-cli-service commentedon Nov 20, 2026
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:
A model review of the plan found these points. They stop no draft, and a person judges them:
false_premiseat proposal (feasibility): The feasibility says no test pins the old filed-body form, buttests/roadmap/intake/test_roadmap_intake_evidence.py:93asserts the filed body ends withSource: https://example.test/review/1. Group 2 writes the body, then a## Sourceheading, then the source, so the body no longer ends with aSource: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"false_premiseat proposal (what_changes):test_an_item_with_an_open_plan_dependency_is_left_outtakes its dependency from the plan proposal's## Dependenciessection, whichplan_readreads with its own bullet reader, not withbody_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."false_premiseat design (rejected): The rejected entry says Refine readsbody_dependencies, butrefine.pyonly 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 readbody_dependencieswith noopen_dependency, so the false numbers would stay in those paths."false_premiseat design (decisions): The decision says a run that stopped after filing still finds its issue, but_new_subjectcompares the body exactly: an issue filed before this change holdsSource: #Nat its end and no longer matches the new## Sourcebody, so the retry files a second issue. Evidence: "Both sides of the comparison come fromfiled_body, so the## Sourceheading changes both together and a run that stopped after filing still finds its issue."14 remaining items
docs(openspec): archive the change (#6451)
devops-cli-service commentedon Nov 20, 2026
Pull request #6514 is ready for review. The checks passed.
Spend: 89 model requests, 5526619 input tokens, 29010 output tokens.
test(roadmap): Read prose blockers and the Source line (#6451)
fix(roadmap): Keep prose blockers under Dependencies (#6451)
fix(roadmap): Write the Source line under the Source heading (#6451)
docs(roadmap): State the full blocker rule in the specs and pages (#6451
fix(roadmap): Hold back only the clause of a reverse phrase (#6451)
fix(roadmap): Keep blockers that a sentence opens with other words (#…
devops-cli-service commentedon Nov 20, 2026
Released in v0.183.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.183.0
devops-cli-service commentedon Nov 20, 2026
Live since 2026-11-20 16:25 UTC