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

@@ -19,7 +19,7 @@ Supplying a configuration path also makes file selection predictable. Configured
secrets bootstrap can populate the child environment before the shared load;
see [configuration](../config.md#loading-and-composition).
For prepared vocabulary, write one or more wrapperless collection files and
For prepared vocabulary, write one or more shared glossary files and
pass each path as a separate `--glossary-file` argument. Select the main
configuration and overlay that define the desired pipeline and collection
selections; supplying files does not select them. The same arguments can be
@@ -28,7 +28,7 @@ used to inspect the effective configuration before processing. See the
[CLI reference](../cli.md#processing) for composition and error outcomes.
Choose a trusted configuration bundle. An explicit main path still allows
its configured imports and automatic overlay, glossary, and prompt companions.
its configured imports, selected overlay, and automatic prompt companions.
Without a main path, Audita uses the configured discovery locations. The
parent controls who can write those sources and which report destinations and
retained debug directories the invocation will use. Native inspection is

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).