Skip to content

bridge-the-impl-gap item 1: conformance inventory, open-fixtures lane, spec-examples lane - #2985

Merged
ehartford merged 1 commit into
mainfrom
impl-gap-mechanism
Nov 2, 2026
Merged

ehartford merged 1 commit into
mainfrom
impl-gap-mechanism

Conversation

@ehartford

Copy link
Copy Markdown
Contributor

Item 1 of docs/proposals/bridge-the-impl-gap.md (#2982). docs/spec/conformance.tsv is checked by :spec-inventory-check (implemented needs a fixture; open/regressed needs an issue; every D≥181 has a row; a D-row must exist in the decision log). conformance-open runs the nine fixtures of unimplemented rulings expecting failure. spec-examples compiles the normative chapters' and stdlib's fenced examples: 604 blocks, 501 seeded into test/conformance/spec-examples-open.txt with their first diagnostic (most are fragments; a // fragment first line opts a block out, which needs Eric's word on the spec text). Verified: a bad row is refused; the open lane reports 9 still failing; the example lane reports 0 unexpected. Battery to follow.

…res lane, the spec-examples lane

docs/spec/conformance.tsv: one row per ruling and testable section
(D-number or §, claim, state, fixture, issue), seeded from the plan's
tables. :spec-inventory-check refuses a row that says implemented with
no fixture, one that says open or regressed with no issue, a D-row the
decision log does not have, and a ruling from D181 on with no row.

test/conformance/open.txt lists the fixtures of rulings not implemented
yet (nine, one per open row); the conformance-open lane (in :test) runs
each expecting failure and reports one that passes, so a ruling that
lands flips its row instead of going unrecorded.

tools/spec_examples.w compiles every fenced example of the normative
chapters and docs/spec/stdlib with the release compiler; the
spec-examples lane (in :test) refuses an example that does not compile
unless test/conformance/spec-examples-open.txt lists it, and a listed
one that starts compiling. Seeded today: 604 blocks, 501 listed (most
are fragments; the rest are #2955's defects and open rulings), a
`// fragment` or `// not With` first line opts a block out.
@ehartford

Copy link
Copy Markdown
Contributor Author

Battery green on 465752e (gate, uat, battery-checks); out/battery/status.txt: rc= green. Verified by hand: a bad conformance row is refused by :spec-inventory-check; conformance-open reports 9 open fixtures still failing; spec-examples reports 604 blocks checked, 501 open as recorded, 0 unexpected.

@ehartford
ehartford marked this pull request as ready for review November 2, 2026 19:48
@ehartford
ehartford merged commit f6436f9 into main Nov 2, 2026
@ehartford
ehartford deleted the impl-gap-mechanism branch November 2, 2026 19:48
ehartford added a commit that referenced this pull request Nov 2, 2026
…02) (#2986)

Removes the spec-examples lane added in #2985 (tools/spec_examples.w,
the `spec-examples` target under `tests`, test/conformance/
spec-examples-open.txt): a target with docs/spec as an input made every
spec edit a build. The spec's examples are maintained by hand.

The conformance inventory moves out of docs/spec to
test/conformance/conformance.tsv, so nothing under the spec directory is
a build input; :spec-inventory-check and conformance-open read it there.

Co-authored-by: Eric Hartford <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant