Skip to content

Add Next Maintainer auto-close workflow - #98197

Merged
marcoshernanz merged 7 commits into
vercel:canaryfrom
marcoshernanz:codex/next-maintainer-auto-close
Sep 3, 2026
Merged

Add Next Maintainer auto-close workflow#98197
marcoshernanz merged 7 commits into
vercel:canaryfrom
marcoshernanz:codex/next-maintainer-auto-close

Conversation

@marcoshernanz

@marcoshernanz marcoshernanz commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add a manually dispatchable workflow; the hourly schedule is left commented until initial production verification
  • keep the workflow YAML small and place delivery in .github/scripts/next-maintainer-auto-close.js for normal code review
  • use a short-lived exact-audience GitHub Actions OIDC token with no long-lived secret
  • trust the authenticated queue contract instead of reimplementing its Zod validation in the workflow
  • post the verifier-authored comment and close with GitHub native completed, not planned, or duplicate state reasons
  • retain one invisible marker only to prevent duplicate public comments across retries

If an issue is open with the marker, the workflow leaves it open. This intentionally lets a human reopen win and avoids timeline reconstruction.

Permissions

The job grants only contents: read, id-token: write, and issues: write; every other permission remains none. Both GitHub actions are pinned to full commit SHAs. Checkout is sparse to the one trusted JavaScript file and has credential persistence disabled.

Verification

  • mocked delivery harness passes ten scenarios: empty queue, completed, not planned, duplicate, pull-request rejection, already-closed recovery, independent close, open marker, transferred issue, and transient failure
  • node --check, Prettier, and ESLint pass for the extracted implementation
  • Vercel Agent Review, Vercel Security Review, Socket Security, workflow change detection, and documentation validation pass
  • production workflow_dispatch succeeded end to end: https://github.com/vercel/next.js/actions/runs/33788887152 (OIDC authentication, Trusted Sources, production queue request, and clean empty-queue response)

Dependency

This is the narrow GitHub write-side companion to vercel-labs/next-maintainer-agent#541, which is deployed. vercel-labs/next-maintainer-agent#546 further reduces the queue DTO and changes the delivery limit to 25 first claims per rolling week; this workflow is compatible with both DTO versions.

@vercel

vercel Bot commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

@marcoshernanz is attempting to deploy a commit to the Internal Playground Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions

github-actions Bot commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Tests Passed

Commit: 7bad8d7

@marcoshernanz
marcoshernanz marked this pull request as ready for review September 3, 2026 00:43
@marcoshernanz
marcoshernanz requested a review from bgw September 3, 2026 00:44
@@ -0,0 +1,155 @@
async function deliverOneVerifiedClose({ core, github }) {
const queue =
'https://next-maintainer-agent.vercel.tools/eve/agents/close-verifier/eve/v1/auto-close'

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

/eve/eve/eve/eve

@marcoshernanz
marcoshernanz merged commit 0eb4d7d into vercel:canary Sep 3, 2026
117 of 120 checks passed
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