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

Abierto
#2,032 0 comentarios 0 reacciones 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
30/100
Tipo de issue
Nueva funcionalidad
Claridad
Necesita aclaración
Estado de actividad
Activo
Stack tecnológico
cli

Línea de trabajo

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.

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

Descripción

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.
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.