feat(examples): OpenClaw → OpenViking memory migration tool#1289
Open
deepakdevp wants to merge 1 commit intovolcengine:mainfrom
Open
feat(examples): OpenClaw → OpenViking memory migration tool#1289deepakdevp wants to merge 1 commit intovolcengine:mainfrom
deepakdevp wants to merge 1 commit intovolcengine:mainfrom
Conversation
Closes volcengine#1011. Implements a zero-LLM-call migration script that reads OpenClaw workspace memory files and writes them directly into OpenViking's memory system using MemoryExtractor.create_memory() + SessionCompressor._index_memory(). Category mapping: MEMORY.md / memory.md → entities (curated durable knowledge) YYYY-MM-DD.md → events (daily logs / time-stamped records) YYYY-MM-DD-slug.md → cases (session summaries) everything else → entities (safe fallback) Files added: examples/openclaw-migration/migrate.py — main migration script examples/openclaw-migration/README.md — usage guide tests/unit/test_openclaw_migration.py — 25 unit tests (no OV server needed) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨No code suggestions found for the PR. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #1011.
Summary
examples/openclaw-migration/migrate.py— a standalone script that imports OpenClaw workspace memory files directly into OpenViking's memory systemMemoryExtractor.create_memory()+SessionCompressor._index_memory()for direct write + embedding enqueueexamples/openclaw-migration/README.mdwith usage guide, category mapping table, and dry-run exampletests/unit/test_openclaw_migration.py— 25 unit tests, no OV server requiredCategory mapping
MEMORY.md,memory.mdentitiesYYYY-MM-DD.mdeventsYYYY-MM-DD-slug.mdcasesentities--categoryflag overrides all files to a single category.Test plan
PYTHONPATH=. .venv/bin/python -m pytest tests/unit/test_openclaw_migration.py -v --no-cov→ 25 passedpython examples/openclaw-migration/migrate.py --dry-runagainst a real OpenClaw workspace--ov-data-dir ./test-data --user-id testuser, verify memories appear underviking://user/testuser/memories/🤖 Generated with Claude Code