[spec 9] A required host contract for the spec 9 QuickJS orchestrator

Abierto
#5,166 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
48/100
Tipo de issue
Refactorización
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
typescript

Línea de trabajo

Start by reading runWorkflowWithQuickJS, its production caller, and quickjs-entrypoint.preload.test.ts; identify the host values the caller already supplies and how the standalone tests construct their Worlds. Move spec 8 preload coverage to spec 8 tests and give the remaining tests a factory using InBandWriter over AppendOnlyWorld. Done when the host argument is required and missing fence or handoff data produces a type error.

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

Descripción

(AI) Follow-up from #4661 (spec 9, the experimental single-orchestrator runtime, opt-in via WORKFLOW_SPEC_VERSION=9). Tracked as follow-up 13 on the spec 9 changelog.

runWorkflowWithQuickJS takes its writer, loaded log and cursor, message identity, re-send policy and continuation callback as optional parameters. The one production caller passes them all; the optional forms (direct unfenced writes, a new message in place of a handoff, a per-pass re-send rule) remain only for about ten standalone tests that call it with ad-hoc Worlds (quickjs-entrypoint.preload.test.ts among them, with capabilities: {} and non-slot event ids). Make them one required host argument, give those tests a factory with a real InBandWriter over AppendOnlyWorld, and move spec 8 preload behavior to spec 8's tests, so a missing fence or handoff is a type error. Not done here because every one of those tests has to move to a fence-capable World. 4403942436.

Lenguaje dominante
TypeScript
Estrellas
2.5k
Forks
401
Merge medio
1 d 21 h
PR fusionados (30 d)
201

Preparar el entorno

  • Sin Dockerfile ni archivo de Docker Compose
  • Tiene una plantilla de pull request
  • Sin guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de vercel/workflow

Todos los issues de vercel/workflow

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.