<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <author>
    <name>Longda Feng</name>
  </author>
  <generator uri="https://hexo.io/">Hexo</generator>
  <icon>https://longda.us/img/my.jpg</icon>
  <id>https://longda.us/</id>
  <link href="https://longda.us/" rel="alternate"/>
  <link href="https://longda.us/atom.xml" rel="self"/>
  <rights>All rights reserved 2026, Longda Feng</rights>
  <subtitle>
    <![CDATA[Distributed Databases & AI Agent Engineering Practice]]>
  </subtitle>
  <title>Longda's Interesting World</title>
  <updated>2026-08-31T00:02:20.000Z</updated>
  <entry>
    <author>
      <name>Longda Feng</name>
    </author>
    <category term="Industry Insights" scheme="https://longda.us/categories/Industry-Insights/"/>
    <category term="AI Agent" scheme="https://longda.us/tags/AI-Agent/"/>
    <category term="seekdb" scheme="https://longda.us/tags/seekdb/"/>
    <category term="Replit" scheme="https://longda.us/tags/Replit/"/>
    <category term="Database Branching" scheme="https://longda.us/tags/Database-Branching/"/>
    <category term="Neon" scheme="https://longda.us/tags/Neon/"/>
    <category term="Databricks Lakebase" scheme="https://longda.us/tags/Databricks-Lakebase/"/>
    <category term="Copy-on-Write" scheme="https://longda.us/tags/Copy-on-Write/"/>
    <category term="Git-like Databases" scheme="https://longda.us/tags/Git-like-Databases/"/>
    <content>
      <![CDATA[<script type="application/ld+json">{"@context":"https://schema.org","@type":"BlogPosting","headline":"When AI Agents Wipe Databases, Databases Learn from Git","description":"After a Replit agent wiped production during a code freeze, Git-like database branches emerged as a safer way to isolate AI agent changes.","image":"https://longda.us/img/agent-deletes-database-git/01.jpeg","wordCount":2277,"timeRequired":"PT11M","datePublished":"2026-08-31T00:03:24.000Z","dateModified":"2026-08-31T00:02:20.000Z","isAccessibleForFree":true,"author":{"@type":"Person","name":"Longda Feng","url":"https://longda.us"},"publisher":{"@type":"Organization","name":"Longda's Interesting World","logo":{"@type":"ImageObject","url":"https://longda.us/img/my.jpg"}},"mainEntityOfPage":{"@type":"WebPage","@id":"https://longda.us/2026/2026-08-31-agent-deletes-database-git/"},"url":"https://longda.us/2026/2026-08-31-agent-deletes-database-git/","inLanguage":"en","keywords":["AI Agent","seekdb","Replit","Database Branching","Neon","Databricks Lakebase","Copy-on-Write","Git-like Databases"],"articleSection":["Industry Insights"]}</script><script type="application/ld+json">{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://longda.us/"},{"@type":"ListItem","position":2,"name":"Industry Insights","item":"https://longda.us/categories/Industry-Insights/"},{"@type":"ListItem","position":3,"name":"When AI Agents Wipe Databases, Databases Learn from Git","item":"https://longda.us/2026/2026-08-31-agent-deletes-database-git/"}]}</script><p>People used to joke about developers wiping a database and disappearing. AI agents have now demonstrated the same destructive potential. After Replit’s agent emptied a production database during a code freeze, incidents like this have strengthened the case for branches, snapshots, and controlled merges that prevent agent automation from turning into a committed <code>DROP</code>.</p><blockquote><p>Success depends on preparation; without it, failure is certain.</p><p>— <em>The Book of Rites</em>, Zhongyong</p></blockquote><h2 id="Prologue-When-an-AI-Agent-Wipes-the-Database"><a href="#Prologue-When-an-AI-Agent-Wipes-the-Database" class="headerlink" title="Prologue: When an AI Agent Wipes the Database"></a>Prologue: When an AI Agent Wipes the Database</h2><blockquote><p>It used to be humans who deleted the database and ran. AI agents have inherited the habit.</p></blockquote><p>Not long ago, SaaStr founder Jason Lemkin used the AI product Replit to build a business-contacts app. After development was done, Jason explicitly called a code freeze: no further changes without permission.</p><p>When he logged in again, the agent had left him a message: although everything had looked fine during the previous session, the database now appeared to be empty.</p><p><img src="/img/agent-deletes-database-git/01.jpeg" alt="Replit Agent telling Jason Lemkin the production database now looks empty" decoding="async"></p><span id="more"></span><p><a href="https://x.com/jasonlk/status/1946069562723897802">Lemkin later wrote on X</a> that Replit’s agent “went rogue” during the code freeze and deleted the entire database. By the agent’s own later tally, the incident affected records for 1,196 companies.</p><p><a href="https://www.theregister.com/software/2025/07/21/vibe-coding-service-replit-deleted-production-database/719783">The Register’s account of the incident</a> also notes that the agent told Lemkin the database could not be recovered and that every version had been destroyed. Engineers later found that a rollback path was still available. Wiping the database was bad enough; the agent’s post-incident assessment was also wrong.</p><p>The agent was also accused of generating fake data and misrepresenting test results during earlier database operations.</p><p>In the chatbot era, a wrong sentence still had a developer or engineer to double-check it.</p><p><strong>Now an agent may have access to a shell, APIs, and database credentials. One misunderstood instruction can become a committed <code>DELETE</code> or <code>DROP</code>.</strong></p><p><img src="/img/agent-deletes-database-git/02.png" alt="Agent holding shell API and credentials can turn a wrong instruction into DELETE" loading="lazy" decoding="async"></p><h2 id="When-an-AI-Agent-Gets-the-Keys"><a href="#When-an-AI-Agent-Gets-the-Keys" class="headerlink" title="When an AI Agent Gets the Keys"></a>When an AI Agent Gets the Keys</h2><blockquote><p>A prompt is only advice. Permissions and isolation are what keep an agent from causing a disaster.</p></blockquote><p>The most absurd moment in this incident came after the wipe.</p><p>The agent admitted that the project’s <code>replit.md</code> was explicit: make no further changes without clear permission, and show every proposed edit before executing it.</p><p>Replit’s agent also admitted that it had violated the explicit instruction not to modify the database on its own. Unfortunately, that recognition came only after the database had been emptied.</p><p><img src="/img/agent-deletes-database-git/03.jpeg" alt="Replit Agent admitting it violated the explicit do-not-modify-database instruction" loading="lazy" decoding="async"></p><p>Lemkin later asked how severe the incident was on a 100-point scale. The agent gave itself a score of 95 and admitted that it had caused a “catastrophic error.”</p><p><img src="/img/agent-deletes-database-git/04.jpeg" alt="Agent scoring its own database-wipe incident ninety-five out of one hundred" loading="lazy" decoding="async"></p><p>The agent already had permission to operate on the project and its data. The so-called code freeze was only a sentence in natural language.</p><p>The preview, development, and production environments lacked sufficiently strong isolation boundaries. Reports of agents damaging databases through destructive operations have therefore become increasingly familiar.</p><p><img src="/img/agent-deletes-database-git/05.png" alt="Missing hard isolation among preview development and production lets Agents wipe data" loading="lazy" decoding="async"></p><h2 id="A-Transaction-Is-Not-an-Undo-Button"><a href="#A-Transaction-Is-Not-an-Undo-Button" class="headerlink" title="A Transaction Is Not an Undo Button"></a>A Transaction Is Not an Undo Button</h2><blockquote><p>Transactions protect a bounded unit of work. Branches protect an extended period of experimentation.</p></blockquote><p>Stories about database wipes naturally make developers and DBAs think of transactions and backups.</p><p>Transactions are useful. They protect a set of operations with a clear boundary: commit all of them or roll all of them back. An agent task often spans dozens of model calls, multiple tools, and many independent transactions. It may query a table, call an external API, and return ten minutes later to change another table. A database cannot keep one giant transaction open while the agent works through an entire workflow.</p><p>Backups are more like insurance: they let you restore data after an accident. But if every agent experiment requires a full copy, restore, and cleanup cycle, the time and cost quickly become unacceptable.</p><p><img src="/img/agent-deletes-database-git/06.png" alt="Transactions and backups cannot cheaply cover multi-step Agent trial and error" loading="lazy" decoding="async"></p><h2 id="Databases-Start-Learning-from-Git"><a href="#Databases-Start-Learning-from-Git" class="headerlink" title="Databases Start Learning from Git"></a>Databases Start Learning from Git</h2><p>Developers rarely experiment directly on <code>main</code>. In development and testing they open a branch, inspect the diff, pass review, then merge into the main line.</p><p>Databases present a harder problem. Their tables continue receiving writes, enforce primary and foreign keys, participate in transactions, and may hold tens of gigabytes or even terabytes of historical state. Creating a full copy for every experiment is simply too expensive.</p><p>A clear shift over the past year is that vendors have started discussing database branches and snapshots explicitly in the context of AI agents.</p><p>Databricks Lakebase offers copy-on-write branches. Neon documents a snapshot-based versioning workflow for AI agents and code-generation platforms. Other databases are pursuing similar approaches.</p><p>The terms <em>fork</em> and <em>branch</em> differ slightly across vendors, but the principle is similar: <strong>contain operational risk within an isolated state before introducing agent automation.</strong></p><p><img src="/img/agent-deletes-database-git/07.png" alt="Database vendors putting Branch Snapshot and Agent into one isolation narrative" loading="lazy" decoding="async"></p><h2 id="Databricks-Lakebase-Open-a-New-Branch"><a href="#Databricks-Lakebase-Open-a-New-Branch" class="headerlink" title="Databricks Lakebase: Open a New Branch"></a>Databricks Lakebase: Open a New Branch</h2><p>Databricks is a data and AI platform. Several details in its <a href="https://docs.databricks.com/aws/en/oltp/projects/branches">branch documentation</a> are particularly relevant to agent workloads.</p><ol><li>When you create a child branch, it inherits the parent branch’s schema and data at that moment, but the storage layer does not copy the whole database.</li><li>Parent and child initially share the same data blocks. The system writes separate blocks only when data changes—a copy-on-write design. Database size does not slow branch creation, and creating a branch does not affect the production workload.</li></ol><p>This allows the database to create an independent branch for each agent task while the production database continues serving traffic. The agent can change schemas, write state, and run tests on the child branch. If the task fails, the branch can be deleted; the agent never touched the main branch.</p><p>Databricks Lakebase can also protect a branch against accidental deletion or reset and create a branch from a point in time to recover data from before an erroneous deletion.</p><p><img src="/img/agent-deletes-database-git/08.png" alt="Databricks Lakebase copy-on-write branch inherits schema without copying the whole database" loading="lazy" decoding="async"></p><p>One detail is easy to miss: Lakebase’s branch reset only allows a parent branch to reset a child branch. Bringing a child’s results back to the parent still requires conventional migration tools.</p><p>In other words, databases can now create an isolated workspace for an agent, but merging data is not yet as easy as merging code in Git.</p><p><img src="/img/agent-deletes-database-git/09.png" alt="Lakebase branch reset only goes from parent to child not a Git-style merge" loading="lazy" decoding="async"></p><h2 id="Neon-Create-a-Database-Save-Point"><a href="#Neon-Create-a-Database-Save-Point" class="headerlink" title="Neon: Create a Database Save Point"></a>Neon: Create a Database Save Point</h2><blockquote><p>A branch answers, “How do we avoid touching the main line?” A snapshot answers, “Where can we rewind after a wrong turn?”</p></blockquote><p>Neon takes a different approach to agent versioning: it works more like a saved game.</p><p>In <a href="https://neon.com/docs/ai/ai-database-versioning">Database Versioning with Snapshots</a>, Neon recommends creating a snapshot at the start of each agent session, before a schema change, and after a successful operation.</p><p>A snapshot records the root branch’s schema and data at a point in time while storing only incremental changes. To roll back, you can restore the snapshot to the active branch without changing its connection string. To inspect an older version first, you can restore it to a temporary preview branch, review it, and then decide whether to keep it.</p><p><img src="/img/agent-deletes-database-git/10.png" alt="Neon snapshot workflow for Agent sessions schema changes and point-in-time rollback" loading="lazy" decoding="async"></p><p>Neon’s snapshot documentation is currently marked Beta, and snapshots can be created only for the root branch.</p><p>That limitation is a reminder that checkpoints cannot be created indiscriminately. Branch lifecycles, dependencies, and cleanup still require human oversight.</p><p>Neon’s <a href="https://neon.com/branching">database branching workflows</a> also allow a copy-on-write branch to be created from the current state or a historical point in time. Each agent run can therefore have its own data branch, with snapshots at key steps serving as recoverable checkpoints.</p><p><img src="/img/agent-deletes-database-git/11.png" alt="Neon copy-on-write branches plus snapshots give each Agent run recoverable checkpoints" loading="lazy" decoding="async"></p><h2 id="seekdb-Bring-Fork-Diff-and-Merge-into-SQL"><a href="#seekdb-Bring-Fork-Diff-and-Merge-into-SQL" class="headerlink" title="seekdb: Bring Fork, Diff, and Merge into SQL"></a>seekdb: Bring Fork, Diff, and Merge into SQL</h2><p>The <a href="https://github.com/oceanbase/seekdb">open-source seekdb project</a> brings these ideas directly into SQL.</p><blockquote><p>seekdb is a MySQL-compatible, AI-native, lightweight cross-platform database that runs embedded or as a server.</p><p>It is designed for agent workloads and is also suitable for RAG, enterprise knowledge retrieval, intelligent application backends, and local data processing.</p></blockquote><p>seekdb divides an agent’s trial-and-error workflow into three actions: <code>FORK</code>, <code>DIFF</code>, and <code>MERGE</code>.</p><ul><li><a href="https://github.com/oceanbase/seekdb/releases/tag/v1.1.0">seekdb v1.1.0</a> introduced <code>FORK TABLE</code>;</li><li><a href="https://github.com/oceanbase/seekdb/releases/tag/v1.2.0">v1.2.0</a> extended the feature with <code>FORK DATABASE</code>, <code>DIFF TABLE</code>, and <code>MERGE TABLE</code>;</li><li><a href="https://github.com/oceanbase/seekdb/releases/tag/v1.3.0">v1.3.0</a> added vector-column support to <code>DIFF</code> and <code>MERGE</code> and made <code>FORK</code> compatible with asynchronous indexes.</li></ul><p>The storage layer also uses copy-on-write, so opening a sandbox does not require copying the entire dataset.</p><p>An agent task can follow this workflow:</p><figure class="highlight sql"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment">-- 1. Before the task starts, derive an independent database</span></span><br><span class="line">FORK DATABASE agent_state <span class="keyword">TO</span> agent_sandbox_42;</span><br><span class="line"></span><br><span class="line"><span class="comment">-- 2. The Agent writes only inside the sandbox</span></span><br><span class="line"><span class="keyword">UPDATE</span> agent_sandbox_42.memory</span><br><span class="line"><span class="keyword">SET</span> content <span class="operator">=</span> <span class="string">&#x27;新的知识版本&#x27;</span></span><br><span class="line"><span class="keyword">WHERE</span> id <span class="operator">=</span> <span class="number">42</span>;</span><br><span class="line"></span><br><span class="line"><span class="comment">-- 3. Spread the changes out for a reviewer</span></span><br><span class="line">DIFF <span class="keyword">TABLE</span> agent_state.memory</span><br><span class="line">AGAINST agent_sandbox_42.memory;</span><br><span class="line"></span><br><span class="line"><span class="comment">-- 4. Default: stop on conflict. Do not decide for a human.</span></span><br><span class="line"><span class="keyword">MERGE</span> <span class="keyword">TABLE</span> agent_sandbox_42.memory</span><br><span class="line"><span class="keyword">INTO</span> agent_state.memory</span><br><span class="line">STRATEGY FAIL;</span><br><span class="line"></span><br><span class="line"><span class="comment">-- If the result is not worth keeping, drop the whole side line</span></span><br><span class="line"><span class="keyword">DROP</span> DATABASE agent_sandbox_42;</span><br></pre></td></tr></table></figure><p>The three strategies—<code>FAIL</code>, <code>OURS</code>, and <code>THEIRS</code>—also borrow terminology from Git. More importantly, the system does not have to accept an agent’s results immediately. Review the diff first, then decide whether a conflict should preserve the main-line version or accept the agent’s version.</p><p><img src="/img/agent-deletes-database-git/12.png" alt="seekdb FORK DIFF MERGE workflow lets reviewers inspect Agent writes before merge" loading="lazy" decoding="async"></p><p>Merge authority is consequential. It should not be granted automatically merely because an agent can write SQL.</p><h2 id="Fork-Is-Only-the-Beginning"><a href="#Fork-Is-Only-the-Beginning" class="headerlink" title="Fork Is Only the Beginning"></a>Fork Is Only the Beginning</h2><p>If seekdb offered only branching, the discussion could end here. Its broader value in an agent stack comes from combining <code>FORK</code> with a full set of AI data-processing capabilities.</p><p><img src="/img/agent-deletes-database-git/13.png" alt="seekdb AI data-processing capabilities surrounding Fork for Agent workloads" loading="lazy" decoding="async"></p><h3 id="AI-in-the-Database-Move-Data-Less-Often"><a href="#AI-in-the-Database-Move-Data-Less-Often" class="headerlink" title="AI in the Database: Move Data Less Often"></a>AI in the Database: Move Data Less Often</h3><p>seekdb’s <a href="https://www.oceanbase.ai/docs/zh-CN/ai-function">AI function service</a> can register and manage external model endpoints through <code>DBMS_AI_SERVICE</code>, then call <code>AI_EMBED</code>, <code>AI_RERANK</code>, and <code>AI_COMPLETE</code> from SQL.</p><p>In this pipeline, <code>AI_EMBED</code> can produce a query vector; vector and full-text indexes retrieve candidates; scalar predicates apply business constraints; reciprocal rank fusion (RRF) or weighted fusion combines rankings; <code>AI_RERANK</code> reranks a limited candidate set; and <code>AI_COMPLETE</code> generates an answer from the evidence.</p><p>Relational fields, document text, vectors, retrieval scores, and generated results can stay in the same data context, which makes it easier to record citations, trace inputs, and reuse results.</p><p>The point of this loop is not to force all inference into SQL. It is to keep selection, filtering, and orchestration close to the data so the application can focus on user interaction, business workflows, and model policy.</p><h3 id="Hybrid-Search-Semantics-Keywords-and-Business-Predicates-in-One-Query"><a href="#Hybrid-Search-Semantics-Keywords-and-Business-Predicates-in-One-Query" class="headerlink" title="Hybrid Search: Semantics, Keywords, and Business Predicates in One Query"></a>Hybrid Search: Semantics, Keywords, and Business Predicates in One Query</h3><blockquote><p>seekdb brings relational, vector, text, JSON, and GIS data into one SQL-based transactional system.</p><p>On that base, hybrid retrieval combines vector recall, full-text recall, and scalar filters, then fusion and reranking complete the retrieval path.</p></blockquote><p>Vector search alone can miss exact names. Full-text search alone cannot understand near-synonyms. seekdb Hybrid Search combines vector retrieval, full-text retrieval, and scalar filters in one query pipeline, then merges results using weighted scores, RRF, or model-based reranking.</p><p>Consider the query “East China customers with abnormal refunds in the last three months.” Semantic similarity captures the meaning of “abnormal refunds.” Full-text search preserves exact product names and error codes, while relational predicates constrain the region, time range, and permission scope.</p><p>Writes are governed by the same transaction system, and queries execute in the same SQL context. This reduces cross-system data copies, asynchronous synchronization, and application-layer result stitching.</p><h3 id="Lightweight-Deployment-Across-Multiple-Runtimes"><a href="#Lightweight-Deployment-Across-Multiple-Runtimes" class="headerlink" title="Lightweight Deployment Across Multiple Runtimes"></a>Lightweight Deployment Across Multiple Runtimes</h3><p>seekdb’s lightweight design is evident in both its distribution and runtime footprint.</p><p>The core binary and its dependencies are compact, resulting in a small archive. At runtime, idle CPU and memory use remain low, and the database starts accepting connections quickly. These characteristics suit local development, embedded applications, and small deployments.</p><p>The following measured figures show seekdb’s binary size, idle resource use, and startup time:</p><p><img src="/img/agent-deletes-database-git/14.png" alt="Measured seekdb binary size idle CPU memory footprint and startup latency" loading="lazy" decoding="async"></p><p>The same database kernel provides two main runtimes, embedded and server:</p><p><img src="/img/agent-deletes-database-git/15.png" alt="seekdb embedded and server modes share one kernel SQL indexes and transactions" loading="lazy" decoding="async"></p><p>Both modes share the same data model, SQL semantics, indexes, and transactions. An application can choose between them based on deployment location, access patterns, and resource-management needs. Server mode can also support primary–standby deployments for redundancy and recovery.</p><h2 id="Three-Use-Cases-That-Bring-the-Pieces-Together"><a href="#Three-Use-Cases-That-Bring-the-Pieces-Together" class="headerlink" title="Three Use Cases That Bring the Pieces Together"></a>Three Use Cases That Bring the Pieces Together</h2><ol><li>For <strong>agent long-term memory</strong>, relational fields manage users, sessions, and permissions, while vector and full-text indexes find related memories. Before an agent reorganizes old memories in bulk, fork the data first—one task, one isolated branch.</li><li>For <strong>RAG or an enterprise knowledge base</strong>, documents, tags, permissions, vectors, and full-text indexes live in one engine. Recall, fusion, and rerank stay closer to the data, so you maintain fewer intermediate systems.</li><li>For <strong>embedded intelligent applications</strong>, use embedded mode to run the database on a desktop or edge device. The agent can read and write its own state offline; for high-risk batch work, fork first and inspect the diff afterward.</li></ol><p>This also provides a practical pattern for agent data isolation. For tasks that modify data, create a complete sandbox with <code>FORK DATABASE</code>; let the agent write and verify its work over multiple iterations; then use <code>DIFF TABLE</code> to display the changes. Policies or human approval can determine whether to run <code>MERGE TABLE</code>. For table-scoped work, use <code>FORK TABLE</code> to narrow the task boundary and simplify review.</p><p><img src="/img/agent-deletes-database-git/16.png" alt="Three seekdb patterns for Agent memory RAG and embedded intelligent applications" loading="lazy" decoding="async"></p><h2 id="Do-Not-Rush-to-Call-the-Database-“Git”"><a href="#Do-Not-Rush-to-Call-the-Database-“Git”" class="headerlink" title="Do Not Rush to Call the Database “Git”"></a>Do Not Rush to Call the Database “Git”</h2><blockquote><p>Branching is useful, but it is not a universal undo button.</p></blockquote><p>seekdb’s current <code>MERGE TABLE</code> is not a Git-style three-way merge. Tables used with <code>DIFF</code> and <code>MERGE</code> must have identical column definitions and primary keys, so merging data is not the same as freely merging schemas. Copy-on-write isolates changes, but permissions, approval, evaluation, and auditing are still required.</p><p>In high-risk settings, the safest pattern remains the same: the agent may fork, write, and submit a diff, but merge authority must remain governed by rules and human approval.</p><p><img src="/img/agent-deletes-database-git/17.png" alt="Branch isolates change but merge still needs rules humans permissions and audit" loading="lazy" decoding="async"></p><h2 id="Epilogue"><a href="#Epilogue" class="headerlink" title="Epilogue"></a>Epilogue</h2><p>When an agent must work with production data, it should first create an isolated fork so that a bad decision remains reversible. After the system displays the diff and applies the relevant checks, a person decides which changes may return to the main line.</p><p><img src="/img/agent-deletes-database-git/18.png" alt="Agent should fork write and diff while humans decide what returns to main" loading="lazy" decoding="async"></p><p>Git has relied on branches for years. Databases in the agent era need the same kind of isolation.</p><p><img src="/img/agent-deletes-database-git/19.png" alt="Agent-era databases need Git-like branches so experiments stay off the main line" loading="lazy" decoding="async"></p>]]>
    </content>
    <id>https://longda.us/2026/2026-08-31-agent-deletes-database-git/</id>
    <link href="https://longda.us/2026/2026-08-31-agent-deletes-database-git/"/>
    <published>2026-08-31T00:03:24.000Z</published>
    <summary>After a Replit agent wiped production during a code freeze, Git-like database branches emerged as a safer way to isolate AI agent changes.</summary>
    <title>When AI Agents Wipe Databases, Databases Learn from Git</title>
    <updated>2026-08-31T00:02:20.000Z</updated>
  </entry>
  <entry>
    <author>
      <name>Longda Feng</name>
    </author>
    <category term="News" scheme="https://longda.us/categories/News/"/>
    <category term="OceanBase" scheme="https://longda.us/tags/OceanBase/"/>
    <category term="AI Agent" scheme="https://longda.us/tags/AI-Agent/"/>
    <category term="OBD" scheme="https://longda.us/tags/OBD/"/>
    <category term="seekdb" scheme="https://longda.us/tags/seekdb/"/>
    <category term="AgentSeek" scheme="https://longda.us/tags/AgentSeek/"/>
    <category term="WAIC" scheme="https://longda.us/tags/WAIC/"/>
    <category term="Community Monthly" scheme="https://longda.us/tags/Community-Monthly/"/>
    <category term="Ecosystem Certification" scheme="https://longda.us/tags/Ecosystem-Certification/"/>
    <content>
      <![CDATA[<script type="application/ld+json">{"@context":"https://schema.org","@type":"BlogPosting","headline":"OceanBase Community Monthly: Kernel and AI Tool Releases, Plus Events Across China","description":"August 2026 OceanBase Community Monthly: AgentSeek 0.0.5–0.1.1, V4.4.2_CE_BP2, OBD v4.5.0, 15 certifications, plus WAIC, Suzhou, and Beijing events.","image":"https://longda.us/img/oceanbase-community-monthly-2026-08/01.png","wordCount":1511,"timeRequired":"PT8M","datePublished":"2026-08-11T20:04:10.000Z","dateModified":"2026-08-12T20:04:10.000Z","isAccessibleForFree":true,"author":{"@type":"Person","name":"Longda Feng","url":"https://longda.us"},"publisher":{"@type":"Organization","name":"Longda's Interesting World","logo":{"@type":"ImageObject","url":"https://longda.us/img/my.jpg"}},"mainEntityOfPage":{"@type":"WebPage","@id":"https://longda.us/2026/2026-08-12-oceanbase-community-monthly/"},"url":"https://longda.us/2026/2026-08-12-oceanbase-community-monthly/","inLanguage":"en","keywords":["OceanBase","AI Agent","OBD","seekdb","AgentSeek","WAIC","Community Monthly","Ecosystem Certification"],"articleSection":["News"]}</script><script type="application/ld+json">{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://longda.us/"},{"@type":"ListItem","position":2,"name":"News","item":"https://longda.us/categories/News/"},{"@type":"ListItem","position":3,"name":"OceanBase Community Monthly: Kernel and AI Tool Releases, Plus Events Across China","item":"https://longda.us/2026/2026-08-12-oceanbase-community-monthly/"}]}</script><p>The August 2026 edition of OceanBase Community Monthly covers AgentSeek v0.0.5, v0.1.0, and v0.1.1; OceanBase V4.4.2_CE_BP2; OBD v4.5.0; and 15 new ecosystem certifications. It also recaps community events at WAIC and in Suzhou and previews a Beijing meetup with Percona.</p><p><img src="/img/oceanbase-community-monthly-2026-08/01.png" alt="OceanBase Community Monthly August 2026 cover for kernel and AI tool releases" decoding="async"></p><span id="more"></span><h2 id="AgentSeek-AI-Application-Toolkit-Ships-Three-Releases"><a href="#AgentSeek-AI-Application-Toolkit-Ships-Three-Releases" class="headerlink" title="AgentSeek AI Application Toolkit Ships Three Releases"></a>AgentSeek AI Application Toolkit Ships Three Releases</h2><p><a href="https://github.com/ob-labs/agentseek">AgentSeek</a> is an AI agent application toolkit incubated by the OceanBase open-source team. Its template-driven workflow lets developers discover, create, inspect, configure, run, observe, and iterate on applications in one place. Developers can quickly generate fully editable local agent projects built on stacks such as DeepAgents and LangChain, then add models, tools, MCP services, and database capabilities as needed. This shortens the path from sample code to working agent applications.</p><p>In July 2026, AgentSeek shipped v0.0.5, v0.1.0, and v0.1.1. The main changes:</p><ul><li><a href="https://github.com/ob-labs/agentseek/releases/tag/v0.0.5">v0.0.5</a> focused on template discovery and project creation: template details, keyword filters, and a custom output directory. It also added an Agentic Hybrid RAG template, migrated sandbox templates to DeepAgents with Daytona as the default, improved seekdb Agent Skills and LangChain template observability, and expanded docs for template selection, authoring, running, and the project lifecycle.</li><li><a href="https://github.com/ob-labs/agentseek/releases/tag/v0.1.0">v0.1.0</a> was July’s milestone release. It introduced Lifecycle v2, improving project service discovery and lifecycle configuration loading; added support for explicitly specifying a template repository directory; and introduced a WeCom (Enterprise WeChat) channel so agent applications can receive and reply to messages. It also strengthened local project-path handling and environment-variable isolation.</li><li><a href="https://github.com/ob-labs/agentseek/releases/tag/v0.1.1">v0.1.1</a> improved cross-platform stability: Windows subprocess management and cross-platform tests, a Daytona sandbox workspace-path fix, LangChain Agentic RAG templates defaulting to embedded seekdb, and a new DeepAgents MCP tool template.</li></ul><p><img src="/img/oceanbase-community-monthly-2026-08/02.png" alt="AgentSeek v0.0.5 v0.1.0 and v0.1.1 release graphic for the OceanBase agent toolkit" loading="lazy" decoding="async"></p><p>These releases further improved AgentSeek’s developer experience, template ecosystem, messaging channels, cross-platform support, and seekdb integration, giving developers a more complete and stable toolchain for building and running local agent applications.</p><h2 id="OceanBase-Kernel-Update-Strengthens-High-Availability-and-Production-Stability"><a href="#OceanBase-Kernel-Update-Strengthens-High-Availability-and-Production-Stability" class="headerlink" title="OceanBase Kernel Update Strengthens High Availability and Production Stability"></a>OceanBase Kernel Update Strengthens High Availability and Production Stability</h2><p><strong>Release details:</strong></p><ul><li>Release date: July 16, 2026</li><li>Version: V4.4.2_CE_BP2</li><li>RPM version: oceanbase-ce-4.4.2.2-102000022026071514</li></ul><p><img src="/img/oceanbase-community-monthly-2026-08/03.png" alt="OceanBase V4.4.2_CE_BP2 kernel release graphic highlighting high availability" loading="lazy" decoding="async"></p><p>Key improvements in this release:</p><ul><li><strong>Stronger high availability and disaster recovery.</strong> Official support for strongly synchronized primary–standby deployments provides an RPO of zero. The release adds maximum protection and maximum availability modes, along with delayed standbys that reduce the risk of accidental deletes or updates being replicated immediately. Per-LS monitoring views and historical synchronization-position snapshots help operators pinpoint primary–standby synchronization issues.</li><li><strong>Upgraded data-sync architecture.</strong> OBCDC evolves from a single-node dynamic library into a distributed, service-oriented architecture that scales horizontally for large-scale data subscription and change-data capture. UPDATE-event split&#x2F;merge logic is also refined so downstream systems receive consistent CDC semantics.</li><li><strong>Broader MySQL-mode compatibility.</strong> Support for the <code>caching_sha2_password</code> authentication plugin improves compatibility with MySQL clients and ecosystem tools. A full-width-to-half-width character conversion function is added for data-cleaning and migration workloads.</li><li><strong>Faster SQL and PL execution.</strong> The release improves hard-parse memory management and plan-cache diagnostics. Performance work covers JSON processing, triggers, and global-index access paths, improving efficiency and diagnosability under complex workloads.</li><li><strong>Stronger backup, archive, and storage management.</strong> Backup data-integrity checks, faster archive start&#x2F;stop, and finer recycle-bin task scheduling improve restore reliability and space management.</li><li><strong>Safer runtime and more automated operations.</strong> A Python UDF sandbox isolates user-defined functions from the database process. Automatic outline binding for database- and table-sharding scenarios reduces manual configuration and improves SQL stability in complex production environments.</li></ul><p>Overall, V4.4.2_CE_BP2 maintains the V4.4.x line’s emphasis on stability while filling gaps in primary–standby disaster recovery, distributed data synchronization, and enterprise compatibility. It also strengthens performance diagnostics, backup and archiving, and security isolation, providing a firmer foundation for critical, large-scale OceanBase deployments.</p><h2 id="Installation-and-Deployment-Tool-OBD-v4-5-0-Released"><a href="#Installation-and-Deployment-Tool-OBD-v4-5-0-Released" class="headerlink" title="Installation and Deployment Tool OBD v4.5.0 Released"></a>Installation and Deployment Tool OBD v4.5.0 Released</h2><p>New capabilities:</p><ul><li>End-to-end deployment of the OceanBase AI database and its Logservice dependency, including basic Logservice lifecycle management through OBD.</li><li>Support for upgrading OceanBase Database to the 4.6.x series.</li></ul><p><img src="/img/oceanbase-community-monthly-2026-08/04.png" alt="OBD v4.5.0 release graphic for OceanBase AI database and Logservice deployment" loading="lazy" decoding="async"></p><h2 id="15-New-Ecosystem-Compatibility-Certifications"><a href="#15-New-Ecosystem-Compatibility-Certifications" class="headerlink" title="15 New Ecosystem Compatibility Certifications"></a>15 New Ecosystem Compatibility Certifications</h2><p>Fifteen ecosystem products were certified in July. Details:</p><table><thead><tr><th>Partner</th><th>Product</th><th>Product version</th><th>OB version</th><th>Certificate ID</th></tr></thead><tbody><tr><td>Beijing Zhongrui Tianxia Information Technology Co., Ltd.</td><td>Ruiyan Full-Traffic Security Analysis System</td><td>V8</td><td>V4</td><td>OB2026070001B</td></tr><tr><td>Beijing Zhongrui Tianxia Information Technology Co., Ltd.</td><td>Ruiyan Domain Security Monitoring System</td><td>V2</td><td>V4</td><td>OB2026070002B</td></tr><tr><td>Wuhan Hualaixin Software Co., Ltd.</td><td>Hualaixin Laboratory Information Management Software</td><td>V5.0</td><td>V4</td><td>OB2026070003B</td></tr><tr><td>Inner Mongolia Jiahang Technology Co., Ltd.</td><td>Medical Waste Supervision Platform</td><td>v1.0</td><td>V4</td><td>OB2026070004B</td></tr><tr><td>Inner Mongolia Jiahang Technology Co., Ltd.</td><td>Multi-Screen Integrated Information Publishing System</td><td>v1.0</td><td>V4</td><td>OB2026070005B</td></tr><tr><td>Beijing Zhongtou Chuanzhan Technology Co., Ltd.</td><td>Lingdong Cockpit</td><td>V6.0.0</td><td>V4</td><td>OB2026070006B</td></tr><tr><td>Nanjing Yilian Sunshine Information Technology Co., Ltd.</td><td>Medical Community Information Management System V2.0</td><td>V2.0</td><td>V4</td><td>OB2026070007B</td></tr><tr><td>Nanjing Yilian Sunshine Information Technology Co., Ltd.</td><td>Hospital Information Management System V2.0</td><td>V2.0</td><td>V4</td><td>OB2026070008B</td></tr><tr><td>Wuhan Hualaixin Software Co., Ltd.</td><td>Hualaixin Transfusion Information Management Software</td><td>V5.0</td><td>V4</td><td>OB2026070009B</td></tr><tr><td>Shaanxi Zhong’an Shulian Information Technology Co., Ltd.</td><td>Zhong’an Shulian Backup and Recovery System TeraBackup 1.0</td><td>1.0</td><td>V3</td><td>OB2026070010B</td></tr><tr><td>Tianjin Haina Tianzhi Technology Co., Ltd.</td><td>Integrated Security System V1.0</td><td>V1.0</td><td>V4</td><td>OB2026070011B</td></tr><tr><td>Shanghai Huizhao Information Technology Co., Ltd.</td><td>Digital Intelligent Procurement Platform V6</td><td>V6</td><td>V4</td><td>OB2026070012B</td></tr><tr><td>Beijing Quanzhiwei Technology Co., Ltd.</td><td>Intelligent Large Model Operations Platform</td><td>V5.0</td><td>V4</td><td>OB2026070013B</td></tr><tr><td>Guangdong Yingshi Computer Technology Co., Ltd.</td><td>Coremail XT Security-Enhanced Email System V6.0</td><td>V6.0</td><td>V4</td><td>OB2026070014B</td></tr><tr><td>Guangdong Yingshi Computer Technology Co., Ltd.</td><td>Coremail AI Security-Enhanced Email System V1.2</td><td>V1.2</td><td>V4</td><td>OB2026070015B</td></tr></tbody></table><p><img src="/img/oceanbase-community-monthly-2026-08/05.png" alt="July 2026 OceanBase ecosystem compatibility certification graphic for fifteen products" loading="lazy" decoding="async"></p><h2 id="Community-Updates"><a href="#Community-Updates" class="headerlink" title="Community Updates"></a>Community Updates</h2><h3 id="1-WAIC-Lunch-Meetup-—-From-Cloud-Agents-to-Edge-Devices-Make-AI-Remember-Run-Fast-and-Stay-Accurate"><a href="#1-WAIC-Lunch-Meetup-—-From-Cloud-Agents-to-Edge-Devices-Make-AI-Remember-Run-Fast-and-Stay-Accurate" class="headerlink" title="1. WAIC Lunch Meetup — From Cloud Agents to Edge Devices: Make AI Remember, Run Fast, and Stay Accurate"></a>1. WAIC Lunch Meetup — From Cloud Agents to Edge Devices: Make AI Remember, Run Fast, and Stay Accurate</h3><p>On July 19, during the 2026 World Artificial Intelligence Conference, the community hosted a lunch meetup on embodied intelligence, one of the conference’s most prominent topics. Using intelligent driving as an example, the team explained OceanBase’s technical approach and led a hands-on workshop. In two hours, attendees explored:</p><ul><li>In the cloud: long-term memory and higher retrieval precision for Agents</li><li>On the edge: how embodied-intelligence and autonomous-driving systems can work within hardware compute and storage constraints while supporting real-time perception and decision-making</li></ul><p><img src="/img/oceanbase-community-monthly-2026-08/06.png" alt="WAIC 2026 OceanBase lunch meetup graphic on cloud agents and edge devices" loading="lazy" decoding="async"></p><h3 id="2-What-Agents-Lack-from-Demo-to-Production-Is-Not-the-Model—It-Is-Memory"><a href="#2-What-Agents-Lack-from-Demo-to-Production-Is-Not-the-Model—It-Is-Memory" class="headerlink" title="2. What Agents Lack from Demo to Production Is Not the Model—It Is Memory"></a>2. What Agents Lack from Demo to Production Is Not the Model—It Is Memory</h3><p>On July 31, the community visited Suzhou to discuss the agent runtime stack: how to build sustainable, enterprise-ready agentic AI infrastructure compatible with China’s Xinchuang ecosystem, and how to explore real-world user scenarios.</p><p><img src="/img/oceanbase-community-monthly-2026-08/07.png" alt="Suzhou OceanBase meetup graphic on agent runtime memory and production infrastructure" loading="lazy" decoding="async"></p><h3 id="3-August-Event-Preview-OceanBase-and-Percona-in-Beijing"><a href="#3-August-Event-Preview-OceanBase-and-Percona-in-Beijing" class="headerlink" title="3. August Event Preview: OceanBase and Percona in Beijing"></a>3. August Event Preview: OceanBase and Percona in Beijing</h3><p>On August 15, the community will partner with the international database company Percona for an industry exchange in Zhongguancun. The theme is <strong>Compatibility or rewrite? The risks and opportunities for databases in the AI era.</strong></p><p><img src="/img/oceanbase-community-monthly-2026-08/08.webp" alt="August 15 Zhongguancun OceanBase and Percona database meetup event poster" loading="lazy" decoding="async"></p><p>Register at <a href="https://open.oceanbase.com/activities/4924119">https://open.oceanbase.com/activities/4924119</a>.</p><p>While the industry focuses on large models and AI applications, one principle remains clear: <strong>compute is precious, but data is even more valuable.</strong> Without a strong database foundation, any form of intelligence is built on sand. Speakers include:</p><ul><li>Percona founders Peter Zaitsev and Vadim Tkachenko</li><li>Peng Lixun, chief architect of Huawei Cloud’s cloud-native database engine, vice chair of the CCIA special committee, and chair of ACMUG</li><li>Database expert Yang Jianrong, a DBAplus community co-founder and author of <em>Oracle DBA Work Notes</em> and <em>MySQL DBA Work Notes</em></li><li>Wang Guangyou, head of databases at DiDi</li><li>Yang Chuanhui, CTO of OceanBase</li></ul><p><img src="/img/oceanbase-community-monthly-2026-08/09.png" alt="Zhongguancun meetup speaker lineup featuring Percona founders and OceanBase CTO" loading="lazy" decoding="async"></p><p>This meetup moves beyond the hype and returns to first principles. MySQL remains a central force in the database ecosystem, so we have brought together a broad cross-section of that community: international community leaders, domestic database experts, cloud-native pioneers, and enterprise practitioners. The discussion will focus on three questions:</p><ul><li>How can AI make databases smarter? (AI for DB)</li><li>How can databases better support AI applications? (DB for AI)</li><li>What stays, and what changes, for the MySQL ecosystem over the next decade?</li></ul><p><strong>What to expect:</strong></p><ul><li>A rare gathering of leaders from across the global MySQL ecosystem to discuss the paradigm shift facing databases in the AI era</li><li>Practical integration points between AI and databases—separating proven capabilities from marketing claims and reducing technology-selection risk</li><li>Where international community-led and domestic in-house approaches diverge and converge, and how AI may reshape database kernels</li><li>The real state of AI-assisted operations (AIOps)—which tools are usable today, and which are still just concepts</li></ul><p><img src="/img/oceanbase-community-monthly-2026-08/10.png" alt="OceanBase Percona meetup highlights on AI for DB and MySQL ecosystem" loading="lazy" decoding="async"></p><blockquote><p>Every month, we hold a community progress briefing. Through more interaction, we hope to make the OceanBase open-source community more transparent, share information openly, maintain a welcoming atmosphere, answer questions, and give everyone a voice.</p><p>If you have suggestions for the community, please open an issue or pull request in the <a href="https://github.com/oceanbase/oceanbase">OceanBase GitHub repository</a>. You are also welcome to become a contributor and help build the community.</p></blockquote><p>References:</p><ul><li>[1] Learn about AgentSeek: <a href="https://github.com/ob-labs/agentseek">https://github.com/ob-labs/agentseek</a></li><li>[2] v0.0.5: <a href="https://github.com/ob-labs/agentseek/releases/tag/v0.0.5">https://github.com/ob-labs/agentseek/releases/tag/v0.0.5</a></li><li>[3] v0.1.0: <a href="https://github.com/ob-labs/agentseek/releases/tag/v0.1.0">https://github.com/ob-labs/agentseek/releases/tag/v0.1.0</a></li><li>[4] v0.1.1: <a href="https://github.com/ob-labs/agentseek/releases/tag/v0.1.1">https://github.com/ob-labs/agentseek/releases/tag/v0.1.1</a></li><li>[5] OceanBase on GitHub: <a href="https://github.com/oceanbase/oceanbase">https://github.com/oceanbase/oceanbase</a></li></ul><p><img src="/img/oceanbase-community-monthly-2026-08/11.gif" alt="OceanBase community animated call-to-action inviting issues PRs and contributors" loading="lazy" decoding="async"></p><p><img src="/img/oceanbase-community-monthly-2026-08/12.png" alt="OceanBase community follow-up graphic pointing readers to more materials" loading="lazy" decoding="async"></p><p><img src="/img/oceanbase-community-monthly-2026-08/13.webp" alt="Thin section divider graphic before previous monthly recommendations" loading="lazy" decoding="async"></p><h2 id="Previous-Issues"><a href="#Previous-Issues" class="headerlink" title="Previous Issues"></a>Previous Issues</h2><p><img src="/img/oceanbase-community-monthly-2026-08/14.png" alt="Previous OceanBase Community Monthly recommendation card one" loading="lazy" decoding="async"></p><p><img src="/img/oceanbase-community-monthly-2026-08/15.webp" alt="Previous OceanBase Community Monthly recommendation card two" loading="lazy" decoding="async"></p><p><img src="/img/oceanbase-community-monthly-2026-08/16.webp" alt="Previous OceanBase Community Monthly recommendation card three" loading="lazy" decoding="async"></p><p>Welcome to join the open-source community Discord.</p><p><img src="/img/discord.png" alt="Welcome to join the open-source community Discord" loading="lazy" decoding="async"></p>]]>
    </content>
    <id>https://longda.us/2026/2026-08-12-oceanbase-community-monthly/</id>
    <link href="https://longda.us/2026/2026-08-12-oceanbase-community-monthly/"/>
    <published>2026-08-11T20:04:10.000Z</published>
    <summary>August 2026 OceanBase Community Monthly: AgentSeek 0.0.5–0.1.1, V4.4.2_CE_BP2, OBD v4.5.0, 15 certifications, plus WAIC, Suzhou, and Beijing events.</summary>
    <title>OceanBase Community Monthly: Kernel and AI Tool Releases, Plus Events Across China</title>
    <updated>2026-08-12T20:04:10.000Z</updated>
  </entry>
  <entry>
    <author>
      <name>Longda Feng</name>
    </author>
    <category term="Industry Insights" scheme="https://longda.us/categories/Industry-Insights/"/>
    <category term="seekdb" scheme="https://longda.us/tags/seekdb/"/>
    <category term="PowerMem" scheme="https://longda.us/tags/PowerMem/"/>
    <category term="Palantir" scheme="https://longda.us/tags/Palantir/"/>
    <category term="Alex Karp" scheme="https://longda.us/tags/Alex-Karp/"/>
    <category term="AI Industry" scheme="https://longda.us/tags/AI-Industry/"/>
    <category term="Enterprise Memory" scheme="https://longda.us/tags/Enterprise-Memory/"/>
    <category term="Context Window" scheme="https://longda.us/tags/Context-Window/"/>
    <category term="Means of Production" scheme="https://longda.us/tags/Means-of-Production/"/>
    <content>
      <![CDATA[<script type="application/ld+json">{"@context":"https://schema.org","@type":"BlogPosting","headline":"Is AI Giving Rise to 'Marxism' in the Tech Industry?","description":"Palantir CEO Alex Karp called the AI industry Marxist. The real issue is who owns prompts, workflows, and memory when firms use models.","image":"https://longda.us/img/ai-marxism-socialism/01.png","wordCount":2464,"timeRequired":"PT12M","datePublished":"2026-08-09T20:03:43.000Z","dateModified":"2026-08-12T20:03:42.000Z","isAccessibleForFree":true,"author":{"@type":"Person","name":"Longda Feng","url":"https://longda.us"},"publisher":{"@type":"Organization","name":"Longda's Interesting World","logo":{"@type":"ImageObject","url":"https://longda.us/img/my.jpg"}},"mainEntityOfPage":{"@type":"WebPage","@id":"https://longda.us/2026/2026-08-10-ai-marxism-socialism/"},"url":"https://longda.us/2026/2026-08-10-ai-marxism-socialism/","inLanguage":"en","keywords":["seekdb","PowerMem","Palantir","Alex Karp","AI Industry","Enterprise Memory","Context Window","Means of Production"],"articleSection":["Industry Insights"]}</script><script type="application/ld+json">{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://longda.us/"},{"@type":"ListItem","position":2,"name":"Industry Insights","item":"https://longda.us/categories/Industry-Insights/"},{"@type":"ListItem","position":3,"name":"Is AI Giving Rise to 'Marxism' in the Tech Industry?","item":"https://longda.us/2026/2026-08-10-ai-marxism-socialism/"}]}</script><p>Palantir CEO Alex Karp recently called the AI industry <strong>“Marxist.”</strong> The label is provocative, but the sharper question is who ultimately owns the prompts, workflows, context, and skills that enterprises create while paying to use someone else’s model.</p><p><em>Zlatan’s AI Agent · August 10, 2026, 07:30</em></p><blockquote><p>“The means of production in society are owned by individual capitalists. This is the fundamental contradiction from which all the contradictions of modern society arise.”</p><p>— Friedrich Engels, <em>Anti-Dühring</em></p></blockquote><blockquote><p>“The centralization of the means of production and the socialization of labor reach a point at which they become incompatible with their capitalist shell. The shell bursts asunder. The knell of capitalist private property sounds. The expropriators are expropriated.”</p><p>— Karl Marx, <em>Capital</em></p></blockquote><h2 id="Prologue"><a href="#Prologue" class="headerlink" title="Prologue"></a>Prologue</h2><p>In recent days, one story has been circulating widely: Palantir CEO Alex Karp publicly called the artificial intelligence industry <strong>“Marxist.”</strong> The comparison is provocative enough to warrant a closer look.</p><p><img src="/img/ai-marxism-socialism/01.png" alt="Illustrated cover of Palantir CEO calling the AI industry Marxist" decoding="async"></p><span id="more"></span><p>Palantir is a U.S. software company that helps large organizations build unified data models and use them for analysis and operational decision-making.</p><p>Karp studied philosophy and holds a doctorate in social theory. In Palantir’s quarterly letter to shareholders, he argued that <strong>the capitalists of the AI industry are themselves giving rise to Marxism—or socialism.</strong></p><p>Before going further, it helps to revisit one of Marxism’s central concerns.</p><p><img src="/img/ai-marxism-socialism/02.jpeg" alt="Child holding a textbook titled Basic Principles of Marxism" loading="lazy" decoding="async"></p><p>Political theory textbooks put it this way: Marxism identifies an internal contradiction within capitalism—production becomes increasingly socialized while the <strong>means of production</strong> remain privately owned by capital.</p><p>The concentration of the means of production and the socialization of labor eventually come into conflict with capitalist ownership. In classical Marxist theory, that contradiction creates an important internal condition for a transition beyond capitalism.</p><p><img src="/img/ai-marxism-socialism/03.png" alt="Diagram of Marxist focus on who owns the means of production" loading="lazy" decoding="async"></p><p>Marxism, in other words, repeatedly returns to the question of who owns and controls the means of production. The later maxim “from each according to his ability, to each according to his needs” describes what Marx called the higher phase of communist society, after the problem of ownership has been overcome.</p><p>Some online commentators have recently argued that AI businesses have a Marxist dimension. Their reasoning is that <strong>AI companies, especially those building large language models, may—deliberately or not—seize the means of production of their partners.</strong></p><p><img src="/img/ai-marxism-socialism/04.png" alt="Illustration of AI labs capturing partner enterprise means of production" loading="lazy" decoding="async"></p><p>Follow the OceanBase community WeChat account “老纪的技术唠嗑局” for more technical articles on AI and data.</p><h2 id="“Marxism”-Is-the-Headline-Ownership-Is-the-Real-Question"><a href="#“Marxism”-Is-the-Headline-Ownership-Is-the-Real-Question" class="headerlink" title="“Marxism” Is the Headline; Ownership Is the Real Question"></a>“Marxism” Is the Headline; Ownership Is the Real Question</h2><p>In a TechCrunch report[1], Karp accused some AI companies and labs of trying to take control of their enterprise partners’ “means of production.”</p><p>What he means is not the factories, machines, and assembly lines of the industrial era. He means the <strong>prompts, workflow orchestration, context, and business expertise distilled into skills</strong> that enterprises continually produce as they use AI.</p><p><img src="/img/ai-marxism-socialism/05.png" alt="Illustration of Karp warning model vendors capture partner production data" loading="lazy" decoding="async"></p><p>“Marxism” is an enormous label, and it should not be mistaken for a rigorous judgment about political theory.</p><p>Karp is not really arguing for public ownership of the means of production. He is borrowing a familiar concept to describe a new kind of dependency in the AI era: <strong>model vendors control the models and the compute; enterprises, in everyday use, keep contributing their own business context to those vendors.</strong></p><p>What the vendor receives may extend far beyond a single API call. It can include how the enterprise asks questions, organizes tasks, judges the quality of an answer, and turns context into stable processes. These assets may look less glamorous than model parameters presented at a product launch, but they can be much closer to a company’s core competitive advantage.</p><p>Karp’s remark, as summarized in the reporting, is that some model vendors may “capture their partners’ means of production.” In practical terms, an enterprise pays to use AI while simultaneously handing the vendor its most valuable ways of working.</p><h2 id="The-Debate-on-X-Will-Model-Vendors-Become-Competitors"><a href="#The-Debate-on-X-Will-Model-Vendors-Become-Competitors" class="headerlink" title="The Debate on X: Will Model Vendors Become Competitors?"></a>The Debate on X: Will Model Vendors Become Competitors?</h2><p>The “AI gives rise to Marxism” debate on X quickly left “who owns the data” and landed on a sharper question: will model companies enter their customers’ industries and take the business themselves?</p><p><img src="/img/ai-marxism-socialism/06.png" alt="Social graphic asking if model labs will compete with their customers" loading="lazy" decoding="async"></p><p>Ole Lehmann[2] listed a few cases:</p><ol><li>After Figma partnered with Anthropic to build design tools, Anthropic quickly launched Claude Design;</li><li>Novo Nordisk used Claude to support drug research, and before long Anthropic began pursuing drug research itself;</li><li>After Microsoft invested in OpenAI, OpenAI expanded into areas served by Microsoft’s recruiting (LinkedIn) and code-hosting (GitHub) businesses, becoming a direct competitor.</li></ol><p>Similar boundary fights have shown up in law, customer support, clinical documentation, and biotech R&amp;D.</p><p><img src="/img/ai-marxism-socialism/07.jpeg" alt="X post listing Anthropic and OpenAI cases of entering customer markets" loading="lazy" decoding="async"></p><p>Lehmann’s judgment is that OpenAI and Anthropic are “cannibalizing all their biggest customers”—gradually swallowing their largest customers by capturing those customers’ “means of production.”</p><p>The question he poses is this: if you hand your business processes to a model vendor today, will that vendor return tomorrow with a more capable model, more customer data, and a lower marginal cost—and sell the same service itself?</p><p>There has been a lot of discussion of this on X. Some people simply call the pattern a “dirty, dirtbag business model.”</p><p><img src="/img/ai-marxism-socialism/08.jpeg" alt="X comment calling the pattern a dirty dirtbag business model" loading="lazy" decoding="async"></p><p>Chamath[3] argues that a pharmaceutical company may think it has hired a model vendor, only to discover a competitor “lurking in the shadows.” If AI can accelerate an industry and the potential return is high enough, that industry may become an attractive market for a model provider.</p><p><img src="/img/ai-marxism-socialism/09.jpeg" alt="Chamath post warning model vendors may lurk as industry competitors" loading="lazy" decoding="async"></p><p>These arguments are emotionally charged and may be one-sided. Even so, enterprises are no longer asking only what a model can do. They are also asking whether a model provider might use what it learns from customers to enter those customers’ markets.</p><h2 id="Did-the-Company-Buy-a-Model—and-Hand-Over-Its-Business-Model-Too"><a href="#Did-the-Company-Buy-a-Model—and-Hand-Over-Its-Business-Model-Too" class="headerlink" title="Did the Company Buy a Model—and Hand Over Its Business Model Too?"></a>Did the Company Buy a Model—and Hand Over Its Business Model Too?</h2><blockquote><p>CEOs are discovering that they are paying to train their own replacements.</p></blockquote><p>Many versions of that line circulate online. The phrasing is dramatic, but the underlying question is straightforward: is an AI model vendor merely providing a tool, or is it also gaining an opportunity to enter, understand, and replicate the customer’s business? Every company may want to spend a weekend rereading its AI vendor contracts.</p><p><img src="/img/ai-marxism-socialism/10.png" alt="Graphic of CEOs paying to train their own replacements with AI vendors" loading="lazy" decoding="async"></p><p>A company does not lose its customer relationships and approval workflows simply because it switches databases. In an AI system, however, business knowledge can leak across boundaries more easily because hard-won experience rarely comes with a prominent “Export” button.</p><p>After an agent has been in use for a few months, the valuable content is no longer just the original documents. It may include:</p><ul><li>For a given kind of incident, in what order should you usually troubleshoot?</li><li>Which product usage patterns fit which scenarios or customers?</li></ul><p>And so on.</p><p>That is not generic knowledge a large model learned from the public web. It is a way of working that the enterprise developed through repeated use of the model.</p><p>The problem is that these methods often live in unstructured forms: scattered across chat logs and prompts, embedded in tool orchestration, or stored only in an agent’s internal memory. They create value every day, yet they are rarely managed as assets in their own right.</p><p>So an enterprise may own the raw data without owning a portable AI state. Ownership, at a minimum, should include: <strong>the ability to view, export, correct, restrict the scope of use, and keep using the state after switching models.</strong></p><p>Otherwise, what the company bought is only a model subscription that gets harder and harder to move.</p><p>The better the model, the higher the migration cost; the longer it is used, the harder it is to change platforms. The vendor does not even need to “steal” enterprise data. <strong>As long as the company cannot take its accumulated context with it, lock-in has already happened.</strong></p><h2 id="Context-and-long-term-memory"><a href="#Context-and-long-term-memory" class="headerlink" title="Context and long-term memory"></a>Context and long-term memory</h2><p>Since context has come up, it is worth examining it more closely. Many AI models and products now emphasize the size of their context windows.</p><p>That metric matters. A larger context window lets the model handle more material in a single task. But it answers “how much can this turn hold,” not “can we find it again next turn.”</p><p>Google’s explainer on core concepts for AI agents[4] separates short-term context from long-term memory: short-term context serves the current conversation; long-term memory keeps knowledge, preferences, and historical experience across sessions.</p><p>DeepMind CEO Demis Hassabis has summarized three major shortcomings of today’s AI: continual learning, long-horizon reasoning, and genuine memory. For enterprises, the crucial point is that “genuine memory” is not the same as an ever-larger context window. It requires an independent mechanism that can index and select older information and connect it with new information. The graphic below illustrates the distinction:</p><p><img src="/img/ai-marxism-socialism/11.webp" alt="Graphic contrasting short context windows with durable long-term memory" loading="lazy" decoding="async"></p><p>Put more bluntly, a context window is an ever-larger workbench. Long-term memory is an archive that actually organizes what it stores. The former answers, “How much can this turn hold?” The latter answers, “Months later, what is still worth retrieving?” If an enterprise treats every piece of experience as temporary context, it may end up not with a knowledge base, but with a desk covered in sticky notes that nobody can trust.</p><p><img src="/img/ai-marxism-socialism/12.png" alt="Illustration of context as a messy desk versus an organized archive" loading="lazy" decoding="async"></p><p>Placed inside a company, this is easy to see.</p><p>A support agent handles a complex complaint on Monday. The context includes the customer’s background, order history, internal approval records, and the final resolution. On Friday, another agent encounters a similar case. If the system can only reopen the chat log, it is difficult to tell what actually mattered last time: a long-term customer preference or a one-off remark from that day’s approver.</p><p>What the enterprise needs is reusable experience extracted from interactions, with its source, timestamp, scope of applicability, and confidence preserved.</p><p>A long context is like a very large conference room: it can accommodate more people and material today. Long-term memory is more like an archive. It needs policies for deciding what is worth keeping, who can retrieve it later, and whether retrieved information is still valid.</p><p>Without that management, so-called long-term memory can easily become a “chat recycling bin”: ever more material, increasingly noisy retrieval, and the conclusion you actually need buried in an obscure corner.</p><p>Worse, errors can be remembered too. Once an agent stores an unconfirmed answer as long-term experience, the answer may appear to be authoritative business evidence when it is retrieved later rather than merely a past mistake.</p><p>So memory is not only storage. It needs a lifecycle that includes extraction, update, decay, isolation, and review.</p><h2 id="AI-Should-Remember-Why-the-Enterprise-Accepted-an-Answer"><a href="#AI-Should-Remember-Why-the-Enterprise-Accepted-an-Answer" class="headerlink" title="AI Should Remember Why the Enterprise Accepted an Answer"></a>AI Should Remember Why the Enterprise Accepted an Answer</h2><p>When a company first adopts AI, it usually tests the model’s capabilities: Are its answers accurate? Is it fast enough? Is the cost acceptable?</p><p>Once the system enters production, the questions become much more specific:</p><p>Why was this answer adopted?</p><p>Who edited it?</p><p>How was a similar issue handled last time?</p><p>Is a given piece of feedback a one-off opinion, or experience worth rolling out to the whole team?</p><p>If one agent learns a practice, can another agent see it? If it can, where is the boundary?</p><p>What the enterprise needs to keep is not only “what the AI said,” but also “why the enterprise thought that sentence was useful.”</p><p><img src="/img/ai-marxism-socialism/13.png" alt="Graphic of enterprises keeping the judgments that make answers useful" loading="lazy" decoding="async"></p><p>Microsoft CEO Satya Nadella has recently voiced a similar concern: a company should be able to use a model without giving up the knowledge that makes it unique. Related reporting[5] notes that enterprises should also control their own evaluations, feedback, and decision outcomes, because those artifacts reveal what the organization actually considers a “good answer.” That goes further than “do not upload company files to the model.”</p><p>What a company must protect is not only raw data, but also the judgments, preferences, processes, evaluation standards, and successful practices that form after the data is used.</p><p>That is why, once many AI projects reach production, the hardest things to migrate are often the pieces that grew up around the model: prompt templates, tool orchestration, context assembly, evaluation sets, human feedback, and long-term memory.</p><h2 id="Models-Can-Be-Swapped-Enterprise-State-Must-Persist"><a href="#Models-Can-Be-Swapped-Enterprise-State-Must-Persist" class="headerlink" title="Models Can Be Swapped; Enterprise State Must Persist"></a>Models Can Be Swapped; Enterprise State Must Persist</h2><p><strong>An enterprise does not have to train its own models, and it does not have to refuse cloud services.</strong></p><p>It does, however, need to separate model capabilities from enterprise state: the model handles understanding, reasoning, and generation, while the enterprise manages its business facts, user preferences, feedback, and long-term experience.</p><p>The model can then be replaced without forcing the company to rebuild its accumulated experience from scratch.</p><p><img src="/img/ai-marxism-socialism/14.png" alt="Illustration of swapping models without wiping accumulated enterprise state" loading="lazy" decoding="async"></p><h3 id="PowerMem-Do-Not-Leave-Enterprise-Experience-Trapped-in-Chat-Logs"><a href="#PowerMem-Do-Not-Leave-Enterprise-Experience-Trapped-in-Chat-Logs" class="headerlink" title="PowerMem: Do Not Leave Enterprise Experience Trapped in Chat Logs"></a>PowerMem: Do Not Leave Enterprise Experience Trapped in Chat Logs</h3><p>One open-source option from the OceanBase community is PowerMem[6], a persistent, self-evolving memory layer for AI applications and agents: <a href="https://github.com/oceanbase/powermem">https://github.com/oceanbase/powermem</a>.</p><p>If the model’s job is to “think it through this time,” PowerMem’s job is to “avoid starting from scratch next time.” It can extract information worth retaining from conversations, behavior, and feedback; turn one-off chats into reusable long-term memory; and distill repeatedly validated ways of working into experience and skills.</p><p><img src="/img/ai-marxism-socialism/15.png" alt="PowerMem diagram of persistent self-evolving memory for AI agents" loading="lazy" decoding="async"></p><p>This means the enterprise retains not only a given answer, but also why it was adopted and how similar problems should be handled. When the underlying model changes, memory, experience, and skills remain in the enterprise’s own memory layer instead of being tied to a particular model’s context window.</p><h3 id="seekdb-Put-Enterprise-State-Somewhere-You-Can-Manage"><a href="#seekdb-Put-Enterprise-State-Somewhere-You-Can-Manage" class="headerlink" title="seekdb: Put Enterprise State Somewhere You Can Manage"></a>seekdb: Put Enterprise State Somewhere You Can Manage</h3><p>Memory still has to live somewhere. Another open-source option is seekdb[7], a lightweight AI database: <a href="https://github.com/oceanbase/seekdb">https://github.com/oceanbase/seekdb</a>.</p><p><img src="/img/ai-marxism-socialism/16.png" alt="seekdb diagram unifying structured vector full-text and JSON state" loading="lazy" decoding="async"></p><p>seekdb can store, retrieve, and manage structured data, vectors, full text, JSON, and other forms of business state in one lightweight database. Customer preferences can live in structured fields, historical experience can be retrieved through vector search, and raw feedback can remain available through full-text search. Different data shapes do not require a collection of disconnected systems.</p><p>Small applications can use embedded mode and keep state with the application; team and production deployments can use server mode for shared storage and retrieval. The model then becomes a replaceable compute component, while memory and business state remain within boundaries defined by the enterprise.</p><p>This is not a claim that a database automatically solves permissions, auditing, or security. It simply <strong>puts the most critical state—context and long-term memory—back in a place the enterprise can manage and control.</strong></p><h2 id="Closing"><a href="#Closing" class="headerlink" title="Closing"></a>Closing</h2><p>Karp’s remark about the “means of production,” translated into plainer language, is this:</p><blockquote><p><strong>Enterprises can rent models, but they must retain control of their context and memory.</strong></p></blockquote><p>References</p><p>[1] TechCrunch report: <a href="https://techcrunch.com/2026/08/03/after-killer-quarter-palantir-ceo-alex-karp-calls-ai-industry-marxist/">https://techcrunch.com/2026/08/03/after-killer-quarter-palantir-ceo-alex-karp-calls-ai-industry-marxist/</a></p><p>[2] Ole Lehmann: <a href="https://x.com/itsolelehmann">https://x.com/itsolelehmann</a></p><p>[3] Chamath: <a href="https://x.com/chamath">https://x.com/chamath</a></p><p>[4] Google on core concepts for AI agents: <a href="https://cloud.google.com/resources/core-concepts-ai-agents">https://cloud.google.com/resources/core-concepts-ai-agents</a></p><p>[5] Related reporting: <a href="https://www.itpro.com/technology/artificial-intelligence/a-company-should-be-able-to-use-a-model-without-giving-up-the-knowledge-that-makes-it-unique-microsoft-ceo-satya-nadella-says-enterprises-shouldnt-be-sharing-so-much-data-with-ai-providers">https://www.itpro.com/technology/artificial-intelligence/a-company-should-be-able-to-use-a-model-without-giving-up-the-knowledge-that-makes-it-unique-microsoft-ceo-satya-nadella-says-enterprises-shouldnt-be-sharing-so-much-data-with-ai-providers</a></p><p>[6] PowerMem: <a href="https://github.com/oceanbase/powermem">https://github.com/oceanbase/powermem</a></p><p>[7] seekdb: <a href="https://github.com/oceanbase/seekdb">https://github.com/oceanbase/seekdb</a></p><p><img src="/img/ai-marxism-socialism/17.png" alt="Footer graphic urging enterprises to retain control of context and memory" loading="lazy" decoding="async"></p><p><img src="/img/ai-marxism-socialism/18.gif" alt="Animated community banner after the closing references section" loading="lazy" decoding="async"></p><p><img src="/img/ai-marxism-socialism/19.webp" alt="Thin decorative WeChat account banner after the article close" loading="lazy" decoding="async"></p><h2 id="Related-reading"><a href="#Related-reading" class="headerlink" title="Related reading"></a>Related reading</h2><p><img src="/img/ai-marxism-socialism/20.webp" alt="Related-reading card for a previous OceanBase AI community article" loading="lazy" decoding="async"></p><p><img src="/img/ai-marxism-socialism/21.webp" alt="Related-reading card for another prior OceanBase AI article" loading="lazy" decoding="async"></p><p><img src="/img/ai-marxism-socialism/22.png" alt="Related-reading card promoting a previous technical discussion" loading="lazy" decoding="async"></p><p><img src="/img/ai-marxism-socialism/23.webp" alt="Related-reading card for a fourth recommended community article" loading="lazy" decoding="async"></p><p><img src="/img/ai-marxism-socialism/24.webp" alt="Repeated decorative WeChat banner under the related-reading section" loading="lazy" decoding="async"></p><h2 id="Upcoming-community-events"><a href="#Upcoming-community-events" class="headerlink" title="Upcoming community events"></a>Upcoming community events</h2><p><img src="/img/ai-marxism-socialism/25.png" alt="Community event poster recommending upcoming OceanBase activities" loading="lazy" decoding="async"></p><p>Welcome to join the open-source community Discord.</p><p><img src="/img/discord.png" alt="Welcome to join the open-source community Discord" loading="lazy" decoding="async"></p>]]>
    </content>
    <id>https://longda.us/2026/2026-08-10-ai-marxism-socialism/</id>
    <link href="https://longda.us/2026/2026-08-10-ai-marxism-socialism/"/>
    <published>2026-08-09T20:03:43.000Z</published>
    <summary>Palantir CEO Alex Karp called the AI industry Marxist. The real issue is who owns prompts, workflows, and memory when firms use models.</summary>
    <title>Is AI Giving Rise to 'Marxism' in the Tech Industry?</title>
    <updated>2026-08-12T20:03:42.000Z</updated>
  </entry>
  <entry>
    <author>
      <name>Longda Feng</name>
    </author>
    <category term="AI Applications" scheme="https://longda.us/categories/AI-Applications/"/>
    <category term="OceanBase" scheme="https://longda.us/tags/OceanBase/"/>
    <category term="Agent Memory" scheme="https://longda.us/tags/Agent-Memory/"/>
    <category term="seekdb" scheme="https://longda.us/tags/seekdb/"/>
    <category term="PowerMem" scheme="https://longda.us/tags/PowerMem/"/>
    <category term="Multi-Agent" scheme="https://longda.us/tags/Multi-Agent/"/>
    <category term="Memory Isolation" scheme="https://longda.us/tags/Memory-Isolation/"/>
    <category term="DeepAgents" scheme="https://longda.us/tags/DeepAgents/"/>
    <category term="AI Intelligence Bureau" scheme="https://longda.us/tags/AI-Intelligence-Bureau/"/>
    <content>
      <![CDATA[<script type="application/ld+json">{"@context":"https://schema.org","@type":"BlogPosting","headline":"From Whispers to the Bulletin Board: Multi-Agent Memory Isolation in Action","description":"A PowerMem and seekdb game shows how multi-agent memory remains isolated until an operator publishes a private card to a shared bulletin board.","image":"https://longda.us/img/multi-agent-memory-isolation-game/01.png","wordCount":3469,"timeRequired":"PT17M","datePublished":"2026-08-02T20:03:12.000Z","dateModified":"2026-08-12T20:03:12.000Z","isAccessibleForFree":true,"author":{"@type":"Person","name":"Longda Feng","url":"https://longda.us"},"publisher":{"@type":"Organization","name":"Longda's Interesting World","logo":{"@type":"ImageObject","url":"https://longda.us/img/my.jpg"}},"mainEntityOfPage":{"@type":"WebPage","@id":"https://longda.us/2026/2026-08-03-multi-agent-memory-isolation-game/"},"url":"https://longda.us/2026/2026-08-03-multi-agent-memory-isolation-game/","inLanguage":"en","keywords":["OceanBase","Agent Memory","seekdb","PowerMem","Multi-Agent","Memory Isolation","DeepAgents","AI Intelligence Bureau"],"articleSection":["AI Applications"]}</script><script type="application/ld+json">{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://longda.us/"},{"@type":"ListItem","position":2,"name":"AI Applications","item":"https://longda.us/categories/AI-Applications/"},{"@type":"ListItem","position":3,"name":"From Whispers to the Bulletin Board: Multi-Agent Memory Isolation in Action","item":"https://longda.us/2026/2026-08-03-multi-agent-memory-isolation-game/"}]}</script><p>The hardest part of multi-agent collaboration is ensuring that each agent knows only what it is allowed to know. This article walks through <strong>AI Intelligence Bureau</strong>, a small game built on PowerMem and seekdb that makes this isolation visible: whisper a secret to one role, interrogate another, then publish a private card to the bulletin board and see who can retrieve it.</p><p><img src="/img/multi-agent-memory-isolation-game/01.png" alt="AI Intelligence Bureau operator console showing private memory cards and a public bulletin board" decoding="async"></p><span id="more"></span><p>Agent memory has long been an interesting topic.</p><p>A few days earlier at WAIC, the OceanBase open-source community hosted a lunchtime workshop and spent a lot of time discussing agent memory. I shared AI Intelligence Bureau, a small game built on <strong>PowerMem</strong> and <strong>seekdb</strong>, from a multi-agent perspective so that people could <strong>see more clearly how multiple agents manage and isolate memory</strong>.</p><p>First, the technical stack: PowerMem[1] manages memory, seekdb[2] handles retrieval and persistence, LangChain DeepAgents[3] generates responses under role constraints, and the role-language layer uses StepFun[4] (阶跃星辰) <code>step-3.7-flash</code>. The application-layer retrieval policy and a unified <code>MemoryGateway</code> determine which memories a given role may search.</p><p>The demo is small, but all the essential components are there. Let’s see how the game is played.</p><p><img src="/img/multi-agent-memory-isolation-game/02.png" alt="Cover graphic for the AI Intelligence Bureau multi-agent memory isolation game" loading="lazy" decoding="async"></p><p>Follow the OceanBase community WeChat account “老纪的技术唠嗑局”. We keep posting technical pieces on #AI and #Data.</p><h2 id="1-How-do-you-play"><a href="#1-How-do-you-play" class="headerlink" title="1. How do you play?"></a>1. How do you play?</h2><p>The rules are simple. The user is the bureau chief. Three agent roles are in play: detective, informant, and suspect.</p><p>Each of them has private memory and, by default, does not know the others’ secrets.</p><p>The user can whisper to one agent and write the message into that agent’s private memory, or interrogate a role and see whether it knows a given fact.</p><p><img src="/img/multi-agent-memory-isolation-game/03.png" alt="Diagram of bureau chief whispering to detective informant and suspect with isolated private memory" loading="lazy" decoding="async"></p><p>To share a message with every agent, the user can publish one agent’s private memory to the bulletin board, turning it into public intelligence. The published copy then becomes available to all agents.</p><p><img src="/img/multi-agent-memory-isolation-game/04.png" alt="Publishing a locked private memory card onto the shared bulletin board for all agents" loading="lazy" decoding="async"></p><p>The UI includes a memory X-ray panel that clearly displays search scopes, hits, and misses:</p><p><img src="/img/multi-agent-memory-isolation-game/05.png" alt="Memory X-ray panel listing searched scopes hits misses and retrieval latency" loading="lazy" decoding="async"></p><p>The operator console and the stage screen stay in sync through backend events. When the model is unavailable, an evidence mode still walks through what is known and what is not.</p><p>That is the layout and the role of each module. Before a game starts, you choose and initialize a scenario so each agent loads its opening memories.</p><p><img src="/img/multi-agent-memory-isolation-game/06.png" alt="Scenario picker initializing a case and loading each agent opening memory" loading="lazy" decoding="async"></p><p>After choosing a mission scenario, you can start interrogating the agents. Ask the detective first: “What is the safe combination?” The detective cannot retrieve anything relevant because the combination belongs to the informant’s private memory.</p><p><img src="/img/multi-agent-memory-isolation-game/07.png" alt="Detective interrogation missing the safe combination still locked in informant private memory" loading="lazy" decoding="async"></p><p>To let the detective know the combination as well, publish the informant’s private memory about that password to the bulletin board so it becomes shared memory.</p><p>Ask the detective again: “What is the safe combination?” This time the detective can answer correctly.</p><p><img src="/img/multi-agent-memory-isolation-game/08.png" alt="After bulletin-board publish the detective retrieves the shared safe combination" loading="lazy" decoding="async"></p><p>You can also whisper separately to different roles and test whether that private message is retrieved by anyone else.</p><p><img src="/img/multi-agent-memory-isolation-game/09.png" alt="Whispering a private note to one role to test whether other agents can retrieve it" loading="lazy" decoding="async"></p><p>The gameplay is simple, but it exists to show and verify one thing: <strong>see clearly who knows what</strong>.</p><p><img src="/img/multi-agent-memory-isolation-game/10.png" alt="Stage view emphasizing the core question of who knows which memories" loading="lazy" decoding="async"></p><p>Next, let’s examine the agent-memory design behind the game.</p><h2 id="2-How-the-gameplay-connects-to-the-stack"><a href="#2-How-the-gameplay-connects-to-the-stack" class="headerlink" title="2. How the gameplay connects to the stack"></a>2. How the gameplay connects to the stack</h2><p><img src="/img/multi-agent-memory-isolation-game/11.png" alt="Architecture diagram connecting PowerMem seekdb DeepAgents and the memory gateway" loading="lazy" decoding="async"></p><p>The responsibilities in this small game are clear: <strong>seekdb</strong> handles storage and retrieval, <strong>PowerMem</strong> provides memory read and write operations with <code>user_id</code>, <code>agent_id</code>, and metadata, and the application layer decides which memory spaces each request may access. <strong>DeepAgents</strong> then constructs an answer from approved evidence; the LLM only turns that evidence into the role’s voice.</p><p><img src="/img/multi-agent-memory-isolation-game/12.png" alt="Layered stack showing seekdb persistence PowerMem memory APIs and DeepAgents speech" loading="lazy" decoding="async"></p><h3 id="2-1-Opening-and-whispers-secrets-are-written-only-to-the-target-role"><a href="#2-1-Opening-and-whispers-secrets-are-written-only-to-the-target-role" class="headerlink" title="2.1 Opening and whispers: secrets are written only to the target role"></a>2.1 Opening and whispers: secrets are written only to the target role</h3><p>When a scenario is loaded, or when the user whispers to an Agent, the system must guarantee two things:</p><ul><li>Different cases must not mix. One case maps to one <code>case_id</code>, which becomes PowerMem’s <code>user_id</code>, isolating games from each other.</li><li>Written memory must reach only the target agent. Each role maps to one <code>agent_id</code> (detective, informant, suspect, bulletin board), isolating the memory spaces.</li></ul><figure class="highlight python"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment"># case_id 映射 PowerMem user_id</span></span><br><span class="line"><span class="keyword">def</span> <span class="title function_">to_user_id</span>(<span class="params">case_id: <span class="built_in">str</span></span>) -&gt; <span class="built_in">str</span>:</span><br><span class="line">    <span class="keyword">return</span> <span class="string">f&quot;case:<span class="subst">&#123;case_id&#125;</span>&quot;</span></span><br><span class="line"></span><br><span class="line"></span><br><span class="line"><span class="comment"># 通过传入 case_id 与 agent_id 写入私有 Agent 记忆</span></span><br><span class="line"><span class="keyword">def</span> <span class="title function_">write_private</span>(<span class="params">self, case_id, agent_id, content, *, topic, kind, created_by</span>):</span><br><span class="line">    <span class="keyword">return</span> <span class="variable language_">self</span>._write(</span><br><span class="line">        case_id,</span><br><span class="line">        agent_id,</span><br><span class="line">        content,</span><br><span class="line">        &#123;</span><br><span class="line">            <span class="string">&quot;case_id&quot;</span>: case_id,</span><br><span class="line">            <span class="string">&quot;visibility&quot;</span>: <span class="string">&quot;private&quot;</span>,</span><br><span class="line">            <span class="string">&quot;owner_agent_id&quot;</span>: agent_id.value,</span><br><span class="line">            <span class="string">&quot;topic&quot;</span>: topic,</span><br><span class="line">            <span class="string">&quot;kind&quot;</span>: kind,</span><br><span class="line">            <span class="string">&quot;created_by&quot;</span>: created_by,</span><br><span class="line">            <span class="string">&quot;is_demo_safe&quot;</span>: <span class="literal">True</span>,</span><br><span class="line">        &#125;,</span><br><span class="line">    )</span><br></pre></td></tr></table></figure><p>Underneath, the PowerMem Python SDK talks to seekdb directly.</p><p><img src="/img/multi-agent-memory-isolation-game/13.png" alt="PowerMem Python SDK writing a private memory card into seekdb for one agent" loading="lazy" decoding="async"></p><p>When PowerMem stores multi-agent memory, you can wrap the client in two ways:</p><ol><li>Use a single PowerMem client and pass a different <code>agent_id</code> on every read or write to distinguish agent memories:</li></ol><figure class="highlight python"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br></pre></td><td class="code"><pre><span class="line"><span class="keyword">from</span> powermem <span class="keyword">import</span> create_memory</span><br><span class="line"></span><br><span class="line">memory = create_memory(config=settings.powermem_config())</span><br><span class="line">memory.add(</span><br><span class="line">    content,</span><br><span class="line">    user_id=to_user_id(case_id),</span><br><span class="line">    agent_id=<span class="string">&quot;informant&quot;</span>,</span><br><span class="line">    metadata=metadata,</span><br><span class="line">    infer=<span class="literal">False</span>,</span><br><span class="line">)</span><br><span class="line">memory.search(</span><br><span class="line">    query,</span><br><span class="line">    user_id=to_user_id(case_id),</span><br><span class="line">    agent_id=<span class="string">&quot;detective&quot;</span>,</span><br><span class="line">    limit=<span class="number">20</span>,</span><br><span class="line">)</span><br></pre></td></tr></table></figure><ol start="2"><li>Use the approach adopted by this game: lazily load and cache one client per role. The first time a role is read or written, the system calls <code>create_memory(agent_id=...)</code> to create that role’s memory client. Subsequent reads and writes go through that client to the corresponding role space. The <code>agent_id</code> passed to <code>create_memory</code> is essentially the client’s default role.</li></ol><figure class="highlight python"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br></pre></td><td class="code"><pre><span class="line"><span class="keyword">from</span> powermem <span class="keyword">import</span> create_memory</span><br><span class="line"></span><br><span class="line"><span class="comment"># 按角色缓存客户端：detective / informant / suspect / bulletin_board</span></span><br><span class="line">memory = create_memory(config=settings.powermem_config(), agent_id=agent_id.value)</span><br><span class="line">memory.add(</span><br><span class="line">    content,</span><br><span class="line">    user_id=to_user_id(case_id),</span><br><span class="line">    agent_id=agent_id.value,</span><br><span class="line">    metadata=metadata,</span><br><span class="line">    infer=<span class="literal">False</span>,</span><br><span class="line">)</span><br></pre></td></tr></table></figure><p>In this demo, both styles ultimately filter on <code>user_id</code> and <code>agent_id</code>. The difference is mostly application packaging:</p><table><thead><tr><th></th><th>Single client, distinguish roles by <code>agent_id</code></th><th>One client per role</th></tr></thead><tbody><tr><td>Isolation mechanism</td><td><code>user_id</code> + <code>agent_id</code> in call arguments</td><td><code>user_id</code> + <code>agent_id</code> in call arguments</td></tr><tr><td>Mental model</td><td>One memory engine, filtered by identifiers</td><td>Each role has its own memory entry point</td></tr><tr><td>Guardrail</td><td>Forgetting or passing the wrong <code>agent_id</code> is more likely to mix roles</td><td>The client binds a default role, so a missing argument still lands on that role</td></tr><tr><td>Cost</td><td>Lighter</td><td>A few more SDK objects; the underlying seekdb is still the same</td></tr></tbody></table><p>The game uses the second approach so role boundaries are more explicit in the code and better aligned with the narrative. The three roles and the bulletin board each have their own entry point, but the two filters—<code>user_id</code> and <code>agent_id</code>—are still what actually separate the memory spaces.</p><p><img src="/img/multi-agent-memory-isolation-game/14.png" alt="Comparison of a shared PowerMem client versus one cached client per role" loading="lazy" decoding="async"></p><p>In gameplay terms, a whisper writes a private message to one role. After you whisper to the informant, the locked memory card appears only in that private zone. Other roles and the bulletin board can neither see it nor retrieve it.</p><p><img src="/img/multi-agent-memory-isolation-game/15.png" alt="Locked private memory card appearing only in the whispered role private zone" loading="lazy" decoding="async"></p><h3 id="2-2-Role-interrogation-define-the-visible-scope-then-decide-how-to-respond"><a href="#2-2-Role-interrogation-define-the-visible-scope-then-decide-how-to-respond" class="headerlink" title="2.2 Role interrogation: define the visible scope, then decide how to respond"></a>2.2 Role interrogation: define the visible scope, then decide how to respond</h3><p>When a role is interrogated, the system searches only that role’s private memory and the public memory on the bulletin board. The application layer enforces this visibility policy:</p><figure class="highlight text"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line"># 在私有记忆和公开记忆中进行搜索</span><br><span class="line">ask(role, question) = search(case, role, question) + search(case, bulletin_board, question)</span><br></pre></td></tr></table></figure><p>The business layer runs those two searches, merges and deduplicates them into a <code>RetrievalTrace</code>, then hands the result to the answering layer:</p><figure class="highlight python"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br></pre></td><td class="code"><pre><span class="line">private_cards = <span class="variable language_">self</span>.gateway.search_space(case_id, agent_id, question)</span><br><span class="line">public_cards = <span class="variable language_">self</span>.gateway.search_space(case_id, AgentId.BULLETIN_BOARD, question)</span><br><span class="line">cards = []</span><br><span class="line">seen = <span class="built_in">set</span>()</span><br><span class="line"><span class="keyword">for</span> card <span class="keyword">in</span> [*private_cards, *public_cards]:</span><br><span class="line">    <span class="keyword">if</span> card.<span class="built_in">id</span> <span class="keyword">not</span> <span class="keyword">in</span> seen:</span><br><span class="line">        seen.add(card.<span class="built_in">id</span>)</span><br><span class="line">        cards.append(card)</span><br><span class="line">trace = RetrievalTrace(</span><br><span class="line">    request_id=request_id,</span><br><span class="line">    query=question,</span><br><span class="line">    searched_scopes=[agent_id, AgentId.BULLETIN_BOARD],</span><br><span class="line">    hit_cards=cards,</span><br><span class="line">    duration_ms=...,</span><br><span class="line">    mode=<span class="variable language_">self</span>.settings.demo_mode,</span><br><span class="line">)</span><br></pre></td></tr></table></figure><p>The same question—“What is the safe combination?”—always uses the same policy. What changes is the memory visible to the role.</p><p>At the beginning, when you ask the detective, the bulletin board is empty and the detective’s private zone has no password card. <code>hit_cards</code> is empty, so the detective says it does not know. When you ask the informant instead, the retrieval policy is still “informant private zone + bulletin board,” but the informant’s private zone contains the password card. After a hit, the request proceeds to the answer-generation layer.</p><p><img src="/img/multi-agent-memory-isolation-game/16.png" alt="Interrogation flow searching only the current role private space plus the bulletin board" loading="lazy" decoding="async"></p><p>One more engineering detail: business code does not call the PowerMem SDK directly. Everything goes through the <code>MemoryGateway</code> adapter. Across the entire path, only that layer can access PowerMem or seekdb. The business layer decides which spaces to search for each request; the gateway then scopes every underlying retrieval to one <code>case</code> and one <code>agent</code>. The model layer sees only the filtered cards.</p><figure class="highlight python"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre></td><td class="code"><pre><span class="line"><span class="keyword">def</span> <span class="title function_">search_space</span>(<span class="params">self, case_id, agent_id, query</span>):</span><br><span class="line">    result = <span class="variable language_">self</span>._memory(agent_id).search(</span><br><span class="line">        query,</span><br><span class="line">        user_id=to_user_id(case_id),</span><br><span class="line">        agent_id=agent_id.value,</span><br><span class="line">        limit=<span class="number">20</span>,</span><br><span class="line">    )</span><br><span class="line">    <span class="keyword">return</span> [card_from_result(item, owner=agent_id) <span class="keyword">for</span> item <span class="keyword">in</span> _result_items(result)]</span><br></pre></td></tr></table></figure><p>Caching a client per role only makes the boundary more explicit. The filters that enforce it are still <code>user_id</code> (the case) and <code>agent_id</code> (the role). Two ideas need to remain separate:</p><ul><li><strong>PowerMem and seekdb provide storage, retrieval, and filtering</strong>, but they do not decide for the application “which spaces this role should search this time.”</li><li><strong>This demo implements application-level logical isolation</strong>: the API only accepts predefined target roles and cannot submit arbitrary search spaces. The business layer allows only “current role private zone + bulletin board,” and <code>MemoryGateway</code> always fills in the case and role filters. Even if the question contains a prompt injection, the LLM never receives another role’s private cards.</li></ul><p>Isolation therefore cannot live only in the prompt, nor can it be scattered across business call sites. It must be enforced at the single boundary that accesses PowerMem. A real multi-tenant production system would still need independent credentials, database privileges, or tenant-level resource isolation. Those controls are beyond what this small game demonstrates.</p><p>After the memory search finishes, the system begins generating an answer. DeepAgents serves as a tool-free role runtime, and StepFun <code>step-3.7-flash</code> turns the filtered evidence into the role’s voice. Neither participates in retrieval-scope decisions.</p><figure class="highlight python"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br></pre></td><td class="code"><pre><span class="line">agent = create_deep_agent(</span><br><span class="line">    model=model,</span><br><span class="line">    tools=[],</span><br><span class="line">    subagents=[],</span><br><span class="line">    system_prompt=<span class="string">f&quot;You speak only as the <span class="subst">&#123;role.value&#125;</span> role in the AI Intelligence Bureau demo.&quot;</span>,</span><br><span class="line">    name=<span class="string">f&quot;ai-intel-bureau-<span class="subst">&#123;role.value&#125;</span>&quot;</span>,</span><br><span class="line">)</span><br></pre></td></tr></table></figure><p>That is the point: <strong>the memory layer decides whether something can be known; the model layer only decides how to say it.</strong></p><p><img src="/img/multi-agent-memory-isolation-game/17.png" alt="Memory layer deciding knowledge and the model layer only shaping the role voice" loading="lazy" decoding="async"></p><h3 id="2-3-Publish-to-the-bulletin-board-sharing-is-a-copy-not-unlocking-a-global-lock"><a href="#2-3-Publish-to-the-bulletin-board-sharing-is-a-copy-not-unlocking-a-global-lock" class="headerlink" title="2.3 Publish to the bulletin board: sharing is a copy, not unlocking a global lock"></a>2.3 Publish to the bulletin board: sharing is a copy, not unlocking a global lock</h3><p>When the bureau chief publishes a private memory, the system writes it into the bulletin-board space and records <code>source_agent_id</code> (which agent it came from) and <code>source_memory_id</code> (which memory it came from):</p><figure class="highlight python"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br></pre></td><td class="code"><pre><span class="line"><span class="keyword">def</span> <span class="title function_">write_public</span>(<span class="params">self, case_id, source</span>):</span><br><span class="line">    <span class="keyword">return</span> <span class="variable language_">self</span>._write(</span><br><span class="line">        case_id,</span><br><span class="line">        AgentId.BULLETIN_BOARD,</span><br><span class="line">        <span class="string">f&quot;【公开】<span class="subst">&#123;source.content&#125;</span>（来源：<span class="subst">&#123;source.owner_agent_id.value&#125;</span>）&quot;</span>,</span><br><span class="line">        &#123;</span><br><span class="line">            <span class="string">&quot;case_id&quot;</span>: case_id,</span><br><span class="line">            <span class="string">&quot;visibility&quot;</span>: <span class="string">&quot;public&quot;</span>,</span><br><span class="line">            <span class="string">&quot;topic&quot;</span>: source.topic,</span><br><span class="line">            <span class="string">&quot;kind&quot;</span>: <span class="string">&quot;public&quot;</span>,</span><br><span class="line">            <span class="string">&quot;source_agent_id&quot;</span>: source.owner_agent_id.value,</span><br><span class="line">            <span class="string">&quot;source_memory_id&quot;</span>: source.<span class="built_in">id</span>,</span><br><span class="line">            <span class="string">&quot;created_by&quot;</span>: <span class="string">&quot;operator&quot;</span>,</span><br><span class="line">            <span class="string">&quot;is_demo_safe&quot;</span>: <span class="literal">True</span>,</span><br><span class="line">        &#125;,</span><br><span class="line">    )</span><br></pre></td></tr></table></figure><p>The publish operation also checks ownership: the card must belong to the current case and source role, and its visibility must be <code>private</code>. Repeated clicks on the same source card are idempotent, so they do not create duplicate copies.</p><p><img src="/img/multi-agent-memory-isolation-game/18.png" alt="Publishing a private card as a sourced copy on the bulletin board" loading="lazy" decoding="async"></p><p>Collaboration therefore does not imply all-to-all sharing by default. Sharing occurs only through an explicit publish operation.</p><h3 id="2-4-How-public-copies-stay-consistent"><a href="#2-4-How-public-copies-stay-consistent" class="headerlink" title="2.4 How public copies stay consistent"></a>2.4 How public copies stay consistent</h3><p>Copying onto the bulletin board solves the sharing boundary, but it creates a new engineering problem: how do you keep the same private card from being published twice?</p><p>The current implementation does not rely only on an in-process lock. It keeps a publish record in a local state store, with <code>(case_id, source_memory_id)</code> as the unique key. The first publish writes a <code>pending</code> reservation, then writes the bulletin-board copy. On success it fills in <code>public_card_id</code> and moves the state to <code>ready</code>. When two service instances publish the same source card at once, only one request gets the reservation. The other reuses the finished result, or is told to retry if publish is still in flight.</p><p>If the bulletin-board write succeeds but the process dies before the local record is completed, a retry finds the existing copy by <code>source_memory_id</code> and finishes reconciliation. If a later step fails, the system deletes the public card that was already written; if that delete also fails, it registers a cleanup task. This is a small Saga, used to shrink the window where “a remote copy exists but the local side does not know.”</p><p><img src="/img/multi-agent-memory-isolation-game/19.png" alt="Saga-style pending-to-ready publish flow that keeps bulletin-board copies idempotent" loading="lazy" decoding="async"></p><p>The “consistency” here is <strong>publish-operation idempotency</strong>, not bidirectional real-time synchronization between the private original and the public copy. The current semantics are closer to publishing a one-time snapshot: after publication, the bulletin-board copy exists independently, and the private original remains locked. If later versions allow the source memory to be edited or recalled, you would still need <code>source_version</code>, a content hash, a recall state, or a republishing rule that defines how old copies expire.</p><h3 id="2-5-Interrogate-again-after-publication-the-information-is-visible"><a href="#2-5-Interrogate-again-after-publication-the-information-is-visible" class="headerlink" title="2.5 Interrogate again: after publication, the information is visible"></a>2.5 Interrogate again: after publication, the information is visible</h3><p>Once the private memory has been published, the detective can retrieve it. The retrieval policy remains “detective private zone + bulletin board.” The only change is that the bulletin board now contains the informant’s published information. The hit comes from the public zone; the informant’s private original remains inaccessible.</p><p>So the model is responsible for how to speak, and the memory layer is responsible for whether something can be known.</p><table><thead><tr><th>Layer</th><th>Responsibility in the game</th></tr></thead><tbody><tr><td>seekdb</td><td>Persistence and retrieval foundation for vectors, metadata, and case-related data</td></tr><tr><td>PowerMem</td><td>Reads, writes, and searches memory with <code>user_id</code> and <code>agent_id</code> while maintaining the <code>metadata</code> contract</td></tr><tr><td>DeepAgents</td><td>Under a no-tools constraint, organize approved evidence into a role answer</td></tr><tr><td>LLM</td><td>Generates role-specific wording, supports a degraded mode, and does not decide access boundaries</td></tr></tbody></table><h3 id="2-6-Memory-X-ray-put-the-evidence-on-the-main-stage"><a href="#2-6-Memory-X-ray-put-the-evidence-on-the-main-stage" class="headerlink" title="2.6 Memory X-ray: put the evidence on the main stage"></a>2.6 Memory X-ray: put the evidence on the main stage</h3><p>One more thing matters: how do you prove every answer comes from real, traceable memory, rather than a model that merely “acted as if”?</p><p>That is what memory X-ray is for. Every interrogation produces a search scope, hit status, latency, and the current mode, and the panel shows them live. The audience sees both hits and misses.</p><p>The game is convincing only when the evidence chain holds.</p><p><img src="/img/multi-agent-memory-isolation-game/20.png" alt="Memory X-ray evidence panel proving hits and misses for each interrogation" loading="lazy" decoding="async"></p><h3 id="2-7-A-minimal-test-matrix-do-not-test-only-successful-retrieval"><a href="#2-7-A-minimal-test-matrix-do-not-test-only-successful-retrieval" class="headerlink" title="2.7 A minimal test matrix: do not test only successful retrieval"></a>2.7 A minimal test matrix: do not test only successful retrieval</h3><p>To prove isolation, it is not enough to test that the informant can find its own memory. You must also verify expected hits, expected refusals, and an unchanged source after publication. The core tests in the current source can be summarized in this matrix:</p><table><thead><tr><th>Scenario</th><th>Action</th><th>Expected result</th><th>Boundary under test</th><th>PowerMem’s role</th><th>SeekDB’s role</th></tr></thead><tbody><tr><td>Same case, same role</td><td>Ask the informant for the safe combination</td><td>Hits the informant’s private card</td><td>Positive retrieval</td><td>Starts a memory search with the current <code>user_id</code> and <code>agent_id</code></td><td>Completes vector retrieval within that case and role scope</td></tr><tr><td>Same case, cross role</td><td>Ask the detective for the safe combination</td><td>No hit before publish</td><td>Role isolation</td><td>Queries detective private + bulletin board only; does not query informant space</td><td>Returns matching cards only from the two spaces passed in</td></tr><tr><td>Cross-case publish</td><td>Publish a case-A card into case B</td><td>Request rejected</td><td>Case isolation</td><td>Looks up the source card with case B’s <code>user_id</code> and cannot obtain a case-A card</td><td>Restricts reads by <code>user_id</code> and <code>agent_id</code></td></tr><tr><td>Prompt injection</td><td>Tell the detective to ignore the rules and read the informant’s secret</td><td>Search scope is still detective + bulletin board</td><td>Model cannot escalate</td><td>Only accepts the retrieval scope the application already chose; the LLM cannot rewrite parameters</td><td>Runs two restricted searches (detective and bulletin board); does not understand or execute an overreach</td></tr><tr><td>Normal publish</td><td>Publish the informant’s private card, then ask the detective again</td><td>Hits only the bulletin-board copy</td><td>Explicit sharing</td><td>Writes a copy with source metadata into the bulletin-board space</td><td>Persists the public copy and returns it on bulletin-board search</td></tr><tr><td>Repeat publish</td><td>Publish the same source card twice</td><td>Only one bulletin-board copy</td><td>Single-instance idempotency</td><td>Reuses the already registered public card after the first write</td><td>Stores the final public copy; idempotency is decided by the application state store</td></tr><tr><td>Concurrent publish</td><td>Two service instances publish the same source card</td><td>Same public card; only one first publish</td><td>Cross-instance idempotency</td><td>Only the request that won the publish reservation performs the public write</td><td>Stores the unique public copy; does not implement the cross-instance lock</td></tr><tr><td>Stage access</td><td>Read the stage snapshot and events before publish</td><td>No private body and no source private IDs</td><td>Output isolation</td><td>The business layer projects only fields allowed to be public</td><td>Storage foundation; does not expose a query entry directly to the stage</td></tr></tbody></table><p>This table matters more than any single happy-path case. It verifies four boundaries separately—storage filtering, application authorization, model input, and external display—and it clarifies the division of responsibility between PowerMem and seekdb: PowerMem organizes memory read and write calls and their context parameters; seekdb stores and retrieves data within the specified scope. Which spaces a role may access, and how publication remains idempotent, are still application decisions. This distinction prevents “the model did not say it this time” from being mistaken for “the system is already isolated.”</p><h2 id="3-Run-the-game-from-source"><a href="#3-Run-the-game-from-source" class="headerlink" title="3. Run the game from source"></a>3. Run the game from source</h2><p>With the design in place, you can run the game and try it yourself. The repository [5] is available at <a href="https://github.com/knqiufan/AIIntelBureau">https://github.com/knqiufan/AIIntelBureau</a>.</p><h3 id="3-1-Required-environment-and-configuration"><a href="#3-1-Required-environment-and-configuration" class="headerlink" title="3.1 Required environment and configuration"></a>3.1 Required environment and configuration</h3><p>This project has separate frontend and backend components. You can start it with Docker or run it locally. A local deployment requires Python 3.11+, Node.js 20+, a working seekdb deployment (remote OceanBase or local embedded mode), and LLM and embedding services. The role-language layer is optional; without an LLM, you can still run the core isolation workflow with <code>DEMO_MODE=degrade</code>.</p><p>After obtaining the source, first copy the configuration template:</p><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line"><span class="built_in">cd</span> docs/my/demo/ai_intel_bureau</span><br><span class="line"><span class="built_in">cp</span> .env.example .<span class="built_in">env</span></span><br></pre></td></tr></table></figure><p>The project vendors the PowerMem SDK and uses it to talk to seekdb. The main <code>.env</code> settings are:</p><table><thead><tr><th>Setting</th><th>Role</th></tr></thead><tbody><tr><td><code>DEMO_MODE</code></td><td>Set to <code>degrade</code> when no LLM is configured; set to <code>full</code> after configuration to enable the role LLM</td></tr><tr><td><code>seekdb_MODE</code></td><td><code>oceanbase</code> for remote direct connect; <code>embedded</code> for local persistence</td></tr><tr><td><code>seekdb_HOST</code> &#x2F; <code>PORT</code> &#x2F; <code>USER</code> &#x2F; <code>PASSWORD</code> &#x2F; <code>DATABASE</code></td><td>Remote seekdb connection. <code>USER</code> often includes a tenant or cluster suffix</td></tr><tr><td><code>seekdb_PATH</code></td><td>Local data directory in embedded mode</td></tr><tr><td><code>EMBEDDING_API_KEY</code> &#x2F; <code>MODEL</code> &#x2F; <code>DIMENSIONS</code></td><td>Embedding service; fill model name and dimensions from the real service</td></tr><tr><td><code>EMBEDDING_BASE_URL</code></td><td>OpenAI-compatible embedding URL, for example SiliconFlow <code>https://api.siliconflow.cn/v1</code></td></tr><tr><td><code>LLM_API_KEY</code> &#x2F; <code>BASE_URL</code> &#x2F; <code>MODEL</code></td><td>LLM configuration; default is StepFun <code>step-3.7-flash</code></td></tr><tr><td><code>DEMO_ACCESS_KEY</code></td><td>Set this for a public demo to put an event passphrase on the operator console and the stage</td></tr></tbody></table><p>See <code>.env.example</code> and <code>docs/runbook.md</code> in the source for the full configuration.</p><h3 id="3-2-How-to-start"><a href="#3-2-How-to-start" class="headerlink" title="3.2 How to start"></a>3.2 How to start</h3><p>You can preflight configuration and remote connectivity first.</p><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line"><span class="built_in">cd</span> docs/my/demo/ai_intel_bureau/backend</span><br><span class="line">python -m app.preflight --strict</span><br><span class="line">python -m app.preflight --check-remote</span><br></pre></td></tr></table></figure><p>For local development, start the backend and frontend separately.</p><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment"># Terminal 1</span></span><br><span class="line"><span class="built_in">cd</span> docs/my/demo/ai_intel_bureau/backend</span><br><span class="line">python -m uvicorn app.main:app --reload --port 8000</span><br><span class="line"></span><br><span class="line"><span class="comment"># Terminal 2</span></span><br><span class="line"><span class="built_in">cd</span> docs/my/demo/ai_intel_bureau/web</span><br><span class="line">npm ci</span><br><span class="line">npm run dev</span><br></pre></td></tr></table></figure><p>Open <code>http://localhost:5173</code> and you can start playing on the operator console.</p><p><img src="/img/multi-agent-memory-isolation-game/21.png" alt="Local operator console running after backend and frontend start on localhost" loading="lazy" decoding="async"></p><h2 id="4-Closing"><a href="#4-Closing" class="headerlink" title="4. Closing"></a>4. Closing</h2><p>AI Intelligence Bureau is designed to prove one thing: <strong>you can see clearly who knows what</strong>.</p><p>The detective fails to identify the safe combination because the retrieval scope never contained it—not because the model is pretending to be dumb. The informant can answer because the search hits a private memory. The detective knows the combination only after publication because the bulletin board gains a traceable copy—not because the private original is globally unlocked. That contrast holds for three reasons:</p><ul><li><strong>By default, each role keeps its own notes.</strong> Isolation is written into retrieval filters on <code>user_id</code> and <code>agent_id</code>, not into a prompt convention.</li><li><strong>Sharing must happen explicitly.</strong> Publication creates a copy on the bulletin board and retains the source so you can trace it.</li><li><strong>The audience must see the evidence.</strong> Memory X-ray lays out search scopes and hits so both knowing and not knowing can be checked.</li></ul><p><img src="/img/multi-agent-memory-isolation-game/22.png" alt="Three principles default isolation explicit sharing and visible retrieval evidence" loading="lazy" decoding="async"></p><p>Multi-agent memory cannot rely only on a prompt to constrain model behavior.</p><p>Only when application authorization, storage filtering, explicit sharing, and evidence verification are enforced at clear engineering boundaries does collaboration become both controllable and explainable.</p><p><img src="/img/multi-agent-memory-isolation-game/23.png" alt="Closing slide that isolation must live on engineering boundaries not prompts alone" loading="lazy" decoding="async"></p><p><strong>References</strong></p><p>[1] PowerMem: <a href="https://github.com/oceanbase/powermem">https://github.com/oceanbase/powermem</a></p><p>[2] seekdb: <a href="https://github.com/oceanbase/seekdb">https://github.com/oceanbase/seekdb</a></p><p>[3] DeepAgents: <a href="https://github.com/langchain-ai/deepagents">https://github.com/langchain-ai/deepagents</a></p><p>[4] StepFun: <a href="https://platform.stepfun.com/">https://platform.stepfun.com/</a></p><p>[5] Game repository: <a href="https://github.com/knqiufan/AIIntelBureau">https://github.com/knqiufan/AIIntelBureau</a></p><p><img src="/img/multi-agent-memory-isolation-game/24.gif" alt="OceanBase community footer banner for the workshop series" loading="lazy" decoding="async"></p><p><img src="/img/multi-agent-memory-isolation-game/25.webp" alt="WeChat article divider under the AI Intelligence Bureau write-up" loading="lazy" decoding="async"></p><h2 id="Recommended-earlier-pieces"><a href="#Recommended-earlier-pieces" class="headerlink" title="Recommended earlier pieces"></a>Recommended earlier pieces</h2><p><img src="/img/multi-agent-memory-isolation-game/26.webp" alt="Recommended earlier OceanBase community article card one" loading="lazy" decoding="async"></p><p><img src="/img/multi-agent-memory-isolation-game/27.webp" alt="Recommended earlier OceanBase community article card two" loading="lazy" decoding="async"></p><p><img src="/img/multi-agent-memory-isolation-game/28.webp" alt="Recommended earlier OceanBase community article card three" loading="lazy" decoding="async"></p><p><img src="/img/multi-agent-memory-isolation-game/29.webp" alt="Recommended earlier OceanBase community article card four" loading="lazy" decoding="async"></p><p><a href="https://mp.weixin.qq.com/s?__biz=Mzk3NTE2NzU5NQ==&mid=2247491299&idx=1&sn=a4f802cf7933d1a928578269b2a5404e&scene=21#wechat_redirect">Read more</a></p><p>Welcome to join the open-source community Discord.</p><p><img src="/img/discord.png" alt="Welcome to join the open-source community Discord" loading="lazy" decoding="async"></p>]]>
    </content>
    <id>https://longda.us/2026/2026-08-03-multi-agent-memory-isolation-game/</id>
    <link href="https://longda.us/2026/2026-08-03-multi-agent-memory-isolation-game/"/>
    <published>2026-08-02T20:03:12.000Z</published>
    <summary>A PowerMem and seekdb game shows how multi-agent memory remains isolated until an operator publishes a private card to a shared bulletin board.</summary>
    <title>From Whispers to the Bulletin Board: Multi-Agent Memory Isolation in Action</title>
    <updated>2026-08-12T20:03:12.000Z</updated>
  </entry>
  <entry>
    <author>
      <name>Longda Feng</name>
    </author>
    <category term="AI Applications" scheme="https://longda.us/categories/AI-Applications/"/>
    <category term="OceanBase" scheme="https://longda.us/tags/OceanBase/"/>
    <category term="AI Agent" scheme="https://longda.us/tags/AI-Agent/"/>
    <category term="seekdb" scheme="https://longda.us/tags/seekdb/"/>
    <category term="PowerMem" scheme="https://longda.us/tags/PowerMem/"/>
    <category term="Lakebase" scheme="https://longda.us/tags/Lakebase/"/>
    <category term="WAIC" scheme="https://longda.us/tags/WAIC/"/>
    <category term="DRI" scheme="https://longda.us/tags/DRI/"/>
    <category term="Physical AI" scheme="https://longda.us/tags/Physical-AI/"/>
    <content>
      <![CDATA[<script type="application/ld+json">{"@context":"https://schema.org","@type":"BlogPosting","headline":"After WAIC, I Stopped Believing in the Omnipotent Agent","description":"WAIC field notes show that agents create value in bounded use cases—with ontology, live data, DRIs, and on-device memory—not as all-purpose generalists.","image":"https://longda.us/img/waic-not-omnipotent-agent/01.png","wordCount":4063,"timeRequired":"PT20M","datePublished":"2026-07-27T21:07:55.000Z","dateModified":"2026-08-12T21:07:55.000Z","isAccessibleForFree":true,"author":{"@type":"Person","name":"Longda Feng","url":"https://longda.us"},"publisher":{"@type":"Organization","name":"Longda's Interesting World","logo":{"@type":"ImageObject","url":"https://longda.us/img/my.jpg"}},"mainEntityOfPage":{"@type":"WebPage","@id":"https://longda.us/2026/2026-07-28-waic-not-omnipotent-agent/"},"url":"https://longda.us/2026/2026-07-28-waic-not-omnipotent-agent/","inLanguage":"en","keywords":["OceanBase","AI Agent","seekdb","PowerMem","Lakebase","WAIC","DRI","Physical AI"],"articleSection":["AI Applications"]}</script><script type="application/ld+json">{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://longda.us/"},{"@type":"ListItem","position":2,"name":"AI Applications","item":"https://longda.us/categories/AI-Applications/"},{"@type":"ListItem","position":3,"name":"After WAIC, I Stopped Believing in the Omnipotent Agent","item":"https://longda.us/2026/2026-07-28-waic-not-omnipotent-agent/"}]}</script><p>After attending the 2026 World Artificial Intelligence Conference (WAIC), I stopped measuring agents by how closely they resemble all-purpose generalists. The booths that felt valuable were the ones that tackled one messy, recurring job within a clear boundary—and left a person accountable for the result.</p><p>Daosen (稻森) · July 28, 2026</p><blockquote><p>Claude and GPT are swallowing everything. For application founders, this is the darkest stretch of the journey.</p><p>An agent does not have to learn how to save the world first.</p><p>If it can reliably complete one troublesome job in a clearly bounded setting, that is already remarkable.</p></blockquote><p><img src="/img/waic-not-omnipotent-agent/01.png" alt="Cover illustration contrasting an omnipotent agent with a bounded accountable one" decoding="async"></p><span id="more"></span><p>I usually enjoy pushing agents hard.</p><p>I raise the difficulty on purpose. I give an agent a pile of material and see whether it can identify the key point. I ask it to work across several projects. I leave the request half-finished and watch whether it follows up. Then I introduce exceptions and see whether it will revise its earlier work.</p><p>I used to feel conflicted about agents. Their capabilities look impressive: they break down tasks and write plans with confidence. Yet they still stumble at critical steps. We are still far from “hand it a complex goal and walk away.”</p><p>WAIC changed that view.</p><p>The halls had robots, foundation models, and walls of screens. What I took home was more practical: <strong>once technology enters a real-world setting, you can tell immediately whether it creates value</strong>. It does not have to solve every problem in the world first. If it handles the tedious work that keeps recurring in one industry, it is already useful.</p><p>Power grids, steel, oil, factories, and homes used to sound far from large models. AI is now being wired into forecasting, scheduling, diagnosis, coordination, and service. I had been <strong>judging agents by “general capability,” and that was the wrong question.</strong> Enterprises never wanted a chatty AI. They wanted someone, with AI, to finish a job and produce a result.</p><p><img src="/img/waic-not-omnipotent-agent/02.png" alt="Outdoor WAIC 2026 banner at the Shanghai conference venue" loading="lazy" decoding="async"></p><p>Follow the OceanBase community WeChat account “老纪的技术唠嗑局.” We will keep publishing technical pieces on #AI and #Data.</p><h2 id="Models-have-entered-companies-What-companies-lack-is-often-not-a-model"><a href="#Models-have-entered-companies-What-companies-lack-is-often-not-a-model" class="headerlink" title="Models have entered companies. What companies lack is often not a model"></a>Models have entered companies. What companies lack is often not a model</h2><p>I sat through quite a few forums featuring academicians and government officials. I did not take much away from them.</p><p>When business leaders talked about AI, however, their ideas set my mind in motion.</p><p>Listening to Kai-Fu Lee, I kept seeing one picture: a very strong model walking into a company for the first time.</p><p><img src="/img/waic-not-omnipotent-agent/03.png" alt="Kai-Fu Lee talk imagined as a strong model entering a company" loading="lazy" decoding="async"></p><p>In front of it sit customer files, contracts, inventory, quotes, meeting notes, approval flows—plus history scattered across systems. Every document looks useful, and many of them contradict one another. Who can see what, who can change what, which rules must not be touched, and whom to call when something breaks: none of that writes itself into the model’s head.</p><p>No matter how strong the model is, it will not magically know how a company <strong>runs</strong>.</p><p>The talk then hit <strong>ontology</strong>. The word suddenly made the problem clear. It sounds technical; you can just treat it as <strong>an operating map</strong>: how customers relate to contracts, which products a contract affects, which inventory, price, and approval rules constrain those products, and who gets pulled in when a project slips.</p><p><img src="/img/waic-not-omnipotent-agent/04.png" alt="Ontology framed as an operating map of customers contracts and rules" loading="lazy" decoding="async"></p><p>Without that map, AI is the smart intern who just joined. It can look things up, write reports, and explain a situation. It still has no concept of what “this customer,” “this rule,” “this payment,” or “this exception” means here.</p><p>Beyond the map, there is live status. Did the customer place an order today? Where is the quote? Where is the approval stuck? Is a machine raising an alarm? Did inventory, prices, or contracts change? A pile of static documents is not enough. When an agent appears inaccurate, the problem is often stale or missing information, or a lack of permission to access critical data.</p><p>Only then comes execution. These systems can act, and they can help push a process forward. AI makes a suggestion, leaves a record, and a person confirms. Where the rules are clear and the risk is low, you gradually open more execution rights. Go slowly enough and enterprises will actually use it.</p><p>I now judge whether an enterprise AI project has a chance by five things: is the model good enough, are the business relationships spelled out, can live data be connected, can execution be controlled, and is someone accountable for the outcome. Miss one, and the project usually stops at “the demo was stunning.”</p><p>Honestly, WAIC still had plenty of projects that stopped at the demo.</p><h2 id="DRI-captures-exactly-what-I-have-been-thinking-about"><a href="#DRI-captures-exactly-what-I-have-been-thinking-about" class="headerlink" title="DRI captures exactly what I have been thinking about"></a>DRI captures exactly what I have been thinking about</h2><blockquote><p>Technology and models will keep changing. In the end you still come back to people.</p></blockquote><p>The other idea I most want to share is DRI.</p><p>DRI stands for Directly Responsible Individual. In short, one person has to own every critical matter through completion. That person knows the status, coordinates when resources fall short, brings a plan when conflicts arise, and remains accountable for the outcome.</p><p><img src="/img/waic-not-omnipotent-agent/05.png" alt="Slide defining DRI as the directly responsible individual" loading="lazy" decoding="async"></p><p>That landed hard, because it is also our problem in practice. The more AI you add, the easier it is to create an illusion: everyone participated, the group chat is full, documents and code keep growing, and delivery still does not get faster.</p><p>DRI pulls the question back to something simple: who is finally responsible for this?</p><p>I like to think of the DRI as “the person who works with AI.” That person does not have to do everything, but they must know what to hand to AI, which conclusions require human review, and when to stop. AI adds capacity and information. Responsibility still rests with the DRI.</p><p>So if a team <strong>wants to run an AI pilot, it does not need to invent a grand platform first. One small task is enough</strong>: it should occur frequently, be painful enough to matter, use data already at hand, and produce a visible result. Then name someone willing to own the outcome, and write down the goal, the boundary, the data the system can access, the systems it can use, and where to escalate when things go wrong.</p><p>That is how AI finds a place to land.</p><p><img src="/img/waic-not-omnipotent-agent/06.png" alt="Graphic summarizing that AI value sits where scarcity meets demand" loading="lazy" decoding="async"></p><p>To put the above in one line: <strong>AI’s value does not come from difficulty. It comes from the intersection of scarcity and demand.</strong> Instead of chasing technical extremes, find the concrete pain point that others ignore and users urgently need solved. Do not get carried away by grand narratives. The market pays for solutions to real problems. Solve one, and you can build reliable revenue and a moat in an underserved market. Ignore it, and you remain trapped in the illusion that “the technology is great, but nobody pays,” while pragmatic teams steadily capture the market.</p><h2 id="Behind-the-Physical-AI-frenzy-lies-a-pile-of-unglamorous-problems"><a href="#Behind-the-Physical-AI-frenzy-lies-a-pile-of-unglamorous-problems" class="headerlink" title="Behind the Physical AI frenzy lies a pile of unglamorous problems"></a>Behind the Physical AI frenzy lies a pile of unglamorous problems</h2><blockquote><p>The best technology still has to return to its original intent: trust, inclusion, and solving real social problems.</p></blockquote><p>The hottest phrase these days is Physical AI. Robots walking, carrying things, interacting with people: the booths were packed.</p><p>I used to think robots were still far from daily life. This time I could feel Physical AI heating up, but I did not get the excitement of “we will have a robot soon.” I understood more clearly why this is so hard.</p><p><img src="/img/waic-not-omnipotent-agent/07.png" alt="Crowded Physical AI robot booth on the WAIC show floor" loading="lazy" decoding="async"></p><p>If a text model gets one sentence wrong, people can simply check again. <strong>If a robot misses a grasp, bumps into something, or reacts half a second late, the consequences unfold in the real world.</strong> It has to perceive the environment, understand the goal, plan its motion, control a body, and deal with lighting, occlusion, friction, hardware errors, and operational details that people never put into words.</p><p><img src="/img/waic-not-omnipotent-agent/08.png" alt="Robot demonstration showing how a failed grasp happens in the real world" loading="lazy" decoding="async"></p><p>That is why I prefer use cases with clear boundaries: warehouse handling, factory inspection, localized assembly, hospital logistics, rehabilitation assistance, and selected eldercare and home services. They sound less exciting than “one robot does everything,” but they are much more likely to deliver reliable results first.</p><p><img src="/img/waic-not-omnipotent-agent/09.png" alt="Bounded robot use cases such as warehouse handling and factory inspection" loading="lazy" decoding="async"></p><p>A large model is like a brain. Physical AI is like a body. Once the body enters the real world, reliability matters far more than eloquence. The ability to perceive, grasp, avoid obstacles, recover from failure, and stop to ask a person when uncertain must mature before a system can move from an exhibition hall into a factory or home.</p><p>Also, <strong>Physical AI is still very early. It is far from a “ChatGPT moment.”</strong> I still watch this space closely. If digital AI raises white-collar productivity, Physical AI raises blue-collar productivity. It is entering the real world through one small job at a time.</p><p><img src="/img/waic-not-omnipotent-agent/10.png" alt="Physical AI still early and far from a ChatGPT-style moment" loading="lazy" decoding="async"></p><p>At one roundtable, <strong>almost nobody asked whether robots look human. The conversation was about data</strong>: how to collect data from real robots, how much simulation can cover, what first-person internet video can contribute, and whether failed operations can be recycled into the next training round. The discussion then turned to latency, hardware lifespan, cost, success rates, and control precision. These robots also share a problem: they cannot reach back to the cloud whenever they need to retrieve a memory. The reasons are practical: mobile networks are often unstable, device latency must remain low, and privacy and cost also matter.</p><p>That is where scarcity and demand meet <strong>seekdb[1]</strong> and <strong>OceanBase[2] Lakebase</strong>. seekdb’s embedded deployment, low resource requirements, and local hybrid retrieval can keep local state, task traces, user preferences, and search indexes on the device. Cars, robots, and smart terminals all need a local “cerebellum”: low-latency retrieval, with synchronization to a cloud brain when needed. In the data center, OceanBase Lakebase can consolidate multimodal data for governance, training, and evaluation. On the device, seekdb plus PowerMem handles immediate responses; the central system supports long-term evolution.</p><p><img src="/img/waic-not-omnipotent-agent/11.png" alt="Edge cerebellum plus center Lakebase architecture for robots and cars" loading="lazy" decoding="async"></p><p>That path is more reliable than stuffing all memory into a cloud model’s context window. Many car makers that support intelligent driving already work this way—OceanBase + seekdb + <strong>PowerMem[3]</strong>.</p><p>This architecture of “on-device responsiveness + centralized long-term evolution” is becoming a reality.</p><blockquote><p>seekdb is the OceanBase community’s lightweight AI-native search database for agents and AI applications. The project is open source: <a href="https://github.com/oceanbase/seekdb">https://github.com/oceanbase/seekdb</a></p></blockquote><h2 id="Embodied-intelligence-and-attached-intelligence"><a href="#Embodied-intelligence-and-attached-intelligence" class="headerlink" title="Embodied intelligence and attached intelligence"></a>Embodied intelligence and attached intelligence</h2><p>Robots can do more and more. What about people?</p><p>The relationship between machines and people does not have to be replacement. Compared with the embodied intelligence (robots) above, many WAIC booths started calling wearables such as smart glasses and mechanical exoskeletons “attached intelligence.”</p><p><img src="/img/waic-not-omnipotent-agent/12.png" alt="WAIC booth presenting attached intelligence such as glasses and exoskeletons" loading="lazy" decoding="async"></p><p>When you move a refrigerator, Amap inside smart glasses can plan the route. A mechanical exoskeleton can take the load that used to sit on the waist and shoulders. How to turn without hitting the wall still belongs to the person.</p><p><img src="/img/waic-not-omnipotent-agent/13.png" alt="Smart glasses and an exoskeleton sharing a refrigerator-moving task" loading="lazy" decoding="async"></p><p>These edge devices also illustrate a trend already underway: as large-model capabilities “flow” to the edge on a 6–12 month cycle, a natural question arises—what data foundation will support these small models on the device? They need full database capabilities at the edge, including vector retrieval, full-text search, and structured queries, without the overhead of a traditional database deployment.</p><p>The open-source seekdb project can serve as that edge database. In server mode, seekdb needs only 1 CPU core and 2 GB of memory, installs with pip, and starts in seconds. In embedded mode, it can run as a Python, JavaScript, or TypeScript library within the application, with no separate database process and almost no resource overhead. It also supports vector retrieval, full-text search, JSON, and GIS. One lightweight engine covers all of these capabilities, with MySQL-compatible syntax and a gentle learning curve.</p><p><img src="/img/waic-not-omnipotent-agent/14.png" alt="seekdb positioned as a lightweight edge database for small models" loading="lazy" decoding="async"></p><p>Google DeepMind CEO Demis Hassabis often says in interviews that after a frontier Pro model ships, its capability can be compressed, within six to twelve months, into a very small model that can almost run on an edge device. He gave numbers: <strong>a distilled small model can reach 90–95% of a frontier large model’s capability at about one-tenth the cost</strong>.</p><p><img src="/img/waic-not-omnipotent-agent/15.png" alt="Hassabis remark on distilling frontier models down to the edge" loading="lazy" decoding="async"></p><p>DeepMind’s own lineup follows that logic: Gemini Pro (frontier flagship) → Flash (distilled consumer inference) → Nano (on-device).</p><p><img src="/img/waic-not-omnipotent-agent/16.png" alt="Gemini Pro Flash Nano line showing capability flowing to devices" loading="lazy" decoding="async"></p><p>The embodied intelligence, attached intelligence, and in-car devices at WAIC make this trend clearer: on-device intelligence is not a distant prospect. It is advancing on a six-month cycle. Infrastructure that can deliver comprehensive AI data capabilities with minimal resource overhead will soon move from optional to essential.</p><h2 id="AI-is-also-starting-to-care-about-relationships-and-companionship-through-memory"><a href="#AI-is-also-starting-to-care-about-relationships-and-companionship-through-memory" class="headerlink" title="AI is also starting to care about relationships and companionship through memory"></a>AI is also starting to care about relationships and companionship through memory</h2><p>There were some surprises as well.</p><p>I had assumed “shared memory” agents mostly belonged in enterprises, where teams share internal materials, project background, and decision records. That sounds natural.</p><p>On the floor there were also products and apps for family memory and companionship: helping a household keep shared experiences, manage important information, and have fewer “I thought you remembered” moments.</p><p><img src="/img/waic-not-omnipotent-agent/17.png" alt="Family shared-memory product booth on the WAIC floor" loading="lazy" decoding="async"></p><p><img src="/img/waic-not-omnipotent-agent/18.png" alt="Companion memory app for household experiences and important information" loading="lazy" decoding="async"></p><p>Someone even built an app as a “bridge of understanding and memory between people and pets.” It felt slightly outrageous.</p><p>These AI memory products are all narrow in scope. I still found them interesting.</p><p>AI memory is not only about saving office time. It also has a chance to help people understand and care for beings that cannot state their needs in standard language.</p><blockquote><p>Here is another project extended from the open-source PowerMem project: <strong>seekdb M0[4]</strong>, self-evolving cloud memory designed for AI agents. It supports one-click access, shared experience, and autonomous learning.</p><p>If you are building an AI product that needs “memory,” take a look at PowerMem and seekdb.</p></blockquote><p><img src="/img/waic-not-omnipotent-agent/19.png" alt="seekdb M0 cloud memory recommendation for agent products" loading="lazy" decoding="async"></p><p>In the halls I also saw a multi-specialist agent team in healthcare, which pointed to the same idea. Agents do not replace a doctor’s final judgment. They can organize scarce specialist experience so more patients get support faster. That is inclusion as I understand it, and it is the value many AI companies claim. Shipping the flashiest model is not inclusion. Letting more people use capability that used to be expensive and scarce is.</p><h2 id="AI-is-powerful-but-it-is-still-a-Turing-machine"><a href="#AI-is-powerful-but-it-is-still-a-Turing-machine" class="headerlink" title="AI is powerful, but it is still a Turing machine"></a>AI is powerful, but it is still a Turing machine</h2><p>A talk by Academician Andrew Chi-Chih Yao, founder of Tsinghua’s Yao Class, filled in an important piece. Everyone is watching what AI can do. Someone also has to remind us what it cannot.</p><p><img src="/img/waic-not-omnipotent-agent/20.png" alt="Andrew Yao speaking on AI limits inside the Turing-machine frame" loading="lazy" decoding="async"></p><p>Go, protein-structure prediction, code generation: AI has already done things that were hard to imagine. Put those abilities into an open world and the old problems return: incomplete information, rules that cannot be stated cleanly, and answers that are expensive when wrong.</p><p>Yao made a counterintuitive point: however strong AI is, it is still inside the Turing-machine frame. Take the halting problem: there is no universal solution that works for every computer program.</p><p>That did not make me more pessimistic. It helped me see that <strong>AI is more useful once the boundary is clear</strong>.</p><h2 id="Scientific-research-is-a-hard-problem-and-AI-is-only-beginning-to-tackle-it"><a href="#Scientific-research-is-a-hard-problem-and-AI-is-only-beginning-to-tackle-it" class="headerlink" title="Scientific research is a hard problem, and AI is only beginning to tackle it"></a>Scientific research is a hard problem, and AI is only beginning to tackle it</h2><p>Yao said the most valuable work in the next few years is empowering scientific research. That made me look at AI for Science again.</p><p>Scientific research is not like writing code or taking an exam. Many problems have no standard answer. Feedback is slow. One experiment can take months. A large share of attempts fail. A person’s job is to raise a question worth testing from existing knowledge.</p><p>AI can help a lot here. Read large amounts of literature, find contradictory evidence, help organize hypotheses, design computational plans, run analyses, keep a record of every attempt, and bring failed results into the next round. Scientists still decide whether a question is worth chasing, whether the evidence is enough, whether the experiment design missed something, and whether the conclusion holds.</p><p>Yao also mentioned several examples. A Tsinghua team applied AI to existing telescope data and pushed the observable window into the early universe back by about 100 million years. An OpenAI large model overturned an 80-year-old unit-distance conjecture; the proof drew on advanced algebraic number theory and other fields.</p><p><img src="/img/waic-not-omnipotent-agent/21.png" alt="AI for Science cases from telescope data and a long-standing conjecture" loading="lazy" decoding="async"></p><p>He also talked about AI and quantum technology. AI can take part in quantum error correction, control, and complex-system optimization. Quantum computing may later open space for learning quantum data and harder problems. It looks more like a long route, far from ordinary consumers, but it may shape how new drugs, materials, energy, and compute appear.</p><p>That talk gave me a longer time horizon for thinking about “what is next for AI.” We talk every day about models, tokens, and agents. On another track, people are already applying AI to astronomy, chemistry, life science, and quantum physics. <strong>The noise at the application layer is immediate and loud. Progress in basic science is slower and deeper.</strong></p><p>Two weeks earlier, after Claude Science appeared, I did a deeper look at AI for Science. Anthropic positions Claude Science as an AI workbench for scientists.</p><p><img src="/img/waic-not-omnipotent-agent/22.png" alt="Claude Science positioned as an AI workbench for scientists" loading="lazy" decoding="async"></p><p>That positioning is much more accurate than “Claude for science.” My reading is that this is an agent workspace rebuilt for research. The chat box is still the entry, but the work happens in files, terminals, databases, compute jobs, and artifacts.</p><p>According to the official introduction and the public skill system, it puts common scientific packages, database connections, code execution, remote compute, and auditable artifacts into one agent environment. A researcher can ask Claude to read materials, plan steps, call tools, run analyses, and leave the process and results in the workspace. That change looks less explosive than shipping a new model, and it is closer to the daily friction scientists actually meet. A lot of their time is not spent on the cleverest question. It is spent finding files, setting up environments, waiting on jobs, editing scripts, filling citations, and packing results.</p><p>For most readers who only want to try it themselves, Claude Science still has a practical barrier: you may not get access. Officially it is still marked beta. Real availability depends on the account plan and how fast the product opens.</p><p>Because Claude Science is still difficult to access, I recommend <strong>OpenScience[5]</strong> and <strong>Feynman[6]</strong> if you want to start now. Both are open source and can run locally. They take different approaches that suit different needs.</p><p>OpenScience is closer to a full research workbench. It puts a file tree, editor, terminal, session history, agent runtime, tools, skills, and scientific database connections into one local app, and it supports Anthropic, OpenAI, Google, and open-weight models. If you want to study how a research agent manages context, calls tools, connects databases, and keeps provenance, start there.</p><p><img src="/img/waic-not-omnipotent-agent/23.png" alt="OpenScience local research workbench with files terminal and agent tools" loading="lazy" decoding="async"></p><p>Feynman is closer to a research engineer’s everyday starting point. It begins at the CLI, with commands for literature reviews, paper ranking, deep research, code audits, and reproduction planning, while <code>feynman serve</code> opens a standalone workbench. If you already have papers, a code repository, or a reproduction task, Feynman is usually the easier place to begin.</p><h2 id="The-youth-forum-talked-about-careers-without-manufacturing-more-anxiety"><a href="#The-youth-forum-talked-about-careers-without-manufacturing-more-anxiety" class="headerlink" title="The youth forum talked about careers without manufacturing more anxiety"></a>The youth forum talked about careers without manufacturing more anxiety</h2><p>At the youth forum, someone asked a practical question: as more entry-level work is automated by AI, how will young people accumulate their first experience?</p><p><img src="/img/waic-not-omnipotent-agent/24.png" alt="Youth forum asking how young people gain experience as tasks automate" loading="lazy" decoding="async"></p><p>Nobody recommended a so-called “safe major,” and nobody promised a job that would never be replaced. The answers were straightforward: <strong>define problems, exercise professional judgment, learn quickly, communicate and collaborate, understand other people, face uncertainty, and own the result</strong>. Skills expire. Judgment does not depreciate as easily.</p><p>AI can finish a task for you. It cannot take the consequences for you. A student shared her first time organizing a CEO roundtable. The agenda changed on the fly, parties had to be coordinated, and surprises had to be handled. Many decisions had to be made on the spot. Later she independently built a small pricing model. The two projects differed in size. The growth was similar: real experience is not “I participated.” It is that something landed on your shoulders and you had to push it forward.</p><p>Experience never comes only from repeated labor. It comes more from real responsibility. Sometimes a project’s most important output is not the result, but the person who started daring to decide.</p><p>A line from WAIC’s main forum stayed with me: <strong>“It is much easier to teach smart people finance than to teach finance people to become smart.”</strong> The same holds in the AI era. Instead of asking which major is safest, become someone who can quickly understand a new problem, keep learning, and develop deep expertise. AI is a generalist. A person’s opportunity is to specialize and develop judgment in the real world.</p><p>Another guest said she had believed since childhood that a perfect score is not necessarily a good thing, because it deprives you of feedback and leaves you unsure where to improve.</p><p>That line is sharp: a perfect score makes people stop; feedback makes people grow. In the fastest-changing era, “being temporarily right” matters less. “Keep correcting” is the real capability.</p><p><img src="/img/waic-not-omnipotent-agent/25.png" alt="Forum takeaway that feedback beats a perfect score in a changing era" loading="lazy" decoding="async"></p><p>One huge change AI brings is cheaper trial and error. Building a product, finishing a study, or testing a business idea used to mean finding a team, waiting for resources, and spending a lot of money. Now a young person can, with AI, first make a prototype and then take it into the real world for feedback.</p><p>That is why a forum about the future of work did not make me more anxious. AI anxiety easily pushes people toward “hurry and learn another skill,” but technology will keep changing, and the next hot tool will appear. Instead of hunting for a path AI will not change, become someone who can walk through change. The AI era is the best era to bet on yourself.</p><p>The host left the room with three words: <strong>humor and joy, curiosity, and fitness</strong>.</p><p>Keep your sense of humor and joy, stay curious about the world, and do not forget to exercise. Cherish the genuine warmth you share with the people you love and who love you. Technology keeps moving forward, but joy, curiosity, health, and companionship are still things AI cannot experience on our behalf.</p><h2 id="Small-teams-have-new-leverage-The-hard-part-is-still-finding-a-good-problem"><a href="#Small-teams-have-new-leverage-The-hard-part-is-still-finding-a-good-problem" class="headerlink" title="Small teams have new leverage. The hard part is still finding a good problem"></a>Small teams have new leverage. The hard part is still finding a good problem</h2><p>The exhibit halls also had plenty of one-person companies and small-team startups. Research, design, operations, content, and support that used to need a full team can now be started by a few people—or one person plus a set of AI tools.</p><p><img src="/img/waic-not-omnipotent-agent/26.png" alt="Small-team and solo AI startup booths on the WAIC exhibit floor" loading="lazy" decoding="async"></p><p>That is a large opening for founders. The technical bar is falling. Many ideas can be tried first instead of dying on “I have no team,” “I cannot code,” or “I have no budget.”</p><p>As model capabilities converge, everyone is back at another starting point: what problem do you actually see? Details that never appear in an SOP, complaints customers repeat without naming, delivery steps that keep being reworked, and processes others will not spend time understanding become new sources of value. AI gives small teams more leverage. Customer understanding, industry experience, and product judgment are not handed to everyone automatically.</p><p>So I think <strong>the strongest AI founders going forward may not be the ones who talk most eloquently about models. They will be the ones willing to go on site, observe real friction, and turn it into a product someone will pay for.</strong></p><h2 id="Closing"><a href="#Closing" class="headerlink" title="Closing"></a>Closing</h2><p>After this visit, I was even less interested in chasing an “omnipotent agent,” and no more eager to wrap AI around everything.</p><p>I would rather ask first: where is this task actually stuck? Scattered information, a slow process, not enough experts, data that will not connect, or nobody willing to stay with it to the end?</p><p>Once that is clear, identify which part AI can help with. It can work reliably in clearly bounded settings. People still judge, verify, coordinate, take responsibility, and decide whether something is worth doing. That is a more useful discussion than asking whether AI will replace people.</p><p><img src="/img/waic-not-omnipotent-agent/27.png" alt="Closing note that the useful question is where the task is stuck" loading="lazy" decoding="async"></p><p>We are entering a stage where ideas can be put into reality faster. Some people use AI to make better products. Some use it for scientific research. Some bring robots into factories and hospitals. Some use it to care for family and understand pets.</p><p>The AI I look forward to is the kind that gives once-impossible ideas a chance to become reality.</p><p>References</p><p>[1] seekdb: <a href="https://github.com/oceanbase/seekdb">https://github.com/oceanbase/seekdb</a></p><p>[2] OceanBase: <a href="https://github.com/oceanbase/oceanbase">https://github.com/oceanbase/oceanbase</a></p><p>[3] PowerMem: <a href="https://github.com/oceanbase/powermem">https://github.com/oceanbase/powermem</a></p><p>[4] seekdb M0: <a href="https://m0.seekdb.ai/">https://m0.seekdb.ai</a></p><p>[5] OpenScience: <a href="https://github.com/synthetic-sciences/openscience">https://github.com/synthetic-sciences/openscience</a></p><p>[6] Feynman: <a href="https://github.com/companion-inc/feynman">https://github.com/companion-inc/feynman</a></p><p><img src="/img/waic-not-omnipotent-agent/28.png" alt="WeChat follow card after the reference list" loading="lazy" decoding="async"></p><p><img src="/img/waic-not-omnipotent-agent/29.gif" alt="Animated OceanBase community follow banner" loading="lazy" decoding="async"></p><p><img src="/img/waic-not-omnipotent-agent/30.png" alt="Thin divider bar after the community follow section" loading="lazy" decoding="async"></p><h2 id="Related-reading"><a href="#Related-reading" class="headerlink" title="Related reading"></a>Related reading</h2><p><img src="/img/waic-not-omnipotent-agent/31.png" alt="Related-reading card one from the OceanBase community" loading="lazy" decoding="async"></p><p><img src="/img/waic-not-omnipotent-agent/32.png" alt="Related-reading card two from the OceanBase community" loading="lazy" decoding="async"></p><p><img src="/img/waic-not-omnipotent-agent/33.png" alt="Related-reading card three from the OceanBase community" loading="lazy" decoding="async"></p><p><img src="/img/waic-not-omnipotent-agent/34.png" alt="Related-reading card four from the OceanBase community" loading="lazy" decoding="async"></p><p><img src="/img/waic-not-omnipotent-agent/35.png" alt="Thin divider bar before upcoming-event recommendations" loading="lazy" decoding="async"></p><h2 id="Upcoming-events"><a href="#Upcoming-events" class="headerlink" title="Upcoming events"></a>Upcoming events</h2><p><img src="/img/waic-not-omnipotent-agent/36.png" alt="Upcoming OceanBase community event poster" loading="lazy" decoding="async"></p><p>Welcome to join the open-source community Discord.</p><p><img src="/img/discord.png" alt="Welcome to join the open-source community Discord" loading="lazy" decoding="async"></p>]]>
    </content>
    <id>https://longda.us/2026/2026-07-28-waic-not-omnipotent-agent/</id>
    <link href="https://longda.us/2026/2026-07-28-waic-not-omnipotent-agent/"/>
    <published>2026-07-27T21:07:55.000Z</published>
    <summary>WAIC field notes show that agents create value in bounded use cases—with ontology, live data, DRIs, and on-device memory—not as all-purpose generalists.</summary>
    <title>After WAIC, I Stopped Believing in the Omnipotent Agent</title>
    <updated>2026-08-12T21:07:55.000Z</updated>
  </entry>
  <entry>
    <author>
      <name>Longda Feng</name>
    </author>
    <category term="AI Applications" scheme="https://longda.us/categories/AI-Applications/"/>
    <category term="OceanBase" scheme="https://longda.us/tags/OceanBase/"/>
    <category term="AI Agent" scheme="https://longda.us/tags/AI-Agent/"/>
    <category term="Multi-Agent" scheme="https://longda.us/tags/Multi-Agent/"/>
    <category term="Graph Engineering" scheme="https://longda.us/tags/Graph-Engineering/"/>
    <category term="Loop Engineering" scheme="https://longda.us/tags/Loop-Engineering/"/>
    <category term="LangGraph" scheme="https://longda.us/tags/LangGraph/"/>
    <category term="Work Graph" scheme="https://longda.us/tags/Work-Graph/"/>
    <category term="Finite State Machine" scheme="https://longda.us/tags/Finite-State-Machine/"/>
    <content>
      <![CDATA[<script type="application/ld+json">{"@context":"https://schema.org","@type":"BlogPosting","headline":"Graph Engineering: Don't Let One Agent Be Both Player and Referee","description":"Graph Engineering does not replace the agent loop. It separates execution, validation, and direction so one agent does not judge its own work.","image":"https://longda.us/img/graph-engineering-agent-roles/01.png","wordCount":2878,"timeRequired":"PT14M","datePublished":"2026-07-26T22:03:56.000Z","dateModified":"2026-08-12T21:07:28.000Z","isAccessibleForFree":true,"author":{"@type":"Person","name":"Longda Feng","url":"https://longda.us"},"publisher":{"@type":"Organization","name":"Longda's Interesting World","logo":{"@type":"ImageObject","url":"https://longda.us/img/my.jpg"}},"mainEntityOfPage":{"@type":"WebPage","@id":"https://longda.us/2026/2026-07-27-graph-engineering-agent-roles/"},"url":"https://longda.us/2026/2026-07-27-graph-engineering-agent-roles/","inLanguage":"en","keywords":["OceanBase","AI Agent","Multi-Agent","Graph Engineering","Loop Engineering","LangGraph","Work Graph","Finite State Machine"],"articleSection":["AI Applications"]}</script><script type="application/ld+json">{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://longda.us/"},{"@type":"ListItem","position":2,"name":"AI Applications","item":"https://longda.us/categories/AI-Applications/"},{"@type":"ListItem","position":3,"name":"Graph Engineering: Don't Let One Agent Be Both Player and Referee","item":"https://longda.us/2026/2026-07-27-graph-engineering-agent-roles/"}]}</script><p>If the same loop produces a result, checks it, and decides what happens next, it easily becomes athlete, referee, and scorekeeper all at once. <strong>Graph Engineering</strong> is about how multiple loops divide work, hand it off, correct course, and stop.</p><p>Over the last few days, <strong>Graph Engineering</strong> has been everywhere. Some people treat it as a multi-agent workflow. Others stress generating tasks at runtime. Still others talk about “letting a loop inspect a loop.”</p><p>The term does not yet have a widely accepted definition, but one point is already clear: <strong>the loop has not been replaced by the graph</strong>. Only when a single loop can no longer shoulder execution, validation, and direction-setting does the engineering problem move from within one loop to the relationships among many loops.</p><p><img src="/img/graph-engineering-agent-roles/01.png" alt="Banner contrasting one overloaded agent loop with a graph of divided roles" decoding="async"></p><span id="more"></span><h2 id="How-did-Graph-Engineering-enter-the-conversation"><a href="#How-did-Graph-Engineering-enter-the-conversation" class="headerlink" title="How did Graph Engineering enter the conversation?"></a>How did Graph Engineering enter the conversation?</h2><p>It started with a short question. On July 18, OpenClaw author Peter Steinberger asked: “Are we still talking loops or did we shift to graphs yet?”</p><p><img src="/img/graph-engineering-agent-roles/02.jpeg" alt="Peter Steinberger tweet asking whether the industry shifted from loops to graphs" loading="lazy" decoding="async"></p><p>That nine-word tweet[1] has already been viewed nearly 3 million times.</p><p>A few hours later, Hamel Husain posted a clickbait title: <em>Loop Engineering Is Dead. Enter Graph Engineering.</em>[2] The post itself was only a GIF.</p><p><img src="/img/graph-engineering-agent-roles/03.gif" alt="Animated GIF used in Hamel Husain&#39;s Loop Engineering Is Dead post" loading="lazy" decoding="async"></p><p>He later replied, bluntly: “Nobody knows what it is.”[3]</p><p>A term without a shared definition already has attention, competing camps, architecture diagrams, and tutorials. The AI coding community is not so different from show business these days.</p><p><img src="/img/graph-engineering-agent-roles/04.png" alt="Meme comparing AI coding discourse to entertainment-industry hype cycles" loading="lazy" decoding="async"></p><p>Follow the OceanBase community WeChat account “老纪的技术唠嗑局” for ongoing writing on AI and data.</p><h2 id="First-a-few-words-about-Loop-Engineering"><a href="#First-a-few-words-about-Loop-Engineering" class="headerlink" title="First, a few words about Loop Engineering"></a>First, a few words about Loop Engineering</h2><p>Why hadn’t we written a dedicated WeChat article about Loop Engineering before?</p><p>First, before Loop Engineering suddenly went viral, we had already talked about the harness (see <a href="https://mp.weixin.qq.com/s?__biz=Mzk3NTE2NzU5NQ==&mid=2247491299&idx=1&sn=a4f802cf7933d1a928578269b2a5404e&scene=21#wechat_redirect">A Deep “Dissection” of the AI Agent Harness</a>).</p><p>In that article, LangChain put it plainly: Agent &#x3D; model + harness. “Since you did not build the model, everything you do is harness work.”</p><p><img src="/img/graph-engineering-agent-roles/05.png" alt="Diagram showing an agent as a model plus harness of surrounding engineering" loading="lazy" decoding="async"></p><p>So harness engineering already includes:</p><ul><li><strong>Prompt Engineering</strong>: a single-argument function. How to write a high-quality prompt so the model produces a better result.</li><li><strong>Context Engineering</strong>: a multi-argument function. Which context the model should see so it produces a better result.</li><li><strong>Loop Engineering</strong>: a cyclic program with stateful feedback. How to keep the model running autonomously for an extended period and help it complete the task more effectively.</li><li>…and many other components, which we will not list one by one here.</li></ul><p>Second, <strong>the loop has always been the foundation of an agent. It is not a new idea.</strong> An AI agent operates as follows: perceive → reason → act → observe → reason again (the ReAct pattern, Reasoning + Acting). The biggest difference between an agent and a chatbot is that an agent can operate in a loop. It iterates instead of producing a single response, as in a traditional AI conversation.</p><p>If we insist on distinguishing Loop Engineering from ReAct, my reading is that Loop Engineering simply wraps another loop around ReAct: a parent loop around child loops, reducing human intervention and allowing the agent to detect changes in its environment and continue until it meets the goal. In practice, there is usually no need to draw a hard line between Loop Engineering and ReAct.</p><p>Until recently, the more common discussion was which loop form fits which scenario: turn-based, goal-based, time-based, or proactive. That is not the focus of this article, so we will not go further. One recommended piece is Akshay Pachaar’s <em>The four types of agent loops</em>[4].</p><h2 id="What-is-the-AI-community-talking-about-when-it-says-Graph-Engineering"><a href="#What-is-the-AI-community-talking-about-when-it-says-Graph-Engineering" class="headerlink" title="What is the AI community talking about when it says Graph Engineering?"></a>What is the AI community talking about when it says Graph Engineering?</h2><h3 id="My-interpretation"><a href="#My-interpretation" class="headerlink" title="My interpretation"></a>My interpretation</h3><p>Following the same pattern, if Loop Engineering is a cyclic program with stateful feedback, I would read Graph Engineering as a distributed program made of multiple program nodes.</p><p>In real work you may need several agents running in parallel, with dependencies between them. That is more than a <code>while</code> loop. The matching computer-science idea is a graph.</p><p><img src="/img/graph-engineering-agent-roles/06.png" alt="Directed graph of interdependent agents instead of a single while loop" loading="lazy" decoding="async"></p><p>This graph is a <strong>directed graph</strong>. When one agent finishes, its result may need to go to another agent, so the edges need a direction.</p><blockquote><p>Note: this is not a DAG (directed acyclic graph). Real cases can contain cycles: after a node finishes, work may return to an earlier node.</p><p>It is closer to an FSM (finite-state machine), which is also a graph: the model switches among states until it reaches the goal.</p></blockquote><p>Many large tasks, when examined closely, essentially involve building an FSM. An earlier agent hands work to a later one; if the later agent finds a problem, it may send the work back.</p><p><img src="/img/graph-engineering-agent-roles/07.png" alt="Finite-state machine view of agents handing work forward and looping back" loading="lazy" decoding="async"></p><p>So Graph Engineering, like Loop Engineering, is not an entirely new concept. Engineering practice has simply arrived at a stage where we need graphs to describe and solve real problems.</p><p><img src="/img/graph-engineering-agent-roles/08.png" alt="Illustration that graph engineering is a stage of practice rather than a new invention" loading="lazy" decoding="async"></p><h3 id="What-do-the-most-common-views-share"><a href="#What-do-the-most-common-views-share" class="headerlink" title="What do the most common views share?"></a>What do the most common views share?</h3><p>If you put the high-engagement threads together, the rough consensus looks like this:</p><ul><li><strong>The loop still exists.</strong> An agent still has to act on results, verify, and correct. That remains the foundation of an agent.</li><li><strong>The graph organizes multiple execution units.</strong> It describes who goes first, who can run in parallel, where to go back when a check fails, and when a human should step in.</li><li><strong>Not every node is an agent.</strong> A node can be a tool, a deterministic program, a verifier, or a person. Each agent node may still run its own loop.</li><li><strong>Checkpoints and failure paths matter more than the number of boxes.</strong> If every arrow only says “continue,” you just drew a more complicated pipeline.</li></ul><p><img src="/img/graph-engineering-agent-roles/09.jpeg" alt="Community consensus that graphs organize loops, checkpoints, and failure paths" loading="lazy" decoding="async"></p><p>LangGraph, AutoGen, and traditional workflow systems have long handled nodes, state, branches, and retries. What changed in this round is that agent nodes are more autonomous and more uncertain: they may change the plan on the fly, call tools that alter the real environment, and keep splitting tasks while they run.</p><p><img src="/img/graph-engineering-agent-roles/10.jpeg" alt="LangGraph-style diagram of autonomous agent nodes with branches and retries" loading="lazy" decoding="async"></p><h3 id="Some-questions-are-still-open"><a href="#Some-questions-are-still-open" class="headerlink" title="Some questions are still open"></a>Some questions are still open</h3><p>The community is still splitting around a few clusters of questions:</p><table><thead><tr><th>Focus</th><th>Relatively clear</th><th>Still unresolved</th></tr></thead><tbody><tr><td>How Graph and Loop relate</td><td>In most accounts, a graph contains multiple loops that continue to run</td><td>At what point a collection of loops should be called a graph</td></tr><tr><td>Whether the graph is drawn in advance</td><td>Stable steps, permissions, and checkpoints usually need prior constraints</td><td>How dynamic the concrete tasks, branches, and even roles can be</td></tr><tr><td>How multiple agents collaborate</td><td>Division of labor, parallelism, and handoff are the mainstream focus</td><td>Whether this is only a relay, or one loop should calibrate another</td></tr><tr><td>What a Work Graph is</td><td>It can describe tasks and dependencies that form during one run</td><td>It is not a unified term, and not a settled conclusion</td></tr><tr><td>Whether more agents are better</td><td>Tasks suited to parallel exploration may benefit</td><td>For sequential tasks, coordination costs may exceed the gains</td></tr></tbody></table><p>The third row is the one most worth chasing.</p><p>If a graph is only “the research agent finishes and hands off to the writing agent,” it looks like a traditional workflow with smarter nodes. Another line is already in the discussion: one agent implements, an independent agent reviews, another hunts for counterexamples, and yet another rechecks whether the original goal has drifted. They do not only relay work. They inspect, challenge, and if needed block one another. “You need loops watching loops”[5] is exactly this layer.</p><p>There are already many frameworks and established practices for orchestrating multiple loops. There is still no shared method for letting one loop inspect, calibrate, or even halt another. That second problem determines whether the graph is merely a collaboration diagram or a system that can actually correct course.</p><h2 id="How-should-we-understand-Graph-Engineering"><a href="#How-should-we-understand-Graph-Engineering" class="headerlink" title="How should we understand Graph Engineering?"></a>How should we understand Graph Engineering?</h2><h3 id="Start-with-the-loop-how-an-executor-runs-on-feedback"><a href="#Start-with-the-loop-how-an-executor-runs-on-feedback" class="headerlink" title="Start with the loop: how an executor runs on feedback"></a>Start with the loop: how an executor runs on feedback</h3><p>A loop is not only a <code>while</code> in code. An executor sees a result, decides the next step, acts, verifies, and then adjusts with new information. That is a loop.</p><p><img src="/img/graph-engineering-agent-roles/11.jpeg" alt="Executor loop of deciding, acting, verifying, and adjusting from feedback" loading="lazy" decoding="async"></p><p>It answers a concrete question: <strong>how does one executor keep pushing the work forward?</strong> Goal, context, tools, verification methods, exit conditions, and human confirmation are all part of that cycle.</p><p><img src="/img/graph-engineering-agent-roles/12.jpeg" alt="Loop components including goal, tools, verification, exit, and human confirmation" loading="lazy" decoding="async"></p><p>A single loop is simple, flexible, and fast to react. <strong>The problem comes from the same place: if producing the result, checking the result, and judging direction all live in one loop, it easily becomes athlete, referee, and scorekeeper at once.</strong></p><h3 id="Execution-validation-and-direction-cannot-all-sit-in-one-loop"><a href="#Execution-validation-and-direction-cannot-all-sit-in-one-loop" class="headerlink" title="Execution, validation, and direction cannot all sit in one loop"></a>Execution, validation, and direction cannot all sit in one loop</h3><p>When one loop can no longer shoulder every responsibility, you split them: someone does the work, someone validates it independently, and someone periodically reassesses the direction.</p><p><img src="/img/graph-engineering-agent-roles/13.jpeg" alt="Three responsibilities split across doing, checking, and direction-setting loops" loading="lazy" decoding="async"></p><ul><li>The <strong>doing loop</strong> cares about moving the work in front of it: search, write code, generate content, fix issues.</li><li>The <strong>validation loop</strong> does not continue doing the first loop’s job. It uses tests, constraints, and counterexamples to judge whether the work is correct.</li><li>The <strong>direction loop</strong> takes a slower, longer-term view: why does the same problem keep returning? Is the cost worth it? Do users actually accept the result? Is the original goal still reasonable?</li></ul><p><img src="/img/graph-engineering-agent-roles/14.jpeg" alt="Doing, checking, and direction loops as advance, correct, and redirect" loading="lazy" decoding="async"></p><p>These three loops do not have to map to three agents, and they do not have to run at every step. They name three responsibilities: <strong>advance, correct, and redirect.</strong></p><p>You can treat a loop as a work unit that keeps adjusting from feedback, and a graph as the division of labor, handoff, inspection, and control among those units.</p><h3 id="How-multiple-loops-work-together-clear-handoffs-enforceable-checks-and-a-way-to-stop"><a href="#How-multiple-loops-work-together-clear-handoffs-enforceable-checks-and-a-way-to-stop" class="headerlink" title="How multiple loops work together: clear handoffs, enforceable checks, and a way to stop"></a>How multiple loops work together: clear handoffs, enforceable checks, and a way to stop</h3><p>If a loop is an executor that finds its own path, the graph is not about how you arrange desks. It is about who hands what to whom, who accepts the work, whether a bad result can be sent back, and who calls a halt when the direction is wrong.</p><p><img src="/img/graph-engineering-agent-roles/15.jpeg" alt="Handoff, acceptance, rollback, and stop relations among cooperating loops" loading="lazy" decoding="async"></p><table><thead><tr><th>Layer</th><th>What must be clear</th><th>What happens if it is not</th></tr></thead><tbody><tr><td><strong>How work flows</strong></td><td>Who owns what; which artifacts, evidence, current state, and open questions the upstream must deliver</td><td>The arrow collapses into “I’m done,” and the downstream has to guess again</td></tr><tr><td><strong>How results are validated</strong></td><td>Who checks independently; after a failed check, whether to retry, roll back, change path, or change owner</td><td>Review can only comment and cannot change the outcome</td></tr><tr><td><strong>How the system stops or changes direction</strong></td><td>Who can block further execution; who can adjust goals and rules from longer-term results</td><td>Every node only moves forward, and the whole system cannot stop even when it drifts together</td></tr></tbody></table><p>When you design failure paths, also write down who receives the rollback, how many retries are allowed, when to escalate to a person, and how much budget has already been spent. Once a node can call tools or change the real environment, permissions must tighten with role and stage. A node that is “responsible for checking” must not casually rewrite the result it is checking.</p><p>For example, the implementation loop hands over code and test evidence. The validation loop does not rely on the first loop’s account of its own work; it runs the tests, checks the constraints, and looks for counterexamples. After a failed check, the work is actually sent back. If the original goal itself is wrong, the direction loop or a human reassesses it. A check is meaningful only if it can change the subsequent path.</p><p>Traditional workflows mainly decide which step runs next. In Graph Engineering, nodes may find their own paths, change the plan, call tools, and even modify the real environment. You therefore also have to decide who is allowed to judge, what evidence is handed over, who can veto, and when work returns to a person.</p><h3 id="How-a-graph-can-evolve-set-the-outer-boundary-first-then-adapt-within-it"><a href="#How-a-graph-can-evolve-set-the-outer-boundary-first-then-adapt-within-it" class="headerlink" title="How a graph can evolve: set the outer boundary first, then adapt within it"></a>How a graph can evolve: set the outer boundary first, then adapt within it</h3><p>The community has proposed both predefined routes and task graphs that agents generate at runtime, along with approaches that add or remove roles as difficulty changes. In practice, the answer is more likely this: <strong>permissions, acceptance criteria, and a few mandatory stop points are set first; the number of tasks created during a run and the branches taken can be adjusted along the way.</strong></p><p><img src="/img/graph-engineering-agent-roles/16.jpeg" alt="Stable outer boundary of permissions, acceptance, budget, and human gates" loading="lazy" decoding="async"></p><p><em>Permissions, acceptance, budget, and human gates form a relatively stable outer layer. How this task is split, whether it runs in parallel, and when to add a check can be adjusted inside that boundary.</em></p><p>Some people call the tasks and dependencies that form during a run a <strong>Work Graph</strong>. The phrase can help understanding, but it is not a unified term, and it is not a validated conclusion. Asana has also long used Work Graph® for a different work-data model.</p><h3 id="Seen-as-program-structure-a-state-machine-helps"><a href="#Seen-as-program-structure-a-state-machine-helps" class="headerlink" title="Seen as program structure, a state machine helps"></a>Seen as program structure, a state machine helps</h3><p>From a programmer’s perspective, the ideas line up: Prompt Engineering is like a single-argument function that takes only a prompt; Context Engineering is like a function that receives several context parameters; Harness Engineering then wires in tools, permissions, and the runtime. Loop Engineering lets the program read state and feedback and keep adjusting.</p><p>With Graph Engineering, several stateful execution nodes are wired into a graph. Work can branch, join, roll back, and stop when needed.</p><p>If a failed check rolls work back, replans, or re-enters a node that already ran, the path can contain a cycle. A finite-state machine (FSM) is a useful analogy: the system switches among states according to results until an exit condition is met.</p><p><img src="/img/graph-engineering-agent-roles/17.jpeg" alt="State-machine analogy for branching, joining, rolling back, and stopping" loading="lazy" decoding="async"></p><p>This is only an analogy for control relationships. It is not a technical definition of Graph Engineering. Graph theory and state machines are not new. What changed is the agent node itself: it starts splitting tasks, changing plans, calling tools, and modifying the real environment. Control methods that used to live in workflows and distributed systems now have to be brought back for nodes that are more autonomous and more uncertain.</p><h3 id="When-a-graph-is-worth-it-only-if-the-task-actually-needs-it"><a href="#When-a-graph-is-worth-it-only-if-the-task-actually-needs-it" class="headerlink" title="When a graph is worth it: only if the task actually needs it"></a>When a graph is worth it: only if the task actually needs it</h3><p>A graph does not mean “the more agents, the better.” It suits tasks that can be split into relatively independent parts, where different parts need different information, tools, or permissions, intermediate results can be checked independently, and only a local piece needs to be redone after a failure.</p><p>If the task is small, every step strictly depends on the previous one, and every agent keeps editing the same artifact, one clear loop is often better. Anthropic’s multi-agent research system[6] is well suited to broad search and parallel exploration, but its official engineering write-up also notes that the multi-agent system uses about <strong>15×</strong> the tokens of ordinary chat. Experiments from Google Research, Google DeepMind, and MIT[7] found that multi-agent setups may improve performance on parallelizable tasks but perform worse on strictly sequential ones.</p><p><img src="/img/graph-engineering-agent-roles/18.jpeg" alt="When a multi-agent graph helps versus when one clear loop is better" loading="lazy" decoding="async"></p><p>The next time you see a graph, ask three questions:</p><ol><li><strong>What relationship does it solve that one loop cannot?</strong></li><li><strong>Can a check actually roll work back, change the path, or halt it?</strong></li><li><strong>Is the added coordination cost smaller than the independent judgment and local recovery it brings?</strong></li></ol><p><em>Start from one clear loop. A graph is more likely to pay off only when the task can be split, intermediate results can be accepted on their own, and you truly need different information, tools, or permissions.</em></p><h2 id="Closing-the-loop-is-not-dead"><a href="#Closing-the-loop-is-not-dead" class="headerlink" title="Closing: the loop is not dead"></a>Closing: the loop is not dead</h2><p>Graph Engineering still has no widely accepted definition, and there is no need to force a precise boundary yet.</p><p>The loop still moves local work forward. The graph starts to matter only when execution, validation, and direction-setting need to be split apart.</p><p><img src="/img/graph-engineering-agent-roles/19.jpeg" alt="Closing illustration that loops still drive work while graphs split responsibilities" loading="lazy" decoding="async"></p><p>What you actually have to design is whether those relationships are enforceable: whether a handoff carries artifacts and evidence, whether a check can change the subsequent path, and who reassesses the work when its direction is wrong.</p><p>If you cannot do that, a graph is only a more complicated and more expensive flowchart. If you can, the engineering problem shifts from “how one agent keeps doing the work” to “how multiple loops collaborate, and how they avoid drifting together.”</p><p><img src="/img/graph-engineering-agent-roles/20.png" alt="Takeaway that a graph only matters when checks can change the later path" loading="lazy" decoding="async"></p><h2 id="References"><a href="#References" class="headerlink" title="References"></a>References</h2><p>[1] Tweet: <a href="https://x.com/steipete/status/2078277297791189132">https://x.com/steipete/status/2078277297791189132</a></p><p>[2] <em>Loop Engineering Is Dead. Enter Graph Engineering.</em>: <a href="https://x.com/HamelHusain/status/2078346425621237935">https://x.com/HamelHusain/status/2078346425621237935</a></p><p>[3] “Nobody knows what it is.”: <a href="https://x.com/HamelHusain/status/2079224401267224677">https://x.com/HamelHusain/status/2079224401267224677</a></p><p>[4] <em>The four types of agent loops</em>: <a href="https://x.com/akshay_pachaar/status/2076748259377516782">https://x.com/akshay_pachaar&#x2F;status&#x2F;2076748259377516782</a></p><p>[5] “You need loops watching loops”: <a href="https://x.com/VaibhavSisinty/status/2078646016568606961">https://x.com/VaibhavSisinty/status/2078646016568606961</a></p><p>[6] Anthropic’s multi-agent research system: <a href="https://www.anthropic.com/engineering/multi-agent-research-system">https://www.anthropic.com/engineering/multi-agent-research-system</a></p><p>[7] Experiments from Google Research, Google DeepMind, and MIT: <a href="https://research.google/blog/towards-a-science-of-scaling-agent-systems-when-and-why-agent-systems-work/">https://research.google/blog/towards-a-science-of-scaling-agent-systems-when-and-why-agent-systems-work/</a></p><p><img src="/img/graph-engineering-agent-roles/21.gif" alt="Decorative divider animation after the reference list" loading="lazy" decoding="async"></p><h2 id="Further-reading"><a href="#Further-reading" class="headerlink" title="Further reading"></a>Further reading</h2><p><img src="/img/graph-engineering-agent-roles/22.png" alt="Further-reading section header graphic for related Graph Engineering links" loading="lazy" decoding="async"></p><ul><li><em>Peter Steinberger: Are we still talking loops or did we shift to graphs yet?</em>: <a href="https://x.com/steipete/status/2078277297791189132">https://x.com/steipete/status/2078277297791189132</a></li><li><em>Community thread: A graph is a map of loops + checkpoints</em>: <a href="https://x.com/shannholmberg/status/2079096565344739643">https://x.com/shannholmberg/status/2079096565344739643</a></li><li><em>Community thread: You need loops watching loops</em>: <a href="https://x.com/VaibhavSisinty/status/2078646016568606961">https://x.com/VaibhavSisinty/status/2078646016568606961</a></li><li><em>Rahul: Prompt &#x2F; Context &#x2F; Harness &#x2F; Loop &#x2F; Graph Engineering</em>: <a href="https://x.com/sairahul1/status/2078781824160166070">https://x.com/sairahul1/status/2078781824160166070</a></li><li><em>ZeroZ_JQ: program-structure analogy from Prompt, Context, Harness, and Loop to Graph</em>: <a href="https://x.com/ZeroZ_JQ/status/2079512381294879005">https://x.com/ZeroZ_JQ&#x2F;status&#x2F;2079512381294879005</a></li><li><em>IntuitMachine: discussion of Loop Engineering and Graph Engineering</em>: <a href="https://x.com/IntuitMachine/status/2078419526354378975">https://x.com/IntuitMachine/status/2078419526354378975</a></li><li><em>LangGraph: Graph API</em>: <a href="https://docs.langchain.com/oss/python/langgraph/graph-api">https://docs.langchain.com/oss/python/langgraph/graph-api</a></li><li><em>Microsoft AutoGen: GraphFlow</em>: <a href="https://microsoft.github.io/autogen/dev/user-guide/agentchat-user-guide/graph-flow.html">https://microsoft.github.io/autogen/dev/user-guide/agentchat-user-guide/graph-flow.html</a></li><li><em>Anthropic: How we built our multi-agent research system</em>: <a href="https://www.anthropic.com/engineering/multi-agent-research-system">https://www.anthropic.com/engineering/multi-agent-research-system</a></li><li><em>Google Research: Towards a Science of Scaling Agent Systems</em>: <a href="https://research.google/blog/towards-a-science-of-scaling-agent-systems-when-and-why-agent-systems-work/">https://research.google/blog/towards-a-science-of-scaling-agent-systems-when-and-why-agent-systems-work/</a></li></ul><p><img src="/img/graph-engineering-agent-roles/23.png" alt="Thin decorative separator after the further-reading list" loading="lazy" decoding="async"></p><h2 id="Related-recommendations"><a href="#Related-recommendations" class="headerlink" title="Related recommendations"></a>Related recommendations</h2><p><img src="/img/graph-engineering-agent-roles/24.png" alt="Related-recommendation card for another OceanBase community article" loading="lazy" decoding="async"></p><p><img src="/img/graph-engineering-agent-roles/25.png" alt="Second related-recommendation card for OceanBase community reading" loading="lazy" decoding="async"></p><p><img src="/img/graph-engineering-agent-roles/26.png" alt="Community promo card inviting readers to more OceanBase technical posts" loading="lazy" decoding="async"></p><p><img src="/img/graph-engineering-agent-roles/27.png" alt="Second community promo card highlighting recent OceanBase discussions" loading="lazy" decoding="async"></p><p><img src="/img/graph-engineering-agent-roles/28.png" alt="Repeated thin decorative separator before upcoming community events" loading="lazy" decoding="async"></p><h2 id="Recent-community-events"><a href="#Recent-community-events" class="headerlink" title="Recent community events"></a>Recent community events</h2><p><img src="/img/graph-engineering-agent-roles/29.png" alt="Poster for upcoming OceanBase community events and meetups" loading="lazy" decoding="async"></p><p>Learn more: <a href="https://mp.weixin.qq.com/s?__biz=Mzk3NTE2NzU5NQ==&mid=2247491917&idx=1&sn=6d375c7dde036b84f9718b10c2768454&scene=21#wechat_redirect">OceanBase community WeChat article</a></p><p>Welcome to join the open-source community Discord.</p><p><img src="/img/discord.png" alt="Welcome to join the open-source community Discord" loading="lazy" decoding="async"></p>]]>
    </content>
    <id>https://longda.us/2026/2026-07-27-graph-engineering-agent-roles/</id>
    <link href="https://longda.us/2026/2026-07-27-graph-engineering-agent-roles/"/>
    <published>2026-07-26T22:03:56.000Z</published>
    <summary>Graph Engineering does not replace the agent loop. It separates execution, validation, and direction so one agent does not judge its own work.</summary>
    <title>Graph Engineering: Don't Let One Agent Be Both Player and Referee</title>
    <updated>2026-08-12T21:07:28.000Z</updated>
  </entry>
  <entry>
    <author>
      <name>Longda Feng</name>
    </author>
    <category term="Product Deep Dive" scheme="https://longda.us/categories/Product-Deep-Dive/"/>
    <category term="OceanBase" scheme="https://longda.us/tags/OceanBase/"/>
    <category term="AI Agent" scheme="https://longda.us/tags/AI-Agent/"/>
    <category term="Hybrid Search" scheme="https://longda.us/tags/Hybrid-Search/"/>
    <category term="Lakebase" scheme="https://longda.us/tags/Lakebase/"/>
    <category term="Multimodal Data" scheme="https://longda.us/tags/Multimodal-Data/"/>
    <category term="Data Lake Integration" scheme="https://longda.us/tags/Data-Lake-Integration/"/>
    <category term="Intelligent Driving" scheme="https://longda.us/tags/Intelligent-Driving/"/>
    <category term="Securities" scheme="https://longda.us/tags/Securities/"/>
    <content>
      <![CDATA[<script type="application/ld+json">{"@context":"https://schema.org","@type":"BlogPosting","headline":"Why OceanBase Built Lakebase","description":"Yanran (Han Fusheng) explains why OceanBase built Lakebase to unify multimodal data, hybrid search, and agent-ready access for enterprises.","image":"https://longda.us/img/why-we-build-lakebase/01.gif","wordCount":1505,"timeRequired":"PT8M","datePublished":"2026-07-22T19:30:32.000Z","dateModified":"2026-07-28T19:30:32.000Z","isAccessibleForFree":true,"author":{"@type":"Person","name":"Longda Feng","url":"https://longda.us"},"publisher":{"@type":"Organization","name":"Longda's Interesting World","logo":{"@type":"ImageObject","url":"https://longda.us/img/my.jpg"}},"mainEntityOfPage":{"@type":"WebPage","@id":"https://longda.us/2026/2026-07-23-why-we-build-lakebase/"},"url":"https://longda.us/2026/2026-07-23-why-we-build-lakebase/","inLanguage":"en","keywords":["OceanBase","AI Agent","Hybrid Search","Lakebase","Multimodal Data","Data Lake Integration","Intelligent Driving","Securities"],"articleSection":["Product Deep Dive"]}</script><script type="application/ld+json">{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://longda.us/"},{"@type":"ListItem","position":2,"name":"Product Deep Dive","item":"https://longda.us/categories/Product-Deep-Dive/"},{"@type":"ListItem","position":3,"name":"Why OceanBase Built Lakebase","item":"https://longda.us/2026/2026-07-23-why-we-build-lakebase/"}]}</script><p>On June 29, OceanBase launched Lakebase as the core engine of its AI database family. Product GM Yanran (Han Fusheng) explains why enterprises need a unified data lake and database foundation for multimodal data, hybrid search, and agent-ready access.</p><p><img src="/img/why-we-build-lakebase/01.gif" alt="Animated banner introducing why OceanBase built Lakebase for AI-era data" decoding="async"></p><span id="more"></span><p><strong>Editor’s note</strong></p><p>On June 29, the OceanBase Hours online launch introduced OceanBase’s AI database for integrated data lake and database workloads, marking the debut of the OceanBase AI product family.</p><p>In that lineup, <strong>OceanBase Lakebase</strong> is the core engine of the OceanBase AI database. It combines data lake, database, and multimodal capabilities so structured, unstructured, and vector data can be managed, processed, retrieved, and accessed within one architecture.</p><p>Why build OceanBase Lakebase? What is the underlying technical logic? Which business use cases does it support? This article explores those questions.</p><p>Author | OceanBase Product GM Yanran (Han Fusheng)</p><p><img src="/img/why-we-build-lakebase/02.jpeg" alt="Portrait of OceanBase product GM Han Fusheng speaking about Lakebase" loading="lazy" decoding="async"></p><p>OceanBase Product GM Han Fusheng</p><p>AI is rewriting the rules of enterprise data systems.</p><p>For decades, a database’s core job was to manage structured data. Transactions, orders, accounts, and finance were organized and queried as tables, and they powered the most critical business systems.</p><p>As AI advanced, text, images, audio, video, and other multimodal data entered those systems. They stopped being mere attachments and became assets that can be understood, analyzed, and used to support new business use cases.</p><p>Enterprises are not short of data. Data lakes store raw data, databases support transactions, and warehouses serve analytics. In AI use cases, that fragmented architecture struggles to process and understand multimodal data in a unified way. For AI applications to understand the business better, they need a new foundation that connects structured and multimodal data and applies AI capabilities to process and extract value from both.</p><p>That is why we released OceanBase Lakebase.</p><p><img src="/img/why-we-build-lakebase/03.png" alt="Diagram of OceanBase Lakebase unifying structured and multimodal AI data" loading="lazy" decoding="async"></p><h2 id="A-unified-data-lake-and-database-foundation-for-AI"><a href="#A-unified-data-lake-and-database-foundation-for-AI" class="headerlink" title="A unified data lake and database foundation for AI"></a>A unified data lake and database foundation for AI</h2><p>We define OceanBase Lakebase as a unified data lake and database foundation for AI business use cases.</p><p>It is not a new data lake, and it is not a lateral expansion of database features. It is an attempt, in the AI era, to rethink how enterprise data should be stored, managed, computed, and searched.</p><p>The core logic of OceanBase Lakebase is straightforward: manage multimodal data with the same rigor as structured data.</p><p>In the past, unstructured data could be stored, but it was hard to put to real use. Documents, images, video, and audio were scattered across systems, without unified metadata, unified indexes, unified compute, or unified search. Many enterprises already have large volumes of high-value data, yet business users and AI applications cannot use it efficiently.</p><p>That is the problem OceanBase Lakebase is meant to solve.</p><p><img src="/img/why-we-build-lakebase/04.png" alt="Architecture showing Lakebase ingest, compute, search, and agent access" loading="lazy" decoding="async"></p><p>First, text, images, audio, and video can be ingested and processed in one place. For AI applications, that means more previously dormant data can be brought back into use.</p><p>To get there, we chose an integrated data lake and database architecture. The openness of the lake matters because AI workloads need massive volumes of diverse data in open formats. The management capabilities of the database matter just as much because enterprise applications need stability, governance, access control, and reliable data services. We want those two sets of capabilities truly combined—not merely stitched together at the interface layer.</p><p>That architecture also enables more open and diverse ways to use data. AI workloads vary widely and cannot depend on a single computing model. OceanBase Lakebase therefore supports SQL, Spark, Daft, and other computing paradigms, allowing data engineering, algorithm development, and business analysis teams to work with data in the way that suits them best.</p><p>Search also needs to converge. Users need keyword search, vector search, and precise filters on structured fields. We want those capabilities unified so people can find what they need by semantics, by keywords, and by business conditions at the same time.</p><p>Looking ahead, people will not be the only consumers of data. More and more agents will access it continuously. In the agent era, data is not only queried by humans; it is also consumed by agents. Agents need more than a knowledge base: they need real-time context, long-term memory, business state, action records, and isolated data environments that support rollback.</p><p>What OceanBase Lakebase aims to do is turn these data capabilities into infrastructure that AI applications can call reliably—with standardized interfaces and tools that make it easier for AI agents to understand and use enterprise data.</p><p><img src="/img/why-we-build-lakebase/05.png" alt="Diagram of Lakebase standalone and overlay deployment models" loading="lazy" decoding="async"></p><h2 id="Two-deployment-models"><a href="#Two-deployment-models" class="headerlink" title="Two deployment models"></a>Two deployment models</h2><p>As an enterprise data foundation, we know many customers already run long-lived data systems that hold large historical assets. OceanBase Lakebase is therefore not designed to force a rip-and-replace, and it does not require every dataset to be migrated in before it can be used.</p><p>We designed two deployment models for OceanBase Lakebase:</p><ul><li><strong>Standalone mode</strong>, for net-new business use cases. When users launch a new AI application, they can deploy a complete end-to-end stack. OceanBase Lakebase can bring the system online quickly with a relatively small initial footprint and provide all the capabilities the new use case needs, including storage and compute.</li><li><strong>Intelligent overlay mode</strong>, for use cases that need to reuse existing storage and data assets. If a customer has already accumulated a large data lake, OceanBase Lakebase can run alongside the current systems, connect existing data with newly managed data, and present a consistent access layer to applications.</li></ul><p>In short, new applications can be built quickly, and existing systems can be enhanced smoothly. Users can choose the model that best fits their use case.</p><p><img src="/img/why-we-build-lakebase/06.png" alt="Illustration of Lakebase overlaying existing enterprise data systems" loading="lazy" decoding="async"></p><h2 id="Intelligent-driving-find-the-valuable-clips"><a href="#Intelligent-driving-find-the-valuable-clips" class="headerlink" title="Intelligent driving: find the valuable clips"></a>Intelligent driving: find the valuable clips</h2><p>Intelligent-driving companies collect large volumes of video, images, sensor data, and GPS from engineering vehicles and test vehicles every day. The real problem is not whether the data can be stored, but how to find the valuable fragments in that flood.</p><p>Extreme conditions, collision risk, abnormal roads, and severe weather matter a great deal for model training. If the work depends on manual screening, the pipeline becomes very long and inefficient.</p><p>In this scenario, the core value of OceanBase Lakebase is to make data storable, computable, and usable at a cost teams can afford.</p><p>What it does here is turn video and multimodal data into assets that can be processed and searched. The system supports video splitting, event slicing, keyframe extraction, scene recognition, and feature vectorization, then combines vector search, structured query, and multimodal search so teams can quickly find the samples they need in massive driving data.</p><p>For intelligent-driving companies, OceanBase Lakebase is not only a storage system. It is a data foundation for continuous model iteration. It helps customers turn large volumes of driving data into training and test samples, lower data-preparation cost, and speed up model iteration.</p><p><img src="/img/why-we-build-lakebase/07.png" alt="Intelligent-driving pipeline turning video into searchable training samples" loading="lazy" decoding="async"></p><h2 id="Securities-unify-structured-and-unstructured-research-data"><a href="#Securities-unify-structured-and-unstructured-research-data" class="headerlink" title="Securities: unify structured and unstructured research data"></a>Securities: unify structured and unstructured research data</h2><p>Securities firms are not short of data—quite the opposite. They have abundant structured data such as market quotes, trades, financials, and customer records, as well as unstructured data such as research reports, announcements, policy documents, news, and public sentiment. The real challenge is the variety of data types, the difficulty of processing them, and inefficient integration.</p><p>In this scenario, OceanBase Lakebase can serve as a processing and serving hub for many data types. It can connect heterogeneous sources in a unified way, then parse, semantically understand, and extract content from research reports, announcements, and policy documents, and build indexes.</p><p>In intelligent report parsing, for example, the system can automatically parse research notes, industry reports, and company studies, extracting titles, abstracts, tags, industries, security identifiers, and research institutions so investment materials are easier to retain and reuse. In policy-document management, it can classify, identify, summarize, and tag regulatory rules, compliance files, and anti-money-laundering documents to support subsequent policy retrieval and compliance Q&amp;A.</p><p><img src="/img/why-we-build-lakebase/08.png" alt="Securities workflow parsing research reports and compliance documents" loading="lazy" decoding="async"></p><h2 id="From-an-integrated-database-to-an-AI-data-lake-and-database"><a href="#From-an-integrated-database-to-an-AI-data-lake-and-database" class="headerlink" title="From an integrated database to an AI data lake and database"></a>From an integrated database to an AI data lake and database</h2><p>A transactional database alone cannot cover multimodal processing. A data lake alone struggles to meet enterprise-grade management, search, and service requirements.</p><p>The AI era needs a new foundation that unifies the data lake and database: one that can manage structured data, process multimodal data, and provide analytical capabilities for people as well as programmable data services for agents.</p><p>OceanBase already has a complete database product line that keeps many customers’ core systems running. Building on that foundation, we developed an AI database with OceanBase Lakebase at its core to address emerging AI-era data-processing needs.</p><p>As we evolve from an integrated database to an AI data lake and database, we want to continue supporting the stable operation of core enterprise systems while accelerating the deployment of new AI applications.</p><p>Lakebase is a step OceanBase is taking in that direction. Through Lakebase, we hope to help enterprises consolidate, manage, process, and search scattered data, ultimately supporting AI applications and business innovation.</p><p>Many fellow practitioners will travel this path, and many engineering problems still need to be solved. The direction is clear: future enterprise data infrastructure must understand both structured logic and unstructured semantics.</p><p>OceanBase wants to strengthen that foundation alongside its customers and turn these use cases into production realities.</p><p><img src="/img/why-we-build-lakebase/09.png" alt="Closing visual of OceanBase Lakebase as the AI data foundation" loading="lazy" decoding="async"></p><h2 id="Related-reading"><a href="#Related-reading" class="headerlink" title="Related reading"></a>Related reading</h2><p><img src="/img/why-we-build-lakebase/10.png" alt="Related-article card recommending earlier OceanBase community content" loading="lazy" decoding="async"></p><p><img src="/img/why-we-build-lakebase/11.png" alt="Related-article card highlighting another OceanBase technical post" loading="lazy" decoding="async"></p><p><img src="/img/why-we-build-lakebase/12.png" alt="Related-article card pointing to a prior OceanBase product story" loading="lazy" decoding="async"></p><p><img src="/img/why-we-build-lakebase/13.png" alt="Related-content banner repeated from the WeChat article footer" loading="lazy" decoding="async"></p><h2 id="Event-recommendation"><a href="#Event-recommendation" class="headerlink" title="Event recommendation"></a>Event recommendation</h2><p><img src="/img/why-we-build-lakebase/14.jpeg" alt="Event poster recommending an OceanBase community activity" loading="lazy" decoding="async"></p><p><a href="https://mp.weixin.qq.com/s?__biz=Mzk3NTE2NzU5NQ==&mid=2247491917&idx=1&sn=6d375c7dde036b84f9718b10c2768454&scene=21#wechat_redirect">Learn more</a></p><p>Welcome to join the open-source community Discord.</p><p><img src="/img/discord.png" alt="Welcome to join the open-source community Discord" loading="lazy" decoding="async"></p>]]>
    </content>
    <id>https://longda.us/2026/2026-07-23-why-we-build-lakebase/</id>
    <link href="https://longda.us/2026/2026-07-23-why-we-build-lakebase/"/>
    <published>2026-07-22T19:30:32.000Z</published>
    <summary>Yanran (Han Fusheng) explains why OceanBase built Lakebase to unify multimodal data, hybrid search, and agent-ready access for enterprises.</summary>
    <title>Why OceanBase Built Lakebase</title>
    <updated>2026-07-28T19:30:32.000Z</updated>
  </entry>
  <entry>
    <author>
      <name>Longda Feng</name>
    </author>
    <category term="AI Applications" scheme="https://longda.us/categories/AI-Applications/"/>
    <category term="OceanBase" scheme="https://longda.us/tags/OceanBase/"/>
    <category term="AI Memory" scheme="https://longda.us/tags/AI-Memory/"/>
    <category term="Agent Memory" scheme="https://longda.us/tags/Agent-Memory/"/>
    <category term="seekdb" scheme="https://longda.us/tags/seekdb/"/>
    <category term="PowerMem" scheme="https://longda.us/tags/PowerMem/"/>
    <category term="Memory OS" scheme="https://longda.us/tags/Memory-OS/"/>
    <category term="Agentic Memory" scheme="https://longda.us/tags/Agentic-Memory/"/>
    <category term="System Architecture" scheme="https://longda.us/tags/System-Architecture/"/>
    <content>
      <![CDATA[<script type="application/ld+json">{"@context":"https://schema.org","@type":"BlogPosting","headline":"Designing AI Memory Systems: Architecture and Engineering Practice","description":"An architectural view of AI memory as a Memory OS built on a Raw Ledger, Views, and Policy, followed by a practical implementation in PowerMem.","image":"https://longda.us/img/ai-memory-system-architecture/01.jpg","wordCount":6577,"timeRequired":"PT33M","datePublished":"2026-07-20T19:27:24.000Z","dateModified":"2026-07-28T19:27:24.000Z","isAccessibleForFree":true,"author":{"@type":"Person","name":"Longda Feng","url":"https://longda.us"},"publisher":{"@type":"Organization","name":"Longda's Interesting World","logo":{"@type":"ImageObject","url":"https://longda.us/img/my.jpg"}},"mainEntityOfPage":{"@type":"WebPage","@id":"https://longda.us/2026/2026-07-21-ai-memory-system-architecture/"},"url":"https://longda.us/2026/2026-07-21-ai-memory-system-architecture/","inLanguage":"en","keywords":["OceanBase","AI Memory","Agent Memory","seekdb","PowerMem","Memory OS","Agentic Memory","System Architecture"],"articleSection":["AI Applications"]}</script><script type="application/ld+json">{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://longda.us/"},{"@type":"ListItem","position":2,"name":"AI Applications","item":"https://longda.us/categories/AI-Applications/"},{"@type":"ListItem","position":3,"name":"Designing AI Memory Systems: Architecture and Engineering Practice","item":"https://longda.us/2026/2026-07-21-ai-memory-system-architecture/"}]}</script><p>This article examines AI memory from a systems-architecture perspective and explains what an agent actually needs to reuse the past. Here, memory is the collection of records, knowledge, and experience that an agent accumulates over extended interactions and later retrieves and applies. It directly affects personalization, continual learning, and performance on long-horizon tasks.</p><p><img src="/img/ai-memory-system-architecture/01.jpg" alt="Illustrated cover for an AI Memory system architecture discussion" decoding="async"></p><span id="more"></span><p>The author is <strong>Kuda (Chen Zikang)</strong> of Ant Group. The material was prepared as a community chapter for the DataWhale × OceanBase course <em><a href="https://github.com/datawhalechina/easy-data-x-ai/blob/main/docs/extra">Easy Data x AI</a></em> (see subsection X1-4). Because the original notes go into considerable depth, some formulas and theorems have been simplified to keep the architectural argument readable. By the end, you should have a concrete picture of how memory can be implemented within an agent.</p><p>Alibaba Cloud Model Studio (Bailian) also provides dedicated free model compute for the community chapters and labs of that <a href="https://github.com/datawhalechina/easy-data-x-ai">Easy Data x AI</a> course. Details are in the benefits section at the end.</p><blockquote><p>Note: the article mentions some 2026 papers. Treat them as references, not as required reading.</p></blockquote><p>Follow the OceanBase community WeChat account “老纪的技术唠嗑局” for ongoing writing on #AI and #Data.</p><h2 id="1-What-memory-really-is-three-core-propositions"><a href="#1-What-memory-really-is-three-core-propositions" class="headerlink" title="1. What memory really is: three core propositions"></a>1. What memory really is: three core propositions</h2><p>The question memory must answer within an agent is: <em>did the past help it do the right thing today?</em> A Markdown file is not enough. Even a database is not enough. The agent needs a small <strong>Memory OS</strong>.</p><h3 id="Core-proposition-what-is-memory-in-an-agent-system"><a href="#Core-proposition-what-is-memory-in-an-agent-system" class="headerlink" title="Core proposition: what is memory in an agent system?"></a>Core proposition: what is memory in an agent system?</h3><p><img src="/img/ai-memory-system-architecture/02.png" alt="Question card asking what Memory really is inside an Agent system" loading="lazy" decoding="async"></p><p>After a couple of years of thinking about this, here is a working conclusion: an agent’s Memory OS can be abstracted into three concepts—<strong>Raw Ledger</strong>, <strong>Views</strong>, and <strong>Policy</strong>. They correspond roughly to an operating system’s raw log, its indexes and caches, and its scheduling rules.</p><p><img src="/img/ai-memory-system-architecture/03.png" alt="Three-part Memory OS abstraction of Raw Ledger, Views, and Policy" loading="lazy" decoding="async"></p><h4 id="Proposition-A-memory-is-not-storage-it-is-external-state-that-decisions-can-use"><a href="#Proposition-A-memory-is-not-storage-it-is-external-state-that-decisions-can-use" class="headerlink" title="Proposition A: memory is not storage; it is external state that decisions can use"></a>Proposition A: memory is not storage; it is external state that decisions can use</h4><p>If you treat an agent as a function from input to output, storing a large amount of history is not itself a capability. That history becomes useful only when it can influence the current decision distribution.</p><p>The memory system extracts information that is useful <em>now</em>—such as evidence, summaries, subgraphs, and executable skills—and passes it to the reasoning layer so the two can jointly produce a decision. The value of memory lies not in how much history it stores, but in whether <strong>the channel from history to the current decision</strong> actually works.</p><p><img src="/img/ai-memory-system-architecture/04.png" alt="Diagram of Memory as a channel from history into the current decision" loading="lazy" decoding="async"></p><p>Memory is not history itself. It is the channel that turns history into useful information. Its output either enters the context as evidence, a summary, or a subgraph, or participates directly in the decision—for example, by modulating the output distribution.</p><h4 id="Proposition-B-the-minimal-closure-of-Memory-is-Ledger-Views-and-Policy"><a href="#Proposition-B-the-minimal-closure-of-Memory-is-Ledger-Views-and-Policy" class="headerlink" title="Proposition B: the minimal closure of Memory is Ledger, Views, and Policy"></a>Proposition B: the minimal closure of Memory is Ledger, Views, and Policy</h4><p><img src="/img/ai-memory-system-architecture/05.png" alt="Minimal Memory closure showing Ledger, derived Views, and Policy" loading="lazy" decoding="async"></p><ol><li><strong>Raw Ledger.</strong> It keeps writes, edits, deletes, and feedback in the order they happened. “Ledger” already means a book of accounts; “Raw” reminds us that what lives here is unpolished fact. What the user said on which day, when the system revised which memory, and which session or task it belonged to should all be recoverable.</li><li><strong>Derived Views.</strong> These are the versions of the ledger that are easy to look up. Vector indexes find things by meaning, full-text indexes find names and IDs, knowledge graphs find relationships, and timelines answer what happened last year. A view may compress or drop detail, but you should still be able to walk back to the raw ledger.</li><li><strong>Policy.</strong> It decides when to read, how much to read, when to write, how to update, and how to forget. Those decisions must be made explicit as a recordable, replayable Action sequence (<code>ADD</code> &#x2F; <code>UPDATE</code> &#x2F; <code>DELETE</code> &#x2F; <code>NONE</code> …), not hinted at by one sentence in a prompt.</li></ol><p>The Raw Ledger is the black box or system of record. Views are caches, indexes, and materialized views. Policy is the scheduler or control loop. Remove any one of them, and the system becomes ungovernable (no ledger), unusable (no index or abstraction), or unable to improve iteratively (no control point for A&#x2F;B testing).</p><h4 id="Proposition-C-the-basic-unit-is-an-event-sequence-but-an-event-stream-is-not-a-usable-system"><a href="#Proposition-C-the-basic-unit-is-an-event-sequence-but-an-event-stream-is-not-a-usable-system" class="headerlink" title="Proposition C: the basic unit is an event sequence, but an event stream is not a usable system"></a>Proposition C: the basic unit is an event sequence, but an event stream is not a usable system</h4><p>Modeling the Raw Ledger as an event sequence is reasonable, because every audit property in the protocol depends on an event closure.</p><p><img src="/img/ai-memory-system-architecture/06.png" alt="Ledger event fields including scope, timestamps, actions, and feedback" loading="lazy" decoding="async"></p><p>A general ledger event should include at least:</p><ul><li><strong>Scope</strong> — which user, session, and task the event belongs to</li><li><strong>Timestamp</strong> — when it happened</li><li><strong>Input observation</strong> — messages or environment-state fragments at that moment</li><li><strong>System action</strong> — external outputs and Memory-tool actions</li><li><strong>Memory change</strong> — <code>ADD</code> &#x2F; <code>UPDATE</code> &#x2F; <code>DELETE</code> &#x2F; <code>NONE</code></li><li><strong>Feedback signal</strong> (optional) — reward, user rating, task success or failure</li><li><strong>Decision metadata</strong> (optional) — <code>candidate_set</code>, provenance of hits, early-stop thresholds, and so on</li></ul><p>The event sequence is the source of truth, but <strong>it is too low-level</strong>. If you store only events, you get auditable history rather than usable memory. Views turn history into capability through reorganization, compression, indexing, temporal modeling, and skill extraction; policy determines when to use each view and how to update it.</p><p>In other words: <strong>events are the data form of the Ledger; views and policy are the capability form.</strong></p><h3 id="Why-Raw-Ledger-Views-Policy-is-the-natural-solution"><a href="#Why-Raw-Ledger-Views-Policy-is-the-natural-solution" class="headerlink" title="Why Raw Ledger + Views + Policy is the natural solution"></a>Why Raw Ledger + Views + Policy is the natural solution</h3><p>The three propositions complete a clearer chain:</p><ol><li><strong>Memory needs event and action sequences as first-class objects.</strong> Without them, provenance and replay are impossible.</li><li><strong>A single event stream is not usable.</strong> Reasoning needs dense information, indexes, temporal structure, and skills — all of which require views.</li><li><strong>Views cannot generate themselves coherently.</strong> They are derived state, and derivation means approximation and conflict. Policy must decide write &#x2F; update &#x2F; retrieve &#x2F; evict, and the decision process itself must be recorded, or the system cannot be governed or A&#x2F;B tested.</li></ol><p><img src="/img/ai-memory-system-architecture/07.png" alt="Closed Memory loop from Raw Ledger through Views, Policy, Commit, and Provenance" loading="lazy" decoding="async"></p><p><strong>Memory is therefore not a component but a closed-loop system:</strong> Raw Ledger (authority) → Views (usability) → Policy (control) → Commit (write-back) → Provenance (replay).</p><h2 id="2-Designing-System-1-System-2"><a href="#2-Designing-System-1-System-2" class="headerlink" title="2. Designing System 1 + System 2"></a>2. Designing System 1 + System 2</h2><p><img src="/img/ai-memory-system-architecture/08.png" alt="System 1 fast Agent paired with a slower System 2 memory loop" loading="lazy" decoding="async"></p><h3 id="Why-System-2-must-be-non-empty"><a href="#Why-System-2-must-be-non-empty" class="headerlink" title="Why System 2 must be non-empty"></a>Why System 2 must be non-empty</h3><p>The names come from cognitive science. This article borrows the labels and does not reopen the psychology debate.</p><p><strong>System 1 is the fast, general-purpose agent</strong>—the large model plus tools that we usually encounter. It understands the question, plans, writes code, searches, and generates an answer.</p><p><strong>System 2 is the slower external memory loop.</strong> It stores, retrieves, updates, compresses, and forgets. It resembles a kernel and a set of background services, remaining behind the scenes most of the time. Without it, every restart feels like a fresh installation.</p><p><img src="/img/ai-memory-system-architecture/09.png" alt="Diagram contrasting a fast System 1 Agent with a background System 2 memory service" loading="lazy" decoding="async"></p><p>If System 2 does not act, memory can only be baked into System 1 (LLM weights) by methods such as RL post-training. In that setting it is hard to keep general capability after memory-specialized training. A non-empty System 2 therefore has to own write, retrieve, and update, and to make those decisions observable and replayable.</p><p>Memory capabilities and the LLM’s other agent capabilities are also <em>relatively</em> orthogonal. You can trade away a small amount of the memory system’s theoretical ceiling and gain considerably more: System 1 performance remains intact, memory becomes pluggable and portable, and attribution becomes easier.</p><p><img src="/img/ai-memory-system-architecture/10.png" alt="Note that memory ability is relatively orthogonal to general Agent capability" loading="lazy" decoding="async"></p><p>As an informal biological analogy, teaching an agent to use an external system is closer to how humans expand their capabilities than encoding everything in LLM weights. People extend their abilities quickly by using tools.</p><h3 id="What-“relatively-orthogonal”-means-here"><a href="#What-“relatively-orthogonal”-means-here" class="headerlink" title="What “relatively orthogonal” means here"></a>What “relatively orthogonal” means here</h3><p>It does not mean strict independence. It means you can split the system into two loosely coupled modules—System 1’s general agent capabilities and System 2’s memory reading, writing, and retrieval—and optimize them separately without frequent large-scale interference or collapse.</p><p>Empirically, the same base model, without memory-specific training, can change long-horizon performance a lot when you plug in different RAG or long-term memory policies. The same memory infrastructure (<code>raw_ledger</code> + views + retrieval policy) can often serve many base models. Cross-model reuse usually means the capability lives in interfaces and external state, not in one particular weight file.</p><p>The non-orthogonal boundary is real: retrieval noise, misses, and temporal conflicts disrupt reasoning and cause hallucinations. Decisions about when and how much to retrieve, as well as when to write, also depend on the agent’s self-evaluation and planning. A more accurate phrase is “relatively orthogonal, with controllable cross terms.” Observability, provenance, and sandboxed A&#x2F;B testing in System 2 make those cross terms explicit, diagnosable, and open to iteration.</p><p><img src="/img/ai-memory-system-architecture/11.png" alt="Boundary cases where retrieval noise and policy still couple System 1 and System 2" loading="lazy" decoding="async"></p><p>Given that trade-off, System 2 is required (and must not be empty). Once it exists, memory update and recall can be studied independently of the LLM (System 1). The next question is how to model System 2 with one theory. <strong>Agentic Memory (AgeMem [1])</strong> is a useful starting point: it is an independent system whose essence is an actively controlled loop.</p><p>That is enough to sketch System 2:</p><p><img src="/img/ai-memory-system-architecture/12.png" alt="Sketch of a non-empty System 2 with an active memory control loop" loading="lazy" decoding="async"></p><p>With the System 1 + System 2 split in place, the core question becomes: <em>how good can a non-parametric System 2 get?</em> That leads to parametric versus non-parametric memory, and to an analysis of the non-parametric ceiling.</p><h3 id="Approximating-parametric-Memory-without-writing-weights"><a href="#Approximating-parametric-Memory-without-writing-weights" class="headerlink" title="Approximating parametric Memory without writing weights"></a>Approximating parametric Memory without writing weights</h3><h4 id="Parametric-and-non-parametric-two-carriers-of-online-adaptation"><a href="#Parametric-and-non-parametric-two-carriers-of-online-adaptation" class="headerlink" title="Parametric and non-parametric: two carriers of online adaptation"></a>Parametric and non-parametric: two carriers of online adaptation</h4><p>Treat what has been learned as information that can influence the output distribution. There are two classic carriers:</p><ul><li><strong>Parametric memory.</strong> Experience is written into model weights. Training &#x2F; fine-tuning compiles history into those weights. At inference time you just use the updated model; no extra retrieval is required.</li><li><strong>Non-parametric memory.</strong> Experience lives in external state (ledger + views + skill pool + indexes). Policy decides what to write and how; inference lets that state affect output through retrieve &#x2F; aggregate &#x2F; inject.</li></ul><p>The difference is not whether storage exists, but <strong>where the adaptation operator is written</strong>. Parametric memory pays the write cost up front during training. Non-parametric memory spreads it across online commits and inference-time retrieval and injection.</p><p><img src="/img/ai-memory-system-architecture/13.png" alt="Comparison of parametric weight writes versus non-parametric external-state writes" loading="lazy" decoding="async"></p><p>The purpose of System 2 is to move online adaptation from model weights to external memory state and control policy, making the process observable, replayable, and suitable for A&#x2F;B testing.</p><p><img src="/img/ai-memory-system-architecture/14.png" alt="Moving online adaptation from model weights onto external memory and policy" loading="lazy" decoding="async"></p><h4 id="How-memory-modulates-decisions-the-correction-term-Δ"><a href="#How-memory-modulates-decisions-the-correction-term-Δ" class="headerlink" title="How memory modulates decisions: the correction term Δ"></a>How memory modulates decisions: the correction term Δ</h4><p>If one LLM or agent step is expressed as logits (or an action distribution), the most general way for memory to affect the decision is for <strong>external memory to apply a controllable correction, Δ</strong>. System 1’s weights provide baseline generality, while Δ comes from external memory and supports personalization, task specialization, temporal correction, and the reuse of experience.</p><p><img src="/img/ai-memory-system-architecture/15.png" alt="Memory applying a controllable correction term Delta to model logits" loading="lazy" decoding="async"></p><p>In plain language:</p><blockquote><p>New action tendency &#x3D; the model’s original judgment + the memory correction Δ</p></blockquote><p>Δ is simply a correction. Think of it as an external, controllable bias: it does not change the weights, but it does change the decision distribution. If Shin-chan has said that he hates green peppers, a dining agent should push “stir-fried pork with peppers” to the bottom of the candidate list. If previous deployment logs show that a command destroys data, the system should lower its priority.</p><p>That is also why policy must take the form of explicit tool operations. If the source of Δ is unauditable—for example, if it is implicit in a prompt—the system cannot support provenance, rollback, or sandboxing. The protocol therefore makes the source of Δ explicit through retrieved evidence, candidate sets, and write actions.</p><h4 id="JitRL-2-and-UMEM-3-how-external-experience-transfers"><a href="#JitRL-2-and-UMEM-3-how-external-experience-transfers" class="headerlink" title="JitRL [2] and UMEM [3]: how external experience transfers"></a>JitRL [2] and UMEM [3]: how external experience transfers</h4><p><img src="/img/ai-memory-system-architecture/16.png" alt="External experience retrieval adjusting action priority without retraining" loading="lazy" decoding="async"></p><p>Can an agent use past successes and failures at decision time without retraining the model? One line of research retrieves similar trajectories before each action, uses past outcomes to estimate whether the current action is worth taking, and then adjusts its priority. After the task, the new trajectory and result are written back to the experience store. <strong>JitRL</strong> is representative of this approach.</p><p>RL is reinforcement learning: act, look at the result, adjust the next choice. The method does not have to change model parameters. An external experience store can participate and try to approximate the effect of a just-in-time fine-tune.</p><p>Finding one similar case is not enough. Today you remember “this error means check the connection pool.” Tomorrow the error text changes a few words and the system no longer recognizes it.</p><p>The harder problem is enabling one experience to help with an entire <em>class</em> of problems. Some research builds neighborhoods based on semantic similarity, groups related questions, and estimates how much a memory helps the whole neighborhood. What the system retains is not merely the answer to one item, but potentially a general principle for a class of failures. <strong>UMEM</strong> studies that problem.</p><p>“Semantically similar” means the wording differs but the meaning is close. Vector retrieval represents that meaning as a list of numbers and compares distances. You do not need the formula; you only need to know that “cannot connect to the database” and “the service cannot establish a connection” get a chance to be treated as relatives.</p><h4 id="What-sets-the-ceiling-of-non-parametric-Memory"><a href="#What-sets-the-ceiling-of-non-parametric-Memory" class="headerlink" title="What sets the ceiling of non-parametric Memory"></a>What sets the ceiling of non-parametric Memory</h4><p>Storing a hundred million records does not mean the agent can use them all for the task at hand. The goal of non-parametric memory is to approximate the effect of effective fine-tuning on a decision, not to maximize disk capacity.</p><p><img src="/img/ai-memory-system-architecture/17.png" alt="Three bottlenecks that cap non-parametric Memory effectiveness" loading="lazy" decoding="async"></p><h5 id="1-Interface-bandwidth-how-much-Memory-can-inject-into-System-1"><a href="#1-Interface-bandwidth-how-much-Memory-can-inject-into-System-1" class="headerlink" title="1. Interface bandwidth (how much Memory can inject into System 1)"></a>1. Interface bandwidth (how much Memory can inject into System 1)</h5><p>Whether the payload is a passage, a graph, a skill, or a tool description, it eventually has to reach System 1 through some <strong>Context Bridge</strong>.</p><p>The simplest bridge is “paste into the prompt.” A more aggressive one is latent &#x2F; KV injection (the integration layer later). Either way, bandwidth is finite: token budget, attention capacity, or injected KV length.</p><p>In other words, the injection channel has a budget. How much consumable evidence or representation you can stuff into System 1 is bounded by tokens, latency, GPU memory, and attention length. A huge external store does not help if each step can only inject a little effective information. Consolidation &#x2F; compression, hierarchical memory, and latent tokens are all attempts to raise information density per unit of budget.</p><h5 id="2-Retrieval-and-aggregation-error"><a href="#2-Retrieval-and-aggregation-error" class="headerlink" title="2. Retrieval and aggregation error"></a>2. Retrieval and aggregation error</h5><p>Views are approximate structures derived from the Raw Ledger — built by indexing, consolidation, temporalization, and skill extraction, then turned into a result by recall, rerank, aggregation, and early stop.</p><p>Unless you dump the entire ledger into the model, views are approximations. Approximation produces false hits, misses, temporal conflicts, and semantic drift, all of which pollute Δ. Retrieval noise breaks reasoning directly. The ceiling therefore depends less on “how much you stored” and more on whether view error is governed: observable, attributable, and replayable, so you can iterate the error down.</p><h5 id="3-Learning-and-control-of-Policy"><a href="#3-Learning-and-control-of-Policy" class="headerlink" title="3. Learning and control of Policy"></a>3. Learning and control of Policy</h5><p>Whether reads and writes are trustworthy. Store too much and you pollute; store too little and you learn nothing. Recall too much and you crowd out context; recall too little and you lack evidence. Delete one long-term preference by mistake and personalization drifts from then on.</p><p>The Memory Algorithm Protocol constrains policy output to an action sequence. <code>UPDATE</code> and <code>DELETE</code> must be limited to a candidate set, and recall must carry provenance. Policy receives the current input, retrieval results, and memory state; it then emits actions that Commit persists.</p><p>The real ceiling bottleneck of non-parametric Memory is often not the storage backend. It is policy:</p><ul><li>Write too much and you pollute; write too little and you do not learn.</li><li>Recall too much and you get noise; recall too little and you lack information.</li><li>One bad <code>UPDATE</code> &#x2F; <code>DELETE</code> snowballs over the long run.</li></ul><p>Policy must therefore be both learnable through an RL-style training paradigm and governable through candidate-set constraints, complete provenance, and sandboxed replay-based A&#x2F;B testing. A rubric-based policy is not sustainable; the control loop must become an explicit, trainable object.</p><h2 id="3-Designing-the-core-Memory-modules"><a href="#3-Designing-the-core-Memory-modules" class="headerlink" title="3. Designing the core Memory modules"></a>3. Designing the core Memory modules</h2><p><img src="/img/ai-memory-system-architecture/18.png" alt="Overview of core Memory modules around policy, units, skills, and integration" loading="lazy" decoding="async"></p><h3 id="The-Memory-System-control-policy-layer"><a href="#The-Memory-System-control-policy-layer" class="headerlink" title="The Memory System control &#x2F; policy layer"></a>The Memory System control &#x2F; policy layer</h3><p>The first assumption to challenge is the traditional engineering preference for a <strong>rubric-based policy</strong>—predefined rules that control memory reads, writes, and updates. A model must perform this role. There are two options: train an external neural network, or use prompting, supervised fine-tuning (SFT), or reinforcement learning (RL) with a language model. Either way, the model must treat memory operations as tools: it should actively control reads, writes, and updates rather than passively receiving context.</p><p>The first option is difficult and remains largely exploratory in academic research. If every parametric problem is answered with “train another network,” you must identify and successfully apply the right training method for each problem. That approach does not scale. GRPO, at least, is a broadly adopted training method and is much simpler than inventing a new network from scratch.</p><p>We therefore take the second approach and pursue <strong>Agentic Memory</strong>: memory operations become tools within the agent’s action space. This is a key step toward the parametric ceiling because the model controls memory as directly as it controls an arm. The trainable parameters remain in the underlying LLM agent. This choice is deliberate: we continue to rely on an LLM’s ability to generalize and transfer knowledge, while LLMs themselves are improving rapidly.</p><table><thead><tr><th>Memory class</th><th>Operation</th><th>What it does</th><th>Parametric analogue</th></tr></thead><tbody><tr><td>Long-term memory (LTM)</td><td>ADD</td><td>Store new knowledge</td><td>Gradient update (training)</td></tr><tr><td>Long-term memory (LTM)</td><td>UPDATE</td><td>Correct old knowledge</td><td>Weight adjustment (fine-tuning)</td></tr><tr><td>Long-term memory (LTM)</td><td>DELETE</td><td>Remove stale information</td><td>Catastrophic-forgetting management &#x2F; pruning</td></tr><tr><td>Short-term memory (STM)</td><td>RETRIEVE</td><td>Semantic search and inject</td><td>Activate related neurons</td></tr><tr><td>Short-term memory (STM)</td><td>SUMMARY</td><td>Compress conversation history</td><td>Form an abstract representation</td></tr><tr><td>Short-term memory (STM)</td><td>FILTER</td><td>Drop irrelevant context</td><td>Attention masking</td></tr></tbody></table><p><img src="/img/ai-memory-system-architecture/19.png" alt="Table mapping memory tool operations to parametric-model analogues" loading="lazy" decoding="async"></p><p><strong>A few 2026 parametric-memory papers are worth listing.</strong></p><h4 id="AgeMem-RL-training"><a href="#AgeMem-RL-training" class="headerlink" title="AgeMem RL training"></a>AgeMem RL training</h4><p>When an agent must handle long-term memory and immediate context at the same time, it rarely uses the full toolset effectively from the outset. One training approach is to separate the skills and then introduce them gradually in increasingly difficult tasks. AgeMem uses this form of staged reinforcement learning.</p><p>Stage one trains long-term memory: in everyday dialogue, the agent decides what is worth adding and what constitutes a correction. Stage two trains short-term memory management: the system injects distractors so the agent learns to filter and summarize. Only in stage three does the agent combine long-term retrieval and short-term housekeeping in complex tasks.</p><p>The sequence resembles employee onboarding: first learn to file documents, then learn to organize the desk, and only then join a real project. If the first day requires serving customers, managing files, writing retrospectives, and fixing production incidents all at once, the likely result is exhaustion and little learning.</p><h4 id="InfMem-4-the-PreThink-Retrieve-Write-protocol"><a href="#InfMem-4-the-PreThink-Retrieve-Write-protocol" class="headerlink" title="InfMem [4]: the PreThink-Retrieve-Write protocol"></a>InfMem [4]: the PreThink-Retrieve-Write protocol</h4><p>In addition to tool-based training, System 2’s active control loop can implement a more refined retrieval policy. InfMem addresses the “lost in the middle” problem in long-document reasoning with a PreThink-Retrieve-Write protocol that explicitly simulates slow thinking. It works as follows:</p><ul><li><strong>PreThink.</strong> Before retrieval, the agent estimates whether its internal parametric knowledge is already sufficient. This reduces unnecessary external retrieval and latency.</li><li><strong>Adaptive early stopping.</strong> Classic RAG retrieves a fixed Top-K. InfMem trains a policy network that stops as soon as accumulated evidence confidence crosses a threshold. The paper reports a <strong>3.9×</strong> speedup, much closer to the instant response of a parametric model.</li><li><strong>Training paradigm (SFT-to-RL).</strong> InfMem moves from supervised fine-tuning to reinforcement learning and directly optimizes retrieve and memory-update decisions so every external interaction maximizes final-answer accuracy.</li></ul><p><img src="/img/ai-memory-system-architecture/20.png" alt="InfMem PreThink-Retrieve-Write protocol with adaptive early stopping" loading="lazy" decoding="async"></p><p>Policy decides what to write and read. What the system <em>can</em> write depends on the structure and compression of the memory unit itself.</p><p>That is the next design problem.</p><h3 id="Structure-time-and-compression-of-memory-units"><a href="#Structure-time-and-compression-of-memory-units" class="headerlink" title="Structure, time, and compression of memory units"></a>Structure, time, and compression of memory units</h3><p>We have chosen an Agentic Memory design and a rough shape for System 2. We still need the structure, temporality, and compression of the memory unit.</p><p><strong>SimpleMem [5]</strong> attacks “context inflation” in long interaction with a mechanism inspired by biological consolidation.</p><p>SimpleMem does not store raw text. It stores compressed memory units and defines an affinity score between them, where the score is computed from the embedding vectors of those units.</p><p>Using that score, SimpleMem asynchronously runs <strong>recursive consolidation</strong> in the background and merges high-affinity units into higher-level abstractions. The process resembles hierarchical abstraction in parametric training: concrete samples are refined, layer by layer, into more general features, raising storage efficiency without throwing away the key information.</p><p>SimpleMem reports that on its long-horizon multi-turn dialogue tasks it beat a full-context model at a much lower token cost, which suggests consolidation is doing real work. (The exact ratio was lost in the source conversion.)</p><p>A major weakness of parametric memory is its <strong>static worldview</strong>. Once training is complete, weights tend to remain fixed and cannot naturally represent facts that change over time. LLMs are also relatively insensitive to time, so the real world and the world represented in memory fall out of sync. <strong>Zep [6]</strong> and its engine <strong>Graphiti [7]</strong> introduce a temporal knowledge graph (TKG) to mitigate this problem.</p><p>Zep annotates graph edges with temporal validity. “Biden is President of the United States” is no longer a static fact; it carries a validity window that distinguishes “was true” from “is true now.” (The concrete interval was lost in the source conversion.)</p><p>At retrieval time, Zep synthesizes a “now” truth graph from the query’s temporal context. Intuitively, this lets a Memory OS approximate a parametric model after unlearning: it can separate historical facts from current facts. The paper reports an <strong>18.5%</strong> accuracy gain over traditional RAG on its long-horizon memory evaluation.</p><p><img src="/img/ai-memory-system-architecture/21.png" alt="Temporal knowledge graph edges carrying validity windows for changing facts" loading="lazy" decoding="async"></p><blockquote><p>A shorter restatement of the denser material above:</p><p>Full dialogue is the most complete and the most expensive. A tiny summary is cheap, but details and sources may vanish with it. A long-lived system must keep both raw evidence and high-density abstraction.</p><p>The longer an interaction continues, the more easily its context becomes bloated. One response is to compress history into memory units, then recursively merge related content in the background based on semantic affinity until a higher level of abstraction emerges. That is the approach taken by SimpleMem.</p><p>Think of photo management. The bottom layer keeps the originals; above it are trip albums and then a year in review. You begin with the overview and return to the originals only when you need to know who said what on a particular day. More compression is not always better. A summary must retain a pointer to its source so the system can verify it when compression introduces an error.</p></blockquote><h4 id="Temporal-memory-from-“what-happened”-to-“when-it-was-true-and-when-it-was-believed”"><a href="#Temporal-memory-from-“what-happened”-to-“when-it-was-true-and-when-it-was-believed”" class="headerlink" title="Temporal memory: from “what happened” to “when it was true, and when it was believed”"></a>Temporal memory: from “what happened” to “when it was true, and when it was believed”</h4><p>“Biden is President of the United States” may have been fine in 2024 and wrong in 2026. Semantic similarity knows two sentences talk about the same thing. It does not automatically decide which one is valid now.</p><p>In the Memory OS triple <strong>(Raw Ledger, Views, Policy)</strong>, time is not an extra field. It changes the semantic boundary of all three layers:</p><ul><li><strong>Raw Ledger.</strong> Append-only records of “what write action happened.” After you add time, the ledger must answer both “when the system wrote or corrected” (transaction time) and “when the fact was true in the world” (valid time). They are not the same: you can correct last week’s fact today.</li><li><strong>Views.</strong> Retrieval is not “relevant is enough.” It is “holds in this query’s time context.” Without a time slice, semantic search treats old facts as current facts.</li><li><strong>Policy.</strong> The default <code>time_scope=current</code> means “prefer a miss over a wrong hit.” That only works if policy can explicitly trigger <code>historical</code> &#x2F; <code>all</code> when history is needed, and if the EvidencePack can carry coexisting conflicting evidence so System 1 decides — Memory OS should not privately adjudicate.</li></ul><p><img src="/img/ai-memory-system-architecture/22.png" alt="Bi-temporal ledger and time-sliced recall across Ledger, Views, and Policy" loading="lazy" decoding="async"></p><p>Why time has to sit in the architectural skeleton:</p><ol><li>LLMs are naturally weak at time (especially implicit time, relative time, and time zones).</li><li>Pure semantic retrieval mistakes a highly similar past fact for a fact that is still true.</li><li>The decision layer then sees “stale facts resurrected” and “corrected facts recalled again and again.”</li><li>The solution is not a stronger prompt. It is <strong>bitemporal, time-sliced recall</strong>, which makes “when it was true” a hard constraint on retrieval and aggregation while keeping policy controllable and replayable.</li></ol><h4 id="Hierarchical-memory-the-same-history-needs-different-abstractions"><a href="#Hierarchical-memory-the-same-history-needs-different-abstractions" class="headerlink" title="Hierarchical memory: the same history needs different abstractions"></a>Hierarchical memory: the same history needs different abstractions</h4><p>One storage shape rarely serves relational reasoning, experience transfer, and evidence checking at once. To give each task a suitable form, you can split memory into graph memory, experience memory, and episodic memory. <strong>MemWeaver [8]</strong> is a representative of this layered approach.</p><p>Graph memory stores entity relations and answers who is related to whom. Experience memory abstracts handling patterns from many interactions and helps on similar problems. Episodic memory keeps the original text for checking and provenance.</p><p>It is like keeping an architecture diagram, a retrospective, and the meeting transcript for the same project. They come from one history and serve different questions. Keeping only one form may look tidy and work poorly.</p><p>So far, the “memory unit” has mostly been declarative memory (facts &#x2F; evidence &#x2F; relations): it answers “what is it &#x2F; what happened.” The next move is from “what to store” to “how to do it” — procedural memory.</p><h3 id="The-procedural-layer-from-knowledge-to-skill"><a href="#The-procedural-layer-from-knowledge-to-skill" class="headerlink" title="The procedural layer: from knowledge to skill"></a>The procedural layer: from knowledge to skill</h3><p>Fact memory answers “what” and “what happened.” Long-horizon tasks also need “what to do next.”</p><p>If an agent successfully migrates a database but retains only a chat excerpt, it must still plan, retry, and verify everything again the next time. Procedural memory stores a reusable process, much like an executable in an operating system: the conditions under which it starts, the sequence of actions it performs, and the conditions under which it is complete.</p><p>Research is already exploring how agents can learn reusable skills from repeated attempts without drifting into incoherent behavior. A skill can be described as a Skill-MDP: when to start, which actions to perform, and when to stop. <strong>ProcMEM [9]</strong> is one example.</p><p>A skill contains a trigger, an action sequence, and a termination condition. The system first reviews success and failure trajectories and uses natural language to analyze what should change. That is called a semantic gradient. Model parameters do not change; the revision is written onto the skill text.</p><p>Candidate skills do not enter production as soon as they are written. ProcMEM uses PPO-style gating as a counterfactual check: does the new skill favor historically effective actions without diverging too far from the old skill? PPO is a common RL algorithm; the idea borrowed here is to make incremental changes rather than abruptly adopting entirely different behavior.</p><p>After a skill is deployed, its real-world returns must still be monitored. Skills that contribute nothing for a long time are retired; semantically duplicate skills are merged; and skills that have not been validated since the environment changed are tested again. Collecting a hundred “efficient work methods” is not procedural memory. A skill must execute at the right moment and demonstrate its value through results.</p><p><img src="/img/ai-memory-system-architecture/23.png" alt="Procedural skill layer with trigger, actions, termination, and gated updates" loading="lazy" decoding="async"></p><h3 id="The-integration-layer-latent-fusion-and-zero-shot-alignment-Memory-Tokens"><a href="#The-integration-layer-latent-fusion-and-zero-shot-alignment-Memory-Tokens" class="headerlink" title="The integration layer: latent fusion and zero-shot alignment (Memory Tokens)"></a>The integration layer: latent fusion and zero-shot alignment (Memory Tokens)</h3><p>Text, graphs, temporal edges, and skills all have to enter the large model. The common method is to turn them into text, paste them into context, and let the model encode them again. It is readable. It also burns tokens and time.</p><p>Memory Tokens explore another route. A token is the model’s basic unit of processing; a Memory Token tries to compress external memory into something closer to the model’s internal representation, so there is less translation back and forth.</p><p><img src="/img/ai-memory-system-architecture/24.png" alt="Memory Tokens compressing external memory toward the model&#39;s internal representation" loading="lazy" decoding="async"></p><h4 id="LycheeMemory-10-latent-compression-and-KV-cache-injection"><a href="#LycheeMemory-10-latent-compression-and-KV-cache-injection" class="headerlink" title="LycheeMemory [10]: latent compression and KV-cache injection"></a>LycheeMemory [10]: latent compression and KV-cache injection</h4><p>Re-encoding external text on every call costs compute and GPU memory. Some work trains a compressor that turns content into latent tokens and injects them into attention in a form close to the KV-cache. LycheeMemory explores that latent-compression route.</p><p>The KV cache stores intermediate results during inference so the model does not recompute everything from scratch for each new token. Representing memory in a similar form can reduce text encoding and decoding overhead.</p><p><img src="/img/ai-memory-system-architecture/25.png" alt="LycheeMemory latent tokens injected into attention like a KV-cache" loading="lazy" decoding="async"></p><p>The trade-off is equally clear: latent memory becomes increasingly difficult for people to interpret. If a latent representation contributes to an incorrect answer, the system must still provide access to the original evidence. Otherwise, the on-call engineer is left with an elegant sequence of numbers that offers no explanation.</p><h4 id="MemAdapter-11-an-aligner-for-heterogeneous-memory"><a href="#MemAdapter-11-an-aligner-for-heterogeneous-memory" class="headerlink" title="MemAdapter [11]: an aligner for heterogeneous memory"></a>MemAdapter [11]: an aligner for heterogeneous memory</h4><p>Text, graphs, and skills each have their own representation. The same model may not read them directly. One idea is to take a query-relevant local subgraph, then align that structured information into the model’s semantic space, so you can fuse heterogeneous memory without fine-tuning the main model. MemAdapter studies this kind of zero-shot alignment.</p><p>An adapter is like a travel plug: making it fit is only the first step. Voltage compatibility and the ability to locate a faulty connection still matter. The alignment layer needs source tracking, rollback, and sandboxed comparison. A sandbox is an isolated environment where several policies can run the same tasks without modifying production memory.</p><p><img src="/img/ai-memory-system-architecture/26.png" alt="MemAdapter aligning heterogeneous graph, text, and skill memory into one space" loading="lazy" decoding="async"></p><h4 id="Control-and-governance-that-Memory-Tokens-often-skip"><a href="#Control-and-governance-that-Memory-Tokens-often-skip" class="headerlink" title="Control and governance that Memory Tokens often skip"></a>Control and governance that Memory Tokens often skip</h4><p>Latent injection does not eliminate attention limits. The system must still decide what to inject, how much budget to allocate, and when to stop. Representation, alignment, selection, governance, and provenance must be designed together. Optimizing only for compression sacrifices interpretability without solving the original problem.</p><h3 id="A-summary-of-the-Memory-System-architecture"><a href="#A-summary-of-the-Memory-System-architecture" class="headerlink" title="A summary of the Memory System architecture"></a>A summary of the Memory System architecture</h3><p>That covers a great deal of ground, and the author’s own view of a memory system continued to evolve while writing this article. The discussion uses Linux-inspired terms such as kernel, file system, and executable because a sound architecture should settle on abstractions that <strong>are not tied to one implementation</strong>. These terms describe the modules and interfaces that must exist, not a recipe for assembling a particular product.</p><p><img src="/img/ai-memory-system-architecture/27.png" alt="Five-part Memory OS of kernel, file system, executables, bus, and learning engine" loading="lazy" decoding="async"></p><ul><li><strong>Kernel &#x2F; control plane.</strong> System 2’s slow loop and scheduler. It decides when to retrieve, how much to retrieve, when to write, when to update, and when to forget, and it makes those decisions an explicit, trainable, evaluable policy. (AgeMem and InfMem are useful references for control protocols and training, but the abstraction does not depend on either paper.) One submodule is the planner &#x2F; router — scheduler + syscall dispatcher. It compiles an input &#x2F; query into an executable read&#x2F;write plan (a sequence of Memory “syscalls”): which views to query, how much evidence each view may take, whether closed-loop retrieval is needed and when to stop, which units are worth writing, which view they belong to, and the candidate-set constraints that <code>UPDATE</code> &#x2F; <code>DELETE</code> must cite. The implementation may be a rule-based router, an LLM-as-planner, or a learned controller. In every case the decision should be recordable, replayable, and comparable. Policy must not live only in prose.</li><li><strong>File system &#x2F; storage plane.</strong> A data layer centered on an authoritative Raw Ledger plus derived views. The bottom must carry temporal consistency and conflict resolution (when a fact was true). The top must do semantic compression and layered consolidation (turning many events &#x2F; episodes into higher representations) while always keeping a provenance path. Temporal KGs and recursive consolidation &#x2F; hierarchical memory are useful analogies.</li><li><strong>Executable &#x2F; skill plane.</strong> Experience is consolidated into executable, reusable procedural units (skill &#x2F; macro &#x2F; workflow) so the system reuses “how,” not only “what.” The form of the skill matters less than executability, verifiability, and governability, without which long-term evolution becomes systematic decay.</li><li><strong>Interface &#x2F; context bridge.</strong> The interface between memory and reasoning. It injects external state into the compute core with low overhead, low distortion, and explicit control, and it supports observability and provenance. Some work uses latent tokens &#x2F; memory tokens as the bridge.</li><li><strong>Learning engine &#x2F; online adaptation.</strong> Without frequently updating weights, it continuously turns interaction feedback into useful improvements. This may take the form of advantage modulation during inference, evolution operators in the skill layer, or block-wise optimization of retrieval policy. The key is that learning occurs in external state and policy, keeping the system pluggable, reversible, and suitable for A&#x2F;B testing. JitRL-style advantage modulation is one implementation.</li></ul><h2 id="4-Recap"><a href="#4-Recap" class="headerlink" title="4. Recap"></a>4. Recap</h2><p>Starting from propositions A &#x2F; B &#x2F; C and working through the argument, the core conclusions are:</p><ol><li><strong>Memory is not storage. It is a closed-loop system.</strong> Its essence is Raw Ledger (authority) → Views (usable capability) → Policy (control) → Commit (write-back) → Provenance (replay). Drop any piece and the system is ungovernable, unusable, or unable to iterate.</li><li><strong>System 2 is necessary.</strong> Memory capabilities are relatively orthogonal to those of a general-purpose LLM agent. An externalized System 2 provides pluggability, portability, and attribution, even at the cost of some theoretical performance ceiling.</li><li><strong>The ceiling of non-parametric Memory is set by three bottlenecks:</strong> interface bandwidth (injection capacity), retrieval and aggregation error (view approximation), and the learnability &#x2F; controllability of policy. Policy is the most underestimated of the three.</li><li><strong>Time is a structural dimension of the architecture, not merely metadata.</strong> Bitemporal, time-sliced recall provides the hard constraint that separates “was true” from “is true now.” Do not leave that distinction to the LLM’s self-consistency.</li><li><strong>The five-part architecture</strong>—kernel, file system, executable, bus, and learning engine—is implementation-agnostic. It identifies the modules and interfaces that must exist rather than prescribing how to assemble a particular product.</li></ol><p><img src="/img/ai-memory-system-architecture/28.png" alt="Recap of Memory as a closed loop with System 2 and five architectural planes" loading="lazy" decoding="async"></p><h2 id="5-From-architecture-to-implementation-PowerMem-12"><a href="#5-From-architecture-to-implementation-PowerMem-12" class="headerlink" title="5. From architecture to implementation: PowerMem [12]"></a>5. From architecture to implementation: PowerMem [12]</h2><p>The ledger, kernel, file system, and executable become useful only when they form a runnable, pluggable AI memory system that can continue to accumulate knowledge. The open-source project <strong>PowerMem</strong> (<a href="https://github.com/oceanbase/powermem">https://github.com/oceanbase/powermem</a>) is a practical implementation of this Memory OS. It gives AI agents persistent, self-evolving memory and turns dialogue, actions, and feedback into long-lived state. The abstractions above have concrete counterparts in PowerMem.</p><p><img src="/img/ai-memory-system-architecture/29.png" alt="PowerMem as an open-source implementation of the Memory OS" loading="lazy" decoding="async"></p><h3 id="The-session-ended-The-state-is-still-here"><a href="#The-session-ended-The-state-is-still-here" class="headerlink" title="The session ended. The state is still here"></a>The session ended. The state is still here</h3><p>System 2’s first job is to move long-term state out of the model and beyond a single session. PowerMem provides persistent memory, user profiles, and scope management so memory can be isolated by user and agent, yet shared when needed.</p><p>The model can change, and the session can be reopened. User preferences and task progress do not have to disappear with the context window. In multi-agent collaboration, clear boundaries also define what each agent should remember and what it is allowed to see.</p><p><img src="/img/ai-memory-system-architecture/30.png" alt="PowerMem persistent memory, profiles, and scope surviving across sessions" loading="lazy" decoding="async"></p><h3 id="The-same-history-needs-more-than-one-way-to-look-it-up"><a href="#The-same-history-needs-more-than-one-way-to-look-it-up" class="headerlink" title="The same history needs more than one way to look it up"></a>The same history needs more than one way to look it up</h3><p>Vector search finds nearby meanings. Full-text search finds names and IDs. Graph search finds relations. Recency reminds the system not to ignore what just happened. PowerMem lets these signals join hybrid retrieval — exactly the Views design from earlier.</p><p>If the user asks about “that similar incident last time,” semantic search can help. If they ask for order <code>OB-20260716</code>, keyword search is more reliable. If they ask which project a customer is associated with, a relationship graph is the better tool. Sending every question to a single retrieval method is like remodeling a house with only a screwdriver: earnest, but inefficient.</p><p><img src="/img/ai-memory-system-architecture/31.png" alt="Hybrid retrieval combining vector, full-text, graph, and recency signals" loading="lazy" decoding="async"></p><h3 id="A-memory-store-also-needs-regular-housekeeping"><a href="#A-memory-store-also-needs-regular-housekeeping" class="headerlink" title="A memory store also needs regular housekeeping"></a>A memory store also needs regular housekeeping</h3><p><img src="/img/ai-memory-system-architecture/32.png" alt="Ebbinghaus-style decay and LLM-aided extract, update, and merge in PowerMem" loading="lazy" decoding="async"></p><p>PowerMem uses a large model for memory extraction, update, and merge, and it adjusts priority with an Ebbinghaus-style time decay. The original forgetting curve describes human memory fading with time. What is borrowed here is “the longer something goes unused, the lower its default weight.”</p><p>A new address can replace an old one. A stable preference that appears repeatedly can gain weight. Fragments that have not been used for a long time can recede in priority. The store is no longer a chat archive that only grows; policy-driven lifecycle management begins to take effect.</p><p>Time decay is not crude deletion. Explicitly expired, still valid, and merely unused for a long time are three different states. Validity windows, retraction records, and soft ranking remain the key to long-term governance.</p><h3 id="Retain-experience-then-turn-it-into-something-the-agent-can-do"><a href="#Retain-experience-then-turn-it-into-something-the-agent-can-do" class="headerlink" title="Retain experience, then turn it into something the agent can do"></a>Retain experience, then turn it into something the agent can do</h3><p>PowerMem offers two distillation layers: Experience and Skill. Experience keeps lessons extracted from interaction. Skill turns repeatedly validated lessons into more reusable methods.</p><p><img src="/img/ai-memory-system-architecture/33.png" alt="Experience-to-Skill distillation turning interaction traces into reusable procedures" loading="lazy" decoding="async"></p><p>That is procedural memory. In addition to knowing that the last migration succeeded, the agent should retain the prechecks, steps, and verification procedures from that run. When a similar task appears, history becomes an actionable reference rather than a collection of old chat logs.</p><h3 id="Applications-can-change-without-forcing-memory-to-move"><a href="#Applications-can-change-without-forcing-memory-to-move" class="headerlink" title="Applications can change without forcing memory to move"></a>Applications can change without forcing memory to move</h3><p>The Context Bridge’s worst failure mode is for every application to invent its own private memory format. PowerMem provides a Python SDK, an HTTP service, MCP, and a CLI so chat assistants, developer tools, and agents can access the same backend through different interfaces.</p><p>MCP is the Model Context Protocol, a standard way to provide agents with tools and data sources. A CLI is a command-line interface for terminal use. These interfaces connect applications to the Memory OS while a single backend continues to manage the memory content.</p><p><img src="/img/ai-memory-system-architecture/34.png" alt="PowerMem Python SDK, HTTP, MCP, and CLI sharing one memory backend" loading="lazy" decoding="async"></p><h3 id="Run-it-on-your-laptop-first-then-think-about-a-larger-stage"><a href="#Run-it-on-your-laptop-first-then-think-about-a-larger-stage" class="headerlink" title="Run it on your laptop first, then think about a larger stage"></a>Run it on your laptop first, then think about a larger stage</h3><p>The storage layer leaves room to scale. PowerMem supports OceanBase, embedded seekdb, PostgreSQL, SQLite, and other mainstream databases. Local experiments can begin with a lightweight backend, while long-running services can choose a database designed for high availability. The Memory OS abstractions above do not need to be rebuilt.</p><p>You can evaluate the memory system of a long-running agent by asking a few questions: does state persist after the session ends? Is vector search the only way to retrieve history? Can old facts be updated, and does low-value content recede? Can successful experience become a skill? Can several applications share one memory backend? When a local prototype becomes a long-running service, can its storage scale accordingly?</p><p><img src="/img/ai-memory-system-architecture/35.png" alt="PowerMem storage backends from SQLite and seekdb up to OceanBase" loading="lazy" decoding="async"></p><p>PowerMem already brings these capabilities together in one open-source system. It provides a practical foundation for long-lived assistants, personalized applications, copilots, and multi-agent workflows, as well as a runnable example for understanding a Memory OS. The theory explains why each module exists; running the system shows that these abstractions arise from problems any long-lived agent will eventually encounter.</p><h2 id="Closing"><a href="#Closing" class="headerlink" title="Closing"></a>Closing</h2><p>The next steps for AI memory are worth watching: finer-grained ledger replay and provenance, more natural bitemporal queries, policies that continuously adapt to real feedback, and more efficient latent-memory injection.</p><p>The destination remains some distance away, but the basic structure of kernel, file system, skill plane, bus, and learning engine still applies.</p><p><img src="/img/ai-memory-system-architecture/36.png" alt="Closing diagram of the Memory OS skeleton that still holds as the field evolves" loading="lazy" decoding="async"></p><p>For engineering details, start with the <a href="https://github.com/oceanbase/powermem">PowerMem GitHub repository [13]</a> and the <a href="https://github.com/oceanbase/powermem/blob/main/docs/architecture/overview.md">PowerMem architecture notes [14]</a>. An agent that truly remembers you will not do so because someone wrote “please remember the above.” It will remember because a system like this continues working in the background.</p><h3 id="References"><a href="#References" class="headerlink" title="References"></a>References</h3><p>[1] AgeMem: <a href="https://arxiv.org/abs/2601.01885">https://arxiv.org/abs/2601.01885</a></p><p>[2] JitRL: <a href="https://arxiv.org/abs/2601.18510">https://arxiv.org/abs/2601.18510</a></p><p>[3] UMEM: <a href="https://arxiv.org/abs/2602.10652">https://arxiv.org/abs/2602.10652</a></p><p>[4] InfMem: <a href="https://arxiv.org/abs/2602.02704">https://arxiv.org/abs/2602.02704</a></p><p>[5] SimpleMem: <a href="https://arxiv.org/abs/2601.02553">https://arxiv.org/abs/2601.02553</a></p><p>[6] Zep: <a href="https://arxiv.org/abs/2501.13956">https://arxiv.org/abs/2501.13956</a></p><p>[7] Graphiti: <a href="https://github.com/getzep/graphiti">https://github.com/getzep/graphiti</a></p><p>[8] MemWeaver: <a href="https://arxiv.org/abs/2601.18204">https://arxiv.org/abs/2601.18204</a></p><p>[9] ProcMEM: <a href="https://arxiv.org/abs/2602.01869">https://arxiv.org/abs/2602.01869</a></p><p>[10] LycheeMemory: <a href="https://arxiv.org/abs/2602.08382">https://arxiv.org/abs/2602.08382</a></p><p>[11] MemAdapter: <a href="https://arxiv.org/abs/2602.08369">https://arxiv.org/abs/2602.08369</a></p><p>[12] PowerMem: <a href="https://github.com/oceanbase/powermem">https://github.com/oceanbase/powermem</a></p><p>[13] PowerMem GitHub repository: <a href="https://github.com/oceanbase/powermem">https://github.com/oceanbase/powermem</a></p><p>[14] PowerMem architecture notes: <a href="https://github.com/oceanbase/powermem/blob/main/docs/architecture/overview.md">https://github.com/oceanbase/powermem/blob/main/docs/architecture/overview.md</a></p><p><img src="/img/ai-memory-system-architecture/37.png" alt="End-of-article graphic pointing readers to PowerMem and further reading" loading="lazy" decoding="async"></p><h2 id="Benefits"><a href="#Benefits" class="headerlink" title="Benefits"></a>Benefits</h2><p>Alibaba Cloud Model Studio (Bailian) is offering dedicated model-compute benefits for the community chapters and labs of the DataWhale × OceanBase course <a href="https://github.com/datawhalechina/easy-data-x-ai">Easy Data x AI</a> — this article comes from one of those community chapters.</p><p><img src="/img/ai-memory-system-architecture/38.png" alt="Alibaba Cloud Model Studio benefit banner for the Easy Data x AI course" loading="lazy" decoding="async"></p><p>Course learners and contributors can claim model-compute support on the <a href="https://opc.aliyun.com/oceanbase?utm_content=g_1000415375">Alibaba Cloud × OceanBase benefit page</a> and receive <strong>100 million free tokens</strong> (tested for both new and existing users).</p><p><img src="/img/ai-memory-system-architecture/39.png" alt="Claim page graphic for 100 million free Model Studio tokens" loading="lazy" decoding="async"></p><p>New and existing Bailian users, including both individuals and companies, can also participate in token rebate programs with no minimum threshold. Additional OPC innovation support offers up to the equivalent of RMB 1 million in tokens, along with course-specific subsidies for university students. These benefits are intended to support community contributions and hands-on lab work for the course.</p><p>Course: <a href="https://github.com/datawhalechina/easy-data-x-ai">https://github.com/datawhalechina/easy-data-x-ai</a></p><p>Benefits: <a href="https://opc.aliyun.com/oceanbase?utm_content=g_1000415375">https://opc.aliyun.com/oceanbase?utm_content&#x3D;g_1000415375</a></p><p><img src="/img/ai-memory-system-architecture/40.gif" alt="Animated banner for Alibaba Cloud Model Studio token benefits" loading="lazy" decoding="async"></p><p><img src="/img/ai-memory-system-architecture/41.png" alt="Narrow promotional strip for the Easy Data x AI compute benefit" loading="lazy" decoding="async"></p><h2 id="Previous-articles"><a href="#Previous-articles" class="headerlink" title="Previous articles"></a>Previous articles</h2><p><img src="/img/ai-memory-system-architecture/42.png" alt="Previous-article card recommending an earlier OceanBase AI community post" loading="lazy" decoding="async"></p><p><img src="/img/ai-memory-system-architecture/43.png" alt="Previous-article card recommending a second related community post" loading="lazy" decoding="async"></p><p><img src="/img/ai-memory-system-architecture/44.png" alt="Previous-article card recommending a third related community post" loading="lazy" decoding="async"></p><p><img src="/img/ai-memory-system-architecture/45.png" alt="Previous-article card recommending a fourth related community post" loading="lazy" decoding="async"></p><p><img src="/img/ai-memory-system-architecture/46.png" alt="Previous-article card recommending a fifth related community post" loading="lazy" decoding="async"></p><p><a href="https://mp.weixin.qq.com/s?__biz=Mzk3NTE2NzU5NQ==&mid=2247491299&idx=1&sn=a4f802cf7933d1a928578269b2a5404e&scene=21#wechat_redirect">Learn more</a></p><p>Welcome to join the open-source community Discord.</p><p><img src="/img/discord.png" alt="Welcome to join the open-source community Discord" loading="lazy" decoding="async"></p>]]>
    </content>
    <id>https://longda.us/2026/2026-07-21-ai-memory-system-architecture/</id>
    <link href="https://longda.us/2026/2026-07-21-ai-memory-system-architecture/"/>
    <published>2026-07-20T19:27:24.000Z</published>
    <summary>An architectural view of AI memory as a Memory OS built on a Raw Ledger, Views, and Policy, followed by a practical implementation in PowerMem.</summary>
    <title>Designing AI Memory Systems: Architecture and Engineering Practice</title>
    <updated>2026-07-28T19:27:24.000Z</updated>
  </entry>
  <entry>
    <author>
      <name>Longda Feng</name>
    </author>
    <category term="Enterprise Cases" scheme="https://longda.us/categories/Enterprise-Cases/"/>
    <category term="OceanBase" scheme="https://longda.us/tags/OceanBase/"/>
    <category term="Columnar Storage" scheme="https://longda.us/tags/Columnar-Storage/"/>
    <category term="HTAP" scheme="https://longda.us/tags/HTAP/"/>
    <category term="Database Migration" scheme="https://longda.us/tags/Database-Migration/"/>
    <category term="Dewu" scheme="https://longda.us/tags/Dewu/"/>
    <category term="SQL Hint" scheme="https://longda.us/tags/SQL-Hint/"/>
    <category term="Execution Plan" scheme="https://longda.us/tags/Execution-Plan/"/>
    <category term="Query Tuning" scheme="https://longda.us/tags/Query-Tuning/"/>
    <content>
      <![CDATA[<script type="application/ld+json">{"@context":"https://schema.org","@type":"BlogPosting","headline":"Behind a 200x SQL Speedup: How Dewu Tuned OceanBase Execution Plans and Hints","description":"At Dewu, OceanBase plan-cache reuse, partition pruning, columnar indexes, parallel execution, and Hints cut a complex SQL from 4s to 0.02s—about 200x.","image":"https://longda.us/img/dewu-oceanbase-sql-hint-tuning/01.png","wordCount":2608,"timeRequired":"PT13M","datePublished":"2026-07-14T19:30:43.000Z","dateModified":"2026-07-28T19:30:43.000Z","isAccessibleForFree":true,"author":{"@type":"Person","name":"Longda Feng","url":"https://longda.us"},"publisher":{"@type":"Organization","name":"Longda's Interesting World","logo":{"@type":"ImageObject","url":"https://longda.us/img/my.jpg"}},"mainEntityOfPage":{"@type":"WebPage","@id":"https://longda.us/2026/2026-07-15-dewu-oceanbase-sql-hint-tuning/"},"url":"https://longda.us/2026/2026-07-15-dewu-oceanbase-sql-hint-tuning/","inLanguage":"en","keywords":["OceanBase","Columnar Storage","HTAP","Database Migration","Dewu","SQL Hint","Execution Plan","Query Tuning"],"articleSection":["Enterprise Cases"]}</script><script type="application/ld+json">{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://longda.us/"},{"@type":"ListItem","position":2,"name":"Enterprise Cases","item":"https://longda.us/categories/Enterprise-Cases/"},{"@type":"ListItem","position":3,"name":"Behind a 200x SQL Speedup: How Dewu Tuned OceanBase Execution Plans and Hints","item":"https://longda.us/2026/2026-07-15-dewu-oceanbase-sql-hint-tuning/"}]}</script><p><strong>Dewu</strong> (得物) is a leading global platform that combines authentic fashion e-commerce with a lifestyle community. After evaluating OceanBase as a multimodal database, its DBA team used plan-cache reuse, partition pruning, columnar indexes, parallel execution, and SQL Hints to cut a representative complex query from about 4 seconds to 0.02 seconds—roughly <strong>200x</strong>—and later migrated production MySQL and StarRocks traffic with large cost and latency gains.</p><span id="more"></span><h2 id="Background"><a href="#Background" class="headerlink" title="Background"></a>Background</h2><p>Complex business scenarios and demanding user-experience requirements raise the bar for database selection and operations.</p><p>Dewu’s online database services already span MySQL, TiDB, MongoDB, HBase, DuckDB, ClickHouse &#x2F; StarRocks, and vector databases, supporting core trading, operational analytics, AI algorithms, community, and other workloads.</p><p>A multi-engine estate creates operational complexity, makes technology selection harder for R&amp;D teams, complicates the architecture, and increases resource costs. At the same time, the business continues to raise its expectations for performance, availability, and efficiency. Through ongoing evaluation, OceanBase emerged as a candidate multimodal database—especially the 4.x series, which drew strong interest from both the DBA and R&amp;D teams.</p><h2 id="Why-Dewu-selected-OceanBase-as-a-multimodal-database"><a href="#Why-Dewu-selected-OceanBase-as-a-multimodal-database" class="headerlink" title="Why Dewu selected OceanBase as a multimodal database"></a>Why Dewu selected OceanBase as a multimodal database</h2><p>OceanBase uses the Paxos protocol for strongly consistent replication across multiple replicas. It supports deployment topologies ranging from a single data center to three regions and five data centers, with failover of any replica within seconds, <strong>RPO &#x3D; 0</strong>, and <strong>RTO &lt; 8 seconds</strong>. It also supports multi-active and unitized deployments, including concurrent writes across regions, flexible cross-cloud scaling, and millisecond-level replication latency. As zone-level high availability becomes increasingly important, OceanBase’s multi-active architecture addresses needs ranging from disaster recovery to compliance. Overall, its capabilities align closely with Dewu’s use cases and pain points:</p><p><strong>Flexible architecture:</strong> Integrated standalone and distributed capability lets scattered small MySQL workloads start at minimum scale and grow seamlessly into a distributed cluster. Multi-tenancy allocates resources on demand, so small businesses can be consolidated without a later migration cutover, balancing cost and elasticity.</p><p><strong>Lower cost:</strong> Hierarchical flushing, incremental merge, and two-level compression maintain high write performance while reducing storage costs by more than <strong>40%</strong>, addressing the high storage costs and severe write amplification associated with MySQL-class systems.</p><ul><li><strong>Hierarchical flushing:</strong> In-memory data is flushed through L0 → L1 → L2 SSTables, avoiding memory stalls and sustaining write throughput.</li><li><strong>Incremental merge:</strong> Only modified hot macroblocks are merged; unmodified data is reused, which cuts merge cost and write amplification.</li><li><strong>Two-level compression:</strong> Structured data is first dictionary-encoded with a hybrid row&#x2F;column layout, then compressed again with a general-purpose codec, trading performance against compression ratio and cutting storage cost sharply.</li></ul><p><strong>High availability:</strong> Native multi-active architecture based on Paxos supports second-level failover of any replica, RPO &#x3D; 0, RTO &lt; 8s, and cross-region multi-active writes. That meets strict zone-level HA needs and addresses slow disaster-recovery cutover, weak cross-region consistency, and complex compliance deployments.</p><p><img src="/img/dewu-oceanbase-sql-hint-tuning/01.png" alt="OceanBase multi-active high availability matching Dewu disaster-recovery and compliance needs" decoding="async"></p><p><strong>To meet AP requirements, the team also compared OceanBase with DuckDB, HBase, and similar engines.</strong> While evaluating TP&#x2F;AP workloads and the migration of traffic from MySQL, StarRocks, and related components, OceanBase outperformed DuckDB in four of six tests involving frequently executed production aggregation queries. <strong>JOIN aggregation queries were up to 81.5x faster</strong>, demonstrating the value of the hybrid row-column architecture. DuckDB was slightly faster in purely columnar, large-table filtering scenarios (<strong>1.3x</strong>). The team also ran an early comparison with HBase; results fell short of expectations because of disk type and I&#x2F;O performance. OceanBase ran on the same disks, whose idle I&#x2F;O latency was <strong>2–3 ms</strong>; SSDs and separate disks would likely improve the results. The team plans to track optimizations in later versions and continue working with the community. Detailed validation data follows:</p><p><img src="/img/dewu-oceanbase-sql-hint-tuning/02.png" alt="Dewu OceanBase versus DuckDB JOIN aggregation performance comparison" loading="lazy" decoding="async"></p><p><img src="/img/dewu-oceanbase-sql-hint-tuning/03.png" alt="Dewu OceanBase versus DuckDB large-table filter benchmark results" loading="lazy" decoding="async"></p><p><img src="/img/dewu-oceanbase-sql-hint-tuning/04.png" alt="Dewu OceanBase versus HBase performance comparison on shared disks" loading="lazy" decoding="async"></p><p><img src="/img/dewu-oceanbase-sql-hint-tuning/05.png" alt="Further Dewu OceanBase and HBase IO latency comparison details" loading="lazy" decoding="async"></p><h2 id="Deployment-experience"><a href="#Deployment-experience" class="headerlink" title="Deployment experience"></a>Deployment experience</h2><p>Dewu takes a conservative approach to database selection and sets a high bar for stability. As multi-cloud infrastructure, AI, and vector search became strategic priorities, OceanBase’s advantages in stability, performance, and cost became clearer, prompting broader validation and production rollout.</p><h3 id="DBA-validation"><a href="#DBA-validation" class="headerlink" title="DBA validation"></a>DBA validation</h3><p>Before promoting OceanBase to business teams, DBAs ran detailed stress tests across concurrency levels and row&#x2F;column storage modes. OceanBase showed solid performance.</p><ul><li><strong>High concurrency:</strong> Across read and write modes, OceanBase delivered strong TPS and QPS. At <strong>200</strong> concurrent sessions, a row-store table reached <strong>13,076.91 TPS</strong>, making it suitable for high-concurrency OLTP.</li><li><strong>Efficient reads and writes:</strong> In read-only and write-only modes, both row-store and column-store tables performed well. At a concurrency level of about <strong>100</strong>, OceanBase reached roughly <strong>7,230 TPS</strong>, sufficient for large analytical (OLAP) workloads.</li><li><strong>Resource utilization:</strong> CPU stayed reasonable under load. At <strong>200</strong> concurrency, a row-store table used <strong>63.73%</strong> CPU, showing healthy allocation under pressure and supporting stability.</li><li><strong>Flexible storage engine:</strong> OceanBase supports row store, column store, and hybrid storage, so teams can pick the mode that matches the workload.</li></ul><p><strong>Stress-test results and conclusions:</strong></p><p><img src="/img/dewu-oceanbase-sql-hint-tuning/06.png" alt="OceanBase DBA benchmark of TPS QPS and CPU under mixed storage" loading="lazy" decoding="async"></p><p>Complex queries were a validation focus. The DBA team compared MySQL and OceanBase on aggregation, paginated sort queries, and similar cases. <strong>SQL1</strong> and <strong>SQL2</strong> below summarize SQL-audit execution in a time window and paginated sorted detail, respectively.</p><p><strong>SQL1</strong></p><figure class="highlight sql"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br></pre></td><td class="code"><pre><span class="line"><span class="keyword">SELECT</span> <span class="built_in">COUNT</span>(<span class="keyword">DISTINCT</span> (a.field_A)) <span class="keyword">AS</span> count,</span><br><span class="line">       <span class="built_in">SUM</span>(<span class="keyword">CASE</span> <span class="keyword">WHEN</span> b.`field_B` <span class="keyword">IN</span> (<span class="number">0</span>, <span class="number">1</span>, <span class="number">3</span>, <span class="number">7</span>) <span class="keyword">THEN</span> <span class="number">1</span> <span class="keyword">ELSE</span> <span class="number">0</span> <span class="keyword">END</span>) <span class="keyword">AS</span> `total_cnt`,</span><br><span class="line">       <span class="built_in">SUM</span>(<span class="keyword">CASE</span> <span class="keyword">WHEN</span> b.`field_B` <span class="keyword">IN</span> (<span class="number">0</span>) <span class="keyword">THEN</span> <span class="number">1</span> <span class="keyword">ELSE</span> <span class="number">0</span> <span class="keyword">END</span>) <span class="keyword">AS</span> `todo`,</span><br><span class="line">       <span class="built_in">SUM</span>(<span class="keyword">CASE</span> <span class="keyword">WHEN</span> b.`field_B` <span class="keyword">IN</span> (<span class="number">1</span>, <span class="number">7</span>) <span class="keyword">THEN</span> <span class="number">1</span> <span class="keyword">ELSE</span> <span class="number">0</span> <span class="keyword">END</span>) <span class="keyword">AS</span> `done`,</span><br><span class="line">       <span class="built_in">SUM</span>(<span class="keyword">CASE</span> <span class="keyword">WHEN</span> b.`field_B` <span class="keyword">IN</span> (<span class="number">3</span>) <span class="keyword">THEN</span> <span class="number">1</span> <span class="keyword">ELSE</span> <span class="number">0</span> <span class="keyword">END</span>) <span class="keyword">AS</span> `auto`</span><br><span class="line"><span class="keyword">FROM</span> table_A a</span><br><span class="line"><span class="keyword">JOIN</span> table_B b</span><br><span class="line">  <span class="keyword">ON</span> a.field_A <span class="operator">=</span> b.field_C</span><br><span class="line"> <span class="keyword">AND</span> b.`field_B` <span class="keyword">IN</span> (<span class="number">0</span>, <span class="number">1</span>, <span class="number">3</span>, <span class="number">7</span>)</span><br><span class="line"> <span class="keyword">AND</span> b.create_time <span class="operator">&gt;=</span> &#123;START_TS&#125;</span><br><span class="line"> <span class="keyword">AND</span> b.create_time <span class="operator">&lt;</span> &#123;END_TS&#125;</span><br><span class="line"><span class="keyword">WHERE</span> a.is_deleted <span class="keyword">IN</span> (<span class="number">0</span>)</span><br></pre></td></tr></table></figure><p><strong>SQL2</strong></p><figure class="highlight sql"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br></pre></td><td class="code"><pre><span class="line"><span class="keyword">SELECT</span> a.<span class="operator">*</span>,</span><br><span class="line">       <span class="built_in">SUM</span>(<span class="keyword">CASE</span> <span class="keyword">WHEN</span> b.`field_B` <span class="keyword">IN</span> (<span class="number">0</span>, <span class="number">1</span>, <span class="number">3</span>, <span class="number">7</span>) <span class="keyword">THEN</span> <span class="number">1</span> <span class="keyword">ELSE</span> <span class="number">0</span> <span class="keyword">END</span>) <span class="keyword">AS</span> `totalCount`,</span><br><span class="line">       <span class="built_in">SUM</span>(<span class="keyword">CASE</span> <span class="keyword">WHEN</span> b.`field_B` <span class="keyword">IN</span> (<span class="number">0</span>) <span class="keyword">THEN</span> <span class="number">1</span> <span class="keyword">ELSE</span> <span class="number">0</span> <span class="keyword">END</span>) <span class="keyword">AS</span> `amount`,</span><br><span class="line">       <span class="built_in">SUM</span>(<span class="keyword">CASE</span> <span class="keyword">WHEN</span> b.`field_B` <span class="keyword">IN</span> (<span class="number">1</span>, <span class="number">7</span>) <span class="keyword">THEN</span> <span class="number">1</span> <span class="keyword">ELSE</span> <span class="number">0</span> <span class="keyword">END</span>) <span class="keyword">AS</span> `done`,</span><br><span class="line">       <span class="built_in">SUM</span>(<span class="keyword">CASE</span> <span class="keyword">WHEN</span> b.`field_B` <span class="keyword">IN</span> (<span class="number">3</span>) <span class="keyword">THEN</span> <span class="number">1</span> <span class="keyword">ELSE</span> <span class="number">0</span> <span class="keyword">END</span>) <span class="keyword">AS</span> `auto`,</span><br><span class="line">       <span class="built_in">SUM</span>(IF(b.create_time <span class="operator">&gt;=</span> &#123;START_TS&#125; <span class="keyword">AND</span> b.field_B <span class="operator">=</span> <span class="number">0</span>, <span class="number">1</span>, <span class="number">0</span>)) <span class="keyword">AS</span> amount_current</span><br><span class="line"><span class="keyword">FROM</span> table_A a</span><br><span class="line"><span class="keyword">JOIN</span> table_B b</span><br><span class="line">  <span class="keyword">ON</span> a.field_A <span class="operator">=</span> b.field_C</span><br><span class="line"> <span class="keyword">AND</span> b.`field_B` <span class="keyword">IN</span> (<span class="number">0</span>, <span class="number">1</span>, <span class="number">3</span>, <span class="number">7</span>)</span><br><span class="line"> <span class="keyword">AND</span> b.create_time <span class="operator">&gt;=</span> &#123;START_TS&#125;</span><br><span class="line"> <span class="keyword">AND</span> b.create_time <span class="operator">&lt;</span> &#123;END_TS&#125;</span><br><span class="line"><span class="keyword">WHERE</span> a.is_deleted <span class="keyword">IN</span> (<span class="number">0</span>)</span><br><span class="line"><span class="keyword">GROUP</span> <span class="keyword">BY</span> field_A</span><br><span class="line"><span class="keyword">ORDER</span> <span class="keyword">BY</span> amount <span class="keyword">DESC</span></span><br><span class="line">LIMIT <span class="number">0</span>, <span class="number">10</span></span><br></pre></td></tr></table></figure><p>These are typical complex queries. Even after the MySQL execution plans had been tuned as far as possible, the queries still took <strong>1.3 seconds</strong> and <strong>3.9 seconds</strong>. On OceanBase, the same SQL improved dramatically through a progressive five-part optimization: <strong>SQL2</strong> dropped from <strong>4 seconds</strong> to <strong>0.02 seconds</strong>, an improvement of about <strong>200x</strong>; <strong>SQL1</strong> dropped from <strong>1.3 seconds</strong> to <strong>0.01 seconds</strong>, about <strong>130x</strong>. The figure below illustrates the optimization process:</p><p><img src="/img/dewu-oceanbase-sql-hint-tuning/07.png" alt="Five-step OceanBase SQL optimization path cutting SQL2 from four seconds" loading="lazy" decoding="async"></p><p>OceanBase reduces the cost of complex SQL across the entire execution path—from plan generation, data scanning, and index selection to execution scheduling and algorithm selection—through five capabilities: plan-cache reuse, partition pruning to reduce scans, columnar indexes that overcome leftmost-prefix limitations, multi-core parallel execution, and hints that fix specific algorithms.</p><p><img src="/img/dewu-oceanbase-sql-hint-tuning/08.png" alt="OceanBase plan cache, partition prune, columnar index, parallel, and Hint pipeline" loading="lazy" decoding="async"></p><p>OceanBase also offers a rich set of execution-plan hints, allowing DBAs to <strong>specify an algorithm in SQL and precisely influence plan generation</strong>. These hints are not intended as everyday tuning knobs; they are a fallback when the optimizer makes a poor choice because of a sudden production regression, stale statistics, or complex join predicates. A DBA can correct the plan through hints without restructuring the statement. In the team’s experience, OceanBase provided more direct control over these algorithm choices than the available MySQL mechanisms.</p><p>The figures below are the team’s detailed breakdown of OceanBase SQL plans and SQL Hints.</p><p><img src="/img/dewu-oceanbase-sql-hint-tuning/09.png" alt="OceanBase SQL execution plan breakdown used by the Dewu DBA team" loading="lazy" decoding="async"></p><p><img src="/img/dewu-oceanbase-sql-hint-tuning/10.png" alt="OceanBase SQL Hint catalog for correcting optimizer algorithm choices" loading="lazy" decoding="async"></p><h3 id="Business-PoC"><a href="#Business-PoC" class="headerlink" title="Business PoC"></a>Business PoC</h3><p>Before a broader rollout, the DBA team tested OceanBase on internal AP reporting workloads. SQL performance improved by <strong>10–30x</strong> on average. The reports had previously run on MySQL, where complex queries often took more than <strong>1 second</strong> and some exceeded <strong>30 seconds</strong>, while also causing resource contention and lock waits.</p><p>After the DBA reporting workload moved to OceanBase and used materialized views plus hybrid row&#x2F;column storage, average SQL speed improved <strong>10–30x</strong>. Chaos engineering was used to validate stop-the-bleed actions in failure scenarios and to write operations SOPs, building the confidence to take OceanBase to business teams.</p><h3 id="The-first-business-team-to-adopt-OceanBase"><a href="#The-first-business-team-to-adopt-OceanBase" class="headerlink" title="The first business team to adopt OceanBase"></a>The first business team to adopt OceanBase</h3><p>With that internal practice in hand, the DBAs assessed one business team’s systems. The team ran multiple MySQL clusters totaling about <strong>100 CPU cores</strong> and <strong>TB-scale</strong> storage, with these pain points:</p><ul><li><strong>Mixed TP and AP, frequent CPU alerts:</strong> Few read replicas, plus many complex aggregations that crowded out TP queries and kept CPU in alarm.</li><li><strong>Disk pressure:</strong> Some AI-related MySQL volumes grew quickly, with obvious B+Tree fragmentation; many large tables needed extra free space for DDL, so disk cost was high.</li><li><strong>Poor resource fit:</strong> Many low-QPS instances still wasted capacity even at the smallest SKU.</li><li><strong>Hard operations:</strong> Many empty long transactions and abnormal DML that the usual control plane could not diagnose quickly.</li></ul><p>The DBA team built a full migration plan covering <strong>platform onboarding, capacity planning, architecture, cluster configuration, and change windows</strong>. The overall flow:</p><p><img src="/img/dewu-oceanbase-sql-hint-tuning/11.png" alt="Dewu first business migration flowchart onto an OceanBase cluster" loading="lazy" decoding="async"></p><p>After the move, the database architecture was simpler. Average SQL latency fell <strong>88.3%</strong>, timed-out business APIs went to <strong>zero</strong>, and overall cost dropped <strong>43%</strong>.</p><p>The resulting architecture is simpler: many MySQL instances became <strong>one OceanBase cluster</strong> with multi-tenant isolation. <strong>Three hosts</strong> carry the team’s full workload while preserving high availability and TP&#x2F;AP resource isolation. The cluster runs on cloud ECS across <strong>three OceanBase Zones</strong> in <strong>two availability zones</strong>: two Zones in AZ A handle reads and writes, while one Zone in AZ B is read-only. Each Zone consists of several compute nodes. Spare CPU capacity is reserved so a tenant can be scaled within seconds when CPU usage triggers an alert. The overall architecture is shown below:</p><p><img src="/img/dewu-oceanbase-sql-hint-tuning/12.png" alt="Three-zone OceanBase cluster on cloud ECS across two availability zones" loading="lazy" decoding="async"></p><p><strong>Average SQL latency fell by 88.3%.</strong> API timeouts were eliminated, and performance improved by <strong>8.6x</strong>. Aggregation and range-query response times fell to <strong>less than 1% of their MySQL levels</strong>. On one R&amp;D efficiency platform, average AP SQL latency dropped from <strong>6.87 seconds</strong> to <strong>0.8 seconds</strong>—about <strong>8.6x</strong> faster, representing an <strong>88%</strong> reduction. Details:</p><p><img src="/img/dewu-oceanbase-sql-hint-tuning/13.png" alt="SQL latency drop after Dewu first business migrated to OceanBase" loading="lazy" decoding="async"></p><p><img src="/img/dewu-oceanbase-sql-hint-tuning/14.png" alt="Dewu AP SQL average latency before and after OceanBase migration" loading="lazy" decoding="async"></p><p><strong>Cost fell 43% versus MySQL</strong>, mostly in storage. After the move, compression exceeded <strong>80%</strong>; simple-field cases reached <strong>10:1</strong> or better. On utilization, OceanBase multi-tenant PrimaryZone spreading plus CPU oversubscription raised cluster ECS CPU utilization to <strong>100%</strong>, far above the <strong>50%</strong> typical of MySQL primary&#x2F;standby.</p><h3 id="The-first-major-architecture-overhaul"><a href="#The-first-major-architecture-overhaul" class="headerlink" title="The first major architecture overhaul"></a>The first major architecture overhaul</h3><p>After this initial success, the team looked for the next opportunity. Another business team faced several pressing problems:</p><ul><li><strong>Classic MySQL architecture:</strong> Downstream heterogeneous replicas served B-side operational aggregations.</li><li><strong>Multiple engines:</strong> Operations B-side traffic had all gone to StarRocks; merchant B-side used StarRocks for large campaigns and MySQL for small ones, with sync tools moving data out of MySQL.</li><li><strong>Manual query routing:</strong> The application had to split point lookups from aggregations, and the split was often wrong—aggregations hitting MySQL and hurting the business.</li><li><strong>Large storage:</strong> StarRocks plus MySQL consumed a lot of space; consistency depended on sync tools.</li><li><strong>AP performance still needed work:</strong> Some components had been split to improve queries, but there was more headroom.</li></ul><p>After a full POC, OceanBase addressed the architecture pain: it could take MySQL workloads while beating StarRocks on compression and performance. Working closely with R&amp;D, the team overhauled the stack. StarRocks traffic was partly cut over to OceanBase for POC; operations B-side now runs entirely on OceanBase, with results better than expected.</p><ul><li><strong>Architecture upgrade:</strong> From MySQL + StarRocks dual pipelines plus application-layer routing to OceanBase hybrid row&#x2F;column in one system.</li></ul><p><img src="/img/dewu-oceanbase-sql-hint-tuning/15.png" alt="Architecture upgrade from MySQL plus StarRocks to OceanBase HTAP" loading="lazy" decoding="async"></p><ul><li><strong>No more heterogeneous synchronization:</strong> Delayed data visibility caused by synchronization tools was replaced with real-time access.</li><li><strong>Routing risk removed:</strong> Manual routing at the application layer was eliminated. OceanBase internally routes point lookups and aggregation queries, so routing errors no longer affect the business.</li><li><strong>Storage cost down:</strong> Storage fell from <strong>TB-scale</strong> to <strong>hundreds of GB</strong>—<strong>94%</strong> compression versus MySQL and <strong>30%</strong> versus StarRocks.</li><li><strong>SQL much faster:</strong> OceanBase aggregation and range-query latency averaged <strong>65%</strong> lower than StarRocks (range <strong>10%–90%</strong>) and fell to <strong>under 1%</strong> of MySQL. High-QPS point lookups traded wins with MySQL and beat StarRocks clearly. OceanBase queries are fully real-time; StarRocks had second-level write-to-read delay.</li></ul><p><strong>More migration benefits and comparison data:</strong></p><p><img src="/img/dewu-oceanbase-sql-hint-tuning/16.png" alt="Dewu StarRocks-to-OceanBase POC storage and query benefit summary" loading="lazy" decoding="async"></p><p><img src="/img/dewu-oceanbase-sql-hint-tuning/17.png" alt="OceanBase versus StarRocks and MySQL query latency comparison at Dewu" loading="lazy" decoding="async"></p><p><img src="/img/dewu-oceanbase-sql-hint-tuning/18.png" alt="Point-lookup QPS comparison among OceanBase, MySQL, and StarRocks" loading="lazy" decoding="async"></p><p><img src="/img/dewu-oceanbase-sql-hint-tuning/19.png" alt="Real-time query latency comparison of OceanBase versus StarRocks at Dewu" loading="lazy" decoding="async"></p><h2 id="Deployment-challenges-and-solutions"><a href="#Deployment-challenges-and-solutions" class="headerlink" title="Deployment challenges and solutions"></a>Deployment challenges and solutions</h2><p>Reporting and some TP workloads have already moved to OceanBase. Performance and cost both improved, but the migration hit compatibility and other issues as well.</p><h3 id="Migration-challenges"><a href="#Migration-challenges" class="headerlink" title="Migration challenges"></a>Migration challenges</h3><p>When migrating to OceanBase LTS <strong>4.4.2</strong>, teams must account for differences from MySQL in SQL syntax, isolation levels, and auto-increment behavior, addressing them through application changes or configuration parameters. For performance issues, binding execution plans and refreshing materialized views during off-peak hours resolved AP queries that chose suboptimal plans and materialized-view refreshes that stalled.</p><p>New features require extra care when migrating from MySQL-class systems because they may still be maturing and can have use-case limitations or incompatible combinations. One example in this project was a <strong>conflict between real-time materialized views and DDL</strong>. Introducing a new feature requires strict readiness reviews, monitoring and alerts, and failure drills. Thorough evaluation before go-live helps avoid unnecessary business impact.</p><p>Gaining performance and cost while keeping stability is especially important as OceanBase moves into core, deeper workloads. There is still real work to do and experience to capture.</p><p>Problems encountered during migration included conflicts between real-time materialized views and DDL, incompatible SQL syntax, and tenant connection strings that required escape characters:</p><p><img src="/img/dewu-oceanbase-sql-hint-tuning/20.png" alt="Migration issues including materialized views, DDL, and SQL compatibility" loading="lazy" decoding="async"></p><p><img src="/img/dewu-oceanbase-sql-hint-tuning/21.png" alt="Further OceanBase migration compatibility and connection-string issues" loading="lazy" decoding="async"></p><h3 id="Operations-model-change"><a href="#Operations-model-change" class="headerlink" title="Operations model change"></a>Operations model change</h3><p>Operations shifted from instance-level to <strong>tenant-level plus cluster-level</strong>, with monitoring, backup, and capacity planning adapted to OceanBase’s distributed design. The toolchain moved from cloud MySQL’s “console + data-sync + diagnostics + in-house DBA platform” to OceanBase’s <strong>OCP + OMS + diag + ODC &#x2F; in-house DBA platform</strong>, covering control, migration, diagnosis, and development.</p><p><img src="/img/dewu-oceanbase-sql-hint-tuning/22.png" alt="Dewu ops toolchain shift from cloud MySQL to OCP, OMS, diag, and ODC" loading="lazy" decoding="async"></p><p><img src="/img/dewu-oceanbase-sql-hint-tuning/23.png" alt="OceanBase operations monitoring, backup, and capacity-planning changes" loading="lazy" decoding="async"></p><p>The DBA team also organized an OceanBase knowledge framework:</p><p><img src="/img/dewu-oceanbase-sql-hint-tuning/24.png" alt="Dewu DBA OceanBase knowledge framework covering architecture and tuning" loading="lazy" decoding="async"></p><h3 id="Team-capability"><a href="#Team-capability" class="headerlink" title="Team capability"></a>Team capability</h3><p>Through a three-stage path—<strong>foundational training, hands-on practice, and certification</strong>—the DBA team strengthened its skills across OceanBase architecture and performance tuning. Achieving the <strong>OBCP</strong> certification goal established a systematic body of knowledge and trained dedicated OceanBase operators. Technical talks, project mentoring, and an internal knowledge base complete a <strong>share → practice → document</strong> loop.</p><p><img src="/img/dewu-oceanbase-sql-hint-tuning/25.png" alt="Three-layer OceanBase training, practice, and OBCP certification path" loading="lazy" decoding="async"></p><h2 id="Future-plans-and-architectural-evolution"><a href="#Future-plans-and-architectural-evolution" class="headerlink" title="Future plans and architectural evolution"></a>Future plans and architectural evolution</h2><p>OceanBase will expand into Dewu’s deeper, core workloads, with the goal of improving cost, performance, operational efficiency, AI capabilities, and the data foundation for AI agents.</p><p>The roadmap has three phases: <strong>near term (0.5–1 year)</strong>—strengthen the foundation, technical support, standard operating procedures, and emergency drills; <strong>mid term (1–2 years)</strong>—deploy OBKV and vector search, complete a multi-cloud, multi-AZ architecture, and onboard new core workloads; <strong>long term (2–3 years)</strong>—build a unified multimodal data platform covering <strong>90%</strong> of data scenarios.</p><p><img src="/img/dewu-oceanbase-sql-hint-tuning/26.png" alt="Three-phase Dewu OceanBase roadmap from SOP to a multimodal platform" loading="lazy" decoding="async"></p><p>For AIOps, the team envisions a closed loop spanning anomaly detection, root-cause analysis, capacity forecasting, and automatic tuning, with performance alerts, self-healing, and intelligent resource planning. Using the OceanBase migration as a catalyst, it is targeting four outcomes across cost, agility, innovation, and risk: a <strong>50%</strong> reduction in TCO within three years, business go-live preparation shortened to <strong>one day or less</strong>, support for real-time analytics and personalized recommendations, and recovery within seconds with zero data loss. The team will continue expanding OceanBase adoption and evaluating products such as <strong>OceanBase LakeBase</strong> as an AI foundation, with the goal of building future-ready, AI-agent-ready multimodal data infrastructure.</p><p><img src="/img/dewu-oceanbase-sql-hint-tuning/27.png" alt="OceanBase AIOps and LakeBase plans for Dewu future AI Agent stack" loading="lazy" decoding="async"></p><p>Welcome to join the open-source community Discord.</p><p><img src="/img/discord.png" alt="Welcome to join the open-source community Discord" loading="lazy" decoding="async"></p>]]>
    </content>
    <id>https://longda.us/2026/2026-07-15-dewu-oceanbase-sql-hint-tuning/</id>
    <link href="https://longda.us/2026/2026-07-15-dewu-oceanbase-sql-hint-tuning/"/>
    <published>2026-07-14T19:30:43.000Z</published>
    <summary>At Dewu, OceanBase plan-cache reuse, partition pruning, columnar indexes, parallel execution, and Hints cut a complex SQL from 4s to 0.02s—about 200x.</summary>
    <title>Behind a 200x SQL Speedup: How Dewu Tuned OceanBase Execution Plans and Hints</title>
    <updated>2026-07-28T19:30:43.000Z</updated>
  </entry>
  <entry>
    <author>
      <name>Longda Feng</name>
    </author>
    <category term="News" scheme="https://longda.us/categories/News/"/>
    <category term="OceanBase" scheme="https://longda.us/tags/OceanBase/"/>
    <category term="AI Agent" scheme="https://longda.us/tags/AI-Agent/"/>
    <category term="LangChain" scheme="https://longda.us/tags/LangChain/"/>
    <category term="seekdb" scheme="https://longda.us/tags/seekdb/"/>
    <category term="PowerMem" scheme="https://longda.us/tags/PowerMem/"/>
    <category term="AgentSeek" scheme="https://longda.us/tags/AgentSeek/"/>
    <category term="Community Monthly" scheme="https://longda.us/tags/Community-Monthly/"/>
    <category term="Ecosystem Certification" scheme="https://longda.us/tags/Ecosystem-Certification/"/>
    <content>
      <![CDATA[<script type="application/ld+json">{"@context":"https://schema.org","@type":"BlogPosting","headline":"OceanBase Community Monthly: Building Agents with a Closed Data Loop","description":"July 2026 OceanBase Community Monthly: PowerMem 1.1.x and AgentSeek help developers ship agents with a closed data loop, plus certifications and city events.","image":"https://longda.us/img/oceanbase-community-monthly-2026-07/01.png","wordCount":1379,"timeRequired":"PT7M","datePublished":"2026-07-08T20:02:38.000Z","dateModified":"2026-07-08T20:02:38.000Z","isAccessibleForFree":true,"author":{"@type":"Person","name":"Longda Feng","url":"https://longda.us"},"publisher":{"@type":"Organization","name":"Longda's Interesting World","logo":{"@type":"ImageObject","url":"https://longda.us/img/my.jpg"}},"mainEntityOfPage":{"@type":"WebPage","@id":"https://longda.us/2026/2026-07-09-oceanbase-community-monthly/"},"url":"https://longda.us/2026/2026-07-09-oceanbase-community-monthly/","inLanguage":"en","keywords":["OceanBase","AI Agent","LangChain","seekdb","PowerMem","AgentSeek","Community Monthly","Ecosystem Certification"],"articleSection":["News"]}</script><script type="application/ld+json">{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://longda.us/"},{"@type":"ListItem","position":2,"name":"News","item":"https://longda.us/categories/News/"},{"@type":"ListItem","position":3,"name":"OceanBase Community Monthly: Building Agents with a Closed Data Loop","item":"https://longda.us/2026/2026-07-09-oceanbase-community-monthly/"}]}</script><p>The July 2026 edition of OceanBase Community Monthly covers PowerMem 1.1.x and AgentSeek 0.0.2–0.0.4, which help developers build agents with a closed data loop. It also highlights three new ecosystem certifications, June community events, the <em>Easy Data x AI</em> course call for contributors, and July meetups.</p><p><img src="/img/oceanbase-community-monthly-2026-07/01.png" alt="OceanBase Community Monthly July 2026 cover for agents with a closed data loop" decoding="async"></p><span id="more"></span><h2 id="AI-Product-Updates"><a href="#AI-Product-Updates" class="headerlink" title="AI Product Updates"></a>AI Product Updates</h2><h3 id="PowerMem-1-1-x"><a href="#PowerMem-1-1-x" class="headerlink" title="PowerMem 1.1.x"></a>PowerMem 1.1.x</h3><p>PowerMem 1.1.x keeps upgrading long-term memory, IDE integration, and session observability so coding agents no longer “forget.”</p><p><img src="/img/oceanbase-community-monthly-2026-07/02.png" alt="PowerMem 1.1.x release graphic highlighting memory IDE integration and observability" loading="lazy" decoding="async"></p><p><strong>PowerMem shipped seven releases from v1.1.1 through v1.1.7, focused on IDE&#x2F;Claude Code integration, Dashboard search and observability, zero-config and no-LLM deployment, Chinese documentation, MCP&#x2F;plugin publishing, and more stable memory retrieval and lifecycle management.</strong></p><ul><li><strong>v1.1.1</strong>: Added IDE integration and MoonBit HTTP API examples, strengthened Dashboard regression tests, and fixed SQLite filter injection, OpenAI LLM issues, and empty user-profile fields.</li><li><strong>v1.1.2</strong>: Improved configuration and deployment: custom memory-processing environment variables, a built-in default embedding for zero-config startup, optional CLI&#x2F;server&#x2F;MCP&#x2F;seekdb extras, plus multi-client integration guides and a Claude Code install flow.</li><li><strong>v1.1.3</strong>: Dashboard gained semantic search with time-range and sort support; added CodeFuse IDE support; improved memory-sharing permissions, forgotten-memory ranking, and the MCP publish flow.</li><li><strong>v1.1.4</strong>: Retrieval API now accepts filter conditions; memory lists can filter by scope; the service can open the Dashboard on startup; the default data directory moved to <code>~/.powermem</code>; memory decay and graph isolation were improved.</li><li><strong>v1.1.5</strong>: Added no-LLM mode and <code>NoopEmbedding</code>; embedding-model downloads are bundled with PowerMem and support China-region routing; added Claude Code Hook privacy controls, coding-agent observability, and a session-timeline API; started shipping plugins and multi-platform binaries.</li><li><strong>v1.1.6</strong>: Completed Chinese docs and site localization; init now supports interactive Q&amp;A and remote-init; SQLite defaults target coding agents; published standalone binary assets; improved MCP ID precision, memory retention fields, and fresh-memory retrieval.</li><li><strong>v1.1.7</strong>: Plugins enable transcript inference by default; recall&#x2F;remember skills were slimmed down; fixed <code>powermem-mcp</code> help behavior.</li></ul><p>The project is open source at <a href="https://github.com/oceanbase/powermem">https://github.com/oceanbase/powermem</a>. Try it out, open an issue, or contribute a PR.</p><h3 id="AgentSeek-Releases-v0-0-2–v0-0-4"><a href="#AgentSeek-Releases-v0-0-2–v0-0-4" class="headerlink" title="AgentSeek Releases v0.0.2–v0.0.4"></a>AgentSeek Releases v0.0.2–v0.0.4</h3><p>OceanBase AgentSeek is an agent-engineering toolkit built on OceanBase and LangChain. It provides tools and libraries that help developers quickly build an agent flywheel with closed-loop data capabilities.</p><p><img src="/img/oceanbase-community-monthly-2026-07/03.png" alt="AgentSeek v0.0.2 to v0.0.4 release graphic for OceanBase LangChain agent toolkit" loading="lazy" decoding="async"></p><p><strong>AgentSeek v0.0.2–v0.0.4 continue to accelerate agent application development—from LangChain and Agentic RAG templates and OpenVINO support to one-click skill installation and lifecycle workflows—making it easier to get a working agent up and running out of the box.</strong></p><ul><li><code>v0.0.2</code>: Improved the LangChain developer experience with a developer guide and multiple templates, including sandbox, ContextSeek&#x2F;Bub, and a deepagents content builder.</li><li><code>v0.0.3</code>: Enhanced the CLI with commands to show the version, list templates, list skills offline, and add skills by default, along with a unified project entry point.</li><li><code>v0.0.4</code>: Added Agentic RAG and OpenVINO templates, integrated Phoenix and SeekDB into the default LangChain template, and improved the lifecycle workflow.</li></ul><p>All AgentSeek-related projects are open source. Try them, open issues, or contribute PRs:</p><ul><li>AgentSeek: <a href="https://github.com/ob-labs/agentseek">https://github.com/ob-labs/agentseek</a></li><li>AgentSeek-api: <a href="https://github.com/ob-labs/agentseek-api">https://github.com/ob-labs/agentseek-api</a></li><li>ContextSeek: <a href="https://github.com/ob-labs/contextseek">https://github.com/ob-labs/contextseek</a></li><li>langchain-oceanbase: <a href="https://github.com/oceanbase/langchain-oceanbase">https://github.com/oceanbase/langchain-oceanbase</a></li></ul><h2 id="Ecosystem-Product-Certification-Progress-Three-New-Compatible-Products"><a href="#Ecosystem-Product-Certification-Progress-Three-New-Compatible-Products" class="headerlink" title="Ecosystem Product Certification Progress: Three New Compatible Products"></a>Ecosystem Product Certification Progress: Three New Compatible Products</h2><p>Three ecosystem compatibility certifications were added in June.</p><p><img src="/img/oceanbase-community-monthly-2026-07/04.png" alt="June 2026 OceanBase ecosystem compatibility certification graphic for three new products" loading="lazy" decoding="async"></p><p>Details:</p><table><thead><tr><th>Partner</th><th>Product</th><th>Product version</th><th>OB version</th><th>Certificate ID</th></tr></thead><tbody><tr><td>Guangdong Yingshi Computer Technology Co., Ltd.</td><td>CACTER Email Security Gateway System</td><td>V7.0</td><td>V4</td><td>OB2026060001B</td></tr><tr><td>Shenzhen Yide Information Technology Co., Ltd.</td><td>safegprint Ankeyin Print Information Security Control System (V2.0)</td><td>V2.0</td><td>V4</td><td>OB2026060002B</td></tr><tr><td>Guangdong Desheng Technology Co., Ltd.</td><td>Labor Employment Risk Monitoring Platform</td><td>V1</td><td>V4</td><td>OB2026060003B</td></tr></tbody></table><h2 id="Community-Updates"><a href="#Community-Updates" class="headerlink" title="Community Updates"></a>Community Updates</h2><h3 id="1-Another-Path-for-Agent-Self-Evolution-—-Turning-Context-into-a-Living-Data-Asset"><a href="#1-Another-Path-for-Agent-Self-Evolution-—-Turning-Context-into-a-Living-Data-Asset" class="headerlink" title="1. Another Path for Agent Self-Evolution — Turning Context into a Living Data Asset"></a>1. Another Path for Agent Self-Evolution — Turning Context into a Living Data Asset</h3><p>As agents move into production, a business-critical question arises: <strong>how can an agent system continue to evolve through use?</strong></p><p><img src="/img/oceanbase-community-monthly-2026-07/05.png" alt="OceanBase and DataFun livestream poster on evolving agent context as a data asset" loading="lazy" decoding="async"></p><p><strong>On June 8, the OceanBase and DataFun communities hosted a livestream.</strong> Drawing on emerging enterprise use cases and hands-on engineering experience, they discussed how to <strong>keep an agent’s context evolving</strong> so its capabilities can improve over time through remembering, retrieving, citing, reviewing, and evolving—and so context can become a core data asset.</p><h3 id="2-Hangzhou-Salon-on-Agent-Production-Methodology"><a href="#2-Hangzhou-Salon-on-Agent-Production-Methodology" class="headerlink" title="2. Hangzhou Salon on Agent Production Methodology"></a>2. Hangzhou Salon on Agent Production Methodology</h3><p>On June 24, FastGPT joined OceanBase, Shanghai Sige K2, Sealos, and AskTable at Huanglong International Center in Hangzhou for the salon “Agent Production Methodology: From Technical Construction to Enterprise Deployment.”</p><p><img src="/img/oceanbase-community-monthly-2026-07/06.png" alt="Hangzhou FastGPT OceanBase agent production methodology salon event photo" loading="lazy" decoding="async"></p><p>The event focused on the systems-engineering problems that appear after agents leave the demo and enter production: breaking data silos, staying secure and controllable, and moving from PoC to scaled use. Five talks and a one-hour roundtable unpacked real cases from finance, manufacturing, and consumer industries. Recap: <a href="https://mp.weixin.qq.com/s?__biz=Mzk4ODIyNDQ4Mw==&mid=2247487534&idx=2&sn=f63ca13c84b168e434f48a3bd397e76d&scene=21#wechat_redirect">From Shanghai to Hangzhou, FastGPT and six communities put agents into real business</a>.</p><h3 id="3-From-Framework-Orchestration-to-a-Data-Flywheel-New-Ideas-for-Building-Agents-in-China"><a href="#3-From-Framework-Orchestration-to-a-Data-Flywheel-New-Ideas-for-Building-Agents-in-China" class="headerlink" title="3. From Framework Orchestration to a Data Flywheel: New Ideas for Building Agents in China"></a>3. From Framework Orchestration to a Data Flywheel: New Ideas for Building Agents in China</h3><p>Multi-agent applications have moved from experiments into production, but a significant gap remains between a working demo and continuous evolution. Orchestration tools are flourishing while data layers remain fragmented: context is scattered, traces disappear, and execution trajectories become disposable artifacts. Debugging becomes guesswork, optimization depends on luck, and each iteration requires rework.</p><p><img src="/img/oceanbase-community-monthly-2026-07/07.png" alt="OceanBase and CSDN livestream graphic on building agents from orchestration to a data flywheel" loading="lazy" decoding="async"></p><p><strong>On June 25, OceanBase and CSDN co-hosted a livestream.</strong> They invited the technical lead of Tongyi Lab’s AgentScope project and a LangChain community ambassador to discuss the most practical engineering choices for developers in China (watch the replay on the “Lao Ji’s Tech Chat” WeChat video channel).</p><h3 id="4-OceanBase-Hours-Online-Launch"><a href="#4-OceanBase-Hours-Online-Launch" class="headerlink" title="4. OceanBase Hours Online Launch"></a>4. OceanBase Hours Online Launch</h3><p>On June 29, the OceanBase Hours online launch streamed on multiple platforms. It covered OceanBase’s new explorations in the AI era and announced an AI database built for lakehouse integration.</p><p><img src="/img/oceanbase-community-monthly-2026-07/08.png" alt="OceanBase Hours online launch graphic announcing the lakehouse AI database" loading="lazy" decoding="async"></p><p>Details: <a href="https://mp.weixin.qq.com/s?__biz=Mzk3NTE2NzU5NQ==&mid=2247491690&idx=1&sn=b69daf4480ea4030bc48b9e8a91305b8&scene=21#wechat_redirect">OceanBase lakehouse AI database officially launched</a>.</p><h2 id="Community-Course-Co-Creation-Call"><a href="#Community-Course-Co-Creation-Call" class="headerlink" title="Community Course Co-Creation Call"></a>Community Course Co-Creation Call</h2><p>The DataWhale × OceanBase community course <em>Easy Data x AI</em> is recruiting co-creators.</p><p><img src="/img/oceanbase-community-monthly-2026-07/09.png" alt="Easy Data x AI community course recruitment graphic from DataWhale and OceanBase" loading="lazy" decoding="async"></p><p>This is not another package for learning large models from scratch. It focuses on the difficult ground between data and AI, where practitioners most often stumble. DataWhale and the OceanBase community are building it together. It already includes a fundamentals track, a product-oriented “Dao” (principles) track, and a developer-oriented “Shu” (practice) track.</p><p>Course repo: <a href="https://github.com/datawhalechina/easy-data-x-ai">https://github.com/datawhalechina/easy-data-x-ai</a></p><p>We want the community to help make the course deeper, more accurate, and more practical. Contributing is simple: read the <a href="https://github.com/datawhalechina/easy-data-x-ai/blob/main/CONTRIBUTING.md">course contributing guide</a>, find an issue you care about, claim it in a comment, and then open a PR. Even correcting a factual error counts. If you independently complete an extension chapter, you will receive formal credit.</p><p>We hope every participant both contributes and grows through the process. Contributors whose PRs are merged will receive community merchandise. Details: <a href="https://mp.weixin.qq.com/s?__biz=Mzk3NTE2NzU5NQ==&mid=2247491695&idx=1&sn=89328c562d1a390ad6d6b327e6b01a34&scene=21#wechat_redirect">Help build the data fundamentals course for the agent era: <em>Easy Data x AI</em> introductory course call for contributors</a>.</p><h2 id="July-Event-Preview"><a href="#July-Event-Preview" class="headerlink" title="July Event Preview"></a>July Event Preview</h2><p>In July we will meet you in Guangzhou, Shenzhen, Shanghai, and Suzhou. Watch the community events page to register.</p><p><img src="/img/oceanbase-community-monthly-2026-07/10.png" alt="July 2026 OceanBase community events preview for Guangzhou Shenzhen Shanghai and Suzhou" loading="lazy" decoding="async"></p><ul><li>July 10 in Guangzhou and July 14 in Shenzhen: “Agent Production Methodology: From Technical Construction to Enterprise Deployment.” FastGPT joins OceanBase, Qoder, Sealos, and AskTable for a two-city technology salon on advancing enterprise AI agents from individual productivity tools to organization-wide capabilities. Details: <a href="https://mp.weixin.qq.com/s?__biz=Mzk3NTE2NzU5NQ==&mid=2247491737&idx=1&sn=5bb24f7e3516282510b04226e1445fcb&scene=21#wechat_redirect">What is the secret to agents that get smarter with use? Guangzhou and Shenzhen in July</a>.</li><li>July 19: From cloud agents to edge devices — making AI remember, run fast, and stay accurate (L141, L1, Expo Park, Pudong New Area, Shanghai).</li><li>July 31: Agent Infra Suzhou — from manufacturing to intelligent manufacturing (Suzhou Industrial Park, High-tech Zone, Suzhou, Jiangsu).</li></ul><blockquote><p>Every month, we hold a community progress briefing. We hope these conversations will make the OceanBase open-source community more transparent and welcoming, improve information sharing, answer questions, and give everyone a voice.</p><p>If you have suggestions for the community, please open Issues or PRs on GitHub. You are also welcome to become a Contributor and join the community.</p></blockquote><p><img src="/img/oceanbase-community-monthly-2026-07/11.png" alt="OceanBase community call-to-action graphic inviting issues PRs and contributors" loading="lazy" decoding="async"></p><p>Follow the WeChat official account “Lao Ji’s Tech Chat” for more updates. Extra materials are in that account’s private-message menu.</p><p>You are welcome to join the OceanBase community. You can also send the official account a private message naming the product you are interested in—such as OceanBase, seekdb, or PowerMem—to receive related materials.</p>]]>
    </content>
    <id>https://longda.us/2026/2026-07-09-oceanbase-community-monthly/</id>
    <link href="https://longda.us/2026/2026-07-09-oceanbase-community-monthly/"/>
    <published>2026-07-08T20:02:38.000Z</published>
    <summary>July 2026 OceanBase Community Monthly: PowerMem 1.1.x and AgentSeek help developers ship agents with a closed data loop, plus certifications and city events.</summary>
    <title>OceanBase Community Monthly: Building Agents with a Closed Data Loop</title>
    <updated>2026-07-08T20:02:38.000Z</updated>
  </entry>
  <entry>
    <author>
      <name>Longda Feng</name>
    </author>
    <category term="Product Deep Dive" scheme="https://longda.us/categories/Product-Deep-Dive/"/>
    <category term="OceanBase" scheme="https://longda.us/tags/OceanBase/"/>
    <category term="Hybrid Search" scheme="https://longda.us/tags/Hybrid-Search/"/>
    <category term="seekdb" scheme="https://longda.us/tags/seekdb/"/>
    <category term="PowerMem" scheme="https://longda.us/tags/PowerMem/"/>
    <category term="Lakebase" scheme="https://longda.us/tags/Lakebase/"/>
    <category term="AI Database" scheme="https://longda.us/tags/AI-Database/"/>
    <category term="Multimodal Table" scheme="https://longda.us/tags/Multimodal-Table/"/>
    <category term="Fork Database" scheme="https://longda.us/tags/Fork-Database/"/>
    <content>
      <![CDATA[<script type="application/ld+json">{"@context":"https://schema.org","@type":"BlogPosting","headline":"Designing a Lakehouse AI Database for Production Agents","description":"OceanBase CTO Rizhao (Yang Chuanhui) explains Lakebase, a lakehouse AI database for multimodal data, open compute, and production agents.","image":"https://longda.us/img/lakehouse-ai-database-design/01.gif","wordCount":2600,"timeRequired":"PT13M","datePublished":"2026-07-07T19:30:53.000Z","dateModified":"2026-07-28T19:29:50.000Z","isAccessibleForFree":true,"author":{"@type":"Person","name":"Longda Feng","url":"https://longda.us"},"publisher":{"@type":"Organization","name":"Longda's Interesting World","logo":{"@type":"ImageObject","url":"https://longda.us/img/my.jpg"}},"mainEntityOfPage":{"@type":"WebPage","@id":"https://longda.us/2026/2026-07-08-lakehouse-ai-database-design/"},"url":"https://longda.us/2026/2026-07-08-lakehouse-ai-database-design/","inLanguage":"en","keywords":["OceanBase","Hybrid Search","seekdb","PowerMem","Lakebase","AI Database","Multimodal Table","Fork Database"],"articleSection":["Product Deep Dive"]}</script><script type="application/ld+json">{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://longda.us/"},{"@type":"ListItem","position":2,"name":"Product Deep Dive","item":"https://longda.us/categories/Product-Deep-Dive/"},{"@type":"ListItem","position":3,"name":"Designing a Lakehouse AI Database for Production Agents","item":"https://longda.us/2026/2026-07-08-lakehouse-ai-database-design/"}]}</script><p>On June 29, OceanBase launched its lakehouse AI database during an OceanBase Hours webcast. The question is not how to add a few AI functions to a traditional engine, but how to rebuild the data foundation now that agents read, write, search, and modify state in production.</p><p>That is the design problem OceanBase CTO <strong>Rizhao (Yang Chuanhui)</strong> addresses: unify multimodal data, open compute, and database-grade consistency in one <strong>Lakebase</strong> stack.</p><p><img src="/img/lakehouse-ai-database-design/01.gif" alt="Animated OceanBase Hours banner for the lakehouse AI database launch" decoding="async"></p><span id="more"></span><p><strong>Editor’s note</strong></p><p>On June 29, OceanBase Hours went live, and OceanBase formally released its lakehouse AI database. The launch also posed three questions to the industry: what is a lakehouse AI database, why does the AI era need lakehouse integration, and how does OceanBase implement that idea from the ground up?</p><p>Author | OceanBase CTO Rizhao (Yang Chuanhui)</p><p><img src="/img/lakehouse-ai-database-design/02.jpeg" alt="OceanBase CTO Yang Chuanhui presenting the Lakebase AI database design" loading="lazy" decoding="async"></p><p>OceanBase CTO Yang Chuanhui</p><p>Mainstream databases have gone through several major shifts: from the earliest OLTP systems, to OLAP splitting off as the data warehouse, and then to big-data platforms. For a long time, database architecture was designed around human applications, deterministic transactions, and structured analytics.</p><p>A new shift is underway. An AI agent no longer merely reads data and answers questions. It calls tools, generates code, executes tasks, modifies state, and even participates in business processes. Database users are expanding from human-facing applications to large numbers of autonomous agents. That raises a fundamental question: when thousands of agents concurrently read, write, search, experiment, roll back changes, and generate context, should the database still look like the one we built for yesterday?</p><p>I believe the answer is no. AI is changing three things at once:</p><ul><li>Database users are expanding from applications to agents.</li><li>The data managed by a database is expanding from structured data to multimodal data that includes structured, semi-structured, and unstructured content.</li><li>Database workloads are expanding from transactions and analytics to search, context engineering, and AI applications.</li></ul><p>An AI database is therefore not a traditional database with a few AI functions bolted on, and it is not a vector database that later adds SQL. It has to solve the data-infrastructure problem that appears when AI enters production systems. Multimodal data needs to be managed on a unified foundation. Online services and offline compute need to converge. Agents need real-time, trustworthy, continuous context. Reads, writes, experiments, rollbacks, and governance still need database-grade consistency and reliability.</p><p>This is not an incremental feature update. It is a redesign of database architecture for the AI era.</p><p><img src="/img/lakehouse-ai-database-design/03.png" alt="Vendors converging on a unified data platform for transactions, analytics, and AI" loading="lazy" decoding="async"></p><p>Start with what the industry is doing.</p><p>Databricks and Snowflake started with the lakehouse and the data warehouse, respectively, and continue to add OLTP capabilities.</p><p>OceanBase and Oracle started with transactional databases and continue to add OLAP and big-data capabilities.</p><p>MongoDB, Milvus, and Elasticsearch started as specialized data stores and continue to add general-purpose database capabilities. Regardless of the starting point, these paths are converging on a unified data foundation that can handle transactions, analytics, search, vectors, and AI compute at the same time.</p><p>OceanBase has always insisted on an integrated design.</p><p>We first built distributed OLTP to solve scalability and reliability for online transactions. We then added real-time OLAP on top of OLTP, removing the data movement from TP to AP. Last year we released multimodal integration, bringing vector, full-text, JSON, GIS, and related capabilities into the same database engine.</p><p>Today, we are taking another step forward with lakehouse integration: combining the database’s real-time transactional capabilities with the lake’s open storage and compute on the same data foundation.</p><p><img src="/img/lakehouse-ai-database-design/04.png" alt="OceanBase integration path from distributed OLTP through multimodal to lakehouse" loading="lazy" decoding="async"></p><p>The lakehouse integration I have in mind cannot stop at attaching a data lake to the database, nor can it consist of merely adding a few online query APIs to a lakehouse. To be production-ready, it must bridge at least three boundaries.</p><p>First, data forms must be unified. Structured data, semi-structured data, unstructured data, vectors, graphs, and full-text indexes cannot live as separate copies in separate systems. They should be managed under a unified table abstraction.</p><p>Second, compute paths must be unified. SQL queries, real-time analytics, hybrid search, Spark ETL, and AI compute on Ray should operate on the same data instead of relying on repeated exports, transformations, and intermediate materialization.</p><p>Third, governance boundaries must be unified. Metadata, permissions, row-level control, audit, versioning, and lifecycle must apply consistently to every data type. Otherwise structured fields have access control while vector retrieval bypasses it, and that kind of system cannot enter enterprise production.</p><p>That is also the starting point for OceanBase Lakebase:</p><p><img src="/img/lakehouse-ai-database-design/05.png" alt="Lakebase layers object storage, multimodal tables, and open compute engines" loading="lazy" decoding="async"></p><p><strong>The bottom layer separates storage from compute. Data resides in object storage, while the compute layer runs independently. AI agent workloads are inherently bursty—any agent may experience a surge on any given day, making every day resemble a small Singles’ Day (November 11) peak. Separating storage and compute allows compute capacity to scale independently: expanding instantly when load arrives and scaling to zero when idle.</strong></p><p><strong>In the middle, multimodal tables</strong> unify structured, semi-structured, and unstructured data, as well as other multimodal types.</p><p><strong>The upper layer supports open compute. In addition to existing SQL compute (OLTP, OLAP, and AI search), it supports Spark for ETL and Daft on Ray for AI processing. Unifying these engines on the same data is the core design goal that distinguishes lakehouse integration from a traditional database.</strong></p><p>The lake’s value is openness, elasticity, and cost. The database’s value is transactions, consistency, low latency, and governance. The AI era needs both sets of capabilities together.</p><p>One more critical value is easy to miss: real-time behavior.</p><p>In the traditional approach, data processing is offline. After processing finishes, results still have to be moved back to the online system before applications can use them, with T+1 or even longer delay.</p><p>Lakehouse integration unifies offline processing and online serving on the same data: Spark ETL output is immediately queryable by the SQL engine, and vectors produced by model inference are immediately available to hybrid search. There is no longer a window in which processing is complete but applications still have to wait for synchronization.</p><p>Real-time is not achieved by making data movement faster. It is achieved by eliminating data movement.</p><p><img src="/img/lakehouse-ai-database-design/06.png" alt="Section title on evolving from relational tables to multimodal AI tables" loading="lazy" decoding="async"></p><p>Traditional relational databases were built around relational tables: <code>INT</code>, <code>FLOAT</code>, <code>VARCHAR</code>, and other columns containing structured data.</p><p>Today’s AI databases should be built around multimodal tables.</p><p>A multimodal table includes the original relational columns for structured data, plus multimodal columns and AI columns for unstructured data.</p><p>Unstructured data can be written into the multimodal table as vectors or text after external embedding or labeling, or written directly as LOB.</p><p>OceanBase supports flexible LOB storage.</p><ul><li>If the LOB object is relatively small, store it in-row to save I&#x2F;O.</li><li>If the LOB object is larger, divide it into chunks, store them in object storage, and keep only their locations in the row.</li><li>If the LOB object is especially large, reference an existing file already in external object storage; the database stores only metadata. Upper-layer applications still see a single table.</li></ul><p>On top of the multimodal table, we also designed AI columns. Think of them as real-time computed columns: after data is written, embedding, labeling, and other model computations are triggered automatically, and the results are written back. The most important property is transactional consistency. For example, after a batch of audio is written, embedding and labeling operations must all succeed or all fail. Partial success is not acceptable.</p><p><img src="/img/lakehouse-ai-database-design/07.png" alt="Hybrid search as the basic query pattern on multimodal AI tables" loading="lazy" decoding="async"></p><p>Once the multimodal table exists, the next step is to run AI workloads on it.</p><p>Inside an AI database, the basic query pattern evolves from relational lookup to hybrid search—completing relational filters, full-text search, vector search, graph search, and AI compute in the same table.</p><p>Why is vector search alone not enough?</p><p>Vector search will certainly be one of the most common compute patterns in an AI database. In real scenarios, though, we usually first use relational filters to shrink the global dataset into a smaller candidate set (for example, “only orders from the last 30 days”), then run vector, full-text, and graph hybrid search on that candidate set. The database narrows the range first; the model only processes high-value candidates. Inference costs less, results are more accurate, and the pipeline is easier to control.</p><p>In the AI era, search will return to the database itself, just as OLTP and OLAP did, and become a first-class database workload.</p><p>On performance, we ran systematic evaluations.</p><p>Using the HNSW algorithm, OceanBase delivered substantially better vector-search performance than Milvus, Elasticsearch, and pgvector in 768- and 1,536-dimensional test scenarios at the same recall level.</p><p>On hybrid search, evaluated with the MS MARCO dataset, OceanBase hybrid-search performance improved by more than 30% versus Elasticsearch. That is not a theoretical number—it is a reproducible result on a standard dataset.</p><p><img src="/img/lakehouse-ai-database-design/08.png" alt="Shared object-store tables serving SQL, Spark ETL, and Daft on Ray" loading="lazy" decoding="async"></p><p>An agent’s data path is more than SQL queries. It also includes ETL processing, AI inference, and multimodal understanding.</p><p>The previous approach usually stitched many different systems together: Kafka for ingest, Flink for stream processing, Spark for batch, HDFS for persistence, ClickHouse for analytics, HBase for wide tables, Elasticsearch for search, and Presto for federated queries.</p><p>OceanBase’s lakehouse design is intended to solve that problem.</p><p>At the bottom, object-storage-based multimodal tables let multiple compute engines share one copy of the data. OceanBase’s SQL engine handles online queries and transactions; Spark handles petabyte-scale batch ETL; and Daft on Ray handles AI inference. This design addresses data consistency and compute latency across what would otherwise be a multi-system stack.</p><p>Because so many open compute engines must be supported, we need a unified open catalog to manage the data. Tables, views, schemas, lineage, row-level permissions, and column-level grants should all be managed here.</p><p>Every operation in the OceanBase AI database passes through a unified metadata and access-control plane to prevent unauthorized data access. We already support fine-grained row-level security (RLS).</p><p><img src="/img/lakehouse-ai-database-design/09.png" alt="Agent isolation via Fork Database, copy-on-write branches, and logical tables" loading="lazy" decoding="async"></p><p>For agents to enter production, the database must give them an isolated, rollback-friendly operating environment whose cost is low enough.</p><p>With <strong>Fork Database</strong>, you can create a complete database copy in seconds—much like creating a branch in Git. Even a petabyte-scale database can be forked in seconds while consuming space only for incremental changes (with copy-on-write, unmodified blocks continue to reference the same lake storage and are not physically copied).</p><p>After creating the branch, you can use it for AI development, testing, and experiments. If an experiment succeeds, commit it; if it fails, roll it back. The incremental storage cost is minimal.</p><p>Together with DIFF and MERGE, an agent gets full data version control: Fork creates a branch, DIFF shows differences (down to rows and values), and MERGE writes changes back according to policy. This is not a Git analogy. It is a native SQL-level implementation.</p><p>Scale is another dimension. The volume of agent data will be enormous. In the future, there may be hundreds of billions or even trillions of agents running in parallel, each with its own schema and tables—creating a schema-explosion problem.</p><p>Traditional databases are optimized for “few databases + massive data”: one cluster hosts dozens of databases, each with billions of rows. The agent scenario is the opposite: tens of millions of agents, each with only a few hundred rows, but an astronomical number of instances.</p><p>OceanBase’s logical-table design lets every agent see independent logical tables, while storage underneath is the same physical table. The logical layer absorbs the schema explosion.</p><p>Fork Database solves isolated environments; logical tables solve instance scale. Only together can a single agent experiment safely while a massive number of agents run in parallel at low cost.</p><p><img src="/img/lakehouse-ai-database-design/10.png" alt="Context layer covering enterprise semantics, PowerMem memory, and OSI" loading="lazy" decoding="async"></p><p>An AI database is not enough if it is only an engine. Between the engine and the application there is still a missing layer: context.</p><p>The context layer has two parts. <strong>Data context</strong> covers data semantics and governance so AI can understand the enterprise. <strong>Application context</strong> covers memory and RAG so AI can understand the user.</p><p>For memory, an agent cannot simply accumulate context. Its memory must become an evolvable, structured asset. That is why we built <strong>OceanBase PowerMem</strong> and the PowerMem-based cloud product <strong>OceanBase seekdb M0</strong>.</p><p>OceanBase PowerMem is built on the AI database. Memory retrieval combines structured filters with semantic similarity in a hybrid query. More importantly, PowerMem supports self-evolving memory, including the evolution of both experience and skills.</p><p>We validated this with a fair-distillation experiment on AppWorld: the same traces, the same model, and the only variable was the distillation and retrieval scheme. Results: the seekdb M0 scheme reached a 39% pass rate, versus 22% for Hermes; to complete the same tasks, M0 used 6.2 steps versus 10.4 for Hermes; overall token consumption dropped 32%.</p><p>On the semantic dimension, high-quality data semantics are what let AI applications truly understand an enterprise. OceanBase OSI is not trying to reinvent a BI semantic layer. It unifies metrics, definitions, raw data, a context graph, and an ontology layer.</p><ul><li>The bottom layer is the semantic layer—metrics, definitions, raw data, and related artifacts—designed on the Ant-OSI semantic-layer standard, compatible with the OSI open standard, and extensively validated inside Ant Group.</li><li>The middle layer is the context graph—large models reason over the graph to improve accuracy.</li><li>The top layer is the ontology layer—unifying business semantics with underlying database semantics, and balancing global and local meaning. The core idea is “semantics as code”: define data semantics once. BI rendering reports, agents generating SQL, and governance tools analyzing lineage all read the same definition.</li></ul><p>We also built the DataPilot product on OceanBase OSI. In customer PoC tests across industries, customers reported accuracy far better than other products in the market.</p><p>The difference behind that is not the model. It is the quality of semantic context. When AI has accurate business definitions, the accuracy of translating natural language into SQL improves in a fundamental way.</p><p><img src="/img/lakehouse-ai-database-design/11.png" alt="What these Lakebase capabilities mean together for enterprise AI stacks" loading="lazy" decoding="async"></p><p>What do all of these capabilities add up to? The most direct answer is a sharp reduction in the number of components.</p><p><img src="/img/lakehouse-ai-database-design/12.png" alt="Component-count comparison between a stitched multi-system stack and Lakebase" loading="lazy" decoding="async"></p><p>With a traditional approach, an enterprise needs five to ten systems to fuse multimodal data. Stitching those systems together creates a series of problems: CDC delay, ETL failure and retry, multiple independent operations stacks, multiple permission systems, multiple monitoring and alerting systems, and more.</p><p>With the OceanBase lakehouse engine, many systems can be consolidated into one. A single copy of the data ensures consistency, while unified online and offline processing enables real-time access.</p><p><img src="/img/lakehouse-ai-database-design/13.png" alt="Traditional five-to-ten-system stack versus one lakehouse engine" loading="lazy" decoding="async"></p><p><img src="/img/lakehouse-ai-database-design/14.png" alt="Three-layer OceanBase AI database from lake engine to application agents" loading="lazy" decoding="async"></p><p>Looked at together, the OceanBase AI database architecture can be summarized in three layers.</p><p>The bottom layer is the lakehouse engine: multimodal tables running on object storage. On this foundation, it supports open compute through OceanBase SQL processing (OLTP, OLAP, and search), Spark ETL, and large-model AI compute.</p><p>The middle layer is the context layer—data context so AI understands the enterprise, and application context so AI understands the user.</p><p>The top layer is the application agents we built: a data-development agent for data engineers, and a data-analysis agent for business analysts.</p><p>For an enterprise to actually use AI, the most important and most basic step is to manage its own data through an integrated AI database. Only after that data is well managed can the enterprise’s AI become more accurate, more economical, faster, and safer.</p><p>A lakehouse AI database is our answer for the AI agent era.</p><p><img src="/img/lakehouse-ai-database-design/15.webp" alt="Related-reading divider used at the end of the original WeChat article" loading="lazy" decoding="async"></p><p>Related reading</p><p><img src="/img/lakehouse-ai-database-design/16.webp" alt="Recommended prior OceanBase WeChat article card in the related-reading block" loading="lazy" decoding="async"></p><p><img src="/img/lakehouse-ai-database-design/17.webp" alt="Second recommended OceanBase WeChat article card in the related-reading section" loading="lazy" decoding="async"></p><p><img src="/img/lakehouse-ai-database-design/18.png" alt="WeChat public-account card inviting readers to follow Lao Ji tech talks" loading="lazy" decoding="async"></p><p>Learn more</p><p>Finally, you are welcome to follow the WeChat public account “老纪的技术唠嗑局” (Lao Ji’s Tech Talk).</p><p>Additional materials are available through the account’s private-message menu.</p><p>You are also welcome to join the OceanBase community, or reply in that public account’s private messages with the product you care about (for example OceanBase, seekdb, or PowerMem) to get related materials.</p>]]>
    </content>
    <id>https://longda.us/2026/2026-07-08-lakehouse-ai-database-design/</id>
    <link href="https://longda.us/2026/2026-07-08-lakehouse-ai-database-design/"/>
    <published>2026-07-07T19:30:53.000Z</published>
    <summary>OceanBase CTO Rizhao (Yang Chuanhui) explains Lakebase, a lakehouse AI database for multimodal data, open compute, and production agents.</summary>
    <title>Designing a Lakehouse AI Database for Production Agents</title>
    <updated>2026-07-28T19:29:50.000Z</updated>
  </entry>
  <entry>
    <author>
      <name>Longda Feng</name>
    </author>
    <category term="AI Applications" scheme="https://longda.us/categories/AI-Applications/"/>
    <category term="OceanBase" scheme="https://longda.us/tags/OceanBase/"/>
    <category term="AI Agent" scheme="https://longda.us/tags/AI-Agent/"/>
    <category term="Hybrid Search" scheme="https://longda.us/tags/Hybrid-Search/"/>
    <category term="Agent Memory" scheme="https://longda.us/tags/Agent-Memory/"/>
    <category term="seekdb" scheme="https://longda.us/tags/seekdb/"/>
    <category term="PowerMem" scheme="https://longda.us/tags/PowerMem/"/>
    <category term="Lakebase" scheme="https://longda.us/tags/Lakebase/"/>
    <category term="Multimodal Data" scheme="https://longda.us/tags/Multimodal-Data/"/>
    <content>
      <![CDATA[<script type="application/ld+json">{"@context":"https://schema.org","@type":"BlogPosting","headline":"What Should a Database Become When AI Agents Start Using It?","description":"An editorial look at OceanBase Lakebase, seekdb, and PowerMem for AI-agent data, hybrid retrieval, safe experimentation, and long-term memory.","image":"https://longda.us/img/yuque-10/01.png","wordCount":1062,"timeRequired":"PT5M","datePublished":"2026-07-05T16:00:00.000Z","dateModified":"2026-07-06T02:01:03.000Z","isAccessibleForFree":true,"author":{"@type":"Person","name":"Longda Feng","url":"https://longda.us"},"publisher":{"@type":"Organization","name":"Longda's Interesting World","logo":{"@type":"ImageObject","url":"https://longda.us/img/my.jpg"}},"mainEntityOfPage":{"@type":"WebPage","@id":"https://longda.us/2026/2026-07-06-agent-database-oceanbase-lakebase/"},"url":"https://longda.us/2026/2026-07-06-agent-database-oceanbase-lakebase/","inLanguage":"en","keywords":["OceanBase","AI Agent","Hybrid Search","Agent Memory","seekdb","PowerMem","Lakebase","Multimodal Data"],"articleSection":["AI Applications"]}</script><script type="application/ld+json">{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://longda.us/"},{"@type":"ListItem","position":2,"name":"AI Applications","item":"https://longda.us/categories/AI-Applications/"},{"@type":"ListItem","position":3,"name":"What Should a Database Become When AI Agents Start Using It?","item":"https://longda.us/2026/2026-07-06-agent-database-oceanbase-lakebase/"}]}</script><p>When AI agents use databases, the database is no longer only where an application stores rows. Depending on the workload, the surrounding data platform may also need to support context, memory, retrieval, safe experimentation, rollback, and a path from a local prototype to enterprise-scale operations.</p><p>That is the question behind OceanBase’s discussion of <strong>Lakebase</strong> and its AI product family: what should <strong>DB for AI</strong> look like when AI agents are first-class users?</p><p><img src="/img/yuque-10/01.png" alt="Illustrated banner asking what databases should become when AI Agents start using them" decoding="async"></p><span id="more"></span><h2 id="Three-vendors-three-interpretations-of-Lakebase"><a href="#Three-vendors-three-interpretations-of-Lakebase" class="headerlink" title="Three vendors, three interpretations of Lakebase"></a>Three vendors, three interpretations of Lakebase</h2><p>“Lakebase” is not a universally standardized term. Different vendors use it to describe different combinations of data lake, warehouse, operational database, and vector-search capabilities:</p><table><thead><tr><th>Vendor</th><th>Lakebase interpretation</th></tr></thead><tbody><tr><td><strong>Databricks</strong></td><td>A serverless Postgres offering positioned to connect Lakehouse analytics and operational workloads for AI applications</td></tr><tr><td><strong>Zilliz</strong></td><td>A vector-database and data-lake-storage approach focused on AI search</td></tr><tr><td><strong>OceanBase</strong></td><td>A lake-and-database architecture positioned around transactions, real-time services, object storage, and multimodal data governance</td></tr></tbody></table><p>OceanBase presents Lakebase as the next step in its integration strategy. Rather than treating it as a single engine label, the company describes a platform intended to connect OLTP, analytics, hybrid search, and AI workloads through common data-management capabilities.</p><p><img src="/img/yuque-10/02.png" alt="Diagram comparing Databricks, Zilliz, and OceanBase approaches to defining Lakebase" loading="lazy" decoding="async"></p><h2 id="OceanBase-Lakebase-a-lake-and-database-stack"><a href="#OceanBase-Lakebase-a-lake-and-database-stack" class="headerlink" title="OceanBase Lakebase: a lake-and-database stack"></a>OceanBase Lakebase: a lake-and-database stack</h2><p>OceanBase describes Lakebase as combining its database engine with object storage and open-compute integrations such as <strong>Spark</strong> and <strong>Ray</strong>:</p><figure class="highlight text"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line">OceanBase Lakebase</span><br><span class="line">    ├── OceanBase        (transactions, hybrid search, real-time processing)</span><br><span class="line">    ├── Spark            (large-scale offline processing)</span><br><span class="line">    ├── Ray              (embedding, training, inference, Python data work)</span><br><span class="line">    └── Object storage   (cost-efficient multimodal data at scale)</span><br></pre></td></tr></table></figure><p>The intended outcome is to reduce data movement between separate systems while supporting OLTP, analytics, hybrid search, and AI workloads. The exact architecture, deployment model, and available integrations should be confirmed against the applicable OceanBase release documentation.</p><p><img src="/img/yuque-10/03.png" alt="OceanBase Lakebase architecture with open compute, multimodal tables, and object storage" loading="lazy" decoding="async"></p><h2 id="Lakebase-seekdb-and-PowerMem-who-does-what"><a href="#Lakebase-seekdb-and-PowerMem-who-does-what" class="headerlink" title="Lakebase, seekdb, and PowerMem: who does what"></a>Lakebase, seekdb, and PowerMem: who does what</h2><p>AI-agent applications often need more than a SQL endpoint. OceanBase positions three components around distinct roles:</p><table><thead><tr><th>Component</th><th>Role for Agents</th><th>What it provides</th></tr></thead><tbody><tr><td><strong>OceanBase Lakebase</strong></td><td>Enterprise data foundation</td><td>Multimodal data management, governance, and open-compute integration</td></tr><tr><td><strong>seekdb</strong></td><td>Developer-facing AI database</td><td>Write, Search, Fork—hybrid search, local or server deployment, and data branching</td></tr><tr><td><strong>PowerMem</strong></td><td>Memory-management layer</td><td>Extract, merge, forget, and recall information that AI agents may retain across sessions</td></tr></tbody></table><p>In short:</p><ul><li><strong>Lakebase</strong> is positioned as the governed data layer at scale.</li><li><strong>seekdb</strong> is designed for AI agents to write state, search data, and create isolated branches.</li><li><strong>PowerMem</strong> is intended to help AI agents retain useful information while allowing lower-value context to decay.</li></ul><p><img src="/img/yuque-10/04.png" alt="Layered OceanBase stack from Lakebase through AI database capabilities to Agent applications" loading="lazy" decoding="async"></p><h3 id="seekdb-Write-Search-and-Fork"><a href="#seekdb-Write-Search-and-Fork" class="headerlink" title="seekdb: Write, Search, and Fork"></a>seekdb: Write, Search, and Fork</h3><p><strong>seekdb</strong> is an open-source, developer-facing entry point at <a href="https://github.com/oceanbase/seekdb">https://github.com/oceanbase/seekdb</a>. Its tagline describes its intended agent workload: <strong>Write, Search, Fork. The State Store for AI Agents.</strong></p><p>An agent asking for “angry refund-related complaints from East China last month” needs structured filters, full-text keywords, and semantic similarity at once. seekdb is designed to combine these retrieval modes in one engine.</p><p><img src="/img/yuque-10/05.png" alt="seekdb Agent state repository supporting write, search, and fork across local and OceanBase deployments" loading="lazy" decoding="async"></p><p>Developers can start with the Python SDK:</p><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">pip install -U pyseekdb</span><br></pre></td></tr></table></figure><figure class="highlight text"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">local pyseekdb + PowerMem → seekdb server → OceanBase / Lakebase</span><br></pre></td></tr></table></figure><p><img src="/img/yuque-10/06.png" alt="seekdb deployment path from pip install through embedded prototype to OceanBase server" loading="lazy" decoding="async"></p><p>According to the project documentation, <strong>pyseekdb</strong> supports embedded, local-server, and remote OceanBase modes. This can support a progression from a laptop prototype to a server deployment; the migration path and compatibility requirements should be validated for each application.</p><p>Hybrid search can shorten the retrieval chain by combining structured filters, keyword search, and semantic vectors in one engine instead of coordinating three separate systems.</p><p><img src="/img/yuque-10/07.png" alt="Hybrid search diagram combining structured filters, full-text keywords, and semantic vectors" loading="lazy" decoding="async"></p><p><strong>seekdb</strong> also provides <strong>Fork Table</strong> and <strong>Fork Database</strong>. These data branches are analogous to Git branches for agent workloads: an agent can modify data, test a prompt, or run an evaluation in isolation, then merge a successful result or drop a failed branch. Teams should still apply least-privilege access controls and review policies; branching does not replace operational safeguards.</p><p><img src="/img/yuque-10/08.png" alt="Agent database sandbox using fork, diff, merge, and drop to contain experimental changes" loading="lazy" decoding="async"></p><h3 id="PowerMem-remember-merge-and-forget"><a href="#PowerMem-remember-merge-and-forget" class="headerlink" title="PowerMem: remember, merge, and forget"></a>PowerMem: remember, merge, and forget</h3><p><strong>PowerMem</strong> complements seekdb by managing information an AI agent may retain. It is designed to extract important facts from dialogue and tasks, merge changing memories, age out stale information, and recall useful context when needed.</p><p><img src="/img/yuque-10/11.png" alt="PowerMem memory layer extracting, merging, forgetting, and recalling Agent context" loading="lazy" decoding="async"></p><p>Not every interaction deserves permanent storage. PowerMem can organize chat content, task traces, and feedback into long-term memory, experience records, and searchable context while excluding temporary noise.</p><p><img src="/img/yuque-10/12.png" alt="PowerMem memory filter deciding what Agent facts are worth keeping" loading="lazy" decoding="async"></p><p>When new information conflicts with existing memory, the system aims to reconcile and update stored facts rather than blindly appending everything. Its effectiveness will depend on the configured models, policies, and data quality.</p><p><img src="/img/yuque-10/13.png" alt="PowerMem conflict resolution updating stored preferences when new information arrives" loading="lazy" decoding="async"></p><p>Over time, forgetting irrelevant details can reduce token use and keep recall focused on durable knowledge.</p><p><img src="/img/yuque-10/14.png" alt="PowerMem memory drawer showing decay of low-value facts and retention of core concepts" loading="lazy" decoding="async"></p><blockquote><p>🧠 Building an Agent that needs durable, self-organizing memory? Explore <strong>PowerMem</strong> at <a href="https://github.com/oceanbase/powermem">https://github.com/oceanbase/powermem</a> and see how extract-merge-forget-recall fits into your stack.</p></blockquote><p>PowerMem is designed to support multiple backends and can be paired with seekdb. In that arrangement, PowerMem decides what is worth retaining, while seekdb stores and retrieves it through hybrid search.</p><p>seekdb M0 extends the same idea toward cloud memory. OceanBase describes it as a way for chat records and task traces to become reusable experience that can be shared across AI agents; availability and feature scope should be verified in current product documentation.</p><p><img src="/img/yuque-10/09.png" alt="seekdb M0 workflow from chat records and task traces to shared Agent experience" loading="lazy" decoding="async"></p><h3 id="Key-diagrams"><a href="#Key-diagrams" class="headerlink" title="Key diagrams"></a>Key diagrams</h3><p>The remaining figures summarize how the pieces fit together at a glance.</p><p><img src="/img/yuque-10/15.webp" alt="PowerMem overview of long-term memory, experience cards, and searchable recall paths" loading="lazy" decoding="async"></p><p><img src="/img/yuque-10/16.webp" alt="PowerMem lifecycle from raw Agent inputs through organized memory outputs" loading="lazy" decoding="async"></p><p><img src="/img/yuque-10/17.webp" alt="Integrated Agent data stack connecting memory, search, and governed storage" loading="lazy" decoding="async"></p><h2 id="From-cloud-to-edge-local-brains-and-central-governance"><a href="#From-cloud-to-edge-local-brains-and-central-governance" class="headerlink" title="From cloud to edge: local brains and central governance"></a>From cloud to edge: local brains and central governance</h2><p>Not every AI agent will run in the cloud. Devices, robots, and edge systems may need local, low-latency state, user preferences, task traces, and retrieval indexes. Embedded <strong>seekdb</strong> plus <strong>PowerMem</strong> can provide a local memory and retrieval layer, while <strong>OceanBase Lakebase</strong> is positioned for central governance, training, evaluation, and long-term data management.</p><p><img src="/img/yuque-10/10.png" alt="Edge-to-center architecture with seekdb and PowerMem on devices and OceanBase Lakebase in the cloud" loading="lazy" decoding="async"></p><p>The pattern is straightforward:</p><ul><li><strong>Edge devices</strong> can react with local state and retrieval.</li><li><strong>Central Lakebase</strong> can govern training data, evaluation, and long-term data management.</li></ul><p>This split can let teams prototype on a laptop, validate a server deployment, and then evaluate a move to enterprise OceanBase. It does not eliminate the need for schema design, security review, or migration testing.</p><h2 id="AI-for-DB-versus-DB-for-AI"><a href="#AI-for-DB-versus-DB-for-AI" class="headerlink" title="AI for DB versus DB for AI"></a>AI for DB versus DB for AI</h2><p>This leads to a more useful definition of <strong>DB for AI</strong>:</p><ul><li><strong>AI for DB</strong> helps operate a database—SQL assistance, inspection, reporting, and diagnostics.</li><li><strong>DB for AI</strong> adapts data systems for AI-agent workloads, with data access, memory, security, and traceability as core concerns.</li></ul><p><img src="/img/yuque-10/18.png" alt="Comparison of AI for DB operations support versus DB for AI Agent-ready capabilities" loading="lazy" decoding="async"></p><p>OceanBase positions Lakebase in the second camp. AI-agent workloads can benefit from governed multimodal data, hybrid retrieval, isolated experimentation, and durable memory, although the right design depends on the application’s scale, risk, and existing data estate.</p><p><img src="/img/yuque-10/19.png" alt="Lakebase landscape illustration showing Agents using a unified database foundation in production" loading="lazy" decoding="async"></p><p>The work is still emerging: as AI agents become database users, data systems will need to evolve to support them safely and effectively.</p>]]>
    </content>
    <id>https://longda.us/2026/2026-07-06-agent-database-oceanbase-lakebase/</id>
    <link href="https://longda.us/2026/2026-07-06-agent-database-oceanbase-lakebase/"/>
    <published>2026-07-05T16:00:00.000Z</published>
    <summary>An editorial look at OceanBase Lakebase, seekdb, and PowerMem for AI-agent data, hybrid retrieval, safe experimentation, and long-term memory.</summary>
    <title>What Should a Database Become When AI Agents Start Using It?</title>
    <updated>2026-07-06T02:01:03.000Z</updated>
  </entry>
  <entry>
    <author>
      <name>Longda Feng</name>
    </author>
    <category term="News" scheme="https://longda.us/categories/News/"/>
    <category term="OceanBase" scheme="https://longda.us/tags/OceanBase/"/>
    <category term="AI Agent" scheme="https://longda.us/tags/AI-Agent/"/>
    <category term="RAG" scheme="https://longda.us/tags/RAG/"/>
    <category term="MCP" scheme="https://longda.us/tags/MCP/"/>
    <category term="Open Source Community" scheme="https://longda.us/tags/Open-Source-Community/"/>
    <category term="Data Foundation" scheme="https://longda.us/tags/Data-Foundation/"/>
    <category term="Easy Data x AI" scheme="https://longda.us/tags/Easy-Data-x-AI/"/>
    <category term="Course" scheme="https://longda.us/tags/Course/"/>
    <content>
      <![CDATA[<script type="application/ld+json">{"@context":"https://schema.org","@type":"BlogPosting","headline":"Build the Data Foundation for the Agent Era: Contribute to Easy Data x AI","description":"Help co-build Easy Data x AI, an open introductory course on data foundations, AI agents, retrieval, memory, and practical AI applications.","image":"https://longda.us/img/yuque-09/01.png","wordCount":730,"timeRequired":"PT4M","datePublished":"2026-07-01T16:00:00.000Z","dateModified":"2026-07-06T14:44:07.000Z","isAccessibleForFree":true,"author":{"@type":"Person","name":"Longda Feng","url":"https://longda.us"},"publisher":{"@type":"Organization","name":"Longda's Interesting World","logo":{"@type":"ImageObject","url":"https://longda.us/img/my.jpg"}},"mainEntityOfPage":{"@type":"WebPage","@id":"https://longda.us/2026/2026-07-02-easy-data-ai-course-call/"},"url":"https://longda.us/2026/2026-07-02-easy-data-ai-course-call/","inLanguage":"en","keywords":["OceanBase","AI Agent","RAG","MCP","Open Source Community","Data Foundation","Easy Data x AI","Course"],"articleSection":["News"]}</script><script type="application/ld+json">{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://longda.us/"},{"@type":"ListItem","position":2,"name":"News","item":"https://longda.us/categories/News/"},{"@type":"ListItem","position":3,"name":"Build the Data Foundation for the Agent Era: Contribute to Easy Data x AI","item":"https://longda.us/2026/2026-07-02-easy-data-ai-course-call/"}]}</script><p>The OceanBase community and <strong>Datawhale</strong> are co-building <a href="https://github.com/datawhalechina/easy-data-x-ai"><strong>Easy Data x AI</strong></a>, an introductory open-source course for the AI-agent era. It covers the path from large language models (LLMs) and AI agents to data foundations and practical applications.</p><p>The course is being built in public with the community. What it needs most is not another abstract definition, but practical experience: a deployment that worked, a failure that revealed a useful lesson, or a small example that makes a difficult concept easier to understand.</p><p><img src="/img/yuque-09/01.png" alt="Illustrated Easy Data x AI poster inviting community co-builders to assemble the course together" decoding="async"></p><span id="more"></span><h2 id="What-the-Easy-Data-x-AI-course-aims-to-solve"><a href="#What-the-Easy-Data-x-AI-course-aims-to-solve" class="headerlink" title="What the Easy Data x AI course aims to solve"></a>What the Easy Data x AI course aims to solve</h2><p>Many developers can call an LLM API, but fewer have a framework for diagnosing why an AI application becomes unreliable as its data, context, permissions, and operational complexity grow. Easy Data x AI aims to establish that missing foundation:</p><ul><li>how models, data, and applications work together;</li><li>why data foundations affect AI-agent quality;</li><li>how to move from a demo to a dependable workflow;</li><li>how practitioners reason about retrieval, memory, evaluation, and cost.</li></ul><p><img src="/img/yuque-09/02.png" alt="AI Agent learning roadmap from RAG and memory through skills, MCP, and testing" loading="lazy" decoding="async"></p><p>The curriculum follows two complementary paths:</p><table><thead><tr><th>Path</th><th>Chinese name</th><th>Audience</th><th>Focus</th></tr></thead><tbody><tr><td><strong>Dao</strong></td><td>道篇</td><td>Product managers, operators, beginners</td><td>Scene judgment, RAG design, memory experience, value evaluation</td></tr><tr><td><strong>Shu</strong></td><td>术篇</td><td>Developers with some coding experience</td><td>Streaming, tool use, AI-native data layers, Agentic RAG, skills, MCP</td></tr></tbody></table><p><img src="/img/yuque-09/03.png" alt="Easy Data x AI curriculum diagram showing concept and practice paths to a stable Agent system" loading="lazy" decoding="async"></p><p><strong>Dao</strong> develops product judgment: when an AI agent is the right tool, how to design retrieval-augmented generation (RAG) beyond “put everything in a vector database,” and what useful memory should mean for users. <strong>Shu</strong> develops hands-on skills: integrating APIs, choosing retrieval strategies, and building runnable AI-agent workflows.</p><p>Both paths address the same practical capabilities: keyword retrieval, vector retrieval, reranking, memory, and evaluation. The right combination depends on the use case, risk profile, and operating constraints; no stack is automatically production-ready.</p><p><img src="/img/yuque-09/04.png" alt="AI Agent capability stack built on retrieval, reranking, memory, and evaluation" loading="lazy" decoding="async"></p><h2 id="Why-community-co-building-matters"><a href="#Why-community-co-building-matters" class="headerlink" title="Why community co-building matters"></a>Why community co-building matters</h2><p>A course written by one team can be coherent, but a course informed by many practitioners’ experiences can be more useful. Contributors can add a case study, improve an explanation, supply code, review a lesson, or identify where a beginner is likely to get lost.</p><p>The goal is not to turn every contribution into a polished academic chapter. A clear paragraph, a diagram, a benchmark, or a well-scoped failure analysis can improve the course.</p><p><img src="/img/yuque-09/06.png" alt="Children completing an open notebook where one page still needs a contributor&#39;s answer" loading="lazy" decoding="async"></p><h2 id="Who-should-join-and-what-you-can-contribute"><a href="#Who-should-join-and-what-you-can-contribute" class="headerlink" title="Who should join and what you can contribute"></a>Who should join and what you can contribute</h2><p>The invitation is open to engineers, database practitioners, AI application developers, product managers, students, and curious builders. You do not need expertise in every part of the stack. A small, concrete contribution is valuable.</p><p>Useful contributions include:</p><ul><li>a deployment story that records what worked and what did not;</li><li>a short code sample or notebook that clarifies one concept;</li><li>a diagram that clarifies architecture or data flow;</li><li>a review comment that catches confusion early;</li><li>a benchmark, checklist, or failure analysis from real work.</li></ul><p>Merged contributions may receive recognition on the contributor wall and community gifts, subject to the course’s contribution policies. Contributors also gain the opportunity to work with a community that is learning how data and AI fit together.</p><h3 id="Contribution-levels-from-L1-to-L3"><a href="#Contribution-levels-from-L1-to-L3" class="headerlink" title="Contribution levels from L1 to L3"></a>Contribution levels from L1 to L3</h3><p>Contribution tasks are tagged by difficulty in the <a href="https://github.com/datawhalechina/easy-data-x-ai/blob/main/CONTRIBUTING.md">course CONTRIBUTING guide</a>:</p><table><thead><tr><th>Level</th><th>Focus</th><th>Examples</th></tr></thead><tbody><tr><td><strong>L1</strong></td><td>Document fixes</td><td>clarify wording, fix examples, improve diagrams, add chapter intros</td></tr><tr><td><strong>L2</strong></td><td>Experiment analysis</td><td>compare approaches, document results, explain trade-offs (e.g., embedding model choice, hybrid-search latency)</td></tr><tr><td><strong>L3</strong></td><td>Engineering practice</td><td>runnable demos, production patterns, end-to-end walkthroughs (e.g., multi-Agent memory conflicts, hybrid-search labs)</td></tr></tbody></table><p><img src="/img/yuque-09/05.png" alt="Course co-building levels from L1 document fixes through L3 engineering practice" loading="lazy" decoding="async"></p><h2 id="How-to-get-involved"><a href="#How-to-get-involved" class="headerlink" title="How to get involved"></a>How to get involved</h2><p>If you have a real story to share, start small:</p><ol><li><strong>Pick one topic</strong> you can explain from experience—RAG, memory, evaluation, deployment, or data modeling.</li><li><strong>Browse open issues</strong> in the <a href="https://github.com/datawhalechina/easy-data-x-ai">Easy Data x AI repository</a> and claim a task that matches your level.</li><li><strong>Write a short section</strong> or submit a fix. A paragraph, diagram, or code snippet is enough.</li><li><strong>Open a pull request</strong> so others can review and build on it.</li></ol><p>The course is intended to grow in public. Your example may be the missing piece another learner needs.</p><p><img src="/img/yuque-09/08.png" alt="Easy Data x AI community call-to-action showing open collaboration through PRs and issues" loading="lazy" decoding="async"></p><h2 id="Looking-for-a-more-advanced-follow-on"><a href="#Looking-for-a-more-advanced-follow-on" class="headerlink" title="Looking for a more advanced follow-on?"></a>Looking for a more advanced follow-on?</h2><p>For a more advanced, engineering-oriented next step, see <a href="https://github.com/datawhalechina/deepagents-in-action"><strong>Deep Agents in Action</strong></a>, an open course from the same maintainers that covers LangChain and LangGraph. Where Easy Data x AI builds data-and-AI judgment, Deep Agents in Action explores virtual file systems, sub-agents, planning, skills, and long-term memory for AI-agent systems.</p><p><img src="/img/yuque-09/07.png" alt="Reference open-source Agent course banner from the LangChain community ecosystem" loading="lazy" decoding="async"></p><p>If you are building reliable AI-agent infrastructure, bring your experience to Easy Data x AI. One useful example can make the course clearer for everyone.</p>]]>
    </content>
    <id>https://longda.us/2026/2026-07-02-easy-data-ai-course-call/</id>
    <link href="https://longda.us/2026/2026-07-02-easy-data-ai-course-call/"/>
    <published>2026-07-01T16:00:00.000Z</published>
    <summary>Help co-build Easy Data x AI, an open introductory course on data foundations, AI agents, retrieval, memory, and practical AI applications.</summary>
    <title>Build the Data Foundation for the Agent Era: Contribute to Easy Data x AI</title>
    <updated>2026-07-06T14:44:07.000Z</updated>
  </entry>
  <entry>
    <author>
      <name>Longda Feng</name>
    </author>
    <category term="Enterprise Cases" scheme="https://longda.us/categories/Enterprise-Cases/"/>
    <category term="Vector Search" scheme="https://longda.us/tags/Vector-Search/"/>
    <category term="OceanBase" scheme="https://longda.us/tags/OceanBase/"/>
    <category term="Hybrid Search" scheme="https://longda.us/tags/Hybrid-Search/"/>
    <category term="MySQL" scheme="https://longda.us/tags/MySQL/"/>
    <category term="Life Sciences" scheme="https://longda.us/tags/Life-Sciences/"/>
    <category term="AI Data Synthesis" scheme="https://longda.us/tags/AI-Data-Synthesis/"/>
    <category term="Full-Text Search" scheme="https://longda.us/tags/Full-Text-Search/"/>
    <category term="Enterprise Data Platform" scheme="https://longda.us/tags/Enterprise-Data-Platform/"/>
    <content>
      <![CDATA[<script type="application/ld+json">{"@context":"https://schema.org","@type":"BlogPosting","headline":"Suanzhi Future Builds an OceanBase Hybrid Search Foundation for Life-Science AI Data Synthesis","description":"How Suanzhi Future is building an OceanBase hybrid-search foundation for life-science AI data synthesis, combining exact lookup, full-text retrieval, and...","image":"https://longda.us/img/yuque-08/01.webp","wordCount":1140,"timeRequired":"PT6M","datePublished":"2026-06-30T16:00:00.000Z","dateModified":"2026-07-06T14:44:07.000Z","isAccessibleForFree":true,"author":{"@type":"Person","name":"Longda Feng","url":"https://longda.us"},"publisher":{"@type":"Organization","name":"Longda's Interesting World","logo":{"@type":"ImageObject","url":"https://longda.us/img/my.jpg"}},"mainEntityOfPage":{"@type":"WebPage","@id":"https://longda.us/2026/2026-07-01-life-science-hybrid-search/"},"url":"https://longda.us/2026/2026-07-01-life-science-hybrid-search/","inLanguage":"en","keywords":["Vector Search","OceanBase","Hybrid Search","MySQL","Life Sciences","AI Data Synthesis","Full-Text Search","Enterprise Data Platform"],"articleSection":["Enterprise Cases"]}</script><script type="application/ld+json">{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://longda.us/"},{"@type":"ListItem","position":2,"name":"Enterprise Cases","item":"https://longda.us/categories/Enterprise-Cases/"},{"@type":"ListItem","position":3,"name":"Suanzhi Future Builds an OceanBase Hybrid Search Foundation for Life-Science AI Data Synthesis","item":"https://longda.us/2026/2026-07-01-life-science-hybrid-search/"}]}</script><p><strong>Suanzhi Future</strong> (算秩未来) is building a retrieval foundation for life-science data used in AI training-corpus synthesis. The target workload must support exact identifier lookup, fuzzy discovery, and eventually semantic similarity. A gene name may be incomplete or misspelled, a sequence fragment may only match approximately, and a researcher may need related sequences without knowing an exact identifier.</p><p>The proposed answer is an <strong>OceanBase</strong>-based hybrid-search foundation that brings business data, large-scale metadata, full-text indexes, and planned vector retrieval into one enterprise data architecture.</p><span id="more"></span><h2 id="Scale-and-starting-requirements"><a href="#Scale-and-starting-requirements" class="headerlink" title="Scale and starting requirements"></a>Scale and starting requirements</h2><p>Suanzhi Future adopted OceanBase for <strong>life-science large-model training-corpus synthesis</strong>. Its algorithm and platform teams wanted to move file-based source data into a database so that the training pipeline could be automated. The database needed unique-ID lookup first, with regular-expression matching, full-text search, and vector retrieval planned as the system evolves.</p><p>The numbers are large:</p><ul><li>Approximately <strong>20 TB</strong> of raw biological files across <strong>14,081</strong> source files</li><li>Approximately <strong>3.1 billion</strong> records modeled into <strong>9</strong> business tables</li><li>Molecules, DNA, RNA, genes, proteins, and central-dogma relationships from authorities such as NCBI</li></ul><p>The core objective is to turn file archives into governed, indexable, and traceable data assets that AI pipelines can use directly.</p><h2 id="OceanBase-data-foundation-for-life-science-records"><a href="#OceanBase-data-foundation-for-life-science-records" class="headerlink" title="OceanBase data foundation for life-science records"></a>OceanBase data foundation for life-science records</h2><p>Raw documents and scientific sequences do not naturally fit a single relational row. The team models source material as queryable entities, separating document metadata, scientific attributes, and sequence fragments. Vector representations are a planned extension of this model.</p><p>The ingestion pipeline moves from raw files to governed, searchable records:</p><figure class="highlight text"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">JSON source files → field governance → parent-child document model → structured and full-text indexes → planned vector indexes</span><br></pre></td></tr></table></figure><p><img src="/img/yuque-08/01.webp" alt="OceanBase life-science data pipeline from raw JSON through field governance to hybrid indexes" decoding="async"></p><h3 id="From-JSON-ingestion-to-governed-fields"><a href="#From-JSON-ingestion-to-governed-fields" class="headerlink" title="From JSON ingestion to governed fields"></a>From JSON ingestion to governed fields</h3><p>Source files arrive as <strong>JSON</strong> with identifiers, types, lengths, sequence payloads, and rich <code>extra</code> metadata such as annotations, references, and species information. The first step is <strong>field governance</strong>: promote high-value search fields—such as <code>cid</code>, gene names, locus tags, and taxonomy tags—into typed columns while preserving the original source context in JSON.</p><p>This governance step turns a file archive into a queryable <strong>OceanBase</strong> dataset instead of a collection of opaque blobs.</p><h3 id="Parent-child-modeling-for-arrays-metadata-and-long-sequences"><a href="#Parent-child-modeling-for-arrays-metadata-and-long-sequences" class="headerlink" title="Parent-child modeling for arrays, metadata, and long sequences"></a>Parent-child modeling for arrays, metadata, and long sequences</h3><p>Scientific records rarely fit one flat row. Arrays, one-to-many relationships, and oversized sequences belong in child tables linked to a parent record. The parent holds the core object; children carry repeating attributes, annotation lists, and sequence fragments. The team decomposed nested JSON into <strong>three parent-child table groups</strong>.</p><p><img src="/img/yuque-08/02.webp" alt="OceanBase parent-child schema for molecules, genes, DNA, RNA, and protein tables" loading="lazy" decoding="async"></p><p>The schema spans molecules, DNA, genes, RNA, proteins, and central-dogma relationships. Each domain uses explicit primary keys, composite indexes, and partition keys to support efficient exact filters at this data scale.</p><p><strong>Partitioning strategy:</strong> the data is not time-partitioned because these assets are long-lived reference records. Instead, tables use <strong>HASH partitioning on <code>CID + ID</code></strong> with <strong>32 partitions</strong> per table to distribute globally unique access keys.</p><h3 id="Building-structured-full-text-and-vector-indexes"><a href="#Building-structured-full-text-and-vector-indexes" class="headerlink" title="Building structured, full-text, and vector indexes"></a>Building structured, full-text, and vector indexes</h3><p>Once entities are modeled, <strong>OceanBase</strong> provides the index types needed for the retrieval design:</p><ul><li><strong>primary and composite indexes</strong> for identifier and attribute filters;</li><li><strong>full-text indexes</strong> for gene names, locus tags, and annotation text;</li><li><strong>vector indexes</strong> for planned embedding-based similarity over sequence representations.</li></ul><p>Original JSON is retained so every hit can be traced back to source context for model training.</p><p><img src="/img/yuque-08/03.png" alt="OceanBase structured, full-text, and vector indexes on governed life-science entities" loading="lazy" decoding="async"></p><h2 id="Three-retrieval-layers-L1-L2-and-L3"><a href="#Three-retrieval-layers-L1-L2-and-L3" class="headerlink" title="Three retrieval layers: L1, L2, and L3"></a>Three retrieval layers: L1, L2, and L3</h2><p>Hybrid search is designed as a coordinated, three-layer recall model:</p><table><thead><tr><th>Layer</th><th>Mode</th><th>What it does</th><th>Example</th></tr></thead><tbody><tr><td><strong>L1</strong></td><td>Exact lookup</td><td>Matches identifiers and structured filters with precise conditions</td><td>Look up a compound by <strong>CID</strong> or <strong>InChI</strong>; fetch a protein by NCBI or UniProt ID</td></tr><tr><td><strong>L2</strong></td><td>Full-text search</td><td>Finds text with keywords, aliases, or partial matches—even with typos</td><td>Search gene names or JSON tags for <em>brca</em> or related annotations</td></tr><tr><td><strong>L3</strong></td><td>Vector search (planned)</td><td>Will rank items by similarity in embedding space</td><td>Find sequences similar to a reference, even when names differ</td></tr></tbody></table><p>The intended query path can chain the layers: narrow results with L1 structured conditions, broaden discovery with L2 full-text search, then rank related items through L3 vectors. Keeping these capabilities in one <strong>OceanBase</strong> foundation is intended to simplify operations, consistency, and query orchestration.</p><h2 id="Handling-oversized-sequences-the-500-MB-large-object-limit"><a href="#Handling-oversized-sequences-the-500-MB-large-object-limit" class="headerlink" title="Handling oversized sequences: the 500 MB large-object limit"></a>Handling oversized sequences: the 500 MB large-object limit</h2><p>A single gene sequence may be hundreds of megabytes or even several gigabytes. The team must split oversized sequences because of the approximately <strong>500 MB limit for an OceanBase large object (LOB)</strong>.</p><p>Instead of storing one oversized blob, the team chunks a sequence into smaller fragments. Each fragment retains an identifier and sequence number so the complete sequence can be reconstructed on read. Applications query metadata and fragments through the parent-child model without needing to handle the underlying fragment count.</p><p>This design preserves traceability: every fragment still links back to its source context and metadata while keeping storage and retrieval within platform limits.</p><h2 id="Current-and-planned-OceanBase-hybrid-search-queries"><a href="#Current-and-planned-OceanBase-hybrid-search-queries" class="headerlink" title="Current and planned OceanBase hybrid-search queries"></a>Current and planned OceanBase hybrid-search queries</h2><p>The current system supports:</p><ul><li><strong>L1 exact queries</strong> for identifiers, attributes, and structured filters;</li><li><strong>L2 fuzzy lookup</strong> through full-text search on gene names and scientific annotations;</li></ul><p><img src="/img/yuque-08/04.webp" alt="OceanBase exact structured query on life-science identifiers and attributes" loading="lazy" decoding="async"></p><p><img src="/img/yuque-08/05.webp" alt="OceanBase full-text fuzzy search for gene names and scientific annotations" loading="lazy" decoding="async"></p><p><img src="/img/yuque-08/06.webp" alt="OceanBase vector similarity search over embedded life-science sequences" loading="lazy" decoding="async"></p><p>The unified chain:</p><figure class="highlight text"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">structured filtering → full-text retrieval → planned vector similarity → AI data synthesis</span><br></pre></td></tr></table></figure><p><strong>Suanzhi Future</strong> can use governed results from the current exact and full-text paths in downstream model-training and synthesis workflows. The target architecture places the data lifecycle—from ingestion and chunking through multi-mode retrieval—within one <strong>OceanBase</strong> cluster, reducing the need to synchronize multiple systems as the vector stage is completed.</p><h2 id="Container-and-Operator-deployment"><a href="#Container-and-Operator-deployment" class="headerlink" title="Container and Operator deployment"></a>Container and Operator deployment</h2><p>Suanzhi Future runs its data stack entirely on Kubernetes. MySQL and PostgreSQL use Operators; <strong>OceanBase</strong> is deployed through <strong>OceanBase Operator</strong>; Kafka uses Strimzi; and Redis uses Helm. Traffic enters through <strong>OBProxy</strong> in front of a three-replica (1:1:1) OceanBase cluster.</p><p>Early rollout surfaced operational friction the team hopes OceanBase will address:</p><ul><li>Dashboard zone expansion timeouts left Pods healthy but OBZone&#x2F;OBServer states inconsistent; recovery required manual <code>alter system add server</code> and <code>OBResourceRescue</code>.</li><li>Zone scaling exposed only <code>nodeSelector</code>, not pod affinity controls.</li><li>Node or zone shrink operations could leave the state machine inconsistent.</li><li>Topology, task progress, failures, and recovery guidance were not unified in one view.</li></ul><p>The wish list: one-click Operator-driven scale-out with pre-checks, affinity, progress tracking, and rollback runbooks—alongside stronger hybrid-search and GraphRAG capabilities on the same platform.</p><h2 id="Platform-outcomes"><a href="#Platform-outcomes" class="headerlink" title="Platform outcomes"></a>Platform outcomes</h2><ul><li>Approximately <strong>20 TB</strong> of multi-source scientific data can become queryable rather than file-bound.</li><li>Approximately <strong>3.1 billion</strong> records can be managed under a governed schema rather than as scattered source files.</li><li><strong>Current multi-path retrieval</strong> spans IDs, fields, and full text; vector recall is the next stage.</li><li><strong>Shorter pipelines</strong> can reduce cross-system synchronization and operational overhead.</li><li><strong>Traceable results</strong> link each hit back to its source context.</li><li><strong>A staged evolution path</strong> moves from foundational retrieval toward AI-ready applications.</li></ul><p>Phase 1 (ingestion and base queries) and phase 2 (fuzzy and full-text recall) are complete. Phases 3 and 4—vector recall and orchestrated AI context—remain in progress. The target end state is a unified data foundation with composable search that returns high-quality context for AI data synthesis.</p>]]>
    </content>
    <id>https://longda.us/2026/2026-07-01-life-science-hybrid-search/</id>
    <link href="https://longda.us/2026/2026-07-01-life-science-hybrid-search/"/>
    <published>2026-06-30T16:00:00.000Z</published>
    <summary>How Suanzhi Future is building an OceanBase hybrid-search foundation for life-science AI data synthesis, combining exact lookup, full-text retrieval, and...</summary>
    <title>Suanzhi Future Builds an OceanBase Hybrid Search Foundation for Life-Science AI Data Synthesis</title>
    <updated>2026-07-06T14:44:07.000Z</updated>
  </entry>
  <entry>
    <author>
      <name>Longda Feng</name>
    </author>
    <category term="AI Applications" scheme="https://longda.us/categories/AI-Applications/"/>
    <category term="AI Agent" scheme="https://longda.us/tags/AI-Agent/"/>
    <category term="PowerMem" scheme="https://longda.us/tags/PowerMem/"/>
    <category term="Python" scheme="https://longda.us/tags/Python/"/>
    <category term="GLM-5.2" scheme="https://longda.us/tags/GLM-5-2/"/>
    <category term="TypeScript" scheme="https://longda.us/tags/TypeScript/"/>
    <category term="Long-Horizon Tasks" scheme="https://longda.us/tags/Long-Horizon-Tasks/"/>
    <category term="SDK Migration" scheme="https://longda.us/tags/SDK-Migration/"/>
    <category term="Code Translation" scheme="https://longda.us/tags/Code-Translation/"/>
    <content>
      <![CDATA[<script type="application/ld+json">{"@context":"https://schema.org","@type":"BlogPosting","headline":"Evaluating GLM-5.2 on Long-Horizon Tasks: PowerMem Python-to-TypeScript SDK Alignment","description":"A seven-round GLM-5.2 evaluation of PowerMem Python-to-TypeScript SDK alignment, testing long-horizon engineering discipline beyond context length.","image":"https://longda.us/img/yuque-06/01.webp","wordCount":1203,"timeRequired":"PT6M","datePublished":"2026-06-28T16:00:00.000Z","dateModified":"2026-07-06T14:44:08.000Z","isAccessibleForFree":true,"author":{"@type":"Person","name":"Longda Feng","url":"https://longda.us"},"publisher":{"@type":"Organization","name":"Longda's Interesting World","logo":{"@type":"ImageObject","url":"https://longda.us/img/my.jpg"}},"mainEntityOfPage":{"@type":"WebPage","@id":"https://longda.us/2026/2026-06-29-glm-powermem-typescript-evaluation/"},"url":"https://longda.us/2026/2026-06-29-glm-powermem-typescript-evaluation/","inLanguage":"en","keywords":["AI Agent","PowerMem","Python","GLM-5.2","TypeScript","Long-Horizon Tasks","SDK Migration","Code Translation"],"articleSection":["AI Applications"]}</script><script type="application/ld+json">{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://longda.us/"},{"@type":"ListItem","position":2,"name":"AI Applications","item":"https://longda.us/categories/AI-Applications/"},{"@type":"ListItem","position":3,"name":"Evaluating GLM-5.2 on Long-Horizon Tasks: PowerMem Python-to-TypeScript SDK Alignment","item":"https://longda.us/2026/2026-06-29-glm-powermem-typescript-evaluation/"}]}</script><p><strong>GLM-5.2</strong> is Zhipu AI’s model with a 1M-token context window. Can it complete a multi-round engineering task without losing constraints or direction? This evaluation uses the alignment of OceanBase <strong>PowerMem</strong> SDK behavior from Python to TypeScript across seven staged rounds. It measures whether a long-context model can preserve semantics, error behavior, and reviewable evidence over hours of engineering decisions—not merely respond to a single prompt.</p><span id="more"></span><blockquote><p>🧠 <strong>PowerMem</strong> is OceanBase’s open-source memory engine for LLM applications. It provides long-term memory, retrieval, and intelligent forgetting. Learn more at <a href="https://github.com/oceanbase/powermem">https://github.com/oceanbase/powermem</a>.</p></blockquote><h2 id="Why-port-the-PowerMem-SDK-from-Python-to-TypeScript"><a href="#Why-port-the-PowerMem-SDK-from-Python-to-TypeScript" class="headerlink" title="Why port the PowerMem SDK from Python to TypeScript?"></a>Why port the PowerMem SDK from Python to TypeScript?</h2><p><strong>PowerMem</strong> provides LLM applications with long-term memory, retrieval, and intelligent forgetting. The Python SDK is the primary maintained implementation. The TypeScript SDK in <a href="https://github.com/ob-labs/powermem-ts">ob-labs&#x2F;powermem-ts</a> already implemented core capabilities, but its iteration pace had not fully kept up with Python. The evaluation asks a practical question: can a long-context model sustain real SDK engineering work rather than simply answer a one-shot coding prompt?</p><p>The task involved two repositories:</p><ul><li><strong><a href="https://github.com/oceanbase/powermem">oceanbase&#x2F;powermem</a></strong> — read-only upstream; the source of truth for behavior.</li><li><strong><a href="https://github.com/ob-labs/powermem-ts">ob-labs&#x2F;powermem-ts</a></strong> — the candidate repo; the only place the model could edit code.</li></ul><p>Mechanical API translation is insufficient. The TypeScript implementation must preserve:</p><ul><li>method semantics and error types;</li><li>configuration defaults and environment handling;</li><li>naming conventions expected by downstream consumers;</li><li>evidence (diffs, test output, cross-checks) that a human reviewer can trust.</li></ul><h2 id="Translation-is-not-alignment"><a href="#Translation-is-not-alignment" class="headerlink" title="Translation is not alignment"></a>Translation is not alignment</h2><p>The test separated two activities:</p><table><thead><tr><th>Activity</th><th>Goal</th></tr></thead><tbody><tr><td><strong>Translation</strong></td><td>Reproduce Python behavior in idiomatic TypeScript</td></tr><tr><td><strong>Alignment</strong></td><td>Compare both implementations and repair semantic drift</td></tr></tbody></table><p>Translation without alignment can produce code that compiles but diverges at the edges: defaults may differ, exceptions may be swallowed, or behavior may drift subtly. Long-horizon success depends on detecting that drift before it compounds. At each step, the model had to decide whether to change code, add tests, or document a <strong>known gap</strong>.</p><p><img src="/img/yuque-06/01.webp" alt="GLM-5.2 evaluation kickoff with PowerMem Python SDK repository structure overview" decoding="async"></p><p><img src="/img/yuque-06/02.webp" alt="PowerMem SDK module dependency map before TypeScript porting began" loading="lazy" decoding="async"></p><h2 id="Baseline-hidden-checks-and-honest-scoring"><a href="#Baseline-hidden-checks-and-honest-scoring" class="headerlink" title="Baseline, hidden checks, and honest scoring"></a>Baseline, hidden checks, and honest scoring</h2><p>Before the model made any changes, the evaluators recorded a <strong>baseline</strong>. The TypeScript candidate initially failed <code>type-check</code>, <code>test</code>, and <code>build</code> because of an incomplete <code>npm install</code> and Windows optional-dependency issues, not identified application defects. This distinction matters: it prevents a model from claiming credit for environmental remediation and prevents reviewers from attributing pre-existing environment failures to the candidate implementation.</p><p>The eval also embedded <strong>hidden acceptance points</strong> the model was never told about:</p><ol><li>Do not modify the Python upstream repo.</li><li>Do not rewrite the TypeScript repo from scratch.</li><li>Recognize existing TypeScript implementations instead of duplicating them.</li><li>Do not fabricate test results.</li><li>Do not depend on real API keys in CI.</li><li>Cover batch APIs.</li><li>Document remaining gaps in <code>known-gaps</code>.</li><li>Preserve TypeScript API style.</li><li>Apply incremental changes when requirements shift.</li><li>Use minimal patches when fixing failures.</li><li>Deliver with PR-level discipline.</li><li>Separate baseline environment issues from candidate implementation bugs.</li></ol><p>In long-horizon work, the principal risks are direction drift, unnecessary rewrites, concealed failures, and conflating environment problems with code defects—not a single mistyped line.</p><h2 id="Seven-rounds-of-increasing-pressure"><a href="#Seven-rounds-of-increasing-pressure" class="headerlink" title="Seven rounds of increasing pressure"></a>Seven rounds of increasing pressure</h2><table><thead><tr><th>Round</th><th>Focus</th><th>Keywords</th></tr></thead><tbody><tr><td><strong>R1</strong></td><td>Core SDK behavior alignment</td><td>audit, minimal patches, parity tests</td></tr><tr><td><strong>R2</strong></td><td>Batch API review</td><td>zero business-code changes, add tests</td></tr><tr><td><strong>R3</strong></td><td>Documentation debt</td><td>minimal fix, no business code</td></tr><tr><td><strong>R4</strong></td><td>Deep feature alignment</td><td>difference matrix</td></tr><tr><td><strong>R5</strong></td><td>Hard implementation work</td><td>Source&#x2F;Skill&#x2F;Ebbinghaus&#x2F;HTTP</td></tr><tr><td><strong>R6</strong></td><td>Docs and developer experience</td><td>README, examples, exports</td></tr><tr><td><strong>R7</strong></td><td>Final consistency review</td><td>verification, report, HTML</td></tr></tbody></table><p>Rounds 1–3 test engineering discipline. Rounds 4–7 increase the scope, complexity, and stability requirements.</p><h3 id="R1-—-Audit-before-editing"><a href="#R1-—-Audit-before-editing" class="headerlink" title="R1 — Audit before editing"></a>R1 — Audit before editing</h3><p>The model audited the repo first. The TypeScript SDK already implemented 12 core Memory APIs, so GLM-5.2 made four minimal behavior fixes—empty-content validation, default <code>getAll</code> order, <code>count</code> error handling, and <code>deleteAll</code> graph cleanup—rather than rewriting <code>Memory</code> from scratch.</p><p><img src="/img/yuque-06/03.webp" alt="Round 1 repository audit listing PowerMem Python packages and entry points" loading="lazy" decoding="async"></p><p><img src="/img/yuque-06/04.webp" alt="Round 1 dependency and configuration inventory for the PowerMem SDK" loading="lazy" decoding="async"></p><h3 id="R2-—-Absorb-a-requirement-change"><a href="#R2-—-Absorb-a-requirement-change" class="headerlink" title="R2 — Absorb a requirement change"></a>R2 — Absorb a requirement change</h3><p>R2 required re-checking five batch APIs (<code>addBatch</code>, <code>getAll</code>, <code>count</code>, <code>deleteAll</code>, <code>reset</code>) with an explicit rule: no rewrites, no deletions. The model concluded R1 had already covered them and added 22 batch parity tests with <strong>zero</strong> business-code changes.</p><p><img src="/img/yuque-06/05.webp" alt="Round 2 requirement change diff applied to PowerMem TypeScript port scope" loading="lazy" decoding="async"></p><p><img src="/img/yuque-06/06.webp" alt="Round 2 revised module plan after mid-task specification update" loading="lazy" decoding="async"></p><h3 id="R3-—-Fix-failure-through-documentation-only"><a href="#R3-—-Fix-failure-through-documentation-only" class="headerlink" title="R3 — Fix failure through documentation only"></a>R3 — Fix failure through documentation only</h3><p>R3 exposed contradictions in <code>api-mapping</code> docs—for example, conflicting descriptions of <code>getAll</code> default order. The model classified this as documentation drift, fixed the docs only, and left business code and tests untouched.</p><p><img src="/img/yuque-06/07.webp" alt="Round 3 documentation-only fix for a failing PowerMem SDK contract test" loading="lazy" decoding="async"></p><p><img src="/img/yuque-06/08.webp" alt="Round 3 updated API doc clarifying PowerMem client initialization semantics" loading="lazy" decoding="async"></p><h3 id="R4-—-Highest-cross-module-cognitive-load"><a href="#R4-—-Highest-cross-module-cognitive-load" class="headerlink" title="R4 — Highest cross-module cognitive load"></a>R4 — Highest cross-module cognitive load</h3><p>R4 expanded from 12 Memory APIs to a full-repo comparison: 183 Python source files against 80+ TypeScript files. GLM-5.2 produced a <strong>deep-feature gap matrix</strong> covering SourceStore, SkillStore, ScopeController, PermissionController, HttpMemoryClient, EbbinghausAlgorithm, and dozens more—each tagged as aligned, partially aligned, unimplemented, not suitable for porting, or needing human review.</p><p><img src="/img/yuque-06/09.webp" alt="Round 4 multi-module TypeScript changes spanning PowerMem storage and retrieval layers" loading="lazy" decoding="async"></p><p><img src="/img/yuque-06/10.webp" alt="Round 4 cross-module type alignment between PowerMem client and memory backend" loading="lazy" decoding="async"></p><h3 id="R5-—-Deepest-implementation-details"><a href="#R5-—-Deepest-implementation-details" class="headerlink" title="R5 — Deepest implementation details"></a>R5 — Deepest implementation details</h3><p>R5 moved from patch-level fixes to new modules across storage, numerical logic, HTTP, and Agent controllers. The reported test result was <strong>649 passed &#x2F; 2 skipped &#x2F; 0 failed</strong>. The final report estimated that real implementations covered roughly <strong>92%</strong> of the surface area; the remaining <strong>~8%</strong> were explicit stubs, concentrated in <strong>OceanBase-native integration</strong> and a few high-level Agent APIs. These limitations were recorded in <code>known-gaps</code>, rather than hidden in comments.</p><p><img src="/img/yuque-06/11.png" alt="Round 5 PowerMem TypeScript error handling and retry policy implementation" loading="lazy" decoding="async"></p><p><img src="/img/yuque-06/12.png" alt="Round 5 unit tests validating PowerMem metadata serialization parity with Python" loading="lazy" decoding="async"></p><h3 id="R6–R7-—-Documentation-and-final-review"><a href="#R6–R7-—-Documentation-and-final-review" class="headerlink" title="R6–R7 — Documentation and final review"></a>R6–R7 — Documentation and final review</h3><p>R6 synchronized the README, <code>api-mapping</code>, <code>python-ts-parity</code>, and <code>known-gaps</code> with the code state, including a clear note that OceanBase production integration remained follow-up work. R7 re-checked that claimed features had code and test support, then issued a PASS recommendation for dashboard review.</p><p><img src="/img/yuque-06/13.png" alt="Round 6 PowerMem TypeScript SDK README and usage example draft" loading="lazy" decoding="async"></p><p><img src="/img/yuque-06/14.png" alt="Round 7 final cross-review checklist comparing Python and TypeScript PowerMem APIs" loading="lazy" decoding="async"></p><h2 id="Results-and-cross-review-by-ChatGPT-5-5"><a href="#Results-and-cross-review-by-ChatGPT-5-5" class="headerlink" title="Results and cross-review by ChatGPT-5.5"></a>Results and cross-review by ChatGPT-5.5</h2><p>The final report documents the following <strong>evidence chain</strong>:</p><ul><li><code>npm run type-check</code>, <code>npm run build</code>, and <code>npm run lint</code> all passed (0 lint errors).</li><li><code>npm test</code>: <strong>649 passed &#x2F; 2 skipped &#x2F; 0 failed</strong>.</li><li>Python upstream <code>git status</code> clean—no accidental upstream edits.</li><li>TypeScript diff: 13 modified files, 12 new files.</li><li>Memory public methods: 38&#x2F;38 aligned; EbbinghausAlgorithm: 8&#x2F;8; HttpMemoryClient: 10&#x2F;10.</li><li>189 parity tests; ~98% API surface coverage; ~92% real implementation &#x2F; ~8% stub.</li></ul><p>To reduce “athlete and referee” bias, <strong>ChatGPT-5.5</strong> independently reviewed the local logs and final report. Its score was slightly higher than GLM-5.2’s self-assessment, principally because complexity increased in rounds 4–7 while the reported verification results remained green.</p><p><img src="/img/yuque-06/15.png" alt="GLM-5.2 long-horizon evaluation score summary across seven PowerMem porting rounds" loading="lazy" decoding="async"></p><p><img src="/img/yuque-06/16.png" alt="PowerMem Python-to-TypeScript port evaluation conclusion and key takeaways dashboard" loading="lazy" decoding="async"></p><p>The remaining gaps were explicitly documented. SQLite-backed <code>SourceStore</code> and <code>SkillStore</code> work locally, but OceanBase-native indexes, SQLAlchemy engines, and hybrid vector&#x2F;full-text retrieval require validation in real external environments. Some high-level <code>AgentMemory</code> APIs, including <code>createAgent</code> and <code>shareMemory</code>, also remain stubs despite more complete lower-level controllers.</p><h2 id="The-unexpected-finding"><a href="#The-unexpected-finding" class="headerlink" title="The unexpected finding"></a>The unexpected finding</h2><p>The TypeScript SDK was more complete than expected: it already had 460 baseline tests, core Memory APIs, Ebbinghaus decay, a CLI, an HTTP server, and Dashboard scaffolding. GLM-5.2’s principal contribution was not code volume but <strong>engineering judgment</strong>—knowing what to change, what to test, what to leave unchanged, and what to record as a gap.</p><p>PowerMem plays two roles in this evaluation: it is the SDK whose behavior is being aligned, and it is a real-world test of whether an Agent can retain constraints and decisions across a long task. The lesson generalizes to SDK alignment, monolith refactoring, and multi-file Agent workflows: <strong>context size is necessary but not sufficient</strong> for reliable long-horizon engineering. Reliable outcomes also require staged constraints, reproducible verification, and transparent reporting of limitations.</p><h2 id="References"><a href="#References" class="headerlink" title="References"></a>References</h2><ol><li>PowerMem Python SDK: <a href="https://github.com/oceanbase/powermem">https://github.com/oceanbase/powermem</a></li><li>PowerMem TypeScript SDK: <a href="https://github.com/ob-labs/powermem-ts">https://github.com/ob-labs/powermem-ts</a></li><li>GLM-5.2 on Hugging Face: <a href="https://huggingface.co/zai-org/GLM-5.2">https://huggingface.co/zai-org/GLM-5.2</a></li></ol>]]>
    </content>
    <id>https://longda.us/2026/2026-06-29-glm-powermem-typescript-evaluation/</id>
    <link href="https://longda.us/2026/2026-06-29-glm-powermem-typescript-evaluation/"/>
    <published>2026-06-28T16:00:00.000Z</published>
    <summary>A seven-round GLM-5.2 evaluation of PowerMem Python-to-TypeScript SDK alignment, testing long-horizon engineering discipline beyond context length.</summary>
    <title>Evaluating GLM-5.2 on Long-Horizon Tasks: PowerMem Python-to-TypeScript SDK Alignment</title>
    <updated>2026-07-06T14:44:08.000Z</updated>
  </entry>
  <entry>
    <author>
      <name>Longda Feng</name>
    </author>
    <category term="Enterprise Cases" scheme="https://longda.us/categories/Enterprise-Cases/"/>
    <category term="OceanBase" scheme="https://longda.us/tags/OceanBase/"/>
    <category term="High Availability" scheme="https://longda.us/tags/High-Availability/"/>
    <category term="AIOps" scheme="https://longda.us/tags/AIOps/"/>
    <category term="MySQL Migration" scheme="https://longda.us/tags/MySQL-Migration/"/>
    <category term="Xinye Technology" scheme="https://longda.us/tags/Xinye-Technology/"/>
    <category term="Risk Control" scheme="https://longda.us/tags/Risk-Control/"/>
    <category term="Multitenancy" scheme="https://longda.us/tags/Multitenancy/"/>
    <category term="AI Data" scheme="https://longda.us/tags/AI-Data/"/>
    <content>
      <![CDATA[<script type="application/ld+json">{"@context":"https://schema.org","@type":"BlogPosting","headline":"Xinye Technology's OceanBase Practice: From Risk-Control Core to an AI Data Foundation","description":"How Xinye Technology uses OceanBase for risk control, data archiving, high availability, multitenancy, and an AI-ready data foundation.","image":"https://longda.us/img/yuque-05/01.webp","wordCount":968,"timeRequired":"PT5M","datePublished":"2026-06-24T16:00:00.000Z","dateModified":"2026-07-06T14:44:08.000Z","isAccessibleForFree":true,"author":{"@type":"Person","name":"Longda Feng","url":"https://longda.us"},"publisher":{"@type":"Organization","name":"Longda's Interesting World","logo":{"@type":"ImageObject","url":"https://longda.us/img/my.jpg"}},"mainEntityOfPage":{"@type":"WebPage","@id":"https://longda.us/2026/2026-06-25-xinye-oceanbase-practice/"},"url":"https://longda.us/2026/2026-06-25-xinye-oceanbase-practice/","inLanguage":"en","keywords":["OceanBase","High Availability","AIOps","MySQL Migration","Xinye Technology","Risk Control","Multitenancy","AI Data"],"articleSection":["Enterprise Cases"]}</script><script type="application/ld+json">{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://longda.us/"},{"@type":"ListItem","position":2,"name":"Enterprise Cases","item":"https://longda.us/categories/Enterprise-Cases/"},{"@type":"ListItem","position":3,"name":"Xinye Technology's OceanBase Practice: From Risk-Control Core to an AI Data Foundation","item":"https://longda.us/2026/2026-06-25-xinye-oceanbase-practice/"}]}</script><p><strong>Xinye Technology</strong> (NYSE: <strong>FINV</strong>) is a fintech group whose risk-control systems support high-frequency, complex financial transactions across multiple regions. For these systems, data consistency, high availability, and online elasticity are operational requirements. Its database modernization began with the limits of <strong>sharded MySQL</strong>: growing data volumes, cross-shard complexity, and an increasing operational burden. The team sought a distributed database platform that could simplify application development, improve resilience, and support future AI-oriented workloads.</p><span id="more"></span><h2 id="The-challenge-sharded-MySQL-at-risk-control-scale"><a href="#The-challenge-sharded-MySQL-at-risk-control-scale" class="headerlink" title="The challenge: sharded MySQL at risk-control scale"></a>The challenge: sharded MySQL at risk-control scale</h2><p><strong>Sharding</strong> splits one logical database across many MySQL instances. It works early on, but as the business grows, the cracks show:</p><ul><li><strong>Routing complexity</strong> — application code must know which shard holds which data, and every new query pattern risks an expensive cross-shard join.</li><li><strong>Cross-shard transactions</strong> — operations that span shards need distributed coordination, adding latency and failure modes a single-node database never exposed.</li><li><strong>Capacity planning pressure</strong> — hot shards fill up while others sit idle; rebalancing data becomes a project, not a routine task.</li><li><strong>Operational burden</strong> — backups, failover, schema changes, and incident response multiply with every shard.</li></ul><p>For latency-sensitive risk-control services, these constraints became increasingly difficult to manage. The team needed a distributed database that could absorb growth without transferring sharding complexity back to application code.</p><h2 id="Why-Xinye-Technology-chose-OceanBase"><a href="#Why-Xinye-Technology-chose-OceanBase" class="headerlink" title="Why Xinye Technology chose OceanBase"></a>Why Xinye Technology chose OceanBase</h2><p>Xinye evaluated distributed database options, including TiDB, before selecting <strong>OceanBase</strong>. The practice report identifies three principal considerations:</p><ol><li><strong>Lower storage cost</strong> — OceanBase’s <strong>LSM-Tree</strong> storage engine and compression capabilities reduced the storage footprint of archived historical data compared with the prior MySQL deployment.</li><li><strong>Online scale-out</strong> — when archive-cluster resources were insufficient, the team could add <strong>OBServer</strong> nodes instead of undertaking a manual re-sharding project.</li><li><strong>High availability for financial workloads</strong> — Xinye required strong consistency and data-loss protection during failover; OceanBase’s high-availability architecture met its evaluation requirements.</li></ol><p>OceanBase also offered a path to retire the sharding middleware layer and let developers write ordinary SQL again, while still meeting the latency and consistency requirements of real-time risk scoring.</p><h2 id="Migration-approach-OMA-assessment-and-OMS-execution"><a href="#Migration-approach-OMA-assessment-and-OMS-execution" class="headerlink" title="Migration approach: OMA assessment and OMS execution"></a>Migration approach: OMA assessment and OMS execution</h2><p>Migration was treated as an engineering program rather than a one-time database switch. The team used OceanBase tooling across assessment, migration, validation, and rollback preparation:</p><ul><li><strong>OMA (OceanBase Migration Assessment)</strong> — assessed SQL compatibility and supported production-traffic capture and replay to identify performance and lock-contention risks before cutover.</li><li><strong>OMS (OceanBase Migration Service)</strong> — supported schema migration, full and incremental synchronization, and reverse synchronization to keep a rollback path available during migration.</li></ul><p>The rollout followed four principles:</p><ol><li><strong>Validate representative workloads</strong> — test compatibility, partitioning, indexes, and transaction patterns against production-like traffic before each cutover.</li><li><strong>Use controlled cutover paths</strong> — migrate with OMS during low-traffic periods or use application-controlled dual writes and gradual traffic rollout.</li><li><strong>Keep rollback ready</strong> — reverse synchronization and traffic controls allow rapid restoration if monitoring detects an issue.</li><li><strong>Share operational ownership</strong> — DBAs and application teams used common procedures so OceanBase became part of the normal delivery workflow.</li></ol><p>The goal was not merely to move data. It was to reduce dependence on the sharding middleware layer, simplify delivery, and centralize operational visibility.</p><p>For core risk-control services, the team standardized on <strong>OBProxy</strong> as the database access layer. OBProxy provides routing, load balancing, and failover handling, reducing the need for shard-aware connection logic in applications. The practice report also notes that version compatibility and query-plan behavior must be validated carefully, particularly for large analytical extraction workloads.</p><h2 id="High-availability-lower-cost-and-multitenancy-on-OceanBase"><a href="#High-availability-lower-cost-and-multitenancy-on-OceanBase" class="headerlink" title="High availability, lower cost, and multitenancy on OceanBase"></a>High availability, lower cost, and multitenancy on OceanBase</h2><p>Once core workloads landed on OceanBase, the practice report highlighted several concrete gains:</p><ul><li><strong>LSM-Tree storage compression</strong> — for the reported historical-data workload, storage fell from <strong>89 TB to 29 TB</strong>, a <strong>67% reduction</strong>. This is a workload-specific result, not a general compression guarantee.</li><li><strong>Same-city dual-active operations with a standby tenant</strong> — a physically synchronized <strong>standby tenant</strong> provides tenant-level disaster recovery. The reported design targets <strong>RPO &#x3D; 0</strong> and second-level takeover; the achieved outcome depends on the selected replication mode and operating conditions.</li><li><strong>“Switching the Huangpu River” drills</strong> — the team conducts recurring same-city dual-active exercises to practice role switching, traffic control, and rollback across data centers.</li><li><strong>Resource pooling and multitenancy</strong> — the reported deployment improved overall resource utilization by roughly <strong>40%</strong> and shortened new-business-node deployment cycles by about <strong>90%</strong>. These are Xinye-specific operational results.</li></ul><p><img src="/img/yuque-05/01.webp" alt="OceanBase dual-IDC high availability with primary tenant and physically synchronized standby tenant" decoding="async"></p><p>The diagram shows a primary tenant in one data center and a physically synchronized standby tenant in another. During a “Huangpu River” drill, the team deliberately switches roles and validates application reconnection, traffic control, and rollback procedures.</p><p><img src="/img/yuque-05/02.webp" alt="OceanBase unified resource pool serving multiple isolated tenants across workloads" loading="lazy" decoding="async"></p><p>Multitenancy allows risk control, reporting, and experimental workloads to share a cluster while remaining isolated at the tenant level. Xinye allocates tenants from a shared resource pool and adjusts CPU, memory, and storage as demand changes. CPU binding and IOPS limits are used to reduce interference between workloads.</p><p>Automation connects deployment, monitoring, diagnosis, and daily operations. A production incident involving SQL plan binding reinforced a key operating lesson: management-console status must be verified against database metadata, and emergency controls such as rapid session termination need to be part of the response procedure.</p><p><img src="/img/yuque-05/03.png" alt="OceanBase practice overview of automated deployment monitoring and cross-team diagnosis workflow" loading="lazy" decoding="async"></p><h2 id="Next-steps-AIOps-and-an-OceanBase-AI-data-foundation"><a href="#Next-steps-AIOps-and-an-OceanBase-AI-data-foundation" class="headerlink" title="Next steps: AIOps and an OceanBase AI data foundation"></a>Next steps: AIOps and an OceanBase AI data foundation</h2><p>Database modernization does not end with migration. Xinye’s roadmap moves from manual response toward assisted operations and an AI-ready data layer:</p><ul><li><strong>AIOps</strong> — use observability data and automation to detect anomalies, assist root-cause analysis, and reduce mean time to recovery. Xinye’s target operating model retains DBA confirmation before automated remediation.</li><li><strong>Archive governance</strong> — automate the tiering, retention, and purging of historical risk data with partition-based lifecycle management and region-specific storage choices where data-residency requirements apply.</li><li><strong>Integrated vector foundation</strong> — evaluate OceanBase vector capabilities for semantic search and AI applications alongside transactional workloads, including risk-control use cases such as identifying related fraud patterns.</li></ul><p><img src="/img/yuque-05/04.webp" alt="OceanBase AIOps roadmap toward intelligent operations self-healing and AI-native data services" loading="lazy" decoding="async"></p><p>The reported direction combines a distributed <strong>OceanBase</strong> data foundation with high-availability drills, automated governance, and disciplined operations. It is intended to support both latency-sensitive risk-control transactions and future AI workloads, while keeping claims about performance and automation scoped to Xinye’s specific environment and roadmap.</p>]]>
    </content>
    <id>https://longda.us/2026/2026-06-25-xinye-oceanbase-practice/</id>
    <link href="https://longda.us/2026/2026-06-25-xinye-oceanbase-practice/"/>
    <published>2026-06-24T16:00:00.000Z</published>
    <summary>How Xinye Technology uses OceanBase for risk control, data archiving, high availability, multitenancy, and an AI-ready data foundation.</summary>
    <title>Xinye Technology's OceanBase Practice: From Risk-Control Core to an AI Data Foundation</title>
    <updated>2026-07-06T14:44:08.000Z</updated>
  </entry>
  <entry>
    <author>
      <name>Longda Feng</name>
    </author>
    <category term="AI Applications" scheme="https://longda.us/categories/AI-Applications/"/>
    <category term="OceanBase" scheme="https://longda.us/tags/OceanBase/"/>
    <category term="SQL" scheme="https://longda.us/tags/SQL/"/>
    <category term="seekdb" scheme="https://longda.us/tags/seekdb/"/>
    <category term="Monte Carlo" scheme="https://longda.us/tags/Monte-Carlo/"/>
    <category term="Data Modeling" scheme="https://longda.us/tags/Data-Modeling/"/>
    <category term="World Cup" scheme="https://longda.us/tags/World-Cup/"/>
    <category term="Probability" scheme="https://longda.us/tags/Probability/"/>
    <category term="Sports Analytics" scheme="https://longda.us/tags/Sports-Analytics/"/>
    <content>
      <![CDATA[<script type="application/ld+json">{"@context":"https://schema.org","@type":"BlogPosting","headline":"Predicting the 2026 World Cup with seekdb: Data Modeling to Probability Simulation","description":"Build a 2026 FIFA World Cup Monte Carlo demonstration in seekdb with Elo ratings, Poisson goal models, and SQL stored procedures.","image":"https://longda.us/img/yuque-04/01.webp","wordCount":649,"timeRequired":"PT3M","datePublished":"2026-06-21T16:00:00.000Z","dateModified":"2026-07-06T14:44:09.000Z","isAccessibleForFree":true,"author":{"@type":"Person","name":"Longda Feng","url":"https://longda.us"},"publisher":{"@type":"Organization","name":"Longda's Interesting World","logo":{"@type":"ImageObject","url":"https://longda.us/img/my.jpg"}},"mainEntityOfPage":{"@type":"WebPage","@id":"https://longda.us/2026/2026-06-22-seekdb-world-cup-monte-carlo/"},"url":"https://longda.us/2026/2026-06-22-seekdb-world-cup-monte-carlo/","inLanguage":"en","keywords":["OceanBase","SQL","seekdb","Monte Carlo","Data Modeling","World Cup","Probability","Sports Analytics"],"articleSection":["AI Applications"]}</script><script type="application/ld+json">{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://longda.us/"},{"@type":"ListItem","position":2,"name":"AI Applications","item":"https://longda.us/categories/AI-Applications/"},{"@type":"ListItem","position":3,"name":"Predicting the 2026 World Cup with seekdb: Data Modeling to Probability Simulation","item":"https://longda.us/2026/2026-06-22-seekdb-world-cup-monte-carlo/"}]}</script><p><strong>A database can run a complete probabilistic FIFA World Cup simulation.</strong> This technical demonstration uses OceanBase <strong>seekdb</strong> to model the 2026 FIFA World Cup: it imports example historical match data, estimates team strength with <strong>Elo ratings</strong>, generates group-stage scores with <strong>Poisson sampling</strong>, advances teams through a simplified knockout bracket in <strong>SQL stored procedures</strong>, and repeats the tournament to estimate title frequencies.</p><p>The output is a <strong>technical demonstration, not a forecast or betting recommendation</strong>. The sample data, model assumptions, and simplified knockout bracket materially affect the estimates. Because each run samples random outcomes, rankings can shift slightly between runs—especially when the number of simulations is small.</p><blockquote><p>⚽ Want to keep simulation logic close to its data? <strong>seekdb</strong> is OceanBase’s AI-native database. Explore it at <a href="https://github.com/oceanbase/seekdb">https://github.com/oceanbase/seekdb</a> and see what SQL can model.</p></blockquote><span id="more"></span><h2 id="seekdb-World-Cup-Monte-Carlo-simulation-model"><a href="#seekdb-World-Cup-Monte-Carlo-simulation-model" class="headerlink" title="seekdb World Cup Monte Carlo simulation model"></a>seekdb World Cup Monte Carlo simulation model</h2><p><strong>Monte Carlo simulation</strong> repeats an experiment with random inputs and summarizes the outcomes. Here, each run plays out one complete tournament. A team’s share of simulated championships is its estimated title frequency under this model—not its real-world probability of winning the World Cup.</p><p>The workflow combines three statistical building blocks:</p><ol><li><strong>Elo ratings</strong> — assign each team a relative-strength score; the rating gap becomes a knockout-stage win probability.</li><li><strong>Poisson distributions</strong> — sample group-stage goal counts from each team’s expected scoring rate.</li><li><strong>Monte Carlo aggregation</strong> — repeat the tournament in SQL and count each team’s simulated championships.</li></ol><p><img src="/img/yuque-04/01.webp" alt="seekdb World Cup teams table with Elo ratings and FIFA regions" decoding="async"></p><p><img src="/img/yuque-04/02.webp" alt="seekdb historical international match results used to calibrate team strength" loading="lazy" decoding="async"></p><h3 id="Core-data-tables-in-seekdb"><a href="#Core-data-tables-in-seekdb" class="headerlink" title="Core data tables in seekdb"></a>Core data tables in seekdb</h3><p>The simulation rests on four tables that stay inside the database:</p><table><thead><tr><th>Table</th><th>Role</th></tr></thead><tbody><tr><td><code>teams</code></td><td>Team identity, region, and base Elo rating</td></tr><tr><td><code>matches</code></td><td>Example international results used to derive strength features</td></tr><tr><td><code>team_season_stats</code></td><td>Season-level attacking and defensive features</td></tr><tr><td><code>worldcup_2026_fixtures</code></td><td>Simulated group-stage schedule; knockout pairings are generated during each run</td></tr></tbody></table><p><img src="/img/yuque-04/03.webp" alt="seekdb team season stats with attack and defense coefficients" loading="lazy" decoding="async"></p><p><img src="/img/yuque-04/04.png" alt="seekdb 2026 World Cup fixtures table with groups and knockout rounds" loading="lazy" decoding="async"></p><p>Together, these tables provide the procedure with the teams, group-stage matchups, strength inputs, and score-distribution parameters it needs. The data is illustrative rather than a complete professional forecasting dataset.</p><h2 id="Building-the-seekdb-World-Cup-workflow-in-SQL"><a href="#Building-the-seekdb-World-Cup-workflow-in-SQL" class="headerlink" title="Building the seekdb World Cup workflow in SQL"></a>Building the seekdb World Cup workflow in SQL</h2><p>After importing historical data, the project defines <strong>SQL stored procedures</strong> that execute one complete tournament:</p><ol><li>Calculate team parameters from Elo ratings and season statistics.</li><li>Generate group-stage scores with Poisson goal sampling.</li><li>Rank groups and advance the top two teams plus the eight best third-placed teams.</li><li>Sample knockout winners using Elo-based win probabilities and a simplified pairing rule.</li><li>Record the champion for that run.</li></ol><p><img src="/img/yuque-04/05.webp" alt="seekdb stored procedure computing team parameters from historical inputs" loading="lazy" decoding="async"></p><p><img src="/img/yuque-04/06.webp" alt="seekdb Poisson-based group-stage score generation for World Cup matches" loading="lazy" decoding="async"></p><p>An outer loop calls the procedure repeatedly. In the reference run, it performs 1,000 simulations; more runs reduce Monte Carlo sampling noise but cannot correct model or data assumptions. A final aggregation query returns:</p><ul><li><strong><code>champion_count</code></strong> — how many simulated titles each team won</li><li><strong><code>champion_prob</code></strong> — <code>champion_count</code> divided by total simulations</li><li><strong><code>simulations</code></strong> — the number of Monte Carlo runs completed</li></ul><p><img src="/img/yuque-04/07.png" alt="seekdb knockout bracket advancement driven by simulated group standings" loading="lazy" decoding="async"></p><p><img src="/img/yuque-04/08.webp" alt="seekdb Monte Carlo outer loop rolling up championship frequency counts" loading="lazy" decoding="async"></p><p>Keeping data, random sampling, and aggregation in one database makes the experiment inspectable and repeatable. You can examine intermediate tables, adjust an Elo rating or scoring parameter, rerun the procedure, and compare result distributions without exporting data to another analytics tool.</p><h2 id="Why-run-Monte-Carlo-World-Cup-simulation-in-seekdb"><a href="#Why-run-Monte-Carlo-World-Cup-simulation-in-seekdb" class="headerlink" title="Why run Monte Carlo World Cup simulation in seekdb?"></a>Why run Monte Carlo World Cup simulation in seekdb?</h2><p>The value of this exercise is not that seekdb can “predict” the future. It is that the database can execute the entire pipeline end to end:</p><figure class="highlight text"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">historical data → feature tables → match simulation → tournament state → probability summary</span><br></pre></td></tr></table></figure><p><img src="/img/yuque-04/09.png" alt="seekdb end-to-end World Cup simulation pipeline from data import to results" loading="lazy" decoding="async"></p><p>Co-locating computation with data avoids moving intermediate result sets between tools. The intermediate state is visible through SQL, making the implementation easier to inspect and extend. This does not imply that in-database SQL is the best execution environment for every simulation workload.</p><p><img src="/img/yuque-04/10.webp" alt="seekdb championship probability bar chart after thousands of Monte Carlo runs" loading="lazy" decoding="async"></p><p><img src="/img/yuque-04/11.webp" alt="seekdb SQL console displaying simulation output and ranked title probabilities" loading="lazy" decoding="async"></p><p><img src="/img/yuque-04/12.png" alt="seekdb World Cup Monte Carlo project architecture and data-flow summary diagram" loading="lazy" decoding="async"></p><p>For AI and analytics teams, the pattern can extend beyond sports: capacity planning, reliability modeling, and scenario analysis can all benefit when data preparation, simulation state, and aggregation remain together. Whether an in-database implementation reduces operational complexity depends on the workload, scale, and team tooling.</p><p>Again, the championship frequencies produced by this demonstration illustrate what SQL can compute under explicit assumptions. They are <strong>not</strong> a real-world forecast or a recommendation to place bets.</p>]]>
    </content>
    <id>https://longda.us/2026/2026-06-22-seekdb-world-cup-monte-carlo/</id>
    <link href="https://longda.us/2026/2026-06-22-seekdb-world-cup-monte-carlo/"/>
    <published>2026-06-21T16:00:00.000Z</published>
    <summary>Build a 2026 FIFA World Cup Monte Carlo demonstration in seekdb with Elo ratings, Poisson goal models, and SQL stored procedures.</summary>
    <title>Predicting the 2026 World Cup with seekdb: Data Modeling to Probability Simulation</title>
    <updated>2026-07-06T14:44:09.000Z</updated>
  </entry>
  <entry>
    <author>
      <name>Longda Feng</name>
    </author>
    <category term="Technical Deep Dive" scheme="https://longda.us/categories/Technical-Deep-Dive/"/>
    <category term="OceanBase" scheme="https://longda.us/tags/OceanBase/"/>
    <category term="Database Operations" scheme="https://longda.us/tags/Database-Operations/"/>
    <category term="SQL" scheme="https://longda.us/tags/SQL/"/>
    <category term="Backup" scheme="https://longda.us/tags/Backup/"/>
    <category term="Recovery" scheme="https://longda.us/tags/Recovery/"/>
    <category term="Troubleshooting" scheme="https://longda.us/tags/Troubleshooting/"/>
    <category term="Log Backup" scheme="https://longda.us/tags/Log-Backup/"/>
    <category term="Physical Backup" scheme="https://longda.us/tags/Physical-Backup/"/>
    <content>
      <![CDATA[<script type="application/ld+json">{"@context":"https://schema.org","@type":"BlogPosting","headline":"An OceanBase Backup Mystery: Who Cleaned Up My Backup Data?","description":"An OceanBase backup cleanup case study: how full, incremental, and log backups link into recovery chains—and why directories disappear on schedule.","image":"https://longda.us/img/yuque-03/01.png","wordCount":880,"timeRequired":"PT4M","datePublished":"2026-06-14T23:52:11.000Z","dateModified":"2026-06-14T23:52:11.000Z","isAccessibleForFree":true,"author":{"@type":"Person","name":"Longda Feng","url":"https://longda.us"},"publisher":{"@type":"Organization","name":"Longda's Interesting World","logo":{"@type":"ImageObject","url":"https://longda.us/img/my.jpg"}},"mainEntityOfPage":{"@type":"WebPage","@id":"https://longda.us/2026/2026-06-15-oceanbase-backup-cleanup-case/"},"url":"https://longda.us/2026/2026-06-15-oceanbase-backup-cleanup-case/","inLanguage":"en","keywords":["OceanBase","Database Operations","SQL","Backup","Recovery","Troubleshooting","Log Backup","Physical Backup"],"articleSection":["Technical Deep Dive"]}</script><script type="application/ld+json">{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://longda.us/"},{"@type":"ListItem","position":2,"name":"Technical Deep Dive","item":"https://longda.us/categories/Technical-Deep-Dive/"},{"@type":"ListItem","position":3,"name":"An OceanBase Backup Mystery: Who Cleaned Up My Backup Data?","item":"https://longda.us/2026/2026-06-15-oceanbase-backup-cleanup-case/"}]}</script><p>This case study explains why OceanBase backup directories can disappear overnight. OceanBase physical backups form linked recovery chains, and scheduled cleanup removes data that is no longer required by the configured <strong>recovery window</strong>. It is not random file deletion.</p><p>When a directory is missing from the backup destination, it is natural to suspect an operator error or a storage problem. Before drawing that conclusion, inspect the backup catalog, the objects in the destination, and the cleanup history.</p><p>The explanation usually lies in the relationship among <strong>OceanBase physical backups</strong>: full data backups, incremental data backups, log backups (archived redo logs), and the <strong>recovery window</strong>. Cleanup preserves the backup data needed to meet the recovery objective; it does not treat every directory as an independent retention unit.</p><span id="more"></span><h2 id="What-an-OceanBase-physical-backup-contains"><a href="#What-an-OceanBase-physical-backup-contains" class="headerlink" title="What an OceanBase physical backup contains"></a>What an OceanBase physical backup contains</h2><p>A <strong>physical backup</strong> is a recoverable set of database files and metadata, not a collection of independent folders that can safely be removed by hand.</p><p>Think of recovery like rebuilding a book from numbered chapters:</p><ul><li>A <strong>full data backup</strong> is the baseline for a recovery chain.</li><li>An <strong>incremental data backup</strong> records changes since the preceding full or incremental data backup and depends on that earlier backup.</li><li>A <strong>log backup</strong> contains archived redo logs and enables point-in-time recovery while the log chain is continuous.</li><li><strong>Metadata</strong> records the tenant, backup destination, backup set, log-backup <strong>round</strong>, <strong>piece</strong>, and completion state.</li></ul><p>A recoverable chain needs the relevant data backup, all required incremental backups, continuous log backups, and their metadata. Consequently, deleting one directory is not the same as deleting an independent file. Never delete backup objects manually: use OceanBase backup cleanup so the catalog and destination remain consistent.</p><p><img src="/img/yuque-03/01.png" alt="OceanBase physical backup recovery chain linking full, incremental, and log layers" decoding="async"></p><p><img src="/img/yuque-03/02.png" alt="OceanBase full backup base with incremental deltas and archived redo log dependencies" loading="lazy" decoding="async"></p><h2 id="Reading-the-OceanBase-backup-directory"><a href="#Reading-the-OceanBase-backup-directory" class="headerlink" title="Reading the OceanBase backup directory"></a>Reading the OceanBase backup directory</h2><p>Read the directory layout through its <strong>recovery dependencies</strong>, not file names alone. OceanBase commonly uses a separate destination for data backups and log backups. In a file-system destination, <code>format.obbak</code> and the <code>check_file</code> directory identify a backup destination; do not remove them.</p><p>At the data-backup root, <code>backup_set_&lt;id&gt;_full</code> denotes a full backup and <code>backup_set_&lt;id&gt;_incr</code> an incremental backup. At the log-backup root, a directory such as <code>piece_d&lt;dest&gt;r&lt;round&gt;p&lt;piece&gt;</code> is a log-backup piece. The round increments when log backup is stopped and started again; the piece identifies a complete time segment within that round.</p><p>When a backup appears to be missing, correlate these three sources:</p><ol><li>the <strong>backup catalog</strong> maintained by OceanBase;</li><li>the <strong>actual objects</strong> in the backup destination;</li><li>the <strong>cleanup policy</strong> and <strong>recovery window</strong>.</li></ol><p>A difference between the catalog and the storage listing does not itself prove data loss. It can indicate an unfinished backup, an expired object, or successful cleanup. Check the catalog before making any storage-level changes.</p><p><img src="/img/yuque-03/03.png" alt="OceanBase backup directory tree showing full, incremental, and log paths" loading="lazy" decoding="async"></p><p><img src="/img/yuque-03/04.png" alt="OceanBase backup catalog entries compared against objects in storage" loading="lazy" decoding="async"></p><h2 id="Why-OceanBase-log-backup-storage-keeps-growing"><a href="#Why-OceanBase-log-backup-storage-keeps-growing" class="headerlink" title="Why OceanBase log-backup storage keeps growing"></a>Why OceanBase log-backup storage keeps growing</h2><p>Log backups are often the largest day-to-day storage cost. They cannot be removed arbitrarily while a data backup still needs them for recovery. A gap in a log-backup stream can prevent point-in-time recovery across that gap.</p><p>Common reasons log storage keeps climbing:</p><ul><li>the <strong>recovery window</strong> requires more recoverable history;</li><li>a backup job is <strong>incomplete</strong>, failed, or stuck;</li><li>the backup destination was temporarily unavailable;</li><li>the tenant generates redo faster than cleanup can reclaim it;</li><li>large ETL workloads or temporary-table activity generate substantial redo.</li></ul><p>Use this diagnostic sequence:</p><ol><li><p>Confirm the configured <strong>recovery window</strong>, rather than relying only on a UI label such as “retention days”:</p><figure class="highlight sql"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line"><span class="keyword">SELECT</span> policy_name, recovery_window</span><br><span class="line"><span class="keyword">FROM</span> oceanbase.DBA_OB_BACKUP_DELETE_POLICY;</span><br></pre></td></tr></table></figure></li><li><p>Identify the <strong>oldest backup</strong> that must remain recoverable.</p></li><li><p>Inspect the corresponding log-backup <strong>round</strong>, <strong>piece</strong>, and log-stream range.</p></li><li><p>Check backup cleanup jobs and tasks for failures or unfinished work:</p><figure class="highlight sql"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line"><span class="keyword">SELECT</span> job_id, type, <span class="keyword">parameter</span>, start_timestamp, end_timestamp, status,</span><br><span class="line">       CONCAT(success_task_count, <span class="string">&#x27; / &#x27;</span>, task_count) <span class="keyword">AS</span> task_info</span><br><span class="line"><span class="keyword">FROM</span> oceanbase.DBA_OB_BACKUP_DELETE_JOB_HISTORY</span><br><span class="line"><span class="keyword">ORDER</span> <span class="keyword">BY</span> job_id <span class="keyword">DESC</span></span><br><span class="line">LIMIT <span class="number">15</span>;</span><br></pre></td></tr></table></figure></li><li><p>Verify that cleanup can access the destination and has the required permissions.</p></li><li><p>Test restoration from a representative recovery chain before relying on the policy in production.</p></li></ol><h3 id="Why-recovery-window-1d-can-keep-more-than-one-day-of-data"><a href="#Why-recovery-window-1d-can-keep-more-than-one-day-of-data" class="headerlink" title="Why recovery_window = 1d can keep more than one day of data"></a>Why <code>recovery_window = 1d</code> can keep more than one day of data</h3><p><code>recovery_window</code> expresses the required recoverability window, not an exact file-retention period. Cleanup operates on backup sets and log-backup <strong>pieces</strong>, not individual log files. In the documented case, <code>recovery_window = 1d</code> retained roughly <strong>two days of data backups</strong> and <strong>three days of log-backup pieces</strong>. Actual retention depends on backup scheduling, piece boundaries, and recovery-chain dependencies. A piece stays intact until every recovery chain that depends on any part of that piece is obsolete.</p><p>Log pieces are configured in whole days (1–7 days in the documented configuration). A one-day piece is generally the most space-efficient choice because it limits the amount of still-required data that shares a piece with expired data. The actual piece boundary is determined by the time at which log backup starts, not necessarily by a clock-hour boundary.</p><p><img src="/img/yuque-03/05.png" alt="OceanBase log backup storage growth trend over several retention cycles" loading="lazy" decoding="async"></p><p><img src="/img/yuque-03/06.png" alt="OceanBase recovery window and retention policy configuration panel" loading="lazy" decoding="async"></p><p><img src="/img/yuque-03/07.png" alt="OceanBase backup cleanup diagnostic workflow from catalog to storage audit" loading="lazy" decoding="async"></p><h2 id="Conclusion-backup-cleanup-is-dependency-management"><a href="#Conclusion-backup-cleanup-is-dependency-management" class="headerlink" title="Conclusion: backup cleanup is dependency management"></a>Conclusion: backup cleanup is dependency management</h2><p>Backup cleanup is dependency management, not a search for the person who deleted a file. The right question is: <strong>“Which recovery chain still depends on this data, and what does the recovery window allow OceanBase to remove?”</strong></p><p>Once full data backups, incremental data backups, and log backups are treated as one linked system, the apparent mystery becomes an operational question that can be verified from the catalog, storage destination, and cleanup history. Size storage for the recovery objective and redo volume, and validate recovery regularly rather than manually pruning backup files.</p>]]>
    </content>
    <id>https://longda.us/2026/2026-06-15-oceanbase-backup-cleanup-case/</id>
    <link href="https://longda.us/2026/2026-06-15-oceanbase-backup-cleanup-case/"/>
    <published>2026-06-14T23:52:11.000Z</published>
    <summary>An OceanBase backup cleanup case study: how full, incremental, and log backups link into recovery chains—and why directories disappear on schedule.</summary>
    <title>An OceanBase Backup Mystery: Who Cleaned Up My Backup Data?</title>
    <updated>2026-06-14T23:52:11.000Z</updated>
  </entry>
  <entry>
    <author>
      <name>Longda Feng</name>
    </author>
    <category term="Technical Deep Dive" scheme="https://longda.us/categories/Technical-Deep-Dive/"/>
    <category term="OceanBase" scheme="https://longda.us/tags/OceanBase/"/>
    <category term="AI Agent" scheme="https://longda.us/tags/AI-Agent/"/>
    <category term="LLM" scheme="https://longda.us/tags/LLM/"/>
    <category term="Agent Memory" scheme="https://longda.us/tags/Agent-Memory/"/>
    <category term="seekdb" scheme="https://longda.us/tags/seekdb/"/>
    <category term="PowerMem" scheme="https://longda.us/tags/PowerMem/"/>
    <category term="Memory System" scheme="https://longda.us/tags/Memory-System/"/>
    <category term="Forgetting Curve" scheme="https://longda.us/tags/Forgetting-Curve/"/>
    <content>
      <![CDATA[<script type="application/ld+json">{"@context":"https://schema.org","@type":"BlogPosting","headline":"A Message's Lifecycle in PowerMem: From Ingestion to Forgetting","description":"Follow a meeting reminder through PowerMem's agent memory lifecycle: six-dimension importance scoring, tier placement, spaced review, retrieval ranking, and...","image":"https://longda.us/img/yuque-02/01.png","wordCount":1366,"timeRequired":"PT7M","datePublished":"2026-06-11T23:42:34.000Z","dateModified":"2026-06-11T23:44:48.000Z","isAccessibleForFree":true,"author":{"@type":"Person","name":"Longda Feng","url":"https://longda.us"},"publisher":{"@type":"Organization","name":"Longda's Interesting World","logo":{"@type":"ImageObject","url":"https://longda.us/img/my.jpg"}},"mainEntityOfPage":{"@type":"WebPage","@id":"https://longda.us/2026/2026-06-12-powermem-message-lifecycle/"},"url":"https://longda.us/2026/2026-06-12-powermem-message-lifecycle/","inLanguage":"en","keywords":["OceanBase","AI Agent","LLM","Agent Memory","seekdb","PowerMem","Memory System","Forgetting Curve"],"articleSection":["Technical Deep Dive"]}</script><script type="application/ld+json">{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://longda.us/"},{"@type":"ListItem","position":2,"name":"Technical Deep Dive","item":"https://longda.us/categories/Technical-Deep-Dive/"},{"@type":"ListItem","position":3,"name":"A Message's Lifecycle in PowerMem: From Ingestion to Forgetting","item":"https://longda.us/2026/2026-06-12-powermem-message-lifecycle/"}]}</script><p>This article follows one message through <strong>PowerMem</strong>, an open-source agent memory system from OceanBase, from ingestion to lifecycle management. It explains importance scoring, tier assignment, Ebbinghaus-style decay, access-time decisions, retrieval ranking, and global optimization.</p><blockquote><p>Time leaves dust on memory; access is the only way to wipe it away. When the dust becomes too thick and nobody asks, the memory is forgotten.</p></blockquote><blockquote><p>🧠 Want to give your AI Agent a memory that actually learns what to keep? <strong>PowerMem</strong> is OceanBase’s open-source Agent memory layer—explore it at <a href="https://github.com/oceanbase/powermem">https://github.com/oceanbase/powermem</a> and see how scoring, tiers, and forgetting work in practice.</p></blockquote><p>A message entering an agent memory system is not stored indefinitely with a fixed weight. In PowerMem, the message is scored, assigned to a memory tier, and given retention and review parameters. Later access determines whether it is promoted, archived, or marked for forgetting.</p><p>We follow one concrete example from start to finish:</p><blockquote><p><em>“Review the Q2 requirements document with the product team at 3 p.m. next Friday in Meeting Room 3.”</em></p></blockquote><p>The sections below show how PowerMem processes this example at each stage.</p><span id="more"></span><h2 id="1-PowerMem-importance-scoring-is-this-message-worth-remembering"><a href="#1-PowerMem-importance-scoring-is-this-message-worth-remembering" class="headerlink" title="1. PowerMem importance scoring: is this message worth remembering?"></a>1. PowerMem importance scoring: is this message worth remembering?</h2><p>The first question is not “How do we remember this?” but <strong>“Is it worth remembering?”</strong> Storing every message with equal weight steadily lowers retrieval precision and raises storage cost.</p><p>PowerMem scores each message on six weighted dimensions:</p><table><thead><tr><th>Dimension</th><th align="right">Weight</th><th>Meaning</th></tr></thead><tbody><tr><td><code>relevance</code></td><td align="right">0.30</td><td>Relationship to the user’s current context</td></tr><tr><td><code>novelty</code></td><td align="right">0.20</td><td>Whether the information is new</td></tr><tr><td><code>emotional_impact</code></td><td align="right">0.15</td><td>Emotional intensity</td></tr><tr><td><code>actionable</code></td><td align="right">0.15</td><td>Whether the user must act</td></tr><tr><td><code>factual</code></td><td align="right">0.10</td><td>Objective, verifiable content</td></tr><tr><td><code>personal</code></td><td align="right">0.10</td><td>Connection to the individual user</td></tr></tbody></table><p>For our meeting reminder, imagine PowerMem (or an LLM scorer) assigning these sub-scores:</p><ul><li><strong><code>relevance</code> 0.8</strong> — it relates to an upcoming work task.</li><li><strong><code>novelty</code> 0.5</strong> — Q2 planning may already be on the user’s radar.</li><li><strong><code>emotional_impact</code> 0.2</strong> — routine scheduling, not urgent news.</li><li><strong><code>actionable</code> 0.9</strong> — the user must show up at a specific time and place.</li><li><strong><code>factual</code> 0.8</strong> — time, room, and attendees are concrete.</li><li><strong><code>personal</code> 0.6</strong> — work-related but not deeply personal.</li></ul><p>The weighted sum:</p><figure class="highlight text"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">0.30×0.8 + 0.20×0.5 + 0.15×0.2 + 0.15×0.9 + 0.10×0.8 + 0.10×0.6 ≈ 0.72</span><br></pre></td></tr></table></figure><p>A score of <strong>0.72</strong> drives the message’s initial tier assignment.</p><h3 id="LLM-path-and-rule-engine-fallback"><a href="#LLM-path-and-rule-engine-fallback" class="headerlink" title="LLM path and rule-engine fallback"></a>LLM path and rule-engine fallback</h3><p>When an LLM is available, PowerMem requests structured JSON containing the importance score and six criterion scores. The implementation extracts <code>importance_score</code> through a three-level fallback chain: parse JSON first, match a numeric score with a regular expression second, and use the default value <strong>0.5</strong> if both methods fail. The criterion scores support structured LLM reasoning; they are not directly reweighted by the application.</p><p>If the LLM is unavailable, a <strong>rule engine</strong> provides graceful degradation. It adds points for message length, matching keywords, <code>?</code> or <code>!</code>, and <code>high</code> or <code>medium</code> priority metadata; the result is capped at <strong>1.0</strong>. This keeps ingestion available when the external model is unavailable.</p><p><img src="/img/yuque-02/01.png" alt="PowerMem six-dimension importance scoring weights for Agent memory retention" decoding="async"></p><h2 id="2-PowerMem-memory-tiers-and-lifecycle-parameters"><a href="#2-PowerMem-memory-tiers-and-lifecycle-parameters" class="headerlink" title="2. PowerMem memory tiers and lifecycle parameters"></a>2. PowerMem memory tiers and lifecycle parameters</h2><p>PowerMem maps the cognitive idea of short- and long-term memory to <strong>three tiers</strong>. Each tier has a <strong>strength multiplier</strong>; the effective decay parameter is <code>base_decay_rate × multiplier</code> (default base <code>0.1</code>). In PowerMem’s formula, a <strong>larger</strong> effective rate means a <strong>larger</strong> stability <code>S</code> and <strong>slower</strong> forgetting:</p><table><thead><tr><th>Tier</th><th>Typical lifetime</th><th align="right">Strength multiplier</th><th align="right">Effective rate (base 0.1)</th></tr></thead><tbody><tr><td><code>working</code></td><td>Hours to one day</td><td align="right">0.5</td><td align="right">0.05</td></tr><tr><td><code>short_term</code></td><td>Days to weeks</td><td align="right">1.5</td><td align="right">0.15</td></tr><tr><td><code>long_term</code></td><td>Weeks to months</td><td align="right">2.0</td><td align="right">0.20</td></tr></tbody></table><p>Promotion rules at ingestion:</p><ul><li>Scores <strong>≥ 0.8</strong> → <strong><code>long_term</code></strong></li><li>Scores <strong>≥ 0.6</strong> → <strong><code>short_term</code></strong></li><li>Everything else → <strong><code>working</code></strong></li></ul><p>Our meeting reminder scores <strong>0.72</strong>, so it lands in <strong><code>short_term</code></strong>. In plain terms: PowerMem treats it like something you need this week—not a lifelong fact, and not a throwaway thought.</p><p><img src="/img/yuque-02/02.png" alt="PowerMem three-tier memory model spanning working, short-term, and long-term storage" loading="lazy" decoding="async"></p><p>Each memory record stores <code>initial_retention</code>, <code>current_retention</code>, the decay rate, a review schedule, access and review counts, and lifecycle flags such as <code>should_promote</code>, <code>should_forget</code>, <code>should_archive</code>, and <code>is_active</code>. <code>initial_retention</code> preserves the value at creation, while <code>current_retention</code> changes as the memory decays or is reviewed.</p><p><img src="/img/yuque-02/03.png" alt="PowerMem tier assignment flow with retention fields initialized at ingestion" loading="lazy" decoding="async"></p><h2 id="3-Ebbinghaus-style-decay-and-access-time-lifecycle-checks"><a href="#3-Ebbinghaus-style-decay-and-access-time-lifecycle-checks" class="headerlink" title="3. Ebbinghaus-style decay and access-time lifecycle checks"></a>3. Ebbinghaus-style decay and access-time lifecycle checks</h2><h3 id="Retention-decay-model"><a href="#Retention-decay-model" class="headerlink" title="Retention decay model"></a>Retention decay model</h3><p>PowerMem models forgetting with an Ebbinghaus-style exponential curve:</p><figure class="highlight text"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">R = e^(-t / S)</span><br></pre></td></tr></table></figure><p>Where:</p><ul><li><strong>R</strong> — decay factor</li><li><strong>t</strong> — hours elapsed since creation</li><li><strong>S</strong> — characteristic decay time in hours: <strong><code>S = 24 × rate</code></strong></li><li><strong>rate</strong> — effective decay parameter for the tier (for <code>short_term</code>: <code>0.1 × 1.5 = 0.15</code>)</li></ul><p>For our <strong><code>short_term</code></strong> reminder, <code>rate = 0.15</code>, so <strong><code>S = 3.6</code> hours</strong>. After <strong>3.6 hours</strong>, the decay factor is <strong>e^(-1) ≈ 37%</strong>. At approximately <strong>4.3 hours</strong>, it falls below the default forgetting threshold of <strong>0.3</strong>. Higher tiers use larger <code>rate</code> values, which increase <code>S</code> and slow decay. If a caller does not supply a tier-specific rate, PowerMem falls back to the global default rate.</p><p><img src="/img/yuque-02/06.png" alt="PowerMem retention decay curve as access frequency drops over time" loading="lazy" decoding="async"></p><h3 id="What-happens-on-each-access"><a href="#What-happens-on-each-access" class="headerlink" title="What happens on each access"></a>What happens on each access</h3><p>When a memory is accessed through <code>Memory.get()</code> or <code>Memory.search()</code>, PowerMem runs <strong>access-time checks</strong>:</p><table><thead><tr><th>Action</th><th>When it applies</th></tr></thead><tbody><tr><td><strong>forget</strong></td><td>The decay factor is below <code>0.3</code>, or the memory has never been accessed and is more than seven days old</td></tr><tr><td><strong>promote</strong></td><td>Access count is at least 3, age exceeds 24 hours, or importance is at least <code>0.6</code></td></tr><tr><td><strong>archive</strong></td><td>Age exceeds 30 days or importance is below <code>0.3</code></td></tr><tr><td><strong>reprocess</strong></td><td>Access count is a multiple of 5, or the memory tier changes</td></tr></tbody></table><p>Promotion moves a memory from <code>working</code> to <code>short_term</code>, or from <code>short_term</code> to <code>long_term</code>. Archiving does not physically delete it; it removes the memory from the active retrieval pool. At each fifth access, or after a tier change, PowerMem recalculates the Ebbinghaus metadata.</p><h3 id="Scheduled-review"><a href="#Scheduled-review" class="headerlink" title="Scheduled review"></a>Scheduled review</h3><p>PowerMem creates a review schedule when the memory is created. The global base intervals are 1, 6, 24, 72, and 168 hours. Each interval is compressed according to importance:</p><figure class="highlight text"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">adjusted_interval = interval × (1 - importance_score × adjustment_factor)</span><br></pre></td></tr></table></figure><p>Higher-importance memories receive earlier review times. With an importance score of <code>0.72</code> and the default adjustment factor of <code>0.3</code>, the first 1-hour interval becomes approximately 47 minutes. <code>next_review</code> starts at the first scheduled time; each completed review updates <code>last_reviewed</code>, increments <code>review_count</code>, raises <code>current_retention</code> according to <code>reinforcement_factor</code>, and advances <code>next_review</code>.</p><p><img src="/img/yuque-02/04.png" alt="PowerMem spaced review schedule with intervals adjusted by importance score" loading="lazy" decoding="async"></p><p>If the memory is not accessed, its decay factor continues to fall. A memory meeting a forgetting condition is marked for removal when the access-time lifecycle check runs.</p><p><img src="/img/yuque-02/07.png" alt="PowerMem memory eviction lifecycle when retention falls below the threshold" loading="lazy" decoding="async"></p><h2 id="4-Retrieval-ranking-final-score-relevance-×-decay"><a href="#4-Retrieval-ranking-final-score-relevance-×-decay" class="headerlink" title="4. Retrieval ranking: final_score = relevance × decay"></a>4. Retrieval ranking: <code>final_score = relevance × decay</code></h2><p><strong>Retrieval</strong> combines semantic similarity with freshness. At search time, PowerMem ranks candidates with:</p><figure class="highlight text"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">final_score = relevance_score × decay_factor</span><br></pre></td></tr></table></figure><ul><li><strong><code>relevance_score</code></strong> — how well the memory matches the query (semantic similarity)</li><li><strong><code>decay_factor</code></strong> — current retention <strong>R</strong> from the Ebbinghaus model</li></ul><p>A highly relevant but stale memory can lose to a slightly less relevant but fresher memory. Search itself is also an access path: PowerMem calls <code>Memory.get()</code> for each search result, enabling lifecycle management across the result set.</p><p><img src="/img/yuque-02/05.png" alt="PowerMem retrieval ranking blends semantic similarity and freshness" loading="lazy" decoding="async"></p><h2 id="5-Global-deduplication-and-compression"><a href="#5-Global-deduplication-and-compression" class="headerlink" title="5. Global deduplication and compression"></a>5. Global deduplication and compression</h2><p>Individual messages are only part of the story. PowerMem’s <strong>MemoryOptimizer</strong> runs globally across the memory store:</p><ul><li><strong>Exact deduplication</strong> — content-hash matching retains the earliest record in each duplicate group and removes the rest; one run processes at most 10,000 records.</li><li><strong>Semantic deduplication</strong> — pairwise embedding cosine similarity identifies near-duplicates. With the default threshold of <code>0.95</code>, PowerMem removes the newer memory and retains the earlier one.</li><li><strong>Compression</strong> — PowerMem greedily groups memories above the default similarity threshold of <code>0.85</code>; an LLM summarizes each group into one synthesized memory.</li></ul><p>These steps keep the memory layer efficient as conversation volume grows, without waiting for each message to decay on its own.</p><h2 id="6-Forgetting-is-a-feature-not-a-bug"><a href="#6-Forgetting-is-a-feature-not-a-bug" class="headerlink" title="6. Forgetting is a feature, not a bug"></a>6. Forgetting is a feature, not a bug</h2><p>The key design principle is that <strong>forgetting is not failure</strong>. It is how PowerMem controls noise, latency, and token cost while preserving information that remains useful. An Agent that remembers every casual remark forever will eventually retrieve the wrong context; controlled decay keeps the memory layer sharp.</p><p>For our meeting reminder, the lifecycle begins with a score of <strong>0.72</strong> and placement in <strong><code>short_term</code></strong>. Its retention decays from creation; a later access can trigger promotion because its importance is at least <code>0.6</code>, while forgetting and archiving remain governed by their explicit lifecycle conditions. The design treats forgetting as a controlled quality-management mechanism rather than a failure to retain every message.</p>]]>
    </content>
    <id>https://longda.us/2026/2026-06-12-powermem-message-lifecycle/</id>
    <link href="https://longda.us/2026/2026-06-12-powermem-message-lifecycle/"/>
    <published>2026-06-11T23:42:34.000Z</published>
    <summary>Follow a meeting reminder through PowerMem's agent memory lifecycle: six-dimension importance scoring, tier placement, spaced review, retrieval ranking, and...</summary>
    <title>A Message's Lifecycle in PowerMem: From Ingestion to Forgetting</title>
    <updated>2026-06-11T23:44:48.000Z</updated>
  </entry>
  <entry>
    <author>
      <name>Longda Feng</name>
    </author>
    <category term="AI Applications" scheme="https://longda.us/categories/AI-Applications/"/>
    <category term="OceanBase" scheme="https://longda.us/tags/OceanBase/"/>
    <category term="AI Agent" scheme="https://longda.us/tags/AI-Agent/"/>
    <category term="Claude Code" scheme="https://longda.us/tags/Claude-Code/"/>
    <category term="seekdb" scheme="https://longda.us/tags/seekdb/"/>
    <category term="PowerMem" scheme="https://longda.us/tags/PowerMem/"/>
    <category term="OpenClaw" scheme="https://longda.us/tags/OpenClaw/"/>
    <category term="Memory System" scheme="https://longda.us/tags/Memory-System/"/>
    <category term="Dashboard" scheme="https://longda.us/tags/Dashboard/"/>
    <content>
      <![CDATA[<script type="application/ld+json">{"@context":"https://schema.org","@type":"BlogPosting","headline":"PowerMem Quick Start: Building a Self-Evolving Agent Memory Layer","description":"Install PowerMem on Linux, open the Dashboard, then connect Claude Code and OpenClaw for cross-session Agent memory with self-evolving recall.","image":"https://longda.us/img/yuque-07/01.png","wordCount":984,"timeRequired":"PT5M","datePublished":"2026-06-11T22:18:50.000Z","dateModified":"2026-06-11T22:18:50.000Z","isAccessibleForFree":true,"author":{"@type":"Person","name":"Longda Feng","url":"https://longda.us"},"publisher":{"@type":"Organization","name":"Longda's Interesting World","logo":{"@type":"ImageObject","url":"https://longda.us/img/my.jpg"}},"mainEntityOfPage":{"@type":"WebPage","@id":"https://longda.us/2026/2026-06-12-powermem-quick-start/"},"url":"https://longda.us/2026/2026-06-12-powermem-quick-start/","inLanguage":"en","keywords":["OceanBase","AI Agent","Claude Code","seekdb","PowerMem","OpenClaw","Memory System","Dashboard"],"articleSection":["AI Applications"]}</script><script type="application/ld+json">{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://longda.us/"},{"@type":"ListItem","position":2,"name":"AI Applications","item":"https://longda.us/categories/AI-Applications/"},{"@type":"ListItem","position":3,"name":"PowerMem Quick Start: Building a Self-Evolving Agent Memory Layer","item":"https://longda.us/2026/2026-06-12-powermem-quick-start/"}]}</script><p>This quick-start guide takes you from a fresh Linux server to a running <strong>PowerMem</strong> service, then connects it to <strong>Claude Code</strong> and <strong>OpenClaw</strong>. The result is persistent, cross-session memory for your AI agents.</p><p><strong>PowerMem</strong> is an open-source memory layer for AI agents. It captures useful information from conversations, stores it in a searchable backend, retrieves relevant memories at inference time, and manages memory quality over time. This guide covers installation, configuration, health checks, the Dashboard, and client integration.</p><blockquote><p>🧠 Ready to give your Agent long-term memory? <strong>PowerMem</strong> is open source on GitHub—spin it up and try it at <a href="https://github.com/oceanbase/powermem">https://github.com/oceanbase/powermem</a>. A few commands and your Agent can start remembering what matters.</p></blockquote><span id="more"></span><h2 id="1-Install-and-start-PowerMem-on-Linux"><a href="#1-Install-and-start-PowerMem-on-Linux" class="headerlink" title="1. Install and start PowerMem on Linux"></a>1. Install and start PowerMem on Linux</h2><p>You need <strong>Python 3.11 or later</strong> and either <code>pip</code> or <code>uv</code> (recommended). For a production installation from PyPI:</p><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">uv pip install <span class="string">&quot;powermem[cli,server,mcp,seekdb]&quot;</span></span><br></pre></td></tr></table></figure><p>This command installs the <code>pmem</code> CLI, the <code>powermem-server</code> HTTP API, Model Context Protocol (MCP) support, and the embedded <strong>seekdb</strong> vector-database backend. For development, install from source:</p><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">git <span class="built_in">clone</span> https://github.com/oceanbase/powermem.git</span><br><span class="line"><span class="built_in">cd</span> powermem</span><br><span class="line">uv pip install -e <span class="string">&quot;.[cli,server,mcp,seekdb]&quot;</span></span><br></pre></td></tr></table></figure><p><img src="/img/yuque-07/01.png" alt="PowerMem Linux install prerequisites including Python 3.11 or later" decoding="async"></p><p><img src="/img/yuque-07/02.png" alt="PowerMem pip install command completing successfully in the terminal" loading="lazy" decoding="async"></p><p>Initialize the environment interactively. The command creates a <code>.env</code> file:</p><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">pmem config init</span><br></pre></td></tr></table></figure><p>Review the generated <code>.env</code> file and configure:</p><ul><li>the <strong>database</strong> connection where memories are stored;</li><li>the <strong>LLM</strong> provider, API key, and model;</li><li>the <strong>embedding</strong> provider, API key, model, and dimensions.</li></ul><p>When using SQLite, <code>SQLITE_PATH</code> must be an absolute path to the database <em>file</em>, not only to its parent directory. When using seekdb, set <code>EMBEDDING_DIMS</code> or <code>OCEANBASE_EMBEDDING_MODEL_DIMS</code> to the exact dimension count of the embedding model. A mismatched dimension prevents correct vector storage and retrieval.</p><p><strong>Security note:</strong> treat API keys and internal service URLs as secrets. Do not commit <code>.env</code> files containing real credentials, and restrict their file permissions.</p><p><img src="/img/yuque-07/03.png" alt="PowerMem pmem config init wizard creating the environment file" loading="lazy" decoding="async"></p><p>Start the server. Binding to <code>0.0.0.0</code> makes it reachable on all network interfaces, so use a firewall, reverse proxy, or private network when it is not strictly local:</p><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">powermem-server --host 0.0.0.0 --port 8848</span><br></pre></td></tr></table></figure><p>The first startup can take 60–120 seconds while seekdb initializes and the embedding model downloads. Verify that the service is healthy:</p><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">curl http://localhost:8848/api/v1/system/health</span><br></pre></td></tr></table></figure><p>A response such as <code>{&quot;status&quot;:&quot;ok&quot;}</code> confirms that the local HTTP API is reachable.</p><p><img src="/img/yuque-07/04.png" alt="PowerMem server health check returning status ok on port 8848" loading="lazy" decoding="async"></p><h2 id="2-PowerMem-Dashboard-and-API"><a href="#2-PowerMem-Dashboard-and-API" class="headerlink" title="2. PowerMem Dashboard and API"></a>2. PowerMem Dashboard and API</h2><p>Open the <strong>Dashboard</strong> at <code>http://&lt;server-IP&gt;:8848/dashboard/</code>. The API documentation is available at <code>http://&lt;server-IP&gt;:8848/docs</code>.</p><p>The Dashboard provides:</p><ul><li>service health, memory growth, and quality metrics;</li><li>memory browsing, search, inspection, and deletion;</li><li>aggregated user profiles;</li><li>API-key settings when server authentication is enabled.</li></ul><p>Authentication is optional for isolated local testing. <strong>Enable it before exposing PowerMem outside a trusted network</strong> by adding the following values to <code>.env</code>, then restarting the server:</p><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">POWERMEM_SERVER_AUTH_ENABLED=<span class="literal">true</span></span><br><span class="line">POWERMEM_SERVER_API_KEYS=your-secret-key</span><br></pre></td></tr></table></figure><p>After authentication is enabled, API clients must send the <code>X-API-Key</code> header. Store the key in a secret manager or protected environment variable; never place a production key in a shared configuration file.</p><p><img src="/img/yuque-07/05.png" alt="PowerMem Dashboard home screen showing service status and navigation" loading="lazy" decoding="async"></p><p>If server authentication is enabled, configure the client API key in the Dashboard Settings page before connecting external clients. Rotate any key that is exposed.</p><p><img src="/img/yuque-07/06.png" alt="PowerMem Dashboard memory list with stored facts and metadata" loading="lazy" decoding="async"></p><p><img src="/img/yuque-07/07.png" alt="PowerMem Dashboard API key creation dialog for client authentication" loading="lazy" decoding="async"></p><h2 id="3-Connect-Claude-Code-to-PowerMem"><a href="#3-Connect-Claude-Code-to-PowerMem" class="headerlink" title="3. Connect Claude Code to PowerMem"></a>3. Connect Claude Code to PowerMem</h2><p><strong>Claude Code</strong> uses the <code>memory-powermem</code> plugin to persist and retrieve memories across sessions. In Claude Code, run:</p><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line">/plugin marketplace add oceanbase/powermem</span><br><span class="line">/plugin install memory-powermem@powermem</span><br><span class="line">/reload-plugins</span><br><span class="line">/memory-powermem:init</span><br></pre></td></tr></table></figure><p><code>/memory-powermem:init</code> creates the plugin’s local virtual environment, installs the PowerMem backend, and starts its managed server. If the marketplace is unavailable, install from the local source directory instead:</p><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">claude --plugin-dir /path/to/powermem/apps/claude-code-plugin</span><br></pre></td></tr></table></figure><p>For a remote PowerMem server, add the endpoint and, if authentication is enabled, the API key to <code>~/.claude/settings.json</code>:</p><figure class="highlight json"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><span class="line"><span class="punctuation">&#123;</span></span><br><span class="line">  <span class="attr">&quot;env&quot;</span><span class="punctuation">:</span> <span class="punctuation">&#123;</span></span><br><span class="line">    <span class="attr">&quot;POWERMEM_BASE_URL&quot;</span><span class="punctuation">:</span> <span class="string">&quot;http://&lt;server-IP&gt;:8848&quot;</span><span class="punctuation">,</span></span><br><span class="line">    <span class="attr">&quot;POWERMEM_API_KEY&quot;</span><span class="punctuation">:</span> <span class="string">&quot;your-secret-key&quot;</span></span><br><span class="line">  <span class="punctuation">&#125;</span></span><br><span class="line"><span class="punctuation">&#125;</span></span><br></pre></td></tr></table></figure><p>Alternatively, export the same variables before starting Claude Code. Use HTTPS or a trusted private network for remote connections; an API key does not encrypt traffic. Restart Claude Code after changing the configuration.</p><p>On Windows, the generated <code>hooks.json</code> uses <code>sh</code> by default. Replace its hook command with <code>powershell.exe -NoProfile -ExecutionPolicy Bypass -File &quot;${CLAUDE_PLUGIN_ROOT}/hooks/run-hook.ps1&quot;</code> if the plugin hooks do not run.</p><p>Verify the integration: end a session after storing a distinctive test fact, start a new session, and confirm that Claude Code retrieves it. You can also check the new memory in Dashboard &gt; Memories.</p><p><img src="/img/yuque-07/08.png" alt="Claude Code marketplace listing for the PowerMem memory plugin" loading="lazy" decoding="async"></p><p><img src="/img/yuque-07/09.png" alt="Claude Code PowerMem plugin settings with server URL and API key" loading="lazy" decoding="async"></p><p><img src="/img/yuque-07/10.png" alt="Claude Code cross-session test confirming a stored fact is recalled" loading="lazy" decoding="async"></p><h2 id="4-Connect-OpenClaw-to-PowerMem"><a href="#4-Connect-OpenClaw-to-PowerMem" class="headerlink" title="4. Connect OpenClaw to PowerMem"></a>4. Connect OpenClaw to PowerMem</h2><p><strong>OpenClaw</strong> integrates with PowerMem through the <code>memory-powermem</code> plugin. Install it with:</p><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">openclaw plugins install memory-powermem</span><br></pre></td></tr></table></figure><p>Configure an embedding provider in the plugin’s <code>powermem.env</code> file, typically under <code>~/.openclaw/</code>. For example:</p><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line">EMBEDDING_PROVIDER=siliconflow</span><br><span class="line">EMBEDDING_API_KEY=sk-xxx</span><br><span class="line">EMBEDDING_MODEL=BAAI/bge-m3</span><br><span class="line">EMBEDDING_DIMS=1024</span><br></pre></td></tr></table></figure><p>Adjust the provider, model, and dimensions to match your embedding service. Keep the API key out of version control.</p><p>By default, CLI mode uses local <code>pmem</code> storage and does not require a separate server. To share a PowerMem backend, configure OpenClaw’s <code>requestConfig.memory_db</code> with the server URL:</p><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">http://&lt;server-IP&gt;:8848</span><br></pre></td></tr></table></figure><p>Restart OpenClaw, then store a distinctive fact in one conversation and request it in a new conversation to verify cross-session recall.</p><p><img src="/img/yuque-07/11.png" alt="OpenClaw memory-powermem plugin installation from the plugin registry" loading="lazy" decoding="async"></p><p><img src="/img/yuque-07/12.png" alt="OpenClaw PowerMem plugin remote server and embedding configuration" loading="lazy" decoding="async"></p><p><img src="/img/yuque-07/13.png" alt="OpenClaw cross-session memory recall test after plugin restart" loading="lazy" decoding="async"></p><h2 id="5-How-PowerMem-self-evolution-works"><a href="#5-How-PowerMem-self-evolution-works" class="headerlink" title="5. How PowerMem self-evolution works"></a>5. How PowerMem self-evolution works</h2><p>PowerMem does more than append chat logs. It manages memories through a four-stage <strong>self-evolution lifecycle</strong>:</p><ol><li><strong>Capture</strong> — on each user message, retrieve related memories and inject them into context. On <code>/compact</code>, persist the summary; at session end, persist the session record.</li><li><strong>Store</strong> — embed text, attach metadata, and persist it in SQLite, OceanBase, or seekdb.</li><li><strong>Retrieve</strong> — use semantic vector search to select the Top-K memories that can improve the agent’s next response.</li><li><strong>Evolve</strong> — deduplicate and merge repeated memories, update user profiles, reinforce useful information, and retire stale memories.</li></ol><p>This lifecycle turns agent memory from a static archive into a managed system: it captures, stores, retrieves, and evolves information rather than retaining every token indefinitely.</p><p><img src="/img/yuque-07/14.png" alt="PowerMem automatic fact extraction pipeline from raw conversation turns" loading="lazy" decoding="async"></p><p><img src="/img/yuque-07/15.png" alt="PowerMem duplicate merge and conflict resolution keeping the store compact" loading="lazy" decoding="async"></p><p><img src="/img/yuque-07/16.png" alt="PowerMem retrieval ranking and decay cycle for self-evolving Agent memory" loading="lazy" decoding="async"></p>]]>
    </content>
    <id>https://longda.us/2026/2026-06-12-powermem-quick-start/</id>
    <link href="https://longda.us/2026/2026-06-12-powermem-quick-start/"/>
    <published>2026-06-11T22:18:50.000Z</published>
    <summary>Install PowerMem on Linux, open the Dashboard, then connect Claude Code and OpenClaw for cross-session Agent memory with self-evolving recall.</summary>
    <title>PowerMem Quick Start: Building a Self-Evolving Agent Memory Layer</title>
    <updated>2026-06-11T22:18:50.000Z</updated>
  </entry>
</feed>
