Stable IDs for requirements, scenarios and decisions

Aperta
#2,167 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à
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
45/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
markdown, node.js, typescript

Direzione di ricerca

Read the CLI work in #1979 and the related discussions in #2056, #2113, #743, #2157, #1967, and #2033 to understand the intended behavior. Identify the validation and archive matching entry points and their tests; the issue does not name specific files. Done means IDs in bracketed headings are validated and matched before names, duplicate IDs are rejected, and specs without IDs remain unchanged.

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

Descrizione

enhancement
The problem

Links to a requirement, scenario or decision point at its heading text, so rewording a heading breaks them, and archive refuses a renamed scenario (#1697).

Who this affects

Anyone who links tests, tasks or code to specs. In epam/ai-dial-chat, about 1 in 4 broken spec links was just a reworded heading.

What we have in mind
### Requirement: [AUTH-3] Users sign in
#### Scenario: [AUTH-3.1] Correct password

### D1
Use Redis for sessions, because restarts must not sign users out.
  • The agent writes a visible ID in square brackets at the start of the heading. There's no hidden metadata and no new command, and the CLI only reads IDs.
  • Brackets are required, so ordinary headings like SHA-256 checksum or HTTP-2 support are never mistaken for IDs.
  • Validate and archive match on the ID before the name, so renames work. Dropping an ID is still refused, and a bare prefix like NAV-5 can gain brackets.
  • Duplicate IDs are refused, which catches two parallel changes picking the same number.
  • Decisions are a ### D1 heading plus one or two sentences. There are no Rationale or Alternatives fields (the concern on #2113).
  • Specs without IDs are unchanged.

Evidence: agents kept IDs in 264 of 265 runs (details), and all 2,022 past archives in five repos rebuild byte-identical with the change.

Plan: #1979 is the CLI side; #2134 teaches the openspec-beta skills.

Not in scope: coverage reports, checking task links to removed decisions (#2056 step 2), deliberate removals (#1843), parallel-change overlap (#1669, #1387), and databases or two-way traceability.

Consolidates #2056, #2113, #743 (discussion) and #2157, plus #1967's first two directions and #2033's Direction 3.

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.