Skip to content

[3594 by Claude Opus 5.5] Epic progress: count plan issues, and make the progress comment, the ready comment and the title agree - #3612

Merged
integry merged 5 commits into
3589-epic-0-9-y3wfrom
3594/claude-opus-5-5-epic-progress-count-plan--20261117-0116-bhr
Nov 17, 2026
Merged

integry merged 5 commits into
3589-epic-0-9-y3wfrom
3594/claude-opus-5-5-epic-progress-count-plan--20261117-0116-bhr

Conversation

@propr-dev

@propr-dev propr-dev Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

AI Implementation Summary

Closes #3594

Branch: 3594/claude-opus-5-5-epic-progress-count-plan--20261117-0116-bhr
Commits: ✅ Changes committed (31d80b4)


AI Processing Completed

Execution Details:

Summary:
Epic progress now counts plan issues only. The progress comment, the ready comment, the final-merge comment, the status line and the title all use one computation, so they show the same N and M. All the affected test files pass, and lint and typecheck pass on the changed source files.

The count (computeEpicMergeProgress, now in packages/core/src/webhook/epicProgressCount.ts)

  • M is the plan issues that weren't closed without a merge. N is how many of them are merged into the epic branch.
  • An issue counts as merged if its status is merged, its linked PR merged, or a PR from a branch named after it (3594/… or 3594-…) merged.
  • A PR without a plan issue changes neither number but is still listed under "Merged child PRs". Two PRs for one issue count it once. A branch from another epic (3589-epic-…) isn't counted as a PR for the issue its name starts with.
  • An issue closed as not planned (status closed) drops out of M, as closed issues already did.
  • An epic with no plan still counts its PRs, and its comments say "pull requests" instead of "issues".

Behaviour changes to be aware of

  • An open human PR into the epic branch no longer holds back the "ready for final merge" comment.
  • To match branches to issues, the PR list now records the source branch for merged and closed PRs too, not only open ones.

Comments

  • The progress comment now reads **N of M issues merged** instead of "N out of M PRs merged".
  • The ready comment shows the same line and says All N issues have been merged…. The final-merge comment uses the same wording.
  • Once the epic PR is merged, the progress comment drops the bar and percentage. It shows ✅ if every issue merged; otherwise it says how many issues weren't merged before the epic PR merged. This removes the "⏳ 75%" next to "merged" seen on [Epic] Automations: no-op run detection and a shipped template catalog #3456.

Epic body

  • The issue list and Fixes # lines leave out issues whose plan status is closed, and issues GitHub reports as closed not_planned or duplicate.
  • This takes effect the next time the body is rewritten, which happens when a child PR merges; closing an issue alone doesn't trigger it. That logic moved to the new packages/core/src/webhook/epicPRBody.ts. Both changed files had gone past the 400-line lint limit, which is why this and the count module were split out.

Tests (regression tests as the issue asked)

  • test/epicMergeProgress.test.ts (71 pass), test/epicMergeProgressHandler.test.ts (53 pass) and packages/core/test/pullRequestStatusEpicSync.test.ts (35 pass).
  • New tests cover:
    • an extra human PR, both merged and open, in the count, the ready comment and the status line
    • two PRs for one issue, including the case where the merged one isn't the linked one
    • an issue closed as not planned, in the count and in the body's Fixes lines
    • the merged epic's final progress comment and final report
  • Existing assertions were updated to the new wording. In the status sync tests, open PRs from non-plan branches used to raise the total (for example "1 of 14"); those now expect "1 of 3".

I also updated docs/docs/features/work-splitting.md, docs/docs/features/pr-status.md and added a Fixed entry to CHANGELOG.md. No preview was made: the change is GitHub comment and title text, not app UI.

Review digest

Risk-tiered paths

  • High risk: none
  • Normal risk (5 files)
    • packages/core/src/services/pullRequestStatus/pullRequestStatusEpicFacts.ts (+3/−3)
    • packages/core/src/webhook/epicMergeProgress.ts (+42/−84)
    • packages/core/src/webhook/epicPRBody.ts (added, +89/−0)
    • packages/core/src/webhook/epicPRHandler.ts (+3/−71)
    • packages/core/src/webhook/epicProgressCount.ts (added, +115/−0)
  • Low risk (6 files)
    • CHANGELOG.md (+11/−0)
    • docs/docs/features/pr-status.md (+1/−1)
    • docs/docs/features/work-splitting.md (+1/−1)
    • packages/core/test/pullRequestStatusEpicSync.test.ts (+37/−20)
    • test/epicMergeProgress.test.ts (+124/−39)
    • test/epicMergeProgressHandler.test.ts (+19/−4)

Validation evidence

  • No repository validation commands ran.

Diff size: 11 files changed, +445/−223 lines

Detailed Logs:

  • Conversation: 202 messages
  • Session: 6ab2538d-ba83-49b6-8e6d-8052c24faec0

Log files stored at:

  • conversation: /usr/src/app/logs/executions/issue-3594-2026-11-17T01-36-08-713Z-conversation.json
  • output: /usr/src/app/logs/executions/issue-3594-2026-11-17T01-36-08-713Z-output.txt
Latest Conversation Messages
ASSISTANT: [content unavailable]

ASSISTANT: Epic progress now counts plan issues only. The progress comment, the ready comment, the final-merge comment, the status line and the title all use one computation, so they show the same N and M. All t...


This PR was created automatically by ProPR after processing issue #3594.


💡 Need changes?

Comment on this PR to request refinements — the AI agent monitors comments and will update the implementation based on your feedback. Keep iterating until you're satisfied!

…ready comment, the final-merge comment, the status line and the title all use one computation, so they show the same N and M. All the affected test files pass, and lint and typecheck pass on the changed source files.

The count (`computeEpicMergeProgress`, now in `packages/core/src/webhook/epicProgressCount.ts`)
- M is the plan issues that weren't closed without a merge. N is how many of them are merged into the epic branch.
- An issue counts as merged if its status is merged, its linked PR merged, or a PR from a branch named after it (`3594/…` or `3594-…`) merged.
- A PR without a plan issue changes neither number but is still listed under "Merged child PRs". Two PRs for one issue count it once. A branch from another epic (`3589-epic-…`) isn't counted as a PR for the issue its name starts with.
- An issue closed as not planned (status closed) drops out of M, as closed issues already did.
- An epic with no plan still counts its PRs, and its comments say "pull requests" instead of "issues".

