Optional code-review workflow after /opsx:apply

Abierto
#2,147 0 comentarios 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
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
45/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
typescript

Línea de trabajo

Read the issue body closely: the requester already has a working branch with tests and docs, so the first step is maintainer buy-in, not coding. Study the existing /opsx:verify and /opsx:apply workflow definitions to see how optional workflows outside the core profile are structured, and check draft PR #1251, which uses the same /opsx:review name for a different read-only design — the naming conflict needs resolving first. Done means a maintainer-approved scope decision, after which the workflow files, tests, and docs can land.

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

Descripción

The problem, in one or two sentences

After /opsx:apply finishes, OpenSpec has no step that reviews the code it just wrote. /opsx:verify checks that the code matches the plan, but nothing looks for bugs, missing error handling, edge cases, or missing tests, and apply's own completion message already tells users to "review or verify the change" with no review workflow to hand off to.

Who this affects

Everyone using the apply workflow, on every agent. It matters most for agent-written code, where review is the main safeguard before archiving and merging.

Alternatives you considered
  • /opsx:verify: checks completeness and spec/design adherence, and only flags pattern deviations as suggestions. It is advisory and never fixes anything, and it is not a code-quality review.
  • Asking the agent for a review in plain words: works, but every user improvises the prompt, the scope (which files the change touched) is guessed, and there is no consistent rule for when the agent may edit code versus ask first.
  • Separate review skills (security, performance): useful, but nothing ties them to a change's scope or to OpenSpec's plan.
Why it's worth the added complexity

It can stay small and opt-in: an optional workflow outside the core profile, like verify, with no new CLI commands. People who don't select it get no new files. It reuses the scope rule users already know from /opsx:apply (do in-scope work, pause on added scope), so its behavior is predictable.

What you have in mind

An optional /opsx:review that:

  • scopes to the files the change touched (git diff since the merge-base), and asks when that's unclear
  • does a basic review and hands specialized concerns to whatever review skills the agent environment already has (security, performance, ...), without OpenSpec registering them
  • fixes CRITICAL/WARNING findings that stay within the change's plan, pauses on anything beyond it, and only lists suggestions for the user to pick from
  • never edits planning artifacts, and points to /opsx:update when the plan itself is wrong

I have a working implementation with tests and docs on a local branch, and would be glad to contribute it if you'd like it.

Related: draft PR #1251 also uses the /opsx:review name, for a read-only plan-vs-code review that is closer to /opsx:verify.

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.