Agents implement and approve changes without checking what the changed thing is for

Aperta
#2,032 0 commenti 0 reazioni 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
30/100
Tipo di issue
Funzionalità
Chiarezza
Da chiarire
Stato di attività
Attiva
Stack tecnologico
cli

Direzione di ricerca

Read the root AGENTS.md, the cli-view spec Purpose, and the existing /code-review and Codex review prompts, then review #2030 and PR #2031. Define where the situational check belongs and what evidence it must require; done means an agreed approach with coverage for the failure mode without changing unrelated agent guidance.

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

Descrizione

The problem, in one or two sentences

Agents build and approve requests without first asking what the thing they're changing is for and who uses it. #399 added every archived change to openspec view, a dashboard people read in a terminal, and the agents that wrote it and the agents that reviewed it all approved it. Projects with hundreds of archived changes lost their active work off the screen (#2030).

Who this affects

Maintainers and contributors who use coding agents to implement issues and review PRs. Indirectly, every user, because these changes ship.

What you tried

While fixing #2030 (PR #2031), we tried several places for a guardrail and dropped each one:

  • CONTRIBUTING section, spec requirement, code comment. Each restated this one bug instead of the general mistake. Adding a rule for every incident doesn't scale.
  • A principle in the root AGENTS.md ("work out who a thing is for before you change it"). Both Claude Code and Codex load that file in every session. Research suggests always-on principles like this cost more than they help:
    • Evaluating AGENTS.md (arXiv 2602.11988): context files raised inference cost by more than 20% with no general gain in success rate.
    • Anthropic's CLAUDE.md guidance says to leave out self-evident practices and to put situational guidance in skills.
    • Every agent already believes it checks the purpose of what it changes, so the line would add overhead to every task without catching the next case.

What #2031 keeps is a regression test: view output must not change when archived changes are added. That guards this bug, not the category.

What you have in mind

Open questions to discuss:

  1. Where should the check run? It matters at two moments: when an agent picks up an issue, and when an agent reviews a PR. A skill that loads only for those tasks is one option. Others are the PR template, review bot instructions (CodeRabbit), or the /code-review and Codex review prompts we already run.
  2. What should the check ask? It has to be concrete enough to verify. For example: name the command's audience (people, or agents and scripts), and check the change against a long-lived project, not just a fresh fixture.
  3. Do we record each command's audience somewhere? The cli-view spec Purpose already said the dashboard was for developers, and nobody acted on it. Writing more of that down may not help unless something reads it at the right moment.
  4. Should it cover docs and other files too? The same mistake showed up while fixing #2030: internal rationale went into the user-facing CLI reference.
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.