Repository navigation
v0.1.5
mnema 0.1.5
mnema keeps the decisions behind an agent's work as a signed, append-only record in the repository, hands them to the agent at the start of a session and at each edit they govern, and lets anyone check that nothing in the record was changed.
Highlights
- A new
mnema init. It asks on a screen: it finds the agent hosts you already use and checks them, lets you uncheck aCLAUDE.mdorGEMINI.mdof yours, asks whether an agent may accept the decisions you choose, and shows the whole plan before it writes a single file. Every answer is also a flag, so an agent or a CI job can run it too. - The record reaches git through a pull request.
mnema record commitcuts the record at a signed checkpoint onto a branch, verifies it, and prints the push and the pull request command; it touches neither your working tree nor your index, and pushes nothing.status,doctorand the end of a session now say how many events no commit holds yet. - Pulling a record that only grows.
mnema record pullpulls over events not yet committed. Set up withmnema doctor --fix merge-driver(or by the newinit), a plaingit pullcarries them too, and mnema says when a pull left events aside instead of letting them disappear into a stash. - An agent accepts what you chose, and only that. When you dictate a decision or pick an option an agent offered, it records it and accepts it at once, quoting your answer; what it concludes alone waits for you (
mnema decision review).mnema switch off agent-acceptsleaves every acceptance to a person. - The format can grow. Both readers read past a line of a kind they do not know (checking its hash, chain, signature and checkpoint, and applying nothing), and every surface says when a newer mnema wrote lines this one does not read.
- A tail moves between records only by its owner's signed relink (
mnema tail relink), which both readers check, and which is refused when the record that would result would not verify. - The stack index ships in the package, so the VS Code extension's Add from Index works in any repository.
- The server is listed in the official MCP Registry as
io.github.felipesauer/mnema.
Measured
We ran 49 Claude Code sessions (Sonnet 5.5) under a published pre-registration (measurements/paid-block-2026-11):
- A rule written only in
AGENTS.mdwas followed in 10 of 10 sessions, as inCLAUDE.md(10 of 10) and through mnema (10 of 10). - Through the plugin, the agent linked 11 of 11 decisions it recorded to the code they govern; through the command line alone, 0 of 12. With the plugin it also told the whole story of a superseded decision (what replaced what, and why).
These are counts from one model and a handful of tasks, not rates; the page says what they do and do not show.
Upgrade
npm install -g @mnema/code@0.1.5
The full list of changes is in the CHANGELOG, and what 0.1.6 is expected to bring is here.
Added
-
A plain
git pullcarries the record's uncommitted events, in a clone set up for it (ADR-181, which amends
ADR-163).mnema doctor --fix merge-drivernow writes four settings into the clone's.git/config, the driver
first and the autoStash ones after it: the driver's name, the tails' merge driver,merge.autoStashand
rebase.autoStash(an autoStash is never written without a driver that can run here, since alone it leaves conflict
markers inside signed tails; this is ordered, not a rollback). A driver of mnema's that cannot run (its paths gone, or
the earlier form with nomnemaon the PATH) is said bymnema doctorandmnema statuswhile an autoStash is on, and
the fix replaces it. With themgit pull,
git pull --no-rebase,git pull --rebaseand a merge or a rebase beside an unrelated local commit succeed over
local events that are the start of the branch's or longer than it, and the record verifies afterwards. The
autostash applies to every file of the clone, and the fix, the doctor and the question say so; a setting of the same
name you set otherwise (merge.autoStash=false) is left as it is and nothing is written. The driver is now named by
the absolute paths of the installation that wrote it (it ranmnemabyPATHbefore).mnema initasks the
question in a repository with a remote (default yes, shown in the plan as foursetrows;--git-pull yes|no
answers it,--yestakes the default,--all-hostsand a founding with nobody to ask write nothing without
--git-pull yes). One case git does not stop on is a fork: the pull exits 0 and the local side stays only in the
stash.mnema status("Kept aside by a pull") andmnema doctornow say so, in one sentence, whenever an autostash
holds files of a tail or a tail file is in conflict in the index. -
A page says what 0.1.6 is expected to bring (ADR-152).
docs/what-0-1-6-is-expected-to-bring.md, on the site and in the README's
Docs list, groups the plans by theme (using mnema alone in a repository whose team has not adopted it, the guided backup, the grades of
the relations and the guided first recording, the record page, what moved from 0.1.5, and the next measurement block), each line
worded as expected and linked to the accepted decision that holds it (ADR-120, ADR-131, ADR-140, ADR-141, ADR-144, ADR-160, ADR-178,
ADR-179). They are plans and not promises, and no date is given. A guard holds that every decision it cites is in the committed
record, public and accepted, that a line carries a link, and that the page says neither "will" nor a date. -
Every surface says where a newer mnema wrote (ADR-140). A line of a kind this mnema does not know is read past and
left out of every reading, which until now no surface said: a line that moved a decision was invisible.mnema status
prints one line when any exists (andstatus --jsoncarriesnewerLines, the count and the kinds),mnema brief
prints it on the error stream and the copy a hook hands a session counts it among what has to fit,mnema show <id>
andread_recordsay it for the record a line names as its subject,bootstrapcarries it beside its payload, and
mnema doctorlists it. It counts the lines, names at most three kinds, says this binary applies none of them, and
says to update mnema and not to guess what they say; it does not name the mnema that wrote them, because nothing in the
record says which. Nothing is said, and no output changes, over a record no newer mnema wrote into. The projection
cache keeps the lines it read past beside its frontier, so saying it costs no second reading. -
mnema initasks on a screen, and shows everything it will write before it writes any of it (ADR-174, ADR-173).
At a terminal it prints what it found around the folder (the repository and its branch, the files and folders of the
agent hosts in use, the decision files the record has never read, a declared formatter), then asks which agent hosts
should read the mnema instructions on the screen the bare name draws (arrows, Space,a, Enter, Esc; the hosts found
are checked, every host where none was; each host shows the files it gets and whether each is new or yours), whether an
agent may accept what you choose, and shows the plan once: what it creates, adds to and records, in the repository and
on this machine only, with one confirmation. Nothing is written before it, and Esc, Ctrl-C, Ctrl-D andLeavefound
nothing and exit 0. The summary keeps the whole identity on a line of its own, puts the backup key first among the next
steps, and gives the install commands of the hosts chosen. ACLAUDE.md,.claude/CLAUDE.mdorGEMINI.mdthat
exists is a mark of its own, as it is inmnema instructionsat a terminal: left unchecked, it is not touched (with
nobody to ask, it is written, as it was). The new flags:--hosts <list>(claude,cursor,vscode,codex, or
all,detected,none),--yes(no question, no confirmation),--dry-run(prints the plan and writes nothing),
--accepts yes|noand--which;--all-hostsstays and asks nothing at all. The answer to the question about agents
accepting is recorded in the public tree as a decision of the person's, accepted by them (anoalso records the switch
that refuses an agent'saccept); an agent that gives it with--whichrecords its own proposal, which waits for the
person;--yesnever answers it. With no terminal, and with none of these flags, the lines are the onesinithas
always printed. A person's file left unchecked stays left out (ADR-177):mnema instructions --check,mnema doctorandmnema instructionswithout a terminal say so in one line and no longer ask for the block in it. A file the write would refuse (read-only, a directory in its place, no permission on its folder) is shown by the plan asleavewith the reason, and whatinitsays of it namesmnema instructions --hosts <host>, the form that adds the block to that file once the permission is fixed and writes no other file;mnema instructionstakes--hostsasinitdoes. The question by number (HOST_FILES_NOT_UNDERSTOOD) is gone: an answer cannot be off the list now. -
mnema status,mnema doctorand the end of a session say the events of the record that no git commit holds yet
(ADR-104). Measured in this repository, an event waited 10.8 h on average for the commit that carries it and 78
were waiting at once, and nothing said so. Per tail of the committed tree it counts the lines above whatHEADholds
(a tail git does not track counts whole; 9 ms where nothing waits and 31 to 43 ms with 514 events waiting, on this
repository's own record, no network), with the age of the oldest, marked old past 24 hours, how many commits reached
the default branch since the last one that changed.mnema/, and, when the branch followed holds commits that changed
the record,mnema record pull. The one sentence namesmnema record commit, which prepares a branch and pushes
nothing.statusprints it underNot in git yet:andstatus --jsoncarries it aseventsNotInGit, only while
something waits, the one key beside the derivation;doctorlists it asrecord-in-git; the closing line of a session
carries it after the count it already says, undersession-tally. Nothing is said when nothing waits, outside git, with
no record, or where git ignores the record. -
A line of a kind this mnema does not know is read past, not refused, in both readers (ADR-113,
FORMAT.mdsection
7.1). A newer mnema adds a kind; until now every older binary refused the whole record over the first line of it.
From this version such a line is checked for everything that does not need what it says: its envelope against the
published declarations, its entry hash, its place in the chain, that its signer is a member at its point, and the
checkpoint over it. Its payload is not read and nothing it says is applied.verifynames each such kind once, in the
census (unread-kind) and in a clause of the verdict (N kind(s) this reader does not know, checked and not read),
and the exit is unchanged; the Python reader says the same sentence under section 7.1. The same line with one payload
byte changed is a broken hash, signed by a key no identity enrolled it is refused, above the last checkpoint it is
unsigned like any line, and a known kind with an unknown field or version is refused as before. Every surface serves
the record without the line: the merge orders it by itsatand citations and hands no projection it, and the writer
appends after it and signs over it. Binaries released before this one keep refusing such a line. The published
vectors gain one of a kind no version declares,x.from-the-future(41 vectors), which moves the content root over
all vectors froma827adaa28e739a941a592efc04ac2c02fe228867069a940179719188d814d61to
f01492a6daaceef614955ccdc6b5ae0236d09619c6ae806c957cc370654d8996. A kind namedtoString(or any name every
JavaScript object answers to) was read as a catalog kind with an empty payload; it is now a kind the reader does not
know. -
mnema record commitcuts the committed record at a signed checkpoint onto a branch for a pull request
(ADR-104, ADR-145). It builds a commit on the remote's default branch as this clone last read it
(refs/remotes/<remote>/HEAD; it reads nothing from the network, refuses where that ref is missing and says how old
the base is), without touching the working tree, the index or HEAD: each tail of.mnema/through its last signed
checkpoint, or with--through <decision>the tail that records it through the first checkpoint that covers the
recording, never below the base, with a new tail's proof and the key files the cut names, and the filesinit
writes beside the record where the base holds none of them (so a first commit carries* -text); nothing of the
private tree, the events above the cut counted, the other files of.mnema/that differ named as left out. It refuses when a
tail file of the base is not the start of the one here (pointing atrecord pull), signs the commit when
commit.gpgSignis set, asgit commitwould, and verifies the tree apart at the signed level and with--since
the base before it makes the branch,mnema-record/<labels>-<digest of the cut>. It printsgit push -uand the
command that opens the pull request (gh pr createfor GitHub,glab mr createfor GitLab, a sentence otherwise),
and runs neither;--jsonsays the same. Run again with nothing new, it says the branch is there. -
mnema tail relink <tail>... [--into <record>] --reason <text>writes the owner's relink, andmnema doctor --fix private-treerelinks a private tree that names another record before it moves it (ADR-155, ADR-157). Each relink is
signed by the key the relinked tail's id names, which the machine must hold (the person's, or an agent's kept there),
written in that key's tail that names the record joined, or in a new tail of that key born naming it, and checkpointed
at once. Before it writes, the command asks the readers' own rule over the directory as it would read, and writes
nothing they would not count: a key no membership of the record took in is refused by its words
(RELINK_WOULD_NOT_COUNT,relink-not-a-member, with ADR-157's rule: only the founder's keys relink, and an admission
of another person's tail does not exist in this version). It refuses too, each naming what it found, a tail not here,
one whose key the machine does not hold (NOT_THE_OWNER), that names no record, that names the record already
(ALREADY_IN_THAT_RECORD), that does not verify, that holds a relink or that one names already;--intois asked for
when the directory names three records or more. It says what each tail brings (its identity facts, its decisions,
its first entry when older than the record's genesis) and the records still left beside the one joined, with their
keys. The doctor, which refused two private trees of two records, now relinks each tail of the old tree by its own
key in the repository's tree, then moves them, and says both; a tail whose key is not on the machine keeps the
refusal, named. The writer names a directory as the readers do once a relink counts, so writes go on there, and a
checkout whose own tail was relinked, here or in a pull, writes in a new tail and leaves the frozen one as it is. A
write in a directory of two records is refusedSTALE_ANCHORin words that name both records andmnema tail relink,
where it said to delete the anchor file, after which the write was refusedANOTHER_RECORD.mnema tail prune
refuses (RELINK_WOULD_BE_UNDONE) to cut the tail that holds a relink while the tail it relinked is on disk, unless
that tail's cut is authorized first by a covered waiver. Liketail prune,tail relinktakes--whichfor the
agent that executed it; a relink an agent's key signs names the agent the record enrolled that key as. -
mnema record pullpulls over the record's uncommitted events, and a merge driver keeps the longer side of a tail
(ADR-163, which replaces ADR-139). A pull request that carries a tail's events to the branch you follow leftgit pullrefusing ("Your local changes ... would be overwritten by merge") over a local file that only holds more.
record pullrefuses, writing nothing, when a file outside.mnema/has changes or when a tail file here and on the
branch followed is not one the start of the other (a fork, named with the line where the sides part); otherwise it
runsgit pull --autostashwith the driver given on that one command line, puts back a file of the record git did
not track yet, and verifies the record. It writes no git configuration, and it fails, printing what git said, when the
pull fails or git puts its autostash back with conflicts (a file of the record that is not a tail merges as text).
mnema init, and the first write to a record
made before it, addtails/*/*.jsonl merge=mnema-tailto the record's.gitattributes;mnema record merge-tailis
the driver (the longer side wins byte for byte; a fork keeps your side, exits 1 and says where the sides part), and
git runs it only where its configuration names it:mnema doctorsays where it does not, andmnema doctor --fix merge-driver(with--dry-run) writes the two settings into.git/config, the only git configuration mnema writes,
and only when asked. Without the setting git merges a tail as text, as before. No driver lets a plaingit pull
pass over uncommitted changes: git refuses before it merges. -
Both readers read a tail its owner relinked into another record (
tail.relinked,FORMAT.mdsection 6.11). A
tail is named by its tail proof, signed once at birth, so nothing signed in it could move it to another record, and
a directory joining two (twomnema initon two branches and a merge, or a genesis cut on one of them) stayed
another-recordfor good. The new kind,tail.relinkedv1{tail, from, into, throughHash, eventCount, reason}, is
written in a tail of the same key that already names the record joined, and the relinked tail is frozen at its head.
Both readers apply one rule, in this order, and refuse by the same names: covered by a verified checkpoint of its tail
(else the census noterelink-uncovered, and it counts for nothing), signed by the key the relinked tail's id names
(relink-not-the-owner), once per tail (relink-conflict), from a tail not itself relinked
(relink-hosted-by-a-relinked-tail) that names the record joined (relink-into-mismatch) and is not the one it
leaves (relink-into-its-own-record), of a tail that namesfrom(relink-from-mismatch; a tail not here is the noterelinked-tail-absent) and ends at the head and count
the relink froze (relinked-tail-grew,relink-head-mismatch), and by a key holding a membership the record gave
it: the founding of the record's genesis identity, or an enrolment rooted in it; a key that founded its own identity
in the record does not count (relink-not-a-member). So, for now, only the founder's keys relink: a second person
writes again in the record, or their tail is cut, and after a cut of the genesis no relink counts. A tail holding a
line a reader refuses holds no relink in either reader. A relink that counts is the census noterelinked-tailand a
clause of the verdict, and the namer the surfaces ask reads such a directory asverifydoes. The rule is
relinkedNaming(packages/chain/src/chain/record-name.ts) and its mirror in the second reader;mutate.pybuilds
a record for every refusal and for the two that pass.mnema tail relinkandmnema doctor --fix private-treewrite
one (below), andverify --sincereads one (below). A version from before reads such a line as a kind it
does not read and refuses it, naming its version. The published vectors are 40: one for the kind, and the content
root over all of them moves fromc87196ea4f715594eadcf089393a0d7d97c16a6253280c33e966505af0dc5cd8to
a827adaa28e739a941a592efc04ac2c02fe228867069a940179719188d814d61; the other three aggregate digests do not move. -
verify --since, and so the Action, read a tail its owner relinked (ADR-155). A pull request that brought a tail
of another record and its owner's relink of it into this one was refused asanother-record, because--sincenamed
each tail by its own artifacts. It now names the base's tails and the disk's as both readers do, the relinks that count
on each side applied (the base read out of git whole, every segment of the commit's own bytes): the tail and its
relink pass, and so does the relink alone of a tail the base already held, the way back after twomnema initwere
merged. Each tail a relink moves into the record since the base is a line on stdout, a fact and never a failure:
since <rev> (<commit>): tail <id> arrived since, record <name>..., relinked into this record by its own key, <n> event(s) from <at> (relinked)(was in the record therewhere the base held the tail), andsince.arrived.relinked
in--json. A relink that counted at the base is not said again. A relink that does not count moves nothing: a tail
that arrived is stillanother-record, andverifyrefuses the directory. The Action's comment gets a section with
those lines, on a pass too, beside the one for a directory of two records (docs/cli-reference.md,
packages/action/README.md;packages/code/tests/a-relinked-tail-passes-since.test.ts). -
The plugin has an icon for Anthropic's directory and the stores: a 512 by 512 PNG,
.claude-plugin/icon.pnginplugin/and inplugin-server-only/, named byiconin each manifest (a field the
directory reads and Claude Code ignores). It is the mark the VS Code extension already has (the M of the console's
wordmark, on the banner's page, in the accent), drawn by the sameicon.mjsat 512 pixels instead of 128 with
node:zlibalone, so no raster tool and no binary is needed, here or on a runner.node .github/the-plugin-icon/make.mjswrites both files afterpnpm build, and--checksays which is not what the
drawing makes (the-plugin-icon-is-the-mark-it-names.test.ts). The 128 pixel icon is the bytes it was. -
The release lists the server in the official MCP Registry, as
io.github.felipesauer/mnema.@mnema/codenow
carriesmcpName(the field the registry reads in the version already on npm, which is why 0.1.4 cannot be listed), and
server.jsonat the root is made bypnpm release:preparefrom the one version number (schema 2025-12-11; description
and title inside its 100 characters; the package@mnema/code, stdio, started asmnema mcp).
the-registry-entry-is-what-the-package-saysholds that the file is what the generator returns for the root version,
that its name is the package'smcpName, and the shape of the newpublish-registryjob ofrelease.yml: it runs
after the tag and the release (so after npm), asks for thenpmenvironment (a person approves it), holds
id-token: writeand no secret, installs and builds nothing, and runs a registry publisher pinned by tag and by
SHA-256 withlogin github-oidc. It is the third job of the workflow that can ask for the OIDC token. Nothing has run
against the registry: the first listing is the first release that carriesmcpName.
Changed
-
The product says when an agent accepts a decision it recorded, in every repository (ADR-173). A decision is born
proposed; where the person dictated it, or chose it among the options an agent offered (a recommended one included),
the agent accepts it at once, with a note quoting the answer, and one it concluded alone waits for the person. It is
said in four places, always under the switchagent-accepts: the reply ofrecord_decisionand of the command that
records one (a line after "Recorded decision ADR-n": the state, anddecision_transitionormnema decision move accept <id>while the switch is on, or that only a person accepts while it is off; the command with no--whichsays a
person accepts it withmnema decision review); the sentencemnema settledhands the agent after a question the
person answered (it records and accepts, or says a person accepts); the blockmnema initandmnema instructions
write, nowv4(one sentence in place of the parenthesis, andmnema instructionsreplaces av3block, which is
kept, as it replaced the earlier ones; a block somebody edited is never overwritten); and theStopline of
session-tally, which adds a second line when decisions recorded since the session opened still await a person: how
many, andmnema decision review. The MCP server's instructions are unchanged: they stand at 2,019 of 2,048 bytes
and the rule does not fit. Words only: the gate that refuses an agent's accept while the switch is off is the same,
and the product reads no answer (packages/code/tests/a-recorded-decision-says-when-to-accept.test.ts,
a-settled-choice-is-said.test.ts,the-instructions-block.test.ts,a-session-says-what-it-wrote.test.ts). -
Every page of the site says what it is, and the places a stranger first reads point at the site. The site's
configuration set one meta description for the whole site and it beat the one in each page, so every page said the
same thing; now each page ofdocs/is described by the first sentence of its prose (descriptionOf) or by its own description line, the landing
by the description of@mnema/codeand the 404 by its own line, and/record/has a title, a description, a canonical
address and structured data of its own (withTheHeadOfTheSite) and is in the sitemap, which Astro wrote before the
page existed. The landing and/record/carry JSON-LD of aWebSiteand aSoftwareApplication, built from the
package's name, description, version and licence, and naming where the software is found (the repository, npm and the
two extension stores), with no rating and no review. Thehomepageof the published packages, the extension and the
four plugin manifests is the site, and the private tools keep the repository. A case over every built page fails on a
missing, repeated or foreign title, description or canonical, on a sitemap that is not the pages, and on structured
data that is not the facts (every-page-of-the-site-says-what-it-is.test.ts). The site reaches the public with the
next release, since it is deployed only at one.mnema sitetakes--head <file>(a JSON file with a title, a
description, a canonical address and optionally structured data) and writes them into the page, so/record/is the
page the command writes with no step after it (the site build is the option's caller, and the case of the built site
compares the served bytes to the command's output);descriptionOftakes the first sentence of a page, or the
page's own<!-- description: ... -->line, which three pages whose first sentence says too little now carry. A page
for teams that keep ADR files,docs/mnema-next-to-a-folder-of-adrs.md, showsmnema decision importbringing
them in as proposed decisions, anddocs/where-it-fits.mdopens with the sentence that mnema is a decision record
and not a memory service. -
Every hook command of the Claude Code plugin is
node, the handler and plain arguments, with no shell in front.
plugin/hooks/hooks.jsoncarried five shell lines ([ -n "$CURSOR_VERSION" ] && ...; exit 0,IN=$(cat); case ..., the
path read out of the payload by parameter expansion) that turned a call away before anymnemastarted, and the
checklist of Anthropic's directory blocks, for a plugin that lives in a subfolder of its repository, a hook command
that holds a variable other than${CLAUDE_PLUGIN_ROOT}or a command substitution
(https://claude.com/docs/plugins/pre-submission-checklist;${CLAUDE_PLUGIN_ROOT}is the variable
https://code.claude.com/docs/en/hooks documents for a plugin's paths). The handlers turn the call away now, from
arguments the generated file hands them:--tools(the payload names none of those tools: the hook after a question,
after a dispatch, and VS Code's gate),--where(the variable that says the host is that host is unset: Cursor's and
Qwen Code's gates) and the new--unless(the variable of a host that has a handler of its own is set: Cursor's gate
yields to Qwen Code's, and the hook after a write to both), andafter-a-write.mjsreads the path out of the payload
and ends for a path that can be neither a note of the host's memory nor a file of decisions, before it loads the rest
or startsmnema. What each handler answers is unchanged (held bythe-hooks-file-runs-no-shell.test.tsand the
tests of each hook, and, in the real Claude Code 2.1.310, bya-note-of-the-hosts-memory-is-copied.test.tsand
a-settled-choice-reaches-the-model.test.ts). The cost, measured: anodestart where a shell line stood, base and
head alternated, 40 rounds, behind the shared lock at a load of 2 to 5, where an emptynodetakes 22 ms: the hook after a
write 33 ms against 2.5 ms, a gate that turns the call away 30 ms against 1.7 ms, and the three commands that start at a
write in Claude Code (they run in parallel) 36 ms against 4.4 ms; a VS Code read, which starts six, 44 ms against 7.7 ms.
(The same run at a load of 29: 49, 43, 71 and 74 ms.) -
An agent working through the MCP server is told, in the reply of the tool that wrote, that the writer opened a new
tail. The sentence (mnema: wrote to a new tail, ...) went to standard error from the writer, which the command line
shows and an MCP server wrote to the host's log, so the agent whose write went to another tail was the one party not
told. Every tool that writes now carries it in its reply, once, beside what the write founded, in the same words the
command line prints (the chain'sdescribeNewTail, one source), and the log hears it as before; a refusal that comes
after the tail was opened (STALE_ANCHOR) carries it in a block beside its own words, which are unchanged. The
closing of the connection's run, which has no reply, says it in the log alone. The command line is unchanged
(packages/code/tests/an-mcp-agent-is-told-of-a-new-tail.test.ts). -
Nothing governs in a directory whose tails name two records, and every reading of what governs says so. Both
readers refuse such a directory (another-record), but the readings that say what governs run over a directory
nobody verified, and read a tail grafted from another record as this one's: its decisions were listed in force in the
brief, pushed at an edit and served to the agent. A directory alone cannot tell which of its records it is, so every
reading that folds the record now reads no tail of a directory whose tails name two records or more, and a record of
one name, or of none, reads as before (tailsReadAsOneRecord,packages/chain/src/chain/record-name.ts, and its
test). The brief,mnema rules(on the other stream, and in--jsonasseveralRecords, which the Action reads and
says in its comment),governing_rules, the rules pushed at a write by the MCP tool and by the hook verb, and
bootstrapeach sayThis directory holds tails of <n> records: <name> (tail <tail>); ..., thatmnema verify
refuses it, and that nothing in it governs here until it holds one record.show,search, the page and the
console's feed read nothing of it either, and say nothing. The cost, measured on the built binary, the rules
pushed at a write, median of 15, base and head alternated: one tail 246 ms against 246 ms; 8 tails 258 ms against
251 ms; 32 tails 295 ms against 277 ms, so about 0.6 ms per tail per write (the name of each tail is read and its
signature checked once per write; the surfaces take what the projection's catch-up found). -
mnema inherit setandinherit updatename the origin's record, andupdatedoes not move to a commit that
holds another record. Each printsThe record there is <name>(or that it names none, written before records were
named). The commit fixes the record, so nothing is added to.mnema/inherit.json:updatereads the record at the
commit it leaves, and where the origin holds another record at the new commit, it refuses (ANOTHER_RECORD), with
or without--write, naming both. A record from before records were named may take a name, and only the one its
genesis derives (the name its first write from 0.1.5 on gives it); any other is refused the same way. -
Every tail proof and checkpoint a write signs names the record, and mnema 0.1.4 refuses a record from its first such
line. The writer signsmnema-tail/2andmnema-checkpoint/2only, under the name its own tail already carries, else
the one the other tails of the record carry, else the name of the record's genesis tail (FORMAT.md section 6.10): a new
record names itself atinitfrom its first tail, and in a record written before, the first write of each installation
(which opens a new tail, as it already did) names it after the tailinitwrote, so two clones that never saw each other
give it one name. Where the tails already name two records, or this machine's tail names one and the other tails
another, the write is refused and nothing is written (ANOTHER_RECORD). A project's private tree founded in its
repository's git directory takes the record its.mnema/private/from before the repository names, somnema doctor --fix private-treejoins one record; an old tree that already names another record is not moved, and the fix says why and
exits 1. The tails written before 0.1.5 stay unnamed for
good, a census note beside named ones; a record none of whose tails is named now endsverify's verdict line with
record: unnamed (written before 0.1.5): a tail of another record could not be told from this record's own, as the
Python reader already said, and exits 0. The gate's handler before a write (plugin/hooks/an-address-can-be-met.mjs)
reads a/2checkpoint line as it reads a/1one, so a named record does not startmnemaon every write, and it
doubts a checkpoint line of either scheme with a key more or less. The cost, for a binary from before: from the first
/2line in a record, mnema 0.1.4 refuses it, as 0.1.3 refuses a run's mark (below): itsmnema verifysays
local integrity FAILED, the tail that holds the line UNREADABLE (a checkpoint scheme this reader does not know: 'mnema-checkpoint/2'), exits 1, and its Python reader says REFUSED, so a GitHub Action built from 0.1.4 goes red on
every pull request of that repository. A colleague still on 0.1.4 keeps writing a tail of their own, which reads as
unnamed; a machine that went back to 0.1.4 after 0.1.5 wrote in its checkout cannot write there (its installation now
names the/2tail). Upgrade the CLI on every machine that writes, and move the Action in the same pull request that
brings the first/2line, or before it: the commit or ref your workflow checks out to buildpackages/actionfrom,
to this release. -
Both readers read a checkpoint and a tail proof that name the record they belong to, and refuse a tail of another record.
One key signs in every record its person writes in, and public keys travel with the record, so a tail copied from one
record with its key verified in another as that person's acts.mnema-checkpoint/2andmnema-tail/2sign one key more,
record: the SHA-256 of a framed tag and the id of the record's genesis tail (FORMAT.md section 6.10).verifyand the
Python reader read them beside/1(a/2checkpoint'sprevis the hash of the/1one before it) and refuse, by the
same names,another-record(the tails name two records, every group named),record-mismatch(one tail names two) and
scheme-downgrade(a/1checkpoint where the tail had named its record). A tail that names no record beside named ones
is a census note,unnamed-tail; a record that names none, every record written so far, reads as it did, and the Python
reader says it is unnamed. A scheme of the family neither reads names the mnema that refuses it, as a kind it does not
read does.canonical-vectors.jsonpublishes five signed messages (each scheme of each artifact, signed by RFC 8032's
published key), and a new frozen record is named by its genesis tail. The writer writes/2(the entry above). -
verify --since <rev>holds a tail that arrives to the record the revision is, and so does the Action. A directory
alone cannot tell which of two records was there first, nor a tail written before records were named from one grafted
out of another record written then. A tail on disk that<rev>did not hold must now name the record its tails were (the
name they carry, or the name of its genesis tail where none carries one): the tails that name another record exit 1 with a
line naming them as the ones that arrived (another-record), which the bare verdict, naming both groups, cannot say. A
tail that names no record exits 1 withtail <id> arrived since and names no record ... (born-unnamed)only where a tail
of<rev>names the record; where none does (a record written wholly before 0.1.5, or no record at all), the record has
no name yet to hold the tail to, and it passes with the note... the record has no name yet ...; a note, not a failure ... (unnamed-record), so the refusal holds from the first write of a mnema from 0.1.5 on. In--jsonthe two kinds are
since.arrived.unnamedandsince.arrived.noted. A tail the revision already held is not asked again, an unnamed one
staying a census note, unless it held no name there and names a record now: it passes only where that name is the
revision's record (where no tail of it names one, the name its genesis tail derives, which is the one the 0.1.5 writer
gives an older record), and is otherwise named as a tail of another record (another-record). The Action runsverify --sinceon the pull request's base, so a pull request that brings a tail
refused here fails, and its comment quotes the line. The cost: once a record is named, a tail written by mnema 0.1.4
or earlier that arrives in a change is refused; upgrade, take the tail out, and record its work again
(docs/cli-reference.md). -
tail prunerefuses to authorize the cut of a tail that founded or enrolled a key nothing revokes, unless--lose-keys
names every one of them. An identity lives only in the tail that wrote it (identity.founded,key.enrolled,
agent.enrolled,checker.enrolled), and the waiver carries none of it. Measured with the binary: in an identity of two
keys, cutting the founder's tail leaves the second key's events failing T2/T4 in both readers and its next write refused
(STALE_ANCHOR); cutting the tail of a founder whose enrolled key never wrote leavesverifygreen and the key without its
identity, and that key's next write founds an identity of its own with no refusal. The refusal (KEYS_WOULD_BE_LOST) names
each key and says whether the cut breaks it (events of it stay in tails that stay) or only strands it, and prints the command
with--lose-keys <fp>[,<fp>]; the cut's reason then starts withKeys lost:and the list, and nothing in the format
changed. A key akey.revoked,agent.retiredorchecker.retiredtakes out does not count, unless it signed events in a
tail that stays: those fail T2/T4 once the cut takes its enrollment, so it breaks. The disk cannot tell a key whose
machine is gone from one that will write, so any other counts.--lose-keysis compared as a set (a key named twice is
one), is refused on a tail that holds no key (NO_KEYS_TO_LOSE), and the command the refusal prints carries the reason
the caller gave, quoted for a shell, so it runs as printed.tail listmarks the tails that hold such keys. The
tail of a key that was only enrolled, and holds none, is cut as before; cutting a record's genesis, which holds the
founder, now needs the option. Carrying an identity out of a cut tail stays a format study for later. Held by
packages/code/tests/a-tail-that-holds-keys-is-not-cut-without-naming-them.test.ts(the binary, both readers) and
packages/chain/src/chain/tail-keys.test.ts. -
A cut of the record's genesis tail made with the
tail pruneverb keeps the record's name, and the two ways a record can
still take two names are said. The name derives from the genesis tail, and the waivertail prunewrites before the cut
lives on the pruner's own tail, which names the record from that genesis: every later write takes the name from it, and a
branch made before the cut merges into a record of one name. Nothing in the format changed; a test with the built binary
holds it, its writers being keys of identities founded elsewhere than the cut tail (none that tail founded or enrolled): both readers verify the merge there. The cut keeps the name,
not the identity the cut tail founded: this entry first said the merge verifies wherever every later write is by another
key, which was true of the merge and false of the record, because a cut of a tail that founded or enrolled a key leaves
that key's events failing T2/T4 and its next write refused (STALE_ANCHOR); the verb now refuses such a cut unless the
keys are named (the entry below). The cost, declared: the genesis removed by hand, or cut by mnema 0.1.4 (whose waiver lives
on a tail that names no record), leaves no tail carrying the name, so the next write names the record from the tails
still there; and a tail written by 0.1.4 whose first entry is older than the genesis (a clock that ran behind), brought
by a branch where a 0.1.5 writer named the record after it, does the same. Merged, either leaves a directory of two names
that both readers refuse (another-record);verify --since, and so the Action, refuses the branch before the merge
(FORMAT.md section 6.10,docs/cli-reference.md). After a merge, the way back is the relink ADR-134 settled (the owner
of each tail named the other way binds it to the record with their own signature), which this release writes. -
A decision one machine accepted and another rejected or superseded, out of the same state, is in force in no reading, and each
reading says why. Two clones that had not seen each other, once their tails meet, leave two signed moves out ofproposed,
and the fold kept the state of whichever had the laterat: a decision governed, or stopped governing, because of a clock. The
brief (briefprints it in a paragraph of its own, under "Decisions in force", that says it is not counted above),
governing_rulesand therulesreading (the entry carries adivergencefield with the line), the rules pushed before an edit, the
opening context (bootstrap), the Action and the extension (neither judges a pull request by it), thesitepage and
showleave it out of force and say, in one line, between which moves, by whom and when, and that it takes a new decision
to put the call back (the same words recorded again make one, whichever move was last), which a person, or an agent where
agent-accepts is on, accepts. A rule that refuses a write or asks for a person does neither while it is in this state.
verify(TypeScript and the Python reader) names it in its census asdecision-divergence, informational: the verdict, the
level and the exit are what they were. The fold is unchanged, soshowstill prints the state of the last move and a record
reads as it did before; what changes is what "in force" means for these decisions. Two accepts, or two retirements, are a
divergence and are still in or out of force by their state (FORMAT.md section 6.7;docs/convergence.md).
Fixed
-
mnema doctorno longer advises--fix private-treewhere the fix would refuse, and its dry run no longer promises a relink the fix refuses.
Where an old private tree names another record than the one the repository keeps, the finding now names both records
and asks the question the fix asks (wouldRelinkTails, the rulerelinkTailsasks again before it writes): where the
fix would relink and move, the finding says so; where it would refuse (this machine holds no key for a tail, or holds
one the record never took in, ADR-157), the finding says why and what to do instead (relink on the machine that holds
the key, or cut the tail) and advises no fix.--dry-runsays the same refusal the real run does and exits 1
(packages/code/tests/the-private-tree-moves-out-of-the-worktree.test.ts). -
A relink no longer leaves a record that fails
verify. Where both private trees had enrolled the same agent key,
mnema doctor --fix private-treerelinked and moved them with exit 0, andmnema verifythen refused the record
(agent.enrolled names a key that is already in an identity): each tree verified alone, and the two read as one did not.
Before it writes, a relink (mnema tail relink, and the doctor's fix, its--dry-runand its finding) now also asks the
readers' identity check (T2/T4) over the directory as it would read, and refusesRELINK_WOULD_NOT_VERIFYwhere it would
refuse an event that no tree refuses today, naming the tail, the seq and the readers' reason, and writes nothing; an issue a
tree holds already does not refuse a relink. The doctor then advises no fix, and says why
(packages/code/tests/the-private-tree-moves-out-of-the-worktree.test.ts,
packages/chain/src/chain/relink-plan.test.ts). -
A tail is not forked by a branch switch, and a fork that still happens is called one. One checkout written on two
branches, or a checkout whose installation id was copied from another, wrote one tail on two lines of history with exit 0:
git then conflicted on the segment and on the checkpoints, and a merge that kept both sides was refused by both readers as a
seq gap. The writer now keeps, in the record'slocks/(ignored by git, never read by a reader), the last entry it wrote to
its tail; when the tail no longer ends there, or holds entries it has no note of writing, it writes to a new tail and leaves the
old one as it is, and says so on standard error (mnema: wrote to a new tail, ...). The two branches then merge clean and
verify. The first write of an installation made before this version opens one new tail, for the same reason, and the tails written
before 0.1.5 are never appended to again. Each branch switch followed by a write, and each deletedlocks/(git clean -X),
opens one more tail. A copy that
carries the note with it (acp -aof the checkout, a backup restored whole) is still written from one head in two places;
verifyand the Python reader refuse what it leaves as before, and now name it:fork: two different entries hold seq N and follow the same entry, anda fork in the sequenceunder section 3. No byte of the format changes (FORMAT.mdsection 3). -
mnema verify --against-sigstoreand the signature line of a stack being added no longer print1970-01-01as the time a Rekor v2 entry was logged. A v2 entry carries nointegratedTime, so the time now comes from the timestamp authority the Sigstore library verified, and says so; a bundle with no verified time says "time not carried", never a date made up. Inverify --json,sigstore.findings[].reading.loggedAtcan now be absent (it always came, even as 1970) andloggedAtBy("rekor"or"timestamp-authority") is new; the text line readslogged in Rekor, timestamped by the timestamp authority at <time>for a timestamp authority's time. -
minimatchis lifted to 11 in the release job's tool folder, closing GHSA-g3hv-75wg-m249 there as well. The workspace lockfile already resolved it to 11.0.3;.github/release-toolsstill held 10.2.6, reached through@vscode/vsce. An override to^11.0.1moves it to 11.0.4 (ADR-153); the extension packs the same fourteen files with the tool folder's ownvsce. -
mnema stack indexand the extension's Add from Index work in a folder that is not a mnema checkout (ADR-169). In
0.1.4 they read astack-index/folder relative to the working folder, which only this repository has, and refused
anywhere else withRefused (STACK_INDEX_REFUSED): there is no index.json in "stack-index".;mnema stack addtakes
a folder, an archive or the address of a whole repository, so an example's subfolder could not be fetched by address
either. The package now carries the index and the example stacks it lists (dist/stack-index/, written by the build
fromstack-index/index.jsonandpackages/stacks/examples/, a byte-for-byte copy), andmnema stack indexwith no
folder reads it: each entry's folder is inside the installed package, and its digest is the onemnema stack add <folder> --dry-runshows. A folder given is read as before; one with noindex.jsonis refused saying what an index
is and that, with no folder, the one that comes with mnema is read. The extension'smnema.stackIndexnow defaults
to empty, meaning that index; set, it is passed as before. A test holds the built-in copy to the repository's file and
folders and to the digests (the-built-in-index-is-the-repositorys.test.ts).