Repository navigation
fix(claws): bind security review to artifacts and isolate status reads - #166801
Patrick-Erichsen wants to merge 4 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. Reviewed October 7, 2026, 7:27 PM ET / 23:27 UTC. ClawSweeper reviewWhat this changesThe branch makes Claw installs honor aggregate registry verdicts and exact artifact identity, checks official managed-plugin trust, and isolates concurrent installed-status reads. Merge readiness⛔ Blocked before merge - 4 items remain This layer contains distinct hardening that current main does not provide and belongs to an active implementation stack. No definite introduced bug was found, but the changed trust boundary lacks sufficient runtime evidence for merge readiness. Priority: P2 Review scores
Verification
How this fits togetherClaws are versioned agent packages whose installation can add plugins and other managed resources. Registry security metadata and operator consent feed the installation owners; Gateway status reads report the resulting installed resources. flowchart TD
A[Selected registry release] --> B[Artifact and verdict checks]
B --> C{Blocked or needs review?}
C -->|Blocked| D[Visible refusal]
C -->|Review| E[Operator acknowledgement]
C -->|Clean| F[Managed installation]
E --> F
F --> G[Installed resource records]
G --> H[Independent status reads]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +91, Tests +667, Docs +3, Other +2. Total +763 across 27 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. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep one shared artifact-trust owner, preserve direct-install policy, and use independently scoped status reads within the coordinated Claws stack. Do we have a high-confidence way to reproduce the issue? Yes, source establishes the aggregate-verdict defect: current main can classify clean component trust as clean without consulting a malicious aggregate verdict. The reported status race has focused parent/head regression evidence, but was not executed in this review. Is this the best way to solve the issue? Yes, extending the existing trust owner and replacing shared invalidation with scoped cache ownership is a focused solution; final-effect runtime evidence is still needed. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 40d735e451b1. LabelsLabel changes:
Label 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
|
|
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 16/16. Previous: #166800 | Final layer. Published checkpoint:
9e653a8ed286.Full stack tip: #166801. Earlier local-ClawHub lifecycle evidence remains in #163307, tied to its recorded revision.
Automated branch repair is intentionally not enabled independently on these dependent branches: the inspected repair executor defaults to rebasing onto
main, without a coordinated restack. The stack owner must reconcile the base and propagate any repairs before requesting merge readiness.What Problem This Solves
A clean component scan could override an aggregate ClawHub warning, security review could refer to different artifact bytes, and concurrent status reads could invalidate each other's plugin records.
User Impact
Claw and managed-plugin installs honor the full registry verdict and exact selected artifact. Malicious or mismatched content stops before persistence; review-required content needs the appropriate acknowledgement. Concurrent status requests complete independently.
Why This Change Was Made
Bind security evidence to package identity, version, artifact kind, SHA-256, and npm integrity; require trust for Claw-managed official plugins; and give each status read its own plugin cache.
Evidence
dc3d05c5aaea. Two concurrency cases failed withPLUGIN_CACHE_FACT_INVALIDATED; the same three tests passed at9e653a8ed286.9e653a8ed286, 100 focused backend tests passed on October 7 in 64.75 seconds, including aggregate malicious/review verdicts, exact artifact mismatch, managed plugin trust, final grant rechecks, manifest disclosure, and Remove authority.git diff --checkpassed for the full stack.pnpm check:changed; this is not a claim of CI success on the current main merge result.Stack
This is the final follow-up layer after the existing draft stack ending at #163307. The publication preserves the 12 existing PRs and adds four layers for 45 previously local commits. None of these PRs is a standalone public launch.
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.