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

Aperta
#67,032 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
json, playwright, typescript
Ambito
ai, testing-qa, tooling

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
TypeScript
Stelle
230k
Fork
31.3k
Merge medio
5h 32m
PR unite (30g)
453

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di anomalyco/opencode

Tutte le issue di anomalyco/opencode

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.