os-sdlc: pipeline agents share one scratchpad payload file name; concurrent agents overwrite each other's subagent-stop payload #725
Labels
No labels
P0
P1
P2
P3
bug
category/code-change
category/cross-repo
category/eval-run
category/investigation
category/no-test-target
category/owner-ruling
category/prose-artifact
category/recurring-chore
category/structure
category/umbrella
crc-refactor
create
delete
enhancement
filed-by/agent
filed-by/user
frozen
lint-rule
needs-info
needs-triage
next
plugin/cc-architect
plugin/os
plugin/os-adr
plugin/os-aidd-lint
plugin/os-backlog
plugin/os-context
plugin/os-doc-hygiene
plugin/os-sdlc
plugin/os-vault
project/cc-os
ready-for-agent
ready-for-human
recurring
review
rule-proposal
update
waiting
wayfinder:grilling
wayfinder:map
wayfinder:map
wayfinder:research
wayfinder:task
wayfinder:task
wontfix
worklist/deviations
worklist/lint-rule
worklist/new-implement-build
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
jared/cc-os#725
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
Pipeline agents write their subagent-stop JSON payload to a shared scratchpad file with a fixed name before piping it.
A second agent writing at the same time overwrote the first's payload, so dispatch 444's stop was submitted with dispatch 441's programmer content, and the Runner kept returning await_completion for implementation 43 until the agent was resumed and re-submitted with a uniquely named file.
A test-reviewer later reported dispatch ID 465 while its brief was 467.
VERDICT: CREATE (user-directed: workflow defects surfaced during /os-sdlc:implement are the only acceptable terminal reason and must be captured)
Observed
os-sdlc-runner next returned {"type":"await_completion"} after the test-writer had exited.
On resume the agent said "raced with a concurrent agent's write to the same shared scratchpad file".
Reproduce
n/a: timing-dependent; two pipeline agents alive at once.
Origin
Trigger: /os-sdlc:implement 717, implementation 43, session 89876543-c418-46b0-b994-dd6dc6887802
Improvised this session: hand-finished after the loop (same as #718 impl 38)
Chain: wrong-dispatch stop ← fixed shared payload file name ← charter instruction
Root candidate: this ticket
Where: the agent charters under plugins/os-sdlc/agents/*.md and the subagent-stop instructions they share; fix is to name the payload file by dispatch ID in the charter, or to have the SubagentStart hook hand each dispatch its own payload path.
Session: 89876543-c418-46b0-b994-dd6dc6887802
Transcript: /home/jared/.claude/projects/-home-jared-dev-cc-os/89876543-c418-46b0-b994-dd6dc6887802.jsonl
Resolution
Done: charters no longer write a payload file; every settling role pipes a heredoc straight into os-sdlc-subagent-stop with dispatch_id
Evidence: commit
964642c5(#706)Follow-ups: none