Skip to content

v0.1.3

Choose a tag to compare

@github-actions github-actions released this 27 Oct 00:46
915906f

Added

  • The VS Code extension is published to the Visual Studio Marketplace and to Open VSX as mnema.mnema. The release workflow
    packs the .vsix once in a job that holds no secret, checks that the manifest inside is one a store takes (publisher
    mnema, not private, an icon, a category, keywords, a banner, marked preview, a changelog and a one-line description that
    promises nothing the command line does not print), installs that very file into a real VS Code to see the extension start,
    attaches it to the GitHub release and publishes the same file to both stores from one job that asks for the
    extension-stores environment, so a person approves it. The two store command lines are installed from a committed
    lockfile with npm ci --ignore-scripts in a step that holds no token, and each store is published to with --skip-duplicate
    so a run that stopped halfway runs again. The icon is drawn by the build from the
    banner's cube, not kept as a binary. The publisher id moves from felipesauer to mnema, so the id is mnema.mnema:
    uninstall the 0.1.2 file installed by hand (felipesauer.mnema). The extension still needs the mnema command of
    @mnema/code. The guard that refused every publish now allows exactly that job and refuses a publish command or a store
    token anywhere else, in another job, or in that job without its environment (ADR-76, ADR-77).

  • The VS Code extension tells a missing mnema command from nothing pending, and its status bar has an icon, a label and the command's own words. The extension asks mnema --version first; a command that cannot be started, does not answer as mnema does, or is older than 0.1.2 sets the context key mnema.cliMissing: the views say the command is missing and how to fix it (install @mnema/code, or set mnema.command) instead of "nothing is listed", nothing else is asked of it, and the status bar says "command not found" and opens the setting when clicked. The bar carries a codicon that follows the verdict (never a check mark or a seal), an accessibility label and the role of a button, and its tooltip is the text mnema verify printed, then the channels off. The bar reads the record's own verdict (record.ok of mnema verify --json, not the top ok), so an altered record or an empty .mnema shows the error icon and "verify failed"; mnema.command is read again at every refresh and when it changes, so a corrected setting needs no reload; a command that did not answer in 60 s is said so, not called "not found". A walkthrough of three steps (make the command available, mnema init, mnema verify) is added. The check that installs the packaged file in a real editor now opens three folders: with no .mnema (measured: opening the folder does not start the extension, so it runs no mnema; opening one of its views or running one of its commands starts it, and then it does), with a .mnema and a command that does not exist, and with a real record. plugin/captures/vscode-extension-script.md is the script for what no CI sees (hover, menus, themes, a screen reader).

  • A rule the project inherits reaches the path it addresses. The record named in .mnema/inherit.json was read only for
    the brief, and only as titles. Its decisions in force are now read whole (rationale, alternatives, state, who accepted, and
    their addresses under governs, asks-for-a-person and refuses-a-write), and mnema rules, mnema why, the
    governing_rules tool and the gate before a write (the MCP tool and mnema before-a-write) list an inherited rule beside the
    project's own, each saying inherited from <origin> at <commit>; neither is chosen over the other. What a line calls
    inherited is the ADDRESS: the record that wrote the link, not the one that holds the rule, so a link the origin holds to a
    rule of the project is the origin's address for the project's rule and says it was inherited. One that refuses or asks
    applies as the project's would, only where it addresses the path (a write that creates a file under it included), and its
    sentence says the rule is addressed here by the record this project inherits; a refusal by a rule only the origin holds
    names the clone it opens in, since mnema show <id> finds nothing here. An inherited address that names nothing in this
    project is not a stale address here. mnema rules counts "in this project" the project's own record alone and the inherited
    addresses on a line of their own, by relation; mnema brief counts the rules the inherited record places at an address
    (govern, ask for a person, refuse a write) after the project's own counts, and says those are the project's alone. A
    record that does not verify at the pinned commit governs nothing, and rules, why and governing_rules say so. The
    switches stay the project's own. The verdict is kept for the life of a process; a project that inherits nothing pays one
    file test. Known limits: the channel.refused or channel.asked this project records cites only the rule's id, not that
    the address was inherited nor the origin and commit (and the id of a rule only the origin holds does not resolve here);
    mnema rules-file, the commit hook and mnema aging do not read the inherited record, and mnema show of a rule of the
    project does not list the addresses the origin holds for it.

  • The VS Code extension's commands have icons and short titles, and an empty view says what it means. Every command carries a codicon, so the
    accept and reject buttons beside a decision and the add buttons of the stacks view are icons instead of the title's text, and the
    titles are short (mnema: Accept Decision, mnema: Add Stack); the command ids are unchanged, so a keybinding still works. The
    Command Palette lists them only where a workspace folder is open, and mnema: Show File Rules only over a file. Each of the two
    views has a text for a folder with no .mnema (it points to mnema init) and for a folder with one and nothing to list (the
    decisions view also links to the mnema.command setting; the stacks view says no stack is adopted only when mnema stack list was read, offers the two ways to add one, and says it has not listed the
    stacks when the command failed); which of the two applies is read from the disk. The two settings are described in markdown. A test now reads the manifest and holds all of this,
    and the check that starts the packaged file in a real editor reads the command list from the manifest it installed instead of
    from a second list. The buttons are grouped by meaning (accept beside reject; show, compare and check beside a stack, export in
    the context menu and remove alone in its last group; refresh in both title bars), and every input box and choice has a title, a
    placeholder that says what to type and stays open when focus moves.

  • Qwen Code opens its sessions with the record and refuses a write a rule refuses. Installed as an extension
    (qwen extensions install /path/to/mnema/plugin, which converts the Claude Code plugin), Qwen Code runs the plugin's
    hooks file: the opening arrives in the system instruction of its first request, the server's tools are listed to the
    model, and a write_file or an edit where a rule refuses is not made and the model reads the rule. The command that
    refuses is new in hooks/hooks.json and starts only where QWEN_PROJECT_DIR is set, which Qwen Code sets for every
    hook (it also sets the variables of Claude Code and Gemini CLI, so neither can tell it apart). It refuses and nothing
    else, so a rule that only asks for a person is let through, and mnema before-a-write --host takes qwen. Held by a
    contract that starts the real Qwen Code 0.26.1 against a stand-in for its model, with no account, in a new job of the
    host contract. Qwen Code defers the server's tools, so, unlike the other four, no file pins the weight of the 27
    definitions it sends. Not run: an interactive session, notebook_edit, and what the plugin's other hooks (the count at
    the end of a response, the subagent hooks) do under it.

  • A compacted conversation is handed back what entered the record while its session ran. A new SessionStart hook under the compact
    matcher runs mnema recall --after-a-compaction --session <id>, which prints one sentence (about sixty to a hundred and
    twenty tokens) read from the session's journal: the decisions that entered the record (read from the record since the session opened, by label and in the state they have now, so one recorded in the middle of a turn is there), the notes copied, the questions
    answered with no decision after, the files its calls wrote. A count and the record's labels, none of the session's words. It counts the decisions that entered the record since the session
    opened (a pull or another session's included, and the sentence says so), names five at most with and N more, and a label that
    two trees both number says its tree, as ADR-1 (private); the notes' section on where the last session stopped says the same of its decisions.
    The PreCompact hook is gone: Claude Code discards what a hook says before a compaction, so mnema tally no longer
    answers that event. A new switch, after-a-compaction, on by default, stops the sentence.

  • mnema recall says where the last session stopped. When another session that has stopped (its connection ended, or its
    journal has been quiet for 15 minutes) left a session journal on this machine in the last 24 hours, the notes open with a
    few lines (about a hundred tokens): how long ago it stopped, whether it wrote to the record (only a decision, a note or a
    task moved counts; a session that only edited files is said to have written nothing), its goal, the decisions it recorded by label and state, and what it left (files edited, files of decisions cited
    nowhere, questions answered with no decision after, tasks in progress). The plugin's hook passes the session's own id
    (mnema recall --session <id>), so a session never reads its own journal back, for instance after a compaction. A new
    switch, last-session, on by default, stops the section alone.

  • The work a session hands to other agents is kept as one private task. In the Claude Code plugin, a PostToolUse hook on the
    Agent tool and a SessionEnd hook run a new verb, mnema dispatched: the first dispatch of a session records a private
    task, Work handed over in this session and the instant, in progress; each dispatch records a private handoff on it, from
    orchestrator to the subagent type, with the call's short description as the brief and the path of a file the prompt cites
    when that file exists; the end of the session moves the task to done with the count of handoffs. The prompt is never recorded
    and nothing goes to the public tree. The task's id is kept in the session journal (a new handedOver field), so a resumed
    session reopens its task, and the next session that dispatches closes the tasks left by a journal untouched for a day.
    mnema switch off agent-mirror stops it (a new channel, on by default; it also does nothing where session-journal is off,
    and mnema switch lists it as does nothing while session-journal is off then), and a failure of the mirror never holds a
    dispatch. Where the journal's lock is not had in time (another dispatch of the session holds it), the mirror records nothing
    rather than go on without it, which opened tasks no one closed: it says so on the second stream, counts the skip, and the
    task's closing note says how many dispatches were not mirrored. The mirror's task is not taken for the goal of the session.
    A dispatch costs one mnema process: measured on this machine at a load of 9 on 16 cores, 340 to 430 ms for each dispatch
    after the first, 860 ms for the first (it opens the task) and 530 ms for the session's end, where the start of the process
    alone (mnema --version) took 220 to 260 ms; the numbers move with the load. A process that finds the journal's lock left
    by one that died takes it under a second lock, so two of them cannot both take it and open two tasks, and the Stop that
    keeps the journal waits for the same lock before it writes.

  • The page lists the credential formats the record's door replaces. docs/cli-reference.md (What goes into the record) now
    names each class (<SECRET:aws-access-key> and the ten others) and the e-mail address, with what each matches. The table is
    generated from the door's own list, and a test fails when a class is added without a row.

  • A session journal, kept at Stop. mnema tally now keeps, for a session whose hook names it (session_id), a small
    file at <data directory>/sessions/<digest of the project>/<session id>.json: a byte cursor into the transcript, so each
    Stop reads only the lines the host wrote since and not the whole conversation again, and, in ids and counts, what the
    session did with the record (decisions recorded since it opened and their state, notes of the host's memory copied, questions
    answered with no decision after, files holding decisions cited nowhere, files edited, tasks in progress, runs open, the goal
    and an outcome as a sentence of counts). Never a prompt, a message, a tool's output, a file's content, the environment or the
    answer a person chose. It is outside the record (no event, no signature, verify does not read it), disposable, pruned by age
    (30 days) and number (50 a project), and mnema switch off session-journal stops it (a new channel, on by default). The MCP
    server opens a run with the journal's goal when it knows one and closes it with the journal's outcome (a sentence of counts that says it is as of the session's last Stop), reading
    CLAUDE_CODE_SESSION_ID; the resume and status readings now print a run's outcome, which they never did. A run
    takes its goal and its outcome from the records of its own tree and from no other (a private run alone also asks the
    public tree whether a decision followed a question): a private task's title, and the
    count of private decisions or notes, never reach a run written to the public record. The file is 0600 and its
    directories 0700 whatever the umask, and a transcript the host rewrote is read again from the top when it shrank or when the first or the last 4096 bytes already read
    changed (a digest of each is kept); a rewrite that leaves both ends and the size alone is not told, which is what keeps a Stop from
    reading the whole file.

  • mnema verify names a reformat, and only when the signatures prove it. A record a formatter or an editor rewrote is
    still refused, with the same exit and the same issues; one reformatted line beside them names the files and how to put
    them back (prettier, Biome, dprint and pretty-format-json indenting tailproof.json; an .editorconfig or
    mixed-line-ending setting CRLF). It is said only when the files, read back in canonical form in memory, verify with no
    issue and every line put back is covered by a signature, so a change laid out like a reformat, a recomputed hash, or the
    last events no checkpoint covers never get it. Nothing is copied or written. The Python reader refuses the same records
    and does not say it (the second reader's README).

  • CI runs the installed binary on Windows and macOS. One job per system and per Node (24.15.0 and the latest 24)
    packs and installs the five packages, then runs init, decision record, verify, a clone checked out with
    core.autocrlf=true, the Python reader, doctor and the plugin's hook scripts on paths written the way each
    system writes them. Install says what is and is not run.

  • A stack install asks skills-ref about the skills it wrote. When agentskills (the validator the Agent Skills
    specification publishes) is on the PATH, each installed skill folder is validated and the command prints one line,
    accepted or refused, with what it said; without it, the command says it did not run. It is not a dependency, a refusal
    does not undo the installation, and nothing of it is recorded.

  • The Python reader declares itself. packages/chain/verifier/pyproject.toml names it, gives it the release's
    version and its Python floor, and holds the ruff rules CI now checks it with; it declares no dependency.

  • The instruction block says when work is a task and a handoff. One more line (version v2 of the block): work in
    flight is a task (create_task), and handing work to another agent is a handoff on it (record_handoff) with its
    brief. mnema init and mnema instructions replace the v1 block they wrote, byte for byte, and still refuse one
    you edited. The file that keeps a plan, a handoff or a ledger is now recognised in any case of its name (PLANO.md,
    LIVRO.md, PLAN.md, LEDGER.md), livro included, so the line that names the command reading it in is no longer
    missed for a name written in capitals; README.md and CHANGELOG.md still start nothing.

  • A task carries what it is, and a handoff what the next agent must read. mnema task create "<title>" --description "<text>"
    and the create_task tool's description, and mnema task handoff <task> <from> <to> --brief "<text>" and record_handoff's
    brief, take up to 64 KiB of text. The text is recorded in the same call as an observation about the task (topic
    description, topic brief), so the format is unchanged, and the reply names the observation's id. read_record
    and show of a task now serve the description, the last handoff (from, to, and its brief) and the notes about it,
    newest first, with the count a cut of eight left out. bootstrap, status and next_actions say, for each task in
    flight, who has it (the to of its last handoff, or who started it) and the last thing that happened to it, on one
    line; bootstrap's answer grows by 62 bytes (25 tokens) on the fixture the budget golden measures. Nothing here is
    signed beyond what a note already is: the description and the brief are notes, not fields of the task.

  • refs and audit_refs say what is at a path. For an id no tree authored, read as a path under the project, the
    answer says whether the file exists now and the SHA-256 of its bytes (a directory is named and not hashed, and a path
    outside the project is not read, whether it is spelled outside or reached through a directory link that leads out;
    a link that stays inside is followed). An id that is neither a record nor a file says both, in that order. It reads
    the working tree and writes nothing.

  • search finds a decision by its ADR-<n> label, as show already did.

  • The host contract measures what Claude Code and Codex send of the plugin's tools when they defer them. With tool search on
    (the default of Claude Code from 2.1.304, ENABLE_TOOL_SEARCH=true before), the first request carries none of the 27
    definitions: their names in a system reminder (1,044 bytes, 387 tokens) and the host's ToolSearch tool (332 tokens). A
    search loads definitions into the next request: one is 644 tokens, the five that record a decision returned 2,539, all 27
    11,794 (against 11,610 with tool search off). Codex 0.161.0's search returns eight definitions in one namespace with the
    server's instructions once: 3,845 and 3,387 tokens for the two queries the case asks. The figures are equal on Claude Code
    2.1.296, 2.1.304 and 2.1.310; docs/evidence.md says what is measured and what is not (an interactive session, a model's
    own query). The case with tool search off now sets it explicitly, so it holds on a version that defers by itself, and the
    Copilot, Gemini and OpenCode figures of that page are the ones their pinned files hold.

  • What each host hands the plugin's server and its hooks is measured and held. The host contracts now read, by name, the
    env of the server manifest as the server received it (Codex, Copilot CLI and Gemini CLI hand MNEMA_AGENT_KEY on with the
    value the manifest declares; in Claude Code a MNEMA_AGENT_KEY and a MNEMA_HOME set in the host's environment reach it), and the
    fields each host writes on the stdin of the hook that runs before a write (Codex, Copilot CLI, Gemini CLI, VS Code) or after
    one (Claude Code), against the ones the handlers read. docs/evidence.md has one row per host and says what was not
    measured (the agent_key option in VS Code and Cursor, and the payload after a question tool outside Claude Code).

  • bootstrap names the channels that are off on this machine. The reply carries one more line, of its own beside
    the JSON, when a channel is off for the project (the two that begin off, until a person switches them on, or any a
    person switched off): Off on this machine: <names>. Only a person turns one on, with mnema switch on . It is
    read from the effective state of the project's trees, so a channel a person switched on is not in it, and with
    nothing off there is no line. It adds 33 tokens to the reply; the server's instructions, the tool's description and the
    block committed into the repository are unchanged.

  • mnema with nothing after it says where the project stands and what is off. It prints a short summary on stdout
    and exits 0 (it printed the whole catalogue on stderr and failed; mnema --help still prints the catalogue, and at a
    terminal the name still asks what you want to do): what the product does in a sentence, whether a project is founded
    here and how many decisions await a judgement, the channels that are off on this machine with the command that turns
    one on, and three verbs to go on with. Where the record or the switches cannot be read it says so in one line, and says
    nothing of what it could not read. mnema switch ends each off line with the command that turns it on, and
    mnema init names the channels that begin off in two lines before its "Next" line.

  • A page for the switches, generated from the table the code reads. docs/switches.md lists every channel mnema switch
    knows, where it begins (on, or off until a person switches it on) and the command that flips it. The listing
    docs/cli-reference.md shows for mnema switch and the sentence of plugin/README.md that names the channels beginning off
    are generated from the same table and compared with it by a test: the listing said 14 channels and showed 12.

  • mnema init writes the mnema instructions into the files agent hosts read, and mnema instructions writes,
    checks and removes them.
    A short block says when to call the mnema tools (bootstrap at the opening,
    governing_rules before changing a file, record_decision when a choice is settled, capture_memory for what the
    code does not show), that a decision is born proposed and a person accepts it, that a subagent hands its decisions
    back, the shell command where the tools are not connected, and what never goes in the record; it applies only where
    the mnema tools are connected. It goes into AGENTS.md (created where there is none), into CLAUDE.md,
    .claude/CLAUDE.md and GEMINI.md where they exist, and into three files of its own:
    .claude/rules/mnema-instructions.md, .github/instructions/mnema-instructions.instructions.md (applyTo: "**")
    and .cursor/rules/mnema-instructions.mdc (alwaysApply: true). Every copy is the same text, 1,524 characters,
    between <!-- mnema:begin v2 … --> and <!-- mnema:end -->, after what a file of yours holds. A block whose text
    mnema did not write is left as it is and said (exit 1), as is a symbolic link that leaves the project or leads
    nowhere and a file that cannot be read or written (said with why and the command to try again; init still
    founds the project and prints the rest); --remove takes the block out without gluing the line you wrote after it to
    the one above, says "as it was" only when that is true, and deletes a file the block was all of; line endings
    (CRLF) are kept, and markers inside a fenced code block are an example, not a block; the alpha's <!-- MNEMA:START --> block is not recognized and is never touched: the block is added beside it and --remove leaves it. init writes the
    instructions only when it founds a project, so a block you took out stays out; mnema doctor names each file that
    lacks this version's block. The Gemini CLI extension carries the same text as its context file (contextFileName).

Changed

  • The README and the install page say they describe the next version. What has not reached npm yet is under Unreleased here.
  • The first read of a server with several projects open no longer opens the projects it does not work in. Two
    questions are put to every project of the workspace, not only to the one the session is in: where the agent left off
    (its runs are in whichever project it wrote) and whether the count of calls is switched off. Both used to open each
    project's projection, which was most of what the first bootstrap cost with nine other projects. For a project the
    connection has not otherwise read, the server now keeps the answer to both, its runs and its channel switches, in a
    small file on this machine under cache/ of the mnema home (~/.mnema, or wherever MNEMA_HOME puts it), never
    inside a project: a read writes nothing into a project it does not serve, and a locks/tree-index.json that arrives
    with a clone is never read. The file is derived and deletable, and the server believes it only while the project is as
    marked: the extent of its tails, the fingerprint of its sealed segments, the last line of each tail (so a checkout that
    swaps the live segment for another of the same size is seen) and the stamp of the code that folds them. A project that
    moved, or whose file is missing, damaged or holds rows that are not rows, is read as before. The first bootstrap
    over ten projects measured 74 ms before and 39 ms after, resume 66 ms and 34 ms (median of 15 cold starts each, the
    same machine, load average 8 on 16 cores); the answers are byte-identical to the ones the trees give, including when
    the last run is in another project than the first. The second call is unchanged. A tool that only reads may now
    leave this file in the machine's data directory, besides the projection of the project it serves and the local count
    of calls (readOnlyHint still means no byte of the record is written). The limit is the one of the projection file:
    an edit in place, to the same size, of a line before the last one of a live segment is not seen, and only
    mnema verify sees it.
  • Opening a session over a project with no stack is about 13 ms faster. (Median of 15 runs, 211 ms to 198 ms, the same 1,789 bytes of document.) mnema brief --hook loaded the
    module that installs and inspects stacks on every run; it now loads it only where a tree has a stack receipts folder or
    a stack the record adopted, and prints the same document either way. runBrief in the library takes the reader of
    stacks with outside: true (stacksReaderFor hands it).
  • The local count of tool calls is written after the tool has answered. The line used to be appended before the
    reply went out (about 21 microseconds an append, measured); it is now written in the next turn of the event loop, and
    any line still waiting is written first when the process exits, when the session closes on SIGTERM, SIGINT or the end
    of stdin, and when the count is read. A process killed by SIGKILL can still lose the lines that were waiting. Reading
    the count in the same process sees every call already answered.
  • The first read of a server that has several projects open is faster. Every tree a cold server opens used to create the
    projection's tables, drop them as the first replay began and create them again; the tables are now made once per process
    (copied from a database image where the runtime offers serialize/deserialize, created in place where it does not) and a
    fresh database is not dropped before its first replay. The first bootstrap over ten projects measured 89 ms before and
    51 ms after (median of 15 cold starts, the same machine and load); the second call is unchanged. Nothing about the record,
    its format or what a read answers changed.
  • The MCP server starts from the projection the command line and the hooks already keep. It opened every tree by
    replaying the whole record; for the two trees of the project it is in, it now opens locks/projection.db and takes
    only what was appended since, with the same checks every other reader uses (the stamp of the code, the size and
    modification time of sealed segments, the frontier of each tail), so a record changed behind the file by another
    process, a git pull or a checkout is read by the next call. The other projects of the workspace and the global tree
    stay in memory. The first bootstrap of a server over a record of 4,508 lines went from about 250 to about 40 ms
    (median of 21 cold starts, one project), and from 299 to 69 ms with nine other projects in the workspace; the second
    call is about 4 ms slower than before while the file's pages are first read, and the calls after it are equal. Because a tool that only reads now updates that file, readOnlyHint carries a second written
    exception beside the local count of calls: a cache derived from the project's own record, deletable (the next read builds
    it again), never a fact of the record, and the one thing it can miss is an edit in place, to the same size, of a line
    before the last of a live segment, which only verify sees. A live segment replaced by another branch's, even a longer one, is read again (the
    line a stored position ends on is read back and must be the entry it ended on), in the command line as in the server,
    and a file another process or version rewrote under a running server is taken again before the next answer. What the
    file does not see is an edit, in place and to the same size, to a line before the last one of a live segment
    (mnema verify is what rules on that).

Fixed

  • status stops saying a question was left without a decision when the decision was recorded in the other tree, and names the run of each tree. A session that wrote to the public and to the private tree leaves a run in each, and each run's outcome counted only its own tree: the private run said "0 decisions recorded; 1 question answered with no decision recorded after" when the decisions had been recorded in the public tree right after the answer, and status printed that run as the last one. The phrase in the private run now counts a question as left only when no tree of the project recorded a decision after it; the public run, which is signed and committed, counts the public tree's decisions only, so a decision that exists only in the private tree never changes a word of it. And status prints the last run of each tree that has one, the tree named ("In the public tree, last run ..."), where a session left runs in more than one. --json and resume are unchanged.

  • Only the process that settled a new key's identity says "This key founded an identity of its own". Several first writes of one key made together all printed it, and only one of them had founded the identity: the others found it already recorded. They now say the identity already existed, founded at the same moment by another process of this machine; a fresh clone or a restored key that takes up its own founding says what it said before.

  • A write is refused once where Qwen Code is opened in a Cursor terminal. Qwen Code hands its hooks the person's environment, so a session started in Cursor's terminal carried CURSOR_VERSION too, and the command for Cursor ran beside Qwen Code's: the same rule was handed over twice. The command for Cursor now stands aside where QWEN_PROJECT_DIR is set, and the case is held against the real Qwen Code in the host contract.

  • An agent's key is told by its fingerprint, not by where its file is kept. mnema key request --anchor <id> --key <file>
    refused a key file kept in the agents' folder by the place of the file, so a copy of the agent's key kept anywhere else was
    asked for, and enrolled, as a person's key with nothing said; mnema key enroll <line> did not ask at all where the record had
    not enrolled the key as an agent. Both now refuse (AN_AGENT_KEY, before a line is made or anything is written) a key whose
    fingerprint is one this machine keeps for an agent (agents/<name>/keys/ or agents/<name>/retired/) or one a record they
    reach enrols as an agent, and the refusal says which. It guards a person's mistake on that machine and proves nothing: a key
    kept only on another machine, or enrolled as an agent only in a record this one does not reach, is not recognised.

  • No door takes an agent key, in use or retired, into another role. mnema key enroll --checker <line> asked only whether
    the key was a member, so a copy of an agent's key retired in the record went through, and the checker.enrolled it wrote
    left the record failing verify for good, since both readers refuse a retired agent key enrolled as a checker. It now
    refuses an agent key (AN_AGENT_KEY), retired included, as the record holds it and as this machine keeps it, before
    anything is written; init declines a key registered at the key root that the record holds as an agent's.

  • Both readers refuse a key.enrolled that names an agent key. A key that holds the agent role in a record (from its
    agent.enrolled on, retired included) taken in again as a plain member, by its own identity or another one of the same
    record, signed as one, without the agent's limits; the two readers refused only what it later signed for another identity.
    FORMAT.md section 6.2 now says a key holds one role, and both readers, and the verifier page, refuse such an
    enrolment where it is written, naming it in the same words (key-enrolled-names-an-agent-key in mutate.py). It is a
    tightening after the first publication (section 7.1): records written by 0.1.0, 0.1.1 and 0.1.2 through every flow that
    enrols, retires and asks again for an agent key, and this repository's own record, hold no such fact, and a version from
    before it verifies such a record and refuses nothing. A record that never held the agent.enrolled can still take the key as
    a member, which FORMAT.md says.

  • mnema verify crosses the trees of a project for an agent key's retirement. A retirement is a fact of the record that
    holds it, so a private tree that had not received one (a machine that wrote as the agent before it pulled the committed tree's
    retirement) verified what the retired key signed there afterwards and counted it as attested. mnema verify now reads the
    trees it verifies together (the committed one, the private one, and the global one with --global): an event signed by an
    agent key another of them retired, with an at later than that retirement's, is a break of the tree that holds it, named
    with the tree that retired the key, and is not counted as attested. A tree is read a second time only when it holds such an
    event. The second reader and the page read one tree at a time and do not make this cross, and no reader sees a retirement
    written in a tree it was not given; FORMAT.md and docs/what-it-proves.md say so, and that the output does not. The
    cross has two limits, said there too: key revoke --agent writes the trees one after the other, so what the agent signed in
    a tree between two of its retirements is refused in the tree retired later; and it compares the at the signing key wrote,
    so a leaked key that writes an earlier at passes it.

  • A MNEMA_AGENT_KEY set in the environment of Claude Code now reaches the plugin's server when the agent_key option is
    empty.
    The manifest used to declare MNEMA_AGENT_KEY from the option, so an empty option set it to an empty value over the
    one the person had set. The manifest now hands the option on as MNEMA_PLUGIN_AGENT_KEY and the launcher makes it the server's
    MNEMA_AGENT_KEY only when it holds a name (an option with a name still wins, so whoever filled it signs as before); an empty
    MNEMA_AGENT_KEY counts as none. Codex, Copilot CLI and Gemini CLI, whose manifests name their host, are unchanged.

  • The files that name who signs are on the disk when their write returns. A key's two halves, the local installation id
    and the anchor are now synced (fsync, and the directory that names a new file) before the write is reported done, as
    every entry and checkpoint already were; a power cut right after a first write could leave an identity the record carried
    events of without its key or its id.

  • A key root held by another write is refused under its own code on the command line. Refused (KEY_ROOT_BUSY), as the
    MCP server already answered it, saying nothing was written and to write again; it was a bare sentence with no code.

  • Every refusal the product wrote on purpose carries its code on the command line. Refused (TAIL_BUSY), Refused (UNWRITTEN_INSTALLATION_ID) and the
    rest, decided by the same question the MCP server asks of a throw (is it a coded refusal), and not by a list of two codes; they came out as a bare sentence.

  • A refusal, a request for a person, governing_rules and the rules pushed before an edit say when the rule they stand on was
    moved apart.
    A rule two machines moved out of one state without seeing each other was shown in the state the last move
    leaves, and only show, read_record and the brief said it was disputed. Each now adds one line naming the rule;
    no verdict changes.

  • mnema why <path> shows every rule in force at the path, not only the ones that govern it. A path under a rule that
    refuses a write or asks for a person read "0 rules"; each row now says what the rule does there (governs, refuses a write,
    asks for a person), and the JSON carries it as relation. governing_rules already listed all three and is unchanged.

  • verify refuses a key no writer puts in a line, a link, a checkpoint or a tail proof. A key added beside event
    and link, inside a line's link, on a checkpoint line or in tailproof.json, with the line left canonical, is covered
    by no hash and no signature, so every one still closed and verify said "local integrity verified" (exit 0) where
    the Python reader refused the record. Both readers, and the page that verifies a record in the browser, now refuse it by name and in the
    same words (top-level keys are ['event', 'forged', 'link'], not ['event', 'link']), checked before the bytes so a
    re-spelled line with one is refused for the key; a stored block header with a key beside header and height is not
    read. FORMAT.md §4 says it, as a rule tightened after the first publication: records written by 0.1.0, 0.1.1 and
    0.1.2 hold no such key and verify as before, and an earlier version still verifies a record that has one.

  • verify and the Python reader name the same first cause on a line broken two ways. A stored line whose event is
    no object and whose link carries a fifth key, a link that is a string, and a checkpoint or a tail proof under a scheme
    neither knows were refused by both, each for a different first cause: the product checked the link's keys before the two
    objects and the scheme after the bytes. Both now check in the order FORMAT.md §4 writes down (the line an object, its
    keys, event and link both objects, the link's keys; for a checkpoint or a tail proof, the scheme before the keys and
    the bytes) and say it in the same words (event and link must both be objects, a checkpoint scheme this reader does not know: 'mnema-checkpoint/9'). No verdict changes, only which cause is named first.

  • On Windows the plugin's hooks start mnema, and a rule applies to a Windows path. Node would not start npm's
    mnema.cmd without a shell, so every command hook was silent and a gate under a rule answered that mnema could
    not be started; the handlers (and the OpenCode and Gemini plugins) now start it through a shell. An absolute path
    with a drive letter and backslashes (C:\work\repo\src\a.ts) was never read as lying under the project, so no
    rule addressed at a folder met a write there; it is now, the drive and the folders above the project compared
    without regard to case. A write is also placed by the system's own real path, which gives the long name for an
    8.3 short one and the letter case the disk keeps on Windows and macOS.
    A path with a drive or a share (C:\x, \\host\share, \\?\C:\x) is read as a Windows path only under a project root
    written that way (a Windows host always names its roots so); under any other root it is still one relative name, as before.
    A word that cmd.exe cannot be given safely (", %, ^, a line break), in the path of mnema, makes the hook
    not start it, and the refusal says so.

  • An address that is not an address is a refusal, not an internal error. A TypeError with Node's code
    ERR_INVALID_URL (a signing-token address from the environment that does not parse, for one) is now said as an
    ordinary refusal with exit 1, and no report is offered for it; any other TypeError is still a fault.

  • A linked worktree reached through a symbolic link finds its private tree. When a worktree's .git file names its
    git directory through a link and the commondir there is relative, mnema read the private tree beside the link
    instead of beside the real common directory; it now resolves the name against the real directory, as git does.

  • A handoff with no scope follows its task, and its brief with it. It landed in the public tree even when the
    task was private, and a brief of up to 64 KiB went with it into what is committed. With no --scope (or scope),
    the task handoff command and record_handoff now record in the tree that holds the task, as a move does; when no tree
    holds the task (or, over MCP, several records do), the default tree is kept and the reply says so.

  • next_actions serves who has the task and what happened last. The two facts were computed and the reply dropped
    them; they now follow the list of moves, one line each.

  • show and read_record count a task's notes the same way, over every tree this machine holds: show read only
    the tree that holds the task and missed a private note about a public one.

  • A size refusal names the field the person passed (brief, description), not the note's own text.

  • link_knowledge and the link command say a missing subject plainly for a relation that is not an address: No tree here holds <id>, so this link names nothing a reader can open. Check the id. The wording about a rule and its
    address stays for the relations that are addresses.

  • start on a task in DRAFT says that submit comes first, and any refused move names the one move from the
    current state that reaches a state where the action is legal, read off the transition table.

  • Linking a task to a path in the public tree no longer says "the rule it names". It says "the task it names", and
    link_knowledge now prints, as the command line did, where the thing the link starts from lives when that tree does
    not travel (the result carried it and the server never printed it).

  • A write of the block into an instruction file is not taken for a decision written there, and AGENTS.md,
    CLAUDE.md and GEMINI.md are not counted as decision documents of a directory mnema decision import reads.

  • mnema check run --key with a key that is not Ed25519 no longer calls it an agent's key. The refusal says that
    a checker's key is an Ed25519 one, as it says for an agent's in the commands that enrol an agent.

  • mnema doctor reads the host's .claude.json where the host keeps it. With CLAUDE_CONFIG_DIR set the file is
    $CLAUDE_CONFIG_DIR/.claude.json, and doctor read the one in your home directory, so it counted the wrong
    declarations of the mnema MCP server and listed the wrong projects.

  • The plugin's hooks no longer trust the first node of their PATH, and a gate that cannot decide a write refuses it where a rule addresses the path.
    Cursor's command-line agent puts the Node it carries (24.5.0 on 2026.09.18) in front of the PATH of a plugin's hooks;
    mnema starts through #!/usr/bin/env node, died on its own floor at its first line, and the gate read that as nothing
    to say, so a write a rule refuses was made. Now the hooks ask the first node what it is and, below the floor, run
    mnema on the first one further along that PATH that takes it (the node beside mnema first), within three seconds
    and with a second for each node that hangs on its version. Where none does, or where mnema is there and exits
    non-zero, does not answer in ten seconds (six in Gemini CLI's script and OpenCode's plugin, which also ask again at the
    next write after one failed identification), or prints what no host reads, the write is refused with the reason and the
    fix, but only where a rule IN FORCE that refuses a write or asks for a person at it addresses that path (a rule only
    proposed, rejected or superseded does not count); any other path goes
    through, a project whose only links govern is never refused, and a rule taken back stops refusing. This holds in Cursor's
    agent, Codex, VS Code, Copilot CLI, and now in Gemini CLI's script and OpenCode's plugin too, and for a fault of a
    handler itself. With no mnema on the PATH, no project, or no rule that could meet the write, nothing changes. The
    handler that hands over the document tells the session that mnema could not run, with the reason. mnema doctor has a
    node topic: the first node on the PATH and whether it takes mnema, and the Node Cursor's agent carries where it is
    on the machine. A hook whose own node cannot start, or whose handler files are missing, is still read by the host as
    nothing to say, and Claude Code's call into the server is unchanged.

  • A checkpoint or an event in a tail that names another key than the one the tail belongs to is refused, by
    mnema verify, the Python verifier and the page.
    A tail id begins with the fingerprint of its key, and only that
    key writes to it (FORMAT.md section 6, a new rule). Both readers checked a checkpoint under the key it names and bound
    its events to that key, and never asked whose tail they were in: a second key of the record, even one enrolled for
    the same person, could append its events to another key's tail and sign a checkpoint over them there, and the record
    verified. It is now refused as tail-signer-mismatch (not the tail proof's signer-mismatch), on a checkpoint and on
    every event of the tail, including those above the last checkpoint, in the same words in every reader. No record a
    mnema binary writes is touched: a writer names its tail and signs in it with one key. Records written by 0.1.0, 0.1.1 and
    0.1.2, with a person, an agent key, a checker, a second machine and a restored
    backup key, and this repository's own record, verify as before. A version from before this one still verifies a record
    that breaks the rule.

  • A .pub under keys/ that holds no key is refused by name, by mnema verify, the Python verifier and the page, and
    the Python verifier no longer crashes on one.
    A README.pub with text in it and a directory named <fingerprint>.pub
    stopped the Python verifier with a traceback, and a key file whose bytes are not UTF-8 was refused there; mnema verify
    read all three as a committed key with no tail, a note, and verified. Each is now refused under FORMAT.md section 6
    as a key file that holds no Ed25519 public key, with the reason (it is not a file, not UTF-8 at byte N, no PEM public key in it, the PEM body is not base64, not an Ed25519 SubjectPublicKeyInfo, and it cannot be read for a file with mode 000, which
    also stopped both readers with a traceback), in the same words in every
    reader, and is no longer counted as a key without a tail. Both readers read a key file by one written rule now, so a
    private key, or a key of another algorithm, is no key to either. No record a mnema binary writes is touched: records
    written by main and by this version, this repository's own record and the frozen fixtures verify as before.

  • A file under keys/ whose name starts with ._ is skipped by both verifiers, as .DS_Store is. It is the metadata
    macOS writes beside a file (AppleDouble), not a key, and refusing it made a record unverifiable for a copy that touched
    a Mac. Every other *.pub must still hold an Ed25519 key. mnema doctor names such a file so you can delete it.

  • mnema verify names every cause in a tail with a line it cannot read, as the Python verifier does. It stopped at
    the first such line and said nothing more about that tail, so a second unreadable line, a checkpoint whose signature
    fails or a missing ownership proof beside it were left out of the verdict. Every unreadable line is named now, and
    so are the tail's ownership proof, the key its checkpoints and events name, and each checkpoint's own signature; across
    a missing event line neither reader walks the hash chain or folds a content root. The level stays unreadable.

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