Automattic / Automattic/wp-codebox

Route Plugin Check through public WordPress workloads

Aperta
#2,269 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
TypeScript
Stelle
16
Fork
4
Merge medio
59m
PR unite (30g)
131

Descrizione

## 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.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

Inizia dal punto di ingresso wp-codebox/run-wordpress-workload e confronta il suo routing dei comandi con l'implementazione esistente di Playground e il catalogo dei comandi del runtime. Esegui un plugin montato con la richiesta wordpress.plugin-check fornita, quindi aggiungi una copertura deterministica di CLI/ability che verifichi l'applicazione delle policy e che vengano restituiti artefatti raw e normalizzati wp-codebox/plugin-check/v1.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
typescript
Ambito
api, cli
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Attiva
Chiarezza
Specificata chiaramente
Idoneità per principianti
72/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.