Define the campaign operator contract and shared input decisions

This commit is contained in:
2026-11-29 19:54:10 +00:00
parent 8dc1724846
commit 2043cdf25f
3 changed files with 182 additions and 70 deletions

View File

@@ -41,15 +41,123 @@ ConfigKit v1.4.0 owns native acquisition/resolution through the handoff. Validat
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 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.
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
@@ -78,16 +186,26 @@ from offline validation and ordinary execution. Details belong in the
### 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.
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.
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.
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
@@ -131,50 +249,25 @@ 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.
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 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.
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.
## 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.
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.