Skip to content

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

Merged
mfw78 merged 4 commits into
mainfrom
types/t5-from-wiring
Aug 11, 2026
Merged

refactor(errors): wire missing From edges into Fault#113
mfw78 merged 4 commits into
mainfrom
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
mfw78 force-pushed the types/t4-typed-errors branch from 1edc1d9 to 4aab410 Compare August 11, 2026 03:15
@mfw78
mfw78 force-pushed the types/t5-from-wiring branch from 7ad89f3 to 6b402a0 Compare August 11, 2026 03:15
@mfw78
mfw78 force-pushed the types/t4-typed-errors branch from 4aab410 to 7026e74 Compare August 11, 2026 03:34
@mfw78
mfw78 force-pushed the types/t5-from-wiring branch from 6b402a0 to 162689e Compare August 11, 2026 03:34
@mfw78
mfw78 force-pushed the types/t4-typed-errors branch from 7026e74 to 141847f Compare August 11, 2026 05:14
@mfw78
mfw78 force-pushed the types/t5-from-wiring branch from 162689e to 7447e7c Compare August 11, 2026 05:14
Base automatically changed from types/t4-typed-errors to main August 11, 2026 05:33
mfw78 added 4 commits August 11, 2026 05:34
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
@mfw78
mfw78 force-pushed the types/t5-from-wiring branch from 7447e7c to 3a73dea Compare August 11, 2026 05:34
@mfw78
mfw78 merged commit 9cfda4f into main Aug 11, 2026
4 checks passed
@mfw78
mfw78 deleted the types/t5-from-wiring branch August 11, 2026 05:54
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.

errors: right-size seam error types and wire From conversions

1 participant