Skip to content

fix: v1.4.2 — Node 24.22.3, herdr-peers state persisted across rebuilds - #59

Merged
xergioalex merged 3 commits into
mainfrom
fix/node-24.22.3-herdr-peers-state
Nov 17, 2026
Merged

xergioalex merged 3 commits into
mainfrom
fix/node-24.22.3-herdr-peers-state

Conversation

@xergioalex

Copy link
Copy Markdown
Member

Summary

Release v1.4.2, a patch release; the interface stays 2. It fixes two problems a downstream adopter hit while upgrading to v1.4.1. herdr-peers v2.2.0, coding-agents-kit v1.5.0 and DeepWorkPlan Vim v1.1.0 are unchanged.

  1. Node 24.22.3. v1.4.1 pinned 24.21.0, which is older than the 24.22.x security line, so dck init downgraded repositories that had pinned 24.22.1 or 24.22.3.
    • BASE_NODE is now node:24.22.3-trixie-slim@sha256:af02d57b…. The Docker registry and the Hub API return the same digest, and the image config sets NODE_VERSION=24.22.3.
    • NODE_VERSION and the agents layer's tarball checksums come from nodejs.org's SHASUMS256.txt for 24.22.3, and I re-hashed both tarballs after downloading them. gpg isn't installed here, so the signature was not checked.
    • A test keeps the base image and the agents layer on the same release, at 24.22.3 or later.
  2. herdr-peers state survives rebuilds. dck_start now keeps ~/.local/state/herdr-peers (the delegation log, lead records, replies and autopilot state) on the state volume, through the new dck_persist_private_dir.
    • The volume copy is 0700, and the files inside keep their modes.
    • If the container already holds a non-empty directory and the volume is empty, the directory moves onto the volume.
    • If the volume already has data, the container's copy is moved beside it as <key>.container-<UTC stamp>. It is never deleted or hidden behind the volume.
    • Repositories that work around this in dev-setup-hook.sh with dck_persist state "$HOME/.local/state/herdr-peers" dir can remove that line: it points at the same volume copy (docs/herdr.md, docs/entrypoint.md).

Commits

  1. fix(images): pin node-24 to Node 24.22.3
  2. feat(entrypoint): keep herdr-peers' state on the state volume, with tests:
    • entrypoint scope: a recreate keeps a lead record and the log with their modes; an existing directory migrates onto an empty volume; when both sides have data, both are kept; the workaround's link still works.
    • docker scope: a real dev.sh rebuild keeps a lead record and the log, with 0700/0600 modes.
  3. chore(release): v1.4.2 …: release stamps, the re-render, and the CHANGELOG [1.4.2] section.

Validation

Docker gate: this time the docker scope also ran locally. Docker Desktop is still missing from the host Mac, but its daemon is running, so I used Homebrew's docker-compose and docker-buildx plugins through a session-only DOCKER_CONFIG to reach it. The ubuntu (unit + docker) CI job remains the authoritative Docker gate on the final head, as it was for v1.4.1.

Local results on the final head c357556:

  • Full gate, 15 scopes: 2678 passed, 5 failed, 0 unavailable.
    • The docker scope saw herdr-peers v2.2.0, ak v1.5.0 and Vim v1.1.0 inside the image.
    • The docker scope also confirmed that herdr-peers' lead record and log survive a rebuild, private modes kept.
    • All 5 failures are devcontainer-CLI checks. The host's devcontainer shim points into a VS Code app that has been removed (Code Helper (Plugin): No such file or directory). CI reports the same checks as unavailable.
  • shellcheck: clean. Public-hygiene check: no finding.

🤖 Generated with Claude Code

xergioalex and others added 3 commits November 17, 2026 06:36
24.21.0 was older than the 24.22.x security line, so a `dck init` downgraded
repositories that had pinned 24.22.1 or 24.22.3. BASE_NODE moves to
node:24.22.3-trixie-slim (index digest af02d57b…, read from Docker Hub; its
config sets NODE_VERSION=24.22.3). NODE_VERSION and the agents layer's
tarball checksums move to 24.22.3 as well, from nodejs.org SHASUMS256.txt,
re-hashed from the downloaded tarballs. A test keeps the base image and the
agents layer on the same release, and the release at or above 24.22.3.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
~/.local/state/herdr-peers (the delegation log, lead records, replies,
autopilot state) lived in the container's layer, so every rebuild lost asks
and a plan's lead records. dck_start now keeps it on the state volume through
the new dck_persist_private_dir. The volume copy is 0700 and the files keep
their modes. A non-empty directory already in the container moves onto an
empty volume; when the volume already has data, the container's copy is
moved beside it as <key>.container-<UTC stamp>, never deleted or shadowed.
The dev-setup-hook workaround (dck_persist state ... dir) uses the same
volume copy, so it becomes a harmless no-op and can be dropped.

Tests: entrypoint (recreate keeps a lead record and the log with modes,
migration, both sides kept, the workaround's link) and docker (a real
rebuild keeps a lead record and the log, 0700/0600).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Patch release; interface stays 2. Stamps VERSION, re-renders the
repository's own container (bin/dck init --repo . --yes), and updates
README, docs/launcher.md, SECURITY, both skills, AGENTS.md, the CHANGELOG
[1.4.2] section and the registry's devcontainer entry (v1.4.2).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@xergioalex xergioalex added the Ready Ready for review (triggers the AI Diff Reviewer where configured) label Nov 17, 2026
@xergioalex
xergioalex merged commit bb8165d into main Nov 17, 2026
2 checks passed
@xergioalex
xergioalex deleted the fix/node-24.22.3-herdr-peers-state branch November 17, 2026 12:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Ready Ready for review (triggers the AI Diff Reviewer where configured)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant