Files
schemas/rpg/campaign/v0.2.0/semantics.md

3.1 KiB

Campaign contract

Native loading boundary

Full conformance includes acquisition through the public mapping-root handoff of ConfigKit v1.4.0, followed by this schema and its semantic checks. ConfigKit owns syntax, structural controls, numeric binding, and resource limits, including its 8 MiB source limit. Dynamic integers bind as int64 and fractional/exponent values as finite float64; authored decimal precision is not guaranteed. Preserve supported resolved values. extends is structural input and source-root config is a control namespace; nested ordinary config follows upstream rules. Other supported domain extensions remain permitted. Schema validation adds no trimming, case folding, or defaults. Structural validation alone does not prove native loading compatibility. The pinned upstream contract defines this version's boundary independently of later changes to the repository's general guidance.

Contract: maximumdirect.rpg.campaign.v1. Schema. The validation profile and compatibility rules apply. See the example.

Field Required Meaning
schema_version Yes Exactly maximumdirect.rpg.campaign.v1.
id Yes Nonempty stable campaign identity, independent of its display name.
name No Nonempty campaign display name.
description No Free text campaign context; an empty string is valid.
setting No Nonempty domain setting label or identifier.
system No Nonempty game-system label or identifier.
references No Relationships to domain documents.
references.party No Nonempty locator for a party document.
references.glossaries No List of nonempty locators for glossary documents; may be empty.

Optional fields accept omission, not null. An empty references object is valid. Objects allow additional fields. IDs, labels, and locator strings are preserved as supported resolved values without domain normalization. The issuer supplies the identity's namespace; this contract does not require globally unique campaign IDs.

References are locator strings, including URI references and relative file references. Consumers select supported locator forms and resolve relative references against the domain document's location (or a base provided with an in-memory document). Resolving authored configuration paths before this boundary remains the composing application's responsibility. References express relationships; the harness neither fetches them nor requires local installation. List order does not prescribe merge order, precedence, or execution. Those belong to the consuming application.

This document records shared context. Narratio's campaign.yml remains application configuration with its own operational fields. Session templates, speaker-file choices, execution paths, provider policy, and credentials are outside the defined shared campaign fields. Additional fields gain no execution or credential semantics through schema conformance.