a51149a2e1
The "no temporary merge files should remain on disk" step in features/sandbox_merge_strategies.feature:36 scanned global tempfile.gettempdir() for any ca_merge_* entry and asserted zero. Under behave-parallel --processes 8 a sibling scenario's in-flight tmpdir in the same shared /tmp could be observed mid-merge and trip the assertion, even though GitMergeStrategy.merge cleans up its own tmpdir in a finally block (src/cleveragents/infrastructure/sandbox/merge.py:151-155). Patch tempfile.mkdtemp inside cleveragents.infrastructure.sandbox.merge for the @when step to track the tmpdirs this scenario's merge actually creates, then assert those specific paths are gone in the @then step. Production merge code is unchanged; the contract under test (cleanup-on-success) is preserved; sibling scenarios sharing /tmp no longer race the assertion. ISSUES CLOSED: #7527