Skip to content

Feature(memory-lancedb): Agent Scoping #38797 - #40578

Closed
yangzi33 wants to merge 4 commits into
openclaw:mainfrom
yangzi33:agent-scoping
Closed

yangzi33 wants to merge 4 commits into
openclaw:mainfrom
yangzi33:agent-scoping

Conversation

@yangzi33

@yangzi33 yangzi33 commented Mar 9, 2026 •

Copy link
Copy Markdown

Summary

  • Problem: The memory-lancedb plugin shared a single global memory pool across all agents. An agent could recall memories captured by a different agent, and explicit tool calls (memory_recall, memory_store, memory_forget) had no way to scope reads/writes to the calling agent.
  • Why it matters: In multi-agent setups this causes cross-contamination: agent A sees agent B's memories, and agent B can overwrite or forget agent A's entries via tool calls
  • What changed: Added an opt-in agentScoping config boolean. When enabled, memories are tagged with the originating agentId at capture time; recall and tool calls filter to that agent's memories plus legacy globally-shared memories (agentId = ""). A best-effort migration adds the agentId column to existing LanceDB tables. Tool registration switched from static objects to factories so each agent-run gets its own scoped context.
  • What did NOT change: Default behavior (agentScoping === false) is fully backward-compatible — the global memory pool is preserved and no existing data is altered.

Change Type

  • Bug fix
  • Feature
  • Refactor
  • Docs
  • Security hardening
  • Chore/infra

Scope

  • Gateway / orchestration
  • Skills / tool execution
  • Auth / tokens
  • Memory / storage
  • Integrations
  • API / contracts
  • UI / DX
  • CI/CD / infra

Linked Issue/PR

User-visible / Behavior Changes

  • New config option agentScoping (boolean, default false) in the memory-lancedb plugin settings.
  • When agentScoping === true:
    • Auto-captured memories are tagged with the originating agent's ID.
    • Auto-recall and all memory tools (memory_recall, memory_store, memory_forget) only see memories belonging to the current agent plus legacy untagged (globally shared) memories.
  • When agentScoping === false (default): no behavior change.

