Skip to content

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

Closed

Description

@CameronBrooks11

Open-format slice B — conformance corpus. A machine-checkable corpus that pins what the format accepts and rejects. The largest slice. examples/ stays as the user-facing showcase (it's cited by tests + getting-started docs).

Scope

  • New top-level conformance/ tree:
    • valid/ — .wind files that must parse + plan (cover hoop / helical / skip / multi-layer / cone; may reference or reuse the examples/ winds).
    • invalid/ — .wind files that must be rejected, each paired with its expected error (a .json/.txt sidecar or manifest with the error type + message substring). Cover: bad schemaVersion major, missing required fields, out-of-range wind angle, non-coprime pattern/skip, lead-in ≥ wind length, expanding cone, unreachable cone angle, hoop-on-cone.
    • golden outputs for the valid cases (reuse existing example goldens where they exist; cone stays equivalence-gated, not byte).
  • Wire into pytest: parametrized tests that every valid/ parses+plans and every invalid/ raises the expected error type/message.
  • A short conformance/README.md describing the corpus contract.

Gate

  • New conformance tests pass; existing suites unaffected. ruff + mypy clean. Adversarial review (esp. that invalid/ cases fail for the stated reason, not incidentally).

Out of scope

SPEC prose (A), IR doc (C), schema hosting (D). Not restructuring examples/.

Part of #141.

Activity

  1. added
    documentation
    python
    on Jun 29, 2026
  2. added a commit that references this issue on Jun 29, 2026
    430ac60
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationpython

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions