Clarify shared glossary scope and ConfigKit limits
This commit is contained in:
@@ -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
|
||||
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
|
||||
instruction workflows.
|
||||
instruction workflows. Initial shared-schema support is partial, bounded by the
|
||||
capabilities of the adopted ConfigKit version.
|
||||
|
||||
## 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),
|
||||
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
|
||||
distribution, with their provenance and applicable licensing material. Register
|
||||
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
|
||||
|
||||
### 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
|
||||
|
||||
`--glossary-file PATH` accepts the shared `schema_version` and `collections`
|
||||
envelope in YAML or equivalent JSON. One occurrence supplies a single file;
|
||||
repeated occurrences supply multiple 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.
|
||||
envelope in ConfigKit-supported YAML or equivalent JSON. Support one file with
|
||||
one or multiple collections, several files each containing one collection, and
|
||||
mixtures of files containing different numbers of collections. One flag occurrence
|
||||
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
|
||||
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
|
||||
missing required shared fields merely to make a supplied document pass.
|
||||
|
||||
Retain the existing runtime composition model: compose the ordered runtime
|
||||
sources and their imports, then apply the resulting shared data through native
|
||||
application assignment. Preserve native entry-list replacement at that
|
||||
assignment, unrelated configured collections, and native handling of omitted,
|
||||
empty, and null values, subject to validity of the resulting document. Runtime
|
||||
inheritance need not gain access to parents defined only in application
|
||||
configuration, and application structural inheritance need not rerun after CLI
|
||||
assignment. Do not introduce a separate Narratio merge or collision policy.
|
||||
Use ConfigKit's ordered layers for complete selected documents. Their repeated
|
||||
`schema_version` values must not be forced into a strict peer-import group,
|
||||
where ConfigKit would reject overlapping scalar definitions even when equal.
|
||||
Authoring fragments can still use native imports and their normal strict
|
||||
composition rules. Automatic glossary companions should also use the shared
|
||||
envelope; adapt their acquisition to complete-document layering rather than
|
||||
preserve the current import grouping mechanically.
|
||||
|
||||
Use application configuration version 3 and its `glossary_collections` vocabulary
|
||||
namespace as the implementation starting point. Validated shared collections
|
||||
can be adapted into that consumer model; adopting the external contract does not
|
||||
require renaming application fields. This is a simplification recommendation,
|
||||
not a requirement to preserve an internal representation if adoption benefits
|
||||
from changing it.
|
||||
Automatic glossary companions should also use the shared envelope, with loading
|
||||
adapted to its structure and existing native companion precedence. Use the same
|
||||
acquisition path for all commands accepting runtime glossary files. Preserve the
|
||||
shared representation where needed for validation or forwarding; processing
|
||||
views may project only the fields they use.
|
||||
Preserve the runtime vocabulary's CLI priority over configured vocabulary,
|
||||
native entry-list replacement at the CLI assignment boundary, unrelated
|
||||
configured collections, and native handling of omitted, empty, and null values,
|
||||
subject to validity of the resulting shared data. No additional cross-source
|
||||
inheritance behavior or Narratio-specific merge policy is required. The current
|
||||
preliminary-load/final-load arrangement is an implementation starting point,
|
||||
not a required sequence of internal operations.
|
||||
|
||||
Application configuration version 3 and its `glossary_collections` namespace
|
||||
remain the public starting point. Refactor the internal representation freely
|
||||
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
|
||||
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
|
||||
|
||||
Apply the pinned structural schema, semantic rules, and completed-document
|
||||
decoding profile. In particular:
|
||||
Apply the pinned structural schema and semantic rules to completed shared data
|
||||
within ConfigKit's supported input range. In particular:
|
||||
|
||||
- Preserve the contract's required-field, omitted, null, and empty distinctions,
|
||||
including nullable aliases and plural forms. Do not trim, case-fold, coerce,
|
||||
or default shared values as a schema-repair step.
|
||||
- Accept permitted extensions at envelope, collection, provenance, and entry
|
||||
levels. Preserve them when forwarding a shared document; internal task views
|
||||
can select only the fields they use. Acceptance does not imply interpretation,
|
||||
and serialization formatting need not be preserved.
|
||||
levels when their values are supported by ConfigKit. Retain those extensions
|
||||
when forwarding a shared document, subject to native value representation;
|
||||
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
|
||||
comparison. IDs can repeat across different collections. Do not add uniqueness
|
||||
requirements for display names, aliases, or categories, or confuse legitimate
|
||||
native layering of an identity with duplicate final entries.
|
||||
- Respect the upstream decoding profile, including duplicate mapping-key and
|
||||
numeric-value handling. Check the actual ConfigKit/parser behavior at the
|
||||
handoff rather than assuming that using the same YAML library proves
|
||||
conformance. Resolve any substantive upstream gap explicitly instead of
|
||||
silently accepting a narrower glossary format or adding a competing loader.
|
||||
- Use ConfigKit's parsing and decoding behavior, including its native failure
|
||||
diagnostics, rather than implementing the upstream harness's broader YAML
|
||||
profile locally. Schema validity alone does not override native limitations.
|
||||
|
||||
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
|
||||
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)
|
||||
when copying the upstream assets; the selected original material is CC0-1.0.
|
||||
- Adapt shared application acquisition, companion loading, runtime composition,
|
||||
and native sequence-identity selectors to the shared file envelope. Add structural
|
||||
and semantic validation at the completed-document boundaries and carry the
|
||||
validated data into typed consumer views without losing required distinctions.
|
||||
and native sequence-identity selectors to the shared file envelope. Add
|
||||
structural and semantic validation at completed-document boundaries within
|
||||
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
|
||||
native commands. Treat glossary-file extensions as data without adding an
|
||||
instruction-preservation workflow.
|
||||
@@ -198,16 +239,18 @@ not part of adoption.
|
||||
while preserving their existing behavior. Preserve source evidence and output
|
||||
collision protection across the adapted load path.
|
||||
- Replace maintained wrapperless glossary-file examples with shared inputs.
|
||||
Include a generic-domain example and a Narratio-style composition without requiring
|
||||
access to another application's installation.
|
||||
Include a generic-domain example and a Narratio-style composition without
|
||||
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),
|
||||
[configuration](../config.md), [CLI](../cli.md), affected internal guides, and
|
||||
examples. Link upstream for schema and library definitions; document locally
|
||||
the Audita-specific mounting, precedence, selection, and readiness
|
||||
behavior. Update the deferred Narratio adoption description when this work lands.
|
||||
the Audita-specific mounting, precedence, selection, and readiness behavior.
|
||||
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.
|
||||
Retire superseded glossary-file format handling rather than adding compatibility shims,
|
||||
automatic legacy conversion, or a second operator-maintained vocabulary.
|
||||
Retire superseded glossary-file format handling rather than adding compatibility
|
||||
shims, automatic legacy conversion, or a second operator-maintained vocabulary.
|
||||
|
||||
These are work areas, not implementation stages. No package layout, additional
|
||||
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.
|
||||
Evidence should establish that:
|
||||
|
||||
1. One shared file or multiple ordered shared files are accepted directly in YAML
|
||||
or equivalent JSON, and selected entries reach correction and protection views.
|
||||
Generic collections work, and unrelated collections need not exist or be selected.
|
||||
1. ConfigKit-supported shared YAML and equivalent JSON are accepted directly for
|
||||
one file with one collection, one file with multiple collections, multiple
|
||||
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
|
||||
vocabulary copy. Defined provenance and irrelevant permitted extensions are
|
||||
accepted. This demonstrates Audita's boundary, not completion of another
|
||||
application's adoption.
|
||||
accepted within ConfigKit's value support. This demonstrates Audita's boundary,
|
||||
not completion of another application's adoption.
|
||||
3. Required fields, nullable and empty cases, malformed known fields, unsupported
|
||||
markers, and exact final entry-ID uniqueness follow the adopted contract.
|
||||
Include representative decoding-profile cases and verify that ordinary
|
||||
validation needs no network access.
|
||||
Use representative cases within ConfigKit's supported range and verify that
|
||||
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
|
||||
CLI assignment follow native composition. Partial contributions can produce
|
||||
a valid final document; identity layering and invalid duplicate final entries
|
||||
are tested as distinct cases.
|
||||
a valid final document. Multiple complete files do not fail merely because
|
||||
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
|
||||
`instruction`; accepting a shared document does not promote them to executable
|
||||
prompt guidance. No legacy glossary-instruction behavior is a test requirement.
|
||||
6. Empty shared data can be inspected; processing-only missing or empty glossary
|
||||
selections fail before correction calls in both preflight and processing.
|
||||
Native inspection and comparison expose consistent effective inputs, with
|
||||
permitted extensions retained when exposing a shared document.
|
||||
7. Maintained examples, supported-contract identification, migration guidance,
|
||||
and source/attribution records match the delivered interface. Existing
|
||||
transcript and corrected-output formats remain unchanged by this adoption.
|
||||
supported extensions retained when exposing a shared document.
|
||||
7. Maintained examples, supported-contract identification and limitations,
|
||||
migration guidance, and source/attribution records match the delivered
|
||||
interface. Existing transcript and corrected-output formats remain unchanged
|
||||
by this adoption.
|
||||
|
||||
Consolidate coverage where one behavioral test protects multiple cases. Tests
|
||||
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
|
||||
decision does not establish a general exception for later releases.
|
||||
|
||||
Retain the `/v4` Go module path. An application vocabulary namespace redesign or
|
||||
configuration-version migration is not needed merely to adopt shared files;
|
||||
avoid adding that work without a concrete benefit. Migration guidance should
|
||||
explain the shared envelope,
|
||||
single and repeated runtime files, companion file changes, and retained
|
||||
selection/composition behavior. No glossary-file instruction migration is required.
|
||||
Narratio's adapter migration and the separate
|
||||
`audita-pipelines-dnd` recipe updates belong to their own repositories and can
|
||||
target the resulting released interface.
|
||||
Retain the `/v4` Go module path. Expect additive application configuration changes
|
||||
where needed; the shared file format does not by itself require replacing
|
||||
existing public configuration fields or advancing configuration version 3.
|
||||
Internal representations and module interfaces can change freely as part of
|
||||
adoption. Migration guidance should explain the shared envelope, single and
|
||||
repeated runtime files, companion file changes, composition/selection behavior,
|
||||
and partial-support limits. No glossary-file instruction migration is required.
|
||||
Narratio's adapter migration and the separate `audita-pipelines-dnd` recipe updates
|
||||
belong to their own repositories and can target the resulting released interface.
|
||||
|
||||
This work does not change transcript schemas, correction strategy, validator
|
||||
acceptance, retry or repair budgets, chunk scheduling, report formats, or provider
|
||||
|
||||
Reference in New Issue
Block a user