Security Impact

  • New permissions/capabilities? No
  • Secrets/tokens handling changed? No
  • New/changed network calls? No
  • Command/tool execution surface changed? No
  • Data access scope changed? `es
    • Risk: When agentScoping === true, agents cannot read each other's scoped memories. The agentId value passed through ctx.agentId is used in a SQL filter string. A malformed agentId could be used for SQL injection against the LanceDB filter.
    • Mitigation: agentId is validated against /^[a-zA-Z0-9_\-.:@]{0,128}$/ before interpolation; values that do not match are rejected, not silently stripped.

Repro + Verification

Environment

  • OS: Linux (WSL2)
  • Runtime/container: Node 22 / Bun
  • Model/provider: N/A
  • Integration/channel: memory-lancedb extension
  • Relevant config: agentScoping === true in plugin config

Steps

  1. Enable agentScoping === true in the memory-lancedb plugin config.
  2. Run two agents with different agentId values and store a memory from each.
  3. Recall from each agent. Each agent should only see its own memories and untagged legacy entries.

Expected

  • Agent A's recall returns only Agent A's memories and global memories.
  • Agent B's recall returns only Agent B's memories and global memories.

Actual

  • Before this change: both agents see all memories.

Evidence

  • Failing test/log before + passing after
BEFORE:
FAIL extensions/memory-lancedb/index.test.ts > memory plugin e2e > passes configured dimensions to OpenAI embeddings API
TypeError: recallTool.execute is not a function

AFTER:
✓ extensions/memory-lancedb/index.test.ts > memory plugin e2e (12 passed, 1 skipped)

Human Verification

  • Verified scenarios: all unit tests pass; agentScoping: false path exercises existing code unchanged; migration skips gracefully when agentId column already present.
  • Edge cases checked: legacy tables without agentId column get it added with '' default on first open; migration failure is caught and does not crash the plugin.
  • What you did not verify: live multi-agent end-to-end with a real LanceDB instance and real agent IDs.

Review Conversations

  • I replied to or resolved every bot review conversation I addressed in this PR.
  • I left unresolved only the conversations that still need reviewer or maintainer judgment.

Compatibility / Migration

  • Backward compatible? Yes — agentScoping defaults to false; existing behavior unchanged.
  • Config/env changes? Yes — new optional agentScoping boolean in plugin config.
  • Migration needed? No — existing LanceDB tables are migrated automatically on first open; existing memories are preserved as globally-shared by setting agentId empty string.

Failure Recovery

  • How to disable/revert this change quickly: set agentScoping to false in plugin config.
  • Files/config to restore: extensions/memory-lancedb/config.ts, extensions/memory-lancedb/index.ts.
  • Known bad symptoms reviewers should watch for: memories not appearing in recall after enabling agentScoping (likely the agentId is not being propagated through ctx in that hook context).

Risks and Mitigations

  • Risk: agentId injection via ctx.agentId into the LanceDB SQL filter string.
    • Mitigation: strict regex allowlist (/^[a-zA-Z0-9_\-.:@]{0,128}$/) rejects unexpected values before interpolation.
  • Risk: Migration (addColumns) fails silently on unusual LanceDB versions, leaving the table without the agentId column. Scoped filtering is then skipped.
    • Mitigation: best-effort catch with logger warning; plugin continues to function in unscoped mode.

@openclaw-barnacle openclaw-barnacle Bot added extensions: memory-lancedb Extension: memory-lancedb size: S labels Mar 9, 2026
@greptile-apps

greptile-apps Bot commented Mar 9, 2026 •

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR introduces an opt-in agentScoping config flag to the memory-lancedb plugin that isolates memories per agent. The implementation tags stored entries with the originating agentId and filters recalls/deletes to the calling agent's entries plus globally-shared ones. The backward-compatible default (agentScoping: false) is preserved, and tool registration was correctly refactored from static objects to per-call factories.

Critical issues identified:

  1. Post-filter starvation (logic bug): In MemoryDB.search(), .limit(n) is applied before .where(...), so the agentId filter acts as a post-filter on only the top-N ANN candidates. When most of those candidates belong to other agents they are all filtered out, returning fewer results than requested — or zero — even when many relevant memories exist for the target agent. This undermines the core purpose of the feature and will cause agents in multi-agent setups to experience degraded recall quality.

  2. agentId write/read sanitization mismatch (logic bug): Memories are stored with the raw ctx.agentId value, but search() and delete() strip characters outside [a-zA-Z0-9_\-.:@] before filtering. Any agent whose agentId contains disallowed characters (spaces, slashes, etc.) will have memories that are stored but permanently unrecoverable — they silently vanish from recall.

  3. Live test regression: The live test block (lines 372–378) retrieves tools as factory functions but calls .execute(...) directly on them without invoking the factory first. The unit test correctly handles this pattern at lines 209–212, but the live tests do not, causing a TypeError when run with a real OpenAI key.

  4. Silent migration failure (observability gap): The migration catch block swallows errors with no logging. Operators enabling agentScoping: true with an incompatible LanceDB version will see no warning, making it difficult to diagnose why the feature silently fails to isolate agent memories.

Confidence Score: 2/5

  • Not safe to merge — the feature has correctness bugs that will silently degrade recall quality and cause data loss in common configurations.
  • The PR introduces two logic bugs that directly undermine the feature's core purpose: (1) the ANN post-filter issue means recall returns too few results when scoping is active, causing degraded memory quality; (2) the agentId sanitization mismatch means memories stored under any agent ID with non-allowlist characters are permanently unrecoverable. The live test regression would surface immediately on first manual verification with a real OpenAI key. These are not edge cases — any deployment with an agentId outside the strict alphanumeric-plus-symbols set, or any deployment with many concurrent agents sharing a table, will be affected. The silent migration failure adds an observability gap that makes troubleshooting difficult.
    • extensions/memory-lancedb/index.ts (search post-filter starvation, agentId sanitization mismatch, migration error handling)
  • extensions/memory-lancedb/index.test.ts (live test factory invocation)

Comments Outside Diff (1)

  1. extensions/memory-lancedb/index.test.ts, line 372-378 (link)

    Live tests will fail — tool factory not invoked

    Since tools are now registered as factory functions (a (ctx) => toolObject pattern), registeredTools[i].tool is a function, not an object with an .execute method.

    The unit test at lines 209–212 correctly handles this:

    const recallTool =
      typeof recallToolEntry.tool === "function"
        ? recallToolEntry.tool({})
        : recallToolEntry.tool;

    However, the live test section (lines 372–378) retrieves the tools and immediately calls .execute(...) on them without invoking the factory first. Calls like storeTool.execute(...), recallTool.execute(...), and forgetTool.execute(...) will throw TypeError: storeTool.execute is not a function when run with a real OpenAI key.

    Apply the same factory-invocation pattern from the unit test here:

    Or extract this into a helper function to avoid duplication.

    Prompt To Fix With AI
    This is a comment left during a code review.
    Path: extensions/memory-lancedb/index.test.ts
    Line: 372-378
    
    Comment:
    **Live tests will fail — tool factory not invoked**
    
    Since tools are now registered as factory functions (a `(ctx) => toolObject` pattern), `registeredTools[i].tool` is a function, not an object with an `.execute` method. 
    
    The unit test at lines 209–212 correctly handles this:
    ```typescript
    const recallTool =
      typeof recallToolEntry.tool === "function"
        ? recallToolEntry.tool({})
        : recallToolEntry.tool;
    ```
    
    However, the live test section (lines 372–378) retrieves the tools and immediately calls `.execute(...)` on them without invoking the factory first. Calls like `storeTool.execute(...)`, `recallTool.execute(...)`, and `forgetTool.execute(...)` will throw `TypeError: storeTool.execute is not a function` when run with a real OpenAI key.
    
    Apply the same factory-invocation pattern from the unit test here:
    
    
    
    Or extract this into a helper function to avoid duplication.
    
    How can I resolve this? If you propose a fix, please make it concise.

Last reviewed commit: 5cf0acb

Comment on lines +146 to +151
let query = this.table!.vectorSearch(vector).limit(limit);
if (agentId !== undefined) {
// safe chars to prevent SQL injection
const safe = agentId.replace(/[^a-zA-Z0-9_\-.:@]/g, "");
query = query.where(`agentId = '${safe}' OR agentId = ''`);
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Post-filter starvation with agent scoping

.limit(limit) is applied before .where(), which means LanceDB performs an ANN search on the top-N nearest vectors first, then applies the agentId filter as a post-filter on that candidate set. If most of the top-N ANN candidates belong to other agents, they will be eliminated by the filter, returning 0 results even when many matching memories exist in the database for the target agent.

To get reliable results with agent scoping, consider:

  • Inflating the probe limit to account for expected filtration loss (e.g., multiply by a factor like 5–10)
  • Or using pre-filtering if the LanceDB version supports it
Suggested change
let query = this.table!.vectorSearch(vector).limit(limit);
if (agentId !== undefined) {
// safe chars to prevent SQL injection
const safe = agentId.replace(/[^a-zA-Z0-9_\-.:@]/g, "");
query = query.where(`agentId = '${safe}' OR agentId = ''`);
}
async search(
vector: number[],
limit = 5,
minScore = 0.5,
agentId?: string,
): Promise<MemorySearchResult[]> {
await this.ensureInitialized();
const probeLimit = agentId !== undefined ? Math.max(limit * 5, 50) : limit;
let query = this.table!.vectorSearch(vector).limit(probeLimit);
if (agentId !== undefined) {
// safe chars to prevent SQL injection
const safe = agentId.replace(/[^a-zA-Z0-9_\-.:@]/g, "");
query = query.where(`agentId = '${safe}' OR agentId = ''`);
}
const results = await query.toArray();
// Truncate back to the requested limit after post-filtering
const truncated = results.slice(0, limit);
// LanceDB uses L2 distance by default; convert to similarity score
const mapped = truncated.map((row) => {
const distance = row._distance ?? 0;
// Use inverse for a 0-1 range: sim = 1 / (1 + d)
const score = 1 / (1 + distance);
return {
entry: {
id: row.id as string,
text: row.text as string,
vector: row.vector as number[],
importance: row.importance as number,
category: row.category as MemoryEntry["category"],
createdAt: row.createdAt as number,
agentId: (row.agentId as string) ?? "",
},
score,
};
});
return mapped.filter((r) => r.score >= minScore);
}
Prompt To Fix With AI
This is a comment left during a code review.
Path: extensions/memory-lancedb/index.ts
Line: 146-151

Comment:
**Post-filter starvation with agent scoping**

`.limit(limit)` is applied before `.where()`, which means LanceDB performs an ANN search on the top-N nearest vectors first, _then_ applies the `agentId` filter as a post-filter on that candidate set. If most of the top-N ANN candidates belong to other agents, they will be eliminated by the filter, returning 0 results even when many matching memories exist in the database for the target agent.

To get reliable results with agent scoping, consider:
- Inflating the probe limit to account for expected filtration loss (e.g., multiply by a factor like 5–10)
- Or using pre-filtering if the LanceDB version supports it

```suggestion
  async search(
    vector: number[],
    limit = 5,
    minScore = 0.5,
    agentId?: string,
  ): Promise<MemorySearchResult[]> {
    await this.ensureInitialized();

    const probeLimit = agentId !== undefined ? Math.max(limit * 5, 50) : limit;
    let query = this.table!.vectorSearch(vector).limit(probeLimit);
    if (agentId !== undefined) {
      // safe chars to prevent SQL injection
      const safe = agentId.replace(/[^a-zA-Z0-9_\-.:@]/g, "");
      query = query.where(`agentId = '${safe}' OR agentId = ''`);
    }
    const results = await query.toArray();

    // Truncate back to the requested limit after post-filtering
    const truncated = results.slice(0, limit);

    // LanceDB uses L2 distance by default; convert to similarity score
    const mapped = truncated.map((row) => {
      const distance = row._distance ?? 0;
      // Use inverse for a 0-1 range: sim = 1 / (1 + d)
      const score = 1 / (1 + distance);
      return {
        entry: {
          id: row.id as string,
          text: row.text as string,
          vector: row.vector as number[],
          importance: row.importance as number,
          category: row.category as MemoryEntry["category"],
          createdAt: row.createdAt as number,
          agentId: (row.agentId as string) ?? "",
        },
        score,
      };
    });

    return mapped.filter((r) => r.score >= minScore);
  }
