274 lines
16 KiB
Markdown
274 lines
16 KiB
Markdown
# 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](https://forge.maximumdirect.net/eric/schemas/src/tag/2026.11.1/docs/releases/2026.11.1.md),
|
|
[Audita](https://forge.maximumdirect.net/eric/audita/src/tag/v4.3.0/docs/releases/v4.3.0.md),
|
|
[Notarius](https://forge.maximumdirect.net/eric/notarius/src/tag/v0.10.0/docs/releases/v0.10.0.md).
|
|
|
|
The schema repository foundation and both applications' upstream adoption are
|
|
complete. The former [schema-repository implementation plan](schemas-implementation.md)
|
|
records historical work, not the next sprint. This roadmap now owns Narratio's
|
|
remaining coordinated cutover, together with the focused [Audita](audita.md) and
|
|
[Notarius](notarius.md) 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](https://forge.maximumdirect.net/eric/schemas/src/tag/2026.11.1/docs/compatibility.md)
|
|
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.
|
|
Narratio applies its additional roster requirements after shared validation.
|
|
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 retains its documented additional roster requirements across the
|
|
application, including required player/class information. These are Narratio's
|
|
consumer requirements; they do not change the upstream shared contract.
|
|
|
|
## Agreed operator contract
|
|
|
|
### Three campaign-owned documents
|
|
|
|
Given a configured Narratio installation and an installed shared reference
|
|
catalog, an operator onboards a campaign with three primary authored documents:
|
|
|
|
| Document | Responsibility |
|
|
| --- | --- |
|
|
| `party.yml` | Canonical character roster: stable IDs, characters, players, classes, and optional aliases, using shared RPG party `0.2.0` plus Narratio's roster requirements. |
|
|
| `campaign.yml` | Shared RPG campaign `0.2.0` identity and context, including campaign name and setting/system selections, the party reference, and a `narratio` extension for operational settings, optional campaign glossary, and optional autocorrection rules. |
|
|
| `speakers.yml` | Explicit mappings from recording filenames or speaker identifiers to transcript speaker labels, retaining the supported speaker-mapping format. |
|
|
|
|
The campaign identifies its roster and speaker mappings; the standard bundle
|
|
uses the adjacent `party.yml` and `speakers.yml`. Speaker labels can represent
|
|
players, a GM, or other recorded participants. Recording identity has a separate
|
|
role from fictional character identity.
|
|
|
|
Adapt the existing authored `campaign.yml` to the shared envelope, with
|
|
Narratio-owned operational fields grouped under `narratio`. The shared `id`
|
|
becomes the campaign identity used by Narratio. Party relationships use
|
|
`references.party`. Replace the old operational document shape through the
|
|
coordinated cutover; no additional authored campaign-context file is required.
|
|
The shared schema owns its fields; Narratio defines its extension and consumer
|
|
requirements.
|
|
|
|
Operators can include campaign-specific vocabulary and autocorrection rules in
|
|
the campaign document. Omitted autocorrection rules mean no campaign-specific
|
|
replacements. Preparation materializes the downstream autocorrection input from
|
|
the completed configuration. A standalone authored `autocorrect.yml` or campaign
|
|
glossary file is not required for the standard bundle. Explicit replacement
|
|
rules remain distinct from glossary entries.
|
|
|
|
Keep ordinary session initialization usable with installation-level/default
|
|
templating. Per-campaign template customization remains an option. Native
|
|
ConfigKit imports and optional authoring splits remain available; three primary
|
|
documents define the onboarding path, not a prohibition on additional files.
|
|
|
|
### Two selected shared vocabulary documents
|
|
|
|
The campaign selects a setting glossary and a system spell catalog from an
|
|
installed shared repository. For example, a Forgotten Realms setting selection
|
|
and a D&D 5e 2014 SRD system selection identify the corresponding shared
|
|
documents. The spell catalog uses the shared glossary envelope and `spells`
|
|
collection rather than Notarius's retired private overlay.
|
|
|
|
Use stable setting/system keys in the campaign document to select entries in
|
|
the installation's reference catalog. Its mapping owns source paths. Document
|
|
Narratio's interpretation of those keys: the generic shared campaign schema
|
|
does not itself prescribe a catalog lookup. Operators select shared vocabulary
|
|
rather than authoring campaign-local copies. Optional campaign vocabulary adds
|
|
local terms through the established composition behavior. General shared
|
|
glossary references express relationships; their ordering does not implicitly
|
|
replace Narratio's documented composition precedence.
|
|
|
|
### Responsibility and documentation boundaries
|
|
|
|
- Installation setup supplies pipeline configuration, services, credentials,
|
|
and the selected shared reference catalog.
|
|
- Campaign setup supplies the three documents and selects the two shared
|
|
vocabulary sources.
|
|
- Session execution supplies session identification, audio, and applicable
|
|
session-specific metadata or overrides.
|
|
|
|
Publish one operator-facing contract with each field's required/optional status,
|
|
omission/default behavior, selection rules, and reference-path resolution when
|
|
implementation lands. Keep the onboarding checklist and worked workflow in the
|
|
operator guide, field definitions in the configuration reference, and reusable
|
|
domain formats in their integration contracts. Link upstream for shared schema
|
|
and ConfigKit semantics. A complete maintained example must demonstrate the
|
|
standard three-file campaign bundle without additional campaign-owned files.
|
|
|
|
## Agreed roster validation
|
|
|
|
Retain Narratio-wide domain requirements during the shared-format cutover:
|
|
|
|
- A nonempty roster with stable IDs satisfying Narratio's artifact-key rules.
|
|
- Required player and character names, and a nonempty class list for every
|
|
character; class names are required and supplied levels remain positive.
|
|
- Existing trimmed/nonempty display-name checks, character-name/alias ambiguity
|
|
checks, and duplicate-class checks. Player names may repeat.
|
|
|
|
Apply these requirements consistently when Narratio resolves the roster, rather
|
|
than conditioning them on selected artifacts. Adopt the shared marker and
|
|
`aliases` spelling and preserve supported shared extensions. Document the
|
|
Narratio-specific profile separately from upstream conformance. Update the
|
|
architecture/configuration documentation to distinguish Narratio-owned typed
|
|
configuration from shared domain documents and their supported extensions.
|
|
|
|
## Agreed combined glossary
|
|
|
|
Retain the four logical prepared sources: party, campaign, setting, and spells.
|
|
Save one additional derived shared envelope containing all four collections,
|
|
including empty collections, with the explicit source identity
|
|
`narratio.input.glossary.combined`. Bind that verified prepared file to both
|
|
Notarius's `glossary` and `spell_catalog` roles. Each role retains native
|
|
collection selection. Audita and other consumers can continue using the
|
|
individual sources where appropriate.
|
|
|
|
The combined file is generated by Narratio and requires no additional operator
|
|
authoring. Record its dependencies on the four sources and use the existing
|
|
whole-file content evidence for reference snapshots and reuse. Changing a
|
|
collection can invalidate extraction even when a Notarius role does not select
|
|
it; collection-aware cache evidence is not required for this feature. The new
|
|
identity does not restore the retired `narratio.input.glossary` alias. The
|
|
separate private spell-overlay source is retired as part of the same cutover.
|
|
|
|
## 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](audita.md).
|
|
|
|
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](notarius.md).
|
|
|
|
## Required Narratio changes
|
|
|
|
### Shared acquisition and preparation
|
|
|
|
Adopt the pinned party, glossary, and campaign contracts together with the
|
|
agreed Narratio roster profile and three-file operator contract. Refactor the
|
|
existing campaign acquisition into one shared-conforming authored document with
|
|
its explicit Narratio extension. Update identity selection, configuration
|
|
inspection, resource resolution, campaign-to-session defaults, and session
|
|
initialization for that shape through the native ConfigKit lifecycle.
|
|
|
|
Replace mandatory standalone autocorrection authoring with the optional campaign
|
|
section and its prepared downstream projection. Retain the dedicated speaker
|
|
mapping document and existing Seriatim behavior. Update prepared campaign and
|
|
autocorrection records, their semantic evidence, and session override handling
|
|
together. Define field paths and omission/override behavior in the subsequent
|
|
implementation plan and operator contract without adding new prerequisites.
|
|
|
|
Derive party vocabulary from the canonical roster and prepare the four logical
|
|
glossary sources and the combined envelope described above. Preserve optional
|
|
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](audita.md) 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](notarius.md) 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](workspace.md) 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 the three-file campaign
|
|
contract, Narratio-wide roster validation, shared acquisition/preparation, the
|
|
combined glossary, 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 a synthetic three-file campaign bundle with selected shared setting and
|
|
spell documents reaches both applications without duplicate vocabulary authoring
|
|
or a separate autocorrection/template file. Cover omitted and supplied campaign
|
|
glossary/autocorrection sections, speaker mapping, catalog selection, campaign
|
|
identity, shared-format roster rejection under Narratio's additional requirements,
|
|
and combined-file bindings and content invalidation. Verify 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.
|
|
|
|
The operator-contract, combined-glossary, and roster-policy choices are settled.
|
|
The next implementation plan defines concrete extension fields and migration
|
|
steps within those decisions. No further upstream feature request is currently
|
|
required for the reviewed party/glossary and readiness capabilities.
|