Adopt a predefined policy bundle, replacing the current policy.
memanto policy apply-preset
Adopt one of the shipped presets as the agent’s expiry policy. The preset is
printed in full first, then you are asked to confirm — so the answer is an
informed one rather than a blind yes.
memanto policy apply-preset NAME [OPTIONS]
Arguments:
NAME - Preset name: conservative, balanced, or aggressive (required)
Options:
-a, --agent TEXT - Agent identifier (defaults to active agent)
┌─────────────────────────────────────────────────────────────┐│ Preset: balanced ││ Sensible defaults for a working agent: transient state ages ││ out in weeks, semantic knowledge in months, durable truths ││ never. │└─────────────────────────────────────────────────────────────┘ Retention by type Rules … full table and rules printed here …Purge: disabled — expired memories are kept forever.Agent: my-agentThis replaces the entire policy for 'my-agent'.Adopt preset 'balanced'? [y/N]: yAdopted preset 'balanced' for 'my-agent'.Preview what this would expire: memanto policy apply --dry-run
Adopting a preset replaces the entire policy, including any rules you wrote
yourself. Declining the prompt writes nothing.
Notes:
Adopting a preset expires nothing on its own — run memanto policy apply afterwards, or let the nightly schedule job pick it up.
The resulting policy is written to ~/.memanto/policies/<agent-id>.yaml and can be edited by hand.