```

How can I resolve this? If you propose a fix, please make it concise.

Comment on lines +428 to 429
const agentId = cfg.agentScoping ? (ctx.agentId ?? "") : "";

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

agentId stored raw but sanitized on read — causes permanent recall mismatch

When a memory is stored, the raw ctx.agentId value is written to the database (line 428). However, when searching (line 149) or deleting (line 184), the same agentId is stripped of disallowed characters:

const safe = agentId.replace(/[^a-zA-Z0-9_\-.:@]/g, "");
query = query.where(`agentId = '${safe}' OR agentId = ''`);

If ctx.agentId contains any character outside the allowlist (e.g., a space, slash, or bracket), the stored value and the search filter will differ:

  • Example: ctx.agentId = "my agent" → stored as "my agent" → searched as "myagent" → no match ever found
  • Example: ctx.agentId = "agent/123" → stored as "agent/123" → searched as "agent123" → no match

This means an agent whose ID contains any disallowed character will silently lose all its scoped memories — they are stored but never recalled.

Fix: Normalize/validate agentId at write time, before storing. Apply the same sanitization consistently at both write and read time:

Suggested change
const agentId = cfg.agentScoping ? (ctx.agentId ?? "") : "";
async store(entry: Omit<MemoryEntry, "id" | "createdAt">): Promise<MemoryEntry> {
await this.ensureInitialized();
// Sanitize agentId for consistency with search/delete path
const sanitizedAgentId = entry.agentId.replace(/[^a-zA-Z0-9_\-.:@]/g, "");
const fullEntry: MemoryEntry = {
...entry,
agentId: sanitizedAgentId,
id: randomUUID(),
createdAt: Date.now(),
};
await this.table!.add([fullEntry]);
return fullEntry;
}

Also apply the same sanitization in the agent_end hook (line 629) and in the memory_store tool (line 428) before storing.

Prompt To Fix With AI
This is a comment left during a code review.
Path: extensions/memory-lancedb/index.ts
Line: 428-429

Comment:
**`agentId` stored raw but sanitized on read — causes permanent recall mismatch**

When a memory is stored, the raw `ctx.agentId` value is written to the database (line 428). However, when searching (line 149) or deleting (line 184), the same `agentId` is stripped of disallowed characters:

```typescript
const safe = agentId.replace(/[^a-zA-Z0-9_\-.:@]/g, "");
query = query.where(`agentId = '${safe}' OR agentId = ''`);
```

If `ctx.agentId` contains any character outside the allowlist (e.g., a space, slash, or bracket), the stored value and the search filter will differ:
- Example: `ctx.agentId = "my agent"` → stored as `"my agent"` → searched as `"myagent"` → **no match ever found**
- Example: `ctx.agentId = "agent/123"` → stored as `"agent/123"` → searched as `"agent123"` → **no match**

This means an agent whose ID contains any disallowed character will silently lose all its scoped memories — they are stored but never recalled.

**Fix:** Normalize/validate `agentId` at write time, before storing. Apply the same sanitization consistently at both write and read time:

```suggestion
async store(entry: Omit<MemoryEntry, "id" | "createdAt">): Promise<MemoryEntry> {
    await this.ensureInitialized();

    // Sanitize agentId for consistency with search/delete path
    const sanitizedAgentId = entry.agentId.replace(/[^a-zA-Z0-9_\-.:@]/g, "");

    const fullEntry: MemoryEntry = {
      ...entry,
      agentId: sanitizedAgentId,
      id: randomUUID(),
      createdAt: Date.now(),
    };

    await this.table!.add([fullEntry]);
    return fullEntry;
  }