Behaviour changes to be aware of
- An open human PR into the epic branch no longer holds back the "ready for final merge" comment.
- To match branches to issues, the PR list now records the source branch for merged and closed PRs too, not only open ones.

Comments
- The progress comment now reads `N of M issues merged` instead of "N out of M PRs merged".
- The ready comment shows the same line and says `All N issues have been merged…`. The final-merge comment uses the same wording.
- Once the epic PR is merged, the progress comment drops the bar and percentage. It shows ✅ if every issue merged; otherwise it says how many issues weren't merged before the epic PR merged. This removes the "⏳ 75%" next to "merged" seen on #3456.

Epic body
- The issue list and `Fixes #` lines leave out issues whose plan status is closed, and issues GitHub reports as closed `not_planned` or `duplicate`.
- This takes effect the next time the body is rewritten, which happens when a child PR merges; closing an issue alone doesn't trigger it. That logic moved to the new `packages/core/src/webhook/epicPRBody.ts`. Both changed files had gone past the 400-line lint limit, which is why this and the count module were split out.

Tests (regression tests as the issue asked)
- `test/epicMergeProgress.test.ts` (71 pass), `test/epicMergeProgressHandler.test.ts` (53 pass) and `packages/core/test/pullRequestStatusEpicSync.test.ts` (35 pass).
- New tests cover:
  - an extra human PR, both merged and open, in the count, the ready comment and the status line
  - two PRs for one issue, including the case where the merged one isn't the linked one
  - an issue closed as not planned, in the count and in the body's `Fixes` lines
  - the merged epic's final progress comment and final report
- Existing assertions were updated to the new wording. In the status sync tests, open PRs from non-plan branches used to raise the total (for example "1 of 14"); those now expect "1 of 3".

I also updated `docs/docs/features/work-splitting.md`, `docs/docs/features/pr-status.md` and added a Fixed entry to `CHANGELOG.md`. No preview was made: the change is GitHub comment and title text, not app UI.
@propr-dev

propr-dev Bot commented Nov 17, 2026

Copy link
Copy Markdown
Contributor Author

/ultrafix goal=8 max=6
Triggered automatically by the requested execution settings.

@propr-dev propr-dev Bot added the ultrafix label Nov 17, 2026
@propr-dev

propr-dev Bot commented Nov 17, 2026

Copy link
Copy Markdown
Contributor Author

🔄 Ultrafix loop started (goal: 8/10, max cycles: 6)

First action: /review

💡 Tip: Remove the ultrafix label from this PR to stop further ultrafix cycles.

@propr-dev

propr-dev Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ AI Code Review Complete requested by @propr-ultrafix

Posted 1 review:

View Task Details

@propr-dev

propr-dev Bot commented Nov 17, 2026

Copy link
Copy Markdown
Contributor Author

🔍 AI Code Review — codex:gpt-6-astra

Overall Evaluation

The PR centralizes issue-based progress counting and updates the related comment text coherently. It needs localized corrections before merge: body filtering can omit merged plan work, and successor epics can incorrectly revert to counting unrelated PRs.

✅ Issue deduplication — The shared counter counts multiple PRs for one issue once and retains unrelated merged PRs in the informational list.

✅ Clear final reporting — Merged epics lose the progress bar and explicitly report outstanding issues.

Review verification was static only; no commands were run. The supplied current-head status shows no failed checks and four pending test shards.

Merge blockers

Every finding below was introduced by this PR and must be resolved before merging.

F1: 🔴 Retain closed issues with merged work

  • Category: correctness

  • Required behavior: Issues with merged work remain part of the epic; only issues closed without a merge should be excluded from its issue list and Fixes lines.

  • Evidence: packages/core/src/webhook/epicPRBody.ts:epicBodyIssueNumbers, packages/core/src/webhook/epicProgressCount.ts:computeEpicMergeProgress

    1. An issue has two child PRs. Its linked PR closes without merging, setting the plan status to CLOSED.
    2. The alternate PR subsequently merges into the epic from a branch named after that issue. The supplied status machine preserves terminal CLOSED status.
    3. The merge handler rewrites the epic body. epicBodyIssueNumbers unconditionally removes the issue because its status is CLOSED.
    4. The new counter nevertheless counts the issue as merged using the alternate PR’s branch.

    The epic reports the issue as merged but omits its issue entry and closing reference. If the issue itself remains open, the epic body no longer provides its automatic closure. The lease does not correct this deterministic disagreement, and the added body test covers only closed issues without merged evidence.

    static trace: verified against the supplied status transition contract, merge handler, body filter, and counter.

  • Minimum fix: Make body membership distinguish closed issues with merged child evidence from those closed without a merge, while retaining the explicit GitHub not-planned exclusion. Add a regression covering an abandoned linked PR followed by an alternate PR merge.

F2: 🔴 Preserve plan presence after successor filtering

  • Category: correctness

  • Required behavior: PR-based counting applies only to epics without a plan; unrelated PRs must not affect a planned epic’s counts.

  • Evidence: packages/core/src/webhook/epicProgressCount.ts:computeEpicMergeProgress, specifically if (planIssues.length === 0)

    1. All plan issues have linked PRs already shipped through a predecessor epic.
    2. A human maintenance PR merges into the same epic branch, creating work for a successor epic.
    3. reportablePlanIssues removes the already-shipped plan issues, passing an empty array to the counter. loadEpicStatusFacts performs equivalent filtering.
    4. The counter treats that empty array as absence of a plan and counts the human PR, returning 1/1 instead of zero remaining plan issues.

    The successor’s comment switches to “pull requests,” while its status renderer labels the same count “issues merged.” Neither caller preserves plan presence separately, so merge-boundary checks and leases cannot prevent the incorrect fallback.

    static trace: verified through both supplied callers and the status headline renderer.

  • Minimum fix: Preserve whether a plan exists independently of its filtered issue count. Use PR-based counting only when no plan exists, and cover the successor case in both progress and status tests.

Suggestions

These are optional follow-ups and are not sent to /fix.

S1: 🟢 Update the remaining counting documentation

The opening paragraph under “Epic pull requests” in docs/docs/features/pr-status.md still describes counting every child PR plus placeholders. Updating it would align that explanation with the revised work-splitting documentation. This is a non-blocking documentation cleanup.

Score

The main counting logic and regression coverage are strong, but two membership boundary cases require correction. Current checks show no failures, with four test shards pending.

Score: 6/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 1m 6s
  • Tokens: 69,917 (68,478 in / 1,439 out)
  • Cost: $0.65

View Task


