38 KiB
Configuration Reference
Purpose
Narratio loads pipeline, campaign, and session YAML, with a canonical party roster selected explicitly or through the campaign:
pipeline.yml: pipeline/runtime settingscampaign.yml: campaign identity and stable input defaultssession.yml: session identity, metadata, and audio source selection
Discovery and Selection
pipeline.yml
An explicit --config selects exactly that file, including a custom filename.
Otherwise ConfigKit searches these locations in order:
- The working directory, for
narratio.ymlthennarratio.yaml. - The Go user-config directory's
narratio/subdirectory, for those named files followed byconfig.yml,config.yaml,main.yml, andmain.yaml. - The Go user-config directory itself, for the named files.
/usr/local/etc/narratio/and then/etc/narratio/, each for named files followed by the generic filenames above./etc/, for the named files.
On Linux, the user-config directory normally follows XDG_CONFIG_HOME, or
~/.config when it is unset. A selected invalid file fails loading; discovery
does not continue to another candidate.
campaign.yml
Selection rules:
- if
--campaign-fileis set, use that path; - else if
--campaign <id>is set, use{pipeline.campaigns.root}/{id}/campaign.yml; - else use
{pipeline.campaigns.root}/{pipeline.campaigns.default_campaign_id}/campaign.yml.
session.yml
An explicit --session-file selects exactly that file. Otherwise local search
order is:
/usr/local/etc/narratio/session.yml/etc/narratio/session.yml
If no local session exists and a session_id is known, Narratio loads the
session from configured object storage. Downloaded session bytes are contextless
snapshots, with remote object
provenance retained independently of locally materialized checksums.
Remote loading prefers an authored session-root session.yml, including updates
from session init --remote --force. When that object is absent, loading falls
back to the current commit's standalone prepared session. Published snapshots
remain immutable; restore validates the pointer-selected committed state.
Native inspection and domain derivation
Native configuration inspection exposes four actual typed ConfigKit results: app (the default pipeline scope), campaign, session, and party. Defaults, normalization, and configuration-owned validation finish within their supported load lifecycle. Session configuration includes applicable campaign defaults before handoff. Completed values remain unchanged by planning or execution.
App inspection retains artifact-family declarations and needs no campaign or
party solely for expansion. Narratio derives concrete artifact catalogs, players,
resolved dependencies, and publication actions separately using the selected
canonical roster. artifacts list inspects those domain definitions;
session plan and session artifacts expose decisions and availability.
Native sources/explanations retain actual imports, origins, history, and recorded resolution evidence. Comparisons load each side independently using its own normal defaults. App-only inspection overrides apply during that invocation's load. Safe views hide resolved credentials. Persisted preparation projections retain reference names and do not replace the native inspection result. See the CLI reference for scopes, selectors, path operations, overrides, comparison modes, and report shapes.
Party selection
--party-file selects an exact canonical roster instead of the campaign-default
file. Explicit relative paths use the invocation directory; invalid or missing
explicit input fails without fallback. The campaign's configured party field
remains unchanged. Inspection, players, family derivation, planning, and execution
use the same selected roster. Format and validation belong in the
party integration contract.
Migrating to the maintained bundle
Use the production/testing bundle
as the complete copyable migration reference. Keep production settings in the
base, split them into explicit additive imports, and place testing differences
in the fixed overlays/testing.yml overlay. Put ordinary artifacts and families
in the recommended one-definition files shown by that bundle. Convert campaign
rosters to canonical party input, then express character
work as families. Inspect the result with config validate, config show,
config sources, and artifacts list; use
config diff --against-overlay testing to
review the overlay before running a session. Unversioned party documents are
rejected.
Identity segments
Campaign IDs (campaign_id and default_campaign_id), session IDs, previous
session IDs, and Narratio run IDs are opaque portable segments. They must use
only ASCII letters, digits, ., _, and -; empty values, ./.., path
separators, drive forms, whitespace, control characters, and non-ASCII text are
rejected. Narratio does not trim or rewrite these values. Existing manifests or
remote state with an unsafe legacy identity must be migrated before use.
Validation and Merge Rules
- Local pipeline, campaign, session, and party documents may declare native imports and sibling inheritance. Only the pipeline selects an overlay.
- An omitted overlay, empty overlay option, and exact
defaultselect the base; another name selectsoverlays/<name>.ymlrelative to the pipeline root. - Configured timeout and retry-delay durations must be positive. An omitted artifact timeout continues to inherit its configured Scriptorium timeout.
- Session files must be concrete; unresolved
{{ ... }}placeholders fail load. - Pipeline defaults are applied before validation.
- Defaults apply only to absent fields. Explicit empty strings, zero values,
false, andnullretain ConfigKit's typed meaning and are then checked by Narratio domain validation; they are not silently replaced by defaults. Explicit null optional stage sections stay absent, while required sections fail validation. - Campaign and session identities must agree.
- The campaign supplies required speakers, autocorrect, and canonical party files. Sessions may independently override speakers and autocorrect. Optional glossary selections and the separate spell overlay inherit as described under glossary inputs.
- The selected party is parsed when domain context or party inspection needs
it. It must be a versioned canonical party. The
campaign supplies its default file; an explicit CLI selection replaces it
for the invocation and supplies the derived players input.
players_fileand sessionparty_fileare unsupported configuration keys. - Exactly one audio mode must be configured in session input:
- local (
audio_diroraudio_files), or - S3 (
audio_s3.prefix).
- local (
Pipeline imports and overlays
Narratio uses ConfigKit v1.4.0 for imports, composition, inheritance, and pipeline overlays. The ConfigKit configuration contract owns their syntax and semantics; the maintained bundle shows a complete Narratio configuration. Only the pipeline selects an overlay; Narratio validates the resulting effective domain entries.
Relative host-resource paths, including integration configuration files, workspace/campaign roots, campaign template and stable inputs, and session stable inputs and local audio references, resolve from the effective value's defining source. Inherited values follow their origin. When no distinct usable source context exists, the main source is the fallback; if it too is contextless, the invocation directory is used. Explicit CLI-relative file paths use the invocation directory. Artifact outputs, publish destinations, logical IDs, and binary names retain their domain meanings.
The effective digest excludes source layout, overlay identity, and secret values; credential reference names and resolved resource paths participate. Prepared campaign, session, and party documents contain effective standalone values rather than authored import directives. A prepared session snapshot carries the resolved values used for that session; retain authored files for future edits.
Upgrade from earlier configuration
- Rename source-root
configkit:controls toconfig:. Nestedconfigdata and the Goconfigkitpackage and secret tags have different meanings. - Rename or move pipeline files to the discovery names above, or retain a custom
filename such as
pipeline.ymland pass it with--config. - Remove
--secrets-dirfrom invocations and configure the pipeline main file as described in Secrets Handling, or provision environment values. - Review relative resource references moved into fragments: their defining
source now supplies the base. Mark necessary imports
required: true. - Review lists and use
config.sequenceswhere append or whole-record upsert is intended. Verify the effective result with the inspection commands. - Prepared documents contain effective values; retain authored roots and their companions separately for editing. Separately installed downstream tools own their own configuration migrations.
These control-key changes require a major version for the eventual Narratio release. This migration does not itself publish a release.
Minimal Working Configuration
pipeline.yml
campaigns:
root: /usr/local/share/narratio/campaigns
default_campaign_id: sample-campaign
whisperx:
transcribe_url: https://transcription.example.com/transcribe
campaign.yml
schema_version: maximumdirect.rpg.campaign.v1
id: sample-campaign
references: {party: ./party.yml}
narratio:
inputs:
speakers_file: ./speakers.yml
session.yml (local audio)
session_id: 2026-05-03
inputs:
audio_dir: ./audio
Secrets Handling
Credential fields contain environment-variable names as ConfigKit typed secret references. Each surviving reference must resolve to a nonempty value when the pipeline loads, including for disabled integrations or stages outside the run. Do not put raw secret values in YAML.
A pipeline main file can select configured bootstrap before its typed load:
config:
secrets_dir: secrets
Narratio passes the selected pipeline source to ConfigKit's configured bootstrap,
then loads the returned prepared source. Without a directory declaration,
credentials may be supplied in the process environment. Narratio no longer
accepts --secrets-dir or probes a conventional directory automatically. See
ConfigKit's configured-startup contract
for path rules, environment precedence and overwrite controls.
Each pipeline acquisition prepares its own source; an already acquired result is reused. Comparisons use ordinary acquisition on each reached side and share the process environment. Direct local campaign, session, and party inspection does not load a pipeline solely for bootstrap. Bootstrap reports and diagnostics are safe, final stderr output, separate from command reports. Protect provisioned secret directories and files from access by other users.
Publish Configuration Summary
Publish rules live under pipeline.publish.
publish:
enabled: true
upload_run: true
outputs:
- source: narratio.transcript.final_trimmed
dest: transcripts/final.trimmed.json
required: true
- source: narratio.transcript.final_markdown
dest: transcripts/final.md
required: true
- source: narratio.transcript.final_trimmed_markdown
dest: transcripts/final.trimmed.md
required: true
- source: narratio.artifact.session_recap
dest: artifacts/session_recap.md
required: true
Rules:
outputs[].sourceis required.outputs[].destmay be omitted when derivable from source.- extraction sources require an explicit
outputs[].destand publish only when a rule names that source; the Notarius bundle is not publish sources. outputs[].requireddefaults totrue.- publish locks are independent remote session objects managed with
narratio session locks; they are not pipeline configuration fields.
Full Schema
Pipeline
| Field | Type | Required | Default / Rule |
|---|---|---|---|
config.imports |
list | No | native source-root import selections; see imports and overlays |
pipeline.reference_catalog.settings |
map[string]string | No | setting IDs to source-relative vocabulary files |
pipeline.reference_catalog.systems |
map[string]string | No | system IDs to source-relative vocabulary files |
pipeline.workspace.root |
string | No | /var/lib/narratio |
pipeline.workspace.cleanup_after_publish |
bool | No | false; selects the published run's workspace target for final cleanup and requires effective pipeline.publish.enabled=true and pipeline.publish.upload_run=true |
pipeline.campaigns.root |
string | No | /usr/local/share/narratio/campaigns |
pipeline.campaigns.default_campaign_id |
string | No | empty |
pipeline.campaigns.session_template_file |
string | No | installation session template; built-in default when absent |
pipeline.storage.backend |
string | No | local; supported values are local and s3 (case-insensitive) |
pipeline.storage.s3.bucket |
string | Conditional | required when backend is s3 and S3 session-audio or publish upload is enabled |
pipeline.storage.s3.root_prefix |
string | No | dnd |
pipeline.storage.s3.region |
string | No | empty |
pipeline.storage.s3.endpoint |
string | No | empty |
pipeline.storage.s3.force_path_style |
bool | No | false |
pipeline.storage.s3.access_key_id |
secret reference | Conditional | unset; must be paired with secret_access_key |
pipeline.storage.s3.secret_access_key |
secret reference | Conditional | unset; must be paired with access_key_id |
pipeline.publish.enabled |
bool | No | true |
pipeline.publish.upload_run |
bool | No | true |
pipeline.publish.outputs[] |
list | No | defaults to final trimmed JSON plus final and final-trimmed Markdown outputs |
pipeline.publish.outputs[].source |
string | Yes (per rule) | must reference built-in or configured artifact source |
pipeline.publish.outputs[].dest |
string | Conditional | derived if omitted and source supports derivation |
pipeline.publish.outputs[].required |
bool | No | true |
pipeline.whisperx.transcribe_url |
string | Yes | absolute http or https URL |
pipeline.whisperx.language |
string | No | en |
pipeline.whisperx.timeout |
duration | No | 30m |
pipeline.whisperx.retries |
int | No | 3 |
pipeline.whisperx.retry_delay |
duration | No | 2s |
pipeline.whisperx.concurrency |
int | No | 2 |
pipeline.seriatim.binary |
string | No | seriatim |
pipeline.seriatim.timeout |
duration | No | 10m |
pipeline.seriatim.output_schema |
string | No | seriatim-intermediate |
pipeline.seriatim.coalesce_gap |
float | No | 3.0 |
pipeline.seriatim.report |
bool | No | true |
pipeline.seriatim.env.overlap_word_run_gap |
float | No | unset |
pipeline.seriatim.env.overlap_word_run_reorder_window |
float | No | unset |
pipeline.seriatim.env.backchannel_max_duration |
float | No | unset |
pipeline.seriatim.env.filler_max_duration |
float | No | unset |
pipeline.audita.binary |
string | No | audita |
pipeline.audita.timeout |
duration | No | 3h |
pipeline.audita.credentials[] |
list[secret reference] | No | empty; exact environment-variable names forwarded to Audita |
pipeline.audita.debug |
bool | No | false; true requests Audita debug capture |
pipeline.audita.overlay |
string | No | empty; no downstream overlay override |
pipeline.audita.proposal_profile |
string | No | empty; no downstream proposal-profile override |
pipeline.audita.validation_profile |
string | No | empty; no downstream validation-profile override |
pipeline.audita.transcript_description |
string | No | empty |
pipeline.audita.config_path |
string | No | empty |
pipeline.audita.output_schema |
string | No | empty |
pipeline.normalize.output_path |
string | No | transcripts/final.json |
pipeline.normalize.output_schema |
string | No | seriatim-intermediate |
pipeline.normalize.report |
bool | No | true |
pipeline.trim.enabled |
bool | No | true |
pipeline.trim.output_path |
string | No | transcripts/final.trimmed.json |
pipeline.trim.bounds.prompt_id |
string | No | dnd.session_bounds |
pipeline.trim.bounds.profile_id |
string | No | empty |
pipeline.trim.bounds.transcript_input_name |
string | No | transcript |
pipeline.trim.bounds.output_path |
string | No | artifacts/session_bounds.json |
pipeline.trim.bounds.timeout |
duration | No | 10m |
pipeline.trim.bounds.render_debug |
bool | No | false |
pipeline.trim.bounds.render_output_path |
string | Conditional | required when render_debug is true |
pipeline.trim.seriatim.report |
bool | No | false |
pipeline.notarius.enabled |
bool | No | false |
pipeline.notarius.binary |
string | No | notarius |
pipeline.notarius.credentials[] |
list[secret reference] | No | empty; exact environment-variable names forwarded to Notarius |
pipeline.notarius.config_overlay |
string | No | unset; exact Notarius ConfigKit overlay selector |
pipeline.notarius.config_path |
string | Conditional | required when enabled; relative paths resolve from their defining source |
pipeline.notarius.pipeline_id |
string | Conditional | required when enabled |
pipeline.notarius.timeout |
duration | No | 3h; must be positive |
pipeline.notarius.working_directory |
string | No | directory containing resolved config_path; relative paths resolve from their defining source |
pipeline.notarius.cache |
string | No | unset; when set, auto, bypass, or refresh |
pipeline.notarius.debug |
bool | No | false; true requests debug capture |
pipeline.notarius.references |
map[string]string | No | empty; maps normalized Notarius selectors to supported prepared Narratio source IDs; maximum 256 entries |
pipeline.notarius.outputs |
map | Conditional | at least one entry when enabled |
pipeline.render.enabled |
bool | No | true |
pipeline.render.format |
string | No | markdown (only supported value) |
pipeline.render.title |
string | No | empty (falls back to session.title when set) |
pipeline.render.include_timestamps |
bool | No | true |
pipeline.render.include_segment_ids |
bool | No | true |
pipeline.render.include_metadata |
bool | No | false |
pipeline.scriptorium.binary |
string | No | scriptorium |
pipeline.scriptorium.credentials[] |
list[secret reference] | No | empty; exact environment-variable names forwarded to Scriptorium |
pipeline.scriptorium.config_path |
string | No | empty |
pipeline.scriptorium.timeout |
duration | No | 10m |
pipeline.scriptorium.render_debug |
bool | No | false |
pipeline.scriptorium.artifacts |
map | No | empty |
pipeline.scriptorium.artifact_families |
map | No | empty; expands one ordinary artifact per canonical party character |
pipeline.notification.mode |
string | No | noop; the only supported notification mode until a provider is implemented |
Audita Selection and Credentials
pipeline.audita.config_path optionally selects an Audita v4.3.0 configuration;
otherwise Audita uses native discovery. overlay, proposal_profile, and
validation_profile independently select downstream settings. Empty values
add no override. Narratio does not create Audita configuration or infer its
selectors from a Narratio overlay. Configure the ordered Audita pipeline in
Audita itself; the retired pipeline.audita.modules field is rejected. See
Audita's configuration guide
and the integration contract. debug: true requests
Audita debug capture; false or omission adds no debug override. Debug alone does
not invalidate a completed polish result.
pipeline.audita.credentials contains exact environment-variable references,
not values. Narratio resolves each name at pipeline load and forwards its value
under the same name. Supply every credential required by the selected Audita
configuration. Omission, null, or [] forwards nothing; a Narratio overlay
replaces the list. Captured diagnostics redact those values.
Notarius Configuration Overlay
Migration: rename pipeline.notarius.config_profile to config_overlay.
The old field is rejected; there is no compatibility alias. For current Notarius versions, move selected downstream files from profiles/
to overlays/ beside its root configuration. This does not rename PromptKit LLM profiles.
The renamed selector also changes extraction resume evidence for named
selections: their existing extraction is regenerated on the next applicable
run, with normal dependent invalidation. Omitted/base selections do not acquire
a new invalidation solely from this rename.
pipeline.notarius.config_overlay optionally selects a Notarius ConfigKit
configuration overlay when extraction executes:
notarius:
config_overlay: downstream-economy
When the field is omitted or null, Narratio supplies no downstream overlay
selector and preserves Notarius's existing configuration-selection behavior.
When present, Narratio forwards the exact string to Notarius, including an
empty string or default, which explicitly select Notarius's composed base
configuration. Notarius owns selector interpretation and validation; Narratio
does not restrict overlay names, resolve overlay files, or rewrite the value.
This selection is independent of Narratio's own --overlay selection. A
Narratio overlay may explicitly select a differently named Notarius overlay,
but Narratio never forwards its own overlay name automatically. It is also
independent of pipeline.notarius.credentials: an overlay may change either or
both fields according to the deployed Notarius configuration. See the
Notarius integration contract for invocation and
failure behavior.
Notarius Credentials
pipeline.notarius.credentials optionally lists environment-variable names
to forward to the Notarius child process:
notarius:
credentials: [OPENROUTER_API_KEY, ANTHROPIC_API_KEY]
The list contains variable names, not credential values. Those names must
match the references used by the Notarius/PromptKit profiles that Notarius
loads. Notarius owns profile lookup; Narratio neither infers those names nor
remaps them. Omission, null, or [] forwards nothing. Each selected reference
must resolve at pipeline load time through the process environment or existing
secrets-directory bootstrap, even when Notarius is disabled, extract is outside
the requested range, or a completed extraction can be reused.
The Notarius child receives only Narratio's minimal execution environment plus
these exact selected names and loaded values. Other credentials are not forwarded.
Changing a value, name, presence, or absence does not invalidate extract's
semantic resume evidence. The public names remain part of safe effective
inspection, so renaming them may appear in config diff and change the effective
configuration digest; rotating only their values does neither. An overlay
replaces the whole list, including with [] to clear it.
See the Notarius integration contract for the delivery and redaction boundary.
Notarius Cache Controls
pipeline.notarius.cache is optional; omission leaves the Notarius configuration
in control. Supply auto, bypass, or refresh to select native cache behavior.
Forced extraction uses refresh. Narratio's own completed-stage reuse is separate;
changing cache or debug selection alone does not invalidate completed products.
Notarius owns its configuration, pipeline, and cache storage.
Notarius Reference Bindings
Map selectors to prepared source IDs, for example:
notarius:
references:
party: narratio.input.party
glossary: narratio.input.glossary.combined
spell_catalog: narratio.input.glossary.combined
Supported IDs are narratio.input.party, narratio.input.players, and
narratio.input.glossary.{party,campaign,setting,spells,combined}. Every
configured binding is required; omit unused bindings. Selectors use Notarius's
native slot forms. Narratio verifies and snapshots the prepared files before
passing them to the subprocess. See the Notarius contract
and complete example.
Notarius Output Entries
Each pipeline.notarius.outputs.<name> requires a unique lane_id and may set
filename to a flat JSON filename. The default is <name>.json. Names create
narratio.extraction.<name> source IDs. Each configured lane is required, and
its completed JSON is promoted into the session's flat artifacts directory.
See the Notarius contract.
Scriptorium Credentials
Set scriptorium.credentials: [OPENROUTER_API_KEY] in the pipeline file to
forward that provider key to Scriptorium. List additional provider names only
when the selected downstream configuration needs them. The same list applies
to requirements inspection, trim bounds generation, analysis (including
character families), and their render-debug calls. Scriptorium retains
provider/profile selection; Narratio does not pass a model-request
--api-key-env override.
As with Audita and Notarius, names are ConfigKit secret references resolved at
pipeline load time using the configured bootstrap and environment,
even when no Scriptorium stage executes. Omitted, null, or empty lists forward
nothing. An overlay replaces the entire list; [] clears it. Captured values
are forwarded under their exact names and registered for diagnostic redaction.
Inspection and generated metadata contain names only. Credential changes do
not invalidate completed trim or analysis work; rotating values also leaves
the effective configuration digest unchanged. Other environment variables
retain the shared minimal subprocess inheritance rules.
Scriptorium Artifact Entries
For each pipeline.scriptorium.artifacts.<name>:
| Field | Type | Required | Rule |
|---|---|---|---|
enabled |
bool | No | false if omitted |
depends_on[] |
list[string] | No | explicit ordering-only edges; must reference configured artifact keys, may not self-reference, and join inferred input edges in one acyclic graph |
render_debug |
bool | No | per-artifact override |
prompt_id |
string | Conditional | required when artifact is enabled |
profile_id |
string | No | empty |
output_path |
string | Conditional | required when enabled; also required when referenced by publish/output/input rules |
timeout |
duration | No | artifact override |
inputs |
map | No | input key names must be non-empty |
vars |
map | No | values must be string or bool; session_id is reserved and overwritten by Narratio |
Narratio adds session_id=narratio-session-<session_id> to every Scriptorium request for sticky upstream LLM routing. If an artifact config sets vars.session_id, Narratio replaces that value before invoking Scriptorium. Use a different variable name if a prompt needs the raw Narratio session ID as content.
Discovery, preview, and generation receive the same effective variables,
including family member values and explicitly empty strings. Narratio forwards
the sticky value as a template variable, not as a direct session override.
Without --artifacts, analyze executes enabled configured artifacts. With an
explicit --artifacts list, the exact named configured artifacts are the
one-invocation targets even if their enabled values are false. Analyze closes
those targets over the effective dependency graph: a current prerequisite is reused, while a
stale, missing, or failed prerequisite is rebuilt before its dependent.
Unrelated artifacts are not executed. Named targets and any prerequisite that
may require rebuilding must therefore have valid executable fields. This
override affects analyze planning only; publish uses the list only to filter
configured narratio.artifact.<name> output rules.
For each artifact input pipeline.scriptorium.artifacts.<name>.inputs.<input_name>:
| Field | Type | Required | Rule |
|---|---|---|---|
source |
string | Yes | built-in runtime source, prepared input source, narratio.extraction.<name>, narratio.artifact.<name>, or narratio.previous_session.artifact.<name> |
required |
bool | No | optional input requirement |
The input map key is the prompt input name; source identifies the Narratio
artifact that supplies it. Requirements discovery compares exact input names
with these keys before generated files exist. A required prompt input bound to
an optional source produces a warning when availability is unknown; runtime
resolution may still omit the source. See
prompt preflight.
artifact and path are obsolete and rejected by strict configuration
loading. Use the canonical source identifier to select the input; Narratio
does not provide adapter-specific input passthrough fields.
Each narratio.artifact.<name> input source automatically contributes an
effective dependency on that configured artifact. Narratio unions these inferred
edges with explicit depends_on entries, then trims, deduplicates, and sorts the
result during domain catalog derivation. Authors use depends_on only for
ordering constraints that are not already expressed by an artifact input.
Use narratio artifacts list
to inspect keys, definition sources, outputs, and effective dependencies without
loading a session or creating runtime state.
Scriptorium Artifact Families
pipeline.scriptorium.artifact_families declares a shared artifact template
for every canonical campaign character. Domain catalog derivation expands each
family into separate concrete artifact entries before analyze planning or
Scriptorium invocation, retaining the authored declarations in configuration.
Party parsing rejects unsupported document schemas before family expansion.
For each pipeline.scriptorium.artifact_families.<name>:
| Field | Type | Required | Rule |
|---|---|---|---|
enabled, prompt_id, profile_id, timeout, render_debug, depends_on, inputs, vars |
ordinary artifact fields | No | copied to each generated artifact under the corresponding ordinary rules |
for_each |
string | Yes | exactly party.characters |
output_path_pattern |
string | Yes | flat filename directly beneath artifacts/ with exactly one {character_id} token and no other brace syntax |
member_vars |
map | No | maps an ordinary Scriptorium variable name to a supported canonical character selector |
member_dependencies |
list | No | unique family keys; each generated member depends on the corresponding generated member of each listed family |
publish |
map | No | typed family publish policy (enabled, required, dest_pattern) validated against effective pipeline.publish settings and expanded into concrete publish outputs when enabled |
An enabled family publish declaration is validated against the effective
pipeline.publish configuration, including its defaults; it does not require
an explicit publish.enabled declaration in the same source file.
Explicit and generated analysis artifacts and session bounds must use flat
filenames directly beneath artifacts/; combined transcripts use flat filenames
directly beneath transcripts/. Remote publish destinations remain independent.
Collisions among effective producers are rejected.
Generated keys are <family>_<character_id> and generated output paths must
not collide with explicit artifacts or another generated artifact. Families
expand even when disabled; normal analyze selection still omits disabled
artifacts unless they are explicitly selected by their concrete key.
Supported member_vars selectors are character_id, player.name,
character.name, character.class_summary, and character.alias_summary.
Their resolved values are strings. A member variable may not reuse a static
vars name; session_id remains owned and overwritten by Narratio as for any
other Scriptorium artifact.
Within a family only, an input source may use
narratio.member_artifact.<family>. Resolution rewrites the source to the
corresponding ordinary narratio.artifact.<family>_<character_id> source and
infers the concrete member dependency. Use member_dependencies only for
additional same-character ordering constraints that are not already inputs.
This syntax is rejected in explicit artifacts and never reaches runtime stages
or Scriptorium.
Notifications
Narratio currently supports only notification.mode: noop, which is also the
default when the section is omitted. The notify stage performs no delivery in
this mode. Backend, recipient, timeout, and other provider settings are
rejected by strict configuration loading until Narratio has a provider
integration.
Campaign
The campaign is a shared RPG campaign document.
Shared extensions are allowed; Narratio's narratio settings are strict.
| Field | Required | Meaning |
|---|---|---|
schema_version |
Yes | maximumdirect.rpg.campaign.v1 |
id |
Yes | campaign identity |
name, description |
No | shared context |
references.party |
Yes | shared roster path; --party-file can select another roster |
setting, system |
No | selected installed catalog IDs |
references.glossaries |
No | shared relationships, not an ordered Narratio composition list |
narratio.inputs.speakers_file |
Yes | speaker mapping path |
narratio.inputs.glossary_file |
No | shared campaign glossary path |
narratio.inputs.glossary |
No | inline campaign collection |
narratio.inputs.autocorrect |
No | replacement rules, default empty |
narratio.session_template_file |
No | campaign template; otherwise installation or built-in template |
Resource paths resolve relative to their defining source. See the three-file example and party contract.
Glossary Inputs
Install a reference catalog and import its root into the pipeline. Selected
setting and system IDs resolve to source-relative shared glossary files; only
selected files are read. Campaign file and inline contributions compose using
ConfigKit identity and list controls. Session omissions inherit each selection
independently; explicit null or empty optional selectors clear them. A supplied
inline glossary or autocorrection list replaces the campaign contribution as a
whole, and null clears it. Clearing inline vocabulary leaves a selected file
unchanged; autocorrect: [] disables inherited campaign rules.
Preparation writes shared envelopes for party, campaign, setting, spells, and
combined collections, including empty collections. Audita receives the four
individual envelopes and Notarius may bind the combined envelope to both glossary
roles. Collection extensions such as instruction are data, not prompt guidance.
Shared glossary schema
and semantics
own the contract; see the maintained examples.
Session
| Field | Type | Required in session file | Notes |
|---|---|---|---|
session_id |
string | Yes | opaque identity; must match CLI session target when provided |
previous_session_id |
string | No | opaque identity; must not equal session_id |
campaign |
string | No | opaque identity; filled from campaign_id during resolve if omitted |
date |
string | No | metadata |
title |
string | No | metadata |
inputs.speakers_file |
string | No | overrides campaign stable input |
inputs.autocorrect |
list | No | replaces inherited rules; null or empty clears them |
inputs.setting |
string | No | independently overrides the campaign setting selection |
inputs.system |
string | No | independently overrides the campaign system selection |
inputs.glossary_file |
string | No | independently overrides the campaign vocabulary file |
inputs.glossary |
mapping | No | replaces the campaign's inline contribution |
inputs.audio_dir |
string | Conditional | local audio mode |
inputs.audio_files[] |
list[string] | Conditional | local audio mode |
inputs.audio_s3.prefix |
string | Conditional | S3 audio mode |
Audio rules:
- configure local mode (
audio_diroraudio_files) or S3 mode (audio_s3.prefix), not both. audio_s3requirespipeline.storage.backend: s3and a configured S3 bucket.
Storage backend selection
local is the default and disables remote object-store operations. Configure
s3 explicitly before supplying storage.s3; a populated S3 block does not
select a backend on its own. Unknown backend names and an S3 block paired with
local are rejected during configuration validation.
Previous-session expectation
previous_session_id is optional in a session file. When a command supplies
--previous-session-id, however, the session file must contain the same value;
an omitted or different value is rejected before the command performs work.
Shared contract provenance
Narratio validates the shared glossary, RPG party, and RPG campaign 0.2.0
schemas and their dependency closure offline from schemas distribution
2026.11.1, commit f7e3cedeca11ed903311cdf29ca4d81fb1f216b7.
The supplied synthetic catalog data is based on commit
02dd53c6ea026347452d497350c40249c949f8ce. Installed catalogs are selected
independently. See attribution and the
integration contracts for tested consumers.
Maintained Examples
See the maintained examples index for complete pipeline, campaign, session, template, and input fixtures. Keep complete copyable files there rather than duplicating them in this reference.