Skip to content

Failure pipeline: classification, retries, redelivery and dead-lettering #9

Closed
1 of 1 issue completed

Description

@thomhurst

Implement the single failure pipeline (design §5, D10) with executable D24 capability integration from #74.

Scope

  • Typed classification rules are extracted into Configure typed exception rules for failure classification #80 and compose through IFailureClassifier. Preserve permanent deserialization/envelope/unknown-contract defaults.
  • Immediate retries in-process with jittered backoff.
  • Delayed redelivery: native within MaxRedeliveryDelay, otherwise a scheduled copy within MaxDeliveryDelay, otherwise an available durable outbox scheduling executor. Complete the original only after the fallback is durable.
  • Dead-lettering: native DeadLetter only when it preserves Relayer error metadata; otherwise an explicitly configured usable dead-letter endpoint. Complete the original only after the copy succeeds.
  • Validate the longest configured redelivery and dead-letter requirements at startup. No fallback passes unless its executor exists. Fail with transport, consumer/source, capability and remedy; no per-message capability discovery.
  • Error metadata: original message ID, attempt count, first/last failure time, consumer, host, and exception type/message/stack for every attempt.
  • Buffer and discard sends from failed attempts, so retries do not duplicate side effects.

Acceptance criteria

  • Tests cover retries, native paths, exact delay boundaries, scheduled-copy/outbox/dead-letter fallbacks, and startup failures when neither native support nor an executor exists.
  • Poison messages never stall a consumer. Settlement follows durable handling; partial fallback failure must not complete the original.
  • Preserve AOT and allocation requirements. Reuse the startup validator shipped in Validate endpoint capabilities and ordering at startup #77 and receive/disposition SPI in feat: add native receive SPI #72.

Dependencies: #5 supplies send execution; #80 supplies typed classifier composition. #62 shipped in #72. #74 is consolidated here so capability validation ships with execution rather than as a waiting issue.

Sub-issues

Sub-issues

1 of 1 Issues completed
Loading 1 sub-issues

Activity

  1. added
    phase-0: core
    area: resiliency
    P1
    on Oct 31, 2026
  2. thomhurst commented on Nov 1, 2026

    @thomhurst
    OwnerAuthor

    Audited origin/main at 54ffc92: #4 / #68 supplies consume dispatch and a durable failure callback, but the retry/redelivery/dead-letter pipeline remains unimplemented. Replaced the shipped #4 prerequisite with the remaining send pipeline #5 and native receive/disposition seam #62, and added native blocked_by links for both. Existing scope and acceptance remain.

  3. added
    in-progress
    on Nov 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1area: resiliencyin-progressphase-0: core

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions