Skip to content

fix(release): reject drifted published crate versions before any upload - #222

Closed
ruvnet wants to merge 1 commit into
mainfrom
release/preflight-crate-bytes
Closed

ruvnet wants to merge 1 commit into
mainfrom
release/preflight-crate-bytes

Conversation

@ruvnet

@ruvnet ruvnet commented Nov 11, 2026

Copy link
Copy Markdown
Owner

Why

Run 42957654418 published cuda-rust-wasm 0.2.1 and then stopped at ruv-fann 0.2.2: that version was already on crates.io with different bytes (#221). The mismatch only shows up inside --publish, so crates earlier in the publication order upload before the run fails. #216 had the same partial-publish risk.

Change

publish-candidates.py without --publish is the credential-free check that runs before uploads. It now calls the same downloaded() used by publish mode for every candidate:

  • missing from crates.io → verified-candidate
  • identical bytes → already-verified
  • different bytes → fails, listing every drifted crate and saying nothing was uploaded

Publish mode is unchanged.

Checked

python3 -m unittest discover -s scripts/tests: 69/69, including one new preflight case.

This does not fix #221. That needs an owner decision on bumping ruv-fann.

🤖 Generated with claude-flow

The credential-free "Check source binding and all candidate bytes" step now
downloads each candidate's version from static.crates.io and fails if it is
already public with different bytes, listing every drifted crate. Before,
that mismatch was only found inside --publish, after earlier crates in the
order had uploaded: run 42957654418 published cuda-rust-wasm 0.2.1 and then
stopped at ruv-fann 0.2.2 (#221).

Checked: scripts/tests 69/69 (one new preflight case).

Co-Authored-By: claude-flow <ruv@ruv.net>
@ruvnet

ruvnet commented Nov 11, 2026

Copy link
Copy Markdown
Owner Author

No checks run on this branch: ci.yml is disabled, and the active workflows filter out scripts/. The lane rules don't allow merging without CI, so this is left for the owner. Local result: python3 -m unittest discover -s scripts/tests passes 69/69.

@ruvnet

ruvnet commented Nov 11, 2026

Copy link
Copy Markdown
Owner Author

Superseded: folded into the ruv-fann 0.2.3 cascade PR.

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.

Protected release blocked: published ruv-fann 0.2.2 crate no longer matches the repo (README.md and docs/assets SVGs changed)

1 participant