Repository navigation
Labels
effort/mediumEffort Mediumpriority/p2-mediumPriority P2: standard workscope/roadmapThe roadmap jobs: intake, refine, stage, implement and the Service that runs themsource/agentFiled by an agenttype/bugType bug: the code does not do what it mustvalue/mediumValue Medium
Description
Problem
PR #6720 (#6627) makes a job block marker bound a block only where CommonMark parses it as an HTML block, or as the whole last line of an HTML comment that the marker ends. An independent review of the PR found two cases that still go wrong (#6720 (comment)):
- A person opens a code fence or a
<pre>block above a job block that already exists, and does not close it. The old block is then code, sojob_block_boundsdoes not find it. The writer (refine_one_iteminsrc/devops_cli/roadmap/refine/refine.py, and the alternatives writer insrc/devops_cli/roadmap/alternatives.py) closes the open construct after the old block, then adds a new block. The old section stays in the body for good, as code in the text of the person, so the body shows two start markers. With the plain text search of origin/main before fix(roadmap): Find a job block marker only as an HTML block #6720, the job replaced the old block in place. _ends_sectioninsrc/devops_cli/roadmap/refine/refine.py(near line 1166, fix(roadmap): an alternatives block names no blocker of an item #6613) ends a Dependencies or Key questions section only at an HTML block whose whole content is a marker. It does not use the rule of fix(roadmap): Find a job block marker only as an HTML block #6720 for a marker on the last line of a comment. A body## Dependencies/- #4989/ an open<!-- note/ an alternatives block that lacks#5506givesbody_dependencies= [4989, 5506] on origin/main, and also with fix(roadmap): Find a job block marker only as an HTML block #6720. So the Lacks list of the alternatives block counts as blockers of the item.
Expected
Each reader of a job block uses one marker rule, the one of src/devops_cli/roadmap/body_hash.py. A write never leaves a second copy of the block of a job in the body.
Acceptance criteria
- Test first: over three rounds of the refine write and of the alternatives writer, a body with an open fence or an open
<pre>above an existing job block holds one job block after each round. The test fails on the base. - Test first: for the body of case 2,
body_dependenciesgives [4989]. The test fails on the base.
Dependencies
- fix(roadmap): find a job block marker only as an HTML block #6627 (PR fix(roadmap): Find a job block marker only as an HTML block #6720) adds the marker rule that both fixes use.
Alternatives check of 2026-11-22: none.
Tool: none found.
Reason: Searches returned only generic Markdown/HTML references and a general CommonMark parser; the need is an in-repo refactor so every job-block reader shares the existing marker rule, which no external tool provides.
Lacks:
- One marker rule shared by every job block reader
- Writer that never leaves a second copy of a job block
- Section end rule that honors markers on comment last lines
Metadata
Metadata
Assignees
Labels
effort/mediumEffort Mediumpriority/p2-mediumPriority P2: standard workscope/roadmapThe roadmap jobs: intake, refine, stage, implement and the Service that runs themsource/agentFiled by an agenttype/bugType bug: the code does not do what it mustvalue/mediumValue Medium
Activity
dan-petty commentedon Nov 22, 2026
Both concern the job block marker rule; #6627 introduces the rule and the candidate applies it to two readers that still miss it.devops-cli-service commentedon Nov 22, 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 (4)
Tools considered:
Searches run:
Sources:
fix(roadmap): a record write keeps job blocks readable (#6800)
chore(main): release 0.195.3 (#6798)
devops-cli-service commentedon Nov 22, 2026
Released in v0.195.3: https://github.com/dan-petty/devops-cli/releases/tag/v0.195.3
devops-cli-service commentedon Nov 22, 2026
Live since 2026-11-22 23:15 UTC