Run artifact

workspace/targets/commonmark/evidence/block-20.md

Evidence: Block 20 ยท Service (block-20)

Stories built

Stacked context

Build directory changes

Pre-build acceptance observation

intent: Equals underlines give h1 and dash underlines give h2. return code: 1 stdout: <p>Foo <em>bar</em> =========</p>

<p>Foo <em>bar</em></p> <hr /> stderr: --- drydock: values at failure --- equals = CompletedProcess(args=['./commonmark'], returncode=0, stdout='<p>Foo <em>bar</em>\n=========</p>\n', stderr='') --- drydock: end values --- Traceback (most recent call last): File "setext-both-levels.py", line 9, in <module> assert equals.stdout.count("<h1>") == 1 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AssertionError

intent: Several paragraph lines before the underline become one heading with no paragraph. return code: 1 stdout: <p>Foo Bar</p> <hr /> stderr: --- drydock: values at failure --- result = CompletedProcess(args=['./commonmark'], returncode=0, stdout='<p>Foo\nBar</p>\n<hr />\n', stderr='') --- drydock: end values --- Traceback (most recent call last): File "setext-multiline-content.py", line 6, in <module> assert result.stdout.count("<h2>") == 1 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AssertionError

intent: Dashes after paragraph text make a heading, not a thematic break. return code: 1 stdout: <p>Foo</p> <hr /> <p>bar</p> stderr: --- drydock: values at failure --- result = CompletedProcess(args=['./commonmark'], returncode=0, stdout='<p>Foo</p>\n<hr />\n<p>bar</p>\n', stderr='') --- drydock: end values --- Traceback (most recent call last): File "setext-underline-beats-thematic-break.py", line 6, in <module> assert result.stdout.count("<h2>") == 1 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AssertionError

intent: Dashes with no preceding paragraph are thematic breaks, mixed with two setext headings and a paragraph. return code: 1 stdout: <hr /> <p>Foo</p> <hr /> <p>Bar</p> <hr /> <p>Baz</p> stderr: --- drydock: values at failure --- result = CompletedProcess(args=['./commonmark'], returncode=0, stdout='<hr />\n<p>Foo</p>\n<hr />\n<p>Bar</p>\n<hr />\n<p>Baz</p>\n', stderr='') --- drydock: end values --- Traceback (most recent call last): File "setext-sequence-with-thematic-breaks.py", line 6, in <module> assert result.stdout.count("<hr />") == 1 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AssertionError

intent: Four spaces of indentation or internal spaces disqualify the underline. return code: 0 stdout: <p>Foo ---</p>

<p>Foo = =</p>

intent: An unmarked underline after a quote paragraph does not make a heading inside the quote. return code: 0 stdout: <blockquote> <p>foo bar ===</p> </blockquote>

intent: Dashes after a quote without a marker are a thematic break outside the quote. return code: 0 stdout: <blockquote> <p>Foo</p> </blockquote> <hr />

intent: An underline with no content line is not a heading. return code: 0 stdout: <p>====</p>

Post-build programmatic acceptance

intent: Equals underlines give h1 and dash underlines give h2. target interpreter: /mnt/c/Users/barlo/projects/drydock/uat/CommonMark/runs/20261014.053711/build/commonmark/.venv/bin/python provisioning: not required return code: 0 stdout: <h1>Foo <em>bar</em></h1>

<h2>Foo <em>bar</em></h2>

intent: Several paragraph lines before the underline become one heading with no paragraph. target interpreter: /mnt/c/Users/barlo/projects/drydock/uat/CommonMark/runs/20261014.053711/build/commonmark/.venv/bin/python provisioning: not required return code: 0 stdout: <h2>Foo Bar</h2>

intent: Dashes after paragraph text make a heading, not a thematic break. target interpreter: /mnt/c/Users/barlo/projects/drydock/uat/CommonMark/runs/20261014.053711/build/commonmark/.venv/bin/python provisioning: not required return code: 0 stdout: <h2>Foo</h2> <p>bar</p>

intent: Dashes with no preceding paragraph are thematic breaks, mixed with two setext headings and a paragraph. target interpreter: /mnt/c/Users/barlo/projects/drydock/uat/CommonMark/runs/20261014.053711/build/commonmark/.venv/bin/python provisioning: not required return code: 0 stdout: <hr /> <h2>Foo</h2> <h2>Bar</h2> <p>Baz</p>

intent: Four spaces of indentation or internal spaces disqualify the underline. target interpreter: /mnt/c/Users/barlo/projects/drydock/uat/CommonMark/runs/20261014.053711/build/commonmark/.venv/bin/python provisioning: not required return code: 0 stdout: <p>Foo ---</p>

<p>Foo = =</p>

intent: An unmarked underline after a quote paragraph does not make a heading inside the quote. target interpreter: /mnt/c/Users/barlo/projects/drydock/uat/CommonMark/runs/20261014.053711/build/commonmark/.venv/bin/python provisioning: not required return code: 0 stdout: <blockquote> <p>foo bar ===</p> </blockquote>

intent: Dashes after a quote without a marker are a thematic break outside the quote. target interpreter: /mnt/c/Users/barlo/projects/drydock/uat/CommonMark/runs/20261014.053711/build/commonmark/.venv/bin/python provisioning: not required return code: 0 stdout: <blockquote> <p>Foo</p> </blockquote> <hr />

intent: An underline with no content line is not a heading. target interpreter: /mnt/c/Users/barlo/projects/drydock/uat/CommonMark/runs/20261014.053711/build/commonmark/.venv/bin/python provisioning: not required return code: 0 stdout: <p>====</p>

Build summary

Baseline is green (991 passed, 1 skipped). Now I'll add the setext rule to the block engine, register it ahead of thematic breaks so dashes after a paragraph win, and render the new block kind.Now the test file: the declared acceptance checks transcribed unchanged, plus block-tree and exact-output tests.Two expectations I wrote need correcting before I run them: a trailing-space hard break between heading lines is valid (only the last line's trailing spaces are dropped), and one test name is misleading.Both failures are mistakes in my test expectations, not the engine. " \tFoo " is four columns of indentation, so it's an indented code block; and paragraph lines drop their leading whitespace, so the content is Foo\n===. Fixing the tests:Now the new file, then the whole project suite in the background to check for regressions against the 991-pass baseline.Same mistake again: a space followed by a tab reaches column 4, so it's still indented code. The single-space case is the one I meant to test, so I'll use that.The new file is green (48 passed). Waiting on the full-suite run:The background run started before my last test fix, so the strips_surrounding failure there is stale. The real regression is an existing registry-order test in test_blocks.py, which pins the start-rule list. Let me look at it.This test pins the old start-rule order. Adding the setext rule ahead of thematic break is an intended change, so I'll update the expectation (it isn't a declared acceptance check) and rename it to match.RESULT: SUCCESS

FILES CHANGED:

SUMMARY: Setext headings are implemented as a registered block type, setext_heading, with a start rule that runs only when the open container is a paragraph.

Tests:

Not run: sources/full_test.sh and spec_tests.py. The setext corpus examples are gated in the lists story, so I did not invoke the staged corpus here. No commits were made.

BLOCKERS: