Skip to content

chore: report 0.2.0, the version --ttl actually shipped in - #3

Merged
ProJedi1234 merged 1 commit into
mainfrom
chore/version-0.2.0
Aug 5, 2026
Merged

chore: report 0.2.0, the version --ttl actually shipped in#3
ProJedi1234 merged 1 commit into
mainfrom
chore/version-0.2.0

Conversation

@ProJedi1234

@ProJedi1234 ProJedi1234 commented Aug 5, 2026

Copy link
Copy Markdown
Owner

--ttl (#2) added a flag to publish and left SteleVersion.current at 0.1.0. Two binaries with different command surfaces therefore both identify as stele-cli/0.1.0 — and that string is exactly what the server's 426 gate compares, so the drift is invisible to the one mechanism built to catch it.

The concrete failure: an install predating #2 answers stele publish --ttl with an unknown-flag error while reporting the same version as an install that supports it. I hit this on my own machine before noticing the cause.

What changed

One line. SteleVersion.current is the only version literal in the repo, and all five test assertions interpolate it rather than hardcoding a string, so nothing needed updating in lockstep.

What deliberately did not change

minimumCLIVersion on the server stays at 0.1.0. This is an additive change — a 0.1.0 client is still correct, it just has no --ttl. Raising the floor would answer 426 to every installed client to prevent drift that does no harm.

Nothing on the server side needed touching at all: its version literals are parser fixtures (stele-cli/0.1.0 as a parse input, stele-cli/0.0.1 as the outdated case) and its gate tests derive relatively from minimumCLIVersion.

Verification

  • 110 CLI tests pass
  • scripts/integration-smoke.sh against a real server on a virgin database: 72/72, driven by the installed 0.2.0 binary rather than --bin

That last detail is the point — it proves the bumped version is not gated, rather than asserting 0.2.0 >= 0.1.0 and hoping.

Still open

This repo has no tags and no release automation, which is how --ttl shipped under 0.1.0 in the first place. The bump is a hand-edit nothing reminds you to make. Worth closing separately — either a CI check that fails a PR touching Sources/ without touching Version.swift, or real tagged releases.

🤖 Generated with Claude Code

https://claude.ai/code/session_01E3vBKBewMwmbCo5VxBLrmA

Summary by CodeRabbit

  • Chores
    • Updated the application version to 0.2.0.
    • User agent information now reports version 0.2.0.

`--ttl` (#2) added a flag to `publish` and left `SteleVersion.current` at
`0.1.0`, so two binaries with different command surfaces both identify as
`stele-cli/0.1.0`. The server's `426` gate compares exactly that string, which
means the drift is invisible to the one mechanism built to catch it: an install
predating #2 answers `stele publish --ttl` with an unknown-flag error while
reporting the same version as an install that supports it.

Bump to 0.2.0. Additive change, so the server's `minimumCLIVersion` stays at
`0.1.0` — a 0.1.0 client is still correct, it simply has no `--ttl`. Raising the
floor would `426` every installed client to prevent drift that does no harm.

Nothing else needed changing: `SteleVersion.current` is the only version literal
in the repo, and every test interpolates it rather than hardcoding a string.

Verified with the integration smoke against a real server — 72/72, driven by the
installed 0.2.0 binary, which is what actually proves the new version is not
gated rather than assuming the comparison.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01E3vBKBewMwmbCo5VxBLrmA
@coderabbitai

coderabbitai Bot commented Aug 5, 2026

Copy link
Copy Markdown

Review Change Stack

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Free

Run ID: e1cd2205-a523-45a4-80cf-ec252b4f2a1a

📥 Commits

Reviewing files that changed from the base of the PR and between 6bd53ee and aa5fa32.

📒 Files selected for processing (1)
  • Sources/SteleKit/Version.swift

📝 Walkthrough

Walkthrough

The change updates SteleVersion.current from 0.1.0 to 0.2.0. The derived userAgent reports the updated version.

Changes

Version Metadata

Layer / File(s) Summary
Update public version
Sources/SteleKit/Version.swift
SteleVersion.current now returns 0.2.0.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Poem

A rabbit hops through version cheer,
“Zero point two point oh is here!”
The user agent wears its badge,
With carrots packed inside its cache.
Hop, hop—metadata is clear!


Note

🎁 Summarized by CodeRabbit Free

Your organization is on the Free plan. CodeRabbit will generate a high-level summary and a walkthrough for each pull request. For a comprehensive line-by-line review, please upgrade your subscription to CodeRabbit Pro by visiting https://app.coderabbit.ai/login.

Comment @coderabbitai help to get the list of available commands.

@ProJedi1234
ProJedi1234 merged commit 61428cf into main Aug 5, 2026
2 checks passed
@ProJedi1234
ProJedi1234 deleted the chore/version-0.2.0 branch August 5, 2026 20:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant