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

Aperta
#1,983 1 commento 1 reazione 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Da chiarire
Stato di attività
Attiva
Stack tecnologico
typescript

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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

Lingua principale
TypeScript
Stelle
76k
Fork
5.2k
Merge medio
1g 5h
PR unite (30g)
58

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Fission-AI/OpenSpec

Tutte le issue di Fission-AI/OpenSpec

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.