Optional code-review workflow after /opsx:apply

Aperta
#2,147 0 commenti 1 reazione 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
45/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
typescript

Direzione di ricerca

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.

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

Descrizione

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.

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.