os-sdlc: ADR-0121 async guard fires for non-pipeline Agent dispatches — false sync-only errors in any session with a pipeline.db #409
Labels
No labels
P0
P1
P2
P3
bug
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
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#409
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?
Context
The ADR-0121 guard in plugins/os-sdlc/hooks/post_tool_use.rb (commit
1d8a520, 2026-08-15) checks tool_response.status == "async_launched" before the agent name is resolved to a pipeline stage. dispatchable_event returns any non-nil subagent_type ("general-purpose", "os-backlog:ticket-skeptic", ...), so in any repo whose .sdlc/pipeline.db has a ticket row, every background Agent dispatch — including bookkeeping subagents unrelated to the pipeline — emits the loud "Pipeline agents must be dispatched synchronously" error into the session. Before the guard, such events reached engine.handle_event, which no-ops on non-stage names. Observed live: 10+ spurious errors during non-pipeline dispatches in session https://claude.ai/code/session_01GSYJVRGmBiLGjPppHjY3bZ (2026-08-15). The guard's own tests (plugins/os-sdlc/tests/runner/post_tool_use_async_dispatch_test.rb) only exercise pipeline-stage agent names.VERDICT: CREATE — validation/false-positive defect in a newly shipped guard; hard floor.
Tasks
Acceptance criteria
Out of scope
Full async-completion support (already scoped out by #402); hook arming/manifest work (#333/#400).
Work starting: pre-flight passed (verdict CREATE, checklist present). Running via /os-sdlc:implement in parallel with #365.
Resolution
Done: ADR-0121 async guard now errors only for known pipeline-stage agents; non-stage and no-in-flight-ticket background dispatches are silent no-ops (TransitionTable#known_agent? + Engine#pipeline_agent?), fail-open choice disclosed and pinned by test
Evidence: commit
d66aea7on branch worktree-issue-409; suite 931 runs 0 failures; changed files rubocop-clean; reviewer APPROVE at .sdlc/tickets/409/verdict.mdFollow-ups: #410: gate subprocess ignores ticket target_name (skeptic VERDICT: CREATE)