Repository navigation
[3531 by Claude Opus 5.5] Show epic progress in the epic PR's title and status block - #3540
Conversation
…es are merged into the epic branch, in the title and the status block. The progress comment now also lists what is in progress and what is next. All the tests I ran pass. I didn't run the full CI suite. What the epic shows - Title (with `prTitleStatus` on): the status emoji is followed by the count, e.g. `🔨 3/5 [Epic] Scheduler primitives`. The shared title helpers recognise and strip the count everywhere, including `[Epic]` detection and the web UI. With the setting off, epic titles are left alone and the status block is still written. - Status block: the first line reads e.g. `ProPR 🔨 3 of 5 issues merged · #3475 in progress (Ultrafix cycle 4 of 10, last review 6/10) · updated 09:41 UTC`. - A sub-PR that is `ready` but unmerged gives `⚠️ … · #3523 (issue #3475) waits to be merged into the epic branch`. - With every issue merged it reads `✅ 5 of 5 issues merged · checks: 12 passed`, or `⚠️ ` with the failed check or the conflict. - States: they follow your table. An epic shows no review score, and a low score never holds it back. When issues remain but nothing is running and none of your listed causes applies, the epic shows `⚠️ ` with "nothing in progress". I added that as a fallback. - New epic PRs: created with `🔨 0/N` and the status block already in the body. An epic PR created on the first sub-PR merge (the usual case) starts at `🔨 1/N` instead, since one issue is already merged. The epic body builder keeps the status block when it rewrites the body. - Counts: these come from the existing `computeEpicMergeProgress`. That includes excluding sub-PRs that already shipped through an earlier epic PR. I removed the separate count the status facts used to do. Renames - The title changes only when the count or the state changes. - While the queue is about to start the next issue, the epic stays `🔨`, so a merge costs one rename. The test for this confirms exactly one. Progress comment - Below "Merged child PRs" it now adds `In progress:` and `Up next:` lines, whatever `prTitleStatus` says. - "In progress" is left out when empty. "Up next" reads `none` once the last issue is in progress, and both lines go when there is neither. That is how I reconciled "omit empty lines" with your `Up next: none` example. - It is updated in the same pass as the status block, with no GitHub write when nothing changed. When the epic gets updated - A sub-PR into the epic branch opens, closes or is retargeted. - A sub-PR's own status block or title changes. - A plan issue changes status, such as starting. - A sub-PR merges. Limits to know about - Reading an epic's status now reads the status of up to 10 of its open sub-PRs. That is extra GitHub calls per epic update, and also for MCP status reads. - Issue titles in the comment come from the epic body's issue list, so there is no extra GitHub read per issue. - The status pass only updates an existing progress comment. Creating it is still the job of the first merge, so the two writers can't post it twice. - The merge path keeps the existing "In progress"/"Up next" lines and then triggers the status pass to refresh them. For a moment after a merge, the merged sub-PR can still be listed as in progress. Tests and checks - New suites cover: - the epic state table, block wording and title slot (`pullRequestStatusEpic.test.ts`). - a fake-GitHub sync run (`pullRequestStatusEpicSync.test.ts`): title, block, comment, no-op writes, one rename per merge, setting off, and the signals. - creation with `🔨 0/N` (`epicPRCreationStatus.test.ts`). - Existing suites gained cases for the slot with a count, `[Epic]` detection behind it, and the comment lines. - I updated two existing expectations to the new wording (`issues: 1 of 2 merged` became `1 of 2 issues merged`). - I broke the title change on purpose and confirmed 5 tests fail, then restored it. - Core and API typecheck clean. Core source lint has zero warnings; four files went over the 400-line limit, so I moved the new code into new modules rather than leave warnings. Docs are updated in `docs/docs/features/pr-status.md` (new "Epic pull requests" section) and `work-splitting.md`, plus a `CHANGELOG.md` entry. There is no UI change, so I made no visual preview.
|
/ultrafix goal=8 max=10 |
|
🔄 Ultrafix loop started (goal: 8/10, max cycles: 10) First action:
|
|
✅ AI Code Review Complete requested by @propr-ultrafix Posted 1 review: |
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationThe PR implements epic progress across titles, status blocks, and comments with useful focused coverage, but needs changes before merge. Three correctness issues remain in activity classification and comment synchronization. ✅ Shared title handling — Counted slots are recognized by the shared parser, including removal for merge commit titles and ✅ Consistent progress calculation — Status loading reuses the existing merge-progress computation and excludes children shipped through earlier epics. ✅ Focused integration coverage — Fake-GitHub tests cover unchanged writes, title settings, merge-driven counts, and propagation from child PRs. This review is a static trace of the supplied code; no commands or tests were run. The authoritative checks show 18 passed, five pending, and no failures. Merge blockersEvery finding below was introduced by this PR and must be resolved before merging. F1: 🔴 Status sync can overwrite finalized progress
F2: 🔴 Agent-blocked issues remain falsely working
F3: 🔴 Child-status limit changes the reported state
SuggestionsThese are optional follow-ups and are not sent to S1: 🟢 Measure epic lookup amplificationThe new status path reads child PR details and their checks, queue state, and review records, including during MCP list calls. Instrument request counts and latency before considering caching or batching. This is an optional performance follow-up; the supplied code does not establish an operational failure from the additional traffic. ScoreThe implementation has useful shared helpers and focused tests, but incorrect activity states and an unfenced comment writer require corrections. Current checks show no failures, with five still pending. Score: 6/10 🤖 Review Details
Copy and edit to choose records from this review: 🤖 Review by ProPR |
|
✅ Applied the requested follow-up changes in commit 6615d5e
Summary of ChangesI fixed F1, F2 and F3. The tests I ran pass, but I didn't run the full CI suite. F1: the status pass could overwrite a finalized progress comment
F2: an issue stopped on a blocker showed as in progress
F3: the 10-sub-PR read limit could change the reported state
Tests
I updated the epic section of 🤖 Implementation Details
💡 ProPR Slash Commands
🤖 Generated by ProPR |
…un the full CI suite. I fixed F1, F2 and F3. The tests I ran pass, but I didn't run the full CI suite. **F1: the status pass could overwrite a finalized progress comment** - **Shared lock:** before writing the comment, the status pass now takes the same per-epic lock the merge-progress writer uses. If the merge writer holds it, the status pass waits up to 5 seconds and then skips; the merge writer requests a status sync when it finishes, so the comment still gets refreshed. - **Check again after locking:** once it holds the lock, the status pass reads the epic PR and its comments again. It leaves the comment alone if the epic is no longer open or already merged, if the final-merge confirmation exists, or if the comment already says "This epic PR has been merged into …". - **Only the activity lines change:** the status pass now replaces just the "In progress" and "Up next" lines in the current comment. The counts and "Merged child PRs" stay as the merge writer wrote them, because it has evidence a status read lacks, such as a just-merged child that GitHub's list doesn't show yet. - **Trade-off:** while the status pass holds the lock, a merge update that arrives is pushed to its retry sweep. That is how it already handles a busy lock; it keeps its retry and runs about 60 seconds later. The status pass also stops updating the comment's counts; between merges they stay at what the last merge wrote, as before this PR. **F2: an issue stopped on a blocker showed as in progress** - The issue named in the queue's agent-blocked reason is no longer counted as running, even though its status stays `processing`. - If nothing else is running, the epic shows `⚠️ … · #802 stopped on a blocker`, under a new reason `epic_issue_blocked`. - Work that is really running, on a sub-PR or another issue, still makes the epic `🔨`. - The progress comment lists the issue as "stopped on a blocker". **F3: the 10-sub-PR read limit could change the reported state** - Sub-PRs past the 10-status limit are now marked as unread instead of looking like sub-PRs without a ProPR status. - If a sub-PR it read is working, the epic still shows working. - If nothing it read is working but some were not read, the result is a new reason `epic_children_unread`, and the status pass leaves the existing body line and title as they are. MCP reads return that reason with a count of the unread sub-PRs. - **Limitation:** for an epic with more than 10 open sub-PRs where none of the first 10 is working, the line and title stay frozen until the number of open sub-PRs drops to 10 or fewer. That is the "wait until enough statuses are read" option from the finding. **Tests** - New cases in `pullRequestStatusEpic.test.ts` and `pullRequestStatusEpicSync.test.ts` cover: - the epic merging while the status pass runs - an existing final-merge comment - newer counts from the merge writer being kept - waiting for the lock, and the merge writer deferring while the status pass holds it - the blocked queue head, with and without running sibling work - an 11th unread sub-PR - I switched off each fix in turn and confirmed its tests fail, then restored the code. - The sync test fixture now starts from a comment as the merge writer writes it, instead of the placeholder `old`. The merge helper in that test also updates the counts the way the merge writer does. - Core and API typecheck clean, core source lint has no warnings, and the related core and root epic suites pass (225 and 136 tests). I updated the epic section of `docs/docs/features/pr-status.md` for the new reasons and how the two writers share the comment. Nothing in the UI changed, so there is no visual preview. PR: #3540 Comment by: @propr-ultrafix (ID: 0) Model: Claude Opus 5.5
|
✅ AI Code Review Complete requested by @propr-ultrafix Posted 1 review: |
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationThe PR adds epic progress to titles, status blocks, and comments, with shared counting and rendering logic. It needs changes before merge because the child-status read limit can permanently prevent progress updates. ✅ Shared title handling — Count-bearing slots are recognized by the same helpers used for epic detection, UI titles, and merge commit titles. ✅ Protected comment updates — Activity updates share the merge-progress lease, preserve merge counts, and check for finalized epic comments before writing. ✅ Focused coverage — Added tests cover state selection, creation, unchanged writes, title settings, and comment coordination. This review uses static analysis of the supplied code; no commands were run. Current checks show 23 passed, none failed, and one pending. Merge blockersEvery finding below was introduced by this PR and must be resolved before merging. F4: 🔴 Child read budget permanently freezes status
SuggestionsThese are optional follow-ups and are not sent to S2: 🟢 Measure epic read amplificationThe new loader reads child details and each child’s status dependencies on every epic refresh, including MCP reads. Request-count instrumentation would help assess the documented extra traffic and guide caching or coalescing. This is optional performance work; the supplied evidence does not establish a current capacity failure. ScoreThe implementation has substantial focused coverage and passing checks, but the permanent status freeze affects the feature’s core behavior for larger epics. Score: 6/10 🤖 Review Details
Copy and edit to choose records from this review: 🤖 Review by ProPR |
|
✅ Applied the requested follow-up changes in commit 963d9aa
Summary of ChangesI fixed F4: an epic with more than 10 open sub-PRs now ends up with the right state and merged count, without needing sub-PRs to close first. The tests below pass; I didn't run the full CI suite. What was wrong: every update read the same first 10 sub-PRs and threw the results away, so the ones past 10 were never read. The epic stayed "undetermined" forever, and that path wrote nothing, not even a changed merged count. What changed
The kept statuses live in memory, so after a restart the first updates read the sub-PRs again. One window remains by design: if a sub-PR's status changes but its own update hasn't written the change to GitHub yet, the epic can briefly use the older status. That sub-PR's update then triggers an epic update, which reads it again. Tests (
I updated the read-limit wording in 🤖 Implementation Details
💡 ProPR Slash Commands
🤖 Generated by ProPR |
… up with the right state and merged count, without needing sub-PRs to close first. The tests below pass; I didn't run the full CI suite. I fixed F4: an epic with more than 10 open sub-PRs now ends up with the right state and merged count, without needing sub-PRs to close first. The tests below pass; I didn't run the full CI suite. **What was wrong:** every update read the same first 10 sub-PRs and threw the results away, so the ones past 10 were never read. The epic stayed "undetermined" forever, and that path wrote nothing, not even a changed merged count. **What changed** - **Statuses are kept between updates** (new `pullRequestStatusEpicChildReads.ts`). Each sub-PR status ProPR reads is kept, tied to that sub-PR's head commit and GitHub's last-updated time. - A kept status is used only while both still match, and for at most 10 minutes. - A sub-PR's own status update rewrites its body, which changes its updated time and also triggers an epic update, so an out-of-date kept status is never reused after that. - Each update reads first the sub-PRs with no current status, then those read longest ago, up to 10. Epics with 10 or fewer sub-PRs still have all of them read every time. - To support this, the sub-PR list now also records each open sub-PR's head commit and updated time (`epicMergeProgress.ts`). - **Follow-up updates are scheduled.** If sub-PRs are still unread and the state can't be determined, ProPR schedules another update 5 seconds later. That stops after 20 in a row; reaching it means sub-PRs keep changing faster than they're read, and each change triggers an epic update anyway. - **The count updates while the state is unknown.** The state already shown stays (no new state is claimed), but the count is updated: - in the status block's first line (`🔨 1 of 14 issues merged`), along with its "updated" time. - in the title slot, keeping its emoji and going through the usual title rules: the `prTitleStatus` setting, a slot someone removed is not put back, and the delay before showing⚠️ . The kept statuses live in memory, so after a restart the first updates read the sub-PRs again. One window remains by design: if a sub-PR's status changes but its own update hasn't written the change to GitHub yet, the epic can briefly use the older status. That sub-PR's update then triggers an epic update, which reads it again. **Tests** (`pullRequestStatusEpicSync.test.ts`) - The finding's scenario: 12 open sub-PRs, all work finished. The first update keeps `🔨` with the count updated (`1/14`). The next one reads the two left over and switches to⚠️ "#911 waits to be merged". After a sub-PR merges with more than 10 still open, the count moves to `2/14` and the state stays⚠️ . - A sub-PR that changes after its status was kept is read again (#930 starts working → `🔨 … #930`). - With only one signal sent, the scheduled follow-up alone settles the state. - I changed the existing unread-sub-PR test: it now expects the state to stay and the count to update (`1 of 13`), not "nothing written". - Turning off each part on its own (the kept-status check, the follow-up, using kept statuses) makes the matching new tests fail. - These suites all pass: `pullRequestStatus*`, `epic*` (core) and the root `epicMergeProgress*`. Core typecheck is clean and core `src` lint shows zero warnings. I updated the read-limit wording in `docs/docs/features/pr-status.md`. Nothing visible in the app changed, so there's no preview. PR: #3540 Comment by: @propr-ultrafix (ID: 0) Model: Claude Opus 5.5
|
✅ AI Code Review Complete requested by @propr-ultrafix Posted 1 review: |
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationThe PR implements epic progress across titles, status blocks, and comments with substantial focused coverage. It needs localized corrections before merge. ✅ Shared title handling — Counted slots are recognized by the shared stripping helpers, preserving epic detection and clean merge commit titles. ✅ Comment ownership protection — Activity updates share the merge-progress lease and recheck whether the epic or its progress comment has been finalized. ✅ Focused integration coverage — Tests cover unchanged-write suppression, title settings, merge transitions, and child-status read continuations. The supplied checks show 23 passed, none failed, and one pending. This review used static analysis only; no commands were run. Merge blockersEvery finding below was introduced by this PR and must be resolved before merging. F5: 🔴 Preserve blockers on pending issues
F6: 🔴 Reject incomplete epic pagination
SuggestionsThese are optional follow-ups and are not sent to No suggestions. ScoreThe implementation has strong focused tests and passing reported checks, but two uncovered boundary conditions can publish misleading epic status. Both corrections are localized. Score: 6/10 🤖 Review Details
Copy and edit to choose records from this review: 🤖 Review by ProPR |
|
✅ Applied the requested follow-up changes in commit dd06714
Summary of ChangesI fixed both findings, F5 and F6, in F5: blocked issue still marked pending
F6: lists cut off after ten pages
Behaviour to be aware of: an epic with more than 1,000 pull requests into its branch, or more than 1,000 comments, now keeps its last published status indefinitely instead of showing a possibly wrong one. Each update logs the failed read. I chose this over reading without a limit, which the finding allowed, because it bounds the GitHub calls per update. Tests, all in
There's no visual change, so I made no preview. 🤖 Implementation Details
💡 ProPR Slash Commands
🤖 Generated by ProPR |
…Facts.ts` and added regression tests. The full epic sync suite (22 tests) and the related epic suites pass. Core typecheck is clean and the file lints with zero warnings. I put the old source back and confirmed the three new tests fail on it. I didn't run the full CI suite. I fixed both findings, F5 and F6, in `pullRequestStatusEpicFacts.ts` and added regression tests. The full epic sync suite (22 tests) and the related epic suites pass. Core typecheck is clean and the file lints with zero warnings. I put the old source back and confirmed the three new tests fail on it. I didn't run the full CI suite. **F5: blocked issue still marked pending** - An issue named by the queue's blocker reason is now reported as blocked even if its saved status is still `pending`. Before, only issues that had started were checked. - So the status line reads `⚠️ … #802 stopped on a blocker` instead of "nothing in progress". The progress comment lists it as `In progress: #802 (…) - stopped on a blocker`, and it no longer appears under "Up next". - An issue whose status is `merged` or `closed` is not marked blocked, even if an old blocker reason still names it. - I checked the related code: the queue already stops treating a blocked queue as runnable, so nothing else in this path made the same mistake. **F6: lists cut off after ten pages** - The page reader used to stop after 10 pages (1,000 items) and return what it had as if that were the whole list. If the 10th page is full, it now reads an 11th. If that page has anything on it, the read fails. If it is empty, the list is complete, so a list of exactly 1,000 still works. It never stops at a partial list. - A failed read leaves the epic's existing status block, title and progress comment as they are. - This reader handles every epic list: pull requests into the epic branch, earlier epic PRs to the base branch, and the epic PR's comments. - The comment list had a real failure of the same kind. If the "epic merged" confirmation comment is past the 10th page, the old code missed it and rewrote a progress comment that should have been left alone. Now that update is skipped and a warning is logged; the next epic update tries again. - I also capped the page size at 100, since GitHub never returns more than that per page. **Behaviour to be aware of:** an epic with more than 1,000 pull requests into its branch, or more than 1,000 comments, now keeps its last published status indefinitely instead of showing a possibly wrong one. Each update logs the failed read. I chose this over reading without a limit, which the finding allowed, because it bounds the GitHub calls per update. **Tests**, all in `packages/core/test/pullRequestStatusEpicSync.test.ts`: - The fake GitHub there now returns real pages of `per_page` items instead of everything on page 1. - A pending queue head stopped on a blocker shows `⚠️ … stopped on a blocker` and isn't listed as up next. - With 1,001 pull requests into the epic branch, and the open sub-PR last, the update fails without writing anything. The published status, title and comment are unchanged. At exactly 1,000 the status is read normally. - With 1,000 comments before the "epic merged" confirmation, the progress comment is not rewritten. There's no visual change, so I made no preview. PR: #3540 Comment by: @propr-ultrafix (ID: 0) Model: Claude Opus 5.5
|
✅ AI Code Review Complete requested by @propr-ultrafix Posted 1 review: |
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationThe PR implements epic progress across titles, status blocks, and progress comments with substantial coverage. It needs a localized correction before merge: child-status reads do not finish automatically when the epic is already known to be working. ✅ Shared progress calculation — Epic status facts reuse ✅ Protected comment updates — Activity updates share the merge-progress lease, preserve merge counts, and check for finalized epics before writing. ✅ Focused coverage — Added tests exercise title slots, unchanged writes, blocked issues, pagination limits, and unread-child recovery. The supplied current checks show 21 passed, two pending, and no failures. This review is based on static inspection; no commands were run. Merge blockersEvery finding below was introduced by this PR and must be resolved before merging. F7: 🔴 Continue child reads while working
SuggestionsThese are optional follow-ups and are not sent to S3: 🟢 Measure aggregate read costsThe ten-child limit bounds child count, but each child status also reads checks and ProPR records. Measuring GitHub requests and latency per epic update would help assess the additional load on webhook processing and MCP reads. This is an optional operational improvement; the supplied evidence does not establish a performance failure. ScoreThe implementation has strong targeted coverage and no reported current check failures, but its continuation scheduling leaves part of the new progress display incomplete during ongoing work. The required correction is localized. Score: 6/10 🤖 Review Details
Copy and edit to choose records from this review: 🤖 Review by ProPR |
|
✅ Applied the requested follow-up changes in commit e862ec8
Summary of ChangesI've fixed F7. An epic update that leaves sub-PRs unread now schedules a follow-up update to read them, even when it finds the epic working. The new regression test passes, and it fails when I put the old source back. What changed
Regression test Checks run
Separate discovery, not changed: MCP status reads also go through the same sub-PR reading code, so each one counts toward the 20-in-a-row cap on follow-up reads. Frequent MCP reads of a large epic could use up that budget early. Those reads also store what they read, so later updates still converge. I haven't checked whether this matters in practice. 🤖 Implementation Details
💡 ProPR Slash Commands
🤖 Generated by ProPR |
…w schedules a follow-up update to read them, even when it finds the epic working. The new regression test passes, and it fails when I put the old source back. I've fixed F7. An epic update that leaves sub-PRs unread now schedules a follow-up update to read them, even when it finds the epic working. The new regression test passes, and it fails when I put the old source back. **What changed** - **The bug:** only the undetermined-state path in `undeterminedEpicUpdate` scheduled the follow-up read. When a sub-PR among the first ten was working, a plan issue was running or the next issue was queued, the epic went down the ordinary path. Nothing else changes while it keeps working, so the sub-PRs past the ten-read limit never had their status shown in the progress comment. - **The fix:** a new helper, `withEpicChildReadContinuation` in `pullRequestStatusEpicSync.ts`, decides when the update runs again. `syncUnderBodyLock` (`pullRequestStatusSync.ts:305`) now uses it for every outcome. Whenever the epic facts ask for more reads, the update runs again after the follow-up delay, or sooner if the title is already due to update earlier. Closed pull requests (no status) schedule nothing. - **Cleanup:** I removed the old scheduling from `undeterminedEpicUpdate`, along with the input field it no longer needs. The undetermined path now gets the same scheduling as every other outcome. The existing 20-in-a-row cap on follow-up reads still applies. **Regression test** I added one test to `pullRequestStatusEpicSync.test.ts`, "a working epic that left sub-PRs unread schedules the update that reads them into the progress comment". It sets up 12 open sub-PRs: #911 is working and read first, and #930 is ready to merge but past the ten-read limit. After one request and no further signal, the follow-up update reads #930 and the progress comment shows `#930 (PR 930) - ready to merge`, while the epic stays `🔨`. On the old source this test fails. **Checks run** - These suites pass: `pullRequestStatusEpicSync` (23), `pullRequestStatusEpic` (20), `pullRequestStatusSync` (70), `pullRequestStatusTitle` (14), `pullRequestStatus` (33), `pullRequestStatusReconcileRuns` (8) and `epicPRCreationStatus` (2). That last one needs `--experimental-test-module-mocks`. - Core typecheck is clean, and lint on `src/services/pullRequestStatus/` reports zero warnings, including the 400-line and complexity limits. - I didn't run the full CI suite. - This change has no visible UI, so there is no preview. **Separate discovery, not changed:** MCP status reads also go through the same sub-PR reading code, so each one counts toward the 20-in-a-row cap on follow-up reads. Frequent MCP reads of a large epic could use up that budget early. Those reads also store what they read, so later updates still converge. I haven't checked whether this matters in practice. PR: #3540 Comment by: @propr-ultrafix (ID: 0) Model: Claude Opus 5.5
|
✅ AI Code Review Complete requested by @propr-ultrafix Posted 1 review: |
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationThe PR adds epic progress consistently across titles, status blocks, and comments, with substantial focused coverage. It needs changes before merge because queue readiness is misreported and large epics can stop refreshing before all children are read. ✅ Shared title handling — Count-bearing slots are handled by the shared parser, including stripping them from squash commit titles and preserving ✅ Protected comment updates — Activity updates share the merge-progress lease, reread the epic, and preserve finalized comments and merge-owned counts. This review used static analysis of the supplied code; no commands were run. Current checks show 21 passed, two pending, and no failures. Merge blockersEvery finding below was introduced by this PR and must be resolved before merging. F8: 🔴 Respect queue readiness before reporting work
F9: 🔴 Finish reading stable large epics
SuggestionsThese are optional follow-ups and are not sent to No suggestions. ScoreThe implementation has strong focused tests and careful comment-write coordination, but two status correctness defects remain. Pending checks alone do not lower this assessment. Score: 6/10 🤖 Review Details
Copy and edit to choose records from this review: 🤖 Review by ProPR |
|
✅ Applied the requested follow-up changes in commit 56c114b
Summary of ChangesI fixed F8 and F9. The new regression tests fail on the previous code and pass now. The three epic status suites pass (49 tests), core typecheck is clean, and the two changed source files lint with zero warnings. I didn't run the full CI suite. F8: an epic whose queue isn't ready no longer shows queued work
F9: large stable epics are now read to the end
I also added one clause each about the readiness check and the continuation rule to the epic section of Separate finding, not fixed: with 10 reads per update, statuses kept for 10 minutes, and updates at least 5 seconds apart, roughly 1,000 open sub-PRs or more can't all be held at once. Statuses expire as fast as they're read, so the stall limit ends the updates and the epic keeps its published state. The list check allows up to 1,000 pull requests into an epic branch, so this sits at the extreme end of what's accepted. Fixing it would need a larger per-update read budget or a longer retention time, which is a design choice outside F9. 🤖 Implementation Details
💡 ProPR Slash Commands
🤖 Generated by ProPR |
…vious code and pass now. The three epic status suites pass (49 tests), core typecheck is clean, and the two changed source files lint with zero warnings. I didn't run the full CI suite. I fixed F8 and F9. The new regression tests fail on the previous code and pass now. The three epic status suites pass (49 tests), core typecheck is clean, and the two changed source files lint with zero warnings. I didn't run the full CI suite. **F8: an epic whose queue isn't ready no longer shows queued work** - `nextIssueQueued` in `pullRequestStatusEpicFacts.ts` now also requires `queue.ready`, the same check `startEpicQueueHead` and `advanceEpicQueue` make. The check comes before the sequential/parallel split, so it covers: - a pending head. - a merged head with an issue still to start. - the parallel branch. - Such an epic now shows `⚠️ … nothing in progress` instead of `🔨 … #N starts next`. - I checked what happens when the queue becomes ready. Setup and recovery call `startEpicQueueHead` right away. When the head starts, its status change triggers an epic update, so the `⚠️ ` doesn't linger. - Two new tests in `pullRequestStatusEpicSync.test.ts` cover an unready queue with nothing running, one sequential and one parallel. Each checks the epic goes back to `🔨 … starts next` once the queue is ready. **F9: large stable epics are now read to the end** - The limit of 20 continuations used to count every pass. Now an update reads 10 sub-PRs and counts as progress when it reads one that hadn't been read since the epic was last fully read. The count is kept in `pullRequestStatusEpicChildReads.ts`. - Only updates that read nothing new count toward the limit, which is now `MAX_STALLED_EPIC_CHILD_READ_PASSES` (20 in a row). These happen when sub-PRs keep changing as fast as they are read. Any progress resets the count, and so does an update that leaves nothing unread. - Sub-PRs not yet read are always read first, so a stable epic of any size keeps scheduling updates until all are read. - New tests: - **211 sub-PRs, end to end:** the epic was published as working, and the scheduled updates alone must reach `⚠️ 1 of 213 issues merged · #911 … waits to be merged`. The old code stopped one sub-PR short. - **Unit tests (new file `pullRequestStatusEpicChildReads.test.ts`):** - 211 and 1000 stable sub-PRs are each read in `ceil(N/10)` updates. - Sub-PRs that change every time they are read stop the updates after 2 progressing updates plus 20 stalled ones. - A newly opened sub-PR resets the stall count. - **Mutation check:** I removed the limit on purpose, and two of the unit tests failed. I also added one clause each about the readiness check and the continuation rule to the epic section of `docs/docs/features/pr-status.md`. There's no visual change, so I made no preview. **Separate finding, not fixed:** with 10 reads per update, statuses kept for 10 minutes, and updates at least 5 seconds apart, roughly 1,000 open sub-PRs or more can't all be held at once. Statuses expire as fast as they're read, so the stall limit ends the updates and the epic keeps its published state. The list check allows up to 1,000 pull requests into an epic branch, so this sits at the extreme end of what's accepted. Fixing it would need a larger per-update read budget or a longer retention time, which is a design choice outside F9. PR: #3540 Comment by: @propr-ultrafix (ID: 0) Model: Claude Opus 5.5
|
✅ AI Code Review Complete requested by @propr-ultrafix Posted 1 review: |
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationThe PR implements epic progress across titles, status blocks, and progress comments with substantial focused coverage. It needs a localized correction before merge: epic updates currently depend on whether a child’s status produces a visible GitHub write. ✅ Shared progress computation — Epic status uses the existing merge-progress calculation, including exclusion of previously shipped children. ✅ Serialized comment updates — The new activity writer shares the merge-progress lease and rereads the epic and finalization markers before editing its comment. This review used static analysis of the supplied code; no commands were run. The supplied current-head checks show 20 passed, 3 pending, and no failures. Merge blockersEvery finding below was introduced by this PR and must be resolved before merging. F10: 🔴 Signal epic updates without child writes
SuggestionsThese are optional follow-ups and are not sent to S4: 🟢 Model update timestamps in fixturesHave the fake GitHub PATCH implementation update ScoreThe implementation has strong focused coverage and careful comment serialization, but one propagation defect can leave the central epic status stale. Pending checks remain outstanding. Score: 6/10 🤖 Review Details
Copy and edit to choose records from this review: 🤖 Review by ProPR |
|
✅ Applied the requested follow-up changes in commit fe5b8b2
Summary of ChangesI fixed F10. When a sub-PR's status changes, its epic is now updated even if nothing on the sub-PR can be rewritten (title setting off, description too full for the status block). The four new regression tests fail on the previous code and pass now. All 8 pull-request status suites pass (182 tests), core typecheck is clean, and the changed source files lint with zero warnings. I didn't run the full CI suite. The fix
The same bug in the kept sub-PR statuses Tests added
I also updated two sentences in Limits that remain
There's no visual change, so I made no preview. 🤖 Implementation Details
💡 ProPR Slash Commands
🤖 Generated by ProPR |
…w updated even if nothing on the sub-PR can be rewritten (title setting off, description too full for the status block). The four new regression tests fail on the previous code and pass now. All 8 pull-request status suites pass (182 tests), core typecheck is clean, and the changed source files lint with zero warnings. I didn't run the full CI suite. I fixed F10. When a sub-PR's status changes, its epic is now updated even if nothing on the sub-PR can be rewritten (title setting off, description too full for the status block). The four new regression tests fail on the previous code and pass now. All 8 pull-request status suites pass (182 tests), core typecheck is clean, and the changed source files lint with zero warnings. I didn't run the full CI suite. **The fix** - Each sub-PR's status sync now records the sub-PR's computed status in Redis: the state, activity and the wording the epic shows. The code is in a new file, `pullRequestStatusEpicChildRecord.ts`. - `syncEpicSideOfStatus` signals the epic when that recorded status changes, as well as when the block or title changes. It goes through the same epic-branch filter and 1-second debounce as before. - The record only follows what the epic shows, so a sub-PR's check counts ticking over causes no extra epic updates. - If the record can't be written, the sync signals the epic anyway rather than risk missing a change. **The same bug in the kept sub-PR statuses** An epic with more than 10 open sub-PRs reuses statuses it read in earlier updates. It reused them as long as the sub-PR's GitHub update time hadn't changed, which assumed every status change rewrites the sub-PR. That's the same wrong assumption. So even after the signal, the epic could keep showing the old status for up to 10 minutes. Now a kept status is only reused while it still matches the sub-PR's record. If the record can't be read, the epic reads those sub-PRs again. **Tests added** - **The finding's scenario, end to end:** a sub-PR's Ultrafix loop finishes with the title setting off and a full description. Through the real signal and lookup, the epic goes from 🔨 to⚠️ naming the sub-PR waiting to be merged, with no write to the sub-PR. On the old code the epic stayed at 🔨. - **Signals:** a status that can't be written sends one signal when it changes and none when it stays the same. - **More than 10 sub-PRs:** the changed sub-PR is read again instead of its kept status being reused. - **Unit checks:** what the record tracks, how changes are detected, Redis failures, and when a kept status is reused. I also updated two sentences in `docs/docs/features/pr-status.md`. **Limits that remain** - **Lost signal:** the status is recorded before the in-process signal finishes looking up the epic PR. If the process stops in that second or so, or the lookup fails, the epic waits for the next change. This was already true when the evidence was the write to the sub-PR. - **No sync, no update:** a status change with no event on the sub-PR still isn't noticed. - **After deploy:** each sub-PR's first sync sends one extra epic update, because nothing is recorded for it yet. There's no visual change, so I made no preview. PR: #3540 Comment by: @propr-ultrafix (ID: 0) Model: Claude Opus 5.5
|
✅ AI Code Review Complete requested by @propr-ultrafix Posted 1 review: |
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationThe PR implements epic progress across titles, status blocks, and comments with substantial focused coverage. It needs a concurrency correction before merge. ✅ Shared progress computation — Epic status uses the existing merge-progress calculation, including exclusion of previously shipped children. ✅ Conservative incomplete reads — Unread child statuses preserve the published state while scheduling further reads. ✅ Focused regression coverage — Tests cover title settings, unchanged writes, blocked issues, pagination limits, and coordination with merge-progress updates. This review is a static analysis of the supplied code; no commands were run. Current checks report 21 passed, two pending, and no failures. Merge blockersEvery finding below was introduced by this PR and must be resolved before merging. F11: 🔴 Prevent stale activity from overwriting newer activity
SuggestionsThese are optional follow-ups and are not sent to S5: 🟢 Measure epic update request costsThe ten-child budget bounds child computations, but each computation performs additional GitHub reads, and continuations repeat epic and comment listings. Optional request-count and latency instrumentation would help assess production costs without changing the feature’s behavior. ScoreThe implementation has strong focused coverage and no reported failing checks, but the new comment writer can persistently overwrite newer activity. Correct that ordering before merge. Score: 6/10 🤖 Review Details
Copy and edit to choose records from this review: 🤖 Review by ProPR |
|
✅ Applied the requested follow-up changes in commit 6b4fdea
Summary of ChangesF11 is fixed. A status pass's activity snapshot is now ordered among the epic's reads, and a pass that waited for the progress lease drops its snapshot when a later pass already wrote newer activity. How the correction works
Sibling check. The merge progress writer keeps the existing activity lines and never writes a snapshot of its own, so it has no equivalent defect. The undetermined-epic update path builds its notes through the same function and is covered. Verification
🤖 Implementation Details
💡 ProPR Slash Commands
🤖 Generated by ProPR |
…red among the epic's reads, and a pass that waited for the progress lease drops its snapshot when a later pass already wrote newer activity. F11 is fixed. A status pass's activity snapshot is now ordered among the epic's reads, and a pass that waited for the progress lease drops its snapshot when a later pass already wrote newer activity. **How the correction works** - **Ordering under the body lock.** The new module `pullRequestStatusEpicActivityFence.ts` gives each epic update a sequence number from a per-epic Redis counter. The pass claims it right after reading its facts, while it still holds the body lock, and then confirms the lock is still held. Two passes never read facts concurrently under that lock, so the sequence order is the facts order. - **Fencing under the progress lease.** Before writing the comment, the pass checks a per-epic fence. If a higher sequence was already written or found current, the pass returns a superseded outcome and writes nothing. After its own write, it advances the fence. Both steps run under the lease the merge progress update shares, so they cannot interleave with another writer. - **A lock lost before the claim** leaves the ordering unknown. That pass writes no comment and signals a fresh epic update through the existing epic signal path, which rereads the facts. - **No Redis or a Redis failure** leaves the write unfenced, exactly as before this change, rather than suppressing it. A counter that expires takes its fence with it, so a stale fence cannot reject every later snapshot. - The ordering lives in `epicSyncNotes`, which moved into the epic sync module so the sync file stays under the 400-line limit. **Sibling check.** The merge progress writer keeps the existing activity lines and never writes a snapshot of its own, so it has no equivalent defect. The undetermined-epic update path builds its notes through the same function and is covered. **Verification** - Three new tests in the epic sync suite: pass A waits on the lease while B publishes "ready to merge", and A then leaves B's lines in place and writes nothing; the newest read wins in either arrival order and an unchanged write still fences; a lapsed body lock yields an unordered snapshot that takes no lease and signals the epic branch. - With the fence check disabled, the two ordering tests fail; with it restored, they pass. - The eight pull request status and epic suites pass, 321 tests in total. Core and API typecheck are clean, and the three changed source files lint with zero warnings. - One sentence was added to the "Epic pull requests" docs describing the ordering. There is no visual change, so no preview was produced. I did not run the full CI suite. PR: #3540 Comment by: @propr-ultrafix (ID: 0) Model: Claude Fable 5.1
|
✅ AI Code Review Complete requested by @propr-ultrafix Posted 1 review: |
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationThe PR implements epic progress across titles, status blocks, and progress comments, with substantial coverage of state transitions and concurrent writers. It needs a localized concurrency fix before merge. ✅ Shared progress calculation — Epic status facts reuse ✅ Careful title handling — The shared slot parser supports progress counts, and tests cover stripping counts for epic detection and squash commit titles. ✅ Preserved merge reporting — Status updates replace only comment activity lines and check for finalized epic reports before writing. This review is based on static analysis of the supplied code; no commands were run. The authoritative checks show 21 passed, two pending, and no failures. Merge blockersEvery finding below was introduced by this PR and must be resolved before merging. F12: 🔴 Retry activity updates after lease contention
SuggestionsThese are optional follow-ups and are not sent to S6: 🟢 Exercise the actual Redis scriptsThe new concurrency tests emulate Redis scripts by matching script identity and implementing their behavior in JavaScript. A small integration test against Redis would additionally verify the Lua execution and expiration behavior. This is optional: the supplied scripts do not establish a separate verified defect. ScoreThe implementation has strong functional coverage, but the dropped update during ordinary lease contention leaves a correctness issue requiring correction. Current checks have no reported failures, with two still pending. Score: 6/10 🤖 Review Details
Copy and edit to choose records from this review: 🤖 Review by ProPR |
|
✅ Applied the requested follow-up changes in commit ddcd884
Summary of ChangesI fixed F12. A status pass that gives up on the epic progress lease now schedules a fresh epic status update instead of trusting the lease holder to signal one. What changed
Sibling check The lease helper Tests
Core typecheck is clean. Both changed source files lint with zero warnings. I didn't run the full CI suite. Independent discovery, not fixed The No preview was created. The change has no visible UI effect. 🤖 Implementation Details
💡 ProPR Slash Commands
🤖 Generated by ProPR |
…ss lease now schedules a fresh epic status update instead of trusting the lease holder to signal one. I fixed F12. A status pass that gives up on the epic progress lease now schedules a fresh epic status update instead of trusting the lease holder to signal one. **What changed** - In `pullRequestStatusEpicSync.ts`, the lease-busy branch of `syncEpicProgressCommentForStatus` no longer only logs. It now calls a new helper that requests an epic status sync for the epic branch, the same signal the `unordered` branch already uses. The helper first checks the activity fence. If a later pass already wrote newer activity, the comment is current and no update is scheduled, so a superseded pass does not cost an extra GitHub round. - The holder of the lease can be an older status writer, which writes its own older activity and signals nothing. The scheduled refresh reads the epic again and converges the comment to the latest activity. - I added a test hook that shortens the five-second lease wait, so the regression runs in under half a second. - Doc comments in both files no longer claim the lease holder is always the merge progress writer. **Sibling check** The lease helper `withEpicProgressLeaseIfFree` has one caller, the status pass. The merge progress writer keeps its own durable retry obligation in Redis when the lease is busy, so it is not affected. The `unordered` branch already re-signals. No other site carried the same assumption. **Tests** - New regression: older pass A holds the lease past newer pass B's wait. B writes nothing and signals the epic branch. A then publishes its older activity and releases the lease. The scheduled refresh publishes the ready activity, and no lease is left held. This test fails on the previous code with "B asked for a fresh epic update instead of leaving its activity to A". - New regression: a pass whose snapshot is already superseded gives up on a held lease and sends no signal. - Epic sync suite, the two other epic status suites, and both merge progress suites pass. | Suite | Tests | |---|---| | pullRequestStatusEpicSync, pullRequestStatusEpic, pullRequestStatusEpicChildReads | 82 pass | | epicMergeProgressRetry | included above | | epicMergeProgressHandler (needs `--experimental-test-module-mocks`) | 52 pass | Core typecheck is clean. Both changed source files lint with zero warnings. I didn't run the full CI suite. **Independent discovery, not fixed** The `catch` branch of the same function, which handles a thrown GitHub error during the comment write, also logs only, with the message that the next epic update writes it. That drops the pass's activity until another event, the same shape of silent loss as F12 but for GitHub failures rather than lease contention. Re-signalling there without backoff could loop on a persistent GitHub failure, so it needs a design decision and I left it alone. No preview was created. The change has no visible UI effect. PR: #3540 Comment by: @propr-ultrafix (ID: 0) Model: Claude Fable 5.1
|
✅ AI Code Review Complete requested by @propr-ultrafix Posted 1 review: |
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationThe PR implements epic progress across titles, status blocks, and progress comments, with substantial coverage of asynchronous updates. It needs a localized correction before merge. ✅ Shared progress calculation — Epic status facts reuse ✅ Comment coordination — Progress writers share a lease, and activity snapshots prevent an older status pass from overwriting newer activity. This review used static analysis only; no commands were run. Supplied checks show 23 passed, none failed, and one pending. Merge blockersEvery finding below was introduced by this PR and must be resolved before merging. F13: 🔴 Empty epics regain review-score gating
SuggestionsThese are optional follow-ups and are not sent to No suggestions. ScoreThe implementation has strong synchronization safeguards and extensive tests, but its empty-epic boundary violates the explicit score-handling contract. The remaining correction is localized; the pending validation check should also complete before merge. Score: 6/10 🤖 Review Details
Copy and edit to choose records from this review: 🤖 Review by ProPR |
|
✅ Applied the requested follow-up changes in commit afef7b8
Summary of ChangesF13 is fixed. The core source file lints with zero warnings; the one eslint warning is only that What was wrong
What changed
Sibling check I inspected the other consumers of epic facts: the epic sync (progress comment, undetermined recount, child-read continuation), the initial block, the reconcile paths and the shared title slot. None of them gates epic handling on the total, so no other occurrence of the defect exists in the PR-changed code. Verification
No visual preview: the change is status text on GitHub pull requests, not a UI change. 🤖 Implementation Details
💡 ProPR Slash Commands
🤖 Generated by ProPR |
…; the one eslint warning is only that `packages/core/test` is outside the lint config, which matches the repository's lint gates (core source only). F13 is fixed. The core source file lints with zero warnings; the one eslint warning is only that `packages/core/test` is outside the lint config, which matches the repository's lint gates (core source only). **What was wrong** `computePullRequestStatus` only routed an epic through `computeEpicStatus` when `epic.total > 0`. An open epic whose remaining issues were all closed without a merge has a total of zero, so it fell through to the ordinary single-PR path. That path kept the persisted review score, so a below-goal score produced `needs_attention` with `review_below_goal`, and the title and status block rendered the score. **What changed** - `packages/core/src/services/pullRequestStatus/pullRequestStatus.ts:273`: every recorded epic now goes through `computeEpicStatus`, which clears the review score. With zero issues left, `merged >= total` holds, so the epic is judged like an all-merged epic: ready from its own checks and mergeability. - The `total > 0` guards in the block headline, `statusLine`, `titleStatusOf` and the shared title slot are unchanged on purpose. They only decide whether to render the count, so an empty epic still shows no `0 of 0` or `0/0`. - Regression in `packages/core/test/pullRequestStatusEpic.test.ts`: an empty epic with review score 3 against goal 7 is `ready`, has no reason, a null review score, the plain `✅ Ready · checks: 12 passed` line and a bare `✅` title slot. A conflicting empty epic still gets `merge_conflict`, showing its own facts still decide. **Sibling check** I inspected the other consumers of epic facts: the epic sync (progress comment, undetermined recount, child-read continuation), the initial block, the reconcile paths and the shared title slot. None of them gates epic handling on the total, so no other occurrence of the defect exists in the PR-changed code. **Verification** - The new test fails on the previous source with `actual: 'needs_attention', expected: 'ready'`, and passes with the fix. - All eight pull-request status suites pass: 186 tests via plain `tsx --test`, plus the two epic-creation tests run with `--experimental-test-module-mocks`, which that suite requires. - Core typecheck is clean. The changed source file lints with zero warnings and stays at 315 code lines. - I did not run the full CI suite. No visual preview: the change is status text on GitHub pull requests, not a UI change. PR: #3540 Comment by: @propr-ultrafix (ID: 0) Model: Claude Fable 5.1
|
✅ AI Code Review Complete requested by @propr-ultrafix Posted 1 review: |
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationThe PR adds epic progress to titles, status blocks, and progress comments, with substantial coverage of state transitions and concurrent writers. It needs a localized correction before merge. ✅ Shared title handling — The shared slot parser recognizes progress counts, preserving ✅ Concurrent comment protection — Progress leases and activity sequence fences prevent an older status pass from overwriting newer activity. ✅ Conservative incomplete reads — Unread child statuses preserve the published state and trigger continuation reads instead of prematurely declaring that work needs attention. The supplied checks show 20 passed, three pending, and no failures. This review is based on static analysis; no commands or tests were run. Merge blockersEvery finding below was introduced by this PR and must be resolved before merging. F14: 🔴 Bound progress comment activity size
SuggestionsThese are optional follow-ups and are not sent to S7: 🟢 Test queue transitions through signalsThe new integration tests directly mutate queue readiness and blocker fields, then explicitly invoke synchronization. Add coverage that drives the actual pause, resume, and blocker transitions and observes the resulting epic update. This would verify event delivery as well as state computation; the supplied context does not establish a missing production signal, so this is optional coverage. ScoreThe implementation has strong state and concurrency coverage, but unbounded activity rendering breaks comment updates for supported large epics. The correction is localized; the remaining supplied checks are pending rather than failing. Score: 6/10 🤖 Review Details
Copy and edit to choose records from this review: 🤖 Review by ProPR |
|
✅ Applied the requested follow-up changes in commit bc78b59
Summary of ChangesF14 is fixed. Both writers of the epic progress comment now keep it within GitHub's 65,536-character comment limit by fitting the activity lines into the space the rest of the comment leaves, listing the entries that fit and counting the rest. What changed
Sibling check The status pass renders full activity and hands it to the status writer, which now fits it. The merge writer preserves the previously written lines while adding merged PR numbers, so its final payload can grow past the limit even though the lines fit before. It now refits them too. The merge writer can only refit entries it has, so a count there is restored to a listing by the next status pass render, which is the existing division of ownership. The orchestrated status renderer used for previews also goes through Regressions added, all failing on the previous code and passing now:
Verification
Independent observation, not acted on: an epic whose first status update is already undetermined (more open sub-PRs than one update reads) gets no status block until a later update establishes a state, because the undetermined path only edits an existing block. This is pre-existing behaviour, outside F14. No visual preview was made. The change is to the text of a GitHub comment, not to the UI. 🤖 Implementation Details
💡 ProPR Slash Commands
🤖 Generated by ProPR |
… keep it within GitHub's 65,536-character comment limit by fitting the activity lines into the space the rest of the comment leaves, listing the entries that fit and counting the rest. F14 is fixed. Both writers of the epic progress comment now keep it within GitHub's 65,536-character comment limit by fitting the activity lines into the space the rest of the comment leaves, listing the entries that fit and counting the rest. **What changed** - `packages/core/src/webhook/epicProgressActivity.ts` gets the shared budget. A new fitting step parses a rendered activity line into its entries, keeps as many leading entries as the line's share holds, and ends the line with `and N more`. The "In progress" line is served first and takes whatever the "Up next" line does not need. A line is dropped only when not even its count fits. Lines already carrying a count are refit correctly, so the count only ever grows. Titles now lose semicolons so the entry separator is unambiguous. - A shared insert helper finds the anchor line and fits the activity to the final comment's remaining space. `buildEpicProgressComment` (the merge writer) and `replaceEpicProgressActivityLines` (the status pass writer) both go through it, so the counts, merged child PR list, markers and merged-into line are never what gives. - `epicMergeProgress.ts` was already at the 400-line lint limit, so the fit-and-insert logic lives in the activity module and the merge file's line count is unchanged. - The docs section on epic pull requests notes the limit and the `and N more` form. **Sibling check** The status pass renders full activity and hands it to the status writer, which now fits it. The merge writer preserves the previously written lines while adding merged PR numbers, so its final payload can grow past the limit even though the lines fit before. It now refits them too. The merge writer can only refit entries it has, so a count there is restored to a listing by the next status pass render, which is the existing division of ownership. The orchestrated status renderer used for previews also goes through `buildEpicProgressComment`, so it is covered. **Regressions added**, all failing on the previous code and passing now: - Root suite: 900 open children plus 100 up-next issues with 120-character titles produce a comment within the limit, with every child listed or counted, the budget used up to the next entry, and both writers producing the identical comment, so re-fitting writes nothing. - Root suite: budget-splitting cases for the fitter, including counted entries staying counted and a line dropped when its count cannot fit. - Root suite: a merge that adds the merged PR list to a comment filled to within a few characters of the limit counts exactly one more entry instead of failing. - Core sync suite: a status pass over 700 open sub-PRs with long titles writes a comment within the limit and the next pass writes nothing. **Verification** - Core typecheck is clean and the two changed core source files lint with zero warnings. - Root suites `epicMergeProgress`, `epicMergeProgressHandler`, `epicMergeProgressRetry` pass (88 tests). Core suites `pullRequestStatusEpicSync`, `pullRequestStatusEpicChildReads`, `pullRequestStatusEpic`, `epicPRCreationStatus` pass (63 tests). Two of these need the module-mocks flag to load, which is how CI runs them. - I did not run the full CI suite. **Independent observation**, not acted on: an epic whose first status update is already undetermined (more open sub-PRs than one update reads) gets no status block until a later update establishes a state, because the undetermined path only edits an existing block. This is pre-existing behaviour, outside F14. No visual preview was made. The change is to the text of a GitHub comment, not to the UI. PR: #3540 Comment by: @propr-ultrafix (ID: 0) Model: Claude Fable 5.1
|
|
|
/ultrafix goal=8 max=3 |
|
🔄 Ultrafix loop started (goal: 8/10, max cycles: 3) First action:
|
|
✅ AI Code Review Complete requested by @propr-ultrafix Posted 1 review: |
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationThe PR implements epic progress across titles, status blocks, and progress comments, with shared counting and status computation. It appears ready to merge within scope, conditional on the remaining checks completing successfully. ✅ Shared progress calculation — Epic status facts reuse ✅ Coordinated comment writes — Status updates share the merge-progress lease, recheck whether the epic is open, and use sequence fencing to prevent older status snapshots from overwriting newer activity. ✅ Boundary coverage — Added tests cover unread child statuses, continuation scheduling, comment-size limits, disabled title updates, and unchanged-write suppression. This was a static review of the supplied diff and context; no commands or tests were run. The authoritative checks report 20 passed, three pending, and no failures. Merge blockersNo merge blockers. SuggestionsThese are optional follow-ups and are not sent to S8: 🟢 Exercise queue-only transitionsAdd end-to-end signal tests for pausing a queue and recording an agent blocker while the plan issue’s status remains unchanged. The current tests establish the rendered result by mutating queue records and explicitly invoking synchronization; they do not establish automatic refresh for these transitions. This is an optional coverage improvement: the supplied context does not demonstrate a missing notification across the complete producer path. S9: 🟢 Measure epic read costsConsider measuring GitHub requests and synchronization latency for larger epics. The ten-child budget bounds individual status reads, but continuation passes also repeat child-list and historical merge-evidence reads. Operational measurements would help tune these limits; no demonstrated performance failure makes this required for merge. ScoreThe implementation includes substantial correctness protections and targeted regression coverage, with no verified merge blocker in the supplied code. Remaining CI checks are pending, and runtime validation was not performed during this review. Score: 8/10 🤖 Review Details
Copy and edit to choose records from this review: 🤖 Review by ProPR |
AI Implementation Summary
Closes #3531
Branch:
3531/claude-opus-5-5-show-epic-progress-in-the-20261113-2230-lfsCommits: ✅ Changes committed (c8a868f)
AI Processing Completed
Execution Details:
Summary:
I've implemented #3531. Open epic PRs now show how many of their issues are merged into the epic branch, in the title and the status block. The progress comment now also lists what is in progress and what is next. All the tests I ran pass. I didn't run the full CI suite.
What the epic shows
prTitleStatuson): the status emoji is followed by the count, e.g.🔨 3/5 [Epic] Scheduler primitives. The shared title helpers recognise and strip the count everywhere, including[Epic]detection and the web UI. With the setting off, epic titles are left alone and the status block is still written.**ProPR** 🔨 3 of 5 issues merged · #3475 in progress (Ultrafix cycle 4 of 10, last review 6/10) · updated 09:41 UTC.readybut unmerged gives⚠️ … · #3523 (issue #3475) waits to be merged into the epic branch.✅ 5 of 5 issues merged · checks: 12 passed, or⚠️with the failed check or the conflict.⚠️with "nothing in progress". I added that as a fallback.🔨 0/Nand the status block already in the body. An epic PR created on the first sub-PR merge (the usual case) starts at🔨 1/Ninstead, since one issue is already merged. The epic body builder keeps the status block when it rewrites the body.computeEpicMergeProgress. That includes excluding sub-PRs that already shipped through an earlier epic PR. I removed the separate count the status facts used to do.Renames
🔨, so a merge costs one rename. The test for this confirms exactly one.Progress comment
In progress:andUp next:lines, whateverprTitleStatussays.noneonce the last issue is in progress, and both lines go when there is neither. That is how I reconciled "omit empty lines" with yourUp next: noneexample.When the epic gets updated
Limits to know about
Tests and checks
pullRequestStatusEpic.test.ts).pullRequestStatusEpicSync.test.ts): title, block, comment, no-op writes, one rename per merge, setting off, and the signals.🔨 0/N(epicPRCreationStatus.test.ts).[Epic]detection behind it, and the comment lines.issues: 1 of 2 mergedbecame1 of 2 issues merged).Docs are updated in
docs/docs/features/pr-status.md(new "Epic pull requests" section) andwork-splitting.md, plus aCHANGELOG.mdentry. There is no UI change, so I made no visual preview.Detailed Logs:
8d682f59-13bd-4ae4-a573-003f2ef60660Log files stored at:
/usr/src/app/logs/executions/issue-3531-2026-11-13T23-03-06-852Z-conversation.json/usr/src/app/logs/executions/issue-3531-2026-11-13T23-03-06-852Z-output.txtLatest Conversation Messages
This PR was created automatically by ProPR after processing issue #3531.
💡 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!