Clarify shared glossary scope and ConfigKit limits

This commit is contained in:
2026-11-29 15:56:05 +00:00
parent 5a842f6a7f
commit 4543d66e21

View File

@@ -14,7 +14,8 @@ It defines the target and work areas; a subsequent implementation plan will
specify ordered implementation steps. The user's subsequent direction governs specify ordered implementation steps. The user's subsequent direction governs
release selection and scope: release as v4.3.0, expect standard-schema glossary release selection and scope: release as v4.3.0, expect standard-schema glossary
files, support one or multiple files, and spend no effort preserving glossary-file files, support one or multiple files, and spend no effort preserving glossary-file
instruction workflows. instruction workflows. Initial shared-schema support is partial, bounded by the
capabilities of the adopted ConfigKit version.
## Current Baseline ## Current Baseline
@@ -69,6 +70,13 @@ Use the versioned schema and semantics together:
[validation profile](https://forge.maximumdirect.net/eric/schemas/src/tag/2026.11.0/docs/validation.md), [validation profile](https://forge.maximumdirect.net/eric/schemas/src/tag/2026.11.0/docs/validation.md),
and [compatibility guidance](https://forge.maximumdirect.net/eric/schemas/src/tag/2026.11.0/docs/compatibility.md). and [compatibility guidance](https://forge.maximumdirect.net/eric/schemas/src/tag/2026.11.0/docs/compatibility.md).
The supported input range is the intersection of this shared contract and what
ConfigKit can parse, compose, and decode. A schema-valid document may therefore
remain unsupported because of a native ConfigKit limitation. Full compatibility
with the upstream YAML decoding profile is not required for this adoption.
Audita should describe this as partial support rather than claim unrestricted
shared-schema conformance.
Bundle the selected glossary schema and adjacent semantic document from that Bundle the selected glossary schema and adjacent semantic document from that
distribution, with their provenance and applicable licensing material. Register distribution, with their provenance and applicable licensing material. Register
the schema locally so ordinary validation works offline. No schema-registry the schema locally so ordinary validation works offline. No schema-registry
@@ -79,13 +87,32 @@ adding a dependency. Party and campaign schema adoption is outside this work.
## Targeted End State ## Targeted End State
### Three separate boundaries
- **Operator-provided glossary files:** Use the shared envelope and its collection
and entry definitions. There is no legacy glossary-file compatibility
requirement. The ConfigKit limits described below bound which otherwise valid
shared documents Audita can consume.
- **Application configuration:** Plan additive changes where needed. Existing
collection-selection settings already refer to names independently of how
collections are distributed across files. Supporting the shared file format
does not require a new application configuration namespace or version.
- **Internal representation:** Choose the simplest maintainable representation,
acquisition flow, and module-facing views. Existing Go types and loading phases
have no compatibility requirement. A one-way projection into processing views
is appropriate when useful; there is no need to retain a legacy vocabulary
model or build conversion machinery to preserve it.
### Shared documents and native composition ### Shared documents and native composition
`--glossary-file PATH` accepts the shared `schema_version` and `collections` `--glossary-file PATH` accepts the shared `schema_version` and `collections`
envelope in YAML or equivalent JSON. One occurrence supplies a single file; envelope in ConfigKit-supported YAML or equivalent JSON. Support one file with
repeated occurrences supply multiple files composed in argument order. Preserve one or multiple collections, several files each containing one collection, and
paths relative to the invocation working directory and separate collection-selection mixtures of files containing different numbers of collections. One flag occurrence
controls. Narratio's prepared document needs no envelope removal or field renaming. supplies a single file; repeated occurrences supply files composed in argument
order. Preserve paths relative to the invocation working directory and separate
collection-selection controls. Narratio's prepared document needs no envelope
removal or field renaming.
Replace the standalone wrapperless file format directly; a legacy reader or Replace the standalone wrapperless file format directly; a legacy reader or
conversion mode is not required. conversion mode is not required.
@@ -96,26 +123,28 @@ Validate completed shared documents at the composition boundary, before a typed
projection can erase invalid field types or presence distinctions. Do not fill projection can erase invalid field types or presence distinctions. Do not fill
missing required shared fields merely to make a supplied document pass. missing required shared fields merely to make a supplied document pass.
Retain the existing runtime composition model: compose the ordered runtime Use ConfigKit's ordered layers for complete selected documents. Their repeated
sources and their imports, then apply the resulting shared data through native `schema_version` values must not be forced into a strict peer-import group,
application assignment. Preserve native entry-list replacement at that where ConfigKit would reject overlapping scalar definitions even when equal.
assignment, unrelated configured collections, and native handling of omitted, Authoring fragments can still use native imports and their normal strict
empty, and null values, subject to validity of the resulting document. Runtime composition rules. Automatic glossary companions should also use the shared
inheritance need not gain access to parents defined only in application envelope; adapt their acquisition to complete-document layering rather than
configuration, and application structural inheritance need not rerun after CLI preserve the current import grouping mechanically.
assignment. Do not introduce a separate Narratio merge or collision policy.
Use application configuration version 3 and its `glossary_collections` vocabulary Preserve the runtime vocabulary's CLI priority over configured vocabulary,
namespace as the implementation starting point. Validated shared collections native entry-list replacement at the CLI assignment boundary, unrelated
can be adapted into that consumer model; adopting the external contract does not configured collections, and native handling of omitted, empty, and null values,
require renaming application fields. This is a simplification recommendation, subject to validity of the resulting shared data. No additional cross-source
not a requirement to preserve an internal representation if adoption benefits inheritance behavior or Narratio-specific merge policy is required. The current
from changing it. preliminary-load/final-load arrangement is an implementation starting point,
Automatic glossary companions should also use the shared envelope, with loading not a required sequence of internal operations.
adapted to its structure and existing native companion precedence. Use the same
acquisition path for all commands accepting runtime glossary files. Preserve the Application configuration version 3 and its `glossary_collections` namespace
shared representation where needed for validation or forwarding; processing remain the public starting point. Refactor the internal representation freely
views may project only the fields they use. to avoid duplicate glossary models or awkward adapters. Use shared acquisition
for all commands accepting runtime glossary files, and retain shared data where
needed for validation or forwarding. Module-facing views may project only the
fields they use.
Shared inputs are domain data. An extension named `instruction` has no executable Shared inputs are domain data. An extension named `instruction` has no executable
meaning. No consumers rely on instructions supplied through glossary files, so meaning. No consumers rely on instructions supplied through glossary files, so
@@ -125,25 +154,36 @@ continues to own task instructions.
### Contract conformance and task readiness ### Contract conformance and task readiness
Apply the pinned structural schema, semantic rules, and completed-document Apply the pinned structural schema and semantic rules to completed shared data
decoding profile. In particular: within ConfigKit's supported input range. In particular:
- Preserve the contract's required-field, omitted, null, and empty distinctions, - Preserve the contract's required-field, omitted, null, and empty distinctions,
including nullable aliases and plural forms. Do not trim, case-fold, coerce, including nullable aliases and plural forms. Do not trim, case-fold, coerce,
or default shared values as a schema-repair step. or default shared values as a schema-repair step.
- Accept permitted extensions at envelope, collection, provenance, and entry - Accept permitted extensions at envelope, collection, provenance, and entry
levels. Preserve them when forwarding a shared document; internal task views levels when their values are supported by ConfigKit. Retain those extensions
can select only the fields they use. Acceptance does not imply interpretation, when forwarding a shared document, subject to native value representation;
and serialization formatting need not be preserved. internal task views can select only the fields they use. Acceptance does not
imply interpretation, and serialization formatting need not be preserved.
- Reject duplicate entry IDs within a completed collection using exact string - Reject duplicate entry IDs within a completed collection using exact string
comparison. IDs can repeat across different collections. Do not add uniqueness comparison. IDs can repeat across different collections. Do not add uniqueness
requirements for display names, aliases, or categories, or confuse legitimate requirements for display names, aliases, or categories, or confuse legitimate
native layering of an identity with duplicate final entries. native layering of an identity with duplicate final entries.
- Respect the upstream decoding profile, including duplicate mapping-key and - Use ConfigKit's parsing and decoding behavior, including its native failure
numeric-value handling. Check the actual ConfigKit/parser behavior at the diagnostics, rather than implementing the upstream harness's broader YAML
handoff rather than assuming that using the same YAML library proves profile locally. Schema validity alone does not override native limitations.
conformance. Resolve any substantive upstream gap explicitly instead of
silently accepting a narrower glossary format or adding a competing loader. Known differences in the currently adopted ConfigKit v1.4.0 include rejection of
YAML anchors/aliases and some shared-profile scalar spellings, such as unquoted
`yes` as a string. Generic numeric decoding is also bounded by native integer
ranges and floating-point precision rather than the shared profile's
precision-preserving number representation. The adopted
[ConfigKit configuration reference](https://forge.maximumdirect.net/base-layer/configkit/src/tag/v1.4.0/docs/config.md)
owns native behavior. Document the relevant limitations without adding a custom
YAML parser, normalization workaround, arbitrary-precision codec, or fallback
loader in Audita. An upstream fix is pending; it is not a prerequisite for this
release. Future upstream changes can expand support without making today's
limitations permanent Audita restrictions.
Keep schema validity separate from Audita task readiness. Empty collections and Keep schema validity separate from Audita task readiness. Empty collections and
an empty collection map are valid shared data. A selected glossary-correction an empty collection map are valid shared data. A selected glossary-correction
@@ -188,9 +228,10 @@ not part of adoption.
component entry and license material under the [OSS policy](../policy/oss.md) component entry and license material under the [OSS policy](../policy/oss.md)
when copying the upstream assets; the selected original material is CC0-1.0. when copying the upstream assets; the selected original material is CC0-1.0.
- Adapt shared application acquisition, companion loading, runtime composition, - Adapt shared application acquisition, companion loading, runtime composition,
and native sequence-identity selectors to the shared file envelope. Add structural and native sequence-identity selectors to the shared file envelope. Add
and semantic validation at the completed-document boundaries and carry the structural and semantic validation at completed-document boundaries within
validated data into typed consumer views without losing required distinctions. ConfigKit's supported range, and derive consumer views after those checks.
Refactor internal types and loading flow where that simplifies implementation.
- Retain shared acquisition for processing, preflight, and configuration-consuming - Retain shared acquisition for processing, preflight, and configuration-consuming
native commands. Treat glossary-file extensions as data without adding an native commands. Treat glossary-file extensions as data without adding an
instruction-preservation workflow. instruction-preservation workflow.
@@ -198,16 +239,18 @@ not part of adoption.
while preserving their existing behavior. Preserve source evidence and output while preserving their existing behavior. Preserve source evidence and output
collision protection across the adapted load path. collision protection across the adapted load path.
- Replace maintained wrapperless glossary-file examples with shared inputs. - Replace maintained wrapperless glossary-file examples with shared inputs.
Include a generic-domain example and a Narratio-style composition without requiring Include a generic-domain example and a Narratio-style composition without
access to another application's installation. requiring access to another application's installation. Cover single-file
multi-collection and multiple-file arrangements.
- Update the canonical [input contract](../integrations/transcript-glossary-files.md), - Update the canonical [input contract](../integrations/transcript-glossary-files.md),
[configuration](../config.md), [CLI](../cli.md), affected internal guides, and [configuration](../config.md), [CLI](../cli.md), affected internal guides, and
examples. Link upstream for schema and library definitions; document locally examples. Link upstream for schema and library definitions; document locally
the Audita-specific mounting, precedence, selection, and readiness the Audita-specific mounting, precedence, selection, and readiness behavior.
behavior. Update the deferred Narratio adoption description when this work lands. Clearly label partial support and native ConfigKit limitations. Update the
deferred Narratio adoption description when this work lands.
- Write migration guidance and release documentation for the intentional cutover. - Write migration guidance and release documentation for the intentional cutover.
Retire superseded glossary-file format handling rather than adding compatibility shims, Retire superseded glossary-file format handling rather than adding compatibility
automatic legacy conversion, or a second operator-maintained vocabulary. shims, automatic legacy conversion, or a second operator-maintained vocabulary.
These are work areas, not implementation stages. No package layout, additional These are work areas, not implementation stages. No package layout, additional
framework, exact parser sequence, or intermediate compatibility mechanism is framework, exact parser sequence, or intermediate compatibility mechanism is
@@ -220,31 +263,38 @@ workflows under the [testing policy](../policy/testing.md). Control any model
boundary; real Narratio, Notarius, or paid providers are not prerequisites. boundary; real Narratio, Notarius, or paid providers are not prerequisites.
Evidence should establish that: Evidence should establish that:
1. One shared file or multiple ordered shared files are accepted directly in YAML 1. ConfigKit-supported shared YAML and equivalent JSON are accepted directly for
or equivalent JSON, and selected entries reach correction and protection views. one file with one collection, one file with multiple collections, multiple
Generic collections work, and unrelated collections need not exist or be selected. single-collection files, and mixed arrangements. Selected entries reach
correction and protection views. Generic collections work, and unrelated
collections need not exist or be selected.
2. A representative shared spell document can be consumed without an Audita-only 2. A representative shared spell document can be consumed without an Audita-only
vocabulary copy. Defined provenance and irrelevant permitted extensions are vocabulary copy. Defined provenance and irrelevant permitted extensions are
accepted. This demonstrates Audita's boundary, not completion of another accepted within ConfigKit's value support. This demonstrates Audita's boundary,
application's adoption. not completion of another application's adoption.
3. Required fields, nullable and empty cases, malformed known fields, unsupported 3. Required fields, nullable and empty cases, malformed known fields, unsupported
markers, and exact final entry-ID uniqueness follow the adopted contract. markers, and exact final entry-ID uniqueness follow the adopted contract.
Include representative decoding-profile cases and verify that ordinary Use representative cases within ConfigKit's supported range and verify that
validation needs no network access. ordinary validation needs no network access. Schema-valid inputs unsupported
by ConfigKit can fail with normal native diagnostics; tests must not require
broader parsing or numeric support, or freeze those upstream limitations as
permanent application behavior.
4. Repeated files, imports, inheritance, application vocabulary, overlays, and 4. Repeated files, imports, inheritance, application vocabulary, overlays, and
CLI assignment follow native composition. Partial contributions can produce CLI assignment follow native composition. Partial contributions can produce
a valid final document; identity layering and invalid duplicate final entries a valid final document. Multiple complete files do not fail merely because
are tested as distinct cases. they repeat the shared marker. Identity layering and invalid duplicate final
entries are tested as distinct cases.
5. Permitted shared extensions remain data, including an extension named 5. Permitted shared extensions remain data, including an extension named
`instruction`; accepting a shared document does not promote them to executable `instruction`; accepting a shared document does not promote them to executable
prompt guidance. No legacy glossary-instruction behavior is a test requirement. prompt guidance. No legacy glossary-instruction behavior is a test requirement.
6. Empty shared data can be inspected; processing-only missing or empty glossary 6. Empty shared data can be inspected; processing-only missing or empty glossary
selections fail before correction calls in both preflight and processing. selections fail before correction calls in both preflight and processing.
Native inspection and comparison expose consistent effective inputs, with Native inspection and comparison expose consistent effective inputs, with
permitted extensions retained when exposing a shared document. supported extensions retained when exposing a shared document.
7. Maintained examples, supported-contract identification, migration guidance, 7. Maintained examples, supported-contract identification and limitations,
and source/attribution records match the delivered interface. Existing migration guidance, and source/attribution records match the delivered
transcript and corrected-output formats remain unchanged by this adoption. interface. Existing transcript and corrected-output formats remain unchanged
by this adoption.
Consolidate coverage where one behavioral test protects multiple cases. Tests Consolidate coverage where one behavioral test protects multiple cases. Tests
should not freeze incidental loader call order, private Go types, diagnostic should not freeze incidental loader call order, private Go types, diagnostic
@@ -258,15 +308,15 @@ precedence over the usual version-selection rules for this release. Document the
glossary-file cutover and required consumer changes in its release notes; this glossary-file cutover and required consumer changes in its release notes; this
decision does not establish a general exception for later releases. decision does not establish a general exception for later releases.
Retain the `/v4` Go module path. An application vocabulary namespace redesign or Retain the `/v4` Go module path. Expect additive application configuration changes
configuration-version migration is not needed merely to adopt shared files; where needed; the shared file format does not by itself require replacing
avoid adding that work without a concrete benefit. Migration guidance should existing public configuration fields or advancing configuration version 3.
explain the shared envelope, Internal representations and module interfaces can change freely as part of
single and repeated runtime files, companion file changes, and retained adoption. Migration guidance should explain the shared envelope, single and
selection/composition behavior. No glossary-file instruction migration is required. repeated runtime files, companion file changes, composition/selection behavior,
Narratio's adapter migration and the separate and partial-support limits. No glossary-file instruction migration is required.
`audita-pipelines-dnd` recipe updates belong to their own repositories and can Narratio's adapter migration and the separate `audita-pipelines-dnd` recipe updates
target the resulting released interface. belong to their own repositories and can target the resulting released interface.
This work does not change transcript schemas, correction strategy, validator This work does not change transcript schemas, correction strategy, validator
acceptance, retry or repair budgets, chunk scheduling, report formats, or provider acceptance, retry or repair budgets, chunk scheduling, report formats, or provider