💡 Next step: Comment /fix to address every F# merge blocker, /fix all for every pending blocker and suggestion, or name records explicitly, as in /fix F3 S5.
F# and S# IDs increment across review comments and remain permanent, so selectors such as /fix F3 F5 stay unambiguous across cycles. S# suggestions stay optional: they are implemented only when you name them or request /fix all, and they never relax a merge blocker.

Copy and edit to choose records from this review:

/fix F1 F2 S1

🤖 Review by ProPR

@propr-dev

propr-dev Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit d475eb6

Addressed 1 AI review comment (IDs: 6935322077)

Addressed findings F1, F2

Summary of Changes

I fixed F1 and F2. The affected suites pass, and every new regression test fails when run against the code before the fix.

F1: a closed issue whose work merged now stays in the epic body

  • I moved the "this issue's work is merged" rule into one shared function, epicIssuesWithMergedWork in epicProgressCount.ts. An issue counts as merged if its status is merged, its linked PR merged, or a PR from a branch named after it merged. The progress count uses it too, so the count and the body can't disagree.
  • The body filter epicBodyIssueNumbers now drops a closed issue only when it has no merged work. Issues GitHub closed as not planned or as duplicates are still dropped.
  • A new loadEpicBodyIssueNumbers reads the PRs into the epic branch so the filter can see that merged work. Both places that write the body, creating the epic PR and rewriting its body after a merge, now use it. It only reads the PR list when a plan issue is closed.
  • New tests in test/epicMergeProgressHandler.test.ts cover the case from the finding, for both creating and rewriting the body: issue Feat: Implement Dynamic Repository Management via Web UI #101's linked PR AI Fix for Issue #196: Update readme with UI description #202 is closed without merging, then an alternate PR UI: Re-skin Web UI with new 'pitch-gitfix' branding #203 from 101/… merges. Feat: Implement Dynamic Repository Management via Web UI #101 keeps its list entry and its Fixes line, and an issue closed with no merged work is still left out. I also added a count test for the same case.

F2: a planned epic no longer falls back to counting PRs

  • computeEpicMergeProgress now counts PRs only when no plan was passed at all. A plan whose issues were all filtered out, for example because they shipped through an earlier epic, gives 0 of 0 issues instead of counting a human PR as 1 of 1.
  • Both callers already passed nothing for "no plan" and a list for "plan", so neither needed changing.
  • New tests:
    • Count: an empty plan list gives 0 of 0, with no switch to "pull requests".
    • Progress comment: a successor epic whose plan issues all shipped through the previous epic, with a human PR merged afterwards. Both the open-epic and merged-epic paths count 0 of 0, and no comment says "pull requests".
    • Status line: the same successor case, in pullRequestStatusEpicSync.test.ts. The status line and title no longer show "1 of 1 issues merged".

Checks

Suite Passed Failed
test/epicMergeProgress.test.ts 75 0
test/epicMergeProgressHandler.test.ts 55 0
test/epicMergeProgressRetry.test.ts 21 0
test/taskIntentWithdrawal.test.ts 169 0
test/intentWithdrawalWebhook.test.ts 36 0
packages/core/test/pullRequestStatusEpicSync.test.ts 37 0
packages/core/test/pullRequestStatusEpic.test.ts 24 0
packages/core/test/pullRequestStatusEpicChildReads.test.ts 6 0
packages/core/test/epicQueueBlockedHead.test.ts 14 0
  • Typecheck for packages/core and lint with zero warnings allowed on the three changed source files are both clean.
  • The lint config doesn't cover these test files: ESLint skips them with "file ignored" warnings rather than linting them.
  • The docs and CHANGELOG already say issues "closed without a merge" are left out, which matches the corrected behaviour, so I didn't change them.
  • No preview: nothing in the app's UI changed.

I found nothing else outside F1 and F2 that needed fixing.

Review digest

Risk-tiered paths

  • High risk: none
  • Normal risk (3 files)
    • packages/core/src/webhook/epicPRBody.ts (+25/−3)
    • packages/core/src/webhook/epicPRHandler.ts (+6/−5)
    • packages/core/src/webhook/epicProgressCount.ts (+42/−16)
  • Low risk (3 files)
    • packages/core/test/pullRequestStatusEpicSync.test.ts (+15/−0)
    • test/epicMergeProgress.test.ts (+34/−0)
    • test/epicMergeProgressHandler.test.ts (+31/−0)

Validation evidence

  • No repository validation commands ran.

Diff size: 6 files changed, +153/−24 lines


🤖 Implementation Details

  • Model: Claude Opus 5.5 (medium)
  • Requested By: @propr-ultrafix
  • Time: 16m 52s
  • Tokens: 3,270,662 (3,270,305 in / 357 out)
  • Cost: $1.18

View Task Execution


💡 ProPR Slash Commands
Command Description Example
/merge Merge target branch into this PR and resolve conflicts /merge
/review Request an AI code review /review or /review claude-sonnet
/fix Address review blockers, or blockers and suggestions with /fix all /fix, /fix all, or /fix F3 S5
/switch Change the AI model for this PR /switch claude-opus
/use Override the model for a single follow-up run /use claude-sonnet
/ultrafix Loop review→fix cycles until score goal is met /ultrafix or /ultrafix goal=8 max=10

🤖 Generated by ProPR

…regression test fails when run against the code before the fix.

I fixed F1 and F2. The affected suites pass, and every new regression test fails when run against the code before the fix.

**F1: a closed issue whose work merged now stays in the epic body**
- I moved the "this issue's work is merged" rule into one shared function, `epicIssuesWithMergedWork` in `epicProgressCount.ts`. An issue counts as merged if its status is merged, its linked PR merged, or a PR from a branch named after it merged. The progress count uses it too, so the count and the body can't disagree.
- The body filter `epicBodyIssueNumbers` now drops a closed issue only when it has no merged work. Issues GitHub closed as not planned or as duplicates are still dropped.
- A new `loadEpicBodyIssueNumbers` reads the PRs into the epic branch so the filter can see that merged work. Both places that write the body, creating the epic PR and rewriting its body after a merge, now use it. It only reads the PR list when a plan issue is closed.
- New tests in `test/epicMergeProgressHandler.test.ts` cover the case from the finding, for both creating and rewriting the body: issue #101's linked PR #202 is closed without merging, then an alternate PR #203 from `101/…` merges. #101 keeps its list entry and its `Fixes` line, and an issue closed with no merged work is still left out. I also added a count test for the same case.

**F2: a planned epic no longer falls back to counting PRs**
- `computeEpicMergeProgress` now counts PRs only when no plan was passed at all. A plan whose issues were all filtered out, for example because they shipped through an earlier epic, gives 0 of 0 issues instead of counting a human PR as 1 of 1.
- Both callers already passed nothing for "no plan" and a list for "plan", so neither needed changing.
- New tests:
  - **Count:** an empty plan list gives 0 of 0, with no switch to "pull requests".
  - **Progress comment:** a successor epic whose plan issues all shipped through the previous epic, with a human PR merged afterwards. Both the open-epic and merged-epic paths count 0 of 0, and no comment says "pull requests".
  - **Status line:** the same successor case, in `pullRequestStatusEpicSync.test.ts`. The status line and title no longer show "1 of 1 issues merged".

**Checks**

| Suite | Passed | Failed |
|---|---|---|
| `test/epicMergeProgress.test.ts` | 75 | 0 |
| `test/epicMergeProgressHandler.test.ts` | 55 | 0 |
| `test/epicMergeProgressRetry.test.ts` | 21 | 0 |
| `test/taskIntentWithdrawal.test.ts` | 169 | 0 |
| `test/intentWithdrawalWebhook.test.ts` | 36 | 0 |
| `packages/core/test/pullRequestStatusEpicSync.test.ts` | 37 | 0 |
| `packages/core/test/pullRequestStatusEpic.test.ts` | 24 | 0 |
| `packages/core/test/pullRequestStatusEpicChildReads.test.ts` | 6 | 0 |
| `packages/core/test/epicQueueBlockedHead.test.ts` | 14 | 0 |

- Typecheck for `packages/core` and lint with zero warnings allowed on the three changed source files are both clean.
- The lint config doesn't cover these test files: ESLint skips them with "file ignored" warnings rather than linting them.
- The docs and CHANGELOG already say issues "closed without a merge" are left out, which matches the corrected behaviour, so I didn't change them.
- No preview: nothing in the app's UI changed.

I found nothing else outside F1 and F2 that needed fixing.

PR: #3612
Comment by: @propr-ultrafix (ID: 0)
Model: Claude Opus 5.5
@propr-dev

propr-dev Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ AI Code Review Complete requested by @propr-ultrafix

Posted 1 review:

View Task Details

@propr-dev

propr-dev Bot commented Nov 17, 2026

Copy link
Copy Markdown
Contributor Author

🔍 AI Code Review — codex:gpt-6-astra

Overall Evaluation

The PR makes epic progress count plan issues consistently and adds useful regression coverage. It needs a localized correctness fix before merge: a delayed GitHub PR listing can permanently omit a merged issue from the epic body.

✅ Shared counting logic — Progress, readiness, and final-report rendering use the same issue-based computation, including deduplication and exclusion of unrelated human PRs.

✅ Clear merged-state reporting — Merged epics omit the pending indicator and progress bar while explicitly describing outstanding issues.

✅ Passing current checks — The supplied authoritative status reports 18 passed checks, no failures, and no pending checks.

Merge blockers

Every finding below was introduced by this PR and must be resolved before merging.

F3: 🔴 Recover triggering PR before filtering body

Suggestions

These are optional follow-ups and are not sent to /fix.

S2: 🟢 Update the remaining count documentation

The opening paragraph under “Epic pull requests” in docs/docs/features/pr-status.md still describes counting every open or merged sub-PR plus placeholders. Update it to describe plan-issue counting, matching the revised work-splitting documentation. This is a documentation consistency follow-up rather than a runtime blocker.

Score

The shared computation and regression coverage are strong, and current checks pass. The stale-list body-filtering defect requires correction; this review used static tracing only, as requested.

Score: 6/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 1m 47s
  • Tokens: 71,497 (70,263 in / 1,234 out)
  • Cost: $0.66

View Task


💡 Next step: Comment /fix to address every F# merge blocker, /fix all for every pending blocker and suggestion, or name records explicitly, as in /fix F3 S5.
F# and S# IDs increment across review comments and remain permanent, so selectors such as /fix F3 F5 stay unambiguous across cycles. S# suggestions stay optional: they are implemented only when you name them or request /fix all, and they never relax a merge blocker.

Copy and edit to choose records from this review:

/fix F3 S2

🤖 Review by ProPR

@propr-dev

propr-dev Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit b7a32ed

Addressed 1 AI review comment (IDs: 6936240023)

Addressed finding F3

Summary of Changes

I fixed F3. When GitHub's list of PRs into the epic branch doesn't yet include the PR that just merged, the epic body now looks that PR up on its own before deciding which closed issues to drop. A closed issue whose alternate PR merged keeps its list entry and its Fixes line, so the body matches the progress count again.

The fix

  • I added withTriggeringChildEvidence in packages/core/src/webhook/epicMergeProgress.ts. If the merging PR is missing from the list, or its row lacks the merge or the branch name, it reads that PR with the same readMergedChild call the progress update uses. A PR that turns out to have merged into a different branch isn't added.
  • loadEpicBodyIssueNumbers in packages/core/src/webhook/epicPRBody.ts now uses it, which covers both callers: creating the epic PR and rewriting its body.
  • If the read can't confirm the merge, the body is built from the list as before rather than failing. The progress update still throws and retries in that case, as it did before.

Tests (test/epicMergeProgressHandler.test.ts)

Found separately, not changed: the title a new epic PR starts with is worked out from the plan and the merging PR's number only, without its branch. In the same scenario it could start at a lower count, for example 0/1 instead of 1/2. The code comment says the status sync corrects the title afterwards, so the wrong count should only last until that sync runs. This behaviour already existed on main and is outside F3, so I left it alone.

No preview was made, because the change only affects text written to GitHub.

Review digest

Risk-tiered paths

  • High risk: none
  • Normal risk (2 files)
    • packages/core/src/webhook/epicMergeProgress.ts (+21/−0)
    • packages/core/src/webhook/epicPRBody.ts (+7/−4)
  • Low risk (1 file)
    • test/epicMergeProgressHandler.test.ts (+26/−0)

Validation evidence

  • No repository validation commands ran.

Diff size: 3 files changed, +54/−4 lines


🤖 Implementation Details

  • Model: Claude Opus 5.5 (medium)
  • Requested By: @propr-ultrafix
  • Time: 5m 24s
  • Tokens: 1,092,729 (1,085,315 in / 7,414 out)
  • Cost: $0.66

View Task Execution


💡 ProPR Slash Commands
Command Description Example
/merge Merge target branch into this PR and resolve conflicts /merge
/review Request an AI code review /review or /review claude-sonnet
/fix Address review blockers, or blockers and suggestions with /fix all /fix, /fix all, or /fix F3 S5
/switch Change the AI model for this PR /switch claude-opus
/use Override the model for a single follow-up run /use claude-sonnet
/ultrafix Loop review→fix cycles until score goal is met /ultrafix or /ultrafix goal=8 max=10

🤖 Generated by ProPR

…doesn't yet include the PR that just merged, the epic body now looks that PR up on its own before deciding which closed issues to drop. A closed issue whose alternate PR merged keeps its list entry and its `Fixes` line, so the body matches the progress count again.

I fixed F3. When GitHub's list of PRs into the epic branch doesn't yet include the PR that just merged, the epic body now looks that PR up on its own before deciding which closed issues to drop. A closed issue whose alternate PR merged keeps its list entry and its `Fixes` line, so the body matches the progress count again.

**The fix**
- I added `withTriggeringChildEvidence` in `packages/core/src/webhook/epicMergeProgress.ts`. If the merging PR is missing from the list, or its row lacks the merge or the branch name, it reads that PR with the same `readMergedChild` call the progress update uses. A PR that turns out to have merged into a different branch isn't added.
- `loadEpicBodyIssueNumbers` in `packages/core/src/webhook/epicPRBody.ts` now uses it, which covers both callers: creating the epic PR and rewriting its body.
- If the read can't confirm the merge, the body is built from the list as before rather than failing. The progress update still throws and retries in that case, as it did before.

**Tests** (`test/epicMergeProgressHandler.test.ts`)
- There are two new tests, one for creation and one for rewriting. In both, #101 is closed, its linked PR #202 was abandoned, and #203 from `101/codex-second` merges while the list doesn't include it yet. Each test checks that #203 was read on its own and that the body keeps `- #101`, `Fixes #101` and `Fixes #100` but still leaves out #102.
- With the fix taken out, both new tests fail. With it, the handler suite passes 57/57.
- `test/epicMergeProgress.test.ts` (75/75) and `packages/core/test/pullRequestStatusEpicSync.test.ts` (37/37) also pass. ESLint with zero warnings passes on the two changed source files, and `tsc --noEmit` passes for `packages/core`.

**Found separately, not changed:** the title a new epic PR starts with is worked out from the plan and the merging PR's number only, without its branch. In the same scenario it could start at a lower count, for example `0/1` instead of `1/2`. The code comment says the status sync corrects the title afterwards, so the wrong count should only last until that sync runs. This behaviour already existed on `main` and is outside F3, so I left it alone.

No preview was made, because the change only affects text written to GitHub.

PR: #3612
Comment by: @propr-ultrafix (ID: 0)
Model: Claude Opus 5.5
@propr-dev

propr-dev Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ AI Code Review Complete requested by @propr-ultrafix

Posted 1 review:

View Task Details

@propr-dev

propr-dev Bot commented Nov 17, 2026

Copy link
Copy Markdown
Contributor Author

🔍 AI Code Review — codex:gpt-6-astra

Overall Evaluation

This PR needs a small correctness fix before merging. The shared counting logic largely implements the intended issue-based progress, but its branch exclusion rejects legitimate issue branches.

✅ Shared counting logic — Progress, readiness, and final comments use the same count and wording helpers.

✅ Regression coverage — Added tests cover duplicate PRs, unrelated human PRs, closed issues with alternate merged PRs, and delayed merge evidence. Current-head checks report no failures or pending checks.

Review was static; no commands were run.

Merge blockers

Every finding below was introduced by this PR and must be resolved before merging.

F4: 🔴 Exclude only actual epic branches

Suggestions

These are optional follow-ups and are not sent to /fix.

S3: 🟢 Update the remaining count explanation

The “Epic pull requests” introduction in docs/docs/features/pr-status.md still says the total counts every open or merged sub-PR plus planned placeholders. Updating that paragraph would align it with the new issue-based behavior and the revised work-splitting documentation. This is a non-blocking documentation correction.

Score

The implementation is focused and has substantial regression coverage with passing current checks. One localized branch-classification defect still produces incorrect counts and body membership.

Score: 6/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 1m 37s
  • Tokens: 71,350 (69,916 in / 1,434 out)
  • Cost: $0.66

View Task


💡 Next step: Comment /fix to address every F# merge blocker, /fix all for every pending blocker and suggestion, or name records explicitly, as in /fix F3 S5.
F# and S# IDs increment across review comments and remain permanent, so selectors such as /fix F3 F5 stay unambiguous across cycles. S# suggestions stay optional: they are implemented only when you name them or request /fix all, and they never relax a merge blocker.

Copy and edit to choose records from this review:

/fix F4 S3

🤖 Review by ProPR

@propr-dev

propr-dev Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit 1260ded

Addressed 1 AI review comment (IDs: 6936811262)

Addressed finding F4

Summary of Changes

I fixed F4. A merged PR from an issue branch that only begins like an epic branch, such as 101-epic-progress-count-plan, now counts toward its plan issue, and the epic body keeps that issue's list entry and Fixes #101 line.

Fix (packages/core/src/webhook/epicProgressCount.ts)

  • epicChildBranchIssue now uses the repository's real EPIC_BRANCH_PATTERN from services/epicPRService.ts ({id}-epic-{word}-{word}-{rand}). The prefix-only EPIC_HEAD_PATTERN (/^\d+-epic-/) is gone.
  • Only actual epic branches, like 101-epic-other-plan-abc, are now kept from being matched to an issue.

Other code with the same assumption

  • Both places that turn a branch name into a plan issue go through epicChildBranchIssue, so both are fixed:
    • the count and body path, through epicIssuesWithMergedWork, which computeEpicMergeProgress and loadEpicBodyIssueNumbers both use.
    • the status-line child-to-issue mapping in pullRequestStatusEpicFacts.ts.
  • That status-line file already checked for other epic branches with EPIC_BRANCH_PATTERN, so the two checks now agree.
  • No other prefix-only epic check exists in the PR's changes.
  • Recovering the merge evidence of a PR that GitHub's list doesn't show yet sends the branch through the same function, so that path is fixed too.

