Skip to content

pm-stack: Project pool graph edges contract (#2399, part 1 of #1122) - #2744

Merged
dezren39 merged 2 commits into
mainfrom
queue/3572-2399-pool-graph-edges
Oct 30, 2026
Merged

dezren39 merged 2 commits into
mainfrom
queue/3572-2399-pool-graph-edges

Conversation

@dezren39

@dezren39 dezren39 commented Oct 30, 2026 •

Copy link
Copy Markdown
Member

Part 1 of the #1122 split (issue #2399, queue task 3572): the Project pool graph-edges contract. Weighted rendering is part 2 (#2400), not in this PR.

Collector (src/projects.ts): the Project GraphQL read now requests sub-issue parent, blockedBy, and blocking edges for issue items; the parser maps them to canonical owner/repo#123 refs, and resolveEpicRefs derives epic membership by walking parent chains within the fetched pool to the nearest item whose Project Kind is "Epic" (cycle-safe; never invents membership when the chain leaves the pool).

Model (src/model.ts): ProjectPoolItem gains parentRef?, blockedBy?, blocks?, epicRef? — all absence-friendly: a missing edge means GitHub has none, never an error. Issue-only; PRs and drafts never carry them.

Feed check (src/feed.ts, src/sources/live.ts): one shared predicate (isProjectPoolItem) gates the collector parse, the feed validation, and the live source's fail-soft read (poolFromFeed), so collector and feed check cannot drift. Malformed edges fail the item with an index diagnosis; a bad item drops individually, never the pool.

Tests: collector fixture carrying parent/blocked-by/blocks/epic edges + epic-resolution and cycle cases (test/projects.test.ts), and feed-gate tests for graphed, edgeless, and malformed shapes (test/feed.test.ts, new).

Local verification (laptop): targeted suites 15/15 pass; full aggregator suite 507 pass with 7 failures that are identical on the untouched primary clone (pre-existing page-manifest failures, unrelated). Part 2 (#2400) is unblocked once this lands; #1122 closes only when both parts land.


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.

@dezren39
dezren39 requested a review from a team as a code owner October 30, 2026 13:26
@coderabbitai

coderabbitai Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 1 minute.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 69456c22-910e-4359-bf48-9ccf45f42159
Commits

Reviewing files that changed from the base of the PR and between 72545cb and 568ffa3.

Files selected for processing: 6
  • pm-stack/aggregator/src/feed.ts
  • pm-stack/aggregator/src/model.ts
  • pm-stack/aggregator/src/projects.ts
  • pm-stack/aggregator/src/sources/live.ts
  • pm-stack/aggregator/test/feed.test.ts
  • pm-stack/aggregator/test/projects.test.ts
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-30T14:11:22.096373Z 568ffa3 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 22c1432d31

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread pm-stack/aggregator/src/projects.ts Outdated
type
content {
... on Issue { number title state url repository { nameWithOwner } updatedAt author { login } labels(first: 20) { nodes { name } } }
... on Issue { number title state url repository { nameWithOwner } updatedAt author { login } labels(first: 20) { nodes { name } } parent { number url repository { nameWithOwner } } blockedBy(first: 10) { nodes { number url repository { nameWithOwner } } } blocking(first: 10) { nodes { number url repository { nameWithOwner } } } }

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Collect every supported dependency edge

When an issue has more than ten blockers or blocked issues, blockedBy(first: 10) and blocking(first: 10) silently discard the remaining relationships. Neither connection requests pagination metadata, and fetchProjectPool only paginates Project items, so the feed publishes incomplete dependency arrays without indicating truncation. GitHub supports up to 50 issues per relationship type; request that supported maximum or paginate both connections so the graph contract preserves all dependencies.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 568ffa3: both dependency connections now request GitHub's supported maximum — blockedBy(first: 50) and blocking(first: 50) in the Project pool GraphQL read (pm-stack/aggregator/src/projects.ts) — so no supported dependency edge is silently truncated. Added a regression test asserting both limits in PROJECT_QUERY (test/projects.test.ts); targeted tests pass on the laptop worktree: projects + feed suites 16/16.

@dezren39

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Nice work!

Reviewed commit: 568ffa3e21

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant