Skip to content

Bug: collect-pr-context-shared-path-race-across-concurrent-children #589

Description

@drmoisan
  • Work Mode: full-bug

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions