Require ConfigKit compatibility checks for future schemas

This commit is contained in:
2026-11-29 15:58:52 +00:00
parent 3cacffcfec
commit f409bb1433

View File

@@ -72,6 +72,25 @@ that delegates to the pinned ConfigKit contract. Record the supported ConfigKit
baseline and link its canonical guidance. Future schema additions and updates
must be checked against that boundary before publication.
Make this a standing schema-authoring requirement in `docs/development.md`,
with a link from `AGENTS.md` so future contributors encounter it before defining
a contract. Every new schema or revision must review its field types, numeric
ranges and precision promises, extension values, and reserved names against the
selected ConfigKit boundary. Resolve incompatibilities in the proposed schema;
do not add a schema-specific decoder or broaden the shared loading path.
Extend the ordinary validation suite to discover newly added schema versions
through the catalog and exercise their examples through the same native loading,
structural validation, and applicable semantic checks. Require representative
examples and focused boundary fixtures for new field constraints. This must
apply to future schemas without maintaining a hard-coded list of the current
three; historical versions follow the support policy selected in OD-2.
These checks verify examples and relevant boundaries, not every document a JSON
Schema could accept. Contributor guidance must retain the contract review above;
passing meta-schema validation or a few examples is not proof of full native
compatibility. Run the same checks when upgrading ConfigKit.
Distinguish three checks:
1. Native ConfigKit acquisition, resolution, and dynamic value binding.
@@ -188,6 +207,9 @@ ConfigKit's parser suite:
- All three new contracts' examples validate through native loading, structural
validation, and applicable semantic checks.
- Adding a schema to the catalog brings its examples into the ordinary native
validation checks without schema-name-specific test wiring. Missing required
example coverage or an incompatible maintained example fails the suite.
- Required fields, unknown supported extensions, omitted/null/empty distinctions,
and glossary ID uniqueness retain their intended domain behavior.
- Representative unsupported syntax, duplicate/non-string keys, integer