Preserve native glossary loading error classifications
This commit is contained in:
@@ -123,8 +123,9 @@ Work:
|
||||
explanation records the single CLI override, while preliminary failures retain
|
||||
the library's available file/source diagnostics.
|
||||
8. Keep context cancellation checks and error causes consistent with existing
|
||||
acquisition. Preliminary input failures should use the existing input-error
|
||||
handling; do not classify every application/bootstrap failure as an input error.
|
||||
acquisition. Preliminary loading failures use the existing native diagnostic
|
||||
classification, distinguishing invalid input from operational source failures.
|
||||
Do not classify every preliminary/application/bootstrap failure as an input error.
|
||||
9. Add package-level tests with real ConfigKit for both composition boundaries:
|
||||
two files and an import, matching-ID whole-record replacement, retention of
|
||||
unmatched entries between CLI files, and final configured-list replacement.
|
||||
@@ -168,7 +169,8 @@ Work:
|
||||
destination as the successful counterpart without duplicating all collision
|
||||
combinations already covered by existing tests.
|
||||
5. Cover a missing/malformed runtime input and an empty selected glossary stage
|
||||
as input failures before model work/output preparation. Preserve quiet-mode
|
||||
before model work/output preparation, using native loading classifications
|
||||
and the existing preflight input-error classification. Preserve quiet-mode
|
||||
destination validation and cancellation behavior.
|
||||
|
||||
Acceptance:
|
||||
|
||||
@@ -11,7 +11,14 @@ application code.
|
||||
|
||||
## R1 — Preserve native operational error classification for preliminary loads
|
||||
|
||||
**Priority:** P2. **Stages:** 2–4. **Status:** Open.
|
||||
**Priority:** P2. **Stages:** 2–4. **Status:** Complete.
|
||||
|
||||
**Completion:** Removed the preliminary-load blanket usage classification.
|
||||
Processing now uses native diagnostic classification, matching inspection.
|
||||
Regression coverage distinguishes missing sources, invalid YAML, and empty
|
||||
selected glossaries, retains diagnostics, and checks that transcript/report
|
||||
files are not prepared. Clarified the planning language.
|
||||
Validation: `go test ./internal/cli` passed with Go 1.27.4.
|
||||
|
||||
**Locations:** `internal/cli/process.go:35`,
|
||||
`internal/appconfig/config.go:126`, and
|
||||
|
||||
@@ -218,8 +218,10 @@ retain ConfigKit's available source diagnostics.
|
||||
|
||||
Run ordinary application configuration validation and processing preflight on
|
||||
the final values. Missing files, malformed input, unusable collections, and
|
||||
invalid selections should flow through the existing input-error handling with
|
||||
useful diagnostics. Native inspection remains independent of processing readiness.
|
||||
invalid selections use the existing error handling with useful diagnostics.
|
||||
Native loading diagnostics distinguish invalid input from operational source
|
||||
failures; processing preflight retains its input-error classification.
|
||||
Native inspection remains independent of processing readiness.
|
||||
The override does not bypass earlier ConfigKit parsing, inheritance, or decoding
|
||||
failures. Empty collections remain valid configuration; glossary processing
|
||||
stages still require at least one selected entry under existing preflight rules.
|
||||
|
||||
Reference in New Issue
Block a user