Repository navigation
docs(wind-format): normative .wind SPEC + major-only schema $id - #318
Merged
Merged
Conversation
Promote the .wind format guide to a normative specification: RFC-2119 conventions, a Conformance section (reader/writer requirements: tolerant reader, absent schemaVersion = 1.0, reject incompatible major), the media type application/vnd.fiberpath.wind+json, and a normative additive-within-major compatibility policy. Reference the canonical JSON-Schema $id. Reconcile the $id to major-only: scripts/generate_schema.py now emits https://fiberpath.org/schemas/wind/1/wind.schema.json (was /wind/1.0/), so every additive 1.x revision validates against the same schema and schemaVersion carries the minor; regenerate wind-schema.json. Also backfill the CHANGELOG for the cone feature (#138) and this change. The $id need not resolve yet (slice D publishes it). Schema drift gate passes. Slice A of #141 (open-format epic). Closes #314.
4 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Open-format slice A (#314) of epic #141 — make
.winda normative spec and fix the schema$idversioning. Self-contained (no corpus / IR / hosting — those are B/C/D).What's here
docs/guides/wind-format.md→ normative SPEC: RFC-2119 conventions; a Conformance section (conforming document / producer / consumer requirements — tolerant reader, absentschemaVersion=1.0, reject incompatible major); the media typeapplication/vnd.fiberpath.wind+json; a normative additive-within-major compatibility policy; an identity table linking the canonical$id. The old "Backwards Compatibility" prose now defers to the normative policy instead of contradicting it.$id→ major-only:scripts/generate_schema.pyemitshttps://fiberpath.org/schemas/wind/1/wind.schema.json(was/wind/1.0/). Additive 1.x revisions keep this$id;schemaVersioncarries the minor.wind-schema.jsonregenerated (drift-gated; generator verified deterministic).CHANGELOG.md: a[Unreleased]entry for this change, plus a backfill for the cone feature (Stage 3a — cone (developable) surface support #138) that shipped unlogged.Verification
pytest214 passed;ruff+mypyclean; schema-drift gate satisfied (committedwind-schema.json== regenerated).^1\.\d+$rejects major 2.0 while accepting unknown minors, and the reference reader genuinely ignores unknown members (pydantic defaultextra="ignore", noadditionalProperties:false). All internal anchors resolve.Scope
The
$iddoes not resolve yet — slice D (#317) publishes the schema on the org-pages site. No conformance corpus (B/#315) or IR doc (C/#316) here.Closes #314.