Repository navigation
Conversation
…sts pass; five failures in other suites happen on a clean copy of HEAD too. No previews, since nothing visible changed.
Scheduler (`packages/core/src/services/taskPlanning/epicQueueSchedule.ts`)
- Skips no longer let an issue jump ahead. A skipped issue that "satisfies its dependents" now passes its dependents on to its own prerequisites, all the way up the chain. If one of those is unfinished, the dependent is `waiting` and `waitingOn` names that issue. In your example, 3560 is now `waiting` on 3558. This also covers prerequisites outside the execution that aren't merged, and a dependency loop can't make it run forever.
- Sequential runs stay in order. I added a guard for sequential executions: an issue is never ready while an earlier issue is neither done nor skipped. This catches one more case: a later issue merged out of order no longer lets the one after it overtake an unfinished earlier issue. Sequential dispatch already started only the first unfinished issue; this makes the reported schedule agree with it.
`GET /api/planner/drafts/{id}/issues`
- The handler moved to a new file, `packages/api/routes/planIssueListHandler.ts`, because `planIssueHandlers.ts` was at the 400-line lint limit.
- `page` must be a whole number of 0 or more and `limit` must be 1 or more, otherwise the route returns 400. So `page=-1`, `limit=0`, `1.5`, `1e2` and empty values are all refused. A `limit` above 100 is still capped at 100 rather than refused.
- Every issue now has an `execution` field with the same data the execution-queue route returns:
- its queue `state` (`skipped` shows up here, while `status` keeps the plan status)
- `schedule`
- the execution's `dependsOn` (the chain, in sequential mode)
- `waitingOn` and `waitingOnSkipped`
- `skipSatisfiesDependents`
- `executionId`, `executionMode` and `queueStatus`
It is `null` for issues not in the execution. `depends_on_issues` is unchanged: it is still the plan's declared dependencies, which is why it was `[]` for your sequential epic.
- I kept the bare array. Without paging parameters the route still returns a bare array, because the released CLI (`listPlanIssues` in `packages/cli/src/api/plans.ts`) and the UI's `getPlanIssues` both read that form. Changing it would break CLI versions already installed. With paging parameters it still returns `{ issues, total, page, limit, hasMore }`.
- I documented the route in OpenAPI (it was listed as undocumented) and regenerated the spec and the client types.
- I added the `execution` type to the UI's `PlanIssue` (`propr-ui/src/api/planIssuesApi.ts`) for the separate Studio issue.
Tests
- Scheduler tests (`packages/core/test/epicQueueSchedule.test.ts`):
- your 3557–3560 chain, with the head in flight and then blocked
- consecutive skips
- an issue done out of order in a sequential run
- the graph-mode transitive case, including a blocked head and a skip that doesn't satisfy its dependents
- an outside prerequisite behind a skip
- a dependency loop
- Route test (`test/planIssuesListEndpoint.test.ts`), run against SQLite with the real queue: both response shapes carry the same `execution` data, issues outside the execution get `null`, and bad paging returns 400.
- Changed existing test: in `packages/core/test/epicQueueBlockedEvents.test.ts`, one graph test expected the old behaviour, so I rewrote it. Skipping issue 2 used to start issue 3 straight away while issue 1 was in flight; now 3 waits on 1 and starts when 1 merges.
Results
- All the core epic-queue suites pass.
- The other planner, OpenAPI and dispatch suites I ran also pass, and `gen:openapi:check`, `tsc` and eslint are clean.
- The five failures, in `githubMetadataAuth.test.ts` and `planRevisions.test.ts`, appear identically on a clean copy of HEAD, so they come from this container rather than these changes.
|
/ultrafix goal=8 max=6 |
|
🔄 Ultrafix loop started (goal: 8/10, max cycles: 6) First action:
|
|
✅ AI Code Review Complete requested by @propr-ultrafix Posted 1 review: |
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationThe PR fixes dependency waits through skipped issues and adds execution metadata to issue listings while preserving existing response shapes. The changes are focused and appear merge-ready within scope, conditional on pending checks completing successfully. ✅ Transitive dependency waits — Satisfying skips pass unfinished prerequisites through to dependents, including prerequisites outside the execution. ✅ Sequential ordering — The new ordering guard prevents an out-of-order completion from making later issues appear ready prematurely. ✅ API compatibility — Both response shapes retain ownership verification, refinement reconciliation, and issue normalization while adding execution metadata. This review used the supplied diff and surrounding context only; no commands or tests were run. Current-head checks show 10 pending and no failures. Merge blockersNo merge blockers. SuggestionsThese are optional follow-ups and are not sent to S1: 🟢 Document the page ceiling
ScoreThe implementation is focused, preserves client compatibility, and includes targeted regression coverage. Static review found no verified merge blocker; execution results remain unverified here and current-head checks are pending. Score: 8/10 🤖 Review Details
Copy and edit to choose records from this review: 🤖 Review by ProPR |
AI Implementation Summary
Closes #3619
Branch:
3619/claude-opus-5-5-epic-queue-an-issue-behin-20261117-0219-ipiCommits: ✅ Changes committed (0a114a3)
AI Processing Completed
Execution Details:
Summary:
I fixed the scheduler and the
/issuesroute. The new and related tests pass; five failures in other suites happen on a clean copy of HEAD too. No previews, since nothing visible changed.Scheduler (
packages/core/src/services/taskPlanning/epicQueueSchedule.ts)waitingandwaitingOnnames that issue. In your example, 3560 is nowwaitingon 3558. This also covers prerequisites outside the execution that aren't merged, and a dependency loop can't make it run forever.GET /api/planner/drafts/{id}/issuesThe handler moved to a new file,
packages/api/routes/planIssueListHandler.ts, becauseplanIssueHandlers.tswas at the 400-line lint limit.pagemust be a whole number of 0 or more andlimitmust be 1 or more, otherwise the route returns 400. Sopage=-1,limit=0,1.5,1e2and empty values are all refused. Alimitabove 100 is still capped at 100 rather than refused.Every issue now has an
executionfield with the same data the execution-queue route returns:state(skippedshows up here, whilestatuskeeps the plan status)scheduledependsOn(the chain, in sequential mode)waitingOnandwaitingOnSkippedskipSatisfiesDependentsexecutionId,executionModeandqueueStatusIt is
nullfor issues not in the execution.depends_on_issuesis unchanged: it is still the plan's declared dependencies, which is why it was[]for your sequential epic.I kept the bare array. Without paging parameters the route still returns a bare array, because the released CLI (
listPlanIssuesinpackages/cli/src/api/plans.ts) and the UI'sgetPlanIssuesboth read that form. Changing it would break CLI versions already installed. With paging parameters it still returns{ issues, total, page, limit, hasMore }.I documented the route in OpenAPI (it was listed as undocumented) and regenerated the spec and the client types.
I added the
executiontype to the UI'sPlanIssue(propr-ui/src/api/planIssuesApi.ts) for the separate Studio issue.Tests
packages/core/test/epicQueueSchedule.test.ts):test/planIssuesListEndpoint.test.ts), run against SQLite with the real queue: both response shapes carry the sameexecutiondata, issues outside the execution getnull, and bad paging returns 400.packages/core/test/epicQueueBlockedEvents.test.ts, one graph test expected the old behaviour, so I rewrote it. Skipping issue 2 used to start issue 3 straight away while issue 1 was in flight; now 3 waits on 1 and starts when 1 merges.Results
gen:openapi:check,tscand eslint are clean.githubMetadataAuth.test.tsandplanRevisions.test.ts, appear identically on a clean copy of HEAD, so they come from this container rather than these changes.Review digest
Risk-tiered paths
packages/api/openapi/routeDocsPlanQueue.ts(+13/−1)packages/api/openapi/schemasPlanQueue.ts(+10/−0)packages/api/routes/planIssueHandlers.ts(+2/−31)packages/api/routes/planIssueListHandler.ts(added, +80/−0)packages/api/routes/plannerHelpers/index.ts(+1/−1)packages/client/src/generated/apiTypes.ts(+10/−0)packages/core/src/services/taskPlanning/epicQueueSchedule.ts(+30/−6)packages/core/src/services/taskPlanning/epicQueueState.ts(+1/−1)propr-ui/src/api/planIssuesApi.ts(+10/−0)docs/static/openapi/propr-api.yaml(+33/−6)packages/core/test/epicQueueBlockedEvents.test.ts(+5/−2)packages/core/test/epicQueueSchedule.test.ts(+78/−0)test/planIssuesListEndpoint.test.ts(added, +112/−0)test/planRefinementSettlement.test.ts(+1/−1)Validation evidence
Diff size: 14 files changed, +386/−49 lines
Detailed Logs:
290d6056-f5dc-42d7-a619-410e525e87eeLog files stored at:
/usr/src/app/logs/executions/issue-3619-2026-11-17T02-36-36-329Z-conversation.json/usr/src/app/logs/executions/issue-3619-2026-11-17T02-36-36-329Z-output.txtLatest Conversation Messages
This PR was created automatically by ProPR after processing issue #3619.
💡 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!