refactor(firmware): classify firmware failures through the shared provider classifier (#10810)

Firmware producers now report their own deadline expiry: the start check, the output inventory and launcher admission throw the phase timeout where they observe the abort, and a read the phase signal cancelled reports it through the dialect's interruption. The classifier no longer rereads a cancellation's reason as a timeout. A new readCleanup hook keeps firmware's cleanup report shape.
This commit is contained in:
morluto authored and GitHub committed 2026-11-15 14:27:49 +08:00
1 parent 73d31fdf30
commit 890eccf360
11 files changed
+377 -188

No files matched your search

+7 -1
View File
@@ -274,7 +274,13 @@ one entry for a raw failure: typed analysis errors pass through, command
outcomes go to `classifyProviderOutcome`, selected-file failures go to the
shared stable-artifact projections, and only what none of them recognises
reaches the provider's `unclassified` report. A provider supplies a dialect,
not a classifier. The `rea/provider-failure-classifier` lint rule keeps new
not a classifier. A phase that armed its own deadline throws that deadline's
timeout where it observes the abort; for a read its signal cancelled, it
supplies the timeout as the dialect's `interruption`, so classification never
rereads a cancellation's reason as a timeout. A provider whose cleanup report
has its own shape supplies `readCleanup` or `commandCleanup`; otherwise the
unresolved cleanup is attached to the reported failure. The
`rea/provider-failure-classifier` lint rule keeps new
`(cause: unknown) => AnalysisError` functions out of `src/` except in that
owner; existing ones are counted in a baseline that may only shrink.