Repository navigation
release: version the product as 0.1.0 with a traceable build identity - #88
Merged
Merged
Conversation
Every surface reported 0.0.0, so a running binary could not be traced to source. ADR 0022 adopts Semantic Versioning, pre-1.0, with the Cargo workspace version as the single source; web/package.json and its lockfile mirror it, and CHANGELOG.md must carry a section for it. tests/release_version.rs fails the gates when any of them drift. build.rs records the source commit (CONSOLEBOOK_BUILD_COMMIT when a release build pins it, otherwise HEAD, otherwise "unknown"). --version and the startup log show "VERSION (COMMIT)"; /api/instance and /api/health report version and commit; the footer shows both. docs/releasing.md holds the bump, changelog, and tag procedure; the preview runbook and development index point to it. Refs #86 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01TsvZjbz8dTRM8A1NqAP5ts
#82 swept scripts/__pycache__/proof.cpython-313.pyc into the tree with `git add -A` after the script had been imported for testing. Remove it and ignore __pycache__/ so the class cannot recur (rung 2: the ignore rule makes it unstageable by default). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01TsvZjbz8dTRM8A1NqAP5ts
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This was referenced Oct 14, 2026
Member
Author
|
Merged as Verification on the merged head
#86 stays open until Generated by Claude Code |
5 tasks
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.
Primary Issue
Refs #86. The last acceptance item, tagging
v0.1.0after merge, happens once the release's contents (#85, #87) are onmain, so the issue stays open until then.Problem And Outcome
Every surface reported
0.0.0, so a running binary could not be traced to source (docs/preview.mdsaid so). After this PR the product is0.1.0with one source of truth. Every surface shows version and commit, and a guard fails the gates when the web package or the changelog drifts from the Cargo version.Changes
docs/decisions/0022-product-versioning.md):1.0.0is reserved for the Milestone 6 production-readiness decision.vX.Y.Zonmainand never move.[workspace.package] version = "0.1.0"; the crate inherits it.web/package.jsonand its lockfile set vianpm version;Cargo.lockupdated.build.rsrecordsCONSOLEBOOK_BUILD_COMMIT: the pinned value from the environment for release builds, otherwiseHEADviagit rev-parse --git-path(correct in worktrees), otherwiseunknown.lib.rsexposesBUILD_COMMITandBUILD_IDENTITY.--versionprintsconsolebook 0.1.0 (0bc201f22fdf)./api/instanceand/api/healthaddcommit. The startup log addscommit. The footer shows0.1.0 (commit).tests/release_version.rs): the version isMAJOR.MINOR.PATCH;web/package.jsonand both lockfile fields equal it;CHANGELOG.mdhas a## [VERSION]section;BUILD_IDENTITYis consistent. The existing health and instance tests now also assertcommit.CHANGELOG.md(0.1.0) anddocs/releasing.md(bump, changelog, PR, tag). The preview runbook, development index, and README point to them.scripts/__pycache__/proof.cpython-313.pyc, which chore(proof): run the documented gates and leave a receipt #82 committed by mistake, and ignores__pycache__/.Correction rung: 2 (mechanical). Version drift fails
cargo test, and an ignore rule keeps bytecode out of the tree.Scope
Verification
0bc201f(clean tree)44857bd0855c18e4f4f1b6a2ace6352532443432;receipt.jsonsha2567d27b8d8fb4176529ec8654c2d891435b2c1e2035ee6837d9892ecc7ce4901c7.target/debug/consolebook-server --versionprintsconsolebook 0.1.0 (0bc201f22fdf).web/package.jsonset to0.1.1,release_versionfails:assertion left == right failed: web/package.json version, left: "0.1.1", right: "0.1.0". Restored, 4/4 pass.pr-gate: pending.Review And Merge Notes
build.rsrerun triggers: a new commit must rebuild the identity, while an unchanged checkout must not rebuild each time.+layout.sveltein separate hunks; a trial merge resolves automatically.🤖 Generated with Claude Code
https://claude.ai/code/session_01TsvZjbz8dTRM8A1NqAP5ts
Generated by Claude Code