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

オープン
#67,032 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
json, playwright, typescript
領域
ai, testing-qa, tooling

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
TypeScript
スター
230k
フォーク
31.3k
平均マージ
5時間 32分
マージ済み PR(30日)
453

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

anomalyco/opencode のほかの issue

anomalyco/opencode の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。