Files
notarius/docs/integrations/shared-domain-inputs.md

4.1 KiB

Shared Domain Reference Inputs

Notarius accepts shared party and glossary documents as optional D&D reference inputs. The complete example provides a party and one multi-collection glossary. The reference binding interface and defaults belong to Configuration.

Supported Contracts

Notarius bundles the following contracts from shared schemas distribution 2026.11.1, commit f7e3cedeca11ed903311cdf29ca4d81fb1f216b7, for offline validation. The document marker is not a schema-version selector.

Role Version and marker Upstream semantics
party and accepted roster aliases RPG party 0.2.0, maximumdirect.rpg.party.v1 Party semantics
glossary and spell_catalog Glossary 0.2.0, maximumdirect.glossary.v1 Glossary semantics

Inputs are YAML or JSON, with media types application/yaml, application/x-yaml, or application/json. JSON must use JSON syntax. Both serializations pass through ConfigKit's native mapping load and are validated as complete documents, including unselected collections. See the pinned ConfigKit native contract for loading, dynamic numeric binding, limits, and reserved controls such as extends and source-root config. Notarius adds exact per-collection entry-ID uniqueness and task-specific suitability checks; ordinary extensions remain data, not instructions.

Task Views

Each binding selects collections independently. General glossary context defaults to the available campaign and setting collections; a bound spell_catalog defaults to spells, which must exist. Explicit selections must exist, may be empty, and compare names exactly. Empty valid selections or collections contribute no added vocabulary. No binding is required merely because another is present. The same file can serve both roles.

Party context includes names, aliases, optional player relationships and classes/levels, without exposing roster IDs to the model. Distinct roster entries remain distinct even when names match. party takes presentation precedence over roster; both supplied documents are validated. players remains optional supplemental text. No duplicate player list is needed for relationships already in the roster.

General glossary context projects names, aliases, categories, descriptions, and plural forms. Spell recognition projects names and aliases only and starts with the embedded D&D 5e 2014 SRD vocabulary. Existing canonical display names take precedence; selected entries may augment their aliases. Conflicting recognition keys for different spells are task errors. Collection names and entry IDs determine deterministic traversal; IDs, provenance, and irrelevant extensions are not promoted to model instructions or transcript evidence.

Migration

Replace plain-text party or roster files with the shared party envelope and move character/player relationships into roster entries. Replace text glossary files and the private notarius.dnd.spell-catalog-overlay.v1 envelope with shared glossary entries under named collections. Map old spell names and aliases directly to entries; old ruleset metadata is not required, and source information may be optional collection provenance. Aliases may be omitted, null, or empty. Add collections on an external binding only when the slot defaults are not appropriate. Existing slot names and CLI selectors remain unchanged. There is no legacy reader or automatic conversion.

Run and explicit preflight validate supplied documents during preparation, before domain inference; offline pipeline validation does not read reference files. See CLI preflight for its readiness scope.