Skip to content

feat(claws): discover and add community Claws - #173345

Merged
Patrick-Erichsen merged 4 commits into
mainfrom
community-claw-add
Oct 20, 2026
Merged

Patrick-Erichsen merged 4 commits into
mainfrom
community-claw-add

Conversation

@Patrick-Erichsen

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

Copy link
Copy Markdown
Contributor

What Problem This Solves

Claws published by personal accounts cannot be discovered or opened through the official-only catalog.

User Impact

Users can find, inspect, and Add community Claws as ordinary agents. Publisher identity is shown separately from the current Official badge; existing artifact verification and trust prompts still apply.

Why This Change Was Made

public Claw → verify publisher + artifact → inspect contents → Add → ordinary agent chat

Package links carry the full publisher/name identity. Official status comes from the publisher's current status, including after revocation. The Claw Add prerequisites have merged into main; registry discovery is provided by openclaw/clawhub#3963.

Creation/review UI: #173377. Private draft/publication API: #173346.

Evidence

  • Before: opening a personal publisher's card threw an official-only route error; badge revocation still displayed Official.
  • After: the personal-publisher browser flow reaches Add and sends the first chat message. Catalog tests cover current publisher status and verified community artifacts.
  • A real fresh-user run found a remaining official-only manifest-disclosure guard. The regression failed for personal and unscoped packages before the fix; all 52 disclosure/Add/source tests now pass. The guard uses the shared canonical name validator and retains artifact identity, version, and checksum checks.
  • Current rebased stack: 252 UI tests and 7 browser scenarios pass, including all 6 catalog/Add scenarios across mobile, tablet, laptop, and desktop layouts. UI and Gateway method typechecks, formatting and targeted lint pass. The runtime build and protocol checks pass.
  • Real integration on combined stack commit 16029c078424: an agent authored the proposal through its normal file tool; the creator reviewed and explicitly published @cli-user/[email protected]. A fresh consumer without publisher credentials discovered it without an Official badge, explicitly acknowledged the warning, and completed Add (status: complete, readiness.ready: true). The ordinary agent public-source-brief replied to its first chat and a public-source research question.
  • The real claws.add.apply owner rejected both a mismatched publisher and missing risk acknowledgement before installation: configured agents stayed [main], the config hash was unchanged, and all workspace roots/file hashes were unchanged. The allowed Add then created workspace-public-source-brief, confirming the snapshot covered the allocation parent. The publisher case uses an explicit read-only fault proxy changing only owner.handle from cli-user to other; the genuine registry/package are unchanged. Missing consent returns CLAWHUB_RISK_ACKNOWLEDGEMENT_REQUIRED through the real UI.
  • The archive is exactly the two reviewed files (CLAW.md, package.json), 847 bytes, SHA-256 6d91eff0ed17172d05a522947986b111ed99f07565c15657c5cf662696bd1432. All four synthetic private markers and private source files are absent. The model required a creator-side, format-only Python-literal-to-JSON edit after correction attempts; every authored value was preserved.
  • Local Gateway and ClawHub auth, storage, publication, finalization, discovery, download and Add are real. External scanner receipts are simulated; the scanner warning remained enforced. Nothing was published to production.

Review repair: accepted publisher identity

Before the repair, a stale catalog card could keep showing its old publisher and Official badge after accepted package detail supplied the current community publisher. The rendered regression fails before the fix and passes afterward. Publisher name, handle, link, and Official badge now come from the accepted detail together; the upstream direct Solid renderer is preserved.

Before After
Stale Official publisher from the catalog Current community publisher from accepted detail

These two screenshots exercise the real Control UI with a Gateway response fixture that changes publisher identity between catalog and detail.

Author simplification pass: reused accepted detail as the sole publisher projection; no new state or renderer. Whole-PR delta against main: production +104/−80, tests +344/−62. The new tests protect distinct publisher, artifact, routing, and Add boundaries.

Inspected real-system proof

Fresh consumer: community publisher, no Official badge
Explicit warning before Add
Created ordinary agent answering in chat

Desktop 1440×900. Private model, workspace and identity fields are masked. The screenshot includes the completed follow-up research answer; the initial automatic chat also completed.

Current revision validation

On combined stack head 853e003fb498: 59 focused source/disclosure/draft/filesystem tests, 252 UI unit tests, and 7 browser scenarios pass. UI and Gateway-method typechecks, formatting and targeted lint, the runtime build, and the protocol gate pass. The stack is rebased onto main 49ecf70827307, after its Add prerequisites merged.

Broad check:changed checkpoint: inherited failures in unchanged files: a max-lines suppression in ui/src/pages/chat/components/chat-message.test.tsx, and TS2540 (assignment to readonly text) in src/agents/embedded-agent-runner/model-request-body.test.ts:69. Both files and the suppression baseline have identical Git blobs at base and head. Targeted checks above pass.

Merge Danger

Door: two-way. Blast radius: Claws catalog behind the existing Labs flag. No migration or deployment is included.

@clawsweeper

clawsweeper Bot commented Oct 15, 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 size: M labels Oct 15, 2026
@Patrick-Erichsen

Copy link
Copy Markdown
Contributor Author

@clawsweeper autofix

@clawsweeper

clawsweeper Bot commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

@clawsweeper autofix is retired; ClawSweeper now only reviews.

@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Oct 15, 2026
@clawsweeper

clawsweeper Bot commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

This PR lets users discover, inspect, and add community Claws while showing current publisher identity and preserving artifact verification and consent.

Example: A fresh consumer selects @cli-user/[email protected].

  • Before: The official-only catalog and source guards exclude the package.
  • After: The consumer sees its community publisher, acknowledges the warning, and adds an ordinary agent.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The feature has substantial real-system evidence and no identified runtime correctness defect; upgrade coverage and the unexplained restoration of removed validation limit readiness.
Proof confidence 🦐 gold shrimp (3/6) Real behavior proof is not required for maintainer- or bot-authored pull requests.
Patch quality 🐚 platinum hermit (4/6) 2 actionable review findings remain.

Product

Kind: Feature · Worth it: Yes · Fix scope: Complete
User problem: Users cannot discover or add published Claws from personal publishers through the Control UI.
Reason: The supplied maintainer-authored classification establishes direction, and the change extends existing owners without adding another installation lifecycle.

Merge readiness

⛔ Needs changes before merge - 3 items remain

Keep this PR open: community discovery remains absent from main, the companion registry change is merged, and the earlier publisher-badge finding is fixed.

Priority: P2
Reviewed head: 65b81e054a35f0346169653fc151c28ebf894e2c

Before merge

Findings

  • [P3] Preserve the accepted typed-response ownership — ui/src/pages/agents-home/claws-catalog-client.ts:53-59
  • [P3] Document the expanded community catalog — src/claws/clawhub-source.ts:245-248

