Skip to content

Add Playground CI agent proof#48

Merged
chubes4 merged 7 commits intomainfrom
feat/playground-ci-proof
May 7, 2026
Merged

Add Playground CI agent proof#48
chubes4 merged 7 commits intomainfrom
feat/playground-ci-proof

Conversation

@chubes4
Copy link
Copy Markdown
Owner

@chubes4 chubes4 commented May 7, 2026

Summary

  • Adds Stage 5 Playground proof for running the imported Data Machine idea agent entirely inside CI.
  • Adds a manual GitHub Actions workflow that boots WordPress Playground 7.0, loads Data Machine, Data Machine Code, and the OpenAI provider, then runs the agent with GPT-5.5 and publishes a GitHub issue.
  • Removes the legacy wc-blueprint-agent bundle and reframes the repo around the two-agent loop: wc-idea-agent plus downstream wc-static-site-agent.
  • Keeps secrets in Actions runtime via OPENAI_API_KEY and GITHUB_TOKEN.

Testing

  • bash -n tests/playground-ci/scripts/run-stage-1.sh tests/playground-ci/scripts/run-stage-2.sh tests/playground-ci/scripts/run-stage-3.sh tests/playground-ci/scripts/run-stage-4.sh tests/playground-ci/scripts/run-stage-5.sh
  • php -l tests/playground-ci/workloads/dm-boot-probe.php && php -l tests/playground-ci/workloads/dm-import-agent-probe.php && php -l tests/playground-ci/workloads/dm-run-flow-probe.php && php -l tests/playground-ci/workloads/dm-github-issue-publish-probe.php && php -l tests/playground-ci/workloads/dm-openai-issue-flow-probe.php
  • Idea-agent bundle JSON parse validation
  • git diff --check
  • git grep -n -E "blueprint|Blueprint|wc-blueprint|wc-store-blueprints|blueprints/" -- . ":!.git" returned no tracked matches
  • Local Stage 5 proof passed with gpt-5.5, creating [Playground proof] Stage 5 OpenAI issue 20260506233629-7102d5 — CI proof from Playground #47

Notes

  • Stage 5 now defaults Data Machine, Data Machine Code, and Homeboy Extensions refs to main.
  • GitHub cannot dispatch a newly added workflow until the workflow file exists on the default branch, so the CI run has to happen after this PR lands.

AI assistance

  • AI assistance: Yes
  • Tool(s): OpenCode (gpt-5.5)
  • Used for: Implementing the Stage 5 Playground CI workflow and proof workload, then removing the blueprint-agent path and updating the repo framing under Chris's direction.

chubes4 added 7 commits May 6, 2026 20:32
…ground

Hand-authored proof for Extra-Chill/homeboy-extensions#422: confirm Data
Machine + Data Machine Code cold-boot cleanly inside WordPress Playground
(PHP-WASM + SQLite) using the configurable playground_workloads primitive
that landed in homeboy-extensions PR #421.

Pieces:
- tests/playground-ci/component/wc-store-blueprints-ci-driver.php
  No-op plugin shell. Exists only so the WordPress extension's bench
  runner has a 'component under test' to mount; not a real plugin.
- tests/playground-ci/workloads/dm-boot-probe.php
  Returns { metrics, metadata } describing whether DM, DMC, Action
  Scheduler, and the WordPress Abilities API survived boot. Designed
  to fail loudly, not silently.
- tests/playground-ci/scripts/run-stage-1.sh
  Drives wordpress/scripts/bench/bench-runner.sh directly with
  validation_dependencies pointing at local DM + DMC checkouts and a
  one-step playground_workloads entry that runs the boot probe.

Stage 1 result on this machine:
- WP boot:           ~13ms
- WP install:        ~786ms
- DM + DMC load:     ~567ms
- Component load:    ~1ms
- Total cold-boot:   ~1.4s
- WP 6.9.4 / PHP 8.3.30 (PHP-WASM) / SQLite
- Data Machine:      loaded
- Data Machine Code: loaded
- Abilities API:     available (WP core 6.9)
- Action Scheduler:  loaded

Caveats captured in code comments and AGENTS context for follow-up
stages: bench runner leaves wp_installing=true after install, the
component load_deps stage requires plugin entries directly without
inserting into active_plugins, and WP-CLI is not loaded in-process
(canonical seam for Stage 2+ is the ability step type, not wp-cli).

Refs Extra-Chill/homeboy-extensions#422
Refs Extra-Chill/homeboy-extensions#421
…xtensions#426)

Adds the Stage 2 driver and workload for Extra-Chill/homeboy-extensions#422:
import the wc-idea-agent bundle into Data Machine via the canonical
Abilities API surface (datamachine/import-agent) and verify the agent is
queryable through datamachine/get-agent.

Stage 2 currently fails — surfaced an upstream gap in homeboy-extensions:
the WordPress bench runner requires plugin dependencies AFTER wp-phpunit's
install.php fires plugins_loaded, so DM's bootstrap (hooked on
plugins_loaded:20) never runs and its 197 abilities never reach the
registry. Filed as Extra-Chill/homeboy-extensions#426 with two
implementation options. A minion is cooking the upstream fix.

Until #426 lands, Stage 2 is structurally correct but not green. Committed
here as a checkpoint so the workload code (which will be reused once the
upstream lifecycle is right) doesn't get lost between sessions.

Stage 2 result on this machine (with the upstream gap):
- Bundle copy + Abilities API priming: clean.
- datamachine/import-agent: not registered (root cause: see above).
- block-format-bridge ability surface present (autoload-time registration).

Refs Extra-Chill/homeboy-extensions#422
Refs Extra-Chill/homeboy-extensions#426
Refs Extra-Chill/data-machine#1803
@chubes4 chubes4 force-pushed the feat/playground-ci-proof branch from cd28297 to 66ff1f2 Compare May 7, 2026 00:34
@chubes4 chubes4 merged commit 20e6ccd into main May 7, 2026
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