Repository navigation
fix(claws): preserve live authority through lifecycle changes - #166799
Patrick-Erichsen wants to merge 17 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 changesThis PR rechecks plugin grants before installation, drains agent-owned skill watchers before removal, fences rollback writes, and preserves legacy local updates and fresh UI status. Review scores
Merge readiness⛔ Blocked before merge - 4 items remain Keep open: this layer provides distinct lifecycle hardening that is not established as implemented on main. No definite introduced defect was found, but authority-boundary proof remains incomplete. Likely related people: Peter Steinberger and Kimi Yu are unverified routing candidates from current-main area history. Priority: P2 Before merge
FindingsNone. Agent review detailsHow this fits togetherClaws packages configure agents and their skill, plugin, and scheduled-work requirements. Reviewed lifecycle operations pass through Gateway and installer owners before changing installed artifacts, ownership records, or agent workspaces. flowchart TD
A[CLI or Control UI] --> B[Reviewed lifecycle plan]
B --> C[Gateway authority and ownership]
C --> D[Plugin grant review]
C --> E[Scheduled work and watcher drainage]
D --> F[Guarded artifact and record writes]
E --> G[Safe workspace cleanup]
F --> H[Lifecycle result and status]
G --> H
Technical reviewBest possible solution: Keep lifecycle effects under the existing installer, watcher, scheduler, and worker owners, with live authority checked at persistence and cleanup and existing operator state preserved. Do we have a high-confidence way to reproduce the issue? No current-main runtime reproduction was established in this read-only review; source and focused regressions identify the stack's grant, rollback, and watcher races. Is this the best way to solve the issue? Yes, the owner-boundary approach is appropriate and avoids a competing lifecycle implementation; its final-effect authority claims still need direct proof. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 40d735e451b1. Merge-risk optionsMaintainer options:
SecurityNone. EvidenceWhat I checked:
PR surfaceSource +211, Tests +1182, Docs +5. Total +1398 across 36 files. 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 Reviewed October 7, 2026, 7:26 PM ET / 23:26 UTC. |
|
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 14/16. Previous: #166798 | Next: #166800. Published checkpoint:
5b4b0c2311b0.Full stack tip: #166801. Earlier local-ClawHub lifecycle evidence remains in #163307, tied to its recorded revision.
What Problem This Solves
A reviewed Claw operation could reach a later effect after plugin grants, scheduled work, or skill watcher ownership had changed.
User Impact
Changed permissions stop installation before the package is committed. Removal waits for managed skill work to retire, checks current scheduled-job revisions, and preserves resources it can no longer safely own. Default Update remains usable for recorded legacy local sources without restoring package control over models or delegates.
Why This Change Was Made
Recheck staged effective plugin grants at the managed installer boundary, delay the external-mutation marker until that review passes, carry live cron revisions, and use the existing watcher retirement and guarded skill-write owners.
Evidence
9e653a8ed286: 100 focused backend tests passed on October 7 in 64.75 seconds. The real managed-installer integration covers grants revoked during download, rejection before persistence, and preservation of a previously accepted plugin during a denied Update.pnpm check:changedpassed at the unchanged combined tip. Earlier real local-ClawHub recovery and cron-race runs are historical evidence; this publication does not claim a fresh production lifecycle canary.Publication Scope
Related: #163946. This is a draft layer in the Claws Labs stack. The stack retains its previously tested base and currently conflicts with newer main; this publication does not resolve that drift or authorize a release. Production ClawHub support, the compatible published Lobster artifact, official catalog security review, and RFC acceptance remain release gates. The local-source CLI and official-only launch scope are unchanged.