Automattic / Automattic/wp-codebox
Persist typed browser probe results for downstream recipe steps
- Lingua principale
- TypeScript
- Stelle
- 16
- Fork
- 4
- Merge medio
- 59m
- PR unite (30g)
- 131
Descrizione
## Problem
Recipe browser probes can evaluate runtime page state, but cannot write the typed result to a caller-selected artifact path that a later recipe step can consume. This blocks pre-compilation runtime presentation evidence workflows.
## Direction
Add a generic output-artifact contract to browser probe/page-evaluation commands. Persist the typed result atomically within the declared artifact root, register an artifact ref, and make it available to subsequent workflow steps.
## Acceptance
- Caller can declare a safe relative output artifact path.
- Typed browser result is atomically persisted and registered.
- A later recipe step can read the file in the same run.
- Path traversal and writes outside the artifact root are rejected.
- Failure evidence distinguishes evaluation, serialization, and persistence errors.
- Existing browser probe behavior is unchanged when omitted.
- Contract and recipe integration tests cover success and rejection.
## Dependency
Automattic/static-site-importer#796, producer commit `f246198c`; Automattic/blocks-engine#757.
## AI assistance
OpenAI gpt-5.6-sol through OpenCode analyzed the cross-recipe gap and drafted this issue. Chris Huber remains responsible for scope and implementation decisions.
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Direzione di ricerca
Inizia individuando i comandi di probe del browser e di valutazione della pagina, nonché il flusso di registrazione degli artefatti della recipe. Traccia come un risultato tipizzato si sposta tra i passaggi della recipe, quindi aggiungi test di integrazione di contract e recipe che coprano letture riuscite e percorsi rifiutati; il lavoro è completo quando l'omissione dell'output mantiene il comportamento esistente e gli errori di persistenza vengono distinti.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- typescript
- Ambito
- backend, tooling
- Tipo di issue
- Funzionalità
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Tranquilla
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 48/100