Repository navigation
feat(claws): discover and add community Claws - #173345
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. |
|
@clawsweeper autofix |
|
|
|
Codex review: needs changes before merge. What this changesThis 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].
Review scores
ProductKind: Feature · Worth it: Yes · Fix scope: Complete 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 Before merge
Findings
Provenance
Tests
Agent review detailsHow this fits togetherThe 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]
Technical reviewBest 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 AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against fa22ec4702ad. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceAcceptance criteria:
What I checked:
PR surfaceSource +33, Tests +284. Total +317 across 18 files. Added test files: 1. View PR surface stats
LabelsLabel 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 (3 earlier review cycles)
Reviewed October 20, 2026, 2:50 AM ET / 06:50 UTC (Revision 4). |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
Security-sensitive guard clearedCurrent revision: This PR no longer changes files in the maintainer security-review tier. Separate CODEOWNERS requirements still apply to security policy and enforcement files. |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
# Conflicts: # src/claws/clawhub-source.test.ts # ui/src/pages/agents-home/claws-catalog-client.ts
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
* feat(claws): discover and add community Claws * fix(claws): disclose verified community manifests during Add * fix(ui): refresh Claw publisher identity from accepted detail
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
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
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 agentpublic-source-briefreplied to its first chat and a public-source research question.claws.add.applyowner 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 createdworkspace-public-source-brief, confirming the snapshot covered the allocation parent. The publisher case uses an explicit read-only fault proxy changing onlyowner.handlefromcli-usertoother; the genuine registry/package are unchanged. Missing consent returnsCLAWHUB_RISK_ACKNOWLEDGEMENT_REQUIREDthrough the real UI.CLAW.md,package.json), 847 bytes, SHA-2566d91eff0ed17172d05a522947986b111ed99f07565c15657c5cf662696bd1432. 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.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.
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
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 main49ecf70827307, after its Add prerequisites merged.Broad
check:changedcheckpoint: inherited failures in unchanged files: a max-lines suppression inui/src/pages/chat/components/chat-message.test.tsx, and TS2540 (assignment to readonlytext) insrc/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.