Document shared glossary inputs and migration

This commit is contained in:
2026-11-29 18:16:18 +00:00
parent 04546acee0
commit 3b7baed65e
20 changed files with 248 additions and 112 deletions

View File

@@ -30,29 +30,36 @@ types, duplicate supplied IDs, and the validation failures above are rejected.
## Glossary collections
Glossary definitions are composed as application configuration, including the
optional companion inputs described by the [configuration reference](../config.md).
The [local example](../../examples/local/glossary.yml) provides a complete
collection. Configuration may contain empty collections; processing preflight
requires every glossary-correction entry to select at least one glossary entry.
The previous standalone `glossary` file format is not a processing input.
Runtime files supplied with `--glossary-file` are YAML mappings keyed directly
by collection name, without a `glossary_collections` wrapper. Each collection
may contain `instruction` and `entries`; entries retain additional fields as
extensions. For example:
Runtime glossary files supplied with `--glossary-file PATH` use the shared
`glossary@0.2.0` contract from schemas distribution `2026.11.1`, with marker
`maximumdirect.glossary.v1`. Audita bundles the selected schema and validates
completed inputs offline. The upstream [schema](https://schemas.maximumdirect.net/glossary/v0.2.0/schema.json)
and [semantics](https://schemas.maximumdirect.net/glossary/v0.2.0/semantics.md)
define its fields and extensions. Full conformance includes the
[ConfigKit v1.4.0 loading boundary](https://forge.maximumdirect.net/base-layer/configkit/src/tag/v1.4.0/docs/config.md).
```yaml
people:
instruction: Prefer the speaker's stated name when supported by context.
entries:
- id: speaker
name: Mira Chen
category: person
aliases: [Mira]
source_note: Prepared for this recording
schema_version: maximumdirect.glossary.v1
collections:
people:
entries:
- id: speaker
name: Mira Chen
category: person
aliases: [Mira]
```
See the [complete runtime glossary example](../../examples/README.md#runtime-glossary-input)
and [composition and selection rules](../config.md#loading-and-composition).
Files and their imports are protected by the existing output collision checks.
Each path is relative to the invocation working directory. A file can hold one
or many collections; repeated flags compose files in order. Native imports are
resolved relative to their declaring file, and imported fragments can contribute
to a completed envelope. All selected and imported paths are protected from
output collisions. Loading does not select collections. Configure selections or
use the CLI selection flags; empty collections are valid for inspection, while
glossary correction needs at least one selected entry.
Audita no longer automatically loads `glossary.yml` or files in `glossary/`;
pass those paths explicitly if needed. Automatic prompt companions remain.
Collection extensions, including `instruction`, are data and do not become
prompt guidance. See [configuration and composition](../config.md#loading-and-composition),
[examples](../../examples/README.md#runtime-glossary-input), and the
[v4.3 migration guide](../migrations/v4.3.md).