scrum4me-mcp/src
Madhura68 be2b5aef3d fix(cleanup): keepBranch + sprint-scope siblings voor SPRINT pr_strategy
Symptoom: in een sprint met pr_strategy=SPRINT (5 tasks, 3 stories)
werden de eerste twee tasks SKIPPED door Claude (werk al in main na een
externe PR). De derde task crashte op:

  git worktree add /home/agent/.scrum4me-agent-worktrees/<id> feat/sprint-uhrbtc8z
  fatal: invalid reference: feat/sprint-uhrbtc8z

Root cause: cleanupWorktreeForTerminalStatus checkte op active siblings
binnen dezelfde **story** + verwijderde de branch bij keepBranch=false.
Voor SPRINT pr_strategy delen alle stories in de sprint één branch
(feat/sprint-<id>). Eerste task SKIPPED, story ST-1304 had geen actieve
siblings meer (T-807 was ook al SKIPPED), branch werd verwijderd. T-808
in story ST-1305 wilde reuse'n maar branch bestond niet meer.

Fix:
1. Sibling-check verbreden voor SPRINT pr_strategy: kijk naar alle
   actieve jobs in dezelfde sprint_run_id (niet alleen story_id).
2. keepBranch=true voor SKIPPED bij SPRINT pr_strategy: andere stories
   in dezelfde sprint hebben de branch nog nodig.

Tests: 341 passed (38 files). Typecheck OK.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-09 16:18:20 +02:00
..
cancel PBI-57: 'skipped' no-op exit + cascade preserves original error 2026-05-07 17:10:02 +02:00
flow PBI-9 + PBI-47: worktree foundation, product-worktrees, P0 fixes, PAUSED flow 2026-05-06 21:09:48 +02:00
git PBI-49: review-fixes — primary_worktree order, idea-claim rollback, sprint mark-ready fallback 2026-05-07 11:02:23 +02:00
lib chore: sync schema + adapt to ACTIVE→OPEN, COMPLETED→CLOSED, EXCLUDED-task 2026-05-09 13:39:13 +02:00
presence chore(presence): heartbeat interval 5s -> 10s 2026-05-06 08:03:14 +02:00
prompts fix(prompts): idea-prompts gebruiken $PAYLOAD_PATH ipv onvervangen placeholders 2026-05-09 11:55:27 +02:00
tools fix(cleanup): keepBranch + sprint-scope siblings voor SPRINT pr_strategy 2026-05-09 16:18:20 +02:00
verify PBI-8: Sprint-flow MCP-orkestratie + verifier-fix 2026-05-06 16:59:58 +02:00
access.ts feat: M12 idea-job support — version 0.6.0 2026-05-04 22:12:36 +02:00
auth.ts feat: add wait_for_job and update_job_status tools (M13 agent worker mode) 2026-04-29 20:05:09 +02:00
errors.ts fix: wrap non-object values in toolJson, add e2e smoke test 2026-04-26 23:38:39 +02:00
index.ts PBI-50 F3: nieuwe MCP-tools voor SPRINT_IMPLEMENTATION-flow 2026-05-07 12:40:18 +02:00
prisma.ts feat(ST-705): read tools — health, list_products, get_claude_context 2026-04-26 23:04:51 +02:00
status.ts chore: sync schema + adapt to ACTIVE→OPEN, COMPLETED→CLOSED, EXCLUDED-task 2026-05-09 13:39:13 +02:00