confirm: spec not found for parked stories when the project is nested under repo_root (path prefix duplicated)

オープン 初心者向け
#1,063 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
72/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
python
領域
cli

調査の方向性

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/, with repo_root = "{project-root}/../../.." in _bmad/custom/config.toml

Steps to reproduce

  1. Run a story in the nested project until it parks at awaiting-operator.
  2. The park record .bmad-loop/operator/<key>.json stores spec_file relative to the repo root:
    "spec_file": "sub/dir/Project/_bmad-output/initiative-x/tickets/<epic>/tickets/<story>-plan.md"
  3. From the project folder, run bmad-loop confirm --list or bmad-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_file relative to paths.project (or absolute) in the park record; or
  • have resolve_spec_path also probe paths.repo_root / p before the implementation_artifacts fallback.

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

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

bmad-code-org/bmad-loop のほかの issue

bmad-code-org/bmad-loop の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。