Repository navigation
Description
Problem
CommonMark ends an HTML block of kind 6 or 7 only at a blank line. Kind 6 starts with a block tag such as </details> or <div>. Suppose that a person removes the blank line between such a line and a job block marker. Then the marker is part of that HTML block, and the marker rule of src/devops_cli/roadmap/body_hash.py does not take it as a marker. job_block_bounds and extract_section_and_outside find no job block. The next write of refine or alternatives then adds a second block, and the old block stays in the body as text of the person.
Evidence: a script on the code of origin/main (2026-11-22) reads a body that ends with a <details> part and the refine block:
blank line bounds=(54, 133) section='\nSECTION\n'
</details> right above bounds=None section=None
<div> right above bounds=None section=None
The review of #6736 found this case. It is not in the scope of #6736, and the change of #6736 gives the same result as origin/main. On 2026-11-22, 0 of 836 open bodies have this form, so no item has the defect now. Each job writer puts a blank line before its block, so only an edit of a person makes this form.
Expected
A job block marker on a line of its own bounds the block also when an HTML block of kind 6 or 7 is directly above it. A write never leaves a second copy of the block of a job in the body.
Acceptance criteria
- Test first: for a body with
</details>and with<div>x</div>directly above the start marker,job_block_boundsandextract_section_and_outsidefind the block. The test fails on the base. - Test first: one refine write and one alternatives write on such a body leave one job block.
Dependencies
- fix(roadmap): every job block reader uses one marker rule #6736 changes the marker rule in
body_hash.py. Build on its rule, and do not build a second parser.
Alternatives check of 2026-11-23: in-use.
The repository already uses this tool.
Tool: executablebooks/markdown-it-py (https://github.com/executablebooks/markdown-it-py), MIT, last activity 2026-11-16, maintained.
Reason: Searches found markdown-it-py, a CommonMark parser that exposes HTML block kinds 6 and 7 with source line ranges; it supplies the boundary detection, but not the project's job and record marker rules or block extraction.
Covers:
- CommonMark HTML block kinds 6 and 7 boundaries
- Block tokens with source line ranges
- Telling whether a marker line sits inside an HTML block
Lacks:
- Job block marker rule and bounds extraction
- Record block splitting and old-key preservation
- Deliberate split when a marker directly follows an HTML block
- Section extraction and body hash handling
Activity
dan-petty commentedon Nov 22, 2026
Both change the marker rule in body_hash.py, but #6736 unifies the rule across readers while the candidate handles the specific case of a marker directly below an HTML kind 6 or 7 block.dan-petty commentedon Nov 23, 2026
The review of #6785 found the same case for the record block. An HTML line of kind 6 or 7, such as
<details>or<div>, directly above the record makessplit_recordread no record. The next write then adds a second record block, and the item loses the old keys. origin/main and the branch of #6785 behave the same, and no open body has this form on 2026-11-22.The fix of this issue should also read the record in that case, with the same marker rule.
devops-cli-service commentedon Nov 23, 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 (10)
Tools considered:
Searches run:
Sources:
devops-cli-service commentedon Nov 23, 2026
Released in v0.198.1: https://github.com/dan-petty/devops-cli/releases/tag/v0.198.1
devops-cli-service commentedon Nov 23, 2026
Live since 2026-11-23 04:17 UTC