Skip to content

v0.1.7

Choose a tag to compare

@github-actions github-actions released this 09 Nov 20:03
365ec8c

Changed

  • The MCP server's instructions open with what to do. Their first 250 characters now say to call record_decision
    when a choice is settled that someone could later question, then what mnema is. A host may show a server by no more
    than its opening: Codex 0.167 lists each server it defers by its first 250 characters. The rest of the text says what
    it said, a little shorter, and stays under 2,048 characters.

  • The mnema command starts in about half the time. The bin of @mnema/code is now dist/bundle/cli.js, one
    bundle of the command and of the code it reaches, its dependencies included (all but string-width), split into
    chunks so the Node version check still runs before anything else is loaded. Median of 20 starts on one machine,
    before and after: mnema --version 179 to 91 ms, verify 197 to 110 ms, decision record 246 to 153 ms, brief
    (what the session hook runs) 208 to 119 ms, and the MCP server's reply to initialize 308 to 164 ms.

  • The dependencies the command runs are inside the package. They are covered by the provenance of @mnema/code,
    not each by its own: npm still installs the declared dependencies and npm audit signatures still checks them, but
    the command does not load them. The package now carries THIRD-PARTY-NOTICES.md, with the version and the license
    of each package the bundle carries, and Install says it.

  • A stack trace names a chunk of the bundle (a file of dist/bundle/ and a line in it), not a file of the
    compiled output. The bundle is not minified, so the line reads as the code it came from.

  • From source, the binary is packages/code/dist/bundle/cli.js. Build from source and
    the site page name it; the compiled dist/cli.js is still built and still runs.

  • The text a session opens with carries this machine's private rules, marked as such. After the committed
    record's rules, the copy the plugin hands a session and a subagent (mnema brief --hook) ends with a section,
    Recorded privately on this machine, that lists by name the decisions in force and the adopted patterns of this
    machine's private tree and says they are not committed. Each private decision is labelled private ADR-<n> with
    its id, never the bare label, since the private tree numbers its own and its ADR-1 is not the committed ADR-1.
    It is the first part cut at the hook's ceiling, and says what it left out. A new switch, private-rules, on to
    begin with, turns it off: mnema switch off private-rules gives back the line that only counts them. The file
    mnema brief prints is unchanged, and the machine's global tree reaches neither.

  • The host contract holds Codex 0.167.0, Claude Code 2.1.311 and Copilot CLI 1.0.108. Codex 0.167 lists a server in a
    developer message, <tools> Deferred tool namespaces:, and no longer in the description of its search entry (699
    bytes, 151 tokens), so the cases read both. Claude Code 2.1.311 asks again for a summary when a reply carries no
    summary block, so the compaction case answers with one.

Fixed

  • A private rule's refusals and askings stay private. A rule recorded with --scope private that refused a write
    or asked for a person used to leave its channel.refused or channel.asked in the public tree, with the rule's id,
    and so in the repository's git. The fact is now written to the tree that holds the rule, by the hook command and by
    the MCP tool alike; a public rule at the same path keeps its fact in the public tree. Facts already written stay as
    they are.
  • Rejecting the successor of a supersede says what it leaves. The reject move, from the command line
    (decision move) and from decision_transition, now names the decisions the rejected one had replaced: they stay
    superseded, so nothing is in force on that subject.
  • show and read_record name every decision a successor replaced. A decision that superseded two or more
    printed only the last; it now prints a supersedes line for each, and the JSON carries the others in
    alsoSupersedes.
  • A line the record cannot read is named when a command meets it, a switch included. Switching a channel off with
    an unreadable stored line in a tail is still refused, like every write, and now says so in words: the line and its
    position in its tail, which record it closes, the ways out (update mnema, restore the line from history or the file
    from a copy), and that mnema verify lists every such line. There is no command that repairs a line.
  • rules and why say when the rules are not pushed. With edit-rules-push switched off, a path that a
    rule governs gets a line on the second stream: those rules are not handed to an agent when it edits there.
  • mnema record commit carries the record's README when mnema itself rewrote it. A project founded with an older
    .mnema/README.md has it replaced by the current page at the next write, and the commit that record commit cut
    left that file out, so the rewrite never reached git through it. The commit now carries the README.md and the
    .editorconfig of .mnema/ when their bytes are exactly the text this mnema writes; a page you edited stays out
    and is still named as left out.

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