chore(agent): self-update versioning rule + bump 0.5.24 → 0.5.25#1222
Conversation
Add src/agent/AGENTS.md: HsmAgent VERSION is the self-update delivery key. Any change to the shipped agent binary (including native-collector changes compiled in) must bump the patch version, else the strictly-greater semver check in update_checker never delivers it. Apply retroactively for #1221 collector logging, which changed the binary but left the version at 0.5.24 -> bump to 0.5.25 so deployed agents receive it via self-update. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
PR #1222 Review —
|
What
src/agent/AGENTS.md— directory-scoped rule:HsmAgent VERSIONis the self-update delivery key. Any change that alters the shipped agent binary's observable behavior — including native-collector changes compiled into the agent — must bump the patch version in the same PR, or the strictly-greater semver check insrc/agent/src/update_checker.cppnever delivers it to deployed agents.project(HsmAgent VERSION 0.5.24 → 0.5.25).Why
The #1221 collector logging events changed the agent binary (new lifecycle / registration / send-fail log lines) but left
HsmAgent VERSIONat0.5.24. The server advertises0.5.24, deployed agents run0.5.24, andGET /api/agent/versionself-update only ships a strictly greater version — so0.5.24 == 0.5.24→ "already up to date", and the new build is undeliverable except by a manual binary swap.This PR applies the new rule retroactively: bumping to
0.5.25lets already-running agents pick up the #1221 logging via their normal self-update path.Notes
AGENTS.md## Versioningleft as-is — this refinement is directory-scoped tosrc/agent/per the AGENTS.md nesting convention.🤖 Generated with Claude Code