Skip to content

refactor(errors): wire missing From edges into Fault - #113

Open
mfw78 wants to merge 4 commits into
types/t4-typed-errorsfrom
types/t5-from-wiring
Open

refactor(errors): wire missing From edges into Fault#113
mfw78 wants to merge 4 commits into
types/t4-typed-errorsfrom
types/t5-from-wiring

Conversation

@mfw78

@mfw78 mfw78 commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

What

Wires the missing From conversions across the L1 error seams and folds ConfigError/AddressParse into Fault::InvalidInput.
Adds regression tests that pin the fold behaviour for both error types.
Derives the price-alert direction vocabulary with strum instead of hand-rolled matching, and drops a stale issue reference from a code comment.

Why

Closes #50

Seam methods returned typed errors but callers still bridged them by hand with .map_err(...) because the From edges were missing.
Wiring From<ConfigError> for Fault and From<AddressParse> for Fault lets call sites use bare ?, matching the existing ChainError -> Fault reference pattern.

Testing

  • config_error_folds_into_an_invalid_input_fault and address_parse_folds_into_an_invalid_input_fault added to guard the new Fault folds.
  • Reviewed the full diff against types/t4-typed-errors (13 files changed) to confirm no unrelated changes leaked in.

AI Assistance

Implementation: claude-fable-5. Red-team: claude-opus-5. PR: claude-sonnet-5.

mfw78 added 4 commits August 6, 2026 14:36
AI Assistance: Claude Fable 5 used for the From wiring, call-site conversion, and gate runs
AI Assistance: Claude Opus 5 used for the red-team review and fixes
AI Assistance: Claude Opus 5 used for the red-team review and fixes
AI Assistance: Claude Opus 5 used for the red-team review and fixes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant