diff --git a/docs/inventory.md b/docs/inventory.md index 5ffd536..e91563a 100644 --- a/docs/inventory.md +++ b/docs/inventory.md @@ -9,7 +9,7 @@ the linked contract documents own current semantics. | 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. | +| 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, source catalog provenance | Embedded base catalog, ruleset interpretation, recognition and collision policy, merge order | Spell entries use the general glossary. Source catalogs use collection provenance; domain-specific metadata uses extensions interpreted during later consumer adoption. | The party and campaign schemas and their documentation are new, independently written specifications informed by the interfaces above; no Narratio or Audita diff --git a/glossary/v0.1.0/examples/glossary.yml b/glossary/v0.1.0/examples/glossary.yml index 9ffcf3a..39f804e 100644 --- a/glossary/v0.1.0/examples/glossary.yml +++ b/glossary/v0.1.0/examples/glossary.yml @@ -10,7 +10,6 @@ collections: spells: provenance: id: lantern-coast-original - ruleset: sample-fantasy title: Synthetic campaign spells version: "1" license: CC0-1.0 diff --git a/glossary/v0.1.0/schema.json b/glossary/v0.1.0/schema.json index 6300560..f5383de 100644 --- a/glossary/v0.1.0/schema.json +++ b/glossary/v0.1.0/schema.json @@ -32,7 +32,6 @@ "type": "object", "properties": { "id": {"$ref": "#/$defs/text"}, - "ruleset": {"$ref": "#/$defs/text"}, "title": {"$ref": "#/$defs/text"}, "version": {"type": "string"}, "url": {"type": "string"}, diff --git a/glossary/v0.1.0/semantics.md b/glossary/v0.1.0/semantics.md index 82a5e43..a0c9931 100644 --- a/glossary/v0.1.0/semantics.md +++ b/glossary/v0.1.0/semantics.md @@ -16,7 +16,7 @@ apply. Start with [campaign vocabulary](examples/glossary.yml), | `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..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. | +| `collections..provenance` | No | Source metadata object, possibly empty. Optional `id` 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, @@ -28,7 +28,8 @@ 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; +identify a source catalog. Domain-specific metadata can use extension fields. +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 diff --git a/internal/validation/validation_test.go b/internal/validation/validation_test.go index b79665b..c2fe37c 100644 --- a/internal/validation/validation_test.go +++ b/internal/validation/validation_test.go @@ -92,7 +92,8 @@ func TestDefinedFieldShapes(t *testing.T) { {"provenance empty", `collections: {weather: {entries: [], provenance: {}}}`, true}, {"provenance absent metadata", `collections: {weather: {entries: [], provenance: {version: "", url: "", license: ""}}}`, true}, {"provenance extension", `collections: {weather: {entries: [], provenance: {title: Sample, source_id: 2}}}`, true}, - {"provenance wrong known field", `collections: {weather: {entries: [], provenance: {ruleset: []}}}`, false}, + {"provenance wrong known field", `collections: {weather: {entries: [], provenance: {title: []}}}`, false}, + {"domain provenance extension", `collections: {weather: {entries: [], provenance: {ruleset: []}}}`, true}, {"unknown fields have no instruction semantics", `collections: {weather: {entries: [], instruction: {arbitrary: data}}}`, true}, {"null plural", `collections: {weather: {entries: [{id: wind, name: Wind, category: speed, plural: null}]}}`, true}, {"empty plural", `collections: {weather: {entries: [{id: wind, name: Wind, category: speed, plural: ""}]}}`, false},