Proposal instructions: procedural full-catalog sweep needed for Capabilities section (soft "research existing specs" misses cross-capability contract overlap)

Đang mở
#2,292 0 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ó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
markdown
Lĩnh vực
documentation

Hướng nghiên cứu

The change belongs in the proposal instruction template that tells the LLM to research existing specs before writing the Capabilities section; find that template in the repository and read how the Capabilities step is worded. Compare it with the sweep procedure proposed in the issue, which is to list all capabilities under openspec/specs/ and record a per-capability affected or not-affected verdict. Done means the template contains a procedural sweep step that the issue's wording would satisfy, with no maintainer decision yet on the exact wording.

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

Mô tả

Summary

The proposal instruction template tells the LLM to "Research existing specs before filling this in" when writing the Capabilities section, but this is a soft directive with no procedural criterion. In practice this leads to missed Modified Capabilities when the affected contract surface spans more than one capability.

Real-world case

While migrating a production homepage spec, a change modified copy literals frozen inside official-homepage/spec.md. The same family of literals was also frozen inside a second capability (e2e-testing/spec.md — its "E2E scenario coverage checklist" requirement enumerates literal values as assertions).

  • The proposal listed only official-homepage under Modified Capabilities, because the author-LLM anchored on the obvious capability and never enumerated the full catalog.
  • Neither the DESIGN nor PLAN audit caught it — both were bounded by the frozen evidence boundary, which inherited the incomplete sweep.
  • It surfaced only in an open-ended blind-discovery audit (which happened to sweep the whole openspec/specs/ catalog), forcing a mid-flight scope expansion: a second delta, a re-run of two readiness gates.

Root cause: "research existing specs" gives no mechanical action an auditor can verify. The completeness of the sweep is unfalsifiable until something breaks.

Suggested change

Make the sweep procedural in the proposal instruction template, e.g.:

Before writing the Capabilities section, enumerate all existing capabilities (ls openspec/specs/) and check each one for semantic association with this change: shared contract roots, overlapping enforced literals/wording, downstream verification or test specifications derived from the same requirements. Record the sweep scope and per-capability verdict (affected / not affected + one-line reason) in the proposal.

This converts an unverifiable soft directive into a mechanical, auditable step — a reviewer (or a review agent) can check the sweep table against the catalog and catch omissions at proposal time instead of at blind discovery time.

Environment

  • OpenSpec CLI (spec-driven schema, repo-local planning home)
  • Observed with Claude Code as the executing agent
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.