Request shared glossary schema adoption for Narratio

This commit is contained in:
2026-11-29 15:01:26 +00:00
parent 973b24e466
commit 4c2b11aa45

View File

@@ -0,0 +1,162 @@
# Feature request: adopt the shared glossary schema
## Requested outcome
Adopt the Maximum Direct shared glossary contract so operators can maintain one
vocabulary source for Audita, Notarius, Narratio, and relevant Scriptorium prompts.
Narratio should be able to supply its prepared glossary documents directly to
Audita without producing an Audita-specific format or embedding task instructions
in shared domain data.
This request describes external behavior and ownership. Audita owns its roadmap,
implementation plan, internal representation, and correction strategy. No package
structure, parsing library, or internal loading sequence is prescribed.
## Contract and adoption baseline
The initial [schemas distribution, 2026.11.0](https://forge.maximumdirect.net/eric/schemas/src/tag/2026.11.0)
is published. Recommend adopting `glossary@0.1.0`, identified in operator documents
by `maximumdirect.glossary.v1`.
Authoritative references:
- [Canonical schema](https://schemas.maximumdirect.net/glossary/v0.1.0/schema.json)
and [versioned semantics](https://schemas.maximumdirect.net/glossary/v0.1.0/semantics.md).
- [Published inventory](https://forge.maximumdirect.net/eric/schemas/src/tag/2026.11.0/catalog.json)
and [source archive](https://forge.maximumdirect.net/eric/schemas/archive/2026.11.0.tar.gz).
- [Validation profile](https://forge.maximumdirect.net/eric/schemas/src/tag/2026.11.0/docs/validation.md)
and [compatibility guidance](https://forge.maximumdirect.net/eric/schemas/src/tag/2026.11.0/docs/compatibility.md).
The contracts are also available locally in `../schemas`. Schema and semantic
document jointly define the contract. Repository releases use CalVer; individual
schemas use independent SemVer. The document marker identifies a contract
generation, not the exact schema or distribution version. Canonical hosting serves
`main`; published tags and their inventories establish release status.
Pin the adopted schema version and source distribution. Ordinary validation should
work offline, without resolving schemas from the network or depending on a moving
latest inventory. The schema repository's internal Go harness is a development
tool, not a consumer SDK. This request concerns glossary adoption only; Audita need
not adopt the RPG party or campaign schemas to perform this work.
## External input behavior
The current [runtime glossary input](../integrations/transcript-glossary-files.md)
is a wrapperless mapping keyed by collection name. Recommend replacing that
external format with the shared `schema_version` and `collections` envelope.
Prefer retaining the established repeated `--glossary-file` interface and its
separate collection-selection controls; exact interface changes belong in Audita's
roadmap and migration guidance.
Accept YAML-authored shared documents and equivalent JSON. Operators should not
need to remove the envelope, rename shared fields, or maintain a second vocabulary
file to use Audita. Composition through native ConfigKit imports and inheritance
remains useful. Validate the completed shared document at that boundary; authoring
fragments need not independently satisfy the complete-document schema.
Document how supplied documents interact with configured vocabulary, repeated
files, and collection selections. Preserve ConfigKit ownership of composition,
precedence, inheritance, and overrides. Do not add a parallel merge or collision
policy for Narratio. Configuration inspection and other commands accepting runtime
glossary inputs should expose behavior consistent with processing, using their
native interfaces.
Narratio intends to supply four named collections: `party`, `campaign`, `setting`,
and `spells`. It derives the party vocabulary from its canonical roster and saves
all prepared glossaries as shared domain inputs. These are domain conventions,
not an exhaustive schema enumeration or mandatory collection set for Audita.
Audita should remain equally useful for weather, sports, and other domains.
Allow callers to select the collections relevant to each processing task without
requiring unrelated collections. Loading vocabulary should not implicitly select
all of it. Audita retains ownership of correction behavior, protected-term use,
matching, and how domain information is presented to its prompts.
## Instructions and extension fields
The shared contract contains domain information, not consumer task instructions.
Audita's correction instructions must come from its application configuration.
Provide a documented way to associate those instructions with selected vocabulary
without requiring the vocabulary itself to be duplicated in configuration.
Unlike the current runtime format, a collection or entry extension named
`instruction` must not become executable guidance merely because it appears in a
shared file. Shared input data must not replace or clear configured instructions
through that field. Ordinary native configuration controls remain responsible
for instruction selection and overrides.
Honor the shared contract's required fields and optional/null/empty distinctions,
including nullable aliases and plural forms. Allow extensions at the envelope,
collection, provenance, and entry levels as specified by the contract. Acceptance
of an extension does not imply that Audita understands its meaning. Preserve
extensions when forwarding a shared document; task-specific prompt views may
omit irrelevant information.
Collection provenance describes source information. It does not supply processing
instructions, establish transcript evidence, or require Audita to interpret
RPG-specific metadata. A spell glossary may contain information useful only to
Notarius, and Audita should not reject it solely for that reason.
## Validation and readiness
Apply the adopted structural and semantic contract to completed shared inputs,
including exact entry-ID uniqueness within each collection. Shared schema validity
is separate from readiness for an Audita task. For example, the schema permits
empty collections, while Audita's selected glossary-correction task may require
at least one selected entry. Keep that requirement explicit as Audita policy rather
than tightening the shared schema.
Use the same glossary acceptance, composition, and selection semantics in
[preflight and processing](../cli.md#preflight). Preflight should catch malformed
shared inputs, unsupported contract generations, missing selected collections,
and determinable task-input failures before expensive correction begins. Execution
still validates its real inputs. Preserve native reporting and error outcomes,
with actionable identification of the affected file, collection, or field where
practical; no new error taxonomy or report protocol is requested.
Narratio runs early preflight with its real prepared glossary files and a known-good
synthetic transcript, using the intended configuration and provider environment.
Continue accepting that through the ordinary preflight interface. No fixture mode
is requested, and successful inspection of the supplied transcript does not
establish correctness of a future transcript. Preserve Audita's existing provider
readiness responsibilities without making schema adoption a separate redesign of
preflight.
## Decisions for Audita's roadmap
- How the shared envelope enters the public glossary-file interface and how native
composition works across runtime files and application configuration.
- How configured correction instructions are associated with shared collections,
while instruction-named data extensions remain inert.
- How root/stage glossary and protected-term selections apply to shared inputs,
and which task-specific requirements supplement schema conformance.
- The pinned schema version, exact public input behavior, release scope, and
migration guidance for existing wrapperless files and embedded instructions.
Recommend a direct cutover with release documentation, without legacy conversion,
compatibility shims, or duplicate operator-maintained vocabulary. Audita should
identify genuine shared-contract gaps explicitly rather than silently defining
another competing glossary format. No transcript input or corrected-output schema
change is requested solely for this adoption.
## Observable acceptance
The resulting roadmap should establish that:
1. A shared glossary prepared by Narratio is accepted directly, in YAML or equivalent
JSON, and the selected collections reach the intended correction/protection tasks.
2. One authored spell glossary can support both Audita and Notarius after each
consumer adopts it, without application-specific vocabulary copies.
3. Generic collections work without D&D-specific names or metadata; unrelated
collections need not be present or selected.
4. Permitted extensions, source provenance, and nullable optional fields are accepted;
malformed known fields and duplicate IDs in completed collections are rejected.
5. Configured instructions guide processing, while an `instruction` field in shared
data neither supplies guidance nor overrides those settings.
6. Native composition and preflight expose the same effective glossary inputs and
task requirements used by processing, with useful failure diagnostics.
7. Ordinary glossary validation works offline, and maintained examples and migration
guidance identify the supported contract and external interface.
Audita owns the roadmap, verification approach, and implementation plan. Narratio
will adopt the resulting released interface in its subsequent work.