Repository navigation
fix(claws): block installs when reviewed access changes - #163300
Patrick-Erichsen wants to merge 11 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 changesClaws, versioned agent setups, gain install-time access checks, detailed lifecycle consent disclosures, and catalog search from the Agents header. Review scores
Merge readiness⛔ Blocked before merge - 6 items remain This remains useful, distinct work in an active dependent stack. The prior Update comparison defect is resolved, but the synchronous Add migration read remains, and the available evidence does not establish final-effect rejection after authority or policy changes. Priority: P2 Before merge
Findings
Agent review detailsHow this fits togetherThe Claws lifecycle turns reviewed agent packages into workspace files, plugins, configuration, and scheduled jobs. The Gateway checks consent and current authority before forwarding those changes to their owning subsystems. flowchart TD
A[Agent package] --> B[Gateway plan]
B --> C[User consent review]
C --> D[Current authority and policy checks]
D --> E[Installation owners]
E --> F[Agent configuration and resources]
D --> G[Reject changed access]
Technical reviewBest possible solution: Keep consent enforcement in the existing Gateway and installation owners, using prepared migration facts and verified rejection before final side effects. Do we have a high-confidence way to reproduce the issue? Yes, source establishes the remaining defect: Add forward guards call the synchronous policy reader, which queries SQLite migration state. No runtime reproduction was executed during this read-only review. Is this the best way to solve the issue? Yes, checking reviewed access at the existing effect owners is appropriate; prepare migration facts asynchronously rather than querying SQLite inside each synchronous guard. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 40d735e451b1. Merge-risk optionsMaintainer options:
SecurityNeeds attention: The changed authority boundaries need production final-effect rejection evidence; no concrete exploit or supply-chain regression was established. EvidenceSecurity concerns:
What I checked:
PR surfaceSource +1254, Tests +2735. Total +3989 across 62 files. View PR surface stats
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 HistoryReview history (2 earlier review cycles)
Reviewed October 7, 2026, 7:25 PM ET / 23:25 UTC (Revision 3). |
(cherry picked from commit e77caca60fea912a4b2c1557e7636ad9d4117637)
(cherry picked from commit 454521583c967814c369309b5de83f45b77aecb9)
(cherry picked from commit b4bb515eabd32990763a5814eadc5283aa7c1894)
(cherry picked from commit 7bad1d6e61708fca60c81ac6eb0ef88d9e7f70f2)
(cherry picked from commit c98f10db94feb56fae69f5362b1e7ead15a8f2d7)
26a9707 to
513f3cf
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 6/16. Previous: #163299 | Next: #163302. Published checkpoint:
513f3cf06bee.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
An install can become unsafe if host policy or resource access changes after the user reviews a plan.
User Impact
Add/Update disclose exact effects and reject stale or newly blocked projections before committing scheduler, plugin, or config changes. The Agents header also opens catalog search directly.
Why This Change Was Made
The lifecycle rechecks persisted policy and ownership at the effect boundary, so a review is not treated as a permanent permission. Search remains a front door to the same Gateway plan, not a second installer.
Evidence
Access-drift, scheduler/reload, review-disclosure, and Agents-header regression tests are included. At final stack tip
6765a8741e4,pnpm check:changedand installable-tarball build/integrity passed. Installed-host screenshots show the top-right Agents search and a Workflow Operator review disclosing one plugin and the package audit; UI Add and a real Lobster task succeeded. With Labs off, UI hid catalog/Update while status/Remove stayed available, and reviewed Remove succeeded. The final packaged-host pass retained a second installed Claw and the Labs-off setting after a clean Gateway restart, with user-file hashes unchanged.Release gate: Land the OpenClaw stack together only after ClawHub #3883 and local publish-to-real-task lifecycle proof.