Pin the released shared schemas for implementation

This commit is contained in:
2026-11-29 17:44:05 +00:00
parent bfd9556a9e
commit 30bc424343
2 changed files with 41 additions and 42 deletions

View File

@@ -20,12 +20,14 @@ authorize future implementation, not implementation during the planning pass.
## Resolved Design Details ## Resolved Design Details
- Adopt published ConfigKit-aligned glossary and RPG party contracts. The reviewed - Adopt `glossary@0.2.0` and `rpg/party@0.2.0` from published schemas distribution
`0.1.0` schemas in `2026.11.0` predate that alignment and are not the target. `2026.11.1`, commit `f7e3cedeca11ed903311cdf29ca4d81fb1f216b7`.
Stage 1 verifies the new publication and records exact versions before reader The respective document markers remain `maximumdirect.glossary.v1` and
implementation. Do not implement a local bridge while awaiting publication. `maximumdirect.rpg.party.v1`; unchanged markers do not imply old decoding
behavior. No publication wait or historical-version compatibility reader is
needed.
- Bundle content under `assets/shared-domain/`, retaining upstream paths - Bundle content under `assets/shared-domain/`, retaining upstream paths
`glossary/v<selected-version>/` and `rpg/party/v<selected-version>/`. Include `glossary/v0.2.0/` and `rpg/party/v0.2.0/`. Include
schema files, adjacent semantics, and a small source/version record. Link schema files, adjacent semantics, and a small source/version record. Link
upstream manuals rather than copying them. Keep the single assets Go file upstream manuals rather than copying them. Keep the single assets Go file
content-only; extend its embed declaration as necessary. content-only; extend its embed declaration as necessary.
@@ -98,24 +100,24 @@ authorize future implementation, not implementation during the planning pass.
construction shared by run and explicit preflight, before domain inference. construction shared by run and explicit preflight, before domain inference.
Keep ordinary offline pipeline validation free of reference-file reads. Keep ordinary offline pipeline validation free of reference-file reads.
## Stage 1 — Confirm And Bundle The Aligned Contracts ## Stage 1 — Bundle The Pinned Aligned Contracts
**Goal:** Pin released aligned definitions and make essential contracts available **Goal:** Make the selected released contracts available offline without
offline without behavioral asset registration. behavioral asset registration.
**Inspect:** `assets/package.go`, schemas tag/catalog and selected version **Inspect:** `assets/package.go`, schemas tag/catalog and selected version
directories in `../schemas`, `docs/policy/oss.md`, and current attribution. directories in `../schemas`, `docs/policy/oss.md`, and current attribution.
**Work:** **Work:**
1. Verify publication of a ConfigKit-aligned schema distribution. At preparation 1. Read the pinned `2026.11.1` catalog and glossary/party `0.2.0` semantics from
time only the pre-alignment `2026.11.0` source tag was available. If alignment commit `f7e3cedeca11ed903311cdf29ca4d81fb1f216b7`. Use these exact versions,
is not published yet, report that prerequisite and stop schema-dependent work; not an automatic highest-version selection or older contracts with the same
do not silently select old contracts, unpublished candidates, or local patches. `.v1` markers. Campaign support remains deferred.
2. Select the most current glossary and party versions from that published 2. Record distribution, full source commit, versions, document markers, and
distribution's catalog and review their semantics against ConfigKit `v1.4.0`. canonical IDs in a small asset source record. The IDs are
Record distribution, full source commit, versions, document markers, and `https://schemas.maximumdirect.net/glossary/v0.2.0/schema.json` and
canonical IDs in the feature roadmap, this plan, and a small asset source record. `https://schemas.maximumdirect.net/rpg/party/v0.2.0/schema.json`.
No runtime release discovery or inventory framework. No runtime release discovery or inventory framework.
3. Copy only the selected schema files and adjacent semantics, plus exact schema 3. Copy only the selected schema files and adjacent semantics, plus exact schema
dependencies if any, into the asset subtree. Keep schema files verbatim; link dependencies if any, into the asset subtree. Keep schema files verbatim; link
@@ -127,9 +129,9 @@ directories in `../schemas`, `docs/policy/oss.md`, and current attribution.
5. Add the incorporated material's attribution and applicable license text using 5. Add the incorporated material's attribution and applicable license text using
the selected release's actual terms, existing OSS conventions, and pinned links. the selected release's actual terms, existing OSS conventions, and pinned links.
**Acceptance:** Published aligned versions are pinned, and the packaged filesystem **Acceptance:** The packaged filesystem contains the pinned `0.2.0` schemas and
contains their schemas and semantics; `assets` still has no business logic or kit semantics; `assets` still has no business logic or kit dependency. Source/license
dependency. Source/license records describe only incorporated material. records describe only incorporated material.
**Validation:** `go test ./assets`; inspect copied files against `git show` at the **Validation:** `go test ./assets`; inspect copied files against `git show` at the
selected upstream commit, and `git diff --check`. selected upstream commit, and `git diff --check`.
@@ -463,5 +465,5 @@ migration explanations are not stale references to delete.
**Acceptance:** All stages' outcomes and the feature-roadmap acceptance criteria **Acceptance:** All stages' outcomes and the feature-roadmap acceptance criteria
are satisfied; repository-wide checks pass and no compatibility reader or are satisfied; repository-wide checks pass and no compatibility reader or
duplicated authoring workflow remains. No blocking product decision is known; duplicated authoring workflow remains. No blocking product decision or schema
the aligned-schema publication prerequisite must have been satisfied in Stage 1. publication prerequisite remains.

View File

@@ -46,38 +46,35 @@ Reviewed against Notarius commit
`github.com/santhosh-tekuri/jsonschema/v6`. Their public APIs supply native `github.com/santhosh-tekuri/jsonschema/v6`. Their public APIs supply native
loading and external JSON Schema validation; no new parser dependency is needed. loading and external JSON Schema validation; no new parser dependency is needed.
## Upstream Baseline And Adoption Prerequisite ## Selected Upstream Baseline
The reviewed shared schemas source distribution is Adopt the shared schemas source distribution
[`2026.11.0`](https://forge.maximumdirect.net/eric/schemas/src/tag/2026.11.0), [`2026.11.1`](https://forge.maximumdirect.net/eric/schemas/src/tag/2026.11.1),
whose published remote tag resolves to commit whose published remote tag resolves to commit
`1b8430bdcbf04eb98c8d45c98a1cb986a9e6d477`. Its `f7e3cedeca11ed903311cdf29ca4d81fb1f216b7`. Its
[catalog](https://forge.maximumdirect.net/eric/schemas/src/tag/2026.11.0/catalog.json) [catalog](https://forge.maximumdirect.net/eric/schemas/src/tag/2026.11.1/catalog.json)
contains the following independently versioned contracts: contains the following independently versioned contracts:
| Contract | Reviewed version | Document identifier | Intended adoption scope | | Contract | Selected version | Document identifier | Adoption scope |
| --- | --- | --- | --- | | --- | --- | --- | --- |
| General glossary | `0.1.0` | `maximumdirect.glossary.v1` | Structured vocabulary and spell recognition. | | [General glossary](https://schemas.maximumdirect.net/glossary/v0.2.0/schema.json) | `0.2.0` | `maximumdirect.glossary.v1` | Structured vocabulary and spell recognition. |
| RPG party | `0.1.0` | `maximumdirect.rpg.party.v1` | Structured character roster and player relationships. | | [RPG party](https://schemas.maximumdirect.net/rpg/party/v0.2.0/schema.json) | `0.2.0` | `maximumdirect.rpg.party.v1` | Structured character roster and player relationships. |
| RPG campaign | `0.1.0` | `maximumdirect.rpg.campaign.v1` | Reviewed; no new structured consumer in this work set. | | RPG campaign | `0.2.0` (reviewed only) | `maximumdirect.rpg.campaign.v1` | No new structured consumer in this work set. |
That release's `0.1.0` contracts predate the upstream ConfigKit-alignment work Use the glossary and party definitions with their adjacent semantics from this
and are not the implementation target. As of this revision, `2026.11.0` is the exact source revision. Their canonical IDs are the versioned schema URLs linked
only published source tag verified. Select the published ConfigKit-aligned above. The release's aligned native-loading contracts are available; schema
glossary and party versions when available, together with their adjacent publication is no longer a prerequisite for implementation.
semantics. Record the distribution, full source commit, exact schema versions,
canonical IDs, and document markers before implementing their readers. Do not
adapt the old contracts locally or treat unpublished schema work as released.
The adoption prerequisite is a published aligned schema distribution; no further The `.v1` markers remain unchanged from the earlier contracts and do not identify
product decision is needed to keep loading native. Preparation can proceed, but an exact schema version or loading policy. Pin `0.2.0`; do not dispatch between
schema-dependent implementation must use the verified new definitions. Keep historical versions based on the marker, select the highest version at runtime,
older source/version details above as review evidence, not accepted legacy input. or add compatibility readers for `0.1.0`.
Use the existing ConfigKit `v1.4.0` Use the existing ConfigKit `v1.4.0`
[consumer guide](https://forge.maximumdirect.net/base-layer/configkit/src/tag/v1.4.0/docs/consumers/README.md) [consumer guide](https://forge.maximumdirect.net/base-layer/configkit/src/tag/v1.4.0/docs/consumers/README.md)
and [native contract](https://forge.maximumdirect.net/base-layer/configkit/src/tag/v1.4.0/docs/config.md) and [native contract](https://forge.maximumdirect.net/base-layer/configkit/src/tag/v1.4.0/docs/config.md)
for loading semantics; the aligned schema release must fit that boundary. for loading semantics, as specified by the selected aligned schema contracts.
Repository CalVer, individual schema SemVer, document generation markers, and Repository CalVer, individual schema SemVer, document generation markers, and
canonical schema IDs remain distinct. Record exact selected versions and source canonical schema IDs remain distinct. Record exact selected versions and source
revision; do not discover support from mutable `main` or live URL availability. revision; do not discover support from mutable `main` or live URL availability.