Settings → Governance
Four things a memory needs a human to rule on live here: which files may be flagged as duplicates of each other, which folders two vaults are both indexing, which apps were allowed to read a device on your home network, and which apps hold a token on the agent door. The rail entry is Governance. The page is titled Governance and its subtitle reads What counts as a duplicate, the folders two vaults share, the devices of the local network and the connected apps.
The page has three tabs, Duplicates, Access and Diagnostic port. The tab you leave it on is the one it reopens on.
Nothing on this page deletes a file. The hint at the bottom of the first card says it: Detection flags duplicates. The file to keep is chosen by hand.
While the configuration loads the page says Loading…. A read or write failure is printed at the top: Could not read the duplicate-detection settings. or Could not save the duplicate-detection settings. After a read failure, Save & rescan stays greyed.
Reset to defaults
At the top right of the header, Reset to defaults refills the two lists below with the factory values. It does not save: press Save & rescan afterwards or the reset is lost.
Duplicates
Detection rules
The first card, Detection rules, holds the two lists and the save button.
Document file types
Extensions counted for duplicates by name, one per line, no dot. Empty: every type.
A text area, one extension per line. The default list is the document
formats: adoc, asciidoc, markdown, md, mdx, org, rst, tex,
text, txt. Two files with the same name are only compared by name when
their extension is in this list. That is how index.html in ten projects
stops being ten duplicates. The meaning signal still finds the same
document written in two languages.
Ignored file names
Names left out of detection, one per line. For example: readme.md, package.json.
A text area, one file name per line. The default list covers the files every
project carries: package and lock files (package.json, pnpm-lock.yaml,
yarn.lock…), entry modules (index.ts, main.ts, app.tsx…), web
scaffolding (index.html, favicon.ico, robots.txt, style.css…),
tooling configuration (tsconfig.json, .gitignore, vite.config.ts,
dockerfile, .env…) and repository documents (readme.md, license,
changelog.md, contributing.md…). Every tsconfig.<name>.json file is ignored
whatever the list says.
Save & rescan
Save & rescan (it reads Saving… meanwhile) writes both lists and starts a duplicate rescan. On success the button line shows ✓ Saved, rescanning.
Before saving, the lists are normalised: entries are split on new lines, commas and spaces, lowercased and deduplicated. The leading dot of an extension is dropped and the lists are sorted. The text areas are rewritten with the result, so what you see after saving is exactly what is stored.
Cross-vault folder overlap
Two vaults indexing the same folder store each file twice. Resolving keeps the most specific vault and removes the folder from the broader one. Purged duplicates are logged reversibly.
This analysis never runs on its own when you open the page: it is heavy enough to freeze the panel, so it waits for the button. Until then the card reads No scan yet. The scan lists the overlapping folders.
- Analyze vaults runs the first scan. Afterwards the button is Rescan. It reads Scanning vaults… while running.
- With no overlap: ✦ No overlapping folder.
- One card per overlap: the path in question, then kept by {winner}, excluded from {loser}, and in warning colour {n} duplicate chronicles. Each card has its own Resolve button.
- Resolve all appears only when overlaps were found and resolves every card the same way, the most specific vault winning everywhere. Both read Resolving… meanwhile.
- On success: ✓ Resolved: {n} duplicate chronicles purged, and the list rescans by itself. Failures say Overlap scan failed or Overlap resolution failed.
Resolving excludes the shared sub-folder from the broader vault (as an ignore rule on that vault) and purges the duplicate chronicles the broader vault held for it. The files on disk are untouched, and each purge is written to the provenance log as a reversible ruling, never silently. The vault that keeps the folder is the more specific one. Check the kept by line before you click if that is not the vault you wanted.
See Vaults for how a vault's watched folders are declared, and DocWatch for what happens to a file once it is watched.
Access
Local network devices
Apps allowed to read a device on the local network, read only. Revoking cuts access at once.
There is nothing to add here. A cartridge that wants to reach a device on your network asks you the first time, in a native prompt. This card is where those grants are listed and closed.
- While the list loads: Reading the list…. If it cannot be read: Could not read the list: followed by the error. An unreadable list is never shown as empty, because that would tell you your network is closed while it may be open.
- Empty: No app allowed. A request appears the first time an app tries.
- Otherwise, one card per app, listing each host it may read, with a Revoke button per host (Revoking… while it works). Every Revoke button is greyed while one is in flight.
Revoking takes effect at once for the app, and a background watch the app runs picks up the revocation on its next pass.
Agent door apps
An agent registers itself on the local SDK port and gets a token valid for 24 hours. Revoking closes its connections: it must ask again.
- While the list loads: Reading the list…. If it cannot be read: Could not read the list: followed by the error code.
- Empty: No app is registered on the agent door.
- Otherwise, one card per app: its name and version, its id, then either {{n}} live connection(s) or No open connection, token valid. An app that comes with the OS adds shipped with Mnemosyne. The scopes it was granted are listed underneath.
- Revoke (Revoking… while it works) closes the app's connections. The
outcome is printed above the list, in one of three sentences:
- “{{app}}” is cut off. Its permission will be asked again on its next connection.
- Connections of “{{app}}” closed, but its consent could not be withdrawn. It will register again on its next connection.
- “{{app}}” was not registered.
The middle sentence is the one to watch: the connections are closed, and the app will come back on its own.
Diagnostic port
The app keeps a journal of the web requests it sends, each with its reason. The third tab, Diagnostic port, holds one card of the same name. Its switch lets an agent in your IDE read that journal.
Lets an agent in your IDE read the journal of what the app sends over the network, through the Mnemosyne MCP server, read only. The journal itself always runs and stays on this machine. An IDE connected to a cloud model sends what it reads to that cloud.
- While the setting loads: Reading the setting…. If it cannot be read or changed: The setting could not be read or changed: followed by the error.
- The switch reads Open to agents. Under it, the state reads Closed, or Open since followed by the date and time.
- While the port is open, a badge reads Diagnostic port open in the title bar. A click on the badge closes the port.
The port is closed by default. Only you can open it, here: an agent cannot open it for itself. Once it is open, three read-only tools of the MCP server answer the agent:
mnemosyne_egress_journal: the journal lines over a time window.mnemosyne_egress_expected: the list of hosts the app may contact, with the reason, the trigger, the data that leaves and where to turn it off.mnemosyne_egress_unexpected: the hosts that no declared reason explains.
See Connect Claude to Mnemosyne OS to set up the MCP server.
The journal is written all the time, with the port open or closed, so the app cannot know when you check. To check it, compare it with a capture taken by a tool the app does not control. The diagnostic port page and its audit kit show how, on Windows.