8000 docs: binding release routing and recovery (#960) by adityamukho · Pull Request #967 · project-minigraf/minigraf · GitHub
[go: up one dir, main page]

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ Releases are managed by the project maintainer. The process is documented in iss
`docs/superpowers/specs/` design files. For each release:

1. All prerequisite issue PRs merged and CI green
2. Version bumped consistently across all manifests (`Cargo.toml`, `package.json`, `pyproject.toml`, `build.gradle.kts`, `Package.swift`)
2. Core version bumped in its release manifests. Binding workflows derive their package versions and core dependency pins from the dispatched tag after core publication, using each ecosystem's spelling.
3. `cargo check --workspace` passes cleanly
4. All affected docs synced (see `CLAUDE.md` — "Keep documentation synchronized")
5. From a clean checkout of the final candidate commit, run `cargo publish --dry-run --locked` before creating the tag. Record the commit SHA and result in the release issue; a failure must be resolved before tagging. `Cargo.lock` is currently untracked, so this check does not establish that CI and publishing used the same dependency resolution.
Expand All @@ -137,6 +137,14 @@ Release uses cargo-dist's `local-artifacts-jobs` hook to run Release Gate. Faile

Release Cascade must be installed on the default branch (`main`), even when the tag is created from `v3`. For recovery after a partial binding release, run `gh workflow run cascade.yml --ref main -f tag=v3.0.0-alpha` with the published tag. This re-dispatches all seven bindings; it requires a successful official Release run for the tag's current commit and passing CI. The dispatch contract remains `core-release` with `client_payload.version` set to the full tag.

The cascade waits for the exact unyanked crate in the Cargo sparse index again before dispatching. It sends the seven requests sequentially and stops on an error; a green cascade confirms dispatch, not downstream publication. Check every binding's release and exact-version registry consumer results before declaring the release complete.

Binding recovery follows the [binding release routing design](docs/superpowers/specs/2026-11-30-binding-release-routing-design.md). After #937, the default-branch workflow routes 3.x to `main` and 2.x to `v2.x`, with no fallback. To retry just one binding, run `gh workflow run release.yml --ref main -f version=<full-tag>` in that binding's repository. Do not dispatch its maintenance-branch workflow or delete a tag to retry.

An existing binding source tag (Swift: `source-<full-tag>`) selects the original tested prepared commit, even if the source branch has advanced. Recovery requires that commit to remain in the selected line and retain the exact core dependency and provenance. It authenticates the original run's retained evidence and artifact digests, accepts matching published files, and uploads only missing original bytes (or a byte-identical rebuild). Swift also retains its generated SemVer tag and the original zip checksum. A conflicting digest, unavailable original evidence, or a tag without the evidence pointer fails closed; investigate the conflict without deleting or moving public tags or replacing published files. The binding workflows request 90-day evidence retention, subject to repository policy; preserve those runs and artifacts throughout recovery. If nothing has been published and no binding source tag exists, the retry prepares and tests from the current source head again.

Repeating the cascade is safe for bindings that already finished: each resumes at the same tested identity, uploads nothing, repairs channels or release classification when needed, and re-runs its exact-version registry consumer. It is not a blind skip of an existing version. Recovery succeeds only after that verification passes; publication, verification and resume failures retain `release-broken` reporting.

## Code of Conduct

This project follows the [Contributor Covenant Code of Conduct](CODE_OF_CONDUCT.md). By participating, you agree to uphold it.
Loading
Loading
0