Skip to content

fix(claws): manage installed packages and route plugin approvals - #166800

Closed
Patrick-Erichsen wants to merge 8 commits into
codex/claw-1093-publish-14-lifecycle-authorityfrom
codex/claw-1093-publish-15-installed-approval
Closed

Patrick-Erichsen wants to merge 8 commits into
codex/claw-1093-publish-14-lifecycle-authorityfrom
codex/claw-1093-publish-15-installed-approval

Conversation

@Patrick-Erichsen

@Patrick-Erichsen Patrick-Erichsen commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

Publication Refresh: October 7

Layer 15/16. Previous: #166799 | Next: #166801. Published checkpoint: 28da785fafd4.

Full stack tip: #166801. Earlier local-ClawHub lifecycle evidence remains in #163307, tied to its recorded revision.

What Problem This Solves

The catalog could still offer Add for a Claw already installed, while plugin approval requests from a legitimate write-scoped tool caller could be rejected.

User Impact

Installed Claws can be managed from Explore or search, including missing-agent and modified states. A trusted live plugin invocation can request operator review without acquiring permission to approve its own request.

Why This Change Was Made

Connect installed status to the existing lifecycle panel and preserve pending removal across navigation. Route approval requests through the caller's live authority and keep approval resolution restricted to reviewers.

Evidence

  • Combined stack at 9e653a8ed286: 13/13 browser tests passed on October 7 in 28.51 seconds. They exercise installed-package Manage, partial/orphan removal, stale searches, pending status, Labs-off behavior, and mobile/desktop layouts using the real built Control UI with a mocked Gateway.
  • Six Gateway approval-request tests passed, covering a write-only caller, signed hook ownership, and denial of read-only callers or untrusted plugins.
  • The screenshot shows the current missing-agent recovery panel with synthetic data; the comparable catalog review baseline and updated review are attached to #166798. The full earlier real-ClawHub lifecycle proof remains linked from the preceding stack; approval-bearing production plugin use still needs the canonical published artifact.
  • The combined tip's earlier pnpm check:changed pass remains applicable because the source is unchanged.

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.

Current: recovery inspection with Labs off

@clawsweeper

clawsweeper Bot commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui gateway Gateway runtime agents Agent runtime and tooling size: XL labels Oct 7, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Oct 7, 2026
@clawsweeper

clawsweeper Bot commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge.

What this changes

The PR routes installed Claws to their existing management panels and lets trusted, write-scoped plugin invocations request operator approval without granting reviewer permissions.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Useful owner-aligned implementation and meaningful boundary coverage, with incomplete proof for the material authority change.
Proof confidence 🦐 gold shrimp (3/6) Real behavior proof is necessary before merge. See Before merge.
Patch quality 🦐 gold shrimp (3/6) No actionable review findings were identified.

Merge readiness

⛔ Blocked before merge - 4 items remain

Keep open: this layer contains distinct work absent from current main. No definite introduced defect was established, but approval authority proof and coordinated stack integration remain incomplete.

Priority: P2
Reviewed head: 28da785fafd484b5c7ae63742e0d286b356a9617

Before merge

  • Add real behavior proof - Authority-chain proof required: the changed Gateway dispatcher admits write-only plugin approval requests. The inspected recovery screenshot supports the UI state, and committed Gateway tests cover Allow/Deny marker effects, but supplied execution evidence does not establish forbidden-caller or pending-approval revocation rejection before final I/O. Historical local-ClawHub proof remains valid for its recorded revision. Add redacted Gateway/plugin traces; updating the PR body triggers re-review, or a maintainer can request @clawsweeper re-review.
  • Resolve merge risk - Final-effect rejection remains unproven for a read-only caller, attempted self-resolution, and authority revoked or reassigned while an approval is pending through the new bridge.
  • Resolve merge risk - The layer is clean against its preceding stack base, but the publication reports stack conflicts with newer main; coordinated integration must establish that the repaired paths survive the resulting composition.
  • Complete next step - Complete final-effect authority proof and coordinate stack reconciliation before presenting this layer for merge.

Findings

None.

Agent review details

How this fits together

Claws are packaged agent setups discovered through the Control UI and managed by the Gateway. Plugin tools use the Gateway’s approval system to pause work until an authorized reviewer decides.

flowchart TD
  A[Catalog and installed status] --> B[Control UI]
  B --> C[Add or manage Claw]
  D[Live plugin invocation] --> E[Gateway authority checks]
  E --> F[Pending approval]
  G[Authorized reviewer] --> F
  F --> H[Allow or deny tool effect]
Loading

Technical review

Best possible solution:

Reuse the lifecycle panel and request-only approval owner, with live authority enforced through the compatible plugin’s final effect.

Do we have a high-confidence way to reproduce the issue?

Not applicable as a single current-main bug reproduction: catalog management belongs to the unpublished stack, while the approval change extends existing request admission. The source and tests establish the intended scenarios without a reviewer-executed run.

Is this the best way to solve the issue?

Yes, the approach reuses existing lifecycle and approval owners rather than duplicating them; final-effect authority evidence is needed to validate the full composition.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 40d735e451b1.

Merge-risk options

Maintainer options:

  1. Prove the request-only boundary (recommended)
    Record allowed and forbidden final-effect outcomes through the real Gateway and compatible plugin, including revocation during a pending approval.

Security

None.

Evidence

What I checked:

  • Pinned introduction boundary: Reviewed the merge-base-to-head delta. The verified test merge targets the preceding stack layer, not fetched current main; its clean result does not establish main integration readiness. (28da785fafd4)
  • Existing lifecycle owner reused: Installed package selection routes present or modified agents to their existing panel and missing agents to recovery inspection; pending removal prevents ordinary Manage navigation. (ui/src/pages/agents-home/agents-home-page.ts:129, 28da785fafd4)
  • Request-only authority bridge: The new bridge requires a trusted plugin or validated signed hook owner and effective write authority. It emits write-only synthetic scopes; the method exception is restricted to plugin approval requests, leaving resolution under reviewer authorization. (src/gateway/server-plugin-in-process-authority.ts:415, 28da785fafd4)
  • Final-effect coverage and remaining gap: The real-Gateway synthetic-package test observes a marker written after Allow once and unchanged after Deny. The six reported approval-request tests include stub handlers and revocation before a subsequent request; they do not establish final-effect rejection when authority changes during a pending approval. No test execution was performed during this read-only review. (src/gateway/server-claws-trusted-plugin-approval.e2e.test.ts:278, 28da785fafd4)
  • Inspected visual and historical proof: Inspected all four prepared images. The current image directly shows missing-agent recovery with Labs off; the other images show historical Labs, catalog, and plugin-review states. The captured body reports 13 built-UI browser tests at combined tip 9e653a8 and explicitly leaves approval-bearing production plugin proof outstanding. Body source identity: 232da4ff28816ccfa80149587b48ffe638999d8c457d5d0d3ffc50153f110440.
  • Current-main necessity check: Fetched current main’s Agents home page has no Claws catalog-management integration, and its trusted-plugin dispatcher has no request-only bridge. No verified merged same-repository fixing PR establishes redundancy. (ui/src/pages/agents-home/agents-home-page.ts:6, 40d735e451b1)

PR surface

Source +368, Tests +1176. Total +1544 across 33 files.

View PR surface stats
Area Files Added Removed Net
Source 23 442 74 +368
Tests 10 1193 17 +1176
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 33 1635 91 +1544

Review metrics

Metric Value Why it matters
Production versus test growth production +368, tests and test support +1176 net lines Production growth supports installed-package routing and the request-only authority bridge; most added coverage targets their boundaries.
Authority exception 1 request method; 0 reviewer methods broadened The new write-scoped admission exception is confined to requesting plugin approval.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #163946
Summary: This PR implements a bounded part of the canonical Claws Labs launch contract; neighboring layers own distinct prerequisites.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This is bounded catalog-management and approval-routing work within an unpublished Labs stack, with no established urgent shipped regression.
  • merge-risk: 🚨 security-boundary: The new write-scoped approval bridge changes authority admission, and pending-approval revocation still needs observable final-effect proof.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🦐 gold shrimp.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Prove that a read-only caller and self-resolving writer cannot reach the final effect, and that revocation or reassignment during pending approval prevents I/O.
  • Provide comparable visual evidence for the changed installed-package Manage flow.
  • Reconcile and review the dependent stack as one coordinated integration.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed October 7, 2026, 7:26 PM ET / 23:26 UTC.

@roboclaw-bot

Copy link
Copy Markdown
Collaborator

Closing as superseded: #171623 replaced the Claws plan/review/update/remove lifecycle with a one-way Add operation, and main no longer has the lifecycle modules this layer changes. Any hardening here that still matters should be redone against the new Add flow.

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling app: web-ui App: web-ui gateway Gateway runtime merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: XL status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants