Add structured verify JSON reports and safe Blueprint materialize export to @wp-playground/cli
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 35/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- javascript, wasm, wordpress
- Ambito
- backend-api-design, cli
Direzione di ricerca
Start by reading the @wp-playground/cli implementation and the linked reference patterns wpai verify and wpai export, then review the staged proposal and related PR for the proposed report and state schemas. Agree on the command or Blueprint convention and safety invariants before implementation; done means the upstream interface and minimal PR scope are agreed, with verification and materialization behavior specified.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Problem
@wp-playground/cli already gives agents a one-command, zero-MySQL path to boot Blueprints. Two adjacent contracts are still missing for reliable agent loops:
- Structured verify / JSON report —
run-blueprintexecutes steps, but agents lack a first-class, machine-parseable pass/fail report for site options, content presence, REST routes, Abilities, and PHP fatals. Today they scrape logs or invent ad-hocrunPHPprobes. - Materialize export — Blueprints often use
runPHP/importWxrduring ephemeral Playground boots. Replaying raw PHP on production MySQL/MariaDB hosts is unsafe and non-idempotent. Agents need a declarative handoff (WXR + allowlisted state + changedwp-content/) with zero rawrunPHPreplay.
Proposal
Two thin CLI surfaces (or equivalent Blueprint step + report conventions) in official Playground:
1. Structured verify / JSON report
npx @wp-playground/cli verify \
--blueprint=./blueprint.json \
--checks=./verify.json \
--out=./report.json
# exit 0 iff all checks pass; report.json always written
verify.json would declare expectations only (no agent-supplied executable PHP): site options, published pages/posts by slug/title, CPT counts, terms, theme/plugin presence, REST route presence, Abilities API presence/count, optional live HTTP checks.
report.json should include at least: ok, wordpress_version, php_version, per-check { name, passed, detail }, and php_last_error on failure.
2. Materialize export (WXR + declarative state)
npx @wp-playground/cli materialize \
--blueprint=./blueprint.json \
--out=./dist/
# Writes content.wxr + state.json + changed wp-content/; never emits runPHP source
Invariants:
- Zero raw
runPHPreplay in the export artifact - No secrets (admin accounts, password hashes, salts, SQLite drop-ins)
- No symlink following under
wp-content/ - Fail safe on host-level untranslatable steps unless an explicit
--allow-partial(or equivalent) is set
Non-goal
This is not a proposal to adopt a second official CLI. wpai is a research harness / reference implementation that wraps pinned @wp-playground/cli. After upstream adoption, wpai should call the official commands and shrink.
Reference implementation
- Research repo: https://github.com/patilswapnilv/wp-agent-experience
- Context / related work PR: https://github.com/patilswapnilv/wp-agent-experience/pull/21
- Staged proposal (full detail): https://github.com/patilswapnilv/wp-agent-experience/blob/feat/p0-1-skill-sync-docs-contested/upstream-drafts/playground-verify-and-materialize-proposal.md
- Reference patterns in-repo:
wpai verify/wpai export(Playground + MariaDB parity probes)
Empirical context (honest scope)
Verified in-repo: 63 controlled runs within a single model family; Condition C (verify in the loop) reached 15/15 suitable WordPress selections with live Playground verification and 100% negative-control restraint. Multi-vendor Harbor trials are prepared but not yet run — no cross-vendor claims here.
Ask
- Schema bikeshed on report + state JSON
- Willingness to accept a minimal PR after design agreement
- Preference: new CLI subcommands vs Blueprint step/report conventions
- Lingua principale
- JavaScript
- Stelle
- 2k
- Fork
- 504
- Merge medio
- 1g 18h
- PR unite (30g)
- 146
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di WordPress/wordpress-playground
-
PHP_SELF keeps the requested path after an internal redirect, so WordPress serves the home page for unknown permalinksForse già presa @skyphusion-mackaye l’ha presa 9 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
WordPress/wordpress-playground#4689 ·
I maintainer di solito rispondono entro 1 giorno
-
[Aspect] Internationalization (i18n) [Type] Documentation
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
WordPress/wordpress-playground#4664 · 20 commenti · 2 reazioni ·
I maintainer di solito rispondono entro 1 giorno
-
[Aspect] Internationalization (i18n) [Type] Documentation
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
WordPress/wordpress-playground#4662 ·
I maintainer di solito rispondono entro 1 giorno
-
Spurious "Loaded WordPress version differs from requested version" warning on every default bootForse già presa @amitraj2203 l’ha presa 117 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
WordPress/wordpress-playground#4246 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
WordPress/wordpress-playground#4165 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di WordPress/wordpress-playground
Issue simili
-
enhancement good first issue help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
Ayaan-20-11/Zentro-#79 ·
I maintainer di solito rispondono entro 1 giorno
-
bug good first issue P3
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
NakileSolutions/Steno#433 ·
I maintainer di solito rispondono entro 1 giorno
-
wallet(ui): remove truncated "Name reported by wallet" label and normalize Wallet container heightsApertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
elastos/elastos-runtime#656 ·
I maintainer di solito rispondono entro 1 giorno
-
accessibility bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
quarto-dev/quarto-cli#15440 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
crxjs/chrome-extension-tools#1261 ·