feat: keep agents on spec by wiring in the project's own checks

Đang mở
#1,983 1 bình luận 1 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ần làm rõ
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript

Hướng nghiên cứu

Start by tracing how config.yaml is loaded and how the apply, propose, verify, doctor, and init commands generate or report guidance. Read related issues #901, #880, #1979, and #1720 to resolve the open design questions. Done should be defined by an agreed scope for project checks, spec-reading guidance, scenario-to-test reporting, and setup warnings without OpenSpec running checks itself.

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

Mô tả

design-review

OpenSpec's value depends on the agent actually following the specs while it writes code. Today that's mostly left to the agent's judgment, and it often drifts. #901 is one example: agents skip reading the existing specs before proposing a change.

Agents already check their own work as they go: they run tests, linters and builds. OpenSpec doesn't use any of that. The apply instructions never tell the agent to run the project's checks, and config.yaml has no place to say what those checks are. So "done" means "tasks ticked," not "the code passes and matches the spec."

Ideas

Idea What it does
Project checks in config.yaml Declare the project's test, lint and build commands once, e.g. checks: { test: "make test", lint: "make lint" }
Apply runs them Apply tells the agent to run the declared checks after each task and fix failures before ticking it off
Read the specs first Apply and propose name the exact main specs the change touches and tell the agent to read them before writing anything (#901)
Trace scenarios to tests Every scenario the agent implements should have a test, reported by verify (builds on #1979)
Setup check in openspec doctor Warn when the project has no declared checks, no tests, or an agent instructions file too big to be useful

Out of scope

  • OpenSpec running the checks itself or blocking archive on them. This issue is about steering the agent, not replacing CI.
  • Judging whether the code is good. Only whether the agent did what the project and spec ask.

Open questions

  • Should checks be advisory guidance only (like operations.apply.guidance), or also something openspec verify reports on?
  • Can we detect likely commands (package.json scripts, Makefile targets) during init and offer to fill checks in?

Related: #901, #880, #1979, #1720

Ngôn ngữ chính
TypeScript
Star
76k
Fork
5.2k
Merge trung bình
1 ngày 5 giờ
Pull request đã merge (30 ngày)
58

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

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

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 Fission-AI/OpenSpec

Tất cả issue của Fission-AI/OpenSpec

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.