Skip to content

fix: harden post-publication convergence - #46

Merged
tensornull merged 3 commits into
mainfrom
agent/fix-attestation-convergence
Jul 31, 2026
Merged

fix: harden post-publication convergence#46
tensornull merged 3 commits into
mainfrom
agent/fix-attestation-convergence

Conversation

@tensornull

Copy link
Copy Markdown
Contributor

Summary

  • retry delayed npm attestation availability through a bounded, atomic fetch
  • re-read exact version, latest, next, integrity, and attestation identity after convergence
  • prevent an idempotent replay from republishing when protected preflight already found the version
  • codify the single failed-job recovery path in repository release rules

Root cause

The v0.1.2 OIDC publication succeeded, but npm package metadata exposed an attestation URL roughly eight minutes before that endpoint returned 200. The workflow fetched it once after about thirteen seconds, received 404, and failed after immutable registry mutation. Shell-redirected curl retries could also preserve partial response bytes.

Verification

  • npm run verify (538 source tests and 538 isolated-copy tests)
  • actionlint 1.7.12
  • behavioral 404-to-200, partial-transfer-to-200, and exhaustion tests
  • post-convergence registry drift mutation tests
  • idempotent existing-artifact and replay E404 tests
  • git diff --check

@tensornull tensornull left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

LGTM

Reviewed and accepted exact head 05041c4.

@tensornull
tensornull merged commit d02b87d into main Jul 31, 2026
9 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.

1 participant