Run artifact

evidence/prompts/20261014.054836.740Z_commonmark_plan_claude.prompt.md

<pblock label="Plan artifact repair" kind="repair">

Plan Artifact Repair

Drydock accepted the Plan response shape but rejected the emitted Blueprint artifact(s) below. Repair only the deterministic defect. Preserve all unrelated content, contracts, headings, decisions, and acceptance assertions byte-for-byte where possible. Do not remove or weaken a valid assertion while adding a missing one. Every artifact with a programmatic surface retains at least two concrete Python acceptance assertions. Every DECISIONS.json is the sole decision disclosure surface; do not emit Markdown question sections.

Emit each artifact below in exactly this form, and emit no other text:

=== BEGIN ARTIFACT <FILENAME> === <the complete file body> === END ARTIFACT ===

The filename appears once, in the opening delimiter. The closing delimiter is the constant token above and never carries a name.

Emit exactly one such block for each of: FEATURE-Lists.md.

Repair pass: 1

Deterministic validation defect: FEATURE-Lists.md []: FEATURE-Lists.md [lists-blank-in-code-stays-tight] acceptance block closes with a different id: expected '=== END AC lists-blank-in-code-stays-tight ===', found '=== END AC lists-blank-inside-code-stays-tight ==='

Normative Compass sections. They bind every assertion you write or retain, including one you add to satisfy the defect above.

Constraints

Guardrails

<!-- drydock:build-write-guardrail:start -->

Original FEATURE-Lists.md, in the same form your reply must use: === BEGIN ARTIFACT FEATURE-Lists.md ===

FEATURE: Lists

FieldValue
Version20261014 V1
DescriptionGroup list items into lists, compute tight and loose rendering, and gate the block-structure corpus sections.
Depends OnFEATURE-List-Items.md
Provideslist container, tight/loose computation
Consumeslist item container

Questions

Purpose

Implement the Lists section of the spec, and gate the block-structure sections whose examples need lists.

Rules

Reads

Writes

Programmatic Acceptance

=== AC lists-corpus-sections ===
Intent: The Lists, List items, Block quotes, Thematic breaks, ATX headings, Setext headings, Indented code blocks, Fenced code blocks and Precedence conformance sections (roughly 300 cases) pass in full.
Suite: scoped
Probe: --dump-tests
Probe Count: lines

import os import subprocess import sys

result = subprocess.run( [ sys.executable, "sources/spec_tests.py", "--program", os.getcwd() + "/commonmark", "--spec", "sources/spec.txt", "--pattern", "^Lists$|^List items$|^Block quotes$|^Thematic breaks$|^ATX headings$|^Setext headings$|^Indented code blocks$|^Fenced code blocks$|^Precedence$", ], capture_output=True, text=True, env={**os.environ}, ) print(result.stdout) print(result.stderr, file=sys.stderr) assert result.returncode == 0 === END AC lists-corpus-sections ===

=== AC lists-changing-marker-starts-new-list ===
Intent: Changing the bullet character or ordered delimiter starts a new list.

import subprocess

bullets = subprocess.run(["./commonmark"], input="- foo\n- bar\n+ baz\n", capture_output=True, text=True) ordered = subprocess.run(["./commonmark"], input="1. foo\n2. bar\n3) baz\n", capture_output=True, text=True) print(bullets.stdout) print(ordered.stdout) assert bullets.returncode == 0 assert ordered.returncode == 0 assert bullets.stdout.count("<ul>") == 2 assert ordered.stdout.count("<ol") == 2 === END AC lists-changing-marker-starts-new-list ===

=== AC lists-tight-versus-loose ===
Intent: Items without blank lines are tight, and a blank line between items makes the list loose.

import subprocess

tight = subprocess.run(["./commonmark"], input="- a\n- b\n", capture_output=True, text=True) loose = subprocess.run(["./commonmark"], input="- a\n\n- b\n", capture_output=True, text=True) print(tight.stdout) print(loose.stdout) assert tight.returncode == 0 assert loose.returncode == 0 assert tight.stdout.count("<p>") == 0 assert loose.stdout.count("<p>") == 2 === END AC lists-tight-versus-loose ===

=== AC lists-blank-inside-item-makes-loose ===
Intent: A blank line between two paragraphs of one item makes the whole list loose.

import subprocess

result = subprocess.run(["./commonmark"], input="- a\n- b\n\n c\n- d\n", capture_output=True, text=True) print(result.stdout) assert result.returncode == 0 assert result.stdout.count("<p>") == 4 === END AC lists-blank-inside-item-makes-loose ===

=== AC lists-blank-in-code-stays-tight ===
Intent: Blank lines inside a fenced code block do not make a list loose.

import subprocess

result = subprocess.run( ["./commonmark"], input="- a\n- \n b\n\n\n\n- c\n", capture_output=True, text=True ) print(result.stdout) assert result.returncode == 0 assert result.stdout.count("<p>") == 0 assert result.stdout.count("<pre>") == 1 === END AC lists-blank-inside-code-stays-tight ===

=== AC lists-interrupt-paragraph ===
Intent: A bullet list interrupts a paragraph, and an ordered list does so only when it starts at one.

import subprocess

bullet = subprocess.run(["./commonmark"], input="Foo\n- bar\n- baz\n", capture_output=True, text=True) one = subprocess.run(["./commonmark"], input="Intro\n1. item\n", capture_output=True, text=True) other = subprocess.run(["./commonmark"], input="Intro\n14. item\n", capture_output=True, text=True) print(bullet.stdout) print(one.stdout) print(other.stdout) assert bullet.returncode == 0 assert one.returncode == 0 assert other.returncode == 0 assert bullet.stdout.count("<ul>") == 1 assert one.stdout.count("<ol") == 1 assert other.stdout.count("<ol") == 0 === END AC lists-interrupt-paragraph ===

User Acceptance

Guardrails

=== END ARTIFACT === </pblock>