Repository navigation
fix(claws): recover interrupted ownership and preserve safe removal - #163307
Patrick-Erichsen wants to merge 34 commits into
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs real behavior proof before merge. What this changesThe branch adds explicit recovery for interrupted Claw MCP ownership, protects scheduled-job removal against concurrent edits, rechecks policy around plugin activation, and keeps setup chat on the installation Gateway. Review scores
Merge readiness⛔ Blocked before merge - 7 items remain This PR retains distinct, useful lifecycle work that current main does not fully provide. No definite introduced correctness bug was established, but the earlier authority and existing-state proof gaps remain unresolved. Priority: P2 Before merge
Findings
Agent review detailsHow this fits togetherClaws are versioned packages that configure an agent and its workspace, plugins, MCP servers, and scheduled work. Gateway and CLI lifecycle operations translate reviewed plans into changes while preserving ownership and user-managed resources. flowchart TD
A[UI or CLI request] --> B[Reviewed lifecycle plan]
B --> C[Current policy and ownership]
C --> D[Plugin activation]
D --> C
C --> E[Workspace and configuration changes]
C --> F[Ownership database worker]
C --> G[Revision-checked schedule removal]
E --> H[Status and setup chat]
F --> H
G --> H
Technical reviewBest possible solution: Keep recovery and deletion in the canonical lifecycle owners, preserve user-managed state, and establish final-effect authority and existing-state compatibility before landing the coordinated stack. Do we have a high-confidence way to reproduce the issue? Unclear for a live reproduction: source and supplemental regressions identify interrupted ownership and concurrent-removal paths, but this read-only review did not execute them through an installed current-main host. Is this the best way to solve the issue? Yes in direction: exact-consent recovery and revision checks belong in the existing lifecycle owners; the available evidence does not yet establish the complete authority and upgrade behavior. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 40d735e451b1. Merge-risk optionsMaintainer options:
SecurityNeeds attention: No concrete bypass or supply-chain regression was established, but the changed activation handoff still needs final-effect authority evidence. EvidenceSecurity concerns:
What I checked:
PR surfacePR surface statistics unavailable: the file list is incomplete. Review metrics
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 HistoryReviewed October 7, 2026, 7:27 PM ET / 23:27 UTC (Revision 3). |
Keep status, Doctor, and export read-only. Add a per-ref operator CLI preview/apply flow with exact plan integrity, agent/MCP leases, and worker-owned compare-and-swap for complete or release while retaining live config. Resume Add after a landed MCP config write only while its managed ref remains exact.
6765a87 to
2ab926c
Compare
|
Closing as superseded: #171623 replaced the Claws plan/review/update/remove lifecycle with a one-way Add operation, and Closed by Roboclaw at the author's request after an audit of his open PRs. The branch is kept, so this can be reopened if needed. |
Publication Refresh: October 7
Layer 12/16. Previous: #163306 | Next: #166798. Published checkpoint:
2ab926ce8c93.The stack now includes 45 previously local follow-up commits in four additional draft PRs, ending at #166801 (
9e653a8ed286). Fresh combined-tip checks passed: 100 backend tests and 13 built-UI browser tests with a mocked Gateway. Before/after review captures are attached. Evidence below that names6765a8741e4remains historical evidence for that revision, not a new real-ClawHub run or per-layer CI result.The stack remains draft and its first layer conflicts with current
main. Reconciliation, exact-head CI/review, and the existing release gates remain outstanding. No merge or deployment is authorized by this publication.What Problem This Solves
Interrupted MCP installs and concurrent cron changes can leave a Claw in an uncertain ownership state or make removal unsafe. This original final layer in the Claws Labs stack recovers recorded MCP ownership, compares live cron revisions before removal, and keeps setup chat bound to the Gateway where Add completed.
User Impact
Across the draft OpenClaw stack, users can enable the dedicated Claws Labs setting, browse official
@openclaw/*Claws from ClawHub, review and Add one, then inspect, Update, or safely Remove it. Installed agents keep running and remain removable when Labs is off. The oldOPENCLAW_EXPERIMENTAL_CLAWSflag is not required.Evidence
6765a8741e4:pnpm check:changed, focused backend 63/63, UI 34/34, core/test/UI typechecks, lint and format. A freshcodex review --base a960b533f0dfound no actionable regression in the final UI commit.OPENCLAW_EXPERIMENTAL_CLAWSunset.@openclaw/*Claws. All 30 staged sources validated and built; the local source-sync dry run reported 30 exact-matchskipactions after the Executive Assistant version correction. This is local-only publication, not a production catalog claim.cwdis Gateway-relative.Visual Proof
Labs defaults off; enabling it reveals the official catalog:
Reviewed plugin installation and a real Lobster-backed task:
Updated plugin task, second Claw artifact, and post-Remove persistence:
Release Gates
Keep the stack draft and do not merge or deploy yet. Land ClawHub #3883 before the public OpenClaw toggle, reconcile plugin-installer consent ownership with OpenClaw #147280, close the Claws RFC #48 contract, and land the Lobster #200 approval behavior. The official catalog still needs production publication, security-audit review, and final production-path verification; the local ClawHub intentionally has no recorded security analysis for its scratch packages.