Summary
mcp__drm-copilot__collect_pr_context reports artifact paths inside the caller's workspace_root but actually writes artifacts/pr_context.summary.txt and artifacts/pr_context.appendix.txt into the MAIN checkout. That is a single shared location for every concurrently running epic or parallel child, so two children that collect PR context at overlapping times silently overwrite each other. A child that then reads "its" context gets a sibling's branch, commits, diff, and evidence enumeration, with nothing in the return value indicating the substitution. Authoring a PR body from that content describes the wrong change on the wrong pull request.
The defect has two independent halves, and each is separately worth fixing: the tool reports a path it does not write, and the path it does write is unsafe for concurrent callers.
Environment
(not provided in potential file)
Steps to Reproduce
(not provided in potential file)
Expected Behavior
(not provided in potential file)
Actual Behavior
(not provided in potential file)
Logs / Screenshots
(not provided in potential file)
Impact / Severity
(not provided in potential file)
Source
From: docs/features/potential/2026-08-22-collect-pr-context-shared-path-race-across-concurrent-children.md
Summary
mcp__drm-copilot__collect_pr_contextreports artifact paths inside the caller'sworkspace_rootbut actually writesartifacts/pr_context.summary.txtandartifacts/pr_context.appendix.txtinto the MAIN checkout. That is a single shared location for every concurrently running epic or parallel child, so two children that collect PR context at overlapping times silently overwrite each other. A child that then reads "its" context gets a sibling's branch, commits, diff, and evidence enumeration, with nothing in the return value indicating the substitution. Authoring a PR body from that content describes the wrong change on the wrong pull request.The defect has two independent halves, and each is separately worth fixing: the tool reports a path it does not write, and the path it does write is unsafe for concurrent callers.
Environment
(not provided in potential file)
Steps to Reproduce
(not provided in potential file)
Expected Behavior
(not provided in potential file)
Actual Behavior
(not provided in potential file)
Logs / Screenshots
(not provided in potential file)
Impact / Severity
(not provided in potential file)
Source
From: docs/features/potential/2026-08-22-collect-pr-context-shared-path-race-across-concurrent-children.md