Exercise shared campaign and consumer workflows

This commit is contained in:
2026-11-30 02:29:50 +00:00
parent b5b4672920
commit 706c1bb7ad
26 changed files with 417 additions and 489 deletions

View File

@@ -0,0 +1,18 @@
# Synthetic three-file campaign example.
schema_version: maximumdirect.rpg.campaign.v1
id: lantern-coast
name: Lantern Coast expedition
setting: lantern_coast_sample
system: sample_magic
references:
party: ./party.yml
narratio:
inputs:
speakers_file: ./speakers.yml
glossary:
entries:
- id: glass-harbor
name: Glass Harbor
category: place
aliases: [The Harbor]
autocorrect: []

View File

@@ -0,0 +1,11 @@
schema_version: maximumdirect.rpg.party.v1
characters:
mira:
player:
name: Rowan
character:
name: Mira
aliases: [Mira of Glass Harbor]
classes:
- name: Wizard
level: 3

View File

@@ -0,0 +1,7 @@
match:
- speaker: Rowan
match:
- Rowan_recording
- speaker: GM
match:
- GM_recording

View File

@@ -1,5 +1,6 @@
schema_version: maximumdirect.rpg.campaign.v1
id: sample-campaign
config:
imports:
- path: fragments/inputs.yml
required: true
campaign_id: sample-campaign

View File

@@ -1,7 +1,8 @@
session_template_file: ../session.template.yml
inputs:
speakers_file: ../speakers.yml
autocorrect_file: ../autocorrect.yml
glossary_file: ../glossary.yml
party_file: ../party.yml
spell_catalog_file: ../spell_catalog.json
references:
party: ../party.yml
narratio:
session_template_file: ../session.template.yml
inputs:
speakers_file: ../speakers.yml
glossary_file: ../glossary.yml
autocorrect: []

View File

@@ -1,3 +1,5 @@
campaign:
entries:
- {id: lantern_watch, name: Lantern Watch, category: organization}
schema_version: maximumdirect.glossary.v1
collections:
campaign:
entries:
- {id: lantern_watch, name: Lantern Watch, category: organization}

View File

@@ -1,7 +1,8 @@
# Inline records compose above the file using ConfigKit entry identities.
inputs:
glossary_file: ../glossary.yml
glossary:
instruction: Use established campaign terminology.
entries:
- {id: lantern_watch, name: Silver Watch, category: organization}
narratio:
inputs:
glossary_file: ../glossary.yml
glossary:
instruction: Use established campaign terminology.
entries:
- {id: lantern_watch, name: Silver Watch, category: organization}

View File

@@ -1,3 +1,4 @@
# Campaign inputs fragment; select the adjacent sample file when importing this fragment.
inputs:
glossary_file: ../glossary.yml
narratio:
inputs:
glossary_file: ../glossary.yml

View File

@@ -1,5 +1,6 @@
# Campaign inputs fragment; include the required roster and other inputs separately.
inputs:
glossary:
entries:
- {id: watch, name: Silver Watch, category: organization}
narratio:
inputs:
glossary:
entries:
- {id: watch, name: Silver Watch, category: organization}

View File

@@ -1,3 +1,5 @@
campaign:
entries:
- {id: lantern_watch, name: Lantern Watch, category: organization}
schema_version: maximumdirect.glossary.v1
collections:
campaign:
entries:
- {id: lantern_watch, name: Lantern Watch, category: organization}

View File

@@ -15,29 +15,17 @@ notarius:
pipeline_id: dnd-session
timeout: 3h
references:
glossary: narratio.input.glossary.campaign
glossary: narratio.input.glossary.combined
party: narratio.input.party
players: narratio.input.players
spell_catalog: narratio.input.spell_catalog
spell_catalog: narratio.input.glossary.combined
outputs:
npc_registry:
lane_id: npc-registry
media_type: application/json
schema_id: notarius.dnd.npc_registry
schema_version: v1
module_key: dnd/npc-registry
location_registry:
lane_id: location-registry
media_type: application/json
schema_id: notarius.dnd.location_registry
schema_version: v1
module_key: dnd/location-registry
scene_descriptions:
lane_id: scene-descriptions
media_type: application/json
schema_id: notarius.dnd.scene_descriptions
schema_version: v1
module_key: dnd/scene-descriptions
scriptorium:
binary: scriptorium

View File

