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

Ouverte
#67,032 1 commentaire 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

Personne n'a encore pris cette issue.

Évaluation

Difficulté
5/5
Temps estimé
Plus d'une semaine
Accessibilité débutants
35/100
Type d'issue
Fonctionnalité
Clarté
Clairement spécifiée
Activité
Active
Stack technique
json, playwright, typescript
Domaine
ai, testing-qa, tooling

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

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.

Langage dominant
TypeScript
Étoiles
230k
Forks
31.3k
Merge moyen
5 h 32 min
PR mergées (30 j)
453

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de anomalyco/opencode

Toutes les issues de anomalyco/opencode

Issues similaires

Plus d'issues TypeScript

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.