Provenance

  • Client-side detail response validation changes intended behavior without addressing why it exists (51e003d: The merged refactor explicitly trusted the typed producer's contents and requested identity, removing these exact checks; the current merge restores them without a stated reason.)

Tests

  • Missing end-to-end proof: The supplied evidence does not show a latest-stable-to-candidate upgrade with settings and existing agent data intact for the expanded Gateway protocol.
Agent review details

How this fits together

The Control UI requests ClawHub catalog data through the Gateway; verified package coordinates and explicit consent then enter the existing Add owner, which creates ordinary agent resources.

flowchart LR
  A[ClawHub public catalog] --> B[Gateway source verification]
  B --> C[Control UI catalog and detail]
  C --> D[User consent]
  D --> E[Existing Add owner]
  E --> F[Ordinary agent and chat]
Loading

Technical review

Best possible solution:

Extend the existing discovery and Add owners while preserving typed-response ownership and documenting community publishers.

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

Current main's source, protocol, and UI filters independently establish the official-only restriction; no target code was executed during this review.

Is this the best way to solve the issue?

The existing registry/source/Add path is the right implementation boundary, but the restored client validation should follow the accepted producer contract.

Full review comments:

Overall correctness: patch is correct
Overall confidence: 0.91

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Official-only Gateway discovery and protocol changes intended behavior with a stated reason (db0d3d0: Expose published package discovery, contents, and immutable archive trust inputs for the initial Add stack.)
  • Source selection and manifest disclosure changes intended behavior with a stated reason (81662c5: Add creates ordinary agent resources with exceptional trust warnings requiring consent; this PR explicitly broadens publisher eligibility while preserving those checks.)
  • Detail routes and publisher rendering keeps the original intent (f469f6d: Show package contents and hand off successful Add to chat; the PR retains old official links and the direct Solid renderer from the subsequent refactor.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

Acceptance criteria:

  • pnpm --dir ui test src/pages/agents-home/claws-home.test.ts src/app-route-paths.test.ts --maxWorkers=1
  • pnpm tsgo:ui
  • pnpm format:docs:check
  • git diff --check

What I checked:

  • Community support remains necessary: Fetched main still requires @openclaw package names, official channel metadata, and the openclaw publisher; its UI client also filters to official entries. (src/claws/clawhub-source.ts:81, fa22ec4702ad)
  • Publisher and artifact boundaries retained: The introduced source checks bind scoped package names to the returned publisher, reject private packages, and retain exact release, checksum, embedded identity, and risk-acknowledgement checks before persistence. (src/claws/clawhub-source.ts:114, 65b81e054a35)
  • Earlier finding repaired: Accepted detail now supplies publisher name, handle, link, and Official status together; the inspected before/after images show OpenClaw changing to maker without an Official badge. (ui/src/pages/agents-home/claws-detail-view.tsx:201, 65b81e054a35)
  • Intentional response ownership restored incompletely: refactor(ui): reuse page owners and typed response contracts #175713 explicitly removed repeated Claws detail identity and shape checks in favor of the typed producer contract; this PR restores those detail checks without explaining an exception. (ui/src/pages/agents-home/claws-catalog-client.ts:53, 51e003d37df2)
  • Affirmative dependency contract and merged companion: The PR requires ClawHub's package API for discovery and proof. feat: discover community-published Claws clawhub#3963 is merged and registry main now permits active, scope-matching community publishers while retaining visibility and scan gates; its root policy was read. (convex/packages.ts, d36ee9117f71)
  • Supplied real-system evidence: The full body at source revision 6637afeef0827fb8b46e81d19fa74c4ed336a16e8519a0ded57fae7fe8e0c95b records real local Gateway/ClawHub Add success and rejection of mismatched publisher and missing consent without configuration or workspace mutation. Four prepared images were inspected. The separate chat image was absent from the manifest and browser retrieval returned Cache miss; that reviewer-side limitation does not invalidate the recorded run.

PR surface

Source +33, Tests +284. Total +317 across 18 files. Added test files: 1.

View PR surface stats
Area Files Added Removed Net
Source 11 113 80 +33
Tests 7 348 64 +284
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 18 461 144 +317

Labels

Label changes:

  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.
  • remove proof: sufficient: Current real behavior proof status is not_applicable, not sufficient.
  • remove rating: 🦞 diamond lobster: Current PR rating is rating: 🦐 gold shrimp, so this older rating label is no longer current.
  • remove proof: 📸 screenshot: Current real behavior proof evidence kind is not_applicable.
  • remove merge-risk: 🚨 other: Current PR review selected no merge-risk labels.

Label justifications:

  • P2: Useful expansion of the existing experimental Claws catalog with limited blast radius.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Rank-up moves

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

  • Supply redacted latest-stable upgrade evidence showing existing settings and agent data remain intact.

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.

History

Review history (3 earlier review cycles)
  • reviewed 2026-10-15T17:58:27.451Z sha 74f816f :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-15T18:23:34.321Z sha b9cbaa2 :: needs changes before merge. :: [P2] Use fresh detail metadata for the publisher badge
  • reviewed 2026-10-16T03:39:45.505Z sha bda8f9a :: blocked before merge. :: none

Reviewed October 20, 2026, 2:50 AM ET / 06:50 UTC (Revision 4).

@Patrick-Erichsen

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Oct 15, 2026
Base automatically changed from codex/claw-1093-add-ui to main October 15, 2026 20:34
@github-actions

github-actions Bot commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

Security-sensitive guard cleared

Current revision: 65b81e054a35f0346169653fc151c28ebf894e2c

This PR no longer changes files in the maintainer security-review tier.

Separate CODEOWNERS requirements still apply to security policy and enforcement files.

@openclaw-barnacle openclaw-barnacle Bot added the docs Improvements or additions to documentation label Oct 15, 2026
@Patrick-Erichsen

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added merge-risk: 🚨 other 🚨 Merging this PR has meaningful risk outside the owned taxonomy. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Oct 16, 2026
# Conflicts:
#	src/claws/clawhub-source.test.ts
#	ui/src/pages/agents-home/claws-catalog-client.ts
@Patrick-Erichsen

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. merge-risk: 🚨 other 🚨 Merging this PR has meaningful risk outside the owned taxonomy. clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Oct 20, 2026
@Patrick-Erichsen
Patrick-Erichsen merged commit 99740c1 into main Oct 20, 2026
152 of 153 checks passed
@Patrick-Erichsen
Patrick-Erichsen deleted the community-claw-add branch October 20, 2026 07:06
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 21, 2026
* feat(claws): discover and add community Claws

* fix(claws): disclose verified community manifests during Add

* fix(ui): refresh Claw publisher identity from accepted detail
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui gateway Gateway runtime P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: L status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant