Automattic / Automattic/wp-codebox

Persist typed browser probe results for downstream recipe steps

Abierto
#2,193 0 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
TypeScript
Estrellas
16
Forks
4
Merge medio
59 min
PR fusionados (30 d)
131

Descripción

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

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Línea de trabajo

Comienza localizando los comandos de sondeo del navegador y de evaluación de páginas, así como el flujo de registro de artefactos de recipe. Rastrea cómo se mueve un resultado tipado entre los pasos de una recipe y, a continuación, añade pruebas de integración de contract y recipe que cubran lecturas exitosas y rutas rechazadas; se considera terminado cuando omitir la salida conserva el comportamiento existente y los fallos de persistencia se distinguen.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
typescript
Área
backend, tooling
Tipo de issue
Nueva funcionalidad
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Tranquilo
Claridad
Bastante claro
Aptitud para principiantes
48/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.