Skip to content

Platform limits: when the row floor can rise, and a check that fails when the installed pool can hold 8 MB - #3079

Merged
mattzcarey merged 3 commits into
mainfrom
slim/limits-11
Nov 24, 2026
Merged

mattzcarey merged 3 commits into
mainfrom
slim/limits-11

Conversation

@mattzcarey

@mattzcarey mattzcarey commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

design/platform-limits.md now states when the SQLite row floor (SQLITE_ROW_BYTES, 2,000,000) can rise to 8 MB, and what the change that raises it must include. A new test, tests/platform-limits.test.ts, checks the cap of the Vitest pool this repo installs and fails in the change that bumps that pool to an 8 MiB runtime.

The condition is that the Vitest pool and the wrangler this repo installs both ship workerd 1.20260930 or later:

  • wrangler does already (^4.145.0 ships 1.20260930.2)
  • the locked pool does not: @cloudflare/vitest-pool-workers 0.19.1 ships 1.20260730.1, and that package's last release (0.23.0) ships 1.20260815.1, measured at 2,199,995 bytes
  • raising the floor first would make our tests, and every app's tests, fail with SQLITE_TOOBIG on rows production accepts

The test cannot see an upstream release on its own, and it does not check wrangler. The limits owner watches for the release; the renamed pool, @cloudflare/vitest-plugin 1.9.0, ships workerd 1.20261119.1, and the move to it is the next PR. The design note lists the one constant to change, the boundary test per budget, the cost numbers, and the rollback probe that change needs.

The size-error fixtures in sql-error.test.ts and the State capability test now bind 9,000,000 bytes instead of 3,000,000, over every measured cap, so they keep failing on a 4 MiB or 8 MiB pool. The size message is checked against SQLITE_ROW_BYTES instead of a hard-coded "2,000,000".

The pool check binds one value and writes no row. It asserts the floor fits and that 8,000,000 bytes is still refused, and I checked its failure message by lowering the probe size. Those three test files and pnpm run check ran. Tests and docs only, so the changeset is empty and no probe is needed.

@changeset-bot

changeset-bot Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: f891a10

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 0 packages

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

devin-ai-integration[bot]

This comment was marked as resolved.

@pkg-pr-new

pkg-pr-new Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

agents

npm i https://pkg.pr.new/agents@3079

@cloudflare/ai-chat

npm i https://pkg.pr.new/@cloudflare/ai-chat@3079

@cloudflare/codemode

npm i https://pkg.pr.new/@cloudflare/codemode@3079

hono-agents

npm i https://pkg.pr.new/hono-agents@3079

@cloudflare/shell

npm i https://pkg.pr.new/@cloudflare/shell@3079

@cloudflare/think

npm i https://pkg.pr.new/@cloudflare/think@3079

@cloudflare/voice

npm i https://pkg.pr.new/@cloudflare/voice@3079

@cloudflare/worker-bundler

npm i https://pkg.pr.new/@cloudflare/worker-bundler@3079

commit: f891a10

@agent-think

agent-think Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

✅ agents import sizes: no significant changes (cc4a2da1 → f891a10f, workflow run)

@mattzcarey
mattzcarey force-pushed the slim/limits-11 branch 2 times, most recently from a3389ba to 85f1b0f Compare November 23, 2026 23:38
@mattzcarey mattzcarey changed the title Platform limits: when the row floor can rise, and a pool check that fails the day it can Platform limits: when the row floor can rise, and a check that fails when the installed pool can hold 8 MB Nov 23, 2026
devin-ai-integration[bot]

This comment was marked as resolved.

@mattzcarey
mattzcarey force-pushed the slim/limits-11 branch 3 times, most recently from bb797c1 to d3b413b Compare November 24, 2026 04:35
@mattzcarey
mattzcarey force-pushed the slim/limits-11 branch 4 times, most recently from b0f0c91 to dd6ee17 Compare November 24, 2026 07:53
@mattzcarey
mattzcarey merged commit 0a03f7f into main Nov 24, 2026
26 checks passed
@mattzcarey
mattzcarey deleted the slim/limits-11 branch November 24, 2026 10:05
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