10 KiB
Adopt shared domain schemas across the pipeline
Purpose and current status
Operators maintain one set of domain inputs, primarily in YAML. Narratio prepares durable snapshots and necessary projections; consumers own task-specific interpretation. Adopt the shared contracts as complete cutovers without legacy readers, duplicate authored vocabulary, or a schema SDK dependency.
Reviewed on 2026-11-29 against released tags and their source documents:
| Component | Released baseline | Source commit | Status relative to Narratio |
|---|---|---|---|
| Shared schemas | 2026.11.1; glossary, RPG party, RPG campaign 0.2.0 |
f7e3cedeca11ed903311cdf29ca4d81fb1f216b7 |
Published; Narratio still uses its own roster and wrapperless glossary formats. |
| Audita | v4.3.0 |
6f97f31ccb1436c9b1e144182f6ad0b1fd9524be |
Shared runtime glossaries implemented upstream; Narratio currently targets v4.2. |
| Notarius | v0.10.0 |
752c9b44d2c0bb3bfb1e02a5d4379f7cc5b6261e |
Shared references and pipeline-aware preflight implemented upstream; Narratio still targets v0.8.1. |
Canonical release records: schemas, Audita, Notarius.
The schema repository foundation and both applications' upstream adoption are complete. The former schema-repository implementation plan records historical work, not the next sprint. This roadmap now owns Narratio's remaining coordinated cutover, together with the focused Audita and Notarius roadmaps. No application changes are implemented here.
Shared contracts and ownership
Pin exact 0.2.0 schema files, their semantics, and source distribution
2026.11.1 for offline use. Markers remain maximumdirect.glossary.v1,
maximumdirect.rpg.party.v1, and maximumdirect.rpg.campaign.v1.
The marker alone does not identify the exact schema version. Canonical IDs use
https://schemas.maximumdirect.net/<name>/v0.2.0/schema.json.
The upstream compatibility policy
owns CalVer, independent schema SemVer, and marker policy. Pre-1.0 changes may
retain .v1; schema major 2 introduces .v2.
ConfigKit v1.4.0 owns native acquisition/resolution through the handoff. Validate completed domain mappings after composition. Preserve supported resolved values, extensions, and omission/null distinctions; numeric binding and source limits follow upstream. Schema-resource JSON retains exact numeric constraints. No private input inspection, scalar repair, second parser, runtime schema downloads, or extra global extension restrictions are needed.
The glossary envelope has schema_version and collections. Task instructions
belong to consumer configuration. An instruction extension remains data.
The shared party contract allows optional players/classes and uses aliases.
Narratio must distinguish shared conformance from data needed by a particular
artifact-family operation; its current strict roster rules are not automatically
requirements of the shared contract.
Upstream capabilities now available
Audita accepts repeatable explicit --glossary-file inputs in the shared format.
It composes and validates the completed envelope before applying entry lists.
Supplied entry lists override same-named configured lists; unrelated collections
remain. Loading and collection selection are separate. Automatic glossary
companions were removed; inline application instructions remain supported.
See the focused adoption roadmap.
Notarius accepts shared party documents in party/accepted roster slots and
shared glossaries in glossary and spell_catalog. One shared file may serve
both glossary roles. General context defaults to available campaign/setting;
spells default to a required spells collection when the slot is bound.
Explicit collection selection and CLI path overrides follow native semantics.
A private spell overlay and ruleset provenance are no longer required.
Notarius also provides native pipeline-aware preflight with run selectors, transcript, and runtime reference bindings. The former required-reference gap and need for hand-maintained PromptKit profile lists are resolved upstream. Preflight remains online, potentially billable, input-specific, and separate from offline validation and ordinary execution. Details belong in the Notarius roadmap.
Required Narratio changes
Shared acquisition and preparation
Replace Narratio's competing party/glossary contracts with the pinned shared contracts. Keep operational campaign configuration distinct from shared campaign context; do not automatically introduce a second authored campaign file.
Retain the four logical glossary sources: party, campaign, setting, spells. Derive party vocabulary from the canonical roster; do not require duplicate authored party or spell lists. Preserve the choice of imported or inline campaign vocabulary through ConfigKit composition. Update the catalog's maintained vocabulary and synthetic local examples to shared envelopes rather than keeping a second format owner. Catalog adoption remains outstanding.
Retain whole shared documents for forwarding and derive separate task views for
artifact families and prompts. Update alias to aliases, shared markers, and
current field assumptions deliberately. Keep stable manifest-backed logical
sources and dependency evidence where their meaning is retained; new projections
need explicit identities and invalidation relationships.
Consumer bindings and readiness
Coordinate Audita adoption with shared preparation so the new executable never receives old wrapperless files. Its current repeated file interface can remain; the payload changes.
Coordinate the Notarius native cutover with shared references: remove receipt/index assumptions, old invocation/cache flags, and private spell overlay acquisition. Bind the shared roster and glossary data explicitly. Keep native collection selection and embedded spell recognition policy in Notarius rather than reconstructing them in Narratio.
Use the existing preflight service and lazy adapter composition. Automatic readiness still follows selected preparation and precedes processing; explicit session validation uses prepared inputs; planning remains subprocess-free. A synthetic transcript can support early provider/reference readiness, as with Audita, but cannot establish readiness of a future real transcript. Use an actual available execution transcript where appropriate and label the supplied input accurately. Do not add duplicate paid probes at another boundary without a demonstrated need.
Durable reuse and documentation
Update prepared records, reference snapshots, semantic evidence, artifact resolution, publish/restore, prompt inputs, and affected examples together. Obsolete evidence should follow normal staling/recomputation and transitive invalidation; do not fabricate old-format adapters or force unrelated stages to rerun merely because a library or executable version changed.
The workspace roadmap remains separately pending. Reuse canonical path owners and current layout unless that work is explicitly combined later. Do not make a workspace migration or downstream output-location change a new prerequisite for shared-schema adoption.
Proposed next scope and verification
Prepare one Narratio implementation plan covering shared acquisition/preparation, catalog/example migration, Audita v4.3.0, and Notarius v0.10.0. Consumers and shared preparation must reach a coherent final state in one sprint; intermediate commits need not provide mixed-version compatibility.
Reuse existing adapter, preparation, resume, and controlled subprocess tests. Verify one synthetic authored roster/vocabulary set reaches both applications without duplicate spell authoring, extensions survive forwarding, native task failures occur at the correct boundary, and forced/reused extraction and analysis continue to work. Exercise readiness with controlled local providers rather than requiring paid services. Verify the real upstream executables in opt-in boundary tests before claiming tested interoperability.
Remaining Narratio decisions
Shared file supplied to Notarius's two glossary roles
Recommendation: retain the four logical prepared sources and save one derived
combined shared envelope containing their collections, with a new explicit source
identity such as narratio.input.glossary.combined. Bind it to both native slots.
This supplies campaign and setting context and the same spells source with one
verified file, leaves collection selection downstream, and needs no duplicated
operator authoring. A new identity must not revive the retired monolithic source
as a compatibility alias.
Alternative: bind a saved campaign/setting envelope to glossary and the
existing prepared spells envelope to spell_catalog. This avoids exposing
irrelevant collections to each role but retains another prepared task projection
and its evidence. Binding only campaign to general context is smaller but does
not make setting vocabulary available under the native defaults.
Narratio-specific party and campaign task requirements
Recommendation: accept shared-conforming roster/context data, preserve extensions, and require extra player/class information only for configured tasks that need it. Keep operational campaign YAML as the authoring entry point and derive shared context where useful. This avoids duplicating data or imposing Narratio's historical roster restrictions on every consumer.
Alternative: document additional Narratio roster prerequisites at acquisition and require a separate shared campaign file. This can simplify some consumers' preconditions, but rejects otherwise valid shared inputs and adds operator maintenance; adopt only with a demonstrated task requirement.
Concrete projection names, task requirements, and reference bindings need to be settled before the implementation plan. No further upstream feature request is currently required for the reviewed party/glossary and readiness capabilities.