Repository navigation
fix(ci): block on the reverse engine contract and preflight release versions - #200
Merged
Merged
Conversation
…ersions The coven-contract job was continue-on-error and ran `cargo test contract`, which passes when the consumer has zero matching tests or skips them. Make it blocking and run it through scripts/run-coven-contract.py, which resolves the consumer test binary from Cargo's JSON artifacts, runs exactly the three engine-facing tests with isolated state and a 90s process-group deadline, and fails on missing, skipped, ignored or empty success. Add scripts/check-release-version.py: the requested tag must be strictly newer than every remote version tag, and every canonical stamp (Cargo workspace and lock, npm, ACP registry version and five archive URLs, README, docs) must match. release.yml runs it before the build and again just before publication, and both release workflows share one concurrency group across versions. bump-version.py now stamps the README engine introduction instead of the upstream Claurst attribution. Tests: scripts/test-coven-contract-runner.py (adversarial libtest emulation) and scripts/test-release-version.py, run from Rust CI. Coven-Harness: Claude Code / claude-opus-5-5
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This was referenced Oct 15, 2026
BunsDev
added a commit
that referenced
this pull request
Oct 15, 2026
) bump-version.py wrote each surface as it went, so a later validation failure (invalid npm JSON, a missing docs pattern, missing ACP archive URLs) left earlier Cargo, npm and docs files already changed. Stage all seven files in a path-to-text map, run the existing parsing and pattern checks first, then write once. Four write sites become one. Add scripts/test_bump_version.py (four disposable-fixture cases, three failed before) and a version-stamp-tests workflow. The success case asserts the README engine introduction stamp from #200. Coven-Harness: Claude Code / claude-opus-5-5
11 tasks done
BunsDev
added a commit
that referenced
this pull request
Oct 15, 2026
#321) Auto-release's forward-only step still compared tags with sort -V against local tags, unlike manual releases, which since #200 run the SemVer preflight against origin. Surface unit 63 replaced that step with its own guard script, which collides with #200's script at the same path; and #200's script also verifies version stamps, which do not exist yet at that step (bump-version.py runs after it). Reconcile them: add a --forward-only mode to #200's check-release-version.py that checks only SemVer precedence against origin tags, and run it from auto-release before the bump. Stamps are still verified by release.yml's preflight and recheck. Unit 63's ordering cases (first release, unrelated tags, equal and lower versions, numeric components, the SemVer prerelease sequence, remote failure) move into test-release-version.py, and its lightweight workflow runs those tests when the release workflows or scripts change. Malformed version-shaped tags keep #200's fail-closed behavior. Surface unit 63. Coven-Harness: Claude Code / claude-opus-5-5
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Make the reverse engine-contract CI job a hard gate that cannot pass on empty or skipped execution, and add a forward-only version and stamp preflight to the release workflows.
Context
COVEN.mdrelease checklist,docs/reverse-contract-ci.md.Changes
Reverse contract (
rust-ci.yml,scripts/run-coven-contract.py):continue-on-errorfromcoven-contract. Before,cargo test contracton the consumer passed when zero tests matched or each test printedcontract: skipped.coven-clibin test target with--no-run --message-format=json. The runner resolves exactly one test executable from that JSON and runs exactlycontract_version_output_parses,contract_auth_status_json_is_machine_readableandcontract_print_flags_are_accepted, requiring one executed pass each.cargo build -p claurst --locked).scripts/test-coven-contract-runner.pyemulates libtest to cover each failure path. CI runs it before the real consumer.Release preflight (
scripts/check-release-version.py,release.yml,patch-release.yml,bump-version.py):v*tag. Malformed version-shaped tags and a failed remote query fail the check.docs/index.mdanddocs/installation.mdmust all carry the version.release.ymlruns the preflight before the build matrix, replacing the old Cargo-only tag check, and again immediately before creating the release. Normal and patch releases share thecoven-code-release-publicationconcurrency group, so different versions cannot publish out of order.bump-version.pynow stamps the README engine introduction (`coven-code` **vX.Y.Z**) instead of rewriting the upstream "Claurst vX" attribution.scripts/test-release-version.py(11 tests) runs the real stamper in disposable copies and covers equal/older/prerelease ordering, metadata equality, malformed versions, remote failure, lock/npm/docs/URL drift, a stale README introduction, and a tag that appears between the early and final checks. Rust CI runs it.COVEN.md: the release checklist now covers script-only stamping, the preflight, exact-source gates, explicit publication, five-archive verification, and npm as opt-in.Validation
python3 scripts/test-release-version.py: 11 tests OK.python3 scripts/test-coven-contract-runner.py: 4 tests OK.python3 scripts/check-release-version.py v0.8.0against the live remote: exit 1, "v0.8.0 must be strictly newer than v0.8.0".actionlint -ignore SC2016 .github/workflows/release.yml .github/workflows/patch-release.yml .github/workflows/rust-ci.yml: pass. SC2016 is pre-existing in the release-note shell block.git diff --check: clean.f772b513and engine03a6271. Invalid version output, string-valuedloggedInand print exit 2 were each rejected through the real consumer. Consumer main's three test definitions are unchanged as of this PR.Coven engine contractjob on this PR is the first full run against consumermain.PR Readiness
COVEN.mdchecklist,docs/reverse-contract-ci.md).