Automattic / Automattic/wp-codebox
Persist typed browser probe results for downstream recipe steps
- Vorherrschende Sprache
- TypeScript
- Sterne
- 16
- Forks
- 4
- Ø Merge
- 59 Min.
- Gemergte PRs (30 T.)
- 131
Beschreibung
## 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.
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Rechercherichtung
Beginne damit, die Befehle für Browser-Probes bzw. die Seitenauswertung und den Registrierungsablauf für Recipe-Artefakte zu finden. Verfolge, wie sich ein typisiertes Ergebnis zwischen Recipe-Schritten bewegt, und füge anschließend Contract- und Recipe-Integrationstests hinzu, die erfolgreiche Lesevorgänge und abgelehnte Pfade abdecken; als erledigt gilt die Aufgabe, wenn ein ausgelassenes Ergebnis das bestehende Verhalten beibehält und Persistenzfehler unterschieden werden.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- typescript
- Bereich
- backend, tooling
- Issue-Typ
- Feature
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Ruhig
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 48/100