chore: promote dev → main (pipeline-capacity gate on PM status-changed)#1182
Merged
zbigniewsobiecki merged 1 commit intomainfrom Apr 24, 2026
Merged
chore: promote dev → main (pipeline-capacity gate on PM status-changed)#1182zbigniewsobiecki merged 1 commit intomainfrom
zbigniewsobiecki merged 1 commit intomainfrom
Conversation
…t backlog-manager) (#1181) `maxInFlightItems` was only consulted at the two backlog-manager chain sites (pr-merged, splitting auto-chain). PM `status-changed` triggers fired `implementation` for every card moved into TODO with no capacity check, so a human pushing N cards burst N parallel implementations straight past the cap. Observed on prod ua-store with limit=1 → 3 implementations running concurrently. This adds a shared gate (`shouldBlockForPipelineCapacity`) called from the JIRA / Linear / Trello status-changed handlers. Only `implementation` is gated — it's the only PM-status-reachable agent that consumes a TODO/ IN_PROGRESS/IN_REVIEW slot per `STATUS_TO_AGENT`. When the active pipeline (excluding the just-moved card) is at the cap, the trigger returns null and the card sits in its column until a slot frees, at which point the existing `pr-merged → backlog-manager` chain picks it up. Mirrors the behavior the backlog-manager gate already has. Adds `isActivePipelineOverCapacity` next to the existing `isPipelineAtCapacity` — same misconfigured/error fallbacks, but no backlog-empty short-circuit (irrelevant here) and an `excludeWorkItemId` arg so the card whose move just fired the webhook isn't double-counted. Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
status-changedtriggers now respectmaxInFlightItems, fixing the prod regression whereua-storeran 3 implementations under alimit: 1config.Test plan
--max-concurrency 1mitigation onua-storeimplementation agent and verify a multi-card move only fires one implementation🤖 Generated with Claude Code