Skip to content

feat(relay): store webhook payloads alongside the envelope - #6

Merged
jonathanong merged 1 commit into
mainfrom
feat/payload
Nov 10, 2026
Merged

jonathanong merged 1 commit into
mainfrom
feat/payload

Conversation

@jonathanong

Copy link
Copy Markdown
Owner

Stores the webhook payload with each event instead of the envelope alone, so agents get full context without an extra GitHub call.

  • Payloads are pruned, then gzipped into a binary payload attribute.
    • installation is always dropped.
    • repository and organization are dropped by default.
  • New stack parameters:
    • PayloadDrop: comma-separated top-level keys to drop. Empty keeps them.
    • PayloadMaxBytes: default 1 MB of JSON. 0 stores envelopes only.
  • Payloads over the limit, or over 350 KB gzipped (the DynamoDB 400 KB item cap), are omitted, and the item records payloadOmitted: "too_large".
  • GET /events inflates payloads onto each event.
    • payload=0 skips them and returns payloadOmitted: "not_requested".
    • A page stops filling at 5 MB, to stay under the 6 MB function URL response cap. The cursor then resumes after the last returned event.
  • Envelope gains optional payload and payloadOmitted fields.
  • AGENTS.md, README and the design doc no longer say "signals only". Payload text is documented as untrusted.

Test plan: pnpm check passes (74 tests, 100% coverage).

🤖 Generated with Claude Code

https://claude.ai/code/session_01MaU9o1s775q1DoiNSPtC4b

Payloads are gzipped and pruned: installation is always dropped, and
repository/organization are dropped by default. PayloadDrop and
PayloadMaxBytes stack parameters configure this. GET /events inflates
payloads (payload=0 skips them) and stops a page at a 5 MB budget.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MaU9o1s775q1DoiNSPtC4b
@coderabbitai

coderabbitai Bot commented Nov 10, 2026

Copy link
Copy Markdown

Warning

Review limit reached

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

Next included review available in 44 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Free
  • Run ID: dcea0d15-1b1d-4b7c-8f8c-2c01ec3fc385
Commits

Reviewing files that changed from the base of the PR and between 79cdde9 and 0a1813a.

Files selected for processing: 15

  • AGENTS.md
  • README.md
  • docs/design.md
  • packages/protocol/src/types.ts
  • packages/relay/src/events-payload.test.ts
  • packages/relay/src/events.ts
  • packages/relay/src/index.ts
  • packages/relay/src/payload.test.ts
  • packages/relay/src/payload.ts
  • packages/relay/src/template.test.ts
  • packages/relay/src/test-helpers/deps.ts
  • packages/relay/src/types.ts
  • packages/relay/src/webhook.test.ts
  • packages/relay/src/webhook.ts
  • packages/relay/template.yaml
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Note

Summarized by CodeRabbit Free

Your organization is on the Free plan. CodeRabbit will generate a high-level summary and a walkthrough for each pull request. For a comprehensive line-by-line review, please upgrade your subscription to CodeRabbit Essentials by visiting https://app.coderabbit.ai/settings/billing.

@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-10T05:53:45.183786Z
We couldn’t complete this review. Comment @codex review to try again.
0a1813a PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@jonathanong
jonathanong merged commit 951ef6c into main Nov 10, 2026
5 of 6 checks passed
@jonathanong
jonathanong deleted the feat/payload branch November 10, 2026 05:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant