Skip to content

fix: resume targeted expired publication finalization - #4468

Merged
Patrick-Erichsen merged 1 commit into
mainfrom
fix-expired-publish-finalization
Nov 6, 2026
Merged

Patrick-Erichsen merged 1 commit into
mainfrom
fix-expired-publish-finalization

Conversation

@Patrick-Erichsen

Copy link
Copy Markdown
Collaborator

A worker restart currently finds no work when an upload is left finalizing after its lease expires. This prevents the two retained VMware releases in #4234 from reaching publication.

Allow an explicitly targeted worker to resume an eligible expired finalization. Reuse retained-artifact admission checks, persist a separate recovery binding, and revalidate current publisher access, moderation, storage and the finalization claim in the transaction that makes the version public. Preserve original files, scan findings and failure history. Authenticated package successors validate and retire the new binding alongside the existing retry binding. Untargeted discovery and indexes are unchanged.

Refs #4234. Production recovery and exact-version verification will follow deployment; merging alone does not establish that the reported releases are available.

Validation:

  • Regression on current main: both skill/package replacement-worker claims return null; candidate claims the same retained uploads for finalization.
  • 276 focused checks pass, including live leases, deleted/changed storage and inventory, current ownership/membership, holds/revocation and successor recovery.
  • Actual isolated local Convex backend: skill with deferred enrichment and bundle both move finalizing → finalized; exact HTTP version reads by a nonowner reader change 404 → 200, with original files/checks preserved. Primary scan results are fixture data; no external scanner or AI success is claimed. The skill uses a literal summary, supplied changelog and the existing zero-embedding fallback. Temporary fixture code is not included.
  • Static checks; types/build and Convex deploy-compatible typecheck; package verification; HTTP/CLI e2e gates pass.
  • Full unit/coverage gate passes: 9,020 passed, 5 skipped; all coverage thresholds pass. Used two-worker concurrency after unrelated subprocess timeouts under higher parallelism; no timeout or threshold changes.
  • Independent Codex P0–P3 review completed with no findings; review is limited to the changed source and supplied unchanged final-publication context and did not rerun the local proof.

@vercel

vercel Bot commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

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

Project Deployment Actions Updated
clawhub Ready Ready Preview Nov 6, 2026 11:22pm UTC

Request Review

@Patrick-Erichsen
Patrick-Erichsen requested a review from a team as a code owner November 6, 2026 23:19
@clawsweeper

clawsweeper Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

This branch was successfully deployed

1 active deployment
Preview – clawhub — 613fbf2b Deployed Nov 6, 2026 by vercel[bot]
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