Skip to content

fix(release): accept canonical workflow pagination links - #533

Merged
blove merged 4 commits into
mainfrom
blove/fix-consolidation-workflow-pagination
Sep 2, 2026
Merged

fix(release): accept canonical workflow pagination links#533
blove merged 4 commits into
mainfrom
blove/fix-consolidation-workflow-pagination

Conversation

@blove

@blove blove commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Problem

GitHub workflow-run pagination can return equivalent repository paths using either the configured owner/repository spelling or GitHub's canonical numeric repository identity. The release consolidation adapter rejected the canonical numeric form.

Change

Canonicalize only those two trusted workflow pagination path forms before comparison. The generic pagination boundary remains fail-closed for incompatible authorities, paths, queries, and relation graphs.

Verification

  • Consolidation suite: 596 passed, 0 failed
  • Scoped Biome check: 2 files clean
  • Docs completeness and git diff --check: passed
  • Full local validation reached unrelated timing-sensitive Docker/process fixtures; each exact scoped rerun passed

@vercel

vercel Bot commented Sep 2, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
dawnai Ready Ready Preview Sep 2, 2026 5:46pm UTC

Request Review

@blove
blove requested a lite review from Copilot September 2, 2026 17:38

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Automated approval: this PR received an intelligent (AI) code review. See the review comments on this PR.

Copilot AI 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.

🟡 Changes recommended

The newly added design spec’s status line is immediately outdated relative to the implemented changes included in this PR.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

Updates the duplicate-draft release consolidation GitHub reader to accept GitHub’s canonical numeric-repository pagination Link URLs for the release workflow runs, while keeping the broader Link-header validation fail-closed for all other endpoints and URL shapes.

Changes:

  • Accept and canonicalize workflow-run pagination URLs that use /repositories/{id}/... to the existing /repos/{owner}/{repo}/... form before downstream comparisons.
  • Extend the consolidation adapter tests to cover successful numeric-link pagination plus negative cases (foreign repo ID, and numeric workflow links appearing on non-workflow endpoints).
  • Add accompanying superpowers spec/plan docs describing the identity model and verification strategy.
File summaries
File Description
scripts/release/test/duplicate-draft-consolidation-adapters.test.mjs Adds regression coverage for numeric-repository workflow-run pagination and ensures unrelated endpoints still fail closed.
scripts/release/duplicate-draft-consolidation-adapters.mjs Canonicalizes trusted workflow-run pagination URLs (owner/name and fixed numeric repo ID) and applies that canonical form during Link-graph validation.
docs/superpowers/specs/2026-09-02-consolidation-workflow-pagination-design.md Documents the problem and the strict identity/validation design for accepting numeric repository workflow pagination links.
docs/superpowers/plans/2026-09-02-consolidation-workflow-pagination.md Implementation plan documenting the intended test-first workflow and validation steps.
Review details
  • Files reviewed: 4/4 changed files
  • Comments generated: 1
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread docs/superpowers/specs/2026-09-02-consolidation-workflow-pagination-design.md Outdated

Copilot AI 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.

🟢 Approval recommended

The changes narrowly expand trust to an explicitly fixed numeric repo-ID workflow pagination path, preserve fail-closed behavior elsewhere, and are backed by targeted positive and negative regression tests.

Review details
  • Files reviewed: 4/4 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

@blove
blove merged commit 57b1950 into main Sep 2, 2026
25 of 26 checks passed
@blove
blove deleted the blove/fix-consolidation-workflow-pagination branch September 2, 2026 18:25
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.

2 participants