Add Cloudflare Worker PHP-WASM and remote ZIP gates - #4111
Draft
chubes4 wants to merge 11 commits into
Draft
Conversation
This was referenced Jul 18, 2026
Contributor
Author
|
Stack verification after downstream integration:
The downstream disposable Worker proof restored canonical R2 state, advanced sequentially, serialized concurrent mutations, and reported AI assistance
|
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.
What?
Add an experimental Cloudflare Worker runtime gate for PHP-WASM and filtered remote ZIP ranges.
The Worker proves two independently addressable prerequisites for running WordPress under Cloudflare's 128 MB isolate limit:
decodeRemoteZip()traverses the current WordPress archive's 4,401 central-directory entries and emits onlywp-includes/version.phpthrough HTTP Range requests.Stack
This draft is stacked on #4110, which repairs generic filtered Range decoding. Once #4110 lands, its commits drop out of this diff.
Downstream consumer: Automattic/wp-codebox#1838
Remote evidence
Deployed Worker: https://playground-php-wasm-memory-gate.chubes.workers.dev
/and expect HTTP 200 with PHP 8.5.8 and markercloudflare-php-wasm-memory-gate./?probe=remote-zipand expect HTTP 200 with markercloudflare-remote-zip-range-gate,predicateEntries: 4401,predicateMatches: 1, and pathwordpress/wp-includes/version.php.Verified deployment version:
44c379ba-4d9a-42b8-94cb-c0ddc7140434. This deployment predates the latest telemetry correction; the telemetry workflow is documented and covered locally, but requires a separately authorized deployment for new remote evidence.Testing Instructions
npx nx typecheck playground-cloudflare-worker-memory-gate.npx nx test playground-cloudflare-worker-memory-gate.npx nx lint playground-cloudflare-worker-memory-gate.npm exec -- wrangler deploy --dry-run --config packages/playground/cloudflare-worker/wrangler.jsonc.wrangler tail --format json, and correlate uniquerunquery parameters with invocationCPUTimeMsandWallTimeMs.AI assistance