feat(runtime): add native PHP backend - #2475
Open
chubes4 wants to merge 9 commits into
Open
Conversation
chubes4
marked this pull request as ready for review
September 3, 2026 19:13
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.
Closes #2473
Summary
wordpress-nativebackend with a built-in contained Docker driver, alongside optionalbackendPackagedriver injectionwordpress.run-php,wordpress.browser-actions, andwordpress.benchcommands select Playground or native executionlinux/amd64WordPress/PHP 8.4 Apache container with persistent OPcache and two prefork workers, plus a disposable tmpfs MariaDB sidecarsteps-jsonbrowser interactions with a real form loginLive verification on a Docker runner
npm run test:native-docker-runtimepassed against real containers (runswp-codebox-2473-native-docker-live-3e41c332andwp-codebox-2473-native-live-evidence-563f7d52).Captured evidence:
navigateandexpect #wpadminbarbothpassedafter an authenticatedwp-login.phpsubmissioncoldStartupMs: 3785,warmNoopPhpMs: 54,dynamicWordPressRequestMs: 32For reference, #2473 measured Playground at 34.8 s cold and 0.5–0.7 s warm for stock WordPress, so this backend provides the intended performance lane.
Other verification
npm run buildnpm run test:native-runtimenpm run test:runtime-servicesnpm run checkgit diff --checkKnown limitations
trusted-containment-tools-unavailablerather than falling back to host PHP.npm run checkalso exercisestests/agent-runtime-components.test.ts, which is sensitive to locally discovered components outside this change.AI assistance: OpenCode with openai/gpt-5.6-terra and openai/gpt-5.6-sol was used to inspect the runtime architecture, implement the backend, and run live containerized verification.