Skip to content

feat(errs): share cross-domain error identities#421

Closed
albertywu wants to merge 1 commit into
wua/platform-error-classification-rfcfrom
wua/platform-version-mismatch-retry
Closed

feat(errs): share cross-domain error identities#421
albertywu wants to merge 1 commit into
wua/platform-error-classification-rfcfrom
wua/platform-version-mismatch-retry

Conversation

@albertywu

@albertywu albertywu commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

Summary

Define ErrNotFound and ErrVersionMismatch in platform/errs for conditions with stable semantics across domains. Migrate SubmitQueue and Stovepipe storage and queue configuration code to use the platform errors directly, and keep only ErrVersionMismatch automatically classified as retryable.

Test Plan

  • make fmt
  • make build
  • make test
  • make lint
  • make check-tidy
  • make check-gazelle

Revert Plan

Revert this commit.

API Changes

Remove domain ErrNotFound and ErrVersionMismatch sentinels plus storage IsNotFound and WrapNotFound helpers. Callers use platform/errs directly.

Monitoring and Alerts

N/A

Issues

Stack

  1. docs(rfc): propose shared platform errors #414
  2. @ feat(errs): share cross-domain error identities #421

@albertywu
albertywu marked this pull request as ready for review July 22, 2026 00:06
@albertywu
albertywu requested review from a team, behinddwalls and sbalabanov as code owners July 22, 2026 00:06
@albertywu
albertywu force-pushed the wua/platform-error-classification-rfc branch from e18feec to e39b834 Compare July 22, 2026 03:55
@albertywu
albertywu force-pushed the wua/platform-version-mismatch-retry branch from e93d3a1 to 26cf446 Compare July 22, 2026 03:55
Summary:
Define ErrNotFound and ErrVersionMismatch in platform/errs for conditions with stable semantics across domains. Migrate SubmitQueue and Stovepipe storage and queue configuration code to use the platform errors directly, and keep only ErrVersionMismatch automatically classified as retryable.

Test Plan:
- make fmt
- make build
- make test
- make lint
- make check-tidy
- make check-gazelle

Revert Plan:
Revert this commit.

API Changes:
Remove domain ErrNotFound and ErrVersionMismatch sentinels plus storage IsNotFound and WrapNotFound helpers. Callers use platform/errs directly.

Monitoring and Alerts:
N/A
@albertywu
albertywu force-pushed the wua/platform-version-mismatch-retry branch from 26cf446 to 95c0783 Compare July 22, 2026 04:33
@albertywu
albertywu force-pushed the wua/platform-error-classification-rfc branch from e39b834 to ef3e591 Compare July 22, 2026 04:33
@albertywu albertywu changed the title feat(errs): classify version mismatches as retryable feat(errs): share cross-domain error identities Jul 22, 2026
@albertywu

Copy link
Copy Markdown
Contributor Author

After exploring a bit I'm coming back in favor of status quo -- classifying errors as retry-able in the controller logic itself vs relying on platform alternatives and duplicating classifiers across services.

Closing out these PRs, don't think it's necessary.

Status quo pattern: storage / extension layers return domain-specific errors, and controller logic classifies as retry-able when returning errors.

@albertywu albertywu closed this Jul 22, 2026
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