confirm: spec not found for parked stories when the project is nested under repo_root (path prefix duplicated)
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
从 operatoractions._spec_path 开始,它会调用 verify.resolve_spec_path(spec_file, paths);阅读该 resolver 以查看探测顺序:先 paths.project,然后是 paths.implementation_artifacts 回退,不尝试 paths.repo_root。按所述用嵌套项目布局复现,以便看到重复的前缀出现,然后决定是在回退前探测 paths.repo_root / p,还是在创建 park 记录时相对于 paths.project 写入 spec_file。完成意味着位于 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 分钟
- 30 天内合并 PR
- 44
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 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 天内回复