Repository navigation
Description
Problem
split_record in src/devops_cli/roadmap/stores/store.py reads the job record only when CommonMark parses the last top-level block of the body as an HTML block (_record_block_span). A job writes the record at the end of the body. Suppose that a person later edits the body on GitHub and opens a fenced code block, a <pre> block or a comment above the record, and does not close it. Then the record comment is part of that open block, and split_record returns an empty record. The item loses its job state: the hashes of refine and alternatives, and each stop of implement.
#6729 fixes only the write side: with_record closes a block that the body leaves open. #6736 makes the job block readers end an open block at the job blocks at its end. Neither change makes split_record read a record that a later edit of a person puts inside an open block.
Evidence: a script on the code of origin/main (979c9dc, 2026-11-22) writes a record with with_record, adds an open block in the text of the person, and reads the record with split_record:
job write reads back: {'Status': 'Ready', 'implement.stopped': 'group 1'}
fence opened in the middle record read back: {}
<pre> opened in the middle record read back: {}
comment opened in the middle record read back: {}
The live check of #6729 on 2026-11-22 found that all 834 open bodies read back their record. So no item has the defect now.
Expected
A record that a job wrote reads back after a person opens a block above it. The next write closes the block of the person before the record, so GitHub does not show the record as code.
Acceptance criteria
- Test first: for a written body where a person then opens a backtick fence, a tilde fence, a
<pre>block or a comment above the record,split_recordgives the record. The test fails on the base. - Test first: the next record write gives a body whose record CommonMark parses as the last HTML block.
Dependencies
- fix(roadmap): every job block reader uses one marker rule #6736 adds the rule that an open block ends at the job blocks at its end. Use that rule, and do not build a second parser.
- fix(roadmap): a job record reads back after an open block #6729 changes
with_record.
Activity
dan-petty commentedon Nov 22, 2026
Both address open blocks hiding the job record in store.py, but #6729 closes the block on write while the candidate makes split_record read the record despite an open block.fix(roadmap): every job block reader uses one marker rule (#6794)
dan-petty commentedon Nov 22, 2026
The review of #6800 found one more case for this issue. Suppose a person opens a fence above the refine block and the record.
split_recordthen reads no record (this issue). Since #6800, the next record write closes the fence before the refine block. The old record is then a top-level comment one block above the new record, with the full record syntax. It is hidden, but it looks like a real record block, and its keys are lost.The fix of this issue should read the old record in that case, so that no stale copy stays in the body.
devops-cli-service commentedon Nov 23, 2026
Released in v0.198.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.198.0
devops-cli-service commentedon Nov 23, 2026
Live since 2026-11-23 04:05 UTC