[FEATURE]: [V2] Deterministic acceptance checks for native /goal completion

Abierto
#67,032 1 comentario 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
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
35/100
Tipo de issue
Nueva funcionalidad
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
json, playwright, typescript

Línea de trabajo

Start by tracing the native /goal completion path, especially the built-in goal judge and experimental.idle interaction, then locate the goal.acceptance.commands configuration entry point. Done means configured checks run directly, successful checks permit completion, failures feed bounded diagnostics into the continuation loop, and cancellation, pause, and iteration limits remain intact.

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

Descripción

area/core type/feature version/v2
Feature hasn't been suggested before.
  • I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request

Problem

Native /goal provides an effective autonomous corrective loop, but completion is determined by an LLM judging conversation evidence.

Engineering workflows frequently have executable acceptance criteria, such as builds, type checking, linting and Playwright tests. These checks should be executed and evaluated deterministically before a goal can complete.

Currently, experimental.idle cannot reliably enforce this because the built-in goal judge can mark the goal complete before project plugin hooks execute.

Proposal

Support optional declarative acceptance commands for native goals.

Illustrative configuration:

{
    "goal": {
        "acceptance": {
            "commands": ["npm test"],
            "timeout": 120000
        }
    }
}

When the goal judge proposes completion:

  1. Execute the configured acceptance commands directly, without an LLM tool call.
  2. Allow completion only if all commands succeed.
  3. On failure, inject bounded diagnostic output into the existing goal continuation loop.
  4. Respect existing iteration limits, cancellation and pause behaviour.

Acceptance checks should be explicitly enabled for applicable goals, avoiding unnecessary execution for read-only objectives.

Alternatively, expose a goal.beforeComplete plugin hook that can permit completion or request continuation with failure evidence.

Benefits

  • Deterministic verification of engineering outcomes.
  • Prevention of premature goal completion.
  • Reduced reliance on prompt compliance.
  • Reuse of the existing native goal lifecycle.
  • No need for external orchestration harnesses.

Related issues

  • #54487
  • #60461
  • #61286

Unlike a generic session stopping hook, this proposal specifically governs native goal completion.

Lenguaje dominante
TypeScript
Estrellas
230k
Forks
31.3k
Merge medio
5 h 32 min
PR fusionados (30 d)
453

Preparar el entorno

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 anomalyco/opencode

Todos los issues de anomalyco/opencode

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.