Repository navigation
Closed
Description
Problem
The epic title and status line say N of M issues merged, but N counts every pull request merged into the epic branch, and different comments on the same epic use different numbers.
Observed:
- ◕ 20/20 [Epic] Plugin system: manifest, handlers, commands and official plugins #3563:
15 of 21 issues merged, title◑ 15/21, while the body lists 20 issues of which 14 were merged; the fifteenth is CI: pin hosted Linux jobs to Ubuntu 24.04 (plugins epic branch) #3569, a human CI PR with no issue. For an hour on 2026-11-16 it read15 of 22while two PRs ([3556 by Claude Opus 5.5] Official plugin: Linear (start work from a ticket, keep the ticket in sync) #3587, [3556 by Claude Opus 5.5] Official plugin: Linear (start work from a ticket, keep the ticket in sync) #3588) for the same issue were open. - [Epic] Trust the PR, part 2: review categories and acceptance criteria #3505: progress comment
3 out of 3 PRs merged(includes test(shared): give the acceptance criteria input-bound test timing headroom #3524, a human test fix) but the ready comment saysAll 2 child PRs. - [Epic] Extensions library: auto-applied MCP servers and skills #3520:
5 out of 5againstAll 4 child PRs. - [Epic] Automations: no-op run detection and a shipped template catalog #3456 ends as
3 out of 4 PRs merged ⏳ 75%followed by✅ This epic PR has been merged into main. - [Epic] Trust the PR: risk digest, shortcut scan, review categories, acceptance criteria #3476's body still lists four issues and
Fixeslines for issues that were closed as not planned.
Expected / acceptance criteria
- "issues merged" counts plan issues whose pull request is merged into the epic branch. A pull request without a plan issue (a human PR into the epic branch) does not change N or M; two PRs for one issue count once.
- The progress comment, the "all child PRs merged" comment, the status line and the title use the same N and M.
- An issue closed as not planned is removed from M and from the epic body's
Fixeslines on the next update. - When the epic PR is merged, the progress comment's final state is consistent (no
75%next to "merged"). - Regression tests for: an extra human PR in the epic branch, two PRs for one issue, an issue closed as not planned.
Implementation
The counts come from the existing epic merge progress computation (packages/core/src/services/epicPRService.ts, packages/core/src/webhook/epicProgressActivity.ts, pullRequestStatusEpicFacts.ts); the changelog says the status reuses it. Fix the computation once and make every writer use it.
Notes
ProPR runs on SQLite only: do not add code or tests for other databases. Do not change which PRs may be merged into an epic branch.
Activity
propr-dev commentedon Nov 17, 2026
🤖 AI processing has started for this issue using claude agent with claude-opus-5-5 model.
I'll analyze the problem and work on a solution. This may take a few minutes.
Processing Details:
claudeclaude-opus-5-53594/claude-opus-5-5-epic-progress-count-plan--20261117-0116-bhr3589-epic-0-9-y3wissue-3594-20261117-0116-claude-opus-5-5-bhr🔍 Track Task Execution