Macula · Martha · docs from Martha v0.4.1
@macula-io/martha
Goal: one developer, or a whole team, runs a crew of coding agents that plans, builds, reviews and releases software, with one method and one tool.
This is the installer for Martha: it installs Martha from its public release image, with nothing but Node.
npx -y --ignore-scripts --registry https://git.macula.io/api/packages/macula-pub/npm/ @macula-io/martha@<exact version> [<martha version>]
Always name the installer's exact version: npm never lets a published version be replaced, so that line is what you trust. Leave out the Martha version to install the highest one; name it to install exactly that one.
What it checks, before anything is written
- The Node running it is one Martha runs on.
- The version resolves once, to a digest computed from the manifest's bytes. Never
:latest. - A version lower than the installed one needs
--downgradeand the version named; a second digest for a version you hold is always refused. A version below the floor this machine holds is refused even then (see below). - The one layer matches its digest and size; every tar entry is checked (and the unpacked size, the number of entries and every name capped) before a byte is written.
- The release gets its own read-only directory under
$XDG_DATA_HOME/martha/releases/(default~/.local/share),currentis swapped to it by one rename, and~/.local/bin/marthalinks throughcurrentwhen the release carries amarthacommand. The release'sfloor.jsonis read before the rename, and oncecurrentis swapped this machine's floor becomes the higher of what it held and what the release declares.
The version floor
Each release declares a floor, and this machine keeps its own in $XDG_DATA_HOME/martha/floor (default
~/.local/share). An ordinary install only ever raises it. Below it, the installer places nothing and an installed
martha refuses to start, so an older release's weaker checks never come back to a machine that has passed them.
martha install puts the highest release back.
The only way below the floor is a withdrawal the project published: a later release carrying floor-withdrawal.json,
which names the one version it permits and the floor it lowers from. Name that release with --withdrawal-in:
martha install <older version> --downgrade --withdrawal-in <the release that carries the withdrawal>
It is read from that release's layer, by its digest as any release is; it is never installed itself, and it is honoured only while this machine's floor is the one it lowers from.
Options
martha-install [<version>] [--downgrade] [--digest sha256:<hex>] [--withdrawal-in <version>]
How a release is made
For maintainers: how a release is built and published, and what stops one, is in
the repository's docs, in how-a-release-is-made.md.
License
Apache-2.0
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