From 60a80381a9d851bc1afc027934b6ead333933f9f Mon Sep 17 00:00:00 2001 From: Eric Rakestraw Date: Mon, 23 Nov 2026 02:32:58 +0000 Subject: [PATCH] Record simplified runtime failure classification --- docs/roadmap/library-upgrades.md | 63 +++++++++++++++++--------------- 1 file changed, 34 insertions(+), 29 deletions(-) diff --git a/docs/roadmap/library-upgrades.md b/docs/roadmap/library-upgrades.md index 77dccb0..bf9515e 100644 --- a/docs/roadmap/library-upgrades.md +++ b/docs/roadmap/library-upgrades.md @@ -128,6 +128,29 @@ shared result makes it unnecessary, and update metadata lookups to their native `FromConfigKitSubtree` is available if another concrete configuration scope is needed later; this upgrade does not need additional inspection commands. +### Runtime failure classification + +**Agreed decision:** Remove the embedded-only diagnostic engine construction in +`embeddedAssetOrInputError`. Report the original shared-load or engine failure, +preserving upstream diagnostics, source information, and error causes. Use native +configuration-error classification where available. Retain directly identifiable +application failures, such as inability to access a required embedded asset, +without reconstructing an engine to establish responsibility. + +Validate bundled assets through focused offline tests that load shipped +definitions and check prompt and schema references. These tests protect +structural correctness without freezing prompt wording. Runtime processing +still stops on preparation failure, but Audita need not always distinguish a +bundled defect from an operator-input problem. An unexpected shipped +configuration defect may receive the ordinary configuration-failure +classification; retain the original diagnostic evidence in that case. + +Remove tests dedicated to the retired diagnostic reconstruction, retaining +coverage of original error evidence, native classification, directly identifiable +application failures, and cancellation. Update CLI and subprocess documentation +for any resulting changes to error mapping, and assess release compatibility +under the release policy. + ### Secrets bootstrap Adopt `LoadSecretsIntoEnvironmentFromConfig` in the common configuration @@ -363,7 +386,7 @@ The implementation should cover the following outcomes: - Replace separate PromptKit source assembly with the shared typed load and native inputs; keep source evidence, relative resources, selected overlays, and output protection coherent across both consumers. Apply the error - classification selected in [open decision 2](#2-runtime-classification-of-bundled-asset-failures). + handling selected in [runtime failure classification](#runtime-failure-classification). - Bootstrap configured secrets through the upstream helper before loading, reuse its prepared main, and retain its safe report and native failure facts. - Adapt embedded-schema installation and explicit request contracts, preserving @@ -371,12 +394,12 @@ The implementation should cover the following outcomes: - Adopt native usage reporting and retain useful new metadata in optional debug evidence. Preserve cancellation causes, recoverable timeouts, and joined work. - Remove superseded source assembly, filesystem-context reconstruction, YAML - encode/decode round trips, and redundant accounting projections as their - replacements land. Adopt the agreed diagnostic envelope and native evidence - representation. Remove or consolidate tests that only protect those retired - mechanisms; retain behavioral coverage - for the application contracts they served. Cleanup is a completion outcome of - this upgrade. + encode/decode round trips, the embedded-only diagnostic engine construction, + and redundant accounting projections as their replacements land. Adopt the + agreed diagnostic envelope and native evidence representation. Remove or + consolidate tests that only protect those retired + mechanisms; retain behavioral coverage for the application contracts they + served. Cleanup is a completion outcome of this upgrade. - Update canonical configuration, CLI, operations, LLM integration, and internal documentation plus maintained examples under the ownership and consolidation direction above. Replace duplicated library guidance with canonical upstream @@ -418,8 +441,8 @@ Compatibility is a consideration, not an absolute constraint on the target design. Retain wrapperless companion inputs through native mounting, but avoid compatibility branches whose only purpose is preserving incidental inspection formatting, debug representations, or old loading mechanisms. The agreed debug -format change follows the compatibility assessment described above; -failure-classification changes remain subject to open decision 2 below. +format and failure-classification changes follow the compatibility assessments +described above. Choose the desired application contract first, then assess migration and release impact; a smaller release number is not a reason to retain avoidable complexity. @@ -434,26 +457,8 @@ adoption with the added CLI capability is suitable for a minor release. ## Open Decisions -The following recommendations remain pending discussion; they are not approved -implementation choices. - -### 2. Runtime classification of bundled asset failures - -Should Audita retain the embedded-only engine construction used by -`embeddedAssetOrInputError` after the requested engine fails? - -**Recommendation:** Verify shipped assets through focused tests and use the -original shared load's diagnostics at runtime. Retain the distinction between -bundled defects and operator-input failures if upstream diagnostics expose it -directly. Otherwise, consider simplifying that distinction rather than building -a second engine solely to classify the first failure. Review the resulting CLI -and subprocess error mapping explicitly before changing it. - -**Alternative:** Retain the diagnostic construction and shipped-prompt inspection. -It preserves the existing runtime distinction when the original error cannot -identify responsibility. It also duplicates configuration/engine assembly on the -failure path and must evolve alongside the primary loader. Decide whether the -operational value of that classification warrants the extra mechanism. +The remaining recommendation is pending discussion; it is not an approved +implementation choice. ### 3. Structural-repair default