@@ -34,12 +34,6 @@ campaigns:
# Optional command default when --campaign is omitted.
default_campaign_id: sample-campaign
spool:
# Optional; defaults to /var/spool/narratio.
root: /var/spool/narratio
# Optional cleanup of run-scoped spool audio after successful publish commit.
delete_audio_after_publish: false
publish:
# Optional booleans; defaults are true.
enabled: true
@@ -61,8 +55,7 @@ publish:
- source: narratio.artifact.player_handout
dest: artifacts/player_handout.md
required: false
# Extraction lanes publish only when named explicitly; the bundle and index
# are never implicit publish sources.
# Extraction lanes publish only when named explicitly; the bundle stays local.
- source: narratio.extraction.npc_registry
dest: artifacts/extraction/npc-registry.json
required: true
@@ -141,82 +134,37 @@ notarius:
pipeline_id: dnd-session
timeout: 3h
working_directory: /usr/local/etc/notarius
# Reuse compatible accepted Notarius checkpoints during executed extraction.
# The Notarius config must enable recording and provide persistent cache roots.
resume: true
# auto uses or creates a source-addressed chunk plan. Forced Narratio
# extraction overrides this with refresh and disables checkpoint loading.
chunk_cache: auto
# Forced extraction requests refresh from Notarius.
cache: auto
# External campaign references use prepared Narratio source IDs. Omit an
# optional binding when the selected Notarius pipeline does not need it.
references:
glossary: narratio.input.glossary.campaign
glossary: narratio.input.glossary.combined
party: narratio.input.party
players: narratio.input.players
spell_catalog: narratio.input.spell_catalog
# Each key creates source narratio.extraction.<key>. These constraints match
# the current Notarius D&D lane contracts; update them with Notarius.
spell_catalog: narratio.input.glossary.combined
# Each key creates source narratio.extraction.<key> for its selected lane.
outputs:
item_registry:
lane_id: item-registry
media_type: application/json
schema_id: notarius.dnd.item_registry
schema_version: v1
module_key: dnd/item-registry
npc_registry:
lane_id: npc-registry
media_type: application/json
schema_id: notarius.dnd.npc_registry
schema_version: v1
module_key: dnd/npc-registry
location_registry:
lane_id: location-registry
media_type: application/json
schema_id: notarius.dnd.location_registry
schema_version: v1
module_key: dnd/location-registry
scene_descriptions:
lane_id: scene-descriptions
media_type: application/json
schema_id: notarius.dnd.scene_descriptions
schema_version: v1
module_key: dnd/scene-descriptions
item_occurrences:
lane_id: item-occurrences
media_type: application/json
schema_id: notarius.dnd.item_occurrences
schema_version: v1
module_key: dnd/item-occurrences
spells:
lane_id: spells
media_type: application/json
schema_id: notarius.dnd.spells
schema_version: v1
module_key: dnd/spells
combat_turns:
lane_id: combat-turns
media_type: application/json
schema_id: notarius.dnd.combat_turns
schema_version: v1
module_key: dnd/combat-turns
npc_occurrences:
lane_id: npc-occurrences
media_type: application/json
schema_id: notarius.dnd.npc_occurrences
schema_version: v1
module_key: dnd/npc-occurrences
location_occurrences:
lane_id: location-occurrences
media_type: application/json
schema_id: notarius.dnd.location_occurrences
schema_version: v1
module_key: dnd/location-occurrences
enemy_events:
lane_id: enemy-events
media_type: application/json
schema_id: notarius.dnd.enemy_events
schema_version: v1
module_key: dnd/enemy-events
scriptorium:
binary: scriptorium

View File

@@ -22,10 +22,6 @@ campaigns:
root: /usr/local/share/narratio/campaigns
default_campaign_id: sample-campaign
spool:
root: /var/spool/narratio
delete_audio_after_publish: true
publish:
enabled: true
upload_run: true

View File

@@ -3,7 +3,7 @@ character_items:
for_each: party.characters
prompt_id: dnd.character_items
profile_id: production-placeholder
output_path_pattern: artifacts/characters/{character_id}/items.md
output_path_pattern: artifacts/{character_id}-items.md
inputs:
character_meta:
source: narratio.member_artifact.character_meta
@@ -15,4 +15,4 @@ character_items:
publish:
enabled: true
required: false
dest_pattern: artifacts/characters/{character_id}/items.md
dest_pattern: artifacts/{character_id}-items.md

View File

@@ -3,7 +3,7 @@ character_meta:
for_each: party.characters
prompt_id: dnd.character_meta
profile_id: production-placeholder
output_path_pattern: artifacts/characters/{character_id}/meta.md
output_path_pattern: artifacts/{character_id}-meta.md
member_vars:
character_id: character_id
character_name: character.name

View File

@@ -4,9 +4,3 @@ workspace:
campaigns:
root: ../../campaigns
default_campaign_id: sample-campaign
cache:
root: ./cache
spool:
root: ./spool

View File

@@ -1,5 +1,5 @@
reference_catalog:
settings:
lantern_coast: ./setting.yml
lantern_coast_sample: ./setting.yml
systems:
sample_magic: ./spells.yml

View File

@@ -0,0 +1,7 @@
collections:
setting:
entries:
- id: harbor_crossing
name: Harbor Crossing
category: place
aliases: [The Crossing]

View File

@@ -0,0 +1,7 @@
collections:
spells:
entries:
- id: tide_step
name: Tide Step
category: spell
aliases: [Tidal Step]

View File

@@ -1,8 +1,16 @@
config:
imports:
- path: fragments/places.yml
- path: fragments/lantern-coast-places.yml
required: true
setting:
instruction: Use the established place names.
entries:
- {id: coast, name: Lantern Coast, category: place}
schema_version: maximumdirect.glossary.v1
collections:
setting:
provenance:
id: lantern_coast_sample
title: Lantern Coast synthetic sample
license: CC0-1.0
entries:
- id: lantern_coast
name: Lantern Coast
category: place
description: A fictional coast in the sample setting.

View File

@@ -1,3 +1,16 @@
spells:
entries:
- {id: glow, name: Lantern Glow, category: spell}
config:
imports:
- path: fragments/sample-spells.yml
required: true
schema_version: maximumdirect.glossary.v1
collections:
spells:
provenance:
id: sample_magic
title: Sample Magic synthetic sample
license: CC0-1.0
entries:
- id: lantern_glow
name: Lantern Glow
category: spell
description: A fictional light-producing spell.