Skip to content

Documentation navigation

Portal Memory Management

Configure Team memory policy and curate project skills, insights, and resources.

#Portal Memory Management

As agents run, they accumulate memory: things they have learned, reusable procedures, and supporting documents. In the Developer Portal web UI, you can set how much is kept, clean up stale memory, and promote valuable lessons for other agents.

This guide covers those memory operations in the mAIvn Developer Portal.

#Scope

Portal memory management is split across:

  • Team-level policy and purge controls
  • Project-level memory assets (skills, insights, resources)

Use Team settings for governance. Use project memory pages for operational curation.

Portal curation sits on top of the runtime memory split:

  • the recent-history tail stays with the originating thread_id, while facts recalled from earlier conversations are scoped by owner, project, agent and swarm and cross threads for the same user
  • skills and resources, along with promoted insights, are reusable assets scoped to agent, swarm, project, or org

#Team Memory Policy

Open the Team Settings page and scroll to the Memory Management section.

Controls:

  • an on/off switch for team memory features
  • a persistence ceiling, one of:
    • No storage (none in the API)
    • Vector only (vector_only)
    • Vector and graph (vector_plus_graph)
  • optional retention windows, in whole days:
    • vector retention days, 1 to 730 (available once the ceiling allows vector storage)
    • graph retention days, 1 to 365 (available only with the vector and graph ceiling)

The Portal saves these as your team's memory policy, and the platform enforces it on every run your team makes. It overrides whatever the SDK asks for.

  • Memory switch. With the switch off, runs for your team stop recalling and storing memory, the same as an agent that sets MemoryConfig(enabled=False).
  • Persistence ceiling. A run can store at most what the ceiling allows. A MemoryConfig that asks for more is lowered to the ceiling, never raised. With No storage, runs store nothing new.
  • Retention windows. Recall never returns a record past its window, even before cleanup removes it. Vector records age from their last update. Graph assertions age from when their source observed them. Skill and insight lists apply the same vector window. An hourly cleanup then deletes what has expired.
  • Legal holds. Cleanup deletes nothing for a team while a legal hold covers the team, any of its projects or its sole owner.
  • Not configured. A team that has never saved a policy shows Not configured, and the memory-policy API returns configured: false. Its runs use their own MemoryConfig settings, with no ceiling. Once you save a policy, the policy applies.

#Writes the policy refuses

Memory you add yourself is checked against the policy too. These calls are refused when the memory switch is off or the ceiling is No storage:

  • POST /v1/memory/skills
  • POST /v1/memory/insights
  • promoting an insight
  • uploading a resource

The refusal is HTTP 403 with the code memory_persistence_disabled, and nothing is stored. If the platform cannot read the policy, it answers HTTP 503 with memory_policy_unavailable instead, and does not store the write. Listing skills and insights also returns memory_policy_unavailable in that case. You can retry a 503. A 403 stays until someone changes the policy. See Errors and exceptions.

#Team Memory Purge

On the same Team Settings page, scroll to the Memory Purge section.

You can purge persisted memory by:

  • Team scope (default)
  • project scope (project_id)
  • session scope (session_id)

Purge requires explicit confirmation token: PURGE_MEMORY. The result reports counts of what was removed (memory records, enrichment events and graph edges), not the content. A purge can be refused with deletion_unavailable. Retrying will not change that, so contact support.

To delete one end user's memory rather than a whole scope, call client.memory.delete_user(user_id) from the SDK. See Memory and Recall.

#Project Memory Skills

Path: Project -> Memory -> Skills

Skills are reusable execution patterns with:

  • scope (agent, swarm, project, org). The Portal labels org as Team, and agent or swarm scope needs the agent or swarm ID
  • one to eight structured steps, entered as a JSON array
  • preconditions/postconditions
  • status lifecycle (active, deprecated, quarantined)

Create, edit and delete are available from the page. Delete asks you to confirm, and the list then shows the skill as deprecated. Use skills to stabilize repeated workflows and improve retrieval quality for known procedures.

#Project Memory Insights

Path: Project -> Memory -> Insights

Insights capture operational lessons and warnings with:

  • insight types (lesson, warning, optimization, failure_pattern)
  • a relevance score from 0 to 1
  • an optional TTL in days
  • staged scope promotion (agent/swarm -> project -> org)

The SDK model also has a half_life_days decay setting. The Portal form does not expose it.

Operational model:

  • auto-generated insights start narrow (agent or swarm)
  • promote to project when the lesson should benefit future threads across the project
  • promote to org only when the lesson is broadly reusable across teams

Promotion creates a new insight at the wider scope, marked as promoted, and leaves the original in place.

#Project Memory Resources

Path: Project -> Memory -> Resources

Resource capabilities:

  • add a resource by uploading a file. The name and MIME type default from the file. A description, tags and a sharing scope are optional
  • edit name, description, tags and scope
  • bind to agent or swarm, and rebind to Portal scope
  • soft-delete and restore (only Portal-scoped resources can be deleted, so rebind an agent or swarm resource first)
  • filter by binding or status, and show cleanup candidates (unbound or idle resources)
  • open a resource to see its extraction stats, version chain and metadata

Binding types visible in the portal include portal, agent, swarm, message, and unbound.

The Portal uploads files only. To replace a resource's content, upload the new bytes with the SDK under the existing resource ID. See SDK Resource Configuration.

Versioning is content-hash based. Re-uploading or binding identical bytes reuses the existing non-deleted resource. Uploading new bytes under an existing resource_id creates a new registered version and marks the previous active row superseded.

  1. Set Team memory ceiling first.
  2. Keep project defaults conservative (glimpse/focus) until needed. The ceiling still caps them.
  3. Curate high-value skills and resources by scope.
  4. Use insight promotion to move durable lessons from agent/swarm to project, then to org only when justified.
  5. Schedule periodic cleanup of unbound or superseded resources.