```

Also apply the same sanitization in the `agent_end` hook (line 629) and in the `memory_store` tool (line 428) before storing.

How can I resolve this? If you propose a fix, please make it concise.

Comment on lines +119 to +122
} catch {
// Best-effort: if migration fails the plugin continues to work,
// but we skip agent-scoped filtering for this table.
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Silent migration failure — no observability

The PR description and inline comment indicate best-effort migration is intended ("if migration fails the plugin continues to work"), but the catch block swallows all errors without any logging. The MemoryDB class doesn't hold a reference to api.logger, so there's no way to surface the failure to the operator.

If addColumns fails on an older LanceDB version, operators enabling agentScoping: true will see all agents sharing the same memory pool with no visible indication that migration was skipped — making troubleshooting difficult.

Suggestion: Thread a logger callback through MemoryDB's constructor (or return a diagnostic flag from ensureInitialized) so that the failure can be surfaced via api.logger.warn(...) in the plugin registration path:

Suggested change
} catch {
// Best-effort: if migration fails the plugin continues to work,
// but we skip agent-scoped filtering for this table.
}
class MemoryDB {
private db: LanceDB.Connection | null = null;
private table: LanceDB.Table | null = null;
private initPromise: Promise<void> | null = null;
constructor(
private readonly dbPath: string,
private readonly vectorDim: number,
private readonly logger?: { warn(msg: string): void },
) {}
// ... in migrateAgentIdColumn:
private async migrateAgentIdColumn(): Promise<void> {
try {
// ... existing logic ...
} catch (err) {
// Best-effort: if migration fails the plugin continues to work,
// but we skip agent-scoped filtering for this table.
if (this.logger) {
this.logger.warn(
`memory-lancedb: migration failed (agentId column may not be available): ${String(err)}`,
);
}
}
}
}
// In plugin registration, pass logger:
const db = new MemoryDB(resolvedDbPath, vectorDim, { warn: api.logger.warn });
Prompt To Fix With AI
This is a comment left during a code review.
Path: extensions/memory-lancedb/index.ts
Line: 119-122

Comment:
**Silent migration failure — no observability**

The PR description and inline comment indicate best-effort migration is intended ("if migration fails the plugin continues to work"), but the catch block swallows all errors without any logging. The `MemoryDB` class doesn't hold a reference to `api.logger`, so there's no way to surface the failure to the operator.

If `addColumns` fails on an older LanceDB version, operators enabling `agentScoping: true` will see all agents sharing the same memory pool with no visible indication that migration was skipped — making troubleshooting difficult.

**Suggestion:** Thread a logger callback through `MemoryDB`'s constructor (or return a diagnostic flag from `ensureInitialized`) so that the failure can be surfaced via `api.logger.warn(...)` in the plugin registration path:

```suggestion
class MemoryDB {
  private db: LanceDB.Connection | null = null;
  private table: LanceDB.Table | null = null;
  private initPromise: Promise<void> | null = null;

