Skip to content

fix #95495: [Bug]: 2026.6.9 silently relocates memory store with no migration, forcing a full re-embed (1499 files) with zero upgrade-time warning - #95631

Merged
vincentkoc merged 27 commits into
openclaw:mainfrom
mushuiyu886:feat/issue-95495
Jun 24, 2026
Merged

vincentkoc merged 27 commits into
openclaw:mainfrom
mushuiyu886:feat/issue-95495

Conversation

@mushuiyu886

@mushuiyu886 mushuiyu886 commented Jun 22, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Migrates legacy Memory Core sidecar indexes from $OPENCLAW_STATE_DIR/memory/<agent>.sqlite into the canonical per-agent SQLite database through an explicit doctor state migration.
  • Keeps normal memory runtime startup scoped to the canonical per-agent database instead of importing stale sidecar rows during schema startup.
  • Restores legacy chunks_vec semantic vector rows into memory_index_chunks_vec before successfully handled sidecars are archived.
  • Merges legacy sidecar rows into a non-empty canonical per-agent index when rows do not conflict, and keeps the legacy sidecar in place when real row or vector-dimension conflicts prevent a safe import.
  • Keeps sidecar/vector import mechanics inside the Memory Core doctor boundary instead of expanding the public memory-host SDK callable surface.

Origin / follow-up

N/A — this updates the existing issue fix PR, not a sibling follow-up to a merged change.

Root Cause

  • Root cause: OpenClaw 2026.6.9 moved the memory index store from $OPENCLAW_STATE_DIR/memory/<agent>.sqlite to $OPENCLAW_STATE_DIR/agents/<agent>/agent/openclaw-agent.sqlite, but the upgrade path initialized the new per-agent schema without importing the old sidecar index rows.
  • Why this is root-cause fix: The patch gives legacy sidecar import one explicit persisted-state owner: the Memory Core doctor state migration. ensureMemoryIndexSchema() stays responsible for canonical schema creation for the database it is given; doctor migration handles the one-time sidecar-to-agent import and archive.
  • Why it matters / User impact: Users upgrading with existing embedded memory indexes can keep indexed memory state instead of paying for a full re-embed, while users who intentionally rebuild or already have canonical rows do not have old sidecar state resurrected or archived incorrectly.
  • Architecture / source-of-truth check: Memory Core doctor state migrations own legacy persisted-state movement. The one-time sidecar import helper stays inside the Memory Core doctor contract boundary and uses the existing scoped memory-host schema primitives after selecting a specific legacy sidecar and canonical agent database.
  • What did NOT change: This PR does not change provider routing, embedding generation, memory search ranking, session transcript storage, channel delivery, or the normal runtime database selection contract.
  • Fix classification: Root-cause persisted-state migration ownership fix.

What Changed

  • Added private sidecar import mechanics for the doctor migration to copy legacy meta, files, chunks, embedding_cache, and matching legacy vector rows into the canonical memory index tables.
  • Added doctor state migration memory-core-legacy-sidecar-index-to-agent-sqlite in extensions/memory-core/doctor-contract-api.ts.
  • Loads sqlite-vec during the doctor migration, then creates the canonical vector table from legacy vector dimensions when legacy chunks_vec rows exist.
  • Copies matching legacy chunks_vec rows into memory_index_chunks_vec before archive.
  • Keeps the one-time sidecar import helper inside the Memory Core doctor migration boundary instead of importing package source from the extension or exporting it through openclaw/plugin-sdk/memory-core-host-engine-storage.
  • Removes the broad canonical-not-empty skip so unrelated canonical rows do not block safe legacy sidecar import.
  • Leaves sidecars in place when row conflicts or vector-dimension mismatches make import unsafe, with warnings that preserve retry/recovery state.
  • Adds regression coverage for schema startup not importing sidecars, explicit doctor import, non-conflicting canonical merge, row-conflict preservation, vector-dimension conflict preservation, and vector-backed search after vector-row migration.

