Macula · Martha · docs from Martha v0.4.1
How a release is made
This exists so a maintainer can follow how a Martha release is built and published, and what stops one. Someone who only wants to install Martha needs none of it: that is the installer's README.
The steps
A release is a pushed tag, built by the forge's CI (macula-io/martha#114; DECIDED 2026-11-24 "yes simplify it": no
host00 key signer and no installer key check). Both packages are public under macula-pub and install with no token
(DECIDED 2026-11-24 "Public in macula-pub (Recommended)"); the source repository stays private.
installer-v<version>(installer.yml) tests the installer and publishes it to the forge's npm registry.v<version>(release.yml) tests the tagged tree, packs it with the pin of that installer, and pushes the one-layer image FROM scratch togit.macula.io/macula-pub/martha. A version is pushed once.dry-run-v<version>anddry-run-installer-v<version>run the same steps and push or publish nothing.
The version floor
Once a machine runs a release that carries the floor, no script, page or typed command can put it back on an older release that also carries the floor, unless the owner has published a withdrawal for that exact version (martha#21, R9 of #84). So an older release's weaker gates are never placed on a machine that has already passed them.
| Floor | Where | Who sets it |
|---|---|---|
| the project's | floor.txt at the root, one X.Y.Z line |
a reviewed commit |
| the one a release declares | floor.json, { "floor": "X.Y.Z" }, which the packer generates into the layer from floor.txt |
the release tag, whose CI packs it into the layer |
| this machine's | floor beside releases/, in $XDG_DATA_HOME/martha/ (default ~/.local/share) |
the installer, after each install |
- Raising it is an ordinary release with a reviewed edit to
floor.txt. The first value,0.2.0, is the first release that carries the floor, so the releases nothing of ours checks are exactly the ones before it. - Installing refuses a version below this machine's floor, even with
--downgrade, and a release whosefloor.jsonis missing, malformed or above the release itself. Aftercurrentis swapped, the machine's floor becomes the higher of what it held and what the release declares: an ordinary install never lowers it. - Launching a placed release below this machine's floor is refused for every act but
martha --versionandmartha install, which puts the highest release back. The launcher finds the floor from its own real path, beside thereleases/it sits in, never from the environment. - Lowering it is the owner's act alone: a release that carries a tracked
floor-withdrawal.json,{ "version": "X.Y.Z", "from": "X.Y.Z" }. The publish is what makes it the owner's: that release passes the same tests and version guard as any release, and only the release workflow can push it, so there is no new key or workflow. A user names it with--withdrawal-in <that release>. The installer checks and unpacks it, never installs it, and honours it only for exactlyversion, and only while this machine's floor is exactlyfrom. On success the machine's floor becomesversion, written aftercurrentswapped, so a failed install leaves it where it was. - Ending a withdrawal takes a release whose
floor.txtis above itsfrom. Until then the same file lowers the floor again on a machine that went back up tofrom: the owner's statement still stands. Deletefloor-withdrawal.jsonin that release, too: the packer refuses one whosefromis belowfloor.txt, so a dead withdrawal never ships.
The installer checks the floor from its version 1.1.0 on, and every release that carries the floor pins one at
or above it. The order for the first such release is installer-v1.1.0, then v0.2.0. From the commit that added floor.txt on, no
0.1.x release can be packed.
What it stops: T19, a command, script or page naming an older release that carries the floor; and T20, a forged or still-live withdrawal used where the owner did not mean it. What it does not:
- R10. The bootstrap line names the installer version itself. An installer from before the floor has no floor check, and will place a release from before the floor, whose launcher has none either. Nothing of ours runs on that path, and npm cannot withdraw a version after 72 hours, so it stays open for good. The next install by a floor-aware installer, and every later launch of a release that carries the floor, stops it.
- R11. The machine's floor is a file its user owns. Whoever can write it can move it, as they can move
current(R7). A withdrawal also ends per machine: one that never installed the release that raised the floor past itsfromstill honours it. - R12. A launcher running from a checkout, not from a placed release, has no machine floor: running a checkout is running your own code.
What stops a publish
The installer's tag runs npm audit --omit=dev before it publishes, and the release has no runtime dependency
(the packer refuses one). advisories.yml runs on every pull request and every push to main, which is where a tag is
cut: an advisory is fixed or waived by a dated, named, expiring row in .github/advisories-waivers.txt; there is no
baseline.
Martha's docs, from release v0.4.1: Getting started: a crew of two on your own project · @macula-io/martha · Martha · The agent control loop · claw-code: what it is, where it comes from, what Martha can learn · The host contract and the ledger · How a release is made · Nothing private gets in · The port map, in summary · The publish gate · The crew's declaration