Repository navigation
[factory] Delivery options: envelope, deliveryHeaders, nonRetryableStatuses — pr-open - #60
Open
NickolasBenakis wants to merge 2 commits into
Open
NickolasBenakis wants to merge 2 commits into
NickolasBenakis wants to merge 2 commits into
Conversation
For receivers with their own delivery conventions, such as MCP Events webhook mode: send the payload as the body, add per-attempt headers, and fail a delivery at once on statuses like 410 without hurting endpoint health. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
NickolasBenakis
marked this pull request as ready for review
November 13, 2026 21:34
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Three delivery options for receivers with their own conventions. MCP Events webhook mode (SEP-3415) needs all three; they're general enough to stand alone.
envelope: falsesends the payload itself as the signed body, instead of{"type","timestamp","data"}.deliveryHeaders(delivery)adds request headers per attempt, e.g. a routing id. It can't setcontent-type,user-agentorwebhook-*; if it throws, the attempt fails and is retried.nonRetryableStatuses(e.g.[410, 413]) fails a delivery on the first such response and leaves the endpoint's health alone, since the receiver answered.Defaults are unchanged, so existing deliveries behave exactly as before.
Verification
pnpm typecheck,pnpm lint,pnpm test: 347 tests pass, 10 of them new intest/delivery-options.test.ts.Decision Log
envelopeis applied when a worker builds the body, so the workers' setting is what counts (documented).nonRetryableStatuses.Follow-ups
🤖 Generated with Claude Code