Repository navigation
fix(roadmap): every job block reader uses one marker rule - #6794
Merged
Merged
Conversation
One job can end two open blocks: its start marker ends a fence above its block, and its end marker ends a block in its block. A body with three open blocks must give four markers and both blocks. A marker on the last line of a declaration that a person leaves open must bound the block, as a marker on the last line of a comment does.
A body has at most one part more than there are job block markers, not jobs. So a reader finds each marker of a body with three open blocks, and the readers agree. block_marker_of reads the end text of each kind of HTML block from the table of close_open_block. So a marker that ends a declaration such as <!DOCTYPE bounds a block, as a marker that ends a comment does. No open issue holds such a declaration. The specs state the declaration rule, and each requirement sentence of the change has at most 25 words.
Owner
Author
Review of #6736: every job block reader uses one marker ruleHead: a246a4f (branch fix/6736-one-marker-rule). Base: origin/main 8113691. Advisory note. Recommendationopen-and-ready. No finding above a nit stands. The second round fixed the minor finding and the three nits of the first round. A recheck confirmed each fix. Two nits stand, and they do not block. The branch is on the newest origin/main. Lenses and checksFirst round (review of 6010b3a1a)
Second round (fix and recheck at a246a4f)
Standing findingsNit: a quoted whole pair at the end of an open fence reads as the job block
Nit (pre-existing): an HTML block of kind 6 or 7 directly above a marker hides the marker
Fixed findings (a recheck confirms each)Second round:
First round:
Dropped findings
Design decisions
Merge order and follow-ups
|
dan-petty
marked this pull request as ready for review
November 22, 2026 21:03
This was referenced Nov 22, 2026
dan-petty
added a commit
that referenced
this pull request
Nov 22, 2026
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/`
dan-petty
pushed a commit
that referenced
this pull request
Nov 22, 2026
🤖 I have created a release *beep* *boop* --- ## [0.195.3](v0.195.2...v0.195.3) (2026-11-22) ### Bug Fixes * **roadmap:** a record write keeps job blocks readable ([#6800](#6800)) ([b1d4852](b1d4852)) * **roadmap:** every job block reader uses one marker rule ([#6794](#6794)) ([9dfe03e](9dfe03e)), closes [#6736](#6736) --- 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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A person can open a code fence or a
<pre>block above a job block and not close it. CommonMark then reads the old block as code, and the refine and alternatives writes added a second one._ends_sectionalso had its own marker test, so a comment left open above an alternatives block letbody_dependenciesread its Lacks list as blockers.Now
body_hash.pyholds the one rule, and_ends_sectionuses its token testblock_marker_of. An open block stops at the job blocks at its end, one for each job at most. An open block in a job block stops at its end marker. Each other marker stays text.extract_section_and_outsideand_with_blockclose the open block there first, so the alternatives write replaces its old block in place. Refine finds its section there, but it writes only when it reads the record, which the open block also hides (#6785).body_dependenciesparses the same closed body.Closes #6736
Change:
openspec/changes/archive/2026-11-22-6736-one-marker-rule/