Move shared contracts into independently versioned directories
This commit is contained in:
@@ -1,37 +0,0 @@
|
||||
# Campaign contract
|
||||
|
||||
Contract: `maximumdirect.campaign.v1`. [Schema](../schemas/campaign.schema.json).
|
||||
The [validation profile](validation.md) and [compatibility rules](compatibility.md)
|
||||
apply. See the [example](../examples/campaign.yml).
|
||||
|
||||
| Field | Required | Meaning |
|
||||
| --- | --- | --- |
|
||||
| `schema_version` | Yes | Exactly `maximumdirect.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 without 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.
|
||||
@@ -7,7 +7,7 @@ jointly comprise their JSON Schemas and semantic documents.
|
||||
## Version identities
|
||||
|
||||
Schema-set releases use Semantic Versioning and ship together. Contract markers
|
||||
`maximumdirect.party.v1`, `maximumdirect.campaign.v1`, and
|
||||
`maximumdirect.rpg.party.v1`, `maximumdirect.rpg.campaign.v1`, and
|
||||
`maximumdirect.glossary.v1` identify major domain contracts. A compatible schema
|
||||
release does not require editing operator document headers.
|
||||
|
||||
|
||||
@@ -1,67 +0,0 @@
|
||||
# Glossary contract
|
||||
|
||||
Contract: `maximumdirect.glossary.v1`. [Schema](../schemas/glossary.schema.json).
|
||||
The [validation profile](validation.md) and [compatibility rules](compatibility.md)
|
||||
apply. Start with [campaign vocabulary](../examples/glossary.yml),
|
||||
[weather](../examples/weather.yml), or [sports](../examples/sports.yml).
|
||||
|
||||
| Field | Required | Meaning |
|
||||
| --- | --- | --- |
|
||||
| `schema_version` | Yes | Exactly `maximumdirect.glossary.v1`. |
|
||||
| `collections` | Yes | Mapping of nonempty collection names to collections; may be empty. |
|
||||
| `collections.<name>.entries` | Yes | List of entries; may be empty. |
|
||||
| `entries[].id` | Yes | Stable, nonempty identity unique within this collection. |
|
||||
| `entries[].name` | Yes | Nonempty canonical display name. |
|
||||
| `entries[].category` | Yes | Nonempty domain-defined category. |
|
||||
| `entries[].description` | No | Description; an empty string is valid. |
|
||||
| `entries[].aliases` | No | Alternative names for the same entity. May be null, empty, or a list of nonempty strings. |
|
||||
| `entries[].plural` | No | Nonempty plural display form, or null. |
|
||||
| `collections.<name>.provenance` | No | Source metadata object, possibly empty. Optional `id`, `ruleset`, and `title` are nonempty strings; optional `version`, `url`, and `license` are strings that may be empty. |
|
||||
|
||||
All objects permit extensions. Optional fields accept omission; only `aliases`
|
||||
and `plural` additionally accept null. Values are preserved without trimming,
|
||||
case folding, coercion, or defaults. IDs and names compare exactly. Distinct
|
||||
collections can reuse an ID. Display names, aliases, and categories need not be
|
||||
unique. Lists retain their authored order but establish no precedence or execution
|
||||
order. Collection names and categories are strings chosen by the domain, not a
|
||||
fixed set of D&D labels.
|
||||
|
||||
For example, `spells` entries contain names, aliases, and optionally extended
|
||||
domain information such as `casting_time`. Their collection's provenance can
|
||||
identify a catalog and ruleset. Provenance describes origin and applicability;
|
||||
it is not transcript evidence or a spell rule. If different source contexts
|
||||
matter, use separately named collections with their own provenance. A consumer
|
||||
can derive its recognition input from these entries instead of requiring a second
|
||||
operator-maintained spell list. Embedded vocabulary, source precedence,
|
||||
normalization, inference, and conflicts remain consumer policy.
|
||||
|
||||
Entry-ID uniqueness is a semantic rule checked separately from JSON Schema.
|
||||
The [validator](validation.md) performs both checks. No cross-document identity or
|
||||
reference-resolution check is part of this initial contract.
|
||||
|
||||
## Extensions and task instructions
|
||||
|
||||
Extensions describe domain information. Consumers forwarding a shared document
|
||||
should retain them; task-specific projections may intentionally omit them.
|
||||
Acceptance and preservation do not claim interpretation. Defined fields retain
|
||||
their schema constraints in an extended document.
|
||||
|
||||
Task instructions belong to consumer configuration. `instruction` is not a
|
||||
defined field in this contract. Like other unknown fields, it can be retained
|
||||
without acquiring instruction semantics. Maintained examples contain domain
|
||||
data only.
|
||||
|
||||
## Authoring contributions
|
||||
|
||||
`#/$defs/partialCollection` is an editor-assistance definition with optional
|
||||
`entries`. `#/$defs/entry` and `#/$defs/collection` assist entry and complete
|
||||
collection editing. A partial contribution is not a standalone valid domain
|
||||
document. ConfigKit owns imports, inheritance, and composition before validation
|
||||
of the complete envelope.
|
||||
|
||||
## Differences from the reference catalog and Audita v4.2
|
||||
|
||||
The old format maps collection names directly at the root. The shared format
|
||||
requires `schema_version` and `collections`. It removes defined collection
|
||||
instructions, permits structural extensions, and adds defined provenance.
|
||||
Existing consumers must explicitly adopt this envelope and its semantics.
|
||||
@@ -5,9 +5,9 @@ the linked contract documents own current semantics.
|
||||
|
||||
| Source and baseline | Shared domain information | Consumer-owned information | Initial disposition |
|
||||
| --- | --- | --- | --- |
|
||||
| Narratio [`party.md`](https://forge.maximumdirect.net/eric/narratio/src/commit/782bcceb1c59bc71d782c7113ed440b47c608d51/docs/integrations/party.md) | Character IDs, names, aliases, player relationships, class names and levels | Artifact-key grammar, roster iteration order, generated players projection | [Party](party.md) retains the nested character/player shape; classes and player are optional, aliases use the common plural spelling, and mapping order has no meaning. |
|
||||
| Narratio [`config.md`](https://forge.maximumdirect.net/eric/narratio/src/commit/782bcceb1c59bc71d782c7113ed440b47c608d51/docs/config.md) | Campaign identity, setting/system labels, relationships to party and glossary resources | Session templates, input staging, provider settings, paths used by execution, secrets | [Campaign](campaign.md) defines a small domain document independent of Narratio configuration. |
|
||||
| CC0 reference catalog `FORMAT.md` and [schema snapshot](origins/reference-catalog-glossary-v1.schema.json) at `a1a87edafd59a1de545a1c0b4efe5feeb80348e0` | Named collections, entry IDs, names, categories, descriptions, aliases, plural forms, extensions | Collection instruction and native composition controls | [Glossary](glossary.md) adds an explicit envelope, permits structural extensions, and removes task instructions from the defined fields. |
|
||||
| Narratio [`party.md`](https://forge.maximumdirect.net/eric/narratio/src/commit/782bcceb1c59bc71d782c7113ed440b47c608d51/docs/integrations/party.md) | Character IDs, names, aliases, player relationships, class names and levels | Artifact-key grammar, roster iteration order, generated players projection | [Party](../rpg/party/v0.1.0/semantics.md) retains the nested character/player shape; classes and player are optional, aliases use the common plural spelling, and mapping order has no meaning. |
|
||||
| Narratio [`config.md`](https://forge.maximumdirect.net/eric/narratio/src/commit/782bcceb1c59bc71d782c7113ed440b47c608d51/docs/config.md) | Campaign identity, setting/system labels, relationships to party and glossary resources | Session templates, input staging, provider settings, paths used by execution, secrets | [Campaign](../rpg/campaign/v0.1.0/semantics.md) defines a small domain document independent of Narratio configuration. |
|
||||
| CC0 reference catalog `FORMAT.md` and [schema snapshot](origins/reference-catalog-glossary-v1.schema.json) at `a1a87edafd59a1de545a1c0b4efe5feeb80348e0` | Named collections, entry IDs, names, categories, descriptions, aliases, plural forms, extensions | Collection instruction and native composition controls | [Glossary](../glossary/v0.1.0/semantics.md) adds an explicit envelope, permits structural extensions, and removes task instructions from the defined fields. |
|
||||
| Audita v4.2.0 [glossary input](https://forge.maximumdirect.net/eric/audita/src/tag/v4.2.0/docs/integrations/transcript-glossary-files.md) | Canonical names, aliases, optional null aliases/plural, rich entries | Pipeline selection, correction instructions, replacement rules | Preserve the shared field shapes; the new envelope requires later Audita adoption. |
|
||||
| Notarius v0.9.0 [spell overlay](https://forge.maximumdirect.net/eric/notarius/src/tag/v0.9.0/docs/integrations/dnd-spell-catalog-overlays.md) | Spell names and aliases, catalog/ruleset provenance | Embedded base catalog, recognition and collision policy, merge order | Spell entries use the general glossary. Catalog/ruleset context is collection provenance; later consumer adoption defines its interpretation. |
|
||||
|
||||
|
||||
@@ -1,39 +0,0 @@
|
||||
# Party contract
|
||||
|
||||
Contract: `maximumdirect.party.v1`. [Schema](../schemas/party.schema.json).
|
||||
The [validation profile](validation.md) and [compatibility rules](compatibility.md)
|
||||
apply. See the [example](../examples/party.yml).
|
||||
|
||||
| Field | Required | Meaning |
|
||||
| --- | --- | --- |
|
||||
| `schema_version` | Yes | Exactly `maximumdirect.party.v1`. |
|
||||
| `characters` | Yes | Mapping from stable character IDs to roster entries; an empty mapping is valid. |
|
||||
| `characters.<id>.character` | Yes | Character information. |
|
||||
| `character.name` | Yes | Nonempty canonical display name. |
|
||||
| `character.aliases` | No | Alternative names for the same character; omission, null, an empty list, or a list of nonempty strings. |
|
||||
| `character.classes` | No | List of class objects, possibly empty. Each has a nonempty `name` and optional positive integer `level`. |
|
||||
| `characters.<id>.player` | No | Player relationship. When present, an object with a required nonempty `name`. Multiple characters may have the same player. |
|
||||
|
||||
IDs are nonempty strings scoped to this party, independent of display names and
|
||||
application artifact names. They remain stable when a display name changes.
|
||||
Player names are display labels, not globally unique player identifiers.
|
||||
Equal character names and aliases do not establish identity; consumers decide
|
||||
how to handle ambiguity in a particular task. Strings are preserved as authored.
|
||||
|
||||
Every object permits additional fields. Classes are optional domain information
|
||||
for campaigns that use them. Other character attributes may be extensions.
|
||||
Known fields have the documented type even when other fields are present.
|
||||
Optional objects and `classes` accept omission, not null. List order carries no
|
||||
additional contract meaning; mapping order never establishes character order.
|
||||
|
||||
A consumer can derive a party glossary from this roster. It uses character IDs
|
||||
as entry IDs, canonical names and aliases, and its selected domain category.
|
||||
Operators need not maintain a duplicate party vocabulary document.
|
||||
|
||||
## Differences from Narratio's existing party input
|
||||
|
||||
This contract uses a shared marker and `aliases` rather than `alias`. Player and
|
||||
class information is optional. IDs follow domain identity rather than artifact
|
||||
key syntax. Name uniqueness, class requirements, and mapping iteration order are
|
||||
consumer decisions. Narratio's existing `narratio.party.v1` format remains a
|
||||
separate released interface until adoption is implemented.
|
||||
@@ -1,7 +1,7 @@
|
||||
# Maximum Direct shared schemas v1.0.0
|
||||
|
||||
Initial shared party, campaign, and general glossary contracts, identified by
|
||||
`maximumdirect.party.v1`, `maximumdirect.campaign.v1`, and
|
||||
`maximumdirect.rpg.party.v1`, `maximumdirect.rpg.campaign.v1`, and
|
||||
`maximumdirect.glossary.v1`.
|
||||
|
||||
The distribution includes Draft 2020-12 schemas, semantic documentation,
|
||||
|
||||
Reference in New Issue
Block a user