Install full agent stack in public Playground blueprint#313
Merged
Conversation
Installs and activates Markdown Database Integration, Agents API, Data Machine, Data Machine Code, AI Provider for OpenAI, and the world plugin alongside the existing world theme. Data Machine and Data Machine Code install from their latest GitHub Release ZIP (the homeboy release-asset workflow publishes vendor-bundled distributables on every release tag). The other plugins install from git:directory at main/trunk because they have no runtime composer deps. Plugin install order is deliberate so each plugin's activation hook sees its dependencies already loaded: MDI db.php drop-in first, then MDI plugin, then Agents API, then Data Machine, then Data Machine Code, then AI Provider for OpenAI, then the world plugin, then the world theme, then content seeding. The public Playground is now the same runtime the World Creator wakes into during a day cycle.
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.
Summary
The public Playground blueprint installed only the world plugin + the MDI
db.phpdrop-in. A visitor opening the Playground saw a WordPress site running a theme — not the agent runtime the World Creator wakes into during a CI cycle.This PR makes the public Playground install and activate the full agent stack so the visible terrarium and the agent's runtime are the same site.
What changes
blueprints/world.jsondb.phpdrop-in is written before any plugin install so plugin activation runs against MDI's SQLite-backed wpdb from the start (instead of activation running on Playground's default SQLite shim and then having MDI's drop-in take over later).releases/latest/download/<plugin>.zip). The homeboy release-asset workflow on both repos publishes vendor-bundled distributables on every release. The other plugins install fromgit:directorybecause they have no runtime composer deps.README.mdWhat the agent will perceive
With the full stack active, the agent's wake-up context surfaces match the new reality:
SITE.md— its auto-generated## Active Pluginssection will list MDI, Agents API, Data Machine Code, AI Provider for OpenAI, and the world plugin (Data Machine itself is intentionally skipped by DM's own site-section generator since it's always active and adds noise).WORLD_PERCEPTIONdirective — itssection_runtimelists active plugins with names and folder slugs;section_substratecounts registered abilities by namespace (datamachine/*,agents/*) and lists REST namespaces. The agent sees concrete numbers for what's hosting it.section_substratealready says"You are an autonomous agent hosted on Data Machine, running inside a WordPress Playground instance..."— and now that's true for the public Playground too, not just the CI runtime.Why the agents-api class-load works alongside DM's vendored copy
Agents API's plugin entry guards with
if ( defined( 'AGENTS_API_LOADED' ) ) { return; }. DM bundles agents-api source undervendor/automattic/agents-api/for autoload, but at runtime, whichever copy loads first defines the constant; the other returns early. Both paths coexist safely.Verification
The blueprint is theoretically complete but the headless
wp-playground-clitest was inconclusive on my machine (process exited silently after WordPress download started — likely a local PHP-WASM environment issue, not a blueprint issue). The real verification is opening the Playground in a browser:https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/chubes4/world-of-wordpress/full-runtime-blueprint-v2/blueprints/world.json
A successful boot lands on a WordPress site with the World Creator theme active and the agent stack installed under
wp-admin > Plugins.Dependency
This PR depends on Extra-Chill/data-machine#2031 + #2034 and Extra-Chill/data-machine-code#408 + #409, all of which are merged. The release-asset workflows have already produced
data-machine.zipfor v0.116.1 anddata-machine-code.zipfor v0.42.0 — the URLs in this blueprint are live.AI assistance