Skip to content

test(conformance): .wind conformance corpus (valid/invalid/manifest) - #320

Merged
CameronBrooks11 merged 1 commit into
mainfrom
feat/openformat-b-conformance
Jun 29, 2026
Merged

CameronBrooks11 merged 1 commit into
mainfrom
feat/openformat-b-conformance

Conversation

@CameronBrooks11

Copy link
Copy Markdown
Member

Summary

Open-format slice B (#315) of epic #141 — the conformance corpus. Completes the open-format epic.

What's here

  • New top-level conformance/ tree pinning the format's accept/reject contract, separate from the byte-level example goldens:
    • valid/ (5) — hoop, helical, skip, multilayer, cone (schemaVersion 1.1); each MUST parse + plan to a non-empty program.
    • invalid/ (8) — bad major version, missing required field, out-of-range wind angle, non-coprime pattern, lead-in ≥ wind length, expanding cone, unreachable cone angle, hoop-on-cone; each MUST be rejected and is paired in manifest.json with the error substring it must fail on.
    • conformance/README.md documents the contract.
  • tests/conformance/ enforces it: every valid/ parses+plans, every invalid/ raises (WindFileError | LayerValidationError) with its match, every invalid file is listed in the manifest, and the corpus is asserted non-empty (no vacuous skip-pass).

Verification

  • pytest 228 passed (14 new conformance cases); ruff clean. examples/ untouched.
  • Adversarial review: no blockers — each invalid case was run through load+plan and confirmed to fail for its stated reason (e.g. wind_angle_out_of_range reaches the angle bound with coprime pattern; expanding_cone fails on orientation not reachability; unreachable_cone_angle passes the frustum check then fails on Clairaut reachability). Both NITs applied (non-empty guard, tighter lead-in match).

Scope

Accept/reject contract only — no byte-output goldens (those live in examples/ + test_example_goldens). Self-contained.

Closes #315.

Add a top-level conformance/ corpus pinning the format's accept/reject contract,
independent of the byte-level example goldens:

- valid/ — hoop, helical, skip, multilayer, cone (schemaVersion 1.1) that MUST
  parse and plan to a non-empty program.
- invalid/ — 8 cases that MUST be rejected (bad major version, missing field,
  out-of-range angle, non-coprime pattern, lead-in too long, expanding cone,
  unreachable cone angle, hoop-on-cone), each paired in manifest.json with the
  error substring it must fail on, so a case fails for its STATED reason.

tests/conformance/ enforces it: every valid file parses+plans, every invalid file
raises (WindFileError | LayerValidationError) with its match, every invalid file
is listed in the manifest, and the corpus is non-empty (no vacuous skip-pass).

Slice B of #141 (open-format epic). Closes #315.
@CameronBrooks11
CameronBrooks11 merged commit 430ac60 into main Jun 29, 2026
12 checks passed
@CameronBrooks11
CameronBrooks11 deleted the feat/openformat-b-conformance branch June 29, 2026 23:36
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.

Open-format B — conformance corpus (valid/invalid/golden)

1 participant