Request shared schema adoption for Narratio inputs
This commit is contained in:
182
docs/roadmap/narratio-shared-schemas-feature-request.md
Normal file
182
docs/roadmap/narratio-shared-schemas-feature-request.md
Normal file
@@ -0,0 +1,182 @@
|
|||||||
|
# Feature request: adopt shared domain schemas for Narratio inputs
|
||||||
|
|
||||||
|
## Requested outcome
|
||||||
|
|
||||||
|
Adopt the Maximum Direct shared domain contracts so operators can author one set
|
||||||
|
of inputs for Narratio, Notarius, Audita, and relevant Scriptorium prompts.
|
||||||
|
In particular, one authored spell glossary should supply both transcript correction
|
||||||
|
and Notarius spell recognition without a second operator-maintained spell overlay.
|
||||||
|
|
||||||
|
This is a consumer feature request describing desired external behavior and
|
||||||
|
ownership. Notarius should prepare its own roadmap and implementation plan. It
|
||||||
|
does not prescribe packages, parsing libraries, internal projections, or extraction
|
||||||
|
strategy. The existing [Narratio preflight request](narratio-feature-request.md)
|
||||||
|
remains separate; this request extends the inputs checked by that native interface.
|
||||||
|
|
||||||
|
## Shared contracts and distribution
|
||||||
|
|
||||||
|
The independent [schemas repository](https://forge.maximumdirect.net/eric/schemas)
|
||||||
|
is available locally at `../schemas`. Publication of the initial CalVer distribution
|
||||||
|
`2026.11.0` is in progress at the time of this request. Confirm the published tag
|
||||||
|
and its inventory before selecting the adoption baseline; this document does not
|
||||||
|
assert publication has completed.
|
||||||
|
|
||||||
|
The proposed baseline contains these independently versioned contracts:
|
||||||
|
|
||||||
|
| Schema | Version | Document identifier | Authoritative contract |
|
||||||
|
| --- | --- | --- | --- |
|
||||||
|
| General glossary | `0.1.0` | `maximumdirect.glossary.v1` | [Schema](https://schemas.maximumdirect.net/glossary/v0.1.0/schema.json), [semantics](https://schemas.maximumdirect.net/glossary/v0.1.0/semantics.md) |
|
||||||
|
| RPG party | `0.1.0` | `maximumdirect.rpg.party.v1` | [Schema](https://schemas.maximumdirect.net/rpg/party/v0.1.0/schema.json), [semantics](https://schemas.maximumdirect.net/rpg/party/v0.1.0/semantics.md) |
|
||||||
|
| RPG campaign | `0.1.0` | `maximumdirect.rpg.campaign.v1` | [Schema](https://schemas.maximumdirect.net/rpg/campaign/v0.1.0/schema.json), [semantics](https://schemas.maximumdirect.net/rpg/campaign/v0.1.0/semantics.md) |
|
||||||
|
|
||||||
|
Repository releases use CalVer; each schema uses independent SemVer. A document
|
||||||
|
identifier denotes a contract generation, not an exact schema version or repository
|
||||||
|
date. Canonical hosting serves `main`, so URL availability alone does not establish
|
||||||
|
release status. Select exact versions from a published tag's `catalog.json` and
|
||||||
|
record the source distribution. Unrelated schema updates need no Notarius upgrade.
|
||||||
|
|
||||||
|
Contracts include their semantic documentation, not just JSON Schema. Pin the
|
||||||
|
adopted definitions and make ordinary validation work offline. No import of the
|
||||||
|
schema repository's internal Go harness, runtime network resolution, or dependency
|
||||||
|
on a mutable latest inventory is requested. The repository publishes its
|
||||||
|
[validation profile](https://forge.maximumdirect.net/eric/schemas/src/branch/main/docs/validation.md)
|
||||||
|
and [compatibility guidance](https://forge.maximumdirect.net/eric/schemas/src/branch/main/docs/compatibility.md);
|
||||||
|
use the selected release's copies when establishing supported behavior.
|
||||||
|
|
||||||
|
## Operator workflow and caller boundary
|
||||||
|
|
||||||
|
Operators maintain a roster, shared campaign context where useful, and glossary
|
||||||
|
vocabulary. Narratio prepares durable shared inputs, including four glossary
|
||||||
|
collections: `party`, `campaign`, `setting`, and `spells`. It derives party
|
||||||
|
vocabulary from the roster; operators need not maintain both independently.
|
||||||
|
These collection names are Narratio's domain convention, not an enumeration in
|
||||||
|
the general glossary schema.
|
||||||
|
|
||||||
|
Notarius should consume whichever collections its selected tasks need. Do not
|
||||||
|
require all four merely for uniformity. The roster and a derived party glossary
|
||||||
|
remain different views: the roster also carries player relationships and optional
|
||||||
|
character attributes. Shared RPG campaign context is distinct from Narratio's
|
||||||
|
operational `campaign.yml` configuration.
|
||||||
|
|
||||||
|
Prefer accepting authored YAML as well as equivalent JSON. If a Notarius input
|
||||||
|
requires JSON, Narratio can serialize the same shared document to JSON without
|
||||||
|
changing its contract. Narratio can save selected or combined glossary views when
|
||||||
|
needed, but should not reconstruct Notarius-specific spell records or reproduce
|
||||||
|
its recognition policy. Task-specific interpretation belongs to Notarius.
|
||||||
|
|
||||||
|
Prefer the established [reference binding interface](../config.md#references-and-ordered-handoffs)
|
||||||
|
where it fits. Document which selectors accept which documents and how callers
|
||||||
|
select collections when a file contains several. Exact slot names, selection
|
||||||
|
syntax, and pipeline exposure are for Notarius to design; this request introduces
|
||||||
|
no mandatory new CLI spelling. Preflight and execution must accept the same
|
||||||
|
bindings and interpret them consistently.
|
||||||
|
|
||||||
|
## Glossary and spell recognition
|
||||||
|
|
||||||
|
The shared glossary uses a `schema_version` and `collections` envelope. Entries
|
||||||
|
provide stable collection-scoped IDs, canonical names, categories, optional
|
||||||
|
aliases and descriptions, and extensible domain information. The authoritative
|
||||||
|
contract defines omission, null, and empty values. Notarius should honor those
|
||||||
|
shapes rather than require the current spell overlay's different representation.
|
||||||
|
|
||||||
|
The existing [spell-catalog overlay](../integrations/dnd-spell-catalog-overlays.md)
|
||||||
|
requires a separate schema marker and catalog structure, rejects unknown fields,
|
||||||
|
and couples input to catalog/ruleset requirements. Replace that operator-facing
|
||||||
|
format with shared glossary consumption. The operator should be able to supply
|
||||||
|
the same spell document to Audita and Notarius, with serialization conversion
|
||||||
|
as the only format change if necessary.
|
||||||
|
|
||||||
|
Notarius continues to own its embedded vocabulary, normalization, canonical-name
|
||||||
|
selection, source precedence, collision handling, and extraction strategy. Document
|
||||||
|
how the shared input interacts with the embedded catalog. Shared names, aliases,
|
||||||
|
and provenance are reference context; they are not transcript evidence, and
|
||||||
|
schema adoption must not turn reference-only information into observed events.
|
||||||
|
|
||||||
|
Collection provenance is optional source metadata. In the current glossary
|
||||||
|
contract, `ruleset` is not a standard provenance field. If recognition needs game
|
||||||
|
system/ruleset selection, Notarius should define whether that comes from its
|
||||||
|
configuration, supported domain extensions, or another explicit domain input.
|
||||||
|
Do not silently infer it from a Narratio catalog selector or require another
|
||||||
|
copy of the spell vocabulary. Clearly distinguish task-specific requirements
|
||||||
|
from general shared-schema validity.
|
||||||
|
|
||||||
|
## Party and campaign use
|
||||||
|
|
||||||
|
Review the maintained D&D pipeline's party, players, and campaign-context inputs
|
||||||
|
against the shared RPG contracts. Where structured roster information is useful,
|
||||||
|
consume the shared party document, including its character IDs, plural `aliases`,
|
||||||
|
player relationships, and optional attributes. Avoid requiring operators to author
|
||||||
|
a second roster or player list containing the same facts.
|
||||||
|
|
||||||
|
The shared campaign document is available for tasks needing its context. Adoption
|
||||||
|
should not require a new campaign reference slot or a separate campaign file
|
||||||
|
without a demonstrated use. Existing text references need no new typed interface
|
||||||
|
solely because a schema now exists. Notarius should identify which contracts it
|
||||||
|
interprets structurally and which inputs remain ordinary text context.
|
||||||
|
|
||||||
|
## Validation, readiness, and extensions
|
||||||
|
|
||||||
|
For structured shared inputs, enforce the adopted structural and semantic
|
||||||
|
contracts, including glossary entry-ID uniqueness within each collection.
|
||||||
|
Accept permitted extensions without treating them as supported features merely
|
||||||
|
because they are present. Preserve them when forwarding a shared document;
|
||||||
|
task-specific views may omit irrelevant fields.
|
||||||
|
|
||||||
|
Task instructions remain in consumer configuration. An extension named
|
||||||
|
`instruction` must not acquire instruction semantics. ConfigKit retains ownership
|
||||||
|
of configuration composition; the shared schemas describe completed domain
|
||||||
|
documents, not another import or merge system.
|
||||||
|
|
||||||
|
The existing [native preflight](../consumers/subprocess.md#prepare-and-run) should
|
||||||
|
check the supplied references with the same input and task requirements as run,
|
||||||
|
catching malformed documents, incompatible contracts, unavailable selected
|
||||||
|
collections, and determinable recognition conflicts before expensive extraction.
|
||||||
|
Execution still checks its real inputs. Narratio's early preflight may use a
|
||||||
|
synthetic transcript with the actual prepared references; that does not establish
|
||||||
|
readiness of a future transcript.
|
||||||
|
|
||||||
|
Use native outcomes and actionable diagnostics identifying the relevant reference,
|
||||||
|
collection, or field where practical. No new error taxonomy or report protocol is
|
||||||
|
requested. A schema-valid input may still be unsuitable for a selected task;
|
||||||
|
explain that task requirement without redefining the shared contract.
|
||||||
|
|
||||||
|
## Decisions for Notarius's roadmap
|
||||||
|
|
||||||
|
- Which tasks use which collections, and how callers bind files and select
|
||||||
|
collections through the public interface.
|
||||||
|
- How shared spell vocabulary interacts with embedded vocabulary, aliases,
|
||||||
|
ambiguity, and source precedence; which provenance or ruleset information is
|
||||||
|
required, if any, and how omission is handled.
|
||||||
|
- Which party/player/context uses benefit from shared structured inputs, and
|
||||||
|
whether the campaign contract has a concrete role in this adoption.
|
||||||
|
- Accepted serializations, pinned schema versions, and documented task requirements
|
||||||
|
beyond shared conformance.
|
||||||
|
- The release containing the cutover and the operator migration guidance.
|
||||||
|
|
||||||
|
Recommend a direct cutover with migration documentation, without legacy-format
|
||||||
|
conversions, compatibility shims, or a requirement to maintain two input formats.
|
||||||
|
No change to Notarius's output artifact contracts is requested solely to adopt
|
||||||
|
these input schemas. Consumer-side schema gaps should be raised explicitly rather
|
||||||
|
than silently creating another competing format.
|
||||||
|
|
||||||
|
## Observable acceptance
|
||||||
|
|
||||||
|
The resulting roadmap should establish that:
|
||||||
|
|
||||||
|
1. One synthetic spell glossary, including canonical names and aliases, can serve
|
||||||
|
Audita and Notarius without separately authored spell-overlay data. This is a
|
||||||
|
target interoperability outcome; neither application is declared compatible
|
||||||
|
merely by publication of the schemas.
|
||||||
|
2. Selected collections are used predictably; unrelated collections need not be
|
||||||
|
supplied, and callers can determine which input each task consumes.
|
||||||
|
3. Party-derived context can be obtained without a duplicate operator-maintained
|
||||||
|
roster/player list wherever that context is required.
|
||||||
|
4. Supported extensions and null/omitted aliases follow the shared contract;
|
||||||
|
additional Notarius task requirements and conflicts have clear diagnostics.
|
||||||
|
5. Preflight rejects determinable invalid reference inputs consistently with run,
|
||||||
|
and valid shared references reach the intended extraction tasks.
|
||||||
|
6. Ordinary input validation works offline, and documentation names exact supported
|
||||||
|
schema versions, bindings, and migration steps.
|
||||||
|
|
||||||
|
Notarius owns its roadmap, validation approach, and implementation plan. Narratio
|
||||||
|
will adopt the resulting released public interfaces in its subsequent work.
|
||||||
Reference in New Issue
Block a user