Feature: preserve specodelic frontmatter and four-layer tables when openspec archive deploys a delta

Offen
#2,017 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
55/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
typescript
Bereich
cli, tooling

Rechercherichtung

Start with the archive round-trip described in docs/src/dual-format-authoring.md and reproduce how openspec archive handles the dual-format example. Trace the archive merge entry point and inspect the migration context in openspec/changes/migrate-specs-to-dual-format. Done means deployed specs retain the YAML frontmatter and the Constraints, Model, and Properties tables without post-archive surgery.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

Context

We dual-author spec files in the specodelic four-layer markdown format (YAML frontmatter id/kind/EARS statement + ## Constraints, ## Model, ## Properties tables) alongside the openspec grammar — one file, two parsers (specodelic's documented dual-format protocol).

Our migration change: openspec/changes/migrate-specs-to-dual-format in charly-vibes/espectacular.

Problem

openspec archive (v0.19.0) merges the openspec half of a delta into the deployed spec but strips the specodelic half — frontmatter and the three tables do not survive the deploy. Verified against docs we wrote: docs/src/dual-format-authoring.md ("Archive round-trip").

Consequences:

  • Deployed specs silently lose their machine-linted layers after every archive touching the capability.
  • Repos that mandate dual-format corpus-wide (like ours now does) need a manual re-derivation recipe after each archive: copy frontmatter from the archived delta, carry surviving constraint/property rows from git history, add rows for merged requirements, re-run gates.

Request

Preserve YAML frontmatter and the ## Constraints / ## Model / ## Properties tables when openspec archive merges a delta into a deployed spec (e.g., carry them verbatim from the delta, or merge table rows when both sides have them).

This keeps deployed specs lint-clean under specodelic lint without post-archive surgery, and matches openspec's design principle that specs are the source of truth — the formal layers are part of that truth.

Workaround

Documented in our repo: staged-file frontmatter mandate in pre-commit + CI (just spec-lint) makes the strip non-silent and forces re-derivation.

Thanks for a great tool — happy to provide more detail or a failing example.

Vorherrschende Sprache
TypeScript
Sterne
76k
Forks
5.2k
Ø Merge
1 T. 5 Std.
Gemergte PRs (30 T.)
58

Entwicklungsumgebung

In Codespaces öffnen

Startet den Dev-Container des Projekts im Browser, mit Ihrem eigenen GitHub-Konto.

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus Fission-AI/OpenSpec

Alle Issues in Fission-AI/OpenSpec

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.