Regression tests

  • test/epicMergeProgress.test.ts: epicChildBranchIssue('101-epic-progress-count-plan') returns 101, while an actual epic branch returns null. A closed Feat: Implement Dynamic Repository Management via Web UI #101 whose alternate PR UI: Re-skin Web UI with new 'pitch-gitfix' branding #203 merged from that branch counts 2 of 2 with nothing excluded.
  • test/epicMergeProgressHandler.test.ts: the two existing tests for an alternate PR's body now also run with the 101-epic-progress-count-plan branch. One covers PRs already in GitHub's list and one covers a merge the list doesn't show yet, each for both creating and rewriting the body. All of them check for - #101: Issue and Fixes #101.

Verification

  • Test results:
    • test/epicMergeProgress.test.ts: 76 of 76 pass.
    • test/epicMergeProgressHandler.test.ts: 61 of 61 pass.
    • packages/core/test/pullRequestStatusEpicSync.test.ts: 37 of 37 pass.
  • With the old regex put back temporarily, all 5 new cases fail: 1 in the count tests and 4 in the body tests.
  • Core tsc --noEmit and core ESLint (--max-warnings 0) on the changed source file both pass.
  • The root ESLint config skips these test files, so they weren't linted.

I made no visual preview, since this changes GitHub comment and body text, not the app's UI.

Review digest

Risk-tiered paths

  • High risk: none
  • Normal risk (1 file)
    • packages/core/src/webhook/epicProgressCount.ts (+8/−5)
  • Low risk (2 files)
    • test/epicMergeProgress.test.ts (+13/−0)
    • test/epicMergeProgressHandler.test.ts (+7/−6)

Validation evidence

  • No repository validation commands ran.

Diff size: 3 files changed, +28/−11 lines


🤖 Implementation Details

  • Model: Claude Opus 5.5 (high)
  • Requested By: @propr-ultrafix
  • Time: 8m 15s
  • Tokens: 1,265,602 (1,257,905 in / 7,697 out)
  • Cost: $0.70
  • Subscription usage: Weekly +1%

View Task Execution


💡 ProPR Slash Commands
Command Description Example
/merge Merge target branch into this PR and resolve conflicts /merge
/review Request an AI code review /review or /review claude-sonnet
/fix Address review blockers, or blockers and suggestions with /fix all /fix, /fix all, or /fix F3 S5
/switch Change the AI model for this PR /switch claude-opus
/use Override the model for a single follow-up run /use claude-sonnet
/ultrafix Loop review→fix cycles until score goal is met /ultrafix or /ultrafix goal=8 max=10

🤖 Generated by ProPR

…ns like an epic branch, such as `101-epic-progress-count-plan`, now counts toward its plan issue, and the epic body keeps that issue's list entry and `Fixes #101` line.

I fixed F4. A merged PR from an issue branch that only begins like an epic branch, such as `101-epic-progress-count-plan`, now counts toward its plan issue, and the epic body keeps that issue's list entry and `Fixes #101` line.

**Fix** (`packages/core/src/webhook/epicProgressCount.ts`)
- `epicChildBranchIssue` now uses the repository's real `EPIC_BRANCH_PATTERN` from `services/epicPRService.ts` (`{id}-epic-{word}-{word}-{rand}`). The prefix-only `EPIC_HEAD_PATTERN` (`/^\d+-epic-/`) is gone.
- Only actual epic branches, like `101-epic-other-plan-abc`, are now kept from being matched to an issue.

**Other code with the same assumption**
- Both places that turn a branch name into a plan issue go through `epicChildBranchIssue`, so both are fixed:
  - the count and body path, through `epicIssuesWithMergedWork`, which `computeEpicMergeProgress` and `loadEpicBodyIssueNumbers` both use.
  - the status-line child-to-issue mapping in `pullRequestStatusEpicFacts.ts`.
- That status-line file already checked for other epic branches with `EPIC_BRANCH_PATTERN`, so the two checks now agree.
- No other prefix-only epic check exists in the PR's changes.
- Recovering the merge evidence of a PR that GitHub's list doesn't show yet sends the branch through the same function, so that path is fixed too.

**Regression tests**
- `test/epicMergeProgress.test.ts`: `epicChildBranchIssue('101-epic-progress-count-plan')` returns 101, while an actual epic branch returns null. A closed #101 whose alternate PR #203 merged from that branch counts 2 of 2 with nothing excluded.
- `test/epicMergeProgressHandler.test.ts`: the two existing tests for an alternate PR's body now also run with the `101-epic-progress-count-plan` branch. One covers PRs already in GitHub's list and one covers a merge the list doesn't show yet, each for both creating and rewriting the body. All of them check for `- #101: Issue` and `Fixes #101`.

**Verification**
- Test results:
  - `test/epicMergeProgress.test.ts`: 76 of 76 pass.
  - `test/epicMergeProgressHandler.test.ts`: 61 of 61 pass.
  - `packages/core/test/pullRequestStatusEpicSync.test.ts`: 37 of 37 pass.
- With the old regex put back temporarily, all 5 new cases fail: 1 in the count tests and 4 in the body tests.
- Core `tsc --noEmit` and core ESLint (`--max-warnings 0`) on the changed source file both pass.
- The root ESLint config skips these test files, so they weren't linted.

I made no visual preview, since this changes GitHub comment and body text, not the app's UI.

PR: #3612
Comment by: @propr-ultrafix (ID: 0)
Model: Claude Opus 5.5
@propr-dev

propr-dev Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ AI Code Review Complete requested by @propr-ultrafix

Posted 1 review:

View Task Details

@propr-dev

propr-dev Bot commented Nov 17, 2026

Copy link
Copy Markdown
Contributor Author

🔍 AI Code Review — codex:gpt-6-astra

Overall Evaluation

The PR centralizes issue-based progress counting and adds substantial regression coverage, but needs a localized correction before merge: alternate-PR attribution does not carry through predecessor-epic filtering.

✅ Shared counting logic — Progress, readiness, and final comments use the same count formatter; human PRs do not inflate plan totals.

✅ Focused regression coverage — Added tests cover duplicate PRs, alternate merged PRs, closed issues, and final-report presentation.

The authoritative checks show 18 passed, none failed or pending. This review is a static analysis of the supplied code; no commands were run.

Merge blockers

Every finding below was introduced by this PR and must be resolved before merging.

