Skip to content

Receive transport SPI: native bindings, contexts and dispositions #62

Closed

Description

@thomhurst

Implement the receive-side transport SPI contracts from D23 and design §2.4 using the envelope primitives delivered in #58.

Scope and owned files:

  • IMessageBinding with static abstract body, native header reader, and delivery-count access; reuse IMessageHeaderReader, WireString, HeaderNames, and MessageHeaders<TIncoming,TReader>.
  • Disposition, DispositionKind, DeadLetterInfo; ReceivePipeline<TIncoming,TBinding> single/batch entry points for native adapters, leaving handler dispatch and middleware composition to Consume pipeline: middleware composition, DI scopes and handler invocation #4.
  • Pooled NativeMessage feature and lazy MessageContext.Headers over WireString, retaining no incoming message after pool return.
  • Unit tests and MemoryDiagnoser benchmarks for per-message operations.

Acceptance: a native receive callback can pass its untouched message into the core and receive a disposition to settle natively; headers remain lazy; warmed context/feature reuse allocates 0 B. Do not duplicate the envelope/header API or implement broker fallbacks here.

This is the remaining implementation scope of #55. The shared envelope shipped in #58, send contracts and native configurators in #63, and valued capabilities in #69. Reuse the consume composition shipped in #68. Preserve D23/D24 contracts and the existing zero-allocation acceptance for warmed receive state, features and lazy headers; retain MemoryDiagnoser coverage. The in-memory SPI implementation and transport conformance suite remain tracked by #15 and #17.

Activity

  1. added
    phase-0: core
    area: core
    area: transport
    P0
    on Nov 1, 2026
  2. added
    in-progress
    on Nov 1, 2026
  3. thomhurst commented on Nov 1, 2026

    @thomhurst
    OwnerAuthor

    Flattened #55 into this issue: #60 and #61 have shipped, leaving this receive SPI as the only open child. Preserved the remaining contracts, allocation acceptance and benchmark requirements here, and removed the parent link so this issue remains directly claimable. PR #72 already closes this issue; its review lifecycle is unchanged.

  4. added a commit that references this issue 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

    P0area: corearea: transportin-progressphase-0: core

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions