Automattic / Automattic/wp-codebox

Route Plugin Check through public WordPress workloads

Offen
#2,269 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
TypeScript
Sterne
16
Forks
4
Ø Merge
59 Min.
Gemergte PRs (30 T.)
131

Beschreibung

## Problem

WP Codebox exposes `wordpress.plugin-check` in the runtime command catalog and implements it in the Playground runtime, but the canonical `wp-codebox/run-wordpress-workload` path does not route the command. A valid declarative workload returns `wp_codebox_wordpress_workload_step_unsupported` instead of running Plugin Check.

## Reproduction

Run a `wp-codebox/wordpress-workload-run/v1` request with a mounted plugin and this step:

```json
{
"command": "wordpress.plugin-check",
"args": ["plugin-slug=data-machine"]
}
```

Observed result: the safe WordPress workload runner marks the step skipped with `wp_codebox_wordpress_workload_step_unsupported`.

## Expected behavior

The public workload interface should route the catalogued `wordpress.plugin-check` recipe command through the disposable Playground implementation, install the official Plugin Check plugin, validate the mounted target, and return normalized `wp-codebox/plugin-check/v1` artifacts.

## Acceptance criteria

- `wp codebox run-wordpress-workload` accepts `wordpress.plugin-check`.
- The command runs only through the contained Playground runtime and preserves existing command policy enforcement.
- Raw and normalized Plugin Check artifacts are returned through the public workload result.
- Deterministic coverage proves a mounted plugin can be checked through the public CLI/ability path.

## AI assistance

- **Model:** GPT-5.6 Sol
- **Tool:** OpenCode
- **Used for:** Reproducing the public/runtime routing mismatch, inspecting the owning command implementations, and drafting this issue. Chris Huber remains responsible for the report and resulting change.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Rechercherichtung

Beginne am wp-codebox/run-wordpress-workload-Einstiegspunkt und vergleiche sein Command-Routing mit der bestehenden Playground-Implementierung und dem Laufzeit-Befehlskatalog. Führe ein gemountetes Plugin mit der bereitgestellten wordpress.plugin-check-Anfrage aus und füge eine deterministische CLI-/ability-Abdeckung hinzu, die verifiziert, dass Richtlinien durchgesetzt werden und rohe sowie normalisierte wp-codebox/plugin-check/v1-Artefakte zurückgegeben werden.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
typescript
Bereich
api, cli
Issue-Typ
Bug
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Aktiv
Klarheit
Klar beschrieben
Anfängerfreundlichkeit
72/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.