Feature request: `openspec drift` — detect divergence between git changes and active change scope
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 35/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- git, typescript
調査の方向性
Start by reading src/core/store/git.ts to understand the existing git utilities, then inspect the CLI command structure and how it parses tasks.md and design.md. Define how file references map to git changes and how phantom completions are identified; done means reporting aligned and unscoped changes and checked tasks with untouched paths, with --json output. The issue proposes the behavior but does not name CLI files or tests.
索引モデルが issue の本文から書いたものです。
説明
The problem, in one or two sentences
During implementation (/opsx:apply or manual coding), there is no way to verify whether the files actually modified in git match the scope declared in tasks.md and design.md. Coding agents can silently touch files outside the plan (scope creep or unintended regressions) or check off tasks without actually modifying the relevant files (phantom completions), with no CLI command to catch this drift before archiving or opening a PR.
Who this affects
Everyone using coding agents (Claude Code, Cursor, Copilot, Cline, etc.) and teams reviewing PRs. Because agents frequently make extraneous edits or hallucinate task completion, verifying that the git working tree aligns with the spec is currently a tedious, manual review step for every change.
Alternatives you considered
openspec validate: Only checks Markdown schemas, structure, placeholders, and RFC 2119 keywords insideopenspec/. It has zero awareness of the git working tree or codebase files./opsx:verify: Relies entirely on the LLM's subjective self-evaluation inside the agent chat session. It consumes substantial token context, can be nondeterministic, and does not provide a fast, offline verification in CI or terminal.- Manual
git status/git diff: Developers and reviewers must manually cross-reference dozens of changed lines against task checkboxes.
Why it's worth the added complexity
OpenSpec’s core value is keeping agents and humans honest on a single plan. Catching drift between the spec plan and actual code before archiving or merging is the missing link between spec authoring and code implementation.
- Zero heavy dependencies: OpenSpec already has git utilities in
src/core/store/git.ts. - Fast & deterministic: Runs in sub-second CLI time without needing an LLM call.
- CI-friendly: Can run as a gate in pull requests (
openspec drift --strict/--json) to ensure PRs don't introduce un-scoped changes.
What you have in mind
A lightweight command like openspec drift [change-name] (or flag on openspec validate):
- Extract scope from change artifacts:
- Parse file paths, directories, and components referenced in
tasks.mdanddesign.md.
- Parse file paths, directories, and components referenced in
- Inspect git changes:
- Read modified files from
git status --porcelain(orgit diff --name-only <base>...HEAD).
- Read modified files from
- Report alignment:
- Unscoped changes: files modified in git with no reference or relevance in the active change.
- Phantom completions: tasks marked
[x]whose referenced files/paths were never touched. - Aligned changes: summary of files modified that match planned tasks.
- Provide
--jsonoutput complying with the agent contract for tool integration.
I would love to help design and implement this if the maintainers agree this fits OpenSpec's roadmap!
- 主要言語
- TypeScript
- スター
- 76k
- フォーク
- 5.2k
- 平均マージ
- 1日 5時間
- マージ済み PR(30日)
- 58
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Fission-AI/OpenSpec のほかの issue
-
enhancement needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
Fission-AI/OpenSpec#2337 ·
メンテナーはふだん 1 日以内に返信
-
bug needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
Fission-AI/OpenSpec#2311 ·
メンテナーはふだん 1 日以内に返信
-
sync-specs skill overwrites an existing ADDED requirement, contradicting the CLI's no-op/conflict rule from #1376再び着手できるかも @vaibhavdabas16 が 10 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンapproved
難易度 1/5 1時間未満 初心者へのやさしさ 86/100
Fission-AI/OpenSpec#2289 · コメント 2 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1〜3時間 初心者へのやさしさ 76/100
Fission-AI/OpenSpec#2208 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
Document the RFC 2119 keyword rule (attribution lost in docs rebuild) and its clarification update RFC 8174対応中かも @sofiaali1521-cloud が 5 日前に担当しました。 オープンdocumentation needs-triage
難易度 1/5 1〜3時間 初心者へのやさしさ 88/100
Fission-AI/OpenSpec#2200 · コメント 5 件 ·
メンテナーはふだん 1 日以内に返信
Fission-AI/OpenSpec の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
nicobailon/pi-subagents#3425 ·
メンテナーはふだん 1 日以内に返信
-
[PORT] A2A: map audio file parts to audio content and ignore MIME parameters (TS→Py)対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンarea-a2a bug port python
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
strands-agents/harness-sdk#6697 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
api technical-debt
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
opencollective/opencollective#9235 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
openwatersio/slackwater#603 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信