Repository navigation
fix(evidence): evaluate release proofs against the release line - #90
Merged
Merged
Conversation
REL-014 required package.json#version to equal "1.0.0" and REL-012 required it to be in an enumerated set, so an isolated bump to 1.0.1 failed both proofs. Each release had to edit the proofs it was meant to satisfy. Add scripts/release-line.mjs with pure predicates for final MAJOR.MINOR.PATCH versions and use them in both proofs: - REL-014 accepts any final release on the 1.x line, still requires the 16 stable entrypoints and the 1.0.0 changelog entry, and requires a published 1.x compatibility baseline no newer than the package. - REL-012 accepts any final release from 0.6.1 on, with a baseline between 0.6.0 and the package version. Move the previous-release compatibility baseline from 0.6.1 to 1.0.0 and add the frozen 1.0.0 consumer fixture. The 1.0.0 export names and declarations are identical to 0.6.1, so the gate result is unchanged. Prerelease versions, other major lines, a baseline newer than the package and a pre-freeze baseline are still rejected. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
8 tasks done
AdmilsonCossa
added a commit
that referenced
this pull request
Nov 14, 2026
Bump the workspace and package version to 1.0.1 and record the changelog entry. Maintenance release: the runtime, public exports and TypeScript declarations are unchanged from 1.0.0. 1.0.1 publishes the declared agent tool authority documentation and the corrected CORR-006 title (#88), the Node 20.11 consumer fixture pin (#89), and the release-line evaluation of REL-012 and REL-014 with the 1.0.0 compatibility baseline (#90). Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
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.
Problem
Two release evidence proofs pin the package version to enumerated values:
tests/evidence/release/one-zero-contracts.mjs) requirespackage.json#version === "1.0.0".tests/evidence/release/hardening-contracts.mjs) requires the version to be in{"0.6.1", "1.0.0"}.Changing only
packages/core/package.jsonto1.0.1on a copy ofmainmakes both proofs fail. Any 1.0.x patch release therefore has to edit the proofs it is meant to satisfy.The previous-release compatibility gate also still compares against
0.6.1, and REL-014 requires that exact string. For the 1.x line the previous public release is1.0.0.Change
scripts/release-line.mjs(new): three pure predicates over finalMAJOR.MINOR.PATCHversions:parseReleaseVersion,isReleaseOnMajorLine,isReleaseAtOrAfter. Prerelease and build-metadata versions are not release versions.## 1.0.0changelog entry. The compatibility baseline must be a published 1.x release that is not newer than the package.0.6.1on, with a baseline between0.6.0and the package version.scripts/check-previous-compatibility.mjs: baseline moves from0.6.1to1.0.0, with the frozenv1.0.0-consumer.tsfixture. The fixture body is identical to the0.6.1one because the export names and declarations of1.0.0are identical to0.6.1.evidence/claims.json: REL-012 and REL-014 invariant text, and the REL-014 limitation, aligned with the proofs.No runtime, type, or export change in
@workit/core. No version bump.Ownership boundary
The two proofs remain the owners of their claims;
check-previous-compatibility.mjsremains the only owner of the baseline.release-line.mjsadds no policy of its own: it only parses and orders versions, following the existing pattern of pure script modules with unit tests (npm-pack-result.mjs,vulnerability-gate.mjs).Evidence
Windows, Node 24.19.0, on this branch:
tests/unit/release-line.test.js: 20 tests, written first and failing before the module existed.npm run test:coverage: 34 files, 445 tests; statements, branches, functions and lines at 100%.check:compat-previous:{"previousCompatibility":"ok","baseline":"1.0.0","packagePaths":16,"declarations":31}.test:evidence: REL-012 and REL-014 pass, 0 failed proofs;check:evidence-ledgerok with 63 claims.npm run verifypassed when run individually (33 gates in total, withcheck:package-consumer:nodein place ofcheck:package-consumer).Simulated bumps on a scratch copy, editing only
packages/core/package.json(and the baseline constant where stated):1.0.0,1.0.1,1.4.21.0.02.0.01.0.01.0.1-rc.1,0.6.11.0.01.0.11.0.21.0.10.6.1Limitations
Verify packagejob.1.0.1release: lockfile, changelog, SBOM and tarball checks belong to the bump change.Checklist
npm run test:coveragepasses with 100% statements, branches, functions, and lines.npm run verifypasses, or an environmental limitation is documented. (Bun fixture, see Limitations.)v1.0.0-consumer.tsbaseline fixture; no API change.)🤖 Generated with Claude Code