feat(propose): make agents read existing specs before writing a proposal
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
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- typescript
- Área
- cli, developer-experience, tooling
Línea de trabajo
Start with openspec instructions proposal --json and the existing referenced-store index it prints, then trace the generated propose, ff, and continue skills plus the skills/ mirror. Read src/utils/match.ts before assessing the validate changes. Done means the listed inventory, required read steps, capability notes, validation warnings, parity tests, before/after check, and naming decision are covered.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
The problem
Agents often write a new proposal without reading the project's existing specs. In a review of real proposal sessions across several projects, fewer than half read any main spec (actual content, not just a directory listing) before drafting. When they did read, the proposal was better almost every time: it used the right names, described current behavior correctly, and avoided conflicts or duplicates. Reading works. Agents just skip it.
When they skip it, they also name capabilities blind, so we get near-duplicates and names based on the task instead of the behavior.
Why what's on main isn't enough
| Today | Gap |
|---|---|
The proposal instructions say to run openspec list --specs, then openspec show --type spec (#1700) |
It's a paragraph of advice. The agent has to choose to run it, and often doesn't |
| The proposal instructions give rules for naming capabilities (#1997) | Nothing checks that the agent followed them |
| propose / ff tell agents to "inspect the relevant project before drafting" | That step points at code outside openspec/ and never mentions main specs |
| continue (when it creates a proposal) | Has no step to look around before drafting |
| explore teaches how to list existing specs | It's optional, and propose doesn't rely on it |
Proposed fix
The fix stops depending on the agent remembering to look:
-
The CLI hands over the inventory.
openspec instructions proposal(both text and--json) includes the existing main specs: id, path, a one-line purpose, and the requirement count. It respects stores, and it follows the same pattern as the referenced-store index thatinstructionsalready prints. When there are no specs, it says so in so many words, which tells "nothing exists yet" apart from "didn't look." -
The skills make it a required step. propose, ff and continue (when creating a proposal) get an explicit step: review the inventory, then read every spec that looks related in full with
openspec show "<id>" --type specbefore drafting. The "inspect the project" wording includes main specs instead of pointing away from them. -
The proposal shows it looked. In the Capabilities section, each new capability names the closest existing specs that were considered (or says "none related"), and each modified capability uses its exact existing path. Reviewers can then check the work, and an agent can't fill this in without reading.
-
validatecatches the misses. It warns (doesn't fail) when a new capability's path is a near-duplicate of an existing spec, and when a "new" capability already exists and should be listed as modified. Reuse the existing fuzzy matcher insrc/utils/match.ts. -
Settle how capabilities should be named (needs a decision). The current rules say what a name shouldn't be but give little help choosing a good one. Options:
- show good and bad examples taken from the project's own specs,
- set a rule for how much a capability can cover, or
- have the agent propose a name and confirm it with the user.
This can ship after 1–4.
Done when
-
openspec instructions proposal --jsonincludes the spec inventory, with tests for a flat layout, a nested layout, a store, and an empty project - Tests pin the generated propose / ff / continue skills (and the
skills/mirror and parity hashes) to contain the required read-the-specs step - The proposal template and instructions require the "considered" note for each capability
-
validatetests: a near-duplicate path warns, a "new" capability that already exists warns, and an exact reuse or an unrelated name is clean - Before/after check: run propose on a sample project where the right answer is to modify an existing capability. Before, it creates a near-duplicate; after, it lists the existing path under Modified Capabilities
- Decision recorded on item 5
Related
- Covers #901 (same goal, but delivered by the CLI instead of relying on the prompt)
- Replaces the approach in #902 (has merge conflicts and depends on #700, which is closed)
- Builds on #1700 and #1997
- Lenguaje dominante
- TypeScript
- Estrellas
- 76k
- Forks
- 5.2k
- Merge medio
- 1 d 5 h
- PR fusionados (30 d)
- 58
Preparar el entorno
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de Fission-AI/OpenSpec
-
enhancement needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
Fission-AI/OpenSpec#2337 ·
Los mantenedores suelen responder en 1 día
-
bug needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Fission-AI/OpenSpec#2311 ·
Los mantenedores suelen responder en 1 día
-
sync-specs skill overwrites an existing ADDED requirement, contradicting the CLI's no-op/conflict rule from #1376Quizá libre de nuevo @vaibhavdabas16 la tomó hace 10 días y no hay ningún pull request abierto. Abiertoapproved
Dificultad 1/5 Menos de una hora Aptitud para principiantes 86/100
Fission-AI/OpenSpec#2289 · 2 comentarios · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 1-3 horas Aptitud para principiantes 76/100
Fission-AI/OpenSpec#2208 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
Document the RFC 2119 keyword rule (attribution lost in docs rebuild) and its clarification update RFC 8174Posiblemente ocupada @sofiaali1521-cloud la tomó hace 5 días. Abiertodocumentation needs-triage
Dificultad 1/5 1-3 horas Aptitud para principiantes 88/100
Fission-AI/OpenSpec#2200 · 5 comentarios ·
Los mantenedores suelen responder en 1 día
Todos los issues de Fission-AI/OpenSpec
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
tashfeenahmed/freellmapi#2217 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
remotion-dev/skills#37 ·
-
gui: a narrow window's gateway key row with a line under it wraps its faded badges onto blank linesAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
-
Slider: Escape during a thumb drag keeps and commits the dragged value, unlike ui-sdk's other dragsAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
vercel-labs/ui#1758 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
nicobailon/pi-subagents#3425 ·
Los mantenedores suelen responder en 1 día