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

Abierto
#1,983 1 comentario 1 reacción 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
35/100
Tipo de issue
Nueva funcionalidad
Claridad
Necesita aclaración
Estado de actividad
Activo
Stack tecnológico
typescript

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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

Lenguaje dominante
TypeScript
Estrellas
76k
Forks
5.2k
Merge medio
1 d 5 h
PR fusionados (30 d)
58

Preparar el entorno

Abrir en Codespaces

Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de Fission-AI/OpenSpec

Todos los issues de Fission-AI/OpenSpec

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.