Record schema marker and current-version validation decisions
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
# Align shared schemas with ConfigKit
|
# Align shared schemas with ConfigKit
|
||||||
|
|
||||||
Status: proposed; open decisions appear at the end.
|
Status: decisions settled; ready for implementation planning.
|
||||||
|
|
||||||
## Objective and ownership
|
## Objective and ownership
|
||||||
|
|
||||||
@@ -84,7 +84,8 @@ through the catalog and exercise their examples through the same native loading,
|
|||||||
structural validation, and applicable semantic checks. Require representative
|
structural validation, and applicable semantic checks. Require representative
|
||||||
examples and focused boundary fixtures for new field constraints. This must
|
examples and focused boundary fixtures for new field constraints. This must
|
||||||
apply to future schemas without maintaining a hard-coded list of the current
|
apply to future schemas without maintaining a hard-coded list of the current
|
||||||
three; historical versions follow the support policy selected in OD-2.
|
three. Run native document checks against the most current version of each
|
||||||
|
schema; retained historical definitions are not alternate validation targets.
|
||||||
|
|
||||||
These checks verify examples and relevant boundaries, not every document a JSON
|
These checks verify examples and relevant boundaries, not every document a JSON
|
||||||
Schema could accept. Contributor guidance must retain the contract review above;
|
Schema could accept. Contributor guidance must retain the contract review above;
|
||||||
@@ -160,8 +161,13 @@ documents rejected by ConfigKit. Keep a simple JSON syntax check for `.json`
|
|||||||
files if preserving that filename convention; it must not provide an alternate
|
files if preserving that filename convention; it must not provide an alternate
|
||||||
decoding path or bypass native restrictions.
|
decoding path or bypass native restrictions.
|
||||||
|
|
||||||
Retain exact `name@version` selection, offline schema registration and reference
|
Change CLI selection from `-schema NAME@VERSION` to `-schema NAME`, selecting
|
||||||
resolution, maintained JSON Schema validation, and exact glossary ID checks.
|
that schema's highest SemVer version in the chosen local distribution's catalog.
|
||||||
|
Report the exact selected version. Do not offer historical-version selection or
|
||||||
|
fetch a newer distribution automatically. A development checkout may contain
|
||||||
|
unpublished candidates; a published snapshot selects its own most current version.
|
||||||
|
Retain offline schema registration and exact referenced dependency resolution,
|
||||||
|
maintained JSON Schema validation, and exact glossary ID checks.
|
||||||
Do not coerce, default, or mutate the native result during validation. Keep
|
Do not coerce, default, or mutate the native result during validation. Keep
|
||||||
schema resource/catalog JSON decoding separate from operator-domain loading;
|
schema resource/catalog JSON decoding separate from operator-domain loading;
|
||||||
JSON Schema files themselves are not ConfigKit configuration documents.
|
JSON Schema files themselves are not ConfigKit configuration documents.
|
||||||
@@ -181,6 +187,11 @@ is introduced.
|
|||||||
Update the README, validation guide, development guide, compatibility guidance,
|
Update the README, validation guide, development guide, compatibility guidance,
|
||||||
and new versioned semantics together. Identify the native loading baseline and
|
and new versioned semantics together. Identify the native loading baseline and
|
||||||
explain the distinction between structural validity and full conformance.
|
explain the distinction between structural validity and full conformance.
|
||||||
|
Update compatibility policy so document generations follow schema major versions:
|
||||||
|
pre-1.0 and 1.x schemas use `.v1`; `.v2` begins at schema `2.0.0`. Pre-1.0
|
||||||
|
contract changes do not require marker changes. Update CLI guidance to use
|
||||||
|
schema names and explain local most-current selection. Consumer pinning to exact
|
||||||
|
published schema versions remains independent of this developer-tool behavior.
|
||||||
|
|
||||||
Document supported YAML authoring with short examples and upstream links:
|
Document supported YAML authoring with short examples and upstream links:
|
||||||
quote ambiguous string values, use supported numeric syntax, and avoid aliases
|
quote ambiguous string values, use supported numeric syntax, and avoid aliases
|
||||||
@@ -198,7 +209,8 @@ New examples remain synthetic, with glossary examples covering non-RPG domains.
|
|||||||
Update current fixtures that rely on aliases or exact arbitrary precision.
|
Update current fixtures that rely on aliases or exact arbitrary precision.
|
||||||
Retain useful historical fixtures as historical evidence, not expectations for
|
Retain useful historical fixtures as historical evidence, not expectations for
|
||||||
the new decoder. Consumer migration notes should identify the new exact versions,
|
the new decoder. Consumer migration notes should identify the new exact versions,
|
||||||
marker changes, affected authoring forms, and the absence of compatibility shims.
|
retained `.v1` markers, affected authoring forms, and the absence of compatibility
|
||||||
|
shims.
|
||||||
|
|
||||||
### 5. Verify alignment and prepare downstream handoff
|
### 5. Verify alignment and prepare downstream handoff
|
||||||
|
|
||||||
@@ -210,6 +222,9 @@ ConfigKit's parser suite:
|
|||||||
- Adding a schema to the catalog brings its examples into the ordinary native
|
- Adding a schema to the catalog brings its examples into the ordinary native
|
||||||
validation checks without schema-name-specific test wiring. Missing required
|
validation checks without schema-name-specific test wiring. Missing required
|
||||||
example coverage or an incompatible maintained example fails the suite.
|
example coverage or an incompatible maintained example fails the suite.
|
||||||
|
- Selection uses SemVer ordering rather than lexical or catalog order, reports
|
||||||
|
the selected version, and never falls back to an older definition based on
|
||||||
|
document contents. Historical CLI version selection is no longer supported.
|
||||||
- Required fields, unknown supported extensions, omitted/null/empty distinctions,
|
- Required fields, unknown supported extensions, omitted/null/empty distinctions,
|
||||||
and glossary ID uniqueness retain their intended domain behavior.
|
and glossary ID uniqueness retain their intended domain behavior.
|
||||||
- Representative unsupported syntax, duplicate/non-string keys, integer
|
- Representative unsupported syntax, duplicate/non-string keys, integer
|
||||||
@@ -235,33 +250,25 @@ Notarius, Audita, and the reference catalog. Update their adoption plans to
|
|||||||
remove broader-profile obligations and custom compatibility work. Those
|
remove broader-profile obligations and custom compatibility work. Those
|
||||||
repository changes remain separately scoped.
|
repository changes remain separately scoped.
|
||||||
|
|
||||||
|
## Recorded decisions
|
||||||
|
|
||||||
|
### Versions and document generations
|
||||||
|
|
||||||
|
Release the aligned schemas as `0.2.0`, retaining `maximumdirect.glossary.v1`,
|
||||||
|
`maximumdirect.rpg.party.v1`, and `maximumdirect.rpg.campaign.v1`. Document
|
||||||
|
markers remain `.v1` throughout pre-1.0 and 1.x development; they advance to
|
||||||
|
`.v2` when the corresponding schema reaches `2.0.0`. Update the current
|
||||||
|
compatibility policy accordingly. Published version directories stay immutable.
|
||||||
|
Select the distribution's CalVer at release preparation.
|
||||||
|
|
||||||
|
### Most-current validation
|
||||||
|
|
||||||
|
The validator always uses the most current version of the requested schema in
|
||||||
|
the selected local distribution. It does not provide historical validation modes
|
||||||
|
or multiple decoding implementations. Retain published definitions and catalog
|
||||||
|
records for consumers that pin them. Historical validation, when needed, uses
|
||||||
|
the historical distribution's tool; it is outside the current validator's scope.
|
||||||
|
|
||||||
## Open decisions
|
## Open decisions
|
||||||
|
|
||||||
### OD-1: New versions and document generations
|
None.
|
||||||
|
|
||||||
**Recommendation:** release each aligned schema as `0.2.0`, with markers
|
|
||||||
`maximumdirect.glossary.v2`, `maximumdirect.rpg.party.v2`, and
|
|
||||||
`maximumdirect.rpg.campaign.v2`. The accepted input/value contract narrows, so
|
|
||||||
the existing compatibility policy requires a new generation even before `1.0.0`.
|
|
||||||
Select the new distribution's CalVer at release preparation.
|
|
||||||
|
|
||||||
**Alternative:** retain `.v1` only after explicitly changing the compatibility
|
|
||||||
policy to separate serialization compatibility from document generations.
|
|
||||||
New immutable schema versions are still required. Do not call this a compatible
|
|
||||||
documentation correction or modify the published versions in place.
|
|
||||||
|
|
||||||
### OD-2: Historical validation in the new tool
|
|
||||||
|
|
||||||
**Recommendation:** keep all published definitions in the catalog and available
|
|
||||||
for offline structural use, but make the new CLI's full-validation support
|
|
||||||
explicitly target the aligned versions. Selecting an unsupported historical
|
|
||||||
version should explain that its original full decoding contract requires the
|
|
||||||
validator from `2026.11.0`. Do not retain two decoding implementations.
|
|
||||||
|
|
||||||
**Alternative:** allow historical schema selection through the new native loader,
|
|
||||||
but clearly report that it checks the old structure under the current ConfigKit
|
|
||||||
boundary, not full historical conformance. This preserves more CLI selections
|
|
||||||
at the cost of a less straightforward meaning of validation success.
|
|
||||||
|
|
||||||
Neither choice removes old catalog records, changes their canonical identities,
|
|
||||||
or requires applications to support multiple generations at runtime.
|
|
||||||
|
|||||||
Reference in New Issue
Block a user