Skip to content

[3619 by Claude Opus 5.5] Epic queue: an issue behind a skipped predecessor is reported "ready" ahead of unfinished earlier issues; /issues lacks skipped state and dependencies - #3634

Merged
integry merged 1 commit into
3616-epic-0-9-d8bfrom
3619/claude-opus-5-5-epic-queue-an-issue-behin-20261117-0219-ipi
Nov 17, 2026

Conversation

@propr-dev

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

Copy link
Copy Markdown
Contributor

AI Implementation Summary

Closes #3619

Branch: 3619/claude-opus-5-5-epic-queue-an-issue-behin-20261117-0219-ipi
Commits: ✅ Changes committed (0a114a3)


AI Processing Completed

Execution Details:

Summary:
I fixed the scheduler and the /issues route. 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)

  • 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.

Review digest

Risk-tiered paths

  • High risk: none
  • Normal risk (9 files)
    • 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)
  • Low risk (5 files)
    • 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

  • No repository validation commands ran.

Diff size: 14 files changed, +386/−49 lines

Detailed Logs:

  • Conversation: 188 messages
  • Session: 290d6056-f5dc-42d7-a619-410e525e87ee

Log files stored at:

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

ASSISTANT: I fixed the scheduler and the `/issues` route. 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.

**Schedule...


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!

…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.
@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 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 blockers

No merge blockers.

Suggestions

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

S1: 🟢 Document the page ceiling

packages/api/routes/planIssueListHandler.ts:28 rejects pages above 1,000,000, but packages/api/openapi/schemasPlanQueue.ts documents only a minimum of zero. Adding the maximum to the schema and regenerating the documentation would make the published contract more precise. This is non-blocking because the discrepancy affects only page numbers far beyond practical plan listings.

Score

The 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

  • Model: GPT-6 Astra
  • Time: 32s
  • Tokens: 52,647 (52,220 in / 427 out)
  • Cost: $0.41

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 S1

🤖 Review by ProPR

@propr-dev propr-dev Bot removed the ultrafix label Nov 17, 2026
@propr-dev propr-dev Bot changed the title 🔨 [3619 by Claude Opus 5.5] Epic queue: an issue behind a skipped predecessor is reported "ready" ahead of unfinished earlier issues; /issues lacks skipped state and dependencies ✅⑧ [3619 by Claude Opus 5.5] Epic queue: an issue behind a skipped predecessor is reported "ready" ahead of unfinished earlier issues; /issues lacks skipped state and dependencies Nov 17, 2026
@integry
integry merged commit d305570 into 3616-epic-0-9-d8b Nov 17, 2026
73 checks passed
@propr-dev propr-dev Bot changed the title ✅⑧ [3619 by Claude Opus 5.5] Epic queue: an issue behind a skipped predecessor is reported "ready" ahead of unfinished earlier issues; /issues lacks skipped state and dependencies [3619 by Claude Opus 5.5] Epic queue: an issue behind a skipped predecessor is reported "ready" ahead of unfinished earlier issues; /issues lacks skipped state and dependencies 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