Repository navigation
fix(claws): stop plugin installs when capability review changes - #147280
giodl73-repo wants to merge 6 commits into
Conversation
Co-authored-by: Copilot <[email protected]>
|
🦞👀 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. Reviewed September 14, 2026, 12:02 AM ET / 04:02 UTC (Revision 4). ClawSweeper reviewWhat this changesClaw agent-package previews now record plugin capabilities and grants, and installation rejects changes to that reviewed evidence. Merge readiness⛔ Blocked before merge - 5 items remain Keep open: current main still lacks this consent binding, and both earlier code findings are addressed. No new actionable defect was found; installer-contract approval and final-effect authority proof remain unresolved. Priority: P2 Review scores
Verification
How this fits togetherClaws package an agent’s workspace and shared requirements. Their preview and apply flow sends plugin requirements through OpenClaw’s canonical installer, which publishes artifacts and records installation state. flowchart TD
A[Claw package and operator config] --> B[Inspect plugin artifact]
B --> C[Review capabilities and grants]
C --> D[Confirm exact plan]
D --> E[Installer compares staged evidence]
E -->|Matches| F[Commit artifact and installation record]
E -->|Changed or denied| G[Stop and request new preview]
Decision needed
Why: The PR explicitly requests confirmation of a new installer seam and its authority contract; source review cannot supply that ownership decision. Before merge
Agent review detailsSecurityNone. PR surfaceSource +266, Tests +867. Total +1133 across 40 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep capability inspection and final consent under the canonical installer, with an owner-approved callback contract and demonstrated preservation of existing installations when review becomes invalid. Do we have a high-confidence way to reproduce the issue? Yes, from source: current main can skip the enclosing Claw review on official or previously accepted artifacts, and its plan does not bind the complete capability evidence. No runtime reproduction was executed. Is this the best way to solve the issue? Yes in structure: extending the canonical installer preserves one consent owner, and dry-run inspection serves a different lifecycle point from commit-time approval. Contract approval and complete authority proof remain necessary. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against c6c9d416327e. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (3 earlier review cycles)
|
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
|
For the Claws Labs launch, the new draft stack appears to supersede this implementation rather than needing both changes merged independently:
Could @steipete or the current plugin-installer owner review and explicitly accept the |
What Problem This Solves
Fixes two fail-closed gaps in Claw-managed plugin installation:
User Impact
Claw add and update now bind package identity, integrity, the complete declared capability surface, and effective grants to the reviewed plan. Apply uses the same loaded config as preview, independently re-probes the artifact, and requires the Claw owner callback even when ordinary plugin consent would be exempt.
Changed or revoked grants, changed declared capabilities, malformed evidence, or a denied owner review stop installation before final persistence. Direct plugin installation behavior is unchanged.
Why This Change Was Made
Claw plans need to cover channels, providers, tools, contracts, hooks, MCP servers, CLI surfaces, skills, dangerous config flags, and hook-sensitive effective grants. Preview records and hashes that evidence; apply revalidates it and only acknowledges canonical installer consent when the staged artifact review token and grants exactly match.
This adds an internal plugin-install callback,
onPluginArtifactInspect, so Claw planning can inspect staged bytes before dry-run cleanup. Owner confirmation requested from @steipete / the plugin installer owner because this is a new semi-public installer seam.The existing commit-time installer callback remains the final mutation boundary, including post-callback staged-artifact reinspection to close TOCTOU.
Evidence
clawManagedinstall invokes the owner callback, rejects denial, and never persists.git diff --checkpasses.travel-conciergepublic-lifecycle proof passed: inspect, preview, add, run, status, update, doctor, export, remove, final absence, and user-owned-state preservation.openai/gpt-5.6-luna; it is not provider-live evidence and incurred no provider cost.