  constructor(
    private readonly dbPath: string,
    private readonly vectorDim: number,
    private readonly logger?: { warn(msg: string): void },
  ) {}

  // ... in migrateAgentIdColumn:
  private async migrateAgentIdColumn(): Promise<void> {
    try {
      // ... existing logic ...
    } catch (err) {
      // Best-effort: if migration fails the plugin continues to work,
      // but we skip agent-scoped filtering for this table.
      if (this.logger) {
        this.logger.warn(
          `memory-lancedb: migration failed (agentId column may not be available): ${String(err)}`,
        );
      }
    }
  }
}

// In plugin registration, pass logger:
const db = new MemoryDB(resolvedDbPath, vectorDim, { warn: api.logger.warn });
```

How can I resolve this? If you propose a fix, please make it concise.

@yangzi33
yangzi33 marked this pull request as draft March 9, 2026 04:29
@openclaw-barnacle

Copy link
Copy Markdown

This pull request has been automatically marked as stale due to inactivity.
Please add updates or it will be closed.

@clawsweeper

clawsweeper Bot commented Apr 26, 2026 •

Copy link
Copy Markdown
Contributor

Thanks for the context here. I swept through the related work, and this is now duplicate or superseded.

Keep open: the PR targets a real memory-lancedb isolation gap, but the draft branch is merge-conflicting, lacks real behavior proof, and still has blocking scope-key, migration, and current-hook correctness issues.

Canonical path: Close this stale PR. The latest review rated it F, the branch still lacks merge-ready proof, and there has been no human follow-up after the durable review.

So I’m closing this here because the remaining work is already tracked in the canonical issue.

Review details

Best possible solution:

Close this stale PR. The latest review rated it F, the branch still lacks merge-ready proof, and there has been no human follow-up after the durable review.

Do we have a high-confidence way to reproduce the issue?

Yes, at source level: current main constructs one shared memory-lancedb store and the tools/hooks call db.search, db.store, and db.delete without an agent scope. I did not run a live two-agent LanceDB setup, so real runtime proof is still missing.

Is this the best way to solve the issue?

No. The direction is useful, but this branch targets a legacy hook, lacks real behavior proof, and needs a canonical scope-key and migration semantics repaired against current main before it is the best merge path.

Security review:

Security review needs attention: The diff changes an agent memory isolation boundary and still has concrete scope-key and migration-observability issues before merge.

  • [high] Scope key mismatch can bypass isolation — extensions/memory-lancedb/index.ts:428
    The PR writes one form of the runtime agent ID but reads/deletes through a separately stripped SQL filter, which can make scoped memories unrecoverable, aliased, or global when the ID is absent or not canonical.
    Confidence: 0.9
  • [medium] Migration failure is hidden — extensions/memory-lancedb/index.ts:119
    If adding the agentId column fails, scoped mode has no clear operator warning before later reads or writes rely on that schema.
    Confidence: 0.88

What I checked:

  • stale F-rated PR: PR was opened 2026-03-09T04:17:51Z, is older than 60 days, and the latest review rated it F.
  • proof blocker: real behavior proof is missing and proof tier is F, so this branch is not merge-ready without contributor follow-up.
  • no human follow-up: live comments and timeline hydrated by apply contain no non-automation activity after the ClawSweeper review.

Likely related people:

  • vincentkoc: Authored and merged the recent memory-lancedb auto-capture cursor fix that changed extensions/memory-lancedb/index.ts and tests, directly overlapping the current hook/capture path this PR must preserve. (role: recent area contributor; confidence: high; commits: 4a4c5908de7e; files: extensions/memory-lancedb/index.ts, extensions/memory-lancedb/index.test.ts)
  • ddupg: Authored the merged memory-lancedb cloud storage/config feature across the same config, manifest, implementation, and test files touched by this PR. (role: feature contributor; confidence: medium; commits: 67bf6bd98639, 51094e1e6abc, 4989b78f04cd; files: extensions/memory-lancedb/config.ts, extensions/memory-lancedb/index.ts, extensions/memory-lancedb/index.test.ts)
  • neeravmakwana: Authored the merged memory-lancedb embedding/proxy fix in the same implementation and test files, making them relevant for provider/runtime behavior during rebase. (role: adjacent contributor; confidence: medium; commits: 3c570214dede, 94b69987623e; files: extensions/memory-lancedb/index.ts, extensions/memory-lancedb/index.test.ts)
  • obviyus: Merged the memory-lancedb embedding/proxy fix and carried the final merge commit touching this plugin area. (role: recent merger; confidence: medium; commits: 8607fc975ad6; files: extensions/memory-lancedb/index.ts, extensions/memory-lancedb/index.test.ts)

Codex review notes: model gpt-5.5, reasoning high; reviewed against d7a078f1962b.

@openclaw-barnacle openclaw-barnacle Bot removed the stale Marked as stale due to inactivity label Apr 27, 2026
@clawsweeper clawsweeper Bot added the P1 High-priority user-facing bug, regression, or broken workflow. label May 16, 2026
@openclaw-barnacle openclaw-barnacle Bot added the triage: needs-real-behavior-proof Candidate: external PR needs after-fix proof from a real setup. label May 16, 2026
@clawsweeper clawsweeper Bot added impact:security Security boundary, credential, authz, sandbox, or sensitive-data risk. impact:session-state Session, memory, transcript, context, or agent state can drift or corrupt. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. and removed impact:session-state Session, memory, transcript, context, or agent state can drift or corrupt. impact:security Security boundary, credential, authz, sandbox, or sensitive-data risk. labels May 17, 2026
@clawsweeper

clawsweeper Bot commented May 20, 2026 •

Copy link
Copy Markdown
Contributor

ClawSweeper PR egg

🎁 Pass real behavior proof to wake the egg and unlock a hatchable treat.

Where did the egg go?
  • The egg game starts only after the PR passes the real-behavior proof check.
  • Before that, no creature or rarity is rolled. The treat waits for real proof.
  • This is still just collectible flavor: proof affects review readiness, not creature quality.

@clawsweeper

clawsweeper Bot commented May 23, 2026

Copy link
Copy Markdown
Contributor

ClawSweeper applied the proposed close for this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

extensions: memory-lancedb Extension: memory-lancedb merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. P1 High-priority user-facing bug, regression, or broken workflow. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. size: S status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. triage: needs-real-behavior-proof Candidate: external PR needs after-fix proof from a real setup.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: Per-agent memory isolation for memory-lancedb plugin

1 participant