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

未关闭
#2,017 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
55/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
typescript
领域
cli, tooling

调研方向

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.

由索引模型根据 Issue 内容生成。

描述

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.

主要语言
TypeScript
星标
76k
派生
5.2k
平均合并
1 天 5 小时
30 天内合并 PR
58

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

Fission-AI/OpenSpec 的其他 Issue

查看 Fission-AI/OpenSpec 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。