Record simplified runtime failure classification
This commit is contained in:
@@ -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
|
`FromConfigKitSubtree` is available if another concrete configuration scope is
|
||||||
needed later; this upgrade does not need additional inspection commands.
|
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
|
### Secrets bootstrap
|
||||||
|
|
||||||
Adopt `LoadSecretsIntoEnvironmentFromConfig` in the common configuration
|
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
|
- Replace separate PromptKit source assembly with the shared typed load and
|
||||||
native inputs; keep source evidence, relative resources, selected overlays,
|
native inputs; keep source evidence, relative resources, selected overlays,
|
||||||
and output protection coherent across both consumers. Apply the error
|
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,
|
- Bootstrap configured secrets through the upstream helper before loading,
|
||||||
reuse its prepared main, and retain its safe report and native failure facts.
|
reuse its prepared main, and retain its safe report and native failure facts.
|
||||||
- Adapt embedded-schema installation and explicit request contracts, preserving
|
- 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
|
- Adopt native usage reporting and retain useful new metadata in optional debug
|
||||||
evidence. Preserve cancellation causes, recoverable timeouts, and joined work.
|
evidence. Preserve cancellation causes, recoverable timeouts, and joined work.
|
||||||
- Remove superseded source assembly, filesystem-context reconstruction, YAML
|
- Remove superseded source assembly, filesystem-context reconstruction, YAML
|
||||||
encode/decode round trips, and redundant accounting projections as their
|
encode/decode round trips, the embedded-only diagnostic engine construction,
|
||||||
replacements land. Adopt the agreed diagnostic envelope and native evidence
|
and redundant accounting projections as their replacements land. Adopt the
|
||||||
representation. Remove or consolidate tests that only protect those retired
|
agreed diagnostic envelope and native evidence representation. Remove or
|
||||||
mechanisms; retain behavioral coverage
|
consolidate tests that only protect those retired
|
||||||
for the application contracts they served. Cleanup is a completion outcome of
|
mechanisms; retain behavioral coverage for the application contracts they
|
||||||
this upgrade.
|
served. Cleanup is a completion outcome of this upgrade.
|
||||||
- Update canonical configuration, CLI, operations, LLM integration, and internal
|
- Update canonical configuration, CLI, operations, LLM integration, and internal
|
||||||
documentation plus maintained examples under the ownership and consolidation
|
documentation plus maintained examples under the ownership and consolidation
|
||||||
direction above. Replace duplicated library guidance with canonical upstream
|
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
|
design. Retain wrapperless companion inputs through native mounting, but avoid
|
||||||
compatibility branches whose only purpose is preserving incidental inspection
|
compatibility branches whose only purpose is preserving incidental inspection
|
||||||
formatting, debug representations, or old loading mechanisms. The agreed debug
|
formatting, debug representations, or old loading mechanisms. The agreed debug
|
||||||
format change follows the compatibility assessment described above;
|
format and failure-classification changes follow the compatibility assessments
|
||||||
failure-classification changes remain subject to open decision 2 below.
|
described above.
|
||||||
Choose the desired application contract first, then assess migration and release
|
Choose the desired application contract first, then assess migration and release
|
||||||
impact; a smaller release number is not a reason to retain avoidable complexity.
|
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
|
## Open Decisions
|
||||||
|
|
||||||
The following recommendations remain pending discussion; they are not approved
|
The remaining recommendation is pending discussion; it is not an approved
|
||||||
implementation choices.
|
implementation choice.
|
||||||
|
|
||||||
### 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.
|
|
||||||
|
|
||||||
### 3. Structural-repair default
|
### 3. Structural-repair default
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user