Repository navigation
fix(roadmap): read a record below a block a person opens - #6812
Conversation
Review of #6785: read a record below a block that a person opensRecommendation: open-and-ready. No finding above nit stands against this change. Three nits stand. One defect stands that origin/main also has, and #6791 owns its fix. Head: Lenses and checks
Standing findings1. nit, fixed in e30e9e4ff: the property test does not check the body that the read gives
2. nit, fixed in e30e9e4ff: tasks.md has long sentences and an unclear claim
3. nit: a requirement sentence is longer than 25 words
4. pre-existing, minor: an HTML line of kind 6 or 7 directly above the record hides the record
Fixed findings
Design decisions
After the review
|
|
CI of this PR fails in shard 1 of "Tests & Coverage" on #6815 holds the fix. This PR stays a draft until #6815 merges. Then I rebase it and mark it ready when CI passes. |
85e2eef to
663e138
Compare
🤖 I have created a release *beep* *boop* --- ## [0.198.0](v0.197.0...v0.198.0) (2026-11-23) ### Features * **ci:** refuse changes to environment paths after the switch ([#6823](#6823)) ([ad366bb](ad366bb)) * **roadmap:** Add requirement text to the stage context ([#6826](#6826)) ([615bbc4](615bbc4)) * **roadmap:** Require a rejected alternative with a fact ([#6836](#6836)) ([5467e22](5467e22)) * **roadmap:** The stage plan states constant claims ([#6837](#6837)) ([5ea6d02](5ea6d02)) ### Bug Fixes * **deps:** update ghcr.io/dan-petty/devtools Docker tag to v1.1.1 ([#6834](#6834)) ([ea1b00f](ea1b00f)) * **docs:** the error catalog lists the onboard errors ([#6829](#6829)) ([1846b2d](1846b2d)) * **roadmap:** name a spent provider key, not a refused key ([#6827](#6827)) ([3aedb2f](3aedb2f)) * **roadmap:** read a record below a block a person opens ([#6812](#6812)) ([54a36e9](54a36e9)) --- 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>
A job writes the record block at the end of the issue body. A person can later open a code fence, a
<pre>block or a comment above the record on GitHub and not close it. CommonMark then reads the record as part of that block, sosplit_recordread an empty record, and the item lost its job state. With a fence above the refine block, the next write also left a stale copy of the old record.Now
split_recordalso reads the record on the last line of the body when that line ends a block that the body opens above it.close_open_blockofbody_hash.pydecides that the block is open, as for the job block readers. The extra parse runs only when the last block is not the record. A quote on that line reads as the record only when it holds a JSON object. The next write closes the block before the record and keeps the old keys in one record block.Closes #6785
Change:
openspec/changes/archive/2026-11-22-6785-read-record-below-open-block/