Skip to content

v0.1.5

Choose a tag to compare

@github-actions github-actions released this 04 Nov 21:38
a6ceea2

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 a CLAUDE.md or GEMINI.md of 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 commit cuts 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, doctor and the end of a session now say how many events no commit holds yet.
  • Pulling a record that only grows. mnema record pull pulls over events not yet committed. Set up with mnema doctor --fix merge-driver (or by the new init), a plain git pull carries 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-accepts leaves 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.md was followed in 10 of 10 sessions, as in CLAUDE.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 pull carries the record's uncommitted events, in a clone set up for it (ADR-181, which amends
    ADR-163).
    mnema doctor --fix merge-driver now 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.autoStash and
    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 no mnema on the PATH) is said by mnema doctor and mnema status while an autoStash is on, and
    the fix replaces it. With them git pull,
    git pull --no-rebase, git pull --rebase and 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 ran mnema by PATH before). mnema init asks the
    question in a repository with a remote (default yes, shown in the plan as four set rows; --git-pull yes|no
    answers it, --yes takes the default, --all-hosts and 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") and mnema doctor now 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 (and status --json carries newerLines, 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>
    and read_record say it for the record a line names as its subject, bootstrap carries it beside its payload, and
    mnema doctor lists 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 init asks 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 and Leave found
    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. A CLAUDE.md, .claude/CLAUDE.md or GEMINI.md that
    exists is a mark of its own, as it is in mnema instructions at 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|no and --which; --all-hosts stays 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 (a no also records the switch
    that refuses an agent's accept); an agent that gives it with --which records its own proposal, which waits for the
    person; --yes never answers it. With no terminal, and with none of these flags, the lines are the ones init has
    always printed. A person's file left unchecked stays left out (ADR-177): mnema instructions --check, mnema doctor and mnema instructions without 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 as leave with the reason, and what init says of it names mnema instructions --hosts <host>, the form that adds the block to that file once the permission is fixed and writes no other file; mnema instructions takes --hosts as init does. The question by number (HOST_FILES_NOT_UNDERSTOOD) is gone: an answer cannot be off the list now.

  • mnema status, mnema doctor and 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 what HEAD holds
    (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 names mnema record commit, which prepares a branch and pushes
    nothing. status prints it under Not in git yet: and status --json carries it as eventsNotInGit, only while
    something waits, the one key beside the derivation; doctor lists it as record-in-git; the closing line of a session
    carries it after the count it already says, under session-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.md section
    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. verify names 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 its at and 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 from a827adaa28e739a941a592efc04ac2c02fe228867069a940179719188d814d61 to
    f01492a6daaceef614955ccdc6b5ae0236d09619c6ae806c957cc370654d8996. A kind named toString (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 commit cuts 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 files init
    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 at record pull), signs the commit when
    commit.gpgSign is set, as git commit would, 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 prints git push -u and the
    command that opens the pull request (gh pr create for GitHub, glab mr create for GitLab, a sentence otherwise),
    and runs neither; --json says 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, and mnema doctor --fix private-tree relinks 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; --into is 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 refused STALE_ANCHOR in words that name both records and mnema tail relink,
    where it said to delete the anchor file, after which the write was refused ANOTHER_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. Like tail prune, tail relink takes --which for the
    agent that executed it; a relink an agent's key signs names the agent the record enrolled that key as.

  • mnema record pull pulls 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 left git pull refusing ("Your local changes ... would be overwritten by merge") over a local file that only holds more.
    record pull refuses, 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
    runs git pull --autostash with 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, add tails/*/*.jsonl merge=mnema-tail to the record's .gitattributes; mnema record merge-tail is
    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 doctor says where it does not, and mnema 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 plain git pull
    pass over uncommitted changes: git refuses before it merges.

  • Both readers read a tail its owner relinked into another record (tail.relinked, FORMAT.md section 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 (two mnema init on two branches and a merge, or a genesis cut on one of them) stayed
    another-record for good. The new kind, tail.relinked v1 {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 note relink-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 names from (relink-from-mismatch; a tail not here is the note relinked-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 note relinked-tail and a
    clause of the verdict, and the namer the surfaces ask reads such a directory as verify does. The rule is
    relinkedNaming (packages/chain/src/chain/record-name.ts) and its mirror in the second reader; mutate.py builds
    a record for every refusal and for the two that pass. mnema tail relink and mnema doctor --fix private-tree write
    one (below), and verify --since reads 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 from c87196ea4f715594eadcf089393a0d7d97c16a6253280c33e966505af0dc5cd8 to
    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 as another-record, because --since named
    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 two mnema init were
    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 there where the base held the tail), and since.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 still another-record, and verify refuses 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.png in plugin/ and in plugin-server-only/, named by icon in 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 same icon.mjs at 512 pixels instead of 128 with
    node:zlib alone, so no raster tool and no binary is needed, here or on a runner. node .github/the-plugin-icon/make.mjs writes both files after pnpm build, and --check says 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/code now
    carries mcpName (the field the registry reads in the version already on npm, which is why 0.1.4 cannot be listed), and
    server.json at the root is made by pnpm release:prepare from the one version number (schema 2025-12-11; description
    and title inside its 100 characters; the package @mnema/code, stdio, started as mnema mcp).
    the-registry-entry-is-what-the-package-says holds that the file is what the generator returns for the root version,
    that its name is the package's mcpName, and the shape of the new publish-registry job of release.yml: it runs
    after the tag and the release (so after npm), asks for the npm environment (a person approves it), holds
    id-token: write and no secret, installs and builds nothing, and runs a registry publisher pinned by tag and by
    SHA-256 with login 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 carries mcpName.

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 switch agent-accepts: the reply of record_decision and of the command that
    records one (a line after "Recorded decision ADR-n": the state, and decision_transition or mnema decision move accept <id> while the switch is on, or that only a person accepts while it is off; the command with no --which says a
    person accepts it with mnema decision review); the sentence mnema settled hands the agent after a question the
    person answered (it records and accepts, or says a person accepts); the block mnema init and mnema instructions
    write, now v4 (one sentence in place of the parenthesis, and mnema instructions replaces a v3 block, which is
    kept, as it replaced the earlier ones; a block somebody edited is never overwritten); and the Stop line of
    session-tally, which adds a second line when decisions recorded since the session opened still await a person: how
    many, and mnema 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 of docs/ is described by the first sentence of its prose (descriptionOf) or by its own description line, the landing
    by the description of @mnema/code and 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 a WebSite and a SoftwareApplication, 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. The homepage of 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 site takes --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); descriptionOf takes 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, shows mnema decision import bringing
    them in as proposed decisions, and docs/where-it-fits.md opens 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.json carried 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 any mnema started, 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), and after-a-write.mjs reads 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 starts mnema. What each handler answers is unchanged (held by the-hooks-file-runs-no-shell.test.ts and the
    tests of each hook, and, in the real Claude Code 2.1.310, by a-note-of-the-hosts-memory-is-copied.test.ts and
    a-settled-choice-reaches-the-model.test.ts). The cost, measured: a node start where a shell line stood, base and
    head alternated, 40 rounds, behind the shared lock at a load of 2 to 5, where an empty node takes 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's describeNewTail, 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 --json as severalRecords, 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
    bootstrap each say This directory holds tails of <n> records: <name> (tail <tail>); ..., that mnema 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 set and inherit update name the origin's record, and update does not move to a commit that
    holds another record.
    Each prints The 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: update reads 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 signs mnema-tail/2 and mnema-checkpoint/2 only, 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 at init from 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 tail init wrote, 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, so mnema doctor --fix private-tree joins 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 ends verify'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 /2 checkpoint line as it reads a /1 one, so a named record does not start mnema on 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
    /2 line in a record, mnema 0.1.4 refuses it, as 0.1.3 refuses a run's mark (below): its mnema verify says
    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 /2 tail). Upgrade the CLI on every machine that writes, and move the Action in the same pull request that
    brings the first /2 line, or before it: the commit or ref your workflow checks out to build packages/action from,
    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/2 and mnema-tail/2 sign 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). verify and the
    Python reader read them beside /1 (a /2 checkpoint's prev is the hash of the /1 one 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 /1 checkpoint 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.json publishes 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 with tail <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 --json the two kinds are
    since.arrived.unnamed and since.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 runs verify --since on 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 prune refuses 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 leaves verify green 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 with Keys lost: and the list, and nothing in the format
    changed. A key a key.revoked, agent.retired or checker.retired takes 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-keys is 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 list marks 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 prune verb 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 waiver tail prune writes 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 of proposed,
    and the fold kept the state of whichever had the later at: a decision governed, or stopped governing, because of a clock. The
    brief (brief prints it in a paragraph of its own, under "Decisions in force", that says it is not counted above),
    governing_rules and the rules reading (the entry carries a divergence field 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), the site page and
    show leave 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 as decision-divergence, informational: the verdict, the
    level and the exit are what they were. The fold is unchanged, so show still 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 doctor no longer advises --fix private-tree where 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 rule relinkTails asks 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-run says 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-tree relinked and moved them with exit 0, and mnema verify then 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-run and its finding) now also asks the
    readers' identity check (T2/T4) over the directory as it would read, and refuses RELINK_WOULD_NOT_VERIFY where 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's locks/ (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 deleted locks/ (git clean -X),
    opens one more tail. A copy that
    carries the note with it (a cp -a of the checkout, a backup restored whole) is still written from one head in two places;
    verify and 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, and a fork in the sequence under section 3. No byte of the format changes (FORMAT.md section 3).

  • mnema verify --against-sigstore and the signature line of a stack being added no longer print 1970-01-01 as the time a Rekor v2 entry was logged. A v2 entry carries no integratedTime, 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. In verify --json, sigstore.findings[].reading.loggedAt can now be absent (it always came, even as 1970) and loggedAtBy ("rekor" or "timestamp-authority") is new; the text line reads logged in Rekor, timestamped by the timestamp authority at <time> for a timestamp authority's time.

  • minimatch is 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-tools still held 10.2.6, reached through @vscode/vsce. An override to ^11.0.1 moves it to 11.0.4 (ADR-153); the extension packs the same fourteen files with the tool folder's own vsce.

  • mnema stack index and the extension's Add from Index work in a folder that is not a mnema checkout (ADR-169). In
    0.1.4 they read a stack-index/ folder relative to the working folder, which only this repository has, and refused
    anywhere else with Refused (STACK_INDEX_REFUSED): there is no index.json in "stack-index".; mnema stack add takes
    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
    from stack-index/index.json and packages/stacks/examples/, a byte-for-byte copy), and mnema stack index with no
    folder reads it: each entry's folder is inside the installed package, and its digest is the one mnema stack add <folder> --dry-run shows. A folder given is read as before; one with no index.json is refused saying what an index
    is and that, with no folder, the one that comes with mnema is read. The extension's mnema.stackIndex now 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).

npm: https://www.npmjs.com/package/@mnema/code/v/0.1.5