Shared failed-task structured-error reader + BuildFailureError pattern task (3.10.0 backport) - #224
Merged
Merged
Conversation
ognjenkatic
force-pushed
the
CxODEV-1875-failed-task-error-reader-v3
branch
5 times, most recently
from
August 26, 2026 18:15
952c81a to
bcef6c0
Compare
…n task Extracts the deepest-failed-task descent and the structured_error harvest (UNCLASSIFIED fallback, sanitized reason, diagnostic message) that consumers of the contract were each re-implementing. Engine ships the reader (DI-registered); Patterns ships a generic BuildFailureError worker for failure workflows. Boundary concerns stay with callers - the sanitized generic reason is a parameter, not baked in. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
ognjenkatic
force-pushed
the
CxODEV-1875-failed-task-error-reader-v3
branch
from
August 26, 2026 18:16
bcef6c0 to
78076c4
Compare
An out parameter rules out async, so the method is synchronous and blocks on the underlying Conductor call. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
ognjenkatic
force-pushed
the
CxODEV-1875-failed-task-error-reader-v3
branch
from
August 27, 2026 07:15
0659ee3 to
5e38c73
Compare
…e naming Consumers read the contract through FailedTaskStructuredErrorReader and produce it by throwing StructuredErrorException; nobody outside the assembly needs the serializer itself. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport of #223 to the
v3line (cherry-pick; identical source change — see #223 for the full description).Extracts the deepest-failed-task descent +
structured_errorharvest that contract consumers were each re-implementing:FailedTaskStructuredErrorReaderin Engine (TryReadAsync+ReadOrFallbackAsyncwithUNCLASSIFIEDfallback, DI-registered),StructuredError.UnclassifiedCode, and theBuildFailureErrorPatterns worker — registered under the shared task name: the task is a stateless read-only lookup, so multiple services polling one queue is safe by design (Conductor task domains remain the lever if poller isolation is ever needed).Versions 3.9.0 → 3.10.0 for the four packages released on this line; Toolkit stays at
3.0.1-beta3. Tests 70/70 green.🤖 Generated with Claude Code