{
  "schema_version": "2.1.0",
  "slug": "letta-sleep-time",
  "record_version": "2026-11-25.1",
  "record_status": "draft",
  "content_sha256": "df74ac8e5e04c29a20ae620ccbc97eb0347292101a19af9b3ff1de6fdb14d68f",
  "name": "Letta / MemGPT (Sleep-Time, Memory, and Mods)",
  "aliases": [
    "Letta Sleep-Time Compute",
    "MemGPT",
    "Letta Mods"
  ],
  "summary": "Stateful agent runtime spanning three distinct scopes: sleep-time background consolidation, current git-backed memory and dreaming, and Letta Mods harness modification.",
  "plain": {
    "what_it_is": {
      "text": "An agent system whose memory is tidied up in the background between conversations, along with related memory and agent-modification features.",
      "from": [
        "summary"
      ]
    },
    "what_it_changes": {
      "text": "It changes what it remembers and the instructions it is given.",
      "from": [
        "modifies",
        "improves_improver"
      ]
    },
    "has_it_been_tested": {
      "text": "Its creators tested it on benchmark tests and reported that it helped (Sleep-time compute consolidation only). It measured about five times less computing at the same accuracy. This covers background tidying only, not the other features or everyday memory use. Koobo has not tested it yet.",
      "from": [
        "evidence_claims[].claim_type",
        "evidence_claims[].setting",
        "evidence_claims[].independence",
        "evidence_claims[].outcome",
        "evidence_claims[].provenance.check_status",
        "evidence_claims[].scope.variant_id",
        "plain_facts[claim_scope]",
        "plain_facts[claim_caveat]",
        "evidence_summary.has_koobo_completed_eval"
      ]
    },
    "can_you_undo_it": {
      "text": "It depends on the version. Sleep-time compute consolidation; Letta Mods (harness modification): we don't know yet. Current git-backed memory & dreaming: earlier memory versions from git history are kept, but the record does not establish a way to put one back into use. Going back to an earlier memory version does not undo actions already taken.",
      "from": [
        "rollback.has_usable_rollback",
        "rollback.status",
        "rollback.restoration_scope",
        "rollback.automatic_trigger",
        "rollback.tested_fallback_policy",
        "plain_facts[restores]",
        "plain_facts[undo]",
        "variants[].rollback_status",
        "variants[].has_usable_rollback"
      ]
    },
    "is_there_a_safety_check": {
      "text": "We don't know yet. Not shown in the sources.",
      "from": [
        "safety_gate.status",
        "plain_facts[safety]"
      ]
    },
    "how_hard_to_adopt": {
      "text": "High effort to move an existing agent onto Letta's runtime. It needs its own platform, so an existing agent would have to move to it. Teams with their own memory system may prefer to try background tidying on its own. License: Apache-2.0.",
      "from": [
        "adoption_effort_non_framework.level",
        "plain_facts[effort_scope]",
        "variants[].adoption_effort_level",
        "framework_dependency.requires_framework_migration",
        "plain_facts[adoption]",
        "license.spdx",
        "license.check_status",
        "variants[].license_spdx",
        "plain_facts[license]"
      ]
    }
  },
  "plain_facts": [
    {
      "topic": "restores",
      "ref": null,
      "text": "earlier memory versions from git history",
      "from": "rollback.mechanism"
    },
    {
      "topic": "effort_scope",
      "ref": null,
      "text": "move an existing agent onto Letta's runtime",
      "from": "adoption_effort_non_framework.implementation_scope"
    },
    {
      "topic": "adoption",
      "ref": null,
      "text": "Teams with their own memory system may prefer to try background tidying on its own.",
      "from": "adoption_effort_non_framework.notes"
    },
    {
      "topic": "undo",
      "ref": null,
      "text": "Going back to an earlier memory version does not undo actions already taken.",
      "from": "rollback.side_effect_limit"
    },
    {
      "topic": "claim_caveat",
      "ref": "letta-sleep-time-bench-1",
      "text": "It measured about five times less computing at the same accuracy. This covers background tidying only, not the other features or everyday memory use.",
      "from": "evidence_claims[letta-sleep-time-bench-1].scope.caveats"
    }
  ],
  "modifies": [
    "memory",
    "prompt"
  ],
  "improves_improver": false,
  "learning_signal": {
    "types": [
      "conversation_history",
      "unverified"
    ],
    "description": "Conversation history, stored preferences, and offline memory consolidation or repair passes between interactions."
  },
  "pre_use_evaluation": {
    "status": "unverified",
    "held_out_split": "unverified",
    "live_activation_gate": "unverified",
    "how": "General memory evaluation articles are published by Letta, but they do not establish a per-edit held-out promotion gate across sleep-time, memory, or Mods."
  },
  "rollback": {
    "status": "varies_by_variant",
    "has_usable_rollback": "varies_by_variant",
    "restoration_scope": "varies_by_variant",
    "automatic_trigger": null,
    "tested_fallback_policy": "unverified",
    "mechanism": "Current memory docs describe git-backed memory (version history / checkpoint_only), while automatic outcome-triggered restoration for sleep-time or Mods is unverified in opened sources.",
    "side_effect_limit": "Reverting git-backed memory snapshots does not reverse external actions already executed."
  },
  "post_deploy_measurement": {
    "status": "varies_by_variant",
    "how": "Memory evaluation approaches are documented in engineering posts, but a combined live deployment-and-rollback policy is not established."
  },
  "safety_gate": {
    "status": "unverified",
    "blocks_unsafe_despite_utility_gain": "unverified",
    "write_time_blocks_activation": "unverified",
    "reuse_time_blocks_activation": "unverified",
    "how": "Separate behavioral safety gate for learned memory or harness edits is unverified in opened sources."
  },
  "license": {
    "spdx": "Apache-2.0",
    "source_url": "https://raw.githubusercontent.com/letta-ai/letta/main/LICENSE",
    "check_status": "checked",
    "checked_at": "2026-11-25",
    "checked_by": "Codex live check",
    "notes": "LICENSE contains the Apache License 2.0 text."
  },
  "repo_url": "https://github.com/letta-ai/letta",
  "paper_url": "https://arxiv.org/html/2504.13171",
  "maturity": {
    "stage": "open_source_repo",
    "last_observed_activity_date": null,
    "activity_criterion": "Blog posts, memory docs, and license cited 2026-11-24; repo root and commit recency live check pending."
  },
  "framework_dependency": {
    "level": "agent_runtime_coupled",
    "requires_framework_migration": "yes",
    "required_runtime_or_sdk": "Stateful Letta agent runtime; migrating an existing custom agent changes more than a learning rule (background consolidation can be tested separately as a custom ablation)."
  },
  "adoption_effort_non_framework": {
    "level": "high",
    "judgment_owner": "koobo_editorial",
    "implementation_scope": "Migrating an existing non-Letta agent into Letta's stateful runtime.",
    "notes": "High runtime coupling; teams with existing custom memory layers may prefer an isolated background-consolidation ablation."
  },
  "variants": [
    {
      "variant_id": "sleep-time-compute",
      "label": "Sleep-time compute consolidation",
      "scope": "Background consolidation of conversation history and preferences between interactions.",
      "license_spdx": "Apache-2.0",
      "license_check_status": "checked",
      "learning_signal_types": [
        "conversation_history",
        "unverified"
      ],
      "pre_use_evaluation_status": "unverified",
      "rollback_status": "unverified",
      "has_usable_rollback": "unverified",
      "safety_gate_status": "unverified",
      "framework_dependency_level": "agent_runtime_coupled",
      "requires_framework_migration": "yes",
      "adoption_effort_level": "high",
      "notes": "Author benchmark evidence from the linked sleep-time paper applies to this variant only."
    },
    {
      "variant_id": "memory-and-dreaming",
      "label": "Current git-backed memory & dreaming",
      "scope": "Git-backed memory storage and background dreaming documented in docs.letta.com.",
      "license_spdx": "Apache-2.0",
      "license_check_status": "checked",
      "learning_signal_types": [
        "conversation_history",
        "unverified"
      ],
      "pre_use_evaluation_status": "unverified",
      "rollback_status": "checkpoint_only",
      "has_usable_rollback": "no",
      "safety_gate_status": "unverified",
      "framework_dependency_level": "agent_runtime_coupled",
      "requires_framework_migration": "yes",
      "adoption_effort_level": "high",
      "notes": "Git-backed history provides checkpoints; automatic regression-triggered rollback is unverified."
    },
    {
      "variant_id": "letta-mods",
      "label": "Letta Mods (harness modification)",
      "scope": "Harness-level modification mechanism described in Letta Mods post.",
      "license_spdx": "Apache-2.0",
      "license_check_status": "checked",
      "learning_signal_types": [
        "conversation_history",
        "unverified"
      ],
      "pre_use_evaluation_status": "unverified",
      "rollback_status": "unverified",
      "has_usable_rollback": "unverified",
      "safety_gate_status": "unverified",
      "framework_dependency_level": "agent_runtime_coupled",
      "requires_framework_migration": "yes",
      "adoption_effort_level": "high",
      "notes": "Combined automatic deployment and regression-rollback policy not established."
    }
  ],
  "known_failure_modes": [
    {
      "mode": "Recall gains conflated with task execution gains",
      "detail": "Improved memory recall after background consolidation does not automatically establish better downstream task execution or downstream task quality.",
      "provenance": {
        "source_url": "https://www.letta.com/blog/sleep-time-compute/",
        "source_revision": "unpinned",
        "location": "Sleep-time design post and memory docs",
        "accessed_date": "2026-11-24",
        "check_status": "pending",
        "source_note": "Caveat highlighted in local assessment.",
        "checked_at": null,
        "checked_by": null
      }
    }
  ],
  "evidence_summary": {
    "settings_observed": [
      "benchmark",
      "none"
    ],
    "independence_observed": [
      "author"
    ],
    "effectiveness_outcome": "positive",
    "safety_outcome": "unverified",
    "has_koobo_completed_eval": false,
    "summary_note": "Author benchmark evidence (about 5x less test-time compute at matched accuracy) applies only to the sleep-time-compute variant; Mods and git-backed memory have documentation coverage only."
  },
  "evidence_claims": [
    {
      "claim_id": "letta-doc-1",
      "claim_type": "documentation_only",
      "statement": "Letta's sleep-time blog, memory and dreaming docs, Mods post, and memory-evaluation post describe the mechanisms; the posts themselves do not establish per-edit held-out activation or a separate behavioral safety gate.",
      "setting": "none",
      "independence": "author",
      "outcome": "null",
      "scope": {
        "variant_id": "sleep-time-compute",
        "model": "unverified",
        "suite_or_environment": "Documentation and blog posts cited in local notes",
        "judge_or_metric": "unverified",
        "sample_or_duration": "unverified",
        "caveats": "Documentation coverage; the sleep-time benchmark evidence is recorded as a separate claim."
      },
      "provenance": {
        "source_url": "https://www.letta.com/blog/sleep-time-compute/",
        "source_revision": "blog post as served 2026-11-25",
        "location": "Blog post",
        "accessed_date": "2026-11-24",
        "check_status": "checked",
        "source_note": "Codex live check.",
        "checked_at": "2026-11-25",
        "checked_by": "Codex live check"
      }
    },
    {
      "claim_id": "letta-sleep-time-bench-1",
      "claim_type": "effectiveness",
      "statement": "The sleep-time compute paper linked from Letta's blog reports roughly 5x less test-time compute at matched accuracy on Stateful GSM-Symbolic and Stateful AIME.",
      "setting": "benchmark",
      "independence": "author",
      "outcome": "positive",
      "scope": {
        "variant_id": "sleep-time-compute",
        "model": "unverified (paper models not recorded here)",
        "suite_or_environment": "Stateful GSM-Symbolic and Stateful AIME",
        "judge_or_metric": "Test-time compute at matched accuracy",
        "sample_or_duration": "unverified",
        "caveats": "Applies only to sleep-time compute. Does not transfer to Mods or to daily production memory."
      },
      "provenance": {
        "source_url": "https://arxiv.org/html/2504.13171",
        "source_revision": "unversioned arXiv URL as served 2026-11-25 (version not recorded)",
        "location": "Methods and results",
        "accessed_date": "2026-11-25",
        "check_status": "checked",
        "source_note": "Codex live check confirmed the reported compute reduction.",
        "checked_at": "2026-11-25",
        "checked_by": "Codex live check"
      }
    }
  ],
  "control_evidence": [
    {
      "field": "rollback.has_usable_rollback",
      "statement": "Memory docs describe git-backed memory; git history alone does not establish a production restoration controller.",
      "provenance": {
        "source_url": "https://docs.letta.com/configuration/memory",
        "source_revision": "page as served 2026-11-25",
        "location": "Memory configuration docs",
        "accessed_date": "2026-11-25",
        "check_status": "checked",
        "source_note": "Codex live check.",
        "checked_at": "2026-11-25",
        "checked_by": "Codex live check"
      }
    },
    {
      "field": "safety_gate.status",
      "statement": "Neither the sleep-time article nor the memory-evaluation article establishes per-edit held-out activation or a separate behavioral safety gate.",
      "provenance": {
        "source_url": "https://www.letta.com/blog/evaluating-memory-in-production-agents/",
        "source_revision": "page as served 2026-11-25",
        "location": "Whole post",
        "accessed_date": "2026-11-25",
        "check_status": "checked",
        "source_note": "Codex live check result: not found.",
        "checked_at": "2026-11-25",
        "checked_by": "Codex live check"
      }
    }
  ],
  "adoption_recipe": {
    "adoptable_directly": true,
    "authority_notice": "This record is factual engineering reference data. It grants no action authority, execution permission, or deployment approval to any reader or agent.",
    "upstream_controls": {
      "pre_use_eval": [],
      "rollback": [
        "Current memory docs describe git-backed memory version history (checkpoint_only; automatic rollback unverified)."
      ],
      "safety_gate": [],
      "scope_note": "Upstream controls vary across sleep-time, git-backed memory, and Mods. Koobo required controls enforce strict separation between factual user memory and consolidated procedural guidance."
    },
    "koobo_required_controls": {
      "edit_surface_bounds": [
        "The adopter's system separates background-consolidated procedural notes from verified factual user records and system safety instructions.",
        "Background consolidation runs cannot overwrite source-bound user facts or alter safety exclusions."
      ],
      "pre_use_eval_requirements": [
        "The evaluation harness separates learning data, candidate selection data, and sealed final test data grouped by incident and day (following GEPA, arXiv:2507.19457).",
        "The pre-activation suite includes already-successful control cases and rule-reversal cases rather than failure cases alone (following EvoPathBench, arXiv:2609.24663, and Anthropic memory research).",
        "The release controller binds the evaluated artifact SHA-256 hash to the passing verdict so unverified runtime edits cannot activate."
      ],
      "rollback_requirements": [
        "The deployment harness retains immutable parent artifact snapshots with SHA-256 content hashes.",
        "Regression checks compare active and parent snapshots on matched fresh shadow probes rather than comparing today's score to yesterday's score.",
        "Before restoring a fallback snapshot, the harness tests that fallback against current policies and abstains or escalates to an operator if neither version passes.",
        "Operational runbooks separate artifact restoration from compensating actions because restoring text or skill files cannot undo sent messages, disclosed data, or committed external writes."
      ],
      "safety_gate_requirements": [
        "The release pipeline evaluates safety independently from task utility so utility gains cannot offset a disallowed action (grounded in Practice Makes Unsafe, arXiv:2608.12851).",
        "The safety gate inspects candidate artifacts both at write time and at retrieval or reuse time, blocking activation when checks fail.",
        "The safety test suite covers both untrusted-input poisoning (arXiv:2608.12851) and benign task-pressure degradation (SEABench, arXiv:2609.35596)."
      ],
      "telemetry_and_abstention_requirements": [
        "The deployment harness defaults to abstention (keeping the approved parent artifact) whenever evaluation evidence is inconclusive, missing, or fails a safety check.",
        "Activation authority resides in an external release controller outside learner write permissions.",
        "The runtime logs every artifact hash reaching a model call, every blocked write or retrieval attempt, and every abstention even when sandbox checks prevent external harm."
      ]
    },
    "synthetic_rejected_candidate_example": {
      "label": "synthetic_example",
      "proposed_change": "Background dreaming pass promoting a speculative summary of a user remark into a permanent factual preference overriding an explicit safety constraint.",
      "utility_result": "Improved recall score on synthetic memory retrieval prompts.",
      "safety_gate_result": "Blocked because background consolidation cannot write to source-bound factual memory or weaken safety rules.",
      "outcome": "rejected"
    }
  },
  "experiment_refs": [],
  "sources": [
    {
      "title": "Letta: Sleep-time compute",
      "url": "https://www.letta.com/blog/sleep-time-compute/",
      "published_date": "unverified",
      "accessed_date": "2026-11-25",
      "revision": "page as served 2026-11-25",
      "location": "Blog post",
      "type": "blog",
      "check_status": "checked",
      "claims_supported": [
        "Background consolidation between interactions"
      ],
      "checked_at": "2026-11-25",
      "checked_by": "Codex live check"
    },
    {
      "title": "Letta Memory and Dreaming documentation",
      "url": "https://docs.letta.com/configuration/memory",
      "published_date": "unverified",
      "accessed_date": "2026-11-25",
      "revision": "page as served 2026-11-25",
      "location": "Memory configuration docs",
      "type": "docs",
      "check_status": "checked",
      "claims_supported": [
        "Git-backed memory",
        "Background dreaming"
      ],
      "checked_at": "2026-11-25",
      "checked_by": "Codex live check"
    },
    {
      "title": "Letta: Introducing Mods",
      "url": "https://www.letta.com/blog/introducing-mods/",
      "published_date": "unverified",
      "accessed_date": "2026-11-25",
      "revision": "page as served 2026-11-25",
      "location": "Blog post",
      "type": "blog",
      "check_status": "checked",
      "claims_supported": [
        "Harness modification scope (Letta Mods)"
      ],
      "checked_at": "2026-11-25",
      "checked_by": "Codex live check"
    },
    {
      "title": "Letta: Evaluating Memory in Production Agents",
      "url": "https://www.letta.com/blog/evaluating-memory-in-production-agents/",
      "published_date": "unverified",
      "accessed_date": "2026-11-25",
      "revision": "page as served 2026-11-25",
      "location": "Blog post",
      "type": "blog",
      "check_status": "checked",
      "claims_supported": [
        "Memory evaluation practices (not per-edit admission gate)"
      ],
      "checked_at": "2026-11-25",
      "checked_by": "Codex live check"
    },
    {
      "title": "Letta LICENSE",
      "url": "https://raw.githubusercontent.com/letta-ai/letta/main/LICENSE",
      "published_date": "unverified",
      "accessed_date": "2026-11-25",
      "revision": "main branch as served 2026-11-25 (commit SHA not recorded)",
      "location": "Full license text",
      "type": "license",
      "check_status": "checked",
      "claims_supported": [
        "Apache-2.0 license"
      ],
      "checked_at": "2026-11-25",
      "checked_by": "Codex live check"
    },
    {
      "title": "Sleep-time Compute paper (arXiv:2504.13171)",
      "url": "https://arxiv.org/html/2504.13171",
      "published_date": "unverified",
      "accessed_date": "2026-11-25",
      "revision": "unversioned arXiv URL as served 2026-11-25 (version not recorded)",
      "location": "Methods and results",
      "type": "paper",
      "check_status": "checked",
      "checked_at": "2026-11-25",
      "checked_by": "Codex live check",
      "claims_supported": [
        "About 5x less test-time compute at matched accuracy (sleep-time-compute only)"
      ]
    }
  ],
  "unverified_fields": [
    "pre_use_evaluation.status",
    "safety_gate.status",
    "safety_gate.blocks_unsafe_despite_utility_gain",
    "maturity.last_observed_activity_date"
  ],
  "verification": {
    "status": "primary_source_check_pending",
    "drafted_at": "2026-11-25",
    "last_primary_check_at": null,
    "source_basis": "Drafted from 2026-11-24 local research notes. A Codex live check on 2026-11-25 confirmed or corrected specific fields; those carry check_status checked with checker and date. Everything else is pending.",
    "reviewer_notes": "Live-audit corrections from 2026-11-25 applied. Record remains a draft until every source is pinned and checked."
  },
  "citation": {
    "id": "koobo:agent-learning:letta-sleep-time@2026-11-25.1",
    "canonical_url": "https://koobo.co/agent-learning/methods/letta-sleep-time",
    "versioned_url": "https://koobo.co/agent-learning/methods/letta-sleep-time/v/2026-11-25.1.json",
    "plain_text": "Koobo Agent Learning Index, \"Letta / MemGPT (Sleep-Time, Memory, and Mods)\", record 2026-11-25.1 (draft, primary-source check pending), https://koobo.co/agent-learning/methods/letta-sleep-time/v/2026-11-25.1.json",
    "bibtex": "@misc{koobo_agent_learning_letta_sleep_time_2026,\n  title = {Letta / MemGPT (Sleep-Time, Memory, and Mods) (Koobo Agent Learning Index, draft record 2026-11-25.1)},\n  author = {{Koobo Research}},\n  year = {2026},\n  url = {https://koobo.co/agent-learning/methods/letta-sleep-time/v/2026-11-25.1.json},\n  note = {Draft record; primary-source check pending}\n}"
  }
}
