Repository navigation
v0.5.8
Summary
mash 0.5.8 exists for a fleet migration: mashctl doctor now passes on a NATS account shared with other tools, and mashctl doctor --audit-users checks that every connected user was issued by mashctl (#1300). install.sh also tells you how to fix a folder it refuses (#1240). mashctl doctor no longer fails because a connected user was not issued by mashctl; it says how many other users are connected, and --audit-users is the one option that fails on them. If you never share an account, nothing changes. The rest is smaller: one count for mash inbox and the idle wake, a refused-mail count that is repaired after a kill, safer installer and setup scripts, and a bigger default for the local server. Every download has a build attestation; verify it. The known issues are listed in the release notes.
Upgrading
Update both plugins, mash and mash-setup, then restart your Claude Code sessions: the serve and inbox fixes need a restart. Install mash and mashctl from the same release, as before. A local server you already set up keeps its old limits of 64 streams and 128 consumers; the new default of 1024 applies to servers set up with 0.5.8. The upgrade is one-way; problems are fixed by the next release.
Upgrading in detail
One thing you may want to do:
- If you set up a local server before 0.5.8, it keeps its old limits of 64 streams and 128 consumers. The new default of 1024 applies to servers set up with 0.5.8. Tested steps for raising the limits of an existing server are tracked in #1301.
What changed
Added
mashctl doctorno longer fails because a connected user was not issued by mashctl. A NATS account is the operator's and may be shared; mash is one tenant in it, so health covers mashctl's users. On a shared account thekeysline stays ok and says how many other users are connected:keys ok mashctl's users ok; 1 other user, not issued by mashctl(with none,keys ok every connected user was issued by mashctl). This holds with and without--strict. To check who is connected now, runmashctl doctor --audit-users: it fails when a connected user was not issued by mashctl (it sees only users connected now) and names the key, and a missing issue store fails thekeysrow, with or without the option, then sayshint: revoke it with the tool that issued it (mashctl revokes only its own).mashctl doctoralso no longer fails when other tools' connections change while it reads; if mashctl's users keep connecting and leaving it warns, and--audit-usersfails if no retry reads the whole list. Tracked at #1300; the decision is ADR 0166.
Changed
install.shnames the fix when it refuses a folder. Claude Code's own installer leaves~/.localand~/.local/binwritable by their group, andinstall.shrefuses such a folder. It used to stop without saying how to go on. The message now names the folder and the command,chmod go-w <folder>, and you run the installer again. It names one bad folder per run, so you may need to run it more than once; the common case is~/.localand~/.local/bin. What it accepts does not change (#1240).mash inboxand the idle wake count waiting mail one way. One pass over the waiting messages gives the total, new, urgent and oldest-waiting numbers, so the urgent count covers the waiting backlog (up to 1000 messages), not the newest 200 messages, and an older message from a deleted sender is no longer counted. The pass is capped at 1000 messages or 32 MiB. The output text does not change (#955, #1054).- The local server setup allows 1024 streams and 1024 consumers.
mash-local-nats-setup.shgave the account 64 streams and 128 consumers, so a server ran out of room after a few dozen endpoints. The disk limit stays at 2 GiB and is now the one you reach first, at about 122 endpoints (#1253).
Fixed
- An interrupted
install.shno longer splits the two programs. Ctrl-C, a closed terminal orkillwhile it replacesmashandmashctlnow leaves both old or both new.kill -9cannot be caught and can still split them (#1071). mash-local-nats-setup.sh --startchecks that a running server answers. It used to say "already running" whenever the recorded process was alive. Now, if the server does not answer, it exits with an error and tells you to run--stop, then--start; it changes nothing itself (#1094).- Only one run can take over a stale lock in
mash-local-nats-setup.sh. After a killed run, two runs started at once could both start, stop or remove the same server. One now reports busy, and a lock left by a run killed mid-takeover is named so you can remove that one file (#1093). mash-migrate-0.5.5.shworks only inside the mash folder it entered. A parent folder replaced while it runs can no longer redirect what it reads or writes, and the backup holds exactly theconfig.jsonit checked (#1063).mash doctor's refused-mail count is repaired after a kill. Ifmash servewas killed between recording a refused message and updating the count, the count stayed one low. It is now repaired the next time that message is handled (#1069).
Verify your download
Every download has a build attestation; verify it before you run it, with the steps in Verify what you download and Verify a release.
Known issues
There are 56 known issues. They are the 0.5.7 known issues that are still open, and the ones found since. Each has an issue; the issue is the place for detail and any workaround. Listed by what you would notice.
Mail and trust:
- #874: refused unverified mail: the sender is not told, and the mail is still stored.
- #935: an administrator cannot see which messages an endpoint refused.
- #958:
mash inboxmay count unverified mail thatservehas not yet refused. - #990:
mash readat a shell can say "refused" for mailservedelivered under--accept-unverified. - #960: a signed message replayed within 5 minutes shows as verified a second time (no workaround).
- #883:
Mash-Kindis unsigned. - #866:
mash readfrom a shell with no session does not tell the server until the next session starts. - #1070:
mash inboxgets slower with the span of the mailbox's messages, not the size of the page. - #918:
mashctl's online (holds the lease) andmash who's online (heartbeat) can disagree for up to 90 seconds. - #1039: mash cannot discover endpoints served by a SAP SDK host.
Setting up and installing:
- #878: one config folder serves one mesh; a second mesh needs
--config-dir. - #965:
mashctl init --configrefuses a folder set up for a different server. - #1341: on macOS,
mash-local-nats-setup.shrefuses--dirunder/tmp, and its hintchmod go-w /tmpis wrong: do not follow it. Pick a folder under your home instead; the default,~/mash-nats, works. - #1350: an idle session holding mail from senders it can no longer verify re-reads its inbox (up to 1000 messages) every minute, a steady load on the server and disk. No workaround.
- #1065:
mashctl initprints an unknown setup key in its error. - #865: the NATS helper has no boot start, upgrade, backup, other-machine listening or key retirement.
- #995:
mash-local-nats-setup.sh --removerefuses when a later instance took a stopped folder's recorded port. - #1352: the install.sh attestation check does not pin the source commit (--source-digest).
- #1353: a hard kill (kill -9) between install.sh's two renames can leave mash and mashctl at different versions, and a rerun does not detect it. Workaround: run install.sh again with MASH_VERSION set to the version you want, then check that mash version and mashctl version match.
- #1099: a failing
mash doctorends1 problem.with no fix, though its help says it tells you how to fix what is wrong, and some hints point at a command that gives the same answer:mash statushintsmash doctor, andmashctl doctoron a down server hintsmashctl status, which only checks. Anyone who follows the hints after a failure meets this, and an agent that follows every hint can loop. No workaround to run; read the failing row itself, which names the fault. For a local server that is down, the fix ismash-local-nats-setup.sh --start, which neither command prints. - #959:
install.shchecks checksums only whenghis missing or too old; the one-line commands run a script before you can read it. - #1153: gh 2.48 to 2.67 has
gh attestationbut no--source-ref, soinstall.shstops with "the attestation of the release's SHA256SUMS did not verify: nothing was installed". The message wrongly blames the release. Workaround: use gh 2.68.0 or later, or take gh off PATH. - #1231: on a personal Claude account,
--channels plugin:mash@mashalone does not load mash's channel, so an idle session is not woken; the wake needs--dangerously-load-development-channels plugin:mash@mash, with Claude Code's warning screen at every start, and in a Team or Enterprise organisation an administrator must add mash toallowedChannelPlugins. Without a channel, mail arrives at the next prompt or tool call. The setup skill writes one command per agent with the right flags (wake an idle session). - #875:
mash doctorhas no idle-wake (channel) or plugin check. - #1360: on an account with more than 8192 connections on one server, under steady churn,
mashctl doctordecides from partial reads and can miss a connection (a revoked key still connected, or a user of mashctl's that is connected); run it again. - #993: on a host without Claude Code hooks,
doctor's delivery row warns for as long as it runs. - #1008: a first
mash joininterrupted partway leaves a folder that neither a retry nor--replacefinishes. - #1013: a join file of another account on the same servers can join a folder that already holds an endpoint.
- #1097:
mashctl statusprints nothing and exits 0 when no server is configured. Someone running it beforemashctl initmeets this, and a script or skill that reads silence as "ok" is misled. Workaround: runmashctl doctor, whose config row fails:config FAIL no servers in the configuration, then1 problem.andhint: mashctl init --config <file>, exit 1. - #1062:
mash joinadds a certificate authority to a folder that has servers but no endpoint. - #1066:
mash join's rollback can remove a replaced creds file.
Signing keys, new in 0.5.7:
- #1246: if both
signing.nkandsigning.pubare lost from the key store,mashctlhas no record that a signing key was configured and signs endpoint users with the identity key again, which a strict server refuses. Losingsigning.nkalone makesmashctlrefuse instead. Workaround, not yet run: runmashctl init --config FILEagain withsigning_keyset; until thenmash doctorshows the sign-in failure.
Setup, found after 0.5.6:
- #1241: the setup skill needs
unziporpython3to unpack thenatsdownload, and a clean Debian 13 has neither. Workaround, run on a clean Debian 13 without sudo: the skill took thenats.debrelease asset, checked it againstSHA256SUMSand unpacked it withdpkg-deb -x. With sudo, installunzipfirst. - #1242:
mash joinwith a JWT whose name differs from the address says only "not a join file this mash can read". No workaround has been run; make the join file's JWT name the address.
Found in 0.5.8:
- #1338:
mash inboxcounts the oldest 1000 waiting messages (or 32 MiB); past that the counts are approximate and the output does not yet say so. - #1130:
mash statusdoes not warn when Claude Code is older than 2.1.312, although an earlier release note said it does. Nothing in mash warns about it. Workaround: runclaude --versionand compare it with 2.1.312 yourself. - #1302:
mash doctor's refused-mail count can still be one low ifmash serveis killed while it trims a list of more than 8192 refused messages. Only the count shown is off; nothing is lost. - #1301: a local server set up before 0.5.8 keeps 64 streams and 128 consumers, and there are no tested steps yet for raising them.
Found in 0.5.7:
- #1255:
mashctl initdoes not warn when the NATS operator looks strict and nosigning_keyis set; the new credentials are refused later with "Authorization Violation". - #1201: the setup skill's
natsdownload blocks fail their checksum step in zsh, the default shell on macOS. - #1194: the setup skill creates
~/.localeven when you chose another install folder. - #1179: the
sendtool saysquestionandtaskmail wakes an idle recipient, but a session started without a channel is not woken; its mail arrives at the next prompt or tool call.
Endpoints and credentials:
- #879: the join file can carry a seed in clear text, with no expiry or single use.
- #867:
MASH_DANGEROUSLY_SKIP_NATS_ENCRYPTIONis honoured when inherited, with no fresh choice. - #880: with several servers, revocation must reach every one; there are no failover rules.
- #912:
endpoint deletehas no drained-delete guard; mail arriving between a drain and a delete is lost. - #872, #767: two machines reissuing one endpoint at once can still interleave. The reissue lock covers one machine only.
- #1081: if
mashctl endpoint deletefails after the key was cancelled, its error is long, internal and writes the address with underscores; run the same command again, as it says (revoking again is safe). - #1055: the everyday commands say "no credentials here" for an endpoint deleted on this machine;
mash doctorsays it was deleted. - #1056:
doctorandstatustrust a local<creds>.deletedfile to say an endpoint was deleted (a same-user risk). - #1064: retiring an endpoint keeps the revoked seed on disk as
.creds.deleted. - #1342: the
mashctl initsetup-file secret check misses some seed prefixes (low). - #1343: the error for a relative
MASH_*directory variable echoes its value (low). - #869: standing risk: anything running as the same OS user can do what that user can (accepted for mash).
Found after the gate:
- #1260:
mashctl initprints the full signing public key on its result line, which runs over 80 columns. It is cosmetic and needs no workaround.
One more thing you may see: after a mash send that timed out, the server's log can show a filtered _MASH.settle.* line. It is expected and harmless.
Some tests are flaky in CI; they do not affect the product. The open ones are listed under the test label.
What is not in this release
Two things are not in this release: a mash inbox line that says when no serve is running (#958), and a count whose cost does not grow with the mailbox's whole history (#1070). Nothing else is promised here.
Links
Full changes: v0.5.7...v0.5.8