Separate CalVer distributions from immutable schema versions
This commit is contained in:
@@ -1,57 +1,78 @@
|
||||
# Compatibility
|
||||
|
||||
The initial candidate is the `v1.0.0` schema set. Publication status is established
|
||||
by the immutable upstream tag, not by this candidate's `VERSION` file. Contracts
|
||||
jointly comprise their JSON Schemas and semantic documents.
|
||||
Contracts comprise their versioned JSON Schema and adjacent semantic document.
|
||||
The initial candidates are glossary, RPG party, and RPG campaign at `0.1.0`.
|
||||
No published shared-schema release is assumed.
|
||||
|
||||
## Version identities
|
||||
## Independent identities
|
||||
|
||||
Schema-set releases use Semantic Versioning and ship together. Contract markers
|
||||
`maximumdirect.rpg.party.v1`, `maximumdirect.rpg.campaign.v1`, and
|
||||
`maximumdirect.glossary.v1` identify major domain contracts. A compatible schema
|
||||
release does not require editing operator document headers.
|
||||
- Repository distribution: CalVer `YYYY.MM.MICRO`, with UTC year, zero-padded
|
||||
month, and a publication counter starting at zero each month. The counter
|
||||
conveys no compatibility guarantee.
|
||||
- Schema version: full SemVer, independently selected per schema, represented
|
||||
by its `v<version>/` directory.
|
||||
- Document generation: `maximumdirect.glossary.v1`,
|
||||
`maximumdirect.rpg.party.v1`, or `maximumdirect.rpg.campaign.v1`.
|
||||
- Canonical schema identity: `https://schemas.maximumdirect.net/` plus the exact
|
||||
repository-relative schema path. It stays unchanged across repository snapshots.
|
||||
|
||||
- Major: incompatible structure, validation, or meaning.
|
||||
- Minor: compatible additions that preserve interpretation of existing data.
|
||||
- Patch: compatible corrections. A tighter validation rule that rejects previously
|
||||
valid documents is not automatically a patch fix.
|
||||
A compatible schema update retains its document marker. Incompatible structure
|
||||
or meaning changes the affected marker, including during pre-stable development.
|
||||
Independent stable schemas use SemVer: major for incompatibility, minor for
|
||||
compatible additions, patch for compatible corrections. Pre-stable versions
|
||||
express developing maturity; `1.0.0` is selected when adoption establishes a
|
||||
stable contract. Document generation is not derived from schema or Go module major.
|
||||
|
||||
Each release pins absolute `$id` values to its immutable raw tag URLs. These are
|
||||
schema resource identities, distinct from the operator's contract marker.
|
||||
Vocabulary, schema-set, and consumer application versions evolve independently.
|
||||
## Published contracts
|
||||
|
||||
## Both directions matter
|
||||
Published version directories, including semantics and examples, remain available
|
||||
byte-for-byte. A change requires a new schema version. Retain old records in
|
||||
[catalog.json](../catalog.json). Later CalVer snapshots may add versions without
|
||||
changing unrelated schemas. Exact publication dates belong in release notes.
|
||||
|
||||
A new consumer should accept old documents within its claimed major contract.
|
||||
An older consumer can accept and preserve new optional extension fields without
|
||||
claiming their meaning. Additional fields are compatible only when ignoring
|
||||
them preserves interpretation of the known data. A field changing that
|
||||
interpretation needs a new major contract or an explicitly selected extension
|
||||
contract with its own documented semantics.
|
||||
Hosting exposes raw repository files directly from `main`, including candidates.
|
||||
Only published tags and their inventories establish released versions. A source
|
||||
release completes at successful upstream publication; live URL inspection is
|
||||
optional delivery verification. Hosting selection and consumer adoption are
|
||||
independent of source publication.
|
||||
|
||||
Consumers forwarding or republishing shared documents should preserve extensions;
|
||||
task-specific projections may omit them. Extensions cannot redefine a standard
|
||||
field. Consumers can require additional data for a task without claiming that
|
||||
every shared document must contain it.
|
||||
## Consumer selection and compatibility
|
||||
|
||||
Contract changes include a compatibility assessment, updated schema and semantics,
|
||||
examples and focused fixtures, and migration guidance for incompatible changes.
|
||||
Retain representative valid documents from supported releases in `tests/valid/`
|
||||
as compatibility evidence. A schema diff alone does not detect changed meanings.
|
||||
The initial release has no earlier shared-schema releases to compare against.
|
||||
Select a published CalVer archive and exact `name@version` entries from its
|
||||
[catalog](catalog.md). For example, select `glossary@0.1.0` from `2026.11.0`
|
||||
after that distribution is published. Bundle `glossary/v0.1.0/` with its schema,
|
||||
semantic document, and any exact-version dependency directories referenced by
|
||||
the schema. Register canonical IDs against bundled files for offline resolution.
|
||||
No Go module dependency is required.
|
||||
|
||||
For an update, review that schema's compatibility and migration notes, replace
|
||||
the selected bundled directories, test application behavior, and commit the
|
||||
selected schema versions and source distribution. Unrelated schema updates can
|
||||
be ignored. Migration is explicit, with no automatic conversion or legacy reader.
|
||||
|
||||
A new consumer reads supported older documents. An older consumer may preserve
|
||||
new optional extensions without interpreting them. Additions are compatible only
|
||||
when ignoring them preserves known meanings; otherwise select a new contract
|
||||
generation or an explicitly selected extension contract. Forwarded documents
|
||||
preserve extensions; task-specific projections may omit them. Consumers may
|
||||
require more data for a particular operation than schema conformance requires.
|
||||
|
||||
Each contract change includes compatibility assessment, updated semantics,
|
||||
examples and focused fixtures, and migration guidance where needed. Retain valid
|
||||
supported-release fixtures as evidence. Schema diffs alone cannot establish
|
||||
unchanged meaning.
|
||||
|
||||
## Existing consumers
|
||||
|
||||
No existing application is declared compatible by this repository's initial
|
||||
release. Adoption requires explicit implementation and verification.
|
||||
No current application is declared compatible by this repository's readiness.
|
||||
|
||||
| Consumer | Current gap / later adoption responsibility |
|
||||
| Consumer | Later adoption responsibility |
|
||||
| --- | --- |
|
||||
| Narratio | Uses `narratio.party.v1`, stricter roster requirements, and the wrapperless glossary schema. Separate shared domain documents from operational campaign configuration and adopt the shared marker, alias spelling, and extension semantics. |
|
||||
| Audita v4.2.0 | Runtime glossary input is wrapperless and can contain task instructions. Adopt the shared envelope and obtain instructions through application configuration. |
|
||||
| Notarius v0.9.0 | Spell recognition consumes a strict JSON overlay with separate catalog and ruleset semantics. Reconcile its embedded catalog, merges, and ambiguity rules with shared spell entries and provenance; recognize names and aliases without asking operators to duplicate the source vocabulary. |
|
||||
| Scriptorium prompts | Adopt shared party and glossary structures in the prompt input contracts that need them; no generic application compatibility is implied. |
|
||||
| Reference catalog | Retains a wrapperless glossary and partial authoring format. Adopt shared completed envelopes while leaving composition to ConfigKit and vocabulary distribution independent. |
|
||||
| Narratio | Adopt the RPG party marker, plural aliases, optional attributes, and shared glossary envelope; separate campaign context from operational configuration. |
|
||||
| Audita v4.2.0 | Adopt the glossary envelope and obtain task instructions from application configuration. |
|
||||
| Notarius v0.9.0 | Reconcile shared spell entries and provenance with embedded vocabulary, recognition, merges, and ambiguity policy. |
|
||||
| Scriptorium prompts | Adopt the shared structures required by individual prompt input contracts. |
|
||||
| Reference catalog | Adopt shared completed envelopes while leaving composition to ConfigKit and vocabulary releases independent. |
|
||||
|
||||
The [inventory](inventory.md) identifies source baselines and the deliberate
|
||||
differences. Consumer release order and conversion code belong to later work.
|
||||
[Inventory](inventory.md) records the source baselines and deliberate differences.
|
||||
Consumer adoption order and implementation remain separate work.
|
||||
|
||||
Reference in New Issue
Block a user