Review findings addressed

  • RF-001: Supplied user-visible OpenClaw CLI proof through pnpm dev doctor --fix --non-interactive, followed by pnpm dev memory status --agent main --json and pnpm dev memory search ... --json against a migrated legacy sidecar in a temporary OPENCLAW_STATE_DIR.
  • RF-002: The PR now includes real local OpenClaw CLI doctor/status/search proof. A redacted openclaw update run and third-party live embedding-provider proof were not run; those proof boundaries are disclosed below.
  • RF-003: Replaced the broad canonical-not-empty skip with row-level copy verification. Non-conflicting legacy rows now merge into existing canonical indexes; real row conflicts warn and leave the sidecar at its original path.
  • RF-004: The archive risk is addressed by restoring matching legacy chunks_vec rows into canonical memory_index_chunks_vec before archive, and by keeping sidecars in place when vector dimensions conflict.
  • RF-005: The sidecar/vector importer is no longer exported through or implemented inside the public memory-host SDK surface; it is private to the Memory Core doctor migration boundary.
  • RF-006: Human review risk is narrowed to the explicitly disclosed proof boundary: local CLI doctor/status/search proof and fresh post-commit doctor/schema tests are supplied, but packaged beta upgrade, reporter-state, openclaw update, and live external provider proof were not run.
  • RF-007: Fixed and covered skipped/partial-import preservation behavior: row conflicts and vector-dimension conflicts keep the legacy sidecar in place, while unrelated canonical rows no longer prevent safe import.
  • RF-008: Vector rows are restored before archiving sidecars by loading sqlite-vec in doctor migration, validating compatible dimensions, creating the canonical vec table from legacy dimensions when needed, and copying matching legacy chunks_vec rows during explicit sidecar import.

Regression Test Plan

  • Target test files: packages/memory-host-sdk/src/host/memory-schema.test.ts, extensions/memory-core/doctor-contract-api.test.ts, and test/scripts/plugin-sdk-surface-report.test.ts.
  • Scenario locked in: A legacy sidecar beside an empty canonical per-agent database must stay untouched during schema startup; explicit doctor migration must import sidecar rows into the per-agent database and archive the sidecar; a sidecar with legacy vector rows must restore canonical sqlite-vec rows and support vector-backed search; non-conflicting canonical rows must merge with sidecar rows; conflicting rows or vector dimensions must preserve the sidecar for retry.
  • Why this is the smallest reliable guardrail: The tests use real node:sqlite databases, sqlite-vec loading, and the actual schema/migration/search code paths, so they cover the missing-import upgrade path, stale-sidecar startup boundary, row-conflict retry safety, vector-dimension guard, and vector-row archive risk without mocking the storage layer.
node scripts/run-vitest.mjs run extensions/memory-core/doctor-contract-api.test.ts packages/memory-host-sdk/src/host/memory-schema.test.ts test/scripts/plugin-sdk-surface-report.test.ts
pnpm plugin-sdk:surface:check
pnpm exec oxfmt --check scripts/plugin-sdk-surface-report.mjs test/scripts/plugin-sdk-surface-report.test.ts extensions/memory-core/doctor-contract-api.ts extensions/memory-core/doctor-contract-api.test.ts packages/memory-host-sdk/src/host/memory-schema.ts packages/memory-host-sdk/src/host/memory-schema.test.ts packages/memory-host-sdk/src/engine-storage.ts src/plugin-sdk/memory-core-host-engine-storage.ts && git diff --check
pnpm tsgo:test
pnpm tsgo:test:packages

Real behavior proof

  • Behavior or issue addressed: Upgrading from the legacy memory sidecar store can preserve existing memory index rows through an explicit doctor state migration, while normal schema startup does not import stale sidecar state. Doctor now merges non-conflicting legacy rows into existing canonical indexes and keeps the sidecar in place when row conflicts or vector-dimension mismatches make import unsafe.

  • Real environment tested: Local OpenClaw PR worktree using real pnpm dev CLI commands, a temporary OPENCLAW_STATE_DIR, a temporary workspace, real node:sqlite databases, Memory Core doctor state migrations, and FTS-only memory search with agents.defaults.memorySearch.provider none.

  • Exact steps or command run after this patch:

cd /media/vdb/code/ai/aispace/openclaw-worktrees/pr-95631
node scripts/run-vitest.mjs run extensions/memory-core/doctor-contract-api.test.ts packages/memory-host-sdk/src/host/memory-schema.test.ts test/scripts/plugin-sdk-surface-report.test.ts
pnpm plugin-sdk:surface:check
pnpm exec oxfmt --check scripts/plugin-sdk-surface-report.mjs test/scripts/plugin-sdk-surface-report.test.ts extensions/memory-core/doctor-contract-api.ts extensions/memory-core/doctor-contract-api.test.ts packages/memory-host-sdk/src/host/memory-schema.ts packages/memory-host-sdk/src/host/memory-schema.test.ts packages/memory-host-sdk/src/engine-storage.ts src/plugin-sdk/memory-core-host-engine-storage.ts && git diff --check
pnpm tsgo:test
pnpm tsgo:test:packages

# Fresh follow-up validation after the retry-safety and SDK-surface updates:
node scripts/run-vitest.mjs extensions/memory-core/doctor-contract-api.test.ts packages/memory-host-sdk/src/host/memory-schema.test.ts
git diff --check HEAD~1..HEAD

TMP_ROOT=$(mktemp -d)
export OPENCLAW_STATE_DIR="$TMP_ROOT/state"
export OPENCLAW_WORKSPACE_DIR="$TMP_ROOT/workspace"
export OPENCLAW_GATEWAY_TOKEN="openclaw-local-proof-token"
export OPENCLAW_GATEWAY_PORT="19877"
export NO_COLOR=1

pnpm dev onboard --non-interactive --accept-risk --mode local --auth-choice skip --workspace "$OPENCLAW_WORKSPACE_DIR" --no-install-daemon --skip-health --skip-skills --skip-channels --skip-search --skip-ui --suppress-gateway-token-output --gateway-auth token --gateway-token-ref-env OPENCLAW_GATEWAY_TOKEN --json
pnpm dev config set agents.defaults.memorySearch.provider none
printf 'remember this legacy doctor migration needle\n' > "$OPENCLAW_WORKSPACE_DIR/memory/MEMORY.md"
pnpm dev memory index --agent main --force
# Copied canonical memory_index_* rows into legacy meta/files/chunks/embedding_cache tables,
# then removed the canonical per-agent DB so doctor had to migrate the legacy sidecar.
pnpm dev doctor --fix --non-interactive
pnpm dev memory status --agent main --json
pnpm dev memory search "legacy doctor migration needle" --agent main --max-results 5 --min-score 0 --json
  • Evidence after fix:
node scripts/run-vitest.mjs run extensions/memory-core/doctor-contract-api.test.ts packages/memory-host-sdk/src/host/memory-schema.test.ts test/scripts/plugin-sdk-surface-report.test.ts
[test] passed 3 Vitest shards in 244.73s
Unit shard: 1 test file passed, 7 tests passed
Tooling shard: 1 test file passed, 5 tests passed
Extension-memory shard: 1 test file passed, 6 tests passed

Fresh post-commit validation for the retry-safety and SDK-surface follow-up:

node scripts/run-vitest.mjs extensions/memory-core/doctor-contract-api.test.ts packages/memory-host-sdk/src/host/memory-schema.test.ts
Test Files  1 passed (1)
Tests  7 passed (7)

Test Files  1 passed (1)
Tests  8 passed (8)

[test] passed 2 Vitest shards in 28.06s
git diff --check HEAD~1..HEAD
# passed with no output
pnpm plugin-sdk:surface:check
public package SDK entrypoints:
  entrypoints: 321
  exports: 10337
  callable exports: 5190
  deprecated exports: 3247
  deprecated callable exports: 1601
  unique entrypoint-qualified exports: 10337
package-exported forbidden subpaths: 0
pnpm exec oxfmt --check ... && git diff --check
All matched files use the correct format.

pnpm tsgo:test
exit 0

pnpm tsgo:test:packages
exit 0
pnpm dev doctor --fix --non-interactive
[state-migrations] Auto-migrated legacy state:
- Migrated Memory Core legacy memory index for agent main -> per-agent SQLite (1 source(s), 1 chunk(s), 0 cache row(s))
- Archived Memory Core legacy memory index sidecar -> /tmp/tmp.IO7RRnMDeZ/state/memory/main.sqlite.migrated
[
  {
    "agentId": "main",
    "status": {
      "backend": "builtin",
      "files": 1,
      "chunks": 1,
      "dirty": false,
      "provider": "none",
      "requestedProvider": "none",
      "sourceCounts": [
        {
          "source": "memory",
          "files": 1,
          "chunks": 1
        }
      ],
      "fts": {
        "enabled": true,
        "available": true
      },
      "vector": {
        "enabled": false
      },
      "custom": {
        "indexIdentity": {
          "status": "valid"
        }
      }
    },
    "scan": {
      "totalFiles": 1,
      "issues": []
    }
  }
]
{
  "results": [
    {
      "id": "51a9a894d0d4feead08549f1b5989365450634f69b7d17dcc7223c43f434cb41",
      "path": "memory/MEMORY.md",
      "startLine": 1,
      "endLine": 2,
      "score": 0.7633373333173334,
      "textScore": 0.000003999984000064,
      "snippet": "remember this legacy doctor migration needle\n",
      "source": "memory"
    }
  ]
}
  • Observed result after fix: The doctor migration imports legacy sidecar rows into the per-agent SQLite database, makes memory status report 1 file / 1 chunk with dirty: false and indexIdentity.status: valid, and makes memory search return the migrated legacy memory content through the real CLI. Fresh post-commit tests also show that unrelated canonical rows merge with sidecar rows, row conflicts preserve the sidecar with a warning, and vector-dimension mismatches preserve the sidecar instead of archiving unsafe state.

  • What was not tested: Not run: packaged release-beta upgrade install, redacted real openclaw update, the reporter's original 1499-file state directory, or third-party live embedding-provider proof. The CLI proof used FTS-only local memory search (provider: none) to validate the migrated index through real OpenClaw CLI commands. A live OpenAI deep provider probe was attempted separately in this environment and returned an unsupported country/region 403, so that external provider proof remains unavailable here.

Round-two CI attribution

  • Failed head: 5b930286e9b27b89f4a4844ffe937d303fd16af4.
  • Fix head: fa05f5eaec2d5bd04c0e6b520cf6367863321455.
  • Latest follow-up head: b097896e97b2f5bc98b63a398b8d9685e6ac7a11 adds retry-safety/vector-dimension guard coverage and keeps sidecar/vector import mechanics private to the Memory Core doctor boundary.
  • Attribution: build-artifacts, check-additional-boundaries-bcd, and check-additional-extension-package-boundary were all current-PR direct failures from the same import-boundary regression, not main baseline, infrastructure, flaky, or rerun-only failures.
  • Root cause of CI failure: extensions/memory-core/doctor-contract-api.ts imported ../../packages/memory-host-sdk/src/host/memory-schema.js, which escaped the extension package root and pulled package source into the extension TypeScript compile boundary.
  • Fix: The one-time legacy sidecar import helper now lives inside the Memory Core doctor contract boundary and only uses the existing scoped openclaw/plugin-sdk/memory-core-host-engine-storage primitives.
  • Verification evidence: /media/vdb/code/ai/aispace/openclaw-pr-95631-evidence/verification-2026-06-23-ci-round2-boundary-committed.log.
pnpm run lint:extensions:no-relative-outside-package
pnpm run test:extensions:package-boundary:compile
pnpm exec vitest run test/extension-import-boundaries.test.ts extensions/memory-core/doctor-contract-api.test.ts packages/memory-host-sdk/src/host/memory-schema.test.ts

Merge risk

  • Risk labels considered: compatibility, session-state, automation, provider-data columns, and public SDK surface.
  • Risk explanation: Compatibility and session-state are the intended migration surface: legacy memory index state moves into the canonical per-agent SQLite database. Automation risk is limited to adding a doctor state migration entry. Provider-data signals come from copying existing embedding cache columns, not changing provider authentication, routing, request signing, or embedding generation. Public SDK risk is reduced because this update no longer exports a new callable helper through the public plugin SDK surface.
  • Why acceptable: The import only runs through the explicit doctor migration path, validates legacy sidecar schema shape before copying rows, restores matching legacy vector rows into the canonical sqlite-vec table before archive, merges unrelated canonical and legacy rows safely, and leaves conflicting or dimension-mismatched sidecars in place so the user's remaining recovery copy is not removed.
  • Patch quality notes: The broad catches are bounded to migration discovery/per-source reporting so one unreadable legacy source does not abort unrelated doctor migrations; the schema import catch rolls back a savepoint and rethrows. The return null path is the existing doctor contract for no detected legacy state. The larger diff is mostly SQLite fixture and regression coverage needed to prove the persisted-state migration boundary.
  • Maintainer-ready confidence: 91/100; local real CLI doctor/status/search proof plus fresh post-commit doctor/schema regression tests are supplied, and the remaining evidence boundary is only the unavailable packaged openclaw update, reporter-state, and live external provider proof.

@clawsweeper

clawsweeper Bot commented Jun 22, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: found issues before merge. Reviewed June 24, 2026, 4:29 AM ET / 08:29 UTC.

Summary
The PR adds a Memory Core doctor migration for legacy memory sidecar indexes into per-agent SQLite, plus tests, while the live branch also includes unrelated agent MCP runtime, package/version, workflow, docs, and QA changes.

Reproducibility: yes. Current main opens the per-agent memory database while the existing migration only handles legacy tables inside that opened database, and the canonical issue contains field evidence of the separate populated sidecar being ignored.

Review metrics: 4 noteworthy metrics.

  • Branch divergence: 29 ahead, 24 behind current main. The PR is dirty/conflicting, so the branch must be refreshed before prior proof or diff review can be trusted for landing.
  • Dependency-related files: 204 changed. Package manifests and shrinkwraps are security-sensitive and are blocked by Dependency Guard until removed or explicitly approved.
  • Memory migration surface: 14 files, +3086/-149. The intended fix is a broad persisted-state migration surface that needs exact upgrade and doctor-path validation.
  • Unrelated MCP runtime surface: 2 files, +789/-126. Agent MCP runtime changes are outside the memory migration scope and need separate review/proof instead of riding along.

Stored data model
Persistent data-model change detected: database schema: packages/memory-host-sdk/src/host/memory-schema.test.ts, migration/backfill/repair: src/commands/doctor-config-preflight.state-migration.test.ts, migration/backfill/repair: src/commands/doctor-config-preflight.ts, migration/backfill/repair: src/commands/doctor/shared/legacy-config-state-migration-input.ts, migration/backfill/repair: src/flows/doctor-core-checks.ts, migration/backfill/repair: src/flows/doctor-health-contributions.ts, and 19 more. Migration or upgrade compatibility proof is recorded; maintainers should verify it before merge.

Merge readiness
Overall: 🧂 unranked krab
Proof: 🐚 platinum hermit
Patch quality: 🧂 unranked krab
Result: blocked by patch quality or review findings.

Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch.

Rank-up moves:

  • Rebase and remove release/package/shrinkwrap drift so dependency guard clears without special approval.
  • Split or drop the unrelated MCP catalog runtime changes from this memory migration PR.
  • Rerun exact-head doctor migration tests and changed checks after the branch is narrowed.

Risk before merge

  • [P1] The live branch is conflicted and diverged from main, so maintainers cannot treat prior land-ready proof on b13941b as exact-head proof without a refresh.
  • [P1] The PR now includes unrelated agent MCP catalog/session lifecycle changes that could break MCP startup, reuse, disposal, or tool catalog behavior outside the memory migration fix.
  • [P1] The live PR diff triggers dependency guard on 204 dependency-related files, including package manifests and shrinkwraps, which must be removed by rebase/scope cleanup or explicitly security-authorized before merge.
  • [P1] The memory migration intentionally rewrites and archives persisted memory index sidecars, so exact-head upgrade validation remains important even though the doctor-owned migration boundary is the right direction.

Maintainer options:

  1. Refresh and narrow the branch (recommended)
    Rebase onto current main and leave only the Memory Core doctor migration, its supporting doctor/config plumbing, and focused tests before re-running exact-head proof.
  2. Split MCP runtime work
    Move the agent bundle MCP catalog parallelization/session lifecycle changes to a separate PR with its own MCP behavior proof and owner review.
  3. Authorize dependency graph drift
    If maintainers intentionally want the package and shrinkwrap changes in this PR, a repository admin or security reviewer should explicitly approve the current head SHA before merge.

Next step before merge

  • [P2] A maintainer should refresh and narrow the conflicted branch, then re-review exact-head migration proof; this is not a safe autonomous repair or cleanup close.

Security
Needs attention: Security review needs attention until the live dependency/package/shrinkwrap drift is removed by rebase/scope cleanup or explicitly authorized for the current head.

Review findings

  • [P1] Remove unrelated MCP catalog runtime changes — src/agents/agent-bundle-mcp-runtime.ts:26
Review details

Best possible solution:

Keep the doctor-owned memory migration, rebase onto current main, remove unrelated MCP/runtime and dependency/version drift, then rerun exact-head migration and changed-check proof before merge.

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

Yes. Current main opens the per-agent memory database while the existing migration only handles legacy tables inside that opened database, and the canonical issue contains field evidence of the separate populated sidecar being ignored.

Is this the best way to solve the issue?

Yes for the intended memory boundary, no for the current PR shape: a doctor-owned one-shot import is the right fix, but the branch must drop unrelated runtime/dependency drift and refresh before merge.

Full review comments:

  • [P1] Remove unrelated MCP catalog runtime changes — src/agents/agent-bundle-mcp-runtime.ts:26
    This PR is scoped to the Memory Core sidecar-to-agent SQLite migration, but the latest head also rewrites bundle MCP catalog loading/session lifecycle and adds large MCP tests. That agent runtime behavior has separate compatibility and proof requirements, so it should not ride along with the memory migration fix.
    Confidence: 0.9

Overall correctness: patch is incorrect
Overall confidence: 0.86

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 63ee4cd2405c.

Label changes

Label changes:

  • add merge-risk: 🚨 security-boundary: The live PR diff includes dependency graph and shrinkwrap/package changes that the repository treats as security-review surfaces.
  • add proof: sufficient: Contributor real behavior proof is sufficient. The PR body and checks include after-fix terminal proof with real OpenClaw CLI doctor, memory status, and memory search commands against a migrated legacy sidecar, though the branch still needs exact-head refresh after scope cleanup.
  • add rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🐚 platinum hermit and patch quality is 🧂 unranked krab.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Sufficient (terminal): The PR body and checks include after-fix terminal proof with real OpenClaw CLI doctor, memory status, and memory search commands against a migrated legacy sidecar, though the branch still needs exact-head refresh after scope cleanup.

Label justifications:

  • P1: The PR addresses a shipped upgrade regression that can leave existing users' memory search unusable until manual reindex or migration.
  • merge-risk: 🚨 compatibility: The patch changes upgrade-time handling of shipped legacy memory sidecar stores and archives migrated files.
  • merge-risk: 🚨 session-state: The affected data is persisted per-agent memory/search context, and a bad migration could lose or mis-associate indexed memory state.
  • merge-risk: 🚨 security-boundary: The live PR diff includes dependency graph and shrinkwrap/package changes that the repository treats as security-review surfaces.
  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🐚 platinum hermit and patch quality is 🧂 unranked krab.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Sufficient (terminal): The PR body and checks include after-fix terminal proof with real OpenClaw CLI doctor, memory status, and memory search commands against a migrated legacy sidecar, though the branch still needs exact-head refresh after scope cleanup.
  • proof: sufficient: Contributor real behavior proof is sufficient. The PR body and checks include after-fix terminal proof with real OpenClaw CLI doctor, memory status, and memory search commands against a migrated legacy sidecar, though the branch still needs exact-head refresh after scope cleanup.
Evidence reviewed

Security concerns:

  • [medium] Dependency graph changes are blocked — npm-shrinkwrap.json:1
    The live PR diff contains 204 dependency-related package or shrinkwrap files and Dependency Guard reports the graph changes are blocked unless removed or security/admin-approved, which is not part of the memory migration fix.
    Confidence: 0.92

Acceptance criteria:

  • [P1] node scripts/run-vitest.mjs extensions/memory-core/doctor-contract-api.test.ts src/infra/state-migrations.test.ts src/commands/doctor-config-preflight.state-migration.test.ts packages/memory-host-sdk/src/host/memory-schema.test.ts.
  • [P1] pnpm plugin-sdk:surface:check.
  • [P1] OPENCLAW_TESTBOX=1 pnpm check:changed.
  • [P1] Dependency Guard must pass or receive explicit admin/security approval for the exact head SHA.

What I checked:

Likely related people:

  • vincentkoc: Commit and PR history tie this handle to the database-first memory move, the merged SQLite alignment stack, and maintainer fixes/proof on this PR's migration path. (role: recent memory migration contributor and maintainer fixer; confidence: high; commits: 2caa4e2bd748, 65eb2ccd4ae2, b13941b5f6e9; files: src/agents/memory-search.ts, packages/memory-host-sdk/src/host/memory-schema.ts, extensions/memory-core/doctor-contract-api.ts)
  • jalehman: Related issue review evidence connects this handle to memory index publication and source-key schema work adjacent to the per-agent store transition. (role: adjacent memory-index contributor; confidence: medium; commits: 69c76f53b893, ade7b3ea87ec, 0850a25594bd; files: extensions/memory-core/src/memory/manager-db.ts, extensions/memory-core/src/memory/manager-sync-ops.ts, packages/memory-host-sdk/src/host/memory-schema.ts)
  • vincentkoc: Current-main blame and log for src/agents/agent-bundle-mcp-runtime.ts point to Vincent Koc as the recent visible author for that file, which is now touched by unrelated PR changes. (role: recent adjacent MCP runtime contributor; confidence: medium; commits: cd7e3df1eac9; files: src/agents/agent-bundle-mcp-runtime.ts)
What the crustacean ranks mean
  • 🦀 challenger crab: rare, exceptional readiness with strong proof, clean implementation, and convincing validation.
  • 🦞 diamond lobster: very strong readiness with only minor maintainer review expected.
  • 🐚 platinum hermit: good normal PR, likely mergeable with ordinary maintainer review.
  • 🦐 gold shrimp: useful signal, but proof or patch confidence is still limited.
  • 🦪 silver shellfish: thin signal; proof, validation, or implementation needs work.
  • 🧂 unranked krab: not merge-ready because proof is missing/unusable or there are serious correctness or safety concerns.
  • 🌊 off-meta tidepool: rating does not apply to this item.

Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

How this review workflow works
  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. P1 High-priority user-facing bug, regression, or broken workflow. 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. labels Jun 22, 2026
@clawsweeper clawsweeper Bot added status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. and removed proof: sufficient ClawSweeper judged the real behavior proof convincing. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Jun 22, 2026
@openclaw-barnacle openclaw-barnacle Bot added the scripts Repository scripts label Jun 22, 2026
@openclaw-barnacle openclaw-barnacle Bot removed the scripts Repository scripts label Jun 22, 2026
@openclaw-barnacle openclaw-barnacle Bot added the scripts Repository scripts label Jun 22, 2026
@mushuiyu886

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Jun 22, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: the existing ClawSweeper review comment will be edited in place when the review finishes.

@clawsweeper clawsweeper Bot added status: 🛠️ actively grinding The PR author has acted after the latest ClawSweeper review and work remains. and removed status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Jun 22, 2026
@mushuiyu886

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper clawsweeper Bot removed the status: 🛠️ actively grinding The PR author has acted after the latest ClawSweeper review and work remains. label Jun 22, 2026
@vincentkoc

Copy link
Copy Markdown
Member

Merged via squash.

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

Labels

commands Command implementations extensions: memory-core Extension: memory-core extensions: qa-lab 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. P1 High-priority user-facing bug, regression, or broken workflow. size: XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants