Repository navigation
fix: isolate external workspaces during adoption - #96
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs real behavior proof before merge. Reviewed August 19, 2026, 7:31 PM ET / 23:31 UTC. ClawSweeper reviewWhat this changesThe PR copies configured external OpenClaw workspaces into an adopted OCM environment and rewrites imported configuration to use those isolated copies. Merge readiness⛔ Blocked until real behavior proof is added - 6 items remain Keep this PR open: its workspace copy preserves symlinks verbatim, so an adopted environment can still reference files outside the copied workspace; it also needs real adoption proof before merge. Priority: P2 Review scores
Verification
Live VerificationCommand: Result: FAIL (failed) — execution before step 1 Assertions:
How this fits togetherOCM adoption imports a plain OpenClaw home into a managed environment. It reads workspace configuration, copies durable state, rewrites paths for the new environment, and then prepares the managed runtime. flowchart LR
A[Plain OpenClaw home] --> B[Read workspace configuration]
B --> C[Validate migration paths]
C --> D[Copy external workspace]
D --> E[Adopted OCM environment]
E --> F[Rewrite imported configuration]
F --> G[Managed runtime]
Before merge
Findings
Agent review detailsSecurityNone. Review metrics
Merge-risk optionsMaintainer options:
Copy recommended automerge instructionTechnical reviewBest possible solution: Use a workspace-specific copy routine that rebases contained links into the copied tree and rejects links that resolve outside it, then demonstrate a real import with redacted terminal output. Do we have a high-confidence way to reproduce the issue? Yes—source-reproducible: configure an external workspace containing a symlink that resolves outside that workspace, then adopt it and inspect the copied link; the helper preserves its original target. Is this the best way to solve the issue? No: copying configured workspaces is appropriate, but verbatim symlink preservation defeats the stated isolation guarantee; contained links must be rebased and escaping links rejected. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: not found in the target repository. Codex review notes: model internal, reasoning high; reviewed against a101e103dea5. LabelsLabel justifications:
EvidenceAcceptance criteria:
What I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
Summary
Validation
cargo test --test migrate_command_tests(36 passed)Fixes release-validation imports where
~/.openclawpoints at a repo-backed or symlinked workspace.