confirm: spec not found for parked stories when the project is nested under repo_root (path prefix duplicated)
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
operatoractions._spec_path から始めます。これは verify.resolve_spec_path(spec_file, paths) を呼び出します。そのリゾルバを読んでプローブ順序を確認してください。まず paths.project、次に paths.implementation_artifacts のフォールバックで、paths.repo_root の試行はありません。説明されているようなネストしたプロジェクトレイアウトで再現して、二重になったプレフィックスが現れるのを確認したうえで、フォールバックの前に paths.repo_root / p をプローブするか、park レコードの作成時に spec_file を paths.project に対して相対的に書くかを決めてください。完了とは、repo_root のサブフォルダー配下にある park された story が bmad-loop confirm --list で確認可能として表示され、確認できること、さらに repo_root != project をカバーするテストがあることです。
索引モデルが issue の本文から書いたものです。
説明
Summary
When the BMAD project lives in a subfolder of the git repo (repo_root set in _bmad/custom/config.toml), a story parked at awaiting-operator can never be confirmed. bmad-loop confirm --list marks it NOT CONFIRMABLE: its spec is missing or unreadable, and the path it reports contains the project prefix twice.
Environment
- bmad-loop 0.13.2 (installed with uv from git, commit
8224d535e09a68c9ed5144e32e0842396acc646d) - Linux, Python 3.14
source = "tickets",isolation = "worktree"- Project layout:
<repo>/sub/dir/Project/, withrepo_root = "{project-root}/../../.."in_bmad/custom/config.toml
Steps to reproduce
- Run a story in the nested project until it parks at
awaiting-operator. - The park record
.bmad-loop/operator/<key>.jsonstoresspec_filerelative to the repo root:
"spec_file": "sub/dir/Project/_bmad-output/initiative-x/tickets/<epic>/tickets/<story>-plan.md" - From the project folder, run
bmad-loop confirm --listorbmad-loop confirm <key> --yes.
Actual
<key> ... NOT CONFIRMABLE: its spec is missing or unreadable (<repo>/sub/dir/Project/_bmad-output/initiative-x/sub/dir/Project/_bmad-output/initiative-x/tickets/<epic>/tickets/<story>-plan.md)
error: refusing to confirm <key>: its spec is missing or unreadable (...same path...). The park entry disagrees with the committed state; `bmad-loop validate` reports the same drift. Nothing was changed.
The spec file does exist, at <repo>/sub/dir/Project/_bmad-output/initiative-x/tickets/<epic>/tickets/<story>-plan.md.
Expected
confirm finds the spec and completes the story.
Likely cause
operatoractions._spec_path calls verify.resolve_spec_path(spec_file, paths). That function probes a relative path against paths.project and then falls back to paths.implementation_artifacts. It never tries paths.repo_root. The park record, however, is written with a path relative to the repo root. When repo_root != project, neither probe hits the file. The fallback then glues the repo-relative path under implementation_artifacts, which explains the doubled prefix.
Possible fixes:
- write
spec_filerelative topaths.project(or absolute) in the park record; or - have
resolve_spec_pathalso probepaths.repo_root / pbefore theimplementation_artifactsfallback.
Workaround we use
We hand-edit the story plan front matter (status: built, drop blocked_at / blocked_reason) so that dependent stories can start. This bypasses the per-action confirmation that confirm is meant to enforce.
- 主要言語
- Python
- スター
- 196
- フォーク
- 78
- 平均マージ
- 9時間 24分
- マージ済み PR(30日)
- 44
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
bmad-code-org/bmad-loop のほかの issue
-
psmux: task window name starting with '-' creates no window; session reads as crashed対応中かも @RECOHA が 8 日前に担当しました。 オープン
難易度 1/5 1〜3時間 初心者へのやさしさ 82/100
bmad-code-org/bmad-loop#1061 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
bmad-code-org/bmad-loop#1057 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 69/100
bmad-code-org/bmad-loop#973 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
bmad-code-org/bmad-loop#965 ·
メンテナーはふだん 1 日以内に返信
-
TeA plugin: consume scoped gate artifacts from TeA 4.6.1対応中かも @muratkeremozcan が 5 日前に担当しました。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
bmad-code-org/bmad-loop#1065 ·
メンテナーはふだん 1 日以内に返信
bmad-code-org/bmad-loop の issue をすべて見る
似ている issue
-
DMB documentation good first issue help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
ubuntu/ubuntu-project-docs#921 ·
メンテナーはふだん 1 日以内に返信
-
⏳ Pending feedback 🐛 Bug
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
jumpserver/jumpserver#18282 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1〜3時間 初心者へのやさしさ 76/100
ClickHouse/loom#2014 ·
メンテナーはふだん 1 日以内に返信
-
accepted
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
future-agi/future-agi#5274 ·
メンテナーはふだん 1 日以内に返信
-
needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 2 日以内に返信