Skip to content

Update AI SDK JSON response guards - #45

Merged
tmcfarlane merged 3 commits into
v0.8from
codex/gauntlet-ai-response-limit
Oct 2, 2026
Merged

tmcfarlane merged 3 commits into
v0.8from
codex/gauntlet-ai-response-limit

Conversation

@tmcfarlane

Copy link
Copy Markdown
Owner

The installed AI SDK JSON readers lack the maintainer's declared-response-size guard. Update ai to 6.0.214 and @ai-sdk/openai to 3.0.77, changing only their seven resolved AI-chain dependency records. The new eight-case regression uses the actual Chat and Responses adapters with small streamed fixtures: ordinary success/error controls remain intact, while a declared oversize response is rejected and cancelled before any body bytes are read.

The upstream default is 2 GiB, not an application-sized memory cap. This proof exercises early Content-Length rejection; it does not allocate that volume, test an unadvertised cumulative limit, or establish an attacker-controlled production gateway response. Maintainer advisory.

Validation on the combined v0.8 base 44458fec: all 966 app/API tests passed on Node 20.20.2 with two workers; nonincremental app/API types, scoped lint and the original-config production build passed. All 18 compiled desktop/mobile AI draft and Timeline cases passed with one worker and zero retries. The prior exact before/after regression and refreshed audit are preserved; four scoped AI package findings were removed, and six existing findings remain. Full exact-head CI is required before merge.

These are actual disposable compiled fixtures from the fresh SDK-integrated bundle, showing inherited UI behavior. They are not a live AI-provider request or a human production account.

Desktop Mobile
Compiled AI draft warning desktop Compiled AI draft warning mobile

Full source/artifact/log receipt · All ten screenshot hashes and browser receipt.

@vercel

vercel Bot commented Oct 2, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
zeroclickboards Ready Ready Preview Oct 2, 2026 1:19pm UTC

@tmcfarlane
tmcfarlane merged commit 022803b into v0.8 Oct 2, 2026
8 checks passed

This branch was successfully deployed

1 active deployment
Preview — d535c87b Deployed Oct 2, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant