chore: resolve merge conflicts — wire quality review into orchestrator handleAgentStopped
Resolved conflicts between cw/continuous-code-quality-phase-quality-review-dispatch-hook
and cw/continuous-code-quality-task-Cjc9jRT48MqxIZSQG3ypl.
- orchestrator.ts: adopted tryQualityReview() helper (incoming) over inline
shouldRunQualityReview() call (HEAD); fixed duplicate agentManager constructor
param; reordered optional params to agentRepository?, agentManager?
- orchestrator.test.ts: merged import blocks, used incoming mock defaults with
.mockResolvedValue(), removed duplicate agentManager/agentRepository in
createMocks(), used incoming createOrchestrator opts pattern; added missing
project mock so HEAD's integration test works with tryQualityReview() flow
- docs/dispatch-events.md: kept HEAD's more explicit agent:stopped description
- container.ts: removed duplicate agentManager arg; reordered to match new
constructor signature (agentRepository, agentManager)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>