Skip to content

refactor(errors): standardize safe unknown-error normalization - #371

Merged
karagozemin merged 3 commits into
Sub-Rosa-Issue:mainfrom
emirykl:codex/238-normalized-errors
Sep 10, 2026
Merged

karagozemin merged 3 commits into
Sub-Rosa-Issue:mainfrom
emirykl:codex/238-normalized-errors

Conversation

@emirykl

@emirykl emirykl commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

Standardize first-party error conversion on @sub-rosa/logging/errors, preserving domain exceptions and their causes while separating operator diagnostics from fixed HTTP/UI messages. Add recursive credential redaction and bounded handling of cycles, bigint, hostile accessors, proxies and nested causes. Migrate runtime, UI and operational catch boundaries; document the inventory and enforce it with an AST guard in CI.

Closes #238.

Validation: all affected workspace test suites and pnpm -r --if-present typecheck passed; pnpm errors:normalize:test, pnpm errors:normalize:check, and the logging guard passed. Existing tlock tests read public Drand data; no live payments or transaction submissions were performed. Keeper tests now assert safe public failure copy and consistent plain-object normalization.

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.

refactor(errors): standardize unknown-error normalization across the repository

2 participants