Skip to content

Releases

v0.6.2

Choose a tag to compare

@github-actions github-actions released this 03 Dec 07:20
Immutable release. Only release title and notes can be modified.
v0.6.2
8099695

Summary

mash 0.6.2 is a quiet release: an idle endpoint costs its NATS server less, mash status, mash doctor and mashctl are tidier, and setting mash up no longer needs a separate plugin. Nothing changes in your endpoints, keys or mail, and nothing in it needs a change from you. One behaviour is slower on purpose: a new mash serve that replaces a still-running one of the same session waits 10 seconds, not 2, before it reads mail. Every download has a build attestation and the release tag is signed; verify them before you run anything. Known limits are listed under Known issues in the release notes.

Upgrading

There is nothing you must do if you run 0.6.1: no endpoint, key or mail changes. When you next install, install mash and mashctl 0.6.2 from the same release with the README's install steps, update the mash plugin with claude plugin update mash@mash, and restart each Claude Code session, because an open session keeps running the version it started with. The mash-setup plugin is no longer published; setup is now a skill file in the repository, and the plugin you have installed is not updated again, so you can remove it. The full steps are on the compatibility page.

Upgrading in detail

Do these steps, in this order, on each machine that has endpoints and then on the administrator's machine.

  1. Check what you run now: mash doctor and, as administrator, mashctl doctor. Each should end with no problem.
  2. Install mash and mashctl 0.6.2 together from the same release with the README's install steps.
  3. Update the plugin: claude plugin update mash@mash.
  4. Restart each Claude Code session, because an open session keeps running the version it started with.
  5. Check again: mash version says mash v0.6.2, and both doctors end with no problem.

The mash-setup plugin is no longer published. If you installed it, it is not updated again and you can remove it; to set mash up on another machine, follow the README's Get started steps, which use a skill file in the repository.

What changed

Setting mash up. Setup is now a skill file in the repository, not a plugin: clone the repository, start your agent in it and tell it to read and carry out skills/mash-setup/SKILL.md. The setup skill still installs the mash plugin. The local NATS setup script can now run as root, as it does in a container, and works on a machine that has no ss command. The NATS guides now recommend a dedicated NATS account for mash and say what the operator key can do.

Less traffic when idle. An idle endpoint costs its NATS server about 0.5 messages a second each way, down from about 1.3. The cost is a longer wait when a new mash serve replaces a running one of the same session: it reads mail and answers prompts after 10 seconds, not 2, and the earlier one may take up to 5 seconds to notice it was replaced. An endpoint's connection to the server is also named with its full address, such as mash acme.dev.e01, so the server's own tools tell endpoints apart.

Status and doctor. mash status now says an endpoint is online only once its session has registered it, as mash who does. mash status and mash doctor no longer make the NATS server log an authentication error on each call. mash doctor warns when the plugin runs a different mash from the one on your PATH. mash who's reference explains what answers_not_verified counts.

Administering. mashctl endpoint inbox counts refused messages over the newest 1000, so a large mailbox is no longer slow; N+ refused as malformed says when older messages were not counted. mashctl checks an account record before it pushes it and proves each write by the record every server applies. It no longer mistakes another tool's scoped key in a shared account for a leftover mash key.

Fixes inside mash. mashctl no longer risks building a revoke or retire on an older account record when one server is slow: it reads every stored copy that arrives in the window before it chooses the record to build on. An endpoint could briefly accept mail signed by a replaced key as from that endpoint; it now never takes back a newer record for an older one. A change to the endpoint directory is read as one record, not the whole directory. mash is built on nats-server 2.15.3 and the SAP Go SDK 0.1.3.

Verify your download

Every download has a build attestation, and the release tag is signed; verify them before you run anything, with the steps in Verify what you download and Verify a release.

Known issues

There are 5 known issues. Each has an issue; the issue is the place for detail and any workaround.

  • A prompt signed in the second the endpoint restarted, or sent by a sender whose clock runs ahead, can be replayed for up to about 60 seconds after the restart. #1829
  • A same-account endpoint can replay another endpoint's registration, so a stopped endpoint can appear online. #1863
  • The check that keeps an older directory read from replacing a newer one has edge cases left: a restore or recreate of the directory stream, overlapping reads and reused revisions. #2066
  • The proof that a server applied a revoke or retire ties the server's stored-record replies to servers by count, because NATS puts no server ID on them. If a server stays silent and another user of the system account answers in its place, the write can be reported as proved while that server keeps an older record. #2085
  • An endpoint's directory poll can take a new key for a replacement when a record was removed without a marker and the key was learned in the same interval, so the removed record stays trusted until the next full load. #2086

What is not in this release

Security policy, a way to narrow who may mail whom inside an owner, is planned and is not in this release. Nothing else is promised here.

Links

Full changes: v0.6.1...v0.6.2

v0.6.1

Choose a tag to compare

@github-actions github-actions released this 27 Nov 18:42
Immutable release. Only release title and notes can be modified.
v0.6.1
e3a6e8e

Summary

mash 0.6.1 is 0.6.0 plus one fix and a signed release tag. The fix: at a plain shell, mash doctor now warns when mash cannot create its state folder (#1907). Nothing changes in endpoints, keys or mail. If you installed 0.6.0 there is nothing to do, except that 0.6.1 is the version to install from now on.

Upgrading

There is nothing to do if you run 0.6.0: no endpoint, key or mail changes. Install mash and mashctl 0.6.1 from the same release when you next install, with the README's install steps. To check that the release tag is signed, follow Verify a release.

What changed

One doctor warning in mash: at a plain shell, mash doctor now warns when mash cannot create its state folder and no spool setting is visible to the shell (#1907). Nothing else in the programs changed. The release process now signs the release tag; see Verify a release.

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

The known issues are the same as in 0.6.0: two, each with an issue that is the place for detail and any workaround.

  • A prompt signed in the second the endpoint restarted, or sent by a sender whose clock runs ahead, can be replayed for up to about 60 seconds after the restart. #1829
  • A plain shell's mash status reports a state folder mash cannot create only when the spool setting is visible to it. #1907

What is not in this release

Security policy is planned and is not in this release. Nothing else is promised here.

Links

Full changes: v0.6.0...v0.6.1

v0.6.0

Choose a tag to compare

@github-actions github-actions released this 27 Nov 16:35
Immutable release. Only release title and notes can be modified.
debcd2a

Summary

mash 0.6.0 reads the sender of every message the way the SAP Go SDK does, and that is strict: ten kinds of sender header that older mash accepted are now refused, on live prompts and on mail already stored. See Upgrading. If every endpoint on your server runs mash, you will notice little, because mash writes headers the strict reader accepts. Mail that is refused is no longer hidden: mash inbox and mash read show it as a refused row with the reason and never its body, and mash status --detail, mash doctor and mashctl endpoint inbox count it. mash doctor also checks every endpoint when you have several and none is chosen, and says which mash the plugin runs. Security policy is planned and is not part of this release.

Upgrading

This step is one-way: a problem found after upgrading is fixed by the next release; you do not go back to 0.5.10.

On each machine with endpoints, then on the administrator's machine, in this order. The full steps, in order, are on the compatibility page; in short:

  1. Check first: mash version, mash doctor and, as administrator, mashctl doctor. Good is your current release and each doctor ending with no problem and exit code 0.
  2. Install mash and mashctl 0.6.0 from the same release, with the README's install steps. Endpoints, keys and mail stay where they are.
  3. Update both plugins, mash and mash-setup: at a shell claude plugin update mash@mash and claude plugin update mash-setup@mash. The 0.6.0 plugin that runs the 0.6.0 program is 0.6.0-pin.1, published shortly after the release. A plugin update before then installs 0.6.0 but still runs 0.5.10, so update once more when 0.6.0-pin.1 is out.
  4. Restart each Claude Code session. A session that is already open keeps running the version it started with until you restart it.
  5. Check again as in step 1; mash version now names 0.6.0.

Machines at mixed versions send and read each other's mail on one server; a machine left behind keeps working. Mail that a 0.5.10 endpoint sent is read by the 0.6.0 rules when a 0.6.0 endpoint receives it.

If you send mail from something other than mash: a message whose Agent-Sender header has any of the ten shapes below is now refused even when its signature is valid. Mail written by mash is not affected.

What changed

Changed

  • The ten sender headers that are now refused. The header is refused when it is over 2,048 bytes; when its ts is not in UTC (Z); when its name has a control character, is over 64 characters, or has a broken character escape; when a field appears twice; when its sub has a space; when its sig is not 64 bytes of base64url text; when it is empty; or when a message carries two. Older mash read these as verified, forged or absent, or took the first or last value. A header with no Agent-Sender at all is still absent. A few more inputs now read as malformed too: invalid UTF-8, an empty or control-character sub, and an unsigned claim with a bad ts or nonce. A number written 1.0 or 1e0 for v now verifies.
  • A live prompt with a malformed sender header is refused with status 400, malformed Agent-Sender header. Two of the ten shapes used to get 401; they now get 400. A prompt that is replayed by a sender who is not in the directory now gets 403 both times; the replay used to get 401. A sender that sends too many prompts too fast is refused with status 401 and the reason too many recent prompts: try again shortly; it used to be told a signed header was required, although it had signed. mash prompt now starts every error line with error: where it used to start some with mash:, for example error: prompt refused: 400 malformed Agent-Sender header; a script that matches ^mash: on its output will miss these lines.
  • mash doctor checks every endpoint when you have several. It used to stop and ask for --endpoint. Now it checks each installed endpoint and prints one row for each, with the number of problems and warnings and the first problem, then names the command that shows the first endpoint with a problem. It exits 1 if any endpoint has a problem. --json prints each endpoint's report and the totals.
  • The plugin re-checks its downloaded mash once per session, and mash doctor says which mash runs. When a session starts, the plugin confirms its cached copy still matches the release it pins, and replaces a copy that does not (the old file is kept beside it). mash doctor shows a launcher row: ok for the pinned mash, and a warning when the plugin fell back to the mash on your PATH (#1290).
  • mash doctor words the refused-mail row differently. It reads no mail was refused or 4 messages were refused, with each reason on a line below, and the row is ok whatever the count; it used to speak of unverified mail only.
  • mash prompt exits 2 for a wrong command line before it reports a configuration problem.
  • mashctl init no longer creates the unused mash-adoption bucket. A server set up earlier keeps that bucket; nothing reads it, and you can delete it; the compatibility page says how.

Added

  • Mail that mash refuses is now listed, not hidden. A message with a faulty header, or one that could not be verified, shows in mash inbox and mash read as a refused row with its reason, and never with its body. mash status --detail and mash doctor count them, and mashctl endpoint inbox adds a reason to each refused message. A refused message is not counted as waiting.
  • The first start checks stored mail. When a session starts, mash reads the mail already stored for the endpoint once, before it delivers, and lists what it refuses. mash doctor has rows for that check, and says when the check is still running or was skipped because the state folder cannot be written.
  • mashctl endpoint inbox --json shows when each message arrived. Each message has a when field: the time the server stored it, in RFC 3339 and UTC, with a fraction of a second when there is one. The text table is unchanged.

Fixed

  • When mash cannot create its state folder, mash status no longer says ready and mash doctor reports a failed delivery row that names the folder it cannot write. This is when mail waits for the spool, as the plugin sets it up (MASH_SPOOL_FROM_START, or MASH_SPOOL_REQUIRED); otherwise mail stays on the channel and is still delivered. Before, the session got no mail while both said all was well.
  • A plain mash status run outside a session now sees a state folder mash cannot create. It checks the folder without writing to it, and says mail cannot be stored when the spool setting (MASH_SPOOL_FROM_START or MASH_SPOOL_REQUIRED) is set where the shell can see it. See Known issues for when it does not.
  • A restarted endpoint refuses a prompt signed before it started. The message tells the sender to send the prompt again. See Known issues for the case that is still open.

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 2 known issues. Each has an issue; the issue is the place for detail and any workaround.

  • A prompt signed in the second the endpoint restarted, or sent by a sender whose clock runs ahead, can be replayed for up to about 60 seconds after the restart. A prompt signed before a restart is refused otherwise. #1829
  • A plain shell reports a state folder mash cannot create only when the spool setting is visible to it. mash status and mash doctor at a shell report it when MASH_SPOOL_FROM_START (or its config.json key) is set where the shell can see it; a session always reports it. #1907

What is not in this release

Security policy, a way to narrow who may mail whom inside an owner, is planned and is not in this release. Nothing else is promised here.

Links

Full changes: v0.5.10...v0.6.0

v0.5.10

Choose a tag to compare

@github-actions github-actions released this 26 Nov 16:25
Immutable release. Only release title and notes can be modified.
3cff73c

Summary

0.5.10 changes what scripts read: some --json names, exit codes and wording. For people, mash and mashctl
now read alike, and mail signed with a replaced key is no longer labelled verified. A 0.5.5 configuration folder is no longer migrated: upgrade through 0.5.9 first.

Upgrading

One-way. Still on 0.5.5's configuration folder? Upgrade through 0.5.9 first.

  1. Check: mash doctor (and mashctl doctor) end clean; if not, see docs/troubleshooting.md. If more than one endpoint is installed here, mash doctor asks which one: run mash doctor --endpoint <address> for each.
  2. Install mash and mashctl 0.5.10; endpoints, keys and mail stay.
  3. Update the mash and mash-setup plugins; a session asked for mash's version says mash v0.5.10.
  4. Restart each Claude Code session, then check again.
    Session-only users need nothing more. Scripts: see the
    release notes.

Upgrading in detail

What you will notice

For a person at a terminal, both commands now read alike: help starts with a Usage: line, a success is one short line, every error has one form, and mash inbox shows each sender's full address. The setup skill gives you the PATH line for your shell and sends a test note you can tell apart from your own; after a reboot, ask Claude to "start mash's server again". After an endpoint's key is replaced, mail signed with the old key is no longer labelled verified.

One-way: a problem found after upgrading is fixed by the next release; you do not go back to 0.5.9.

If you only use mash from Claude Code sessions, steps 1 to 5 are all you need; the rest is for scripts.

On each machine with endpoints, then on the administrator's machine, in this order:

  1. Check first: mash version, mash doctor and, as administrator, mashctl doctor. Each doctor should end
    with no problem and exit 0. If one does not, fix that first with
    troubleshooting.
  2. Install mash and mashctl 0.5.10 from the same release, with the README's install steps. Endpoints, keys
    and mail stay where they are.
  3. Update both plugins, mash and mash-setup: claude plugin update mash@mash and
    claude plugin update mash-setup@mash. The plugin that runs the 0.5.10 program comes out shortly after the
    release. To know you have it, ask a session "which mash version is this?": it says mash v0.5.10 (<commit>)
    when you do, and mash v0.5.9 until then; update again until it says 0.5.10.
  4. Restart each Claude Code session. A running session keeps its old hooks and mail process until you restart it.
  5. Check again as in step 1; mash version now says mash v0.5.10.

Machines at mixed versions send and read each other's mail on one server, both ways.

If a script reads mash or mashctl output:

  • Exit codes follow one rule: 0 it worked, 1 it failed, 2 the command line was wrong. Five cases move from 2 to
    1: no endpoint installed, a join file that needs your seed, mashctl endpoint delete with no terminal, a refused
    plain http:// URL, and a refused encryption override. An unknown flag is now error: unknown flag --x, exit 2.
  • --json names changed: mashctl status gives ready, endpoint_count and online_count (were ok,
    endpoints, online); mashctl endpoint list and show give online and suspended as booleans in place of
    state; capability is now capabilities in endpoint show, and server is now servers in mashctl init.
    An unset field is null, never "" or missing. mash who keeps capability, because other tools read its JSON
    as a fixed contract.
  • --json is one compact line when piped, and indented only at a terminal. Parse it; do not match its layout.
  • Text changed: success lines (Mail sent (number 7 in acme.demo.alice's inbox)), the inbox column SENT
    (was WHEN), the full sender address in mash inbox, and the ADDRESS column of mashctl endpoint list.
    A script that matches text should match the new lines.

What changed

Added

  • mashctl doctor's keys row now fails when the signing key in config.json is not in the key folder or not listed in the account. Before, a lost or unlisted signing key showed only when mashctl endpoint create was refused (#1288).

Changed

  • Both commands read the same way, and one rule gives the exit code. mash --help and mashctl --help now start with a Usage: line, explain SAP, NATS and creds in a sentence, and end with a pointer to the per-command help; a command's help lists only the options that command takes. mashctl help says <address> everywhere. mash send now says Mail sent (number 7 in acme.demo.alice's inbox), the inbox column that read WHEN reads SENT, and mashctl endpoint create ends with the line to start Claude Code as the new endpoint (it names MASH_CONFIG_DIR when the credentials went to another folder, and MASH_SERVER or MASH_CA when you gave --server or --ca). mash doctor words its refused-mail and delivery rows more plainly, and the hints that pointed at nothing useful are gone. Exit codes: 0 it worked, 1 it failed, 2 the command line was wrong, in both tools. This changes five cases from 2 to 1: no endpoint installed here, a join file that needs your seed, mashctl endpoint delete with no terminal to type the address in, a refused plain http:// URL, and an encryption override that is refused. mashctl --help lists its global options and --json for every verb that has it (#1048). mash hook now exits 0 for a host it does not know (#1100).
  • mashctl endpoint create prints where the credentials file is. The text output has a Credentials: <path> line after Created endpoint, as --json already had in "creds" (#1044).
  • mashctl endpoint delete now says in its confirmation that mail arriving while the delete runs is lost too. The question is otherwise unchanged (#912).
  • --detail blocks and other label: value blocks now pad every label to the longest label in the block plus one space, so values line up and none overflows its column (mash send --detail, mashctl endpoint show and mashctl endpoint reissue --detail) (#1050).
  • mash inbox prints the sender's full address in the FROM column. It no longer shortens a sender in your own owner and group to its name, so two senders cannot print alike (#1045).
  • Both --json outputs show an unset field as null and name a list in the plural. For example mashctl endpoint show always has role, host, description and note and gives capabilities (was capability), mashctl init gives servers (was server) and signing_key_pub as null when no key is set, and mashctl doctor and mash version give "detail": null and "plugin": null in place of ""; mashctl's changing commands and mash join always have dry_run (false on a real run), and mashctl init has would_change, null unless it is a dry run; mash who keeps capability. (#1042)
  • Both --json outputs name one fact one way. mashctl status says ready, endpoint_count and online_count (were ok, endpoints and online), and mashctl endpoint list and show give online and suspended as two booleans in place of the state word. (#1041)
  • --json output is indented on a terminal and one compact line when piped or written to a file, in both mash and mashctl. Error objects follow the same rule (#1043).
  • The send kind's help says when it wakes. blocker, question and task wake an idle session only when it has mash's wake channel on; otherwise the message arrives with its next turn (#1179).
  • mashctl endpoint list now prints the owner and group on every row and an ADDRESS column, and --wide shows ADDRESS in place of NAME (#1040).
  • mashctl now accepts global options before the verb (mashctl --json status), and mash and mashctl both report an unknown flag, before or after the verb, as error: unknown flag --verbose (exit 2, only the flag's name, never a value after =) instead of an unknown command or unknown option; neither it nor an unknown command prints a hint (#1047).
  • No endpoint installed: the error names the setup skill. mash status, mash doctor and the other commands now say how to set mash up. There is no hint line, because no single command fixes a fresh machine.
  • The send tool's description now names its two required arguments. It says address is the recipient and message is the text, so the first call is right (#1209).
  • mash and mashctl now word a success, an unknown command and a missing thing alike. A success line has a capital first letter and no full stop (Mail sent (number 42), Joined as acme.demo.bob), mash says error: unknown command "x" with no hint as mashctl does, and a missing endpoint or message reads error: no endpoint <address> or error: no message N in both (#1046).

Removed

  • A 0.5.5 configuration folder is no longer migrated or named in an error. The mash-migrate-0.5.5.sh script is no longer a release asset, and mash and mashctl no lon...
Read more

v0.5.9

Choose a tag to compare

@github-actions github-actions released this 25 Nov 09:26
Immutable release. Only release title and notes can be modified.
46647c9

Summary

mash 0.5.9 changes four things a script may notice: mash doctor now fails (exit 1) when your Claude Code is older than 2.1.312, mashctl status with no server now exits 1, mashctl init no longer prints the signing key unless you ask, and mashctl init --json adds the signing key's public key as signing_key_pub. See Upgrading. If you never set a signing key and always have a server configured, you will notice little. The rest is smaller: mash doctor checks your Claude Code version, deleting an endpoint no longer leaves its key behind, mash join and mashctl init say what is wrong in plain words, the tools in Claude Code say when an endpoint was deleted, and the installer checks the release against the commit its tag points to. Every download has a build attestation; verify it. The known issues are listed in the release notes.

Upgrading

This step is one-way: a problem found after upgrading is fixed by the next release; you do not go back to 0.5.8.

On each machine with endpoints, then on the administrator's machine, in this order:

  1. Check first: mash version, mash doctor and, as administrator, mashctl doctor. Good is your current release and each doctor ending with no problem and exit code 0. If you set a signing_key, confirm signing.nk and signing.pub are both in its folder.
  2. Install mash and mashctl 0.5.9 from the same release, with the README's install steps. Endpoints, keys and mail stay where they are.
  3. Update both plugins, mash and mash-setup: at a shell claude plugin update mash@mash and claude plugin update mash-setup@mash, or in a session the plugin menu, Installed, the plugin, Update now. No marketplace refresh first. mash-setup carries its skills, so this brings them to 0.5.9. The 0.5.9 plugin that runs the 0.5.9 program is 0.5.9-pin.1, published shortly after the release. A plugin update before then installs 0.5.9 but still runs 0.5.8, so update once more when 0.5.9-pin.1 is out.
  4. Restart each Claude Code session. A running session keeps its old hooks and mail process until you restart it.
  5. A local NATS server set up with the 0.5.8 script needs nothing: the running server is left alone, and mash-setup.yaml and mash-setup.json work with the 0.5.9 script's --start, --stop and --remove. Fetch the 0.5.9 script only when you next want one of those.
  6. Check again as in step 1; mash version now names 0.5.9. With a signing_key, if a signing file is missing, 0.5.9 refuses to create or reissue an endpoint, with an error: line naming the file, rather than sign with the account's own key. If you set signing_key on 0.5.7, run mashctl init --config <file> once more.

Machines at mixed versions send and read each other's mail on one server, both ways; a machine left behind keeps working.

If a script reads exit codes: mash doctor and mashctl doctor now exit 1 when they find a problem, and 0 otherwise; a Claude Code older than 2.1.312 is one, a newer one warns. mashctl status with no server configured prints error: no server is configured and exits 1. mashctl init --json now includes signing_key_pub; 0.5.8 had no signing field there.

What changed

Added

  • mash doctor checks your Claude Code version. A new claude row, after config, runs claude --version and compares it with the versions mash is tested with: 2.1.312 is the minimum, and the tested series is 2.1. A Claude Code above the 2.1 series (2.2 or later) gets a warning, one that cannot be found is skipped, and one older than the minimum is a problem, so mash doctor now exits 1 on it. Scripts that run mash doctor will see exit 1 for an old Claude Code where it exited 0 before.

Changed

  • mashctl endpoint delete run without a terminal no longer suggests --yes. It now says it needs a terminal to type the address. --help still documents --yes (#1161).
  • mashctl endpoint delete names the address and the cause when a later step fails. When the endpoint's key was cancelled but a later step failed, the error is now one line naming the address and the cause in plain words, with the command to run again (#1081).
  • mashctl init no longer prints the signing key by default. When you set signing_key, the result is the one line Initialized mash on <server> for owner <owner>. --detail adds a second line, Signing key: <public key>, and --json has the public key as signing_key_pub.
  • mashctl init warns when the account lists signing keys and the setup file has no signing_key (#1255). The operator may then require one, and init does not read the operator. The warning is one line on stderr, warning: no signing_key in <setup file>; this server may require one; the exit code stays 0 and the setup goes on. It is not printed when signing_key is set or a signing key is already stored.
  • mash join says what is wrong when a join file's user JWT was made for another address. It used to answer only "not a join file this mash can read". It now says <file> names <address> but is for <other address> (or has no name but names <address>), with the mashctl endpoint reissue command that makes a right file, under a new name, as the hint.
  • Deleting an endpoint no longer keeps its key. mashctl endpoint delete still leaves a .deleted marker beside where the creds file was, so mash knows the endpoint was deleted, but the marker now holds the endpoint's JWT and no key (#1064). The creds file itself is removed.
  • A lost or wrong signing key now stops with a short message and the command that fixes it. When the key folder has lost signing.nk or signing.pub, or holds a key that does not match, mashctl prints error: and hint: lines that name the folder and the next step (mashctl init --config <file> to put the key back, mashctl doctor to check what is wrong). The long public keys the old text printed are gone from the message.
  • mashctl init --json now includes the signing key's public key as signing_key_pub, the name config.json already uses. 0.5.8's JSON had no signing field. In the setup file, signing_key still means only the seed file.
  • mashctl status with no server configured now says so (error: no server is configured, with the hint mashctl init --config <file>) and exits 1, where it printed nothing and exited 0. mashctl doctor reads the same: no server is configured (#1097).

Fixed

  • A bad owner is no longer printed in the error when mashctl cannot connect as the administrator. The error said the value is not shown and then showed it. It now leaves the value out, as the other messages of that kind do.
  • mash inbox no longer calls its counts exact when a message read out of order may still be counted as urgent. --detail now says so ("exact: no (mail read out of order may still be counted as urgent)").
  • mashctl init warns at the account limits mash really needs. It assumed one endpoint needs 3 streams and 36 MiB, so it stayed quiet on accounts too small for mash. It now warns below 6 streams or about 109 MiB of disk (the 5 buckets and one inbox), following the caps in config.json, as in the Sizing section of docs/nats-server.md (#1156).
  • mashctl init now refuses an owner longer than 32 characters up front. It used to accept up to 48 in the setup file and then fail when it opened the admin connection, which allows 32. The error now says "up to 32 characters" and names the setup file.
  • mashctl init no longer prints an unknown key from the setup file. A secret put by mistake where a key belongs used to be echoed in the error. The error now says how many keys are not setup keys, does not show them, and lists the setup keys.
  • The installer now checks that the release was built from the commit its tag points to. With gh 2.102.0 or newer, install.sh reads that commit and pins the attestation check to it, so a release attested from another commit is refused. If it cannot read the commit, it installs nothing.
  • mash join now says what is wrong when a folder has a server but no endpoint and the join file brings a certificate authority. It printed the "different ca" line, though the folder has no certificate authority to differ from. It now says "this folder has a server but no endpoint" and hints at joining into another folder, and changes nothing.
  • mash join no longer sets a private certificate authority in a folder that was already set up. A join file that brings a ca is now refused, with the same "different ca" line, where the folder already names servers and has no ca. If a join fails after installing the creds file, undoing it now leaves a creds file you replaced in the meantime and says so.
  • The mash tools now say when an endpoint was deleted. When mashctl endpoint delete removed the endpoint on this machine, the tools in Claude Code failed with a different message from the mash command. They now say what mash send says: the endpoint was deleted and its address cannot be used again.
  • A bad argument keeps its own error after the endpoint is deleted in the session. A send with an invalid id said the endpoint was deleted; it now reports the bad id. Only calls that fail to reach the server say deleted (#1396).
  • mash serve now says an endpoint was deleted when a tool call fails after the delete. Deleting the endpoint with mashctl endpoint delete while a session was running made send time out and inbox and read fail with "context deadline exceeded". They now say the endpoint was deleted and that its addr...
Read more

v0.5.8

Choose a tag to compare

@github-actions github-actions released this 23 Nov 16:41
Immutable release. Only release title and notes can be modified.
8e8fe56

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:

  1. 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 doctor no 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 the keys line 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, run mashctl 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 the keys row, with or without the option, then says hint: revoke it with the tool that issued it (mashctl revokes only its own). mashctl doctor also no longer fails when other tools' connections change while it reads; if mashctl's users keep connecting and leaving it warns, and --audit-users fails if no retry reads the whole list. Tracked at #1300; the decision is ADR 0166.

Changed

  • install.sh names the fix when it refuses a folder. Claude Code's own installer leaves ~/.local and ~/.local/bin writable by their group, and install.sh refuses 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 ~/.local and ~/.local/bin. What it accepts does not change (#1240).
  • mash inbox and 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.sh gave 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.sh no longer splits the two programs. Ctrl-C, a closed terminal or kill while it replaces mash and mashctl now leaves both old or both new. kill -9 cannot be caught and can still split them (#1071).
  • mash-local-nats-setup.sh --start checks 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.sh works 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 the config.json it checked (#1063).
  • mash doctor's refused-mail count is repaired after a kill. If mash serve was 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 inbox may count unverified mail that serve has not yet refused.
  • #990: mash read at a shell can say "refused" for mail serve delivered under --accept-unverified.
  • #960: a signed message replayed within 5 minutes shows as verified a second time (no workaround).
  • #883: Mash-Kind is unsigned.
  • #866: mash read from a shell with no session does not tell the server until the next session starts.
  • #1070: mash inbox gets slower with the span of the mailbox's messages, not the size of the page.
  • #918: mashctl's online (holds the lease) and mash 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 --config refuses a folder set up for a different server.
  • #1341: on macOS, mash-local-nats-setup.sh refuses --dir under /tmp, and its hint chmod go-w /tmp is 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 init prints 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 --remove refuses 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 doctor ends 1 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 status hints mash doctor, and mashctl doctor on a down server hints mashctl status, which only checks. Anyone who follows the hints after a failure meets this, and an agent that follows eve...
Read more

v0.5.7

Choose a tag to compare

@github-actions github-actions released this 23 Nov 03:20
Immutable release. Only release title and notes can be modified.
bc19c06

Summary

mash 0.5.7 fixes one thing: mashctl can now set up mash on a NATS server that requires users to be signed by an account signing key. If your server does not set strict_signing_key_usage, you need do nothing: the one change you may notice is that revoking an endpoint no longer stops at an account signing key that mashctl did not make.

Upgrading

Install mash and mashctl from the same release, as before. Nothing in the setup file, the key store or your endpoints needs to change.

If your NATS operator has strict_signing_key_usage: true, 0.5.6 could not set mash up: mashctl endpoint create made users the server refused, and mash doctor showed the sign-in failing with "the server refused these credentials". To fix it, add one key to your setup file, signing_key, pointing at a 0600 file that holds one of the account's signing seeds, then run mashctl init --config FILE again. init checks that the key is one of the account JWT's signing keys. Then reissue the endpoints you made with 0.5.6 (mashctl endpoint reissue); users already signed with the account's identity key stay refused until you do. Keep account_key as it is: it is still the account's identity seed.

What changed

  • signing_key, an optional setup key. When set, mashctl signs each endpoint's user with that key and names the account as the issuer, which a strict server requires. When it is not set, nothing changes.
  • Revoking an endpoint works on an account with signing keys mashctl did not make. A plain signing key already in the account JWT is kept as it is when endpoint delete or endpoint reissue rewrites it; before, the command refused. The cost: mashctl now signs, with the operator key, an account JWT that holds a plain signing key it did not make, so whoever added that key can still make users for the account and mashctl will not remove it. Scoped keys it did not make are still refused (ADR 0158).
  • The documentation says what a strict server needs (Bring your own NATS server, Operating mash). Issue #1239 is closed.

Known issues

These are the 0.5.6 known issues that are still open, and the ones found after it. 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 inbox may count unverified mail that serve has not yet refused.
  • #990: mash read at a shell can say "refused" for mail serve delivered under --accept-unverified.
  • #960: a signed message replayed within 5 minutes shows as verified a second time (no workaround).
  • #883: Mash-Kind is unsigned.
  • #866: mash read from a shell with no session does not tell the server until the next session starts.
  • #955: mash inbox counts urgent mail among only the newest 200 messages.
  • #1070: mash inbox gets slower with the span of the mailbox's messages, not the size of the page.
  • #1069: mash doctor's refused-mail count can stay one low after serve is killed mid-refusal.
  • #1054: mash inbox and the wake still count older waiting mail from a deleted sender that the list leaves out.
  • #918: mashctl's online (holds the lease) and mash who's online (heartbeat) can disagree for up to 90 seconds.
  • #1039: mash cannot discover endpoints served by a SAP SDK host; the fix is planned on mash's side after 0.5.6.

Setting up and installing:

  • #878: one config folder serves one mesh; a second mesh needs --config-dir.
  • #965: mashctl init --config refuses a folder set up for a different server.
  • #1065: mashctl init prints 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 --remove refuses when a later instance took a stopped folder's recorded port.
  • #1093: mash-local-nats-setup.sh: after a run was killed and left its lock behind, two runs started at the same moment can both take the lock, and both then start, stop or remove the same local server. Someone who runs two of --start, --stop and --remove at once, just after a killed run, meets this; both runs are by the same user. Workaround: run one lifecycle command at a time; after a killed run, run --stop, then --start, one after the other.
  • #1094: mash-local-nats-setup.sh --start says "already running" whenever the recorded server process is alive, without checking that the server answers, so a server that is up but not serving (one stuck while starting, for example) is reported as running. Someone whose local server process is up but not serving, who runs --start to bring it back, meets this. Workaround: run mashctl status; if it is not ok, run the script with --stop; if that says it did not stop, run kill -KILL on the process number in <dir>/server.pid, then --stop, then --start, then mashctl status again (it says ok).
  • #1099: a failing mash doctor ends 1 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 status hints mash doctor, and mashctl doctor on a down server hints mashctl 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 is mash-local-nats-setup.sh --start, which neither command prints.
  • #959: install.sh checks checksums only when gh is missing or too old; the one-line commands run a script before you can read it.
  • #1071: install.sh killed between its two moves leaves mash and mashctl at different versions; run it again.
  • #1153: gh 2.48 to 2.67 has gh attestation but no --source-ref, so install.sh stops 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.
  • #1072: install.sh does not pin the source commit (--source-digest) when it verifies attestations.
  • #1231: on a personal Claude account, --channels plugin:mash@mash alone 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 to allowedChannelPlugins. 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 doctor has no idle-wake (channel) or plugin check.
  • #993: on a host without Claude Code hooks, doctor's delivery row warns for as long as it runs.
  • #1008: a first mash join interrupted partway leaves a folder that neither a retry nor --replace finishes.
  • #1013: a join file of another account on the same servers can join a folder that already holds an endpoint.
  • #1097: mashctl status prints nothing and exits 0 when no server is configured. Someone running it before mashctl init meets this, and a script or skill that reads silence as "ok" is misled. Workaround: run mashctl doctor, whose config row fails: config FAIL no servers in the configuration, then 1 problem. and hint: mashctl init --config <file>, exit 1.
  • #1062: mash join adds a certificate authority to a folder that has servers but no endpoint.
  • #1066: mash join's rollback can remove a replaced creds file.
  • #1063: the migration script can write outside the mash folder if a parent path is replaced.

Signing keys, new in 0.5.7:

  • #1246: if both signing.nk and signing.pub are l...
Read more

v0.5.6

Choose a tag to compare

@github-actions github-actions released this 21 Nov 14:24
Immutable release. Only release title and notes can be modified.
dd696e9

Summary

mash 0.5.6 is the release to start with, and mail that is not proven to come from its sender is now refused by default. Read Upgrading before you install it. mash lets Claude Code sessions send each other mail; each session is an agent with an address of three parts, such as acme.demo.alice. The quick start takes you from nothing to two Claude Code sessions mailing each other. Every download has a build attestation; verify it.

Upgrading

If you have never used mash, there is nothing to move: install mash and mashctl from the same release, then follow the quick start. Each session starts with MASH_ENDPOINT set to its address, and mail that is not verified is refused; set MASH_ACCEPT_UNVERIFIED=1 if you depend on receiving it. If you used 0.5.0, start a new deployment: 0.5.6 does not read its state. The steps in full, and the table of old and new names, are in the release notes.

Why this release

Before this release we looked honestly at what mash felt like to use. Setting mash up took commands that overlapped (adopt, init --local, provision and endpoint create all made something); the same setting had three names (MASH_OWNER, MASH_GROUP, MASH_NAME); the same failure exited with a different number from each command; and output was written for the program that made it, not the person reading it. None of that was a deliberate design. It grew. 0.5.6 gives every command one job and one clear way to say it, written down in a specification that the commands are now built from (ADR 0147). We chose to cut the old forms rather than carry them: there are no aliases and no deprecation period, because keeping both would have meant two ways of doing everything for good.

Refusing unverified mail is the other change of heart. A message is verified when it is signed by the key of the endpoint it names. Until now mash delivered everything and labelled it. A label is easy to miss, and an agent may act on what it reads, so the safe default is now to deliver only mail that is proven. You can turn the old behaviour back on (see Upgrading).

0.5.0 reads nothing 0.5.6 makes; if you are still on 0.5.0, start a fresh deployment.

Upgrading in detail

If you have never used mash: nothing to move. Install mash and mashctl from the same release (the install guide), start each session with MASH_ENDPOINT set, and follow the quick start.

If you used 0.5.0: 0.5.0 state is not read, and 0.5.6 does not convert it. Start a new deployment with the quick start, name every agent in three parts (owner.group.name; there is no default group), and create each agent again. Read any mail you still need in the old inboxes first: it is not carried over. Do not install 0.5.6 over a running 0.5.0 endpoint, including with go install ...@latest.

What changed, old to new

Every removed or renamed command, setting and form. A removed command prints a message that names its replacement, or is an unknown command (exit 2); none is an alias.

Old New
MASH_OWNER, MASH_GROUP, MASH_NAME MASH_ENDPOINT, the full address owner.group.name (also --endpoint, and endpoint in config.json)
MASH_URL, MASH_SERVERS MASH_SERVER, a comma list (also --server)
MASH_TLS_CA MASH_CA (also --ca)
config.json keys url, tls_ca servers (a list), ca
config.json keys owner, group, name endpoint (the full address). owner remains only as a mashctl setting
MASH_INSECURE_PLAINTEXT, insecure_plaintext MASH_DANGEROUSLY_SKIP_NATS_ENCRYPTION=1: environment only, no flag and no config key, with a warning on stderr from every command while it is set
mashctl adopt, mashctl init --local, mashctl init --start mashctl init --config FILE (the setup file; mash-local-nats-setup.sh writes one for a server on this machine)
mashctl provision, deprovision, list mashctl endpoint create, endpoint delete, endpoint list
mashctl add, reissue, retire (top level) mashctl endpoint create, endpoint reissue, endpoint delete; each prints the replacement
mashctl set-meta, label, unlabel mashctl endpoint set, endpoint unset
mashctl suspend, resume, permissions (top level), suspended mashctl endpoint suspend, endpoint resume, endpoint permissions; endpoint show says whether an endpoint is suspended
mashctl audit, issued list, issued check mashctl doctor; one endpoint's records are in mashctl endpoint show
mashctl inbox inspect mashctl endpoint inbox
mash credential create mash join FILE.join (--key bob.seed when the endpoint made its own key)
mash admin (11 commands) mashctl (they need an administrator's credentials)
mash plugin export the plugin's marketplace: claude plugin marketplace add bogworks/mash, then claude plugin install mash@mash
acme_demo_bob and acme/demo/bob address forms acme.demo.bob only, in mash send, mash prompt, mash who and mashctl endpoint ...
Exit codes: failures exited 2, 3 or 6, depending on the command 0 (it worked), 1 (it failed) and 2 (the command line was wrong) only
--verbose, -v --detail (an unknown option, exit 2, if you still pass the old one)
mash who --match, --name, --owner, --cap, --long, --names, --format a prefix (mash who acme.demo), --role, --capability, --label, --wide, --json
mash send TO TEXT... with several words, MCP send parameters to, text, in_reply_to, via one quoted message (or --file, or standard input); address, message, reply_to, relay
MCP read argument seq number
The old mash status rows (config, creds, connection, channel) mash status (one line) and mash doctor (one row per check)
Unverified mail delivered with a label refused by default; --accept-unverified or MASH_ACCEPT_UNVERIFIED=1 restores it
mash serve run by hand in a terminal refused: mash serve is started by an agent host, not by hand (exit 2)

What changed, in detail

Security. This release refuses unverified mail by default (see Added and Upgrading). It also makes turning encryption off a deliberate, noisy act: one environment variable with a long name, no flag, no config key, and a warning on every command while it is set. Every download has a build attestation; verify it, as the install guide describes (docs/install.md).

Added

  • mash join FILE installs an endpoint on this machine from the join file whoever runs your mesh gave you. It copies the server addresses and the certificate authority's certificate into the configuration folder, writes the endpoint's creds file there (mode 0600), and prints Joined as acme.demo.bob. (--detail adds the servers: and creds: lines). When the endpoint made its own key, --key bob.seed supplies it. An endpoint already installed is refused unless you pass --replace; a join file for another mesh is refused, because one configuration folder serves one mesh (--config-dir names another). --dry-run writes nothing. It never prints a seed.
  • mash doctor (and an MCP doctor tool) checks everything mail depends on: config, creds, server, sign-in and refused mail, one row each, then a count and, for the first problem with a fix, a hint. It exits 1 when it finds a problem; --strict makes a warning exit 1 too. Its delivery row also reports hooks: a warning until they have run in the session, a failure when they are not delivering mail. mashctl doctor does the same for the server and its records.
  • mash status --detail says whether mail will reach the session: whether it holds the endpoint, whether its hooks ran, and whether storage works. With --json it adds a reason_code, a fixed word beside the reason, and the session.
  • --detail on every command of mash and mashctl: the usual answer plus label: value lines, or with --json a fuller object that contains the usual one. A command with nothing more to say prints the same.
  • install.sh and mash-local-nats-setup.sh, with the release. install.sh installs mash and mashctl from one release, checks each against the release's checksums (and the attestation too when gh is installed), asks nothing and needs no sudo (ADR 0150). The local setup script makes a NATS server only this machine can reach and writes the file mashctl init --config reads.
  • A mash-setup plugin with a setup skill and a day-2 skill: install it from the marketplace first (claude plugin install mash-setup@mash), then ask your agent to set mash up. It walks you through installing mash and a local NATS server.
  • mash who filters by what an endpoint does: --role TEXT, --capability NAME and --label NAME[=VALUE], the last two repeatable (all must match); the MCP tool takes the same.
  • A wake for a backlog. mash serve wakes the session when more than 15 messages are waiting, or the oldest has waited longer than an hour, at most once every 10 minutes and not in the first 10 minutes after it starts. Change the limits with MASH_WAKE_COUNT / wake_count and MASH_WAKE_AGE / wake_age (for example 30m or 2d), or `m...
Read more

v0.5.5

Choose a tag to compare

@github-actions github-actions released this 18 Nov 20:44
Immutable release. Only release title and notes can be modified.
e389eaf

Superseded. The 0.5.5 command-line output is not ready for people to use. Use 0.5.6 when it is released; do not install 0.5.5.

Summary

mash 0.5.5 changes how every agent is named, and it does not work with anything made by 0.5.0. Read Upgrading before you
install it.
An agent's address is now three parts, owner, group and instance (for example alice.dev.design), and every
agent must name its group. Credentials files, directory records, inboxes and addresses from 0.5.0 are not read or converted,
and mail still unread in old inboxes when you switch is not carried over. Start with a fresh deployment. If you have never
used mash, this is the release to start with: the quick start below takes you from nothing to two Claude Code sessions
that mail each other. Every download has a build attestation; verify it.

mash 0.5.5 also requires TLS on every connection, loopback included. Every mash and mashctl connection now needs a tls:// (or wss://) URL, and a plain nats:// URL is refused unless you set insecure_plaintext (MASH_INSECURE_PLAINTEXT=1). A 0.5.x deployment that connects in plain text sees that refusal on its first connection after the upgrade. mashctl init --local makes its own certificates, so the quick start below needs no override.

0.5.0 remains the version running deployments should keep using until they are moved. 0.5.5 reads no 0.5.0 state, so do not install it
over a running endpoint, including by go install ...@latest.

Why a hard cut

0.5.0 had two address forms: agents made with mashctl add carried a fixed cc token and had no group, and their
credentials were made on the machine that runs mashctl, so a private key had to be copied by hand to any other machine.
Keeping both forms working would have meant carrying the old one around indefinitely, for no one's benefit, so 0.5.5 has
one form and nothing else. That also means the old way of doing things is gone rather than deprecated.

Upgrading

If you have never used mash: nothing to move. Follow the quick start.

If you used 0.5.0: the order matters, and none of this is automatic.

  1. Start a new deployment. Run mashctl init --local for a local server, or set up a new account on your own servers.
    Leave the old one untouched for as long as you want a way back to 0.5.0.
  2. Choose a name for every agent in three parts. Write each as owner/group/instance, for example alice/dev/design.
    Each part is lower-case letters, digits and hyphens, starts with a letter, is at most 32 characters, with no -- and no
    trailing hyphen. There is no default group: a command or session without one is refused, and nothing guesses it. A group
    cannot be changed later. To move an agent to another group, create a new one and delete the old one.
  3. Create each agent again with the quick start below. Old credentials files, directory records and inboxes are not
    read.
  4. Read mail you still need first. Mail unread in an old inbox when you switch is not carried over.
  5. Update scripts and settings. mashctl add, the old reissue and retire are gone and print a message that names
    the replacement (mashctl endpoint create, endpoint reissue, endpoint delete). unzone is gone too and is now an
    unknown command (exit 2). agent_token and MASH_AGENT_TOKEN are
    gone. Start each session with MASH_GROUP (and MASH_OWNER and MASH_NAME if they are not in your config).
  6. Check where mash looks for its config. If XDG_CONFIG_HOME is set, mash now reads $XDG_CONFIG_HOME/mash only; it no
    longer falls back to ~/.config/mash. To keep using that directory, set MASH_CONFIG_DIR=$HOME/.config/mash (an
    absolute path), or move the files. (Checked against the code on main: MASH_CONFIG_DIR, then an absolute
    XDG_CONFIG_HOME/mash, then ~/.config/mash; a relative XDG_CONFIG_HOME is ignored.)
  7. Update anything that reads mash output. The audit report (mashctl audit --json) is version 2 with new field names,
    and --compare refuses a version 1 file. mash who --json now reports name as the flat key owner_group_instance
    and adds identity (owner.group.instance), owner, group, instance and agent. Spool folders and the owner shown
    in hook and spool messages use the new address. (Checked against the code on main: audit records carry address, owner, group, instance; who --json carries identity, owner, group, instance, agent.)
  8. Use TLS on every connection, or set the override knowingly. A plain nats:// URL (or one with no scheme, or ws://)
    is refused, to any host and loopback included, with a message that names the setting and the fix, unless
    insecure_plaintext (MASH_INSECURE_PLAINTEXT=1) is set; with it set, mash connects and prints a warning on standard error
    (and mash status shows it). Do not set it on a network you do not control: plain text lets anyone on the network read
    mail and obtain signatures.
  9. mashctl init --local now makes a local certificate authority and certificates, and runs its server with TLS only; the
    configuration it writes has the tls:// URL and tls_ca, so nothing else is needed. If you run your own server, give it
    TLS and set tls_ca (or MASH_TLS_CA) to the PEM file of the authority that signed its certificate, or set the override.
  10. Remove insecure_loopback and require_tls from your settings. insecure_loopback (MASH_INSECURE_LOOPBACK) and
    require_tls (MASH_REQUIRE_TLS) are gone and are not read: insecure_plaintext replaces both
    (ADR 0146,
    which replaces the default and the loopback allowance of ADR 0108).

Moving your existing agents is a one-time job. mash does not do it: it is done outside mash, once, by whoever runs the
deployment, onto a fresh deployment, with a written map from each old name to its owner, group and instance.

Quick start: your first agent

On one machine, with mash, mashctl and nats-server installed:

mashctl init --local --owner alice --start
mash key create --out design.seed
mashctl endpoint create alice/dev/design --public-key design.pub
mash credential create --seed design.seed --jwt alice.dev.design.jwt

Install the plugin, then start the Claude Code session with MASH_OWNER=alice MASH_GROUP=dev MASH_NAME=design. Repeat for a
second agent (review) and the two sessions can mail each other.

Why it works this way: each agent makes its own key on its own machine (mash key create), and only the public key goes to
mashctl. mashctl endpoint create signs it and writes a JWT file; mash credential create joins the seed and the JWT into
the credentials file, on the agent's machine. The private key is never on the mashctl machine and no secret travels. An
agent on another machine uses the same four steps; only the public key file and the JWT file move. If an agent runs on the
same machine as mashctl, --make-key makes the key there and writes the credentials file, and is only for that case.

mashctl endpoint reissue gives an agent a new key and revokes the old one, and mashctl endpoint delete removes it. Either
way the session using the old key is disconnected and cannot reconnect. endpoint list and endpoint show change nothing.
A deleted address is burned: it cannot be created again. An agent's credentials reach only the agents of its own owner.

One departure from the Synadia Agent Protocol

The first subject slot now carries the owner, not the name of the harness. The protocol says that slot SHOULD name the
harness; mash does not follow it. Finding mash agents with a wildcard on the harness slot therefore does not work. Finding
them by the service name does, and the service metadata still says claude-code and adds owner, group and instance.

Security

This release closes replies across owners: an endpoint of another owner can no longer answer, forge or replay a reply into your
endpoints. Inside one owner, endpoints can still answer each other's reply subjects; that is the endpoint model's "wide open under
the owner" until the policy release. An endpoint's reply inbox now lives under its owner (_INBOX.<owner>.<flat key>), and it can
publish replies only to its own owner's inboxes. A credential made before this release is refused by this release's mash: reissue
it (the hard cut already means starting fresh).

What was tested, and what was not

  • Tested on one machine, with one local server, from a fresh home, over TLS with no override: the quick start's steps, mail
    both ways, reissue and delete, and every refusal listed here. What the test did, exactly: it built mash and mashctl from
    the commit and ran the steps of the quick start with those binaries; it ran each session through the plugin's own launcher
    (plugin/scripts/mash serve) and delivered mail through the plugin's hook commands, with the test itself playing the roles
    of Claude Code's MCP client and hook caller. No Claude Code session ran, and the install steps of the README (a downloaded
    binary, go install) were not part of it: the maintainer's own walk through the README, from a clean home to two mailing Claude Code
    sessions (JRN-001), is done after the release; AT-001, the automated run, stands in for it until then. Run records are in the repository (docs/evidence/2026-11-17-0-5-5-live-runs/):
    the quick start's steps, mail, the permission set and its isolation, revocation and every refusal passed. All of them ran on the code commit e26332c (AT-001 to AT-003 and AT-005 by the core worker; AT-004, the command contract, by the CLI team), and the records name it.
  • Across separate nodes: three NATS servers in one cluster over TLS, in three isolated containers the test...
Read more

v0.5.0

Choose a tag to compare

@github-actions github-actions released this 16 Nov 13:53
Immutable release. Only release title and notes can be modified.
e9fe51e

Summary

This is a breaking release. If you used zones, read Upgrading before you install it.

mash v0.5.0 does two things: it retires zones, and it tightens security in the parts that remain.

Zones are gone. Zones were our first attempt at letting you control which agents may mail which other agents. In practice they didn't deliver what we wanted from a security policy: they were hard to reason about, they changed the shape of every mail address, and they didn't give a clean answer to "who is allowed to talk to whom". Rather than keep patching them, we're retiring them. A simpler, clearer way to say who can reach whom is planned for 0.6.0.

Until then the rule is plain: an agent's address is its fence. Each agent has one inbox, and every agent under the same owner can reach it. All mail uses the same five-part address again (agents.mail.<agent>.<owner>.<name>), with no zone in the middle.

Also in this release:

  • A record of every credential. mashctl now records each credential it hands out. mashctl issued check compares that record with who is actually connected and flags anything mash didn't issue. Revoking a credential is also safer: mash refuses when the record shows the revocation wouldn't actually take effect.

  • Stricter settings you can turn on:

    • refuse unencrypted connections to remote servers (MASH_REQUIRE_TLS);
    • never fall back to a less reliable delivery path (MASH_SPOOL_REQUIRED);
    • have the Claude Code plugin refuse a mash binary it can't verify (MASH_PLUGIN_REQUIRE_VERIFIED).

    All of them are off by default.

  • A look inside an inbox. mashctl inbox inspect <agent> shows the mail stored for an agent and whether it was delivered, without changing anything.

  • An easier start. The README now opens with a quick start for one person on one machine, with no account needed.

  • Fixes:

    • --help after any command now prints help and does nothing else. Before, mashctl init --help ran init.
    • mashctl init --local respects XDG_CONFIG_HOME.
    • Long or odd prompts are handled safely.

Every download comes with a GitHub build attestation; verify it before you run the binary.

Upgrading

If you never used zones, upgrading is two steps:

  1. Install v0.5.0 (the mash binary and the plugin).
  2. Run mash admin init once. It creates the new credential record and hardens a setting on the server.

Also note: mashctl add and mashctl reissue now need the system account's credentials, so that they can check no zone policy is in force. Pass --sys-creds FILE, set MASH_SYS_CREDS, or keep a sys.creds file next to your admin credentials.

If you used zones, the order matters:

  1. If you applied a zone policy, stay on v0.4.0 for now. There's no automatic way out of an applied zone policy, and mashctl unzone refuses to touch it. Run mashctl audit to see which case you're in.
  2. Otherwise, remove zones before you upgrade the agents:
    • Upgrade only mashctl first.
    • Run mashctl unzone <agent> for each zoned agent. It moves the agent back to the plain address and keeps its stored mail. It is safe to run twice.
    • Give each agent a fresh credential: run mashctl reissue <agent> where its credentials file lives. Add --widen if it refuses because the agent's old permissions were narrower.
    • Then upgrade the agents. Until every zoned record is converted, mash serve refuses to start.
  3. Update your scripts.
  4. Run mash admin init once.

Plugin pinning. The plugin in this release isn't yet pinned to a specific mash binary. A follow-up plugin release, 0.5.0-pin.1, pins it to v0.5.0. Turn on MASH_PLUGIN_REQUIRE_VERIFIED only after you've updated to that plugin.

Details

Added

  • The credential record. mashctl records every credential it issues (from add, reissue and init) in a bucket that only the admin can write.
    • mashctl issued list shows the record.
    • mashctl issued check reports connected credentials that mash didn't issue, or that it has revoked.
    • ADR 0101 explains the design.
  • MASH_REQUIRE_TLS. Refuses plain-text connections to any host that isn't your own machine. mash status now warns about a plain-text remote address in every form (ADR 0108).
  • MASH_SPOOL_REQUIRED. If mail can't be handed to the session safely, it stays in the inbox and you're told, instead of being delivered another way (ADR 0107).
  • MASH_PLUGIN_REQUIRE_VERIFIED. The plugin refuses an unpinned plugin or an unverified binary, instead of falling back to whatever mash is on your PATH (ADR 0096).
  • mashctl inbox inspect <agent>. Shows an agent's stored mail and its delivery state, read-only. Add --json for scripts.
  • A lease bucket warning. An agent warns at startup, and mash status shows a line, when a server bucket still needs hardening. mash admin init fixes it.

Changed

  • Zones are removed (ADR 0091):
    • every mail address has five parts;
    • set-zone, --zone and the zone policy file and its commands are gone;
    • mash who no longer shows a zone.
  • Agents are declared with mashctl add. It creates the agent's record, inbox and credential in one step. reissue, retire, label and unlabel all work from that record.
  • Bulk changes ask first. mashctl reissue --all and --changed list what they would change and only act with --yes. A reissue never quietly widens an agent's permissions.
  • A clearer refusal. When a send is refused, the message now says the credential may be out of date and suggests asking the admin to check it.
  • The README starts with a quick start for one machine. nats-server is listed as a prerequisite.

Fixed

  • --help after any command (mash or mashctl) prints that command's help and does nothing else. Text later on the line, such as a message to mash send, is never mistaken for --help.
  • Revocations that wouldn't take effect. deprovision, retire and a rotating reissue refuse when the credential record shows that a credential was issued after the revocation time. NATS would otherwise keep honouring that credential. If the record can't be read, they change nothing (ADR 0115).
  • Prompts and mash who.
    • Control characters in a live prompt and in mash who output are shown as visible escapes.
    • A prompt over 32 KB is refused with a clear error instead of being cut off.
  • mashctl init --local respects XDG_CONFIG_HOME on a first run and prints where it will write.
  • System credentials. mashctl refuses system credentials that other users can read.
  • The upgrade check won't start an agent if it can't read a record that might still be zoned.

Full changes: v0.4.0...v0.5.0