Skip to content

release: version the product (SemVer 0.x, build identity, changelog, tags) #86

Closed

Description

@TusanHomichi

Problem

Everything reports 0.0.0: the CLI --version, /api/instance, /api/health, the startup log, and the UI footer. docs/preview.md records the consequence: "the reported 0.0.0 cannot identify which commit is running". The web package also says 0.0.0, there is no changelog and no tags, and nothing says what a version number would promise.

Outcome

  • A versioning decision (ADR):
    • SemVer at 0.x.
    • One source of truth, the Cargo workspace version.
    • Its relation to the independently versioned export formats, canonical record schema, and migrations.
    • What pre-1.0 minor and patch bumps mean.
    • Tags as vX.Y.Z on merged main.
  • Build identity. The binary reports version and source commit in --version, /api/instance, /api/health, the startup log, and the UI footer. A release build can pin the commit through an environment variable.
  • A rung-2 guard. A test fails when web/package.json disagrees with the Cargo version, or when CHANGELOG.md has no section for the current version.
  • CHANGELOG.md (Keep a Changelog), with 0.1.0 as the first release, summarizing what exists today.
  • docs/releasing.md: bump, changelog, PR, merge, tag.

Scope

  • In scope: the above, with 0.1.0 as the first version.
  • Out of scope:
    • Release binaries and CI release automation, which belong to the operator-setup issue.
    • Changing any portable format version.

Acceptance

  • ADR accepted in docs/decisions/.
  • consolebook --version, /api/instance, and the footer show 0.1.0 plus a commit. The integration tests assert both fields.
  • The guard test fails on a deliberate package.json mismatch (negative control shown) and passes when aligned.
  • Full required gates and hosted pr-gate pass.
  • After merge, v0.1.0 is tagged on the merge commit.

Authorization: the maintainer's request in the working session ("we should start versioning this"), with standing permission to carry it through merge and cleanup.

Activity

  1. TusanHomichi commented on Oct 14, 2026

    @TusanHomichi
    MemberAuthor

    Everything for 0.1.0 is on main:

    PR What
    #85 interface
    #88 versioning
    #92 proof runner
    #89 installer and guided setup
    #91 off-server backups
    #101 roadmap and README

    The release commit is 17b485138b286d419c211eee17a9d3eb831fbbf0. Its tree is identical to trees that passed the full local gates and hosted CI, including the release workflow's install, upgrade, and backup-copy proofs on both architectures. Cargo.toml, web/package.json and CHANGELOG.md all say 0.1.0.

    The tag is the one remaining step, and this session can't push it (the session's Git access returns HTTP 403 for tags). From a clone with push access:

    git fetch origin main
    git tag -a v0.1.0 -m "Consolebook 0.1.0" 17b485138b286d419c211eee17a9d3eb831fbbf0
    git push origin v0.1.0

    The release workflow then checks the tag against the Cargo version, builds and proves both archives, and publishes. This issue closes once the release is published.


    Generated by Claude Code

  2. TusanHomichi commented on Oct 14, 2026

    @TusanHomichi
    MemberAuthor

    Released. v0.1.0 (annotated tag 0f55e36) points at 17b4851, and Consolebook 0.1.0 is published with the changelog section as its notes.

    • Release workflow run: all jobs succeeded. On both x86_64 and aarch64:

      • the tag matched the Cargo version;
      • the static archive was built;
      • a real systemd fresh install passed;
      • the data-directory change was refused;
      • the upgrade moved the bind;
      • the backup copy was made to a tmpfs share and verified, and the service then survived the share disappearing.

      Publish ran after both architectures passed.

    • The documented one-liner against the published release, run with --no-service in a container without systemd:

      • downloaded consolebook-linux-x86_64.tar.gz, verified its checksum, and printed Installed consolebook 0.1.0 (17b485138b28);
      • showed the off-server-backup warning;
      • the printed start command served /api/health → {"status":"ok","version":"0.1.0","commit":"17b485138b28","database":"ok"} and the UI;
      • setup-code issued a 32-character code.

      The test install was removed afterwards.

    All acceptance criteria are met, so I'm closing this issue.


    Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions