Repository navigation
feat(migrate): import Grok Bot configuration like Hermes - #178769
Patrick-Erichsen wants to merge 4 commits into
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
e052b5f to
6eb63b6
Compare
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Codex review: needs real behavior proof before merge. What this changesAdds a Grok Bot migration plugin for importing bot content and supported configuration through the existing migration workflow. Example: Import a snapshot containing a Researcher bot, complete exported memory, and a Research skill.
Review scores
ProductKind: Feature · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Blocked before merge - 5 items remain Keep this PR open: it provides a useful maintainer-directed migration capability, and both prior findings are fixed; one documentation defect remains. Priority: P2 Before merge
Findings
Tests
Agent review detailsHow this fits togetherThe plugin translates local files or authenticated Grok definitions into migration plans; existing OpenClaw migration, config, agent, and scheduler owners apply the selected changes. flowchart TD
A[Grok files or hosted account] --> B[Grok source adapter]
B --> C[Migration preview]
C --> D[Backup and offline admission]
D --> E[Native configuration and agent owners]
E --> F[Workspace content and disabled schedules]
E --> G[Migration report]
Technical reviewBest possible solution: Retain the plugin adapter over native migration owners, align its public coverage claims, and qualify its hosted boundary before landing the dependent stack. Do we have a high-confidence way to reproduce the issue? This is a new capability; source inspection confirms both prior fixes and the remaining documentation mismatch, without executing target code. Is this the best way to solve the issue? The existing provider contract and native effect owners are the appropriate implementation boundary; the source adapters serve distinct supported inputs without introducing a competing migration engine. Full review comments:
Overall correctness: patch is correct AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 4213136ceea7. Merge-risk optionsMaintainer options:
Provenance checked
TestingProof path: shipped entry point. SecurityNeeds attention: No concrete authorization bypass was established, but hosted account isolation still needs production-boundary qualification. EvidenceWhat I checked:
PR surfaceSource +3216, Tests +1291, Docs +239, Config +14, Generated 0, Other +9. Total +4769 across 44 files. Added test files: 6. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. LabelsLabel changes: No label changes. Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (1 earlier review cycle)
Reviewed October 20, 2026, 7:51 PM ET / 23:51 UTC (Revision 2). |
6eb63b6 to
12dcad3
Compare
|
The current revision narrows the product to confirmed transfers: credential migration is removed, private cloud memory is not requested, and partial exported memory is skipped even on saved-plan recovery. Source login remains authentication for reading definitions only. Both concrete provider findings are fixed: default discovery now records a reopenable source, and skill rows carry their source name for the actual CLI selector. Before-fix regression receipts and 22 passing source/provider/native integration tests are recorded in CLAW-1180. Denied owned-bot access remains unavailable, and forbidden/shared roster rows are filtered before per-agent requests. Known integration IDs now have specific setup guidance rather than generic name matching. The official AgentMail 0.2.1 plugin was installed in an isolated stopped OCM environment, dependencies verified, then explicitly disabled. No service credentials, mail calls, or Gateway start were performed. This proves installability, not drop-in Grok tool parity. The current native-migration screenshot is attached to CLAW-1180; the older URL-to-Claw PR screenshots are not evidence of this flow. Live owned-account qualification is still blocked by MacBook Keychain access. A published-driver upgrade is not newly claimed. Repairs remain owned by the local stack coordinator; the current bot contract reports repair lanes retired. |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
What Problem This Solves
Add Grok Bot to the existing one-time migration workflow used by Hermes, accepting local/account sources, offline snapshots, recipes, and marketplace/share URLs.
User Impact
Imports owned-agent identity/icons, instructions, skills, complete explicitly exported memory, timezone, supported disabled cron jobs, and compatible disabled MCP connection definitions. Supports fresh onboarding and standalone migration into existing state with conflicts and repeat-apply handling.
Credentials are not copied, even with
--include-secrets. Private cloud memory is not requested, and partial memory is skipped, including recovery from an older saved plan. Grok sign-in is used only to read source definitions. Known plugin IDs receive curated setup guidance for AgentMail, X/xurl, Gmail/Sheets/gog, Slack, and manual Salesforce MCP. No automatic plugin installation or drop-in tool parity is claimed.Why This Change Was Made
The requested product is configuration migration rather than individual Claw packages. Patrick further narrowed scope to verified transfers and explicit handling of unsupported content. This uses the existing detect/plan/apply owners rather than a parallel importer.
Depends on native migration capabilities #178768. Replaces the product direction of the earlier URL-to-Claw importer #174960. Scope and proof are tracked in CLAW-1180.
Evidence
Before: new boundary regressions fail because credentials are still planned, partial memory is still copied, and hosted private memory is requested. Default token-only discovery cannot reopen its source on apply. Imported skills cannot be selected by their names.
After: 22 focused tests pass across source/provider/integration boundaries and the real migration/config/agent/cron owners (48.80s wrapper wall time). Credentials are omitted, complete memory and existing state are preserved, partial memory and old credential actions are rejected, source discovery round-trips, and the actual CLI selector accepts
Research.Plugin installation: the official
clawhub:@agentmail/[email protected]package installed successfully in the stopped isolated OCM environment; required dependencies are present. Inspection confirms explicitenabled=false,activated=false,status=disabled.--no-enablepreserves defaults rather than forcing disable, so the setup guide now includesplugins disable agentmail. No sign-in or mail operation was performed.Real-owner integration verifies multi-agent creation, icons, instructions, memory, skills, timezone, disabled MCP/cron, conflicts, repeat apply, and saved-plan recovery. It does not execute external integrations or schedulers.
Earlier real built-CLI Stalk proof: 28 migrated, 9 manual/skipped, zero errors/conflicts, verified backup; all 9 exported memory entries and 19 skill bodies retained exactly. Stalk completed a real local Ollama turn and displayed its imported purple avatar. The current native-migration screenshot is attached to CLAW-1180; screenshots on the older PR show a different Claw-package flow and are not proof of these migration effects.
Extension production/test types and root integration types pass. Scoped lint and candidate build receipts are recorded with the final revision below. Broad pre-existing line-count, graph-budget, and agentsapi unused-export findings were not waived or modified.
Final combined head
12dcad3075cbuilds successfully in 4m22s (existing UI gzip warning retained). Native head:73ca0a4d30b. The rebuilt CLI selects onlystalk-setupby name, emits all six curated integration paths, and plans no secret actions. Real Stalk repeat apply completes with 25 migrated, 12 skipped, no errors/conflicts, and a verified backup; all 19 skill bodies, 9 exported memories, and instructions remain intact, with one memory import block.Live owned-account qualification remains blocked by the MacBook's Grok Keychain item denying SSH access. The local cache contains metadata including rooms, not full bots. No account-wide completeness or integration execution claim is made; private memory is now deliberately outside hosted import scope. Source conversations were not read and no messages were sent.
Review repairs are owned by the local stack coordinator. ClawSweeper's current guidance says repair/merge execution lanes are retired; review is requested after coherent stack updates. Nothing is merged or activated in personal state.
Merge Danger
Door: Two-way
Code can be reverted; imported state uses the migration framework's verified backup for restoration. Source Grok data is unchanged.
Blast Radius: Migration
Hosted definitions depend on Grok's current private API and source sign-in. Schedules and connections remain disabled until their tool scope, authorization, and delivery are reviewed.