F5: 🔴 Exclude alternate work shipped by predecessors

  • Category: correctness

  • Required behavior: An issue recognized as merged through an alternate PR must also be recognized as already shipped when computing a successor epic’s remaining plan.

  • Evidence: packages/core/src/webhook/epicProgressCount.ts:epicIssuesWithMergedWork; packages/core/src/webhook/epicMergeProgress.ts:reportablePlanIssues; packages/core/src/services/pullRequestStatus/pullRequestStatusEpicFacts.ts:loadEpicStatusFacts

    1. A plan issue remains under review with linked PR AI Fix for Issue #196: Update readme with UI description #202 open. Alternate PR UI: Re-skin Web UI with new 'pitch-gitfix' branding #203, from that issue’s numbered branch, merges into the epic. The new branch attribution correctly counts the issue as merged without requiring its recorded status or linked PR to change.
    2. Epic Support multi-branch indexing for repositories #500 merges, carrying UI: Re-skin Web UI with new 'pitch-gitfix' branding #203. A subsequent human PR creates successor epic [500 by Claude Opus] Support multi-branch indexing for repositories #501 on the same branch.
    3. Both progress paths identify UI: Re-skin Web UI with new 'pitch-gitfix' branding #203 as shipped and remove it from the child list. However, both filter plan issues exclusively through issue.pr_number, which is still AI Fix for Issue #196: Update readme with UI description #202.
    4. The issue therefore survives the plan filter but loses its alternate merge evidence. The successor reports 0 of 1 issues merged for work already shipped, and its status cannot become ready through the completed-issues path.

    The existing predecessor tests use linked PRs, so they do not exercise this combination. Leases and retries cannot correct the result: the same stable inputs reproduce it. static trace: verified through the supplied counting helper and both predecessor-filtering callers; no test was executed.

  • Minimum fix: Derive predecessor-shipped issue membership using the same linked-PR and branch attribution rules, and apply it in both progress reporting and status facts. Add a regression with an unmerged linked PR, an alternate PR shipped by the predecessor, and a successor human PR.

Suggestions

These are optional follow-ups and are not sent to /fix.

S4: 🟢 Update the remaining count documentation

The opening paragraph under “Epic pull requests” in docs/docs/features/pr-status.md still describes counting every open or merged sub-PR plus placeholders. Updating it to the new plan-issue semantics would remove a contradiction with the changed documentation. This is a non-blocking documentation cleanup.

Score

The implementation is focused and checks pass, but alternate-PR attribution needs to remain consistent across predecessor boundaries before merge.

Score: 6/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 1m 5s
  • Tokens: 73,274 (72,071 in / 1,203 out)
  • Cost: $0.65

View Task


💡 Next step: Comment /fix to address every F# merge blocker, /fix all for every pending blocker and suggestion, or name records explicitly, as in /fix F3 S5.
F# and S# IDs increment across review comments and remain permanent, so selectors such as /fix F3 F5 stay unambiguous across cycles. S# suggestions stay optional: they are implemented only when you name them or request /fix all, and they never relax a merge blocker.

Copy and edit to choose records from this review:

/fix F5 S4

🤖 Review by ProPR

@propr-dev

propr-dev Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit 07f816c

Addressed 1 AI review comment (IDs: 6937728324)

Addressed finding F5

Summary of Changes

I fixed F5. A later epic on the same branch now drops an issue that a previous epic already shipped, even when the PR that shipped it is an alternate PR from the issue's branch and the issue's linked PR is still open. In that case the later epic used to show "0 of 1 issues merged" for work that had already shipped, and could never become ready.

Change

  • New helper: epicIssuesShippedBefore in packages/core/src/webhook/epicProgressCount.ts. It lists the plan issues that a previous epic already shipped. It matches a shipped PR to an issue the same way the progress count does: either the PR is the issue's linked PR, or it comes from a branch named for the issue (101/… or 101-…).
  • Both progress paths now use it instead of checking only issue.pr_number:
    • the progress comments, via reportablePlanIssues in epicMergeProgress.ts
    • the status line and title, via loadEpicStatusFacts in pullRequestStatusEpicFacts.ts
  • Lint: adding this to updateEpicMergeProgress pushed it over the complexity limit, so the lookup now happens inside reportablePlanIssues instead.

Tests

  • New regressions: each sets up the case from the finding. Issue Feat: Implement Dynamic Repository Management via Web UI #101's linked PR is still open, and an alternate PR from its branch merged before the previous epic. A human PR and a PR for a second issue merge after it. The new tests check:
    • in test/epicMergeProgress.test.ts, with the trigger being a child PR merge and with the epic itself merged: the count is 1 of 1, and the ready comment (or, once the epic merged, the final-merge comment) is posted.
    • in packages/core/test/pullRequestStatusEpicSync.test.ts: the status line reads ✅ 1 of 1 issues merged and the title shows 1/1.
  • Negative check: all three new tests fail when run against the source files from before this change.
  • Suites: test/epicMergeProgress.test.ts (78 pass), test/epicMergeProgressHandler.test.ts (61 pass) and pullRequestStatusEpicSync.test.ts (38 pass) all pass. ESLint with zero warnings and tsc --noEmit pass in packages/core.

Also found, not changed:

  • Plural on the status line: it reads "1 of 1 issues merged" where the progress comment would say "issue". The comment uses progressNoun to pick the word, but the status line always prints "issues". That is outside F5, so the new test accepts either form.
  • Epic body: the issue list and Fixes lines don't drop issues that a previous epic shipped, by either kind of PR. They never checked for this, so it isn't the defect F5 describes.

No preview was made: the change only affects GitHub comment, status-line and title text.

Review digest

Risk-tiered paths

  • High risk: none
  • Normal risk (3 files)
    • packages/core/src/services/pullRequestStatus/pullRequestStatusEpicFacts.ts (+3/−2)
    • packages/core/src/webhook/epicMergeProgress.ts (+10/−5)
    • packages/core/src/webhook/epicProgressCount.ts (+25/−0)
  • Low risk (2 files)
    • packages/core/test/pullRequestStatusEpicSync.test.ts (+14/−0)
    • test/epicMergeProgress.test.ts (+21/−0)

Validation evidence

  • No repository validation commands ran.

Diff size: 5 files changed, +73/−7 lines


🤖 Implementation Details

  • Model: Claude Opus 5.5 (high)
  • Requested By: @propr-ultrafix
  • Time: 8m 36s
  • Tokens: 1,418,257 (1,407,541 in / 10,716 out)
  • Cost: $0.83

View Task Execution


💡 ProPR Slash Commands
Command Description Example
/merge Merge target branch into this PR and resolve conflicts /merge
/review Request an AI code review /review or /review claude-sonnet
/fix Address review blockers, or blockers and suggestions with /fix all /fix, /fix all, or /fix F3 S5
/switch Change the AI model for this PR /switch claude-opus
/use Override the model for a single follow-up run /use claude-sonnet
/ultrafix Loop review→fix cycles until score goal is met /ultrafix or /ultrafix goal=8 max=10

🤖 Generated by ProPR

…sue that a previous epic already shipped, even when the PR that shipped it is an alternate PR from the issue's branch and the issue's linked PR is still open. In that case the later epic used to show "0 of 1 issues merged" for work that had already shipped, and could never become ready.

I fixed F5. A later epic on the same branch now drops an issue that a previous epic already shipped, even when the PR that shipped it is an alternate PR from the issue's branch and the issue's linked PR is still open. In that case the later epic used to show "0 of 1 issues merged" for work that had already shipped, and could never become ready.

**Change**
- **New helper:** `epicIssuesShippedBefore` in `packages/core/src/webhook/epicProgressCount.ts`. It lists the plan issues that a previous epic already shipped. It matches a shipped PR to an issue the same way the progress count does: either the PR is the issue's linked PR, or it comes from a branch named for the issue (`101/…` or `101-…`).
- **Both progress paths now use it** instead of checking only `issue.pr_number`:
  - the progress comments, via `reportablePlanIssues` in `epicMergeProgress.ts`
  - the status line and title, via `loadEpicStatusFacts` in `pullRequestStatusEpicFacts.ts`
- **Lint:** adding this to `updateEpicMergeProgress` pushed it over the complexity limit, so the lookup now happens inside `reportablePlanIssues` instead.

**Tests**
- **New regressions:** each sets up the case from the finding. Issue #101's linked PR is still open, and an alternate PR from its branch merged before the previous epic. A human PR and a PR for a second issue merge after it. The new tests check:
  - in `test/epicMergeProgress.test.ts`, with the trigger being a child PR merge and with the epic itself merged: the count is 1 of 1, and the ready comment (or, once the epic merged, the final-merge comment) is posted.
  - in `packages/core/test/pullRequestStatusEpicSync.test.ts`: the status line reads `✅ 1 of 1 issues merged` and the title shows `1/1`.
- **Negative check:** all three new tests fail when run against the source files from before this change.
- **Suites:** `test/epicMergeProgress.test.ts` (78 pass), `test/epicMergeProgressHandler.test.ts` (61 pass) and `pullRequestStatusEpicSync.test.ts` (38 pass) all pass. ESLint with zero warnings and `tsc --noEmit` pass in `packages/core`.

**Also found, not changed:**
- **Plural on the status line:** it reads "1 of 1 issues merged" where the progress comment would say "issue". The comment uses `progressNoun` to pick the word, but the status line always prints "issues". That is outside F5, so the new test accepts either form.
- **Epic body:** the issue list and `Fixes` lines don't drop issues that a previous epic shipped, by either kind of PR. They never checked for this, so it isn't the defect F5 describes.

No preview was made: the change only affects GitHub comment, status-line and title text.

PR: #3612
Comment by: @propr-ultrafix (ID: 0)
Model: Claude Opus 5.5
@propr-dev

propr-dev Bot commented Nov 17, 2026

Copy link
Copy Markdown
Contributor Author

❌ ProPR could not start on /review

The ProPR worker refused the job because the disk that holds its working copies is nearly full. Nothing was changed on this pull request. Once space has been freed on the worker host, post the command again.

@propr-dev

propr-dev Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ AI Code Review Complete requested by @propr-ultrafix

Posted 1 review:

View Task Details

@propr-dev

propr-dev Bot commented Nov 17, 2026

Copy link
Copy Markdown
Contributor Author

🔍 AI Code Review — codex:gpt-6-astra

Overall Evaluation

Ready to merge within the reviewed scope. The PR centralizes issue-based progress counting and updates the affected comments, status calculations, and body filtering coherently.

✅ Consistent attribution — Linked PRs and issue-named branches contribute to a deduplicated set of merged plan issues; unrelated PRs remain listed without inflating progress.

✅ Boundary coverage — Added tests cover alternate PRs, predecessor epics, empty filtered plans, and delayed triggering-child evidence.

✅ Final reporting — Merged epics retain their counts while dropping misleading pending indicators and progress bars.

Review was static using the supplied diff and context; no commands were run. Current-head checks report 18 passed, none failed or pending.

Merge blockers

No merge blockers.

Suggestions

These are optional follow-ups and are not sent to /fix.

S5: 🟢 Align remaining documentation

The introductory paragraph under “Epic pull requests” in docs/docs/features/pr-status.md still describes counting every open or merged sub-PR plus issue placeholders. Update it to describe plan-issue counting, matching the implementation and revised work-splitting documentation. This is a non-blocking documentation inconsistency.

S6: 🟢 Clarify empty-plan final reports

In packages/core/src/webhook/epicMergeProgress.ts, buildEpicFinalMergeComment says no child PRs or planned issues were tracked whenever total === 0. The new empty-plan behavior can produce that total while mergedPullRequests contains a human PR. Wording such as “No planned issues remained to count” would describe that case more accurately; the underlying counts remain correct.

Score

The implementation is focused, has substantial regression coverage, and has no verified merge blockers. All reported current-head checks are successful or skipped.

Score: 9/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 46s
  • Tokens: 74,120 (73,457 in / 663 out)
  • Cost: $0.66

View Task


💡 Next step: Comment /fix to address every F# merge blocker, /fix all for every pending blocker and suggestion, or name records explicitly, as in /fix F3 S5.
F# and S# IDs increment across review comments and remain permanent, so selectors such as /fix F3 F5 stay unambiguous across cycles. S# suggestions stay optional: they are implemented only when you name them or request /fix all, and they never relax a merge blocker.

Copy and edit to choose records from this review:

/fix S5 S6

🤖 Review by ProPR

@propr-dev propr-dev Bot removed the ultrafix label Nov 17, 2026
@propr-dev propr-dev Bot changed the title 🔨 [3594 by Claude Opus 5.5] Epic progress: count plan issues, and make the progress comment, the ready comment and the title agree ✅⑨ [3594 by Claude Opus 5.5] Epic progress: count plan issues, and make the progress comment, the ready comment and the title agree Nov 17, 2026
@integry
integry merged commit 468370f into 3589-epic-0-9-y3w Nov 17, 2026
42 checks passed
@propr-dev propr-dev Bot changed the title ✅⑨ [3594 by Claude Opus 5.5] Epic progress: count plan issues, and make the progress comment, the ready comment and the title agree [3594 by Claude Opus 5.5] Epic progress: count plan issues, and make the progress comment, the ready comment and the title agree Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant