Repository navigation
fix(roadmap): a job record reads back after an open block - #6792
Conversation
GitHub shows the record as code only in an open fence. An open comment or <pre> hides it. The docstrings, the workflow page and the change folder now say so, in sentences of at most 25 words.
The hash item of the assert followed from the body item. It now compares the hashes of the first and the second read, so it can fail alone.
Review of #6729: a job record reads back after an open blockHead: Recommendationopen-and-ready. No finding above nit stands. Two nits stand, and neither one changes the code. Round 1 fixed 3 minor findings. Round 2 fixed 4 nits. A recheck confirmed each fix. No refute verdict was given. Lenses and checksRound 1: review and fix at
|
🤖 I have created a release *beep* *boop* --- ## [0.195.1](v0.195.0...v0.195.1) (2026-11-22) ### Bug Fixes * **roadmap:** a job record reads back after an open block ([#6792](#6792)) ([0895098](0895098)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
The test job of main fails since #6794 merged after #6792. `closed_body` closed a block that the body leaves open at its end. The readers of #6736 end such a block at the job blocks at its end. So a record write closed the open block of a person after the refine block, the block became a quote, and the next refine round added a second section. Now `closed_body` first calls `close_blocks_before_markers`, so the close goes before the job blocks, where the readers end the open block. Then it closes a block that is still open at the end, as before. A body with no open block keeps its text. The round test of an open fence and an open `<pre>` now asserts one write that replaces the section in place, as its docstring asked once a round reads the record. Closes #6799 Change: `openspec/changes/archive/2026-11-22-6799-record-write-keeps-job-blocks/`
with_recordwrites the job record as a comment after the issue body. A body can end in a code fence or an HTML block, such as a comment or<pre>, that it does not close. Then the record becomes part of that block. Thensplit_recordreads an empty record, and each later write adds one more record. In a fence, GitHub shows the record as code. The GitHub store also raisesRoadmapRecordMarkLostErrorafter two rewrites.closed_bodycloses the open block withclose_open_block(#6627) on a line of its own, andwith_recordwrites it before the record block. The close takes the place of one final line break, so the code gets no new empty line. A body with no open block keeps its text. Both lost-edit checks of the GitHub store acceptclosed_body, so the close is no lost edit, also on a second write from one read. The close changes the body hash one time, and the next write keeps the body.Closes #6729
Change:
openspec/changes/archive/2026-11-22-6729-record-after-open-block/