Skip to content

Correlate outbound responses and failures with their upstream backend #213

Open

Description

@aram356

Description

Applications racing upstream requests need a stable backend/request identifier on every completion so they can attribute both responses and failures. This remains part of the dynamic outbound work tracked in #79.

Steps to reproduce

Inspection steps (no runtime test executed):

  1. Inspect current ProxyClient contract.
  2. Inspect ProxyResponse and the error returned by send.
  3. Look for a portable pending/select result that preserves the caller’s upstream identity on both paths; main has no such contract.

Expected behavior

Every selected or awaited outbound completion identifies the upstream operation that produced it, including when transport or response processing fails.

Impact

Auction orchestration and other fan-out callers cannot use a common portable result to match winning responses and failures back to their upstream provider.

Proposed fix

Carry caller/backend identity through the portable outbound lifecycle, success result and failure result. Coordinate with PR #275 and #436 so this uses the adopted outbound contract rather than introducing a second pending-request API.

Done when

  • The portable outbound API documents how callers associate an operation with an upstream identifier.
  • Awaited and selected/batched successes preserve that identity.
  • Transport and response-processing failures preserve the same identity.
  • Contract tests cover racing success/error completions and repeated requests to one backend.

Related

#79; #436; PR #275 is related unmerged outbound work, not completion evidence.

Activity

  1. added
    enhancement
    on Mar 12, 2026
  2. removed
    enhancement
    on Mar 12, 2026
  3. changed the title [-]Response backend correlation[/-] [+]Correlate outbound responses and failures with their upstream backend[/+] on Nov 9, 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

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions