[{"data":1,"prerenderedAt":609},["ShallowReactive",2],{"\u002Fmemos_cloud\u002Fintroduction\u002Fmem_lifecycle":3,"surround-\u002Fmemos_cloud\u002Fintroduction\u002Fmem_lifecycle":593},{"id":4,"title":5,"avatar":6,"banner":6,"body":7,"category":6,"desc":586,"description":214,"extension":587,"links":6,"meta":588,"navigation":6,"path":589,"seo":590,"stem":591,"__hash__":592},"docs\u002Fen\u002Fmemos_cloud\u002Fintroduction\u002Fmem_lifecycle.md","Memory Lifecycle Management",null,{"type":8,"value":9,"toc":579},"minimark",[10,15,19,65,75,77,85,180,182,186,196,200,208,285,295,298,302,314,316,320,328,367,376,378,382,394,396,401,413,458,460,464,477,479,483,560,562,566,575],[11,12,14],"h2",{"id":13},"_1-capability-overview","1. Capability Overview",[16,17,18],"p",{},"A memory, once generated, may gradually consolidate into a stable long-term preference, or be removed if it becomes outdated or invalid.",[20,21,22,37],"note",{},[16,23,24,28,31,32,34,35],{},[25,26,27],"strong",{},"Tip",[29,30],"br",{},"\nThis evolutionary process is called ",[25,33,5],{},", and its goal is to keep the memory base “clean and organized.”",[29,36],{},[38,39,40,49,57],"ul",{},[41,42,43,46,47],"li",{},[25,44,45],{},"Recently useful entries"," remain active for easy retrieval;",[29,48],{},[41,50,51,54,55],{},[25,52,53],{},"Long-term stable facts"," are consolidated to reduce duplication and noise;",[29,56],{},[41,58,59,62,63],{},[25,60,61],{},"Outdated or conflicting information"," is archived or deleted to ensure consistency and compliance.",[29,64],{},[66,67,68],"blockquote",{},[16,69,70,71,74],{},"Note that lifecycle management focuses on ",[25,72,73],{},"the evolution of memory entries at the storage layer","; whether a specific memory is invoked during reasoning is still determined by the scheduling mechanism.",[29,76],{},[20,78,80],{"icon":79},"ri:customer-service-2-fill",[16,81,82],{},[25,83,84],{},"Lifecycle Stage Overview",[86,87,88,110],"table",{},[89,90,91],"thead",{},[92,93,94,100,105],"tr",{},[95,96,97],"th",{},[25,98,99],{},"Stage",[95,101,102],{},[25,103,104],{},"Description",[95,106,107],{},[25,108,109],{},"System Behavior",[111,112,113,125,136,147,158,169],"tbody",{},[92,114,115,119,122],{},[116,117,118],"td",{},"Generated",[116,120,121],{},"Newly created memory object, with metadata such as source, timestamp, and confidence",[116,123,124],{},"Initially stored in the storage layer, awaiting future use",[92,126,127,130,133],{},[116,128,129],{},"Activated",[116,131,132],{},"Referenced during reasoning or tasks, entering a high-frequency active state",[116,134,135],{},"More likely to be selected by the scheduling mechanism",[92,137,138,141,144],{},[116,139,140],{},"Merged",[116,142,143],{},"Semantically overlaps with historical memories or user-provided data, integrated into a new version",[116,145,146],{},"Multiple records are compressed and merged into an updated stable entry",[92,148,149,152,155],{},[116,150,151],{},"Archived",[116,153,154],{},"Not accessed for a long period, downgraded to cold storage",[116,156,157],{},"Only enabled during special retrievals or backtracking",[92,159,160,163,166],{},[116,161,162],{},"Expired (optional)",[116,164,165],{},"After archiving, further timeout or policy judgment marks it invalid",[116,167,168],{},"Removed from the index, no longer used in reasoning, only minimal logs retained",[92,170,171,174,177],{},[116,172,173],{},"Frozen (special state)",[116,175,176],{},"Critical or compliance-related memories are locked and cannot be modified",[116,178,179],{},"Full historical versions are preserved for audit and compliance tracking",[29,181],{},[11,183,185],{"id":184},"_2-example-memory-lifecycle-of-an-online-education-assistant","2. Example: Memory Lifecycle of an Online Education Assistant",[20,187,189],{"icon":188},"ri:message-2-line",[16,190,191,192,195],{},"Suppose you are building an ",[25,193,194],{},"online education assistant"," with MemOS to help students solve math problems.",[16,197,198],{},[25,199,118],{},[38,201,202,205],{},[41,203,204],{},"A student says for the first time: “I always confuse quadratic functions with linear functions.”",[41,206,207],{},"The system extracts the memory:",[209,210,215],"pre",{"className":211,"code":212,"language":213,"meta":214,"style":214},"language-json shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","{\"value\": \"The student often confuses quadratic and linear functions\", \"confidence\": 0.8, \"timestamp\": \"2025-09-11\"}\n","json","",[216,217,218],"code",{"__ignoreMap":214},[219,220,223,227,230,234,236,239,242,246,248,251,253,256,258,260,264,266,268,271,273,275,277,280,282],"span",{"class":221,"line":222},"line",1,[219,224,226],{"class":225},"sMK4o","{",[219,228,229],{"class":225},"\"",[219,231,233],{"class":232},"spNyl","value",[219,235,229],{"class":225},[219,237,238],{"class":225},":",[219,240,241],{"class":225}," \"",[219,243,245],{"class":244},"sfazB","The student often confuses quadratic and linear functions",[219,247,229],{"class":225},[219,249,250],{"class":225},",",[219,252,241],{"class":225},[219,254,255],{"class":232},"confidence",[219,257,229],{"class":225},[219,259,238],{"class":225},[219,261,263],{"class":262},"sbssI"," 0.8",[219,265,250],{"class":225},[219,267,241],{"class":225},[219,269,270],{"class":232},"timestamp",[219,272,229],{"class":225},[219,274,238],{"class":225},[219,276,241],{"class":225},[219,278,279],{"class":244},"2025-09-11",[219,281,229],{"class":225},[219,283,284],{"class":225},"}\n",[38,286,287,292],{},[41,288,289,290],{},"Status: ",[25,291,118],{},[41,293,294],{},"Behavior: Stored into the memory base, awaiting future use.",[296,297],"hr",{},[16,299,300],{},[25,301,129],{},[38,303,304,307,311],{},[41,305,306],{},"In the following problem-solving sessions, the system frequently calls this memory to assist with answers.",[41,308,289,309],{},[25,310,129],{},[41,312,313],{},"Behavior: Prioritized by the scheduling mechanism and cached into the MemoryCube to improve retrieval speed.",[296,315],{},[16,317,318],{},[25,319,140],{},[38,321,322,325],{},[41,323,324],{},"With more interactions, the system discovers that the student not only confuses linear and quadratic functions, but also struggles with exponential functions.",[41,326,327],{},"The system merges multiple similar memories into:",[209,329,331],{"className":211,"code":330,"language":213,"meta":214,"style":214},"{\"value\": \"This student is confused about function concepts, especially linear, quadratic, and exponential functions\", \"confidence\": 0.95}\n",[216,332,333],{"__ignoreMap":214},[219,334,335,337,339,341,343,345,347,350,352,354,356,358,360,362,365],{"class":221,"line":222},[219,336,226],{"class":225},[219,338,229],{"class":225},[219,340,233],{"class":232},[219,342,229],{"class":225},[219,344,238],{"class":225},[219,346,241],{"class":225},[219,348,349],{"class":244},"This student is confused about function concepts, especially linear, quadratic, and exponential functions",[219,351,229],{"class":225},[219,353,250],{"class":225},[219,355,241],{"class":225},[219,357,255],{"class":232},[219,359,229],{"class":225},[219,361,238],{"class":225},[219,363,364],{"class":262}," 0.95",[219,366,284],{"class":225},[38,368,369,373],{},[41,370,289,371],{},[25,372,140],{},[41,374,375],{},"Behavior: Old entries are compressed to form a new version, reducing redundancy.",[296,377],{},[16,379,380],{},[25,381,151],{},[38,383,384,387,391],{},[41,385,386],{},"Three months later, the student has mastered function-related concepts, and this memory hasn’t been scheduled for a long time.",[41,388,289,389],{},[25,390,151],{},[41,392,393],{},"Behavior: Migrated into MemVault (cold storage), excluded from reasoning by default, but available in “learning trajectory backtracking.”",[296,395],{},[16,397,398],{},[25,399,400],{},"Expired",[38,402,403,406,410],{},[41,404,405],{},"A year later, the student advances to a new grade level. The old “junior high function confusion” memory is judged invalid by policy.",[41,407,289,408],{},[25,409,400],{},[41,411,412],{},"Behavior: Fully removed from the index, retaining only minimal audit info:",[209,414,416],{"className":211,"code":415,"language":213,"meta":214,"style":214},"{\"deleted_memory_id\": \"12345\", \"deleted_at\": \"2026-09-11\"}\n",[216,417,418],{"__ignoreMap":214},[219,419,420,422,424,427,429,431,433,436,438,440,442,445,447,449,451,454,456],{"class":221,"line":222},[219,421,226],{"class":225},[219,423,229],{"class":225},[219,425,426],{"class":232},"deleted_memory_id",[219,428,229],{"class":225},[219,430,238],{"class":225},[219,432,241],{"class":225},[219,434,435],{"class":244},"12345",[219,437,229],{"class":225},[219,439,250],{"class":225},[219,441,241],{"class":225},[219,443,444],{"class":232},"deleted_at",[219,446,229],{"class":225},[219,448,238],{"class":225},[219,450,241],{"class":225},[219,452,453],{"class":244},"2026-09-11",[219,455,229],{"class":225},[219,457,284],{"class":225},[296,459],{},[16,461,462],{},[25,463,173],{},[38,465,466,469,474],{},[41,467,468],{},"Meanwhile, the student’s “final exam evaluation report” is a compliance-related file that must not be modified.",[41,470,289,471],{},[25,472,473],{},"Frozen",[41,475,476],{},"Behavior: Locked against updates, retaining full history for audit and compliance inspection.",[29,478],{},[11,480,482],{"id":481},"_3-advanced-deep-customization-options","3. Advanced: Deep Customization Options",[86,484,485,503],{},[89,486,487],{},[92,488,489,494,498],{},[95,490,491],{},[25,492,493],{},"Extension Point",[95,495,496],{},[25,497,104],{},[95,499,500],{},[25,501,502],{},"Example",[111,504,505,516,527,538,549],{},[92,506,507,510,513],{},[116,508,509],{},"State transition conditions",[116,511,512],{},"Control the triggers for each state",[116,514,515],{},"“If unused for 7 days → Archive”",[92,517,518,521,524],{},[116,519,520],{},"Merge and compression",[116,522,523],{},"Define how similar memories are handled",[116,525,526],{},"Multiple “likes sci-fi movies” entries merged into one with higher confidence",[92,528,529,532,535],{},[116,530,531],{},"Conflict resolution",[116,533,534],{},"Handle memory conflicts in timestamps or sources",[116,536,537],{},"Choose “latest entry overrides” or “preserve in parallel”",[92,539,540,543,546],{},[116,541,542],{},"Cleanup mechanism",[116,544,545],{},"Set deletion rules to control index size",[116,547,548],{},"Remove low-confidence or user-retracted memories",[92,550,551,554,557],{},[116,552,553],{},"Audit trail",[116,555,556],{},"Decide whether to retain minimal metadata of deleted items",[116,558,559],{},"Enable “trace logs” under compliance requirements",[29,561],{},[11,563,565],{"id":564},"_4-next-steps","4. Next Steps",[16,567,568,569,574],{},"Still have questions? Check out ",[570,571,573],"a",{"href":572},"\u002Fmemos_cloud\u002Ffaq","FAQs"," to see if they can help.",[576,577,578],"style",{},"html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":214,"searchDepth":580,"depth":580,"links":581},2,[582,583,584,585],{"id":13,"depth":580,"text":14},{"id":184,"depth":580,"text":185},{"id":481,"depth":580,"text":482},{"id":564,"depth":580,"text":565},"In MemOS, memories are not stored statically; they continuously evolve over time and through usage.","md",{},"\u002Fen\u002Fmemos_cloud\u002Fintroduction\u002Fmem_lifecycle",{"title":5,"description":214},"en\u002Fmemos_cloud\u002Fintroduction\u002Fmem_lifecycle","-ywVLEUGd_YCYnEDXZgKVBsa6C2CXSJZJL5HR97rXWQ",[594,602],{"title":595,"path":596,"stem":597,"icon":598,"framework":6,"module":6,"class":599,"target":-1,"active":600,"defaultOpen":600,"children":-1,"description":601},"Memory Recall","\u002Fmemos_cloud\u002Fintroduction\u002Fmem_recall","memos_cloud\u002Fintroduction\u002Fmem_recall","i-ri-search-line",[],false,"In MemOS, memory is not just about archiving information, but also about being dynamically retrieved when needed and transformed into executable input.",{"title":603,"path":604,"stem":605,"icon":606,"framework":6,"module":6,"class":607,"target":-1,"active":600,"defaultOpen":600,"children":-1,"description":608},"Algorithm Overview","\u002Fmemos_cloud\u002Fintroduction\u002Falgorithm","memos_cloud\u002Fintroduction\u002Falgorithm","i-ri-cpu-line",[],"Transforming large models from disposable dialogue tools into intelligent agents with true long-term memory and adaptive capabilities.",1775811150872]