Plan the Audita adoption sprint

This commit is contained in:
2026-11-09 16:03:16 +00:00
parent 4920393204
commit 0c7622375f
6 changed files with 689 additions and 311 deletions

View File

@@ -9,7 +9,8 @@ entry content fields, and optional stage IDs. Active glossary vocabulary takes
precedence over overlapping protection. Empty collections are permitted, with
Audita preflight rejecting empty glossary stages. Design decisions are resolved;
implementation is pending. The
[master roadmap](library-adoption.md) owns sequencing and release completion.
[master roadmap](library-adoption.md) owns release completion; the
[implementation plan](implementation.md) owns sequencing.
## Baseline and Target
@@ -401,8 +402,7 @@ sources, resolve configuration, restore defaults, or change stage inheritance.
Keep the nonempty glossary-stage check in Audita preflight rather than ConfigKit's
configuration-validation callbacks.
Implement this phase in an expressly named `internal/framework/preflight`
package, established during CommandKit adoption and extended by this feature.
The shared `internal/framework/preflight` package owns this phase.
Accept fully resolved configuration and the domain inputs needed for
readiness checks through ordinary Go functions and concrete inputs. Return
errors identifying the affected stage and reason; CLI presentation remains with
@@ -817,44 +817,15 @@ exceptions need a domain rationale. Link to the durable policy rather than copy
the field inventory into multiple developer documents. This documentation work
is part of feature acceptance, not an optional follow-up.
## Sequencing and Work Outline
## Integrated Target
Implement after ConfigKit, PromptKit, CommandKit, and ReleaseKit adoption, and
before final release validation and preparation. This lets the feature use the
adopted configuration and CLI conventions and avoids adapting it twice. Keep the
requirement visible during library design without expanding those migrations
into feature implementation. CommandKit adoption establishes the common preflight
package and output preparation; this feature adds glossary-specific readiness
checks to that phase.
1. Apply named collection selection, default file/directory underlay imports,
recursive placement, and the extensible entry content contract. Apply native
CLI list conventions and the selected stage identity and attribution rules.
Preserve the selected scope, clearing, CLI precedence, and fallback semantics
in version 3.
2. Adopt ConfigKit loading for glossary configuration. Register the selected
collection identities, validate configuration contracts, and deliver final typed
definitions and selections before transcript processing. Remove the redundant
standalone YAML parser and local composition path.
3. Extend `internal/framework/preflight`, established during CommandKit adoption,
with the glossary-stage readiness check after configuration handoff. Reject any
glossary stage whose selected collections supply no entries before output
resource preparation or stage execution. Return readiness errors for CLI
presentation, permit empty collection definitions, and preserve inspection
access to them.
4. Derive rich LLM inputs, deduplicated protection vocabulary, and glossary-stage
exemptions from resolved configuration. Route the appropriate views through
proposal generation and validators without mutating configuration or other
stages. Preserve source attribution for diagnostics and inspection.
5. Verify native composition and the domain behavior together. Account for all
consumed configuration sources in input handling and output-collision
protection. Make repeated stages and their selected collections understandable
in inspection, diagnostics, and reports using optional IDs alongside position
and module identity.
6. Update configuration, CLI, input contracts, pipeline documentation, maintained
examples, and hard-cutover guidance as implementation lands. Complete the ADR,
durable policy, and future-setting classification guidance above. No runtime
compatibility layer for the old glossary file format is required.
The glossary feature uses the adopted ConfigKit and CommandKit conventions and
the shared preflight/output-session boundary. It replaces the standalone glossary
input and parsing path with typed, composed configuration. Runtime consumers
receive derived per-stage views from that handoff; reports identify the stage
and configuration inspection explains its effective selections and origins.
Consumed glossary sources participate in output-collision protection. Maintained
examples and hard-cutover guidance describe the new configuration contract.
## Acceptance Direction