openhuman icon indicating copy to clipboard operation
openhuman copied to clipboard

Simplify migration from OpenClaw and Hermes Agent into OpenHuman

Open senamakel opened this issue 6 months ago • 3 comments

Summary

Lower the wall for users moving from OpenClaw and Hermes Agent (and similar MIT terminal-first harnesses called out in the README comparison table) into OpenHuman. Today OpenClaw memory migration exists in the Rust core (openhuman.migrate_openclaw), but the flow is easy to miss, defaults to dry-run in the controller handler, and there is no first-class Hermes importer or guided UI.

Problem

  • Discoverability — Migration lives under the migration domain (src/openhuman/migration/) with JSON-RPC / CLI exposure; most users never see it. There is no onboarding step or Settings panel that says “Import from OpenClaw / Hermes.”
  • OpenClaw coverage — migrate_openclaw_memory reads memory/brain.db, MEMORY.md, and memory/*.md under ~/.openclaw/workspace (or a user-supplied path). Schema drift in future OpenClaw versions, conflict handling, and how imported rows map into OpenHuman’s memory tree / vault (vs legacy Memory::store path) may need explicit product decisions and tests.
  • Hermes — No migrate_hermes (or generic) path in-tree; would require documenting Hermes’s on-disk layout, then implementing import analogous to OpenClaw.
  • Operational friction — Operators must know RPC method names, workspace paths, and that dry-run is the default in handle_migrate_openclaw (unwrap_or(true)), which surprises people who expect an immediate import.

Solution (optional)

  1. Product surface — Add a short “Import from another assistant” flow (Settings or onboarding): pick vendor (OpenClaw / Hermes), pick folder or use defaults, run preview (dry run) with human-readable summary, then apply with one confirmation. Wire to coreRpcClient / existing RPC.
  2. Hermes — Spike Hermes install, enumerate canonical data paths (memory, config, transcripts), implement migrate_hermes (or a vendor-agnostic importer with pluggable readers) + MigrationReport + tests with fixture dirs.
  3. OpenClaw hardening — Version-note compatibility in docs; expand tests for real brain.db shapes; clarify dry-run default (consider default false when invoked from GUI with explicit confirm step, or keep dry-run default for RPC-only callers — document clearly).
  4. Docs — Add a GitBook page under Developing or Features with copy-paste paths per OS, troubleshooting (“nothing found”, 401 if wrong core, backup behavior in backup_target_memory).
  5. Future — Optional single archive upload (.zip of old workspace) for constrained environments; out of scope unless small.

Acceptance criteria

  • [ ] Users can complete an OpenClaw migration without reading RPC docs (UI or documented one-shot CLI that wraps the same core logic).
  • [ ] Hermes: either documented manual steps + issue split, or working importer with fixture-based tests and MigrationReport — pick one in implementation but do not leave Hermes unmentioned in UX (“coming soon” is acceptable only with linked tracking issue).
  • [ ] Behavior for dry-run vs apply is obvious in the UI and in user-facing docs.
  • [ ] Diff coverage ≥ 80% on changed lines (.github/workflows/coverage.yml).

Related

senamakel avatar May 09 '26 22:05 senamakel

Picking this one up.

Shipping the OpenClaw side end-to-end (Settings panel + a small core-side unblock so Apply actually writes data instead of bailing). Leaving this issue open so the Hermes companion stays tracked here — the panel mentions it as 'on the roadmap' and the link needs to land somewhere live.

obchain avatar May 18 '26 10:05 obchain

Quick audit of the current state, since this issue is wearing two hats now (OpenClaw + Hermes) and the OpenClaw half landed a week ago:

Vendor Status Where it landed
OpenClaw ✅ shipped #2087 — merged 2026-05-19. MigrationPanel.tsx, migration/core.rs, migration/ops.rs, memory/store/factories.rs, i18n for 12 locales, Vitest coverage, coverage-matrix update.
Hermes ❌ deliberately stubbed MigrationPanel.tsx:149 ships the picker option as disabled with a "coming soon" caption that links to this issue via HERMES_TRACKING_URL. Zero hermes/Hermes references in src/openhuman/migration/.

@obchain's earlier note explicitly kept this issue open so the in-panel link has somewhere live to point at — closing it now would break that link.

Per the issue's own acceptance criteria — "Hermes: either documented manual steps + issue split, or working importer with fixture-based tests" — the cleanest tidy-up, now that OpenClaw is done, is option B (issue split):

  1. File a new focused tracking issue, e.g. feat(migration): Hermes Agent importer (split from #1440), with the Hermes-specific scope copy-pasted from the original (data paths, migrate_hermes RPC, MigrationReport, fixture tests, panel wiring to remove disabled).
  2. Repoint HERMES_TRACKING_URL in MigrationPanel.tsx at the new issue number (small follow-up PR).
  3. Close this one as "OpenClaw done; Hermes tracked in #."

That way the merged OpenClaw work feels shipped instead of leaving #1440 perpetually open, and the Hermes scope gets its own clean PR thread.

Happy to do steps 1–2 (file the new tracking issue + put up the small PR to repoint the link) if @senamakel / @obchain are good with that direction. Otherwise this is purely a process suggestion — the current setup also works fine.

CodeGhost21 avatar May 27 '26 12:05 CodeGhost21

Taking this on. Will start with a scoping spike on the existing migration domain and Hermes's on-disk layout, then propose a phased plan.

YOMXXX avatar May 27 '26 12:05 YOMXXX