internal(defers): improve defer validation (#4649)
## Description - Before persisting an event's session meta, let's ensure we aren't stuffing in too much data - With other session entry points, we do our resolved validation before persisting, which would catch wildly large sessions. With defers however, we persist once before resolving and then persisting again as the triggering event. We add this new validation to protect our first persistence. - We also check for a valid JSON shape before persistence - EXE-2035 <!-- What changed? Include screenshots if you modify the UI. --> ## Release note <!-- User-facing release note. Use "None" if this does not need release notes. --> None. ## Migration note <!-- Upgrade, deployment, config, schema, or compatibility notes. Use "None" if none. --> None. *[Check our Pull Request Guidelines](https://github.com/inngest/inngest/blob/main/docs/PULL_REQUEST_GUIDELINES.md)* --- <sub>Stack created with <a href="https://github.com/github/gh-stack">GitHub Stacks CLI</a> • <a href="https://gh.io/stacks-feedback">Give Feedback 💬</a></sub> --------- Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
S
Scott Numamoto committed
ae23a0410633056d6cc7d8173d718be3b9fbcf49
Parent: 77aa1c0
Committed by GitHub <noreply@github.com>
on 8/5/2026, 4:59:28 PM