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

Đang mở
#67,032 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
json, playwright, typescript
Lĩnh vực
ai, testing-qa, tooling

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
TypeScript
Star
230k
Fork
31.3k
Merge trung bình
5 giờ 32 phút
Pull request đã merge (30 ngày)
453

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của anomalyco/opencode

Tất cả issue của anomalyco/opencode

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.