Plan native ConfigKit alignment for shared schemas

This commit is contained in:
2026-11-29 16:28:57 +00:00
parent 09db04d7f9
commit 4b0e72763f
2 changed files with 304 additions and 6 deletions

View File

@@ -1,6 +1,6 @@
# Align shared schemas with ConfigKit
Status: decisions settled; ready for implementation planning.
Status: decisions settled; [implementation plan](implementation.md) prepared.
## Objective and ownership
@@ -65,7 +65,7 @@ class-level bound. Existing domain meanings need no redesign.
## Required work
### 1. Establish the common boundary
### Common loading boundary
Replace the independently specified broad YAML profile with a short description
that delegates to the pinned ConfigKit contract. Record the supported ConfigKit
@@ -110,7 +110,11 @@ ConfigKit's private tree retaining original numeric spelling. Typed consumer
destinations can impose further task constraints; they do not broaden the
shared dynamic-value contract.
### 2. Add aligned versions of all three contracts
Native resource limits also apply, including the selected baseline's 8 MiB
per-source limit. Upstream owns their definitions and enforcement; the schema
repository does not duplicate them as schema constraints or local size gates.
### Aligned contract versions
Create new version directories, canonical IDs, examples, and catalog records.
Leave every published `0.1.0` directory byte-for-byte unchanged.
@@ -141,7 +145,7 @@ immutable upstream reference. Mutable repository-wide guidance must not be able
to silently redefine a published contract. No new catalog format or independently
versioned serialization-profile system is needed.
### 3. Simplify the validation harness
### Native validation harness
Adopt ConfigKit `v1.4.0` as a pinned dependency. Load each supplied document
through `Load[map[string]any]` using `Bytes` for the already-read document, then
@@ -171,6 +175,8 @@ maintained JSON Schema validation, and exact glossary ID checks.
Do not coerce, default, or mutate the native result during validation. Keep
schema resource/catalog JSON decoding separate from operator-domain loading;
JSON Schema files themselves are not ConfigKit configuration documents.
Resource decoding preserves exact numeric schema constraints independently of
ConfigKit's native domain-number binding.
Preserve useful filename and schema-selection context around native errors.
Distinguish native load failures from structural and semantic failures without
@@ -182,7 +188,7 @@ it transitively. Update module metadata and attribution for the actual dependenc
set. The harness stays internal; no shared Go SDK or alternate consumer loader
is introduced.
### 4. Align documentation and maintained examples
### Documentation and maintained examples
Update the README, validation guide, development guide, compatibility guidance,
and new versioned semantics together. Identify the native loading baseline and
@@ -212,7 +218,7 @@ the new decoder. Consumer migration notes should identify the new exact versions
retained `.v1` markers, affected authoring forms, and the absence of compatibility
shims.
### 5. Verify alignment and prepare downstream handoff
### Verification and downstream handoff
Use focused public-API tests for the integration boundary, not a copy of
ConfigKit's parser suite: