Skip to content

Memory operations

Keep a space's memory consolidated and compact, recover notes the consolidation dropped, back up one space, and read the activity views to spot failures.

Before you start

You need a signed-in Portal session on a Hivemind 1.7.0 instance with a configured inference provider (see Inference providers). Consolidation and compaction call that provider and may incur costs.

The words used on this page:

  • Consolidation turns pending short-term (SHORT) notes into the space's medium-term (MID) bank files, following the space's rules.
  • Compaction shortens MID files that grew past the size threshold. It keeps a full copy of the space before it changes anything.
  • MID to LONG archive indexes those retained copies into the space's long-term (LONG) memory, so earlier versions stay searchable.
Task Role it requires
Turn on or change automatic consolidation Read, Write and Manage on the space
Stop automatic consolidation without access to the space Deployment operator, on a shared space of the tenant you work in (not a personal or Project Mesh space)
Change a space's MID compaction threshold or archive setting Deployment operator, on a shared space of the tenant you work in (not a personal or Project Mesh space)
Consolidate, compact or restore notes from the Portal Read, Write and Manage on the space
Create a complete backup Deployment operator and Write on the space (a shared, non-Mesh space)
List backups Read on the space
Download a backup Read on the space, except a complete backup that records who restored the space: Manage
Delete a backup Manage on the space; not while the backup is incomplete or recovery required, nor a copy kept by compaction
Import a complete archive as a new space Deployment operator
Read Memory Operations Deployment operator

Steps

Turn on automatic consolidation

Requires: Read, Write and Manage on the space, in a signed-in Portal session.

Personal spaces inherit the instance threshold on activation and after upgrade when there is no prior policy. An explicit disable stays in effect. In a common space, automatic consolidation starts after someone holding these rights saves an enabled policy. The instance threshold is AUTO_CONSOLIDATION_THRESHOLD, 50 notes unless changed. See Configuration.

  1. Open the space, then Settings, and find Automatic consolidation.
  2. Select Edit.
  3. Under Policy, choose Inherit global to use the instance default, or Set override and enter the number of Eligible notes that starts a run.
  4. Read the notice: saving a positive threshold, or inheriting a default above 0, authorizes automatic maintenance to continue after you sign out, while your current rights on the space allow it.
  5. Select Save overrides.

Saving records a consent tied to you. The server checks every 30 seconds and starts a run when the threshold is reached, the space is idle and its cooldown has passed. Each run also compacts MID files that exceed the size threshold. In a common space, each consent allows three automatic starts. Saving the policy again while no run is active creates a new consent with a fresh allowance. The count persists across restarts. Personal spaces keep running as long as the policy and current rights allow.

The consent ends when your rights end: if you lose Manage on the space, or you are removed from the tenant, automatic consolidation stops until another rights holder saves the policy again.

To turn it off, save Set override with 0. A run already in progress may leave work for manual recovery: check Activity afterwards.

Automatic consolidation is not available for spaces in local mode without authentication, for shared Project Mesh spaces, or for legacy token setups.

Stop automatic consolidation as an operator

Requires: deployment operator. No access to the space is needed.

  1. Open Memory Operations in the Operator tools and open the space.
  2. Under Settings, next to Automatic consolidation, select Stop….
  3. Confirm in Stop automatic consolidation?.

This revokes the current consent. An operator cannot turn automatic consolidation on or retune it: only a person with Read, Write and Manage can. The stop is refused if someone saved the policy again since you opened the drawer: refresh and decide on the current consent.

Set a space's compaction threshold and archive setting

Requires: deployment operator. Applies to shared spaces only, not to personal spaces or shared Project Mesh spaces.

In Memory Operations, open the space, then Settings:

  • MID compaction threshold: choose Instance default or A value for this space and enter the Threshold in KB. The next compaction uses it.
  • MID to LONG archive: Turn off for this space… stops new archive indexing; captures already retained stay pending. Use instance default… returns to the instance policy. An operator can only turn the archive off for a space, never force it on: when the instance archive is off, the setting reads Off, paused on this instance.

Each change is confirmed in a dialog, needs a fresh identity confirmation, and is audited. It gives the operator no access to the space.

Consolidate or compact by hand

Requires: Read, Write and Manage on the space.

  • Consolidate now: open the space's Short tab (or Overview, for a space that never consolidated) and run the consolidation from the dialog Consolidate SHORT notes into MID.
  • Compact: open Settings → Maintenance, select Check size to preview which MID files exceed the limit, then Compact bank. Compaction keeps a copy of the space and replaces only the oversized files.
  • Fix Memory Bank files: Check files previews renamed and duplicate files before Apply repairs.

Agents consolidate with the MCP tool mid_consolidate; see the MCP tool reference. Clean up old SHORT notes is not available to a signed-in session: it runs only with an operator agent credential.

Restore notes from the trash

Requires: Read, Write and Manage on the space.

Each note a consolidation consumes, whether integrated or discarded by the model, is first copied to the space's trash and stays restorable for a retention window. Use it when a fact is missing from MID.

  1. Open the space, then Settings → Maintenance.
  2. Next to Restore SHORT notes, select Review trash.
  3. Find the note (preview and agent are shown), select Select note, then Restore original note.

The note comes back as a pending SHORT note with its original content and author. MID is not rolled back and no consolidation starts. A later consolidation with the same model may drop it again: record the missing fact explicitly, or change the model.

Limits on 1.7.0:

  • Retention is one instance-wide value, SHORT_TRASH_RETENTION_DAYS (default 30 days, from 1 to 3650). There is no per-space retention.
  • Agents using 1.7.0 credentials can list and read the trash (short_trash_list, short_trash_read) but cannot restore from it.
  • In local mode without authentication, the trash tools are unavailable; entries are still retained.
  • The trash is not secure erasure: the consolidation journal, backups and storage versioning may keep their own copies.

Back up and restore one space

A complete backup of one space is a single .tar.gz archive with its notes, MID files, rules, long-term memory and ontology. There is no scheduler or automatic retention. To back up or restore the whole instance, see Backup and restore.

Per-space complete backups need the S3 storage backend. A deployment that stores data in SQLite is backed up as a whole instead. Personal spaces, shared Project Mesh spaces and spaces bound to a remote long-term memory are not covered by this procedure.

Create and download a backup. Requires: deployment operator and Write on the space to create; Read to download, or Manage for a backup that records who restored the space (see below).

  1. Open the space, then Settings → Backups.
  2. Select Create backup. New writes to that space pause while accepted work settles; reads and other spaces continue. The list shows the real state: preparing, draining, capturing, verifying, then complete, failed or recovery required.
  3. Select View backups, open the backup and Download it. Check the browser's download result: the start of a download does not prove the file was saved.

A space that was created by importing an archive records who authorized that import. Complete backups taken of it afterwards carry this attribution, which only managers of the space may see, so downloading such a backup requires Manage. For a reader, Download is offered only when the backup is known to carry no such attribution: on a backup that does, or whose attribution cannot be confirmed, Download stays unavailable. Ask a manager of the space to download it.

Delete a backup. Requires: Manage. In View backups, select Delete and type the space ID. Incomplete or recovery-required backups, and the copies retained by compaction, cannot be deleted.

Import an archive as a new space. Requires: deployment operator.

  1. Open Spaces → Create space and, under Start from, choose A complete archive.
  2. Upload the archive and confirm its original space ID. The import must run on the same product version that created the archive.
  3. Follow the status in the dialog. After closing it, use Start from → Archive import status → Find import with the same ID.

The ID must never have been used on this deployment. A deleted space's ID stays reserved, so you cannot restore a deleted space under its own ID on the same 1.7.0 deployment. While an import runs, writes to every space of the tenant pause; reads continue. Schedule it accordingly. A backup is never restored over an existing space.

Read the activity views

Memory Operations (deployment operator, no grant needed) lists every space of the tenant by project, then the spaces in no project, personal spaces included.

  1. Choose the Period: 24 hours, 7 days or 30 days.
  2. Recorded failures counts failures observed during the selected period. Active incidents shows current health. An earlier failure can remain in the period total after an incident clears. A retained incident from a stale check is labelled last known until health is refreshed. On narrow screens each count has its own label.
  3. Open the space to see failed and total operations by kind, the last failure time and its category. A dash marks an unavailable count.

Memory Operations shows no note, file, rule or error text. A partial result counts in the total, not in the failures.

Inside a space, with at least Read:

  • Overview follows the space live: 24-hour indicators, the 20 latest notes and the consolidation queue. A value the server does not report reads —.
  • Activity lists consolidation, compaction and long-term indexing work, including Pending files for archive captures waiting to be indexed. Retry consolidation… appears on a failed consolidation for someone with Read + write whose own job it was, or with Manage for any job; Retry capture… needs Manage. Each requests a new attempt; a request is not a success, so refresh to see the outcome.
  • Long shows the long-term memory state, with an Indexing diagnostic when indexing fails.

Audit (Operator tools) shows recent events of the running Core process only; it is cleared by a restart.

Verify

  • Settings → Automatic consolidation shows the effective threshold, its source (Space override or Instance default) and the execution state, for example Waiting for more eligible notes. or The last automatic run completed.
  • Memory Operations → space → Settings shows the saved compaction threshold, archive setting and the consent's state.
  • Activity shows the job of a run you started, with its own result for the follow-up compaction.
  • Settings → Backups shows a new backup as complete before you rely on it.

Troubleshoot

Symptom Cause Fix
Automatic execution has not been authorized for this space. There is no current authorization A person with Read, Write and Manage saves a policy
Automatic consolidation stopped after a person left Their consent ended with their rights Another rights holder saves the policy again
Automatic work is paused: its finite budget or attempt quota cannot fit this run. The consent's allowance is spent, or a run needs inspection Inspect Activity; a manual consolidation or compaction that succeeds resumes automatic work. Changing the threshold alone does not
An operator's setting change is refused with control_conflict The value changed since the drawer opened, or the space is a Project Mesh space Refresh and decide on the current value
A restore from the trash answers pending_consolidation or busy A consolidation still holds the source note Wait for it to finish, then retry
Create backup is missing Your session is not an operator session, or you lack Write on the space Get the role and the grant, then sign in again
Download is unavailable on a complete backup you can read The backup records who restored the space, or that cannot be confirmed; it needs Manage Ask a manager of the space to download it
An archive import is refused The ID was used before, the product version differs, or the deployment does not use S3 Import under a never-used ID on a matching version
A backup stays recovery required A write could not be settled during capture Follow Backup and restore; deleting the backup does not clear it

The complete contracts are in Memory operations, Recoverable SHORT trash and Manual complete space backups.

Next

Active incidents on the Memory Operations home

The first three incidents are ordered by failed rebuild, blocked capture, unavailable Graph service, unavailable index, required rebuild and rebuild in progress. Expand the list to see the rest. Personal and sealed spaces skip the background Graph check by design. Their Operations detail identifies that check as inapplicable. The archive index and pending captures still require verification. Stale readings leave coverage partial. A fresh service failure raises a Graph incident. A capture becomes actionable on a structural error, a worker pause, or the third consecutive failed attempt. The period filter applies to recorded failures and historical activity. Current health is refreshed independently. Read the storage column as SHORT and MID bytes, and the Vault column as indexed vectors and retained source bytes. Missing measurements are marked.

Use Inspect issue for the diagnostic code and next step. Use Rebuild index… for a shared local space when its verified archive needs rebuilding. This uses the operator's own session and audit trail. Personal spaces, Mesh spaces and paused maintenance have no operator rebuild action. Check for the new active index after the request. Source catalog mismatches need inspection of backups and retained objects before another rebuild.

The inventory and current health load independently. Spaces and projects arrive in pages of up to 64 each. The Portal checks up to eight spaces per health request, shows discoveries as they arrive, and reports progress until it reaches the last space. Changing the history period or the displayed table page keeps the health check running. After a failed request, Refresh space health resumes the check. A stale sample cannot authorize a rebuild.