Skip to content

feat(claws): feature curated Claws and rank categories by installs - #178047

Merged
Patrick-Erichsen merged 5 commits into
mainfrom
claw-featured-categories
Oct 20, 2026
Merged

Patrick-Erichsen merged 5 commits into
mainfrom
claw-featured-categories

Conversation

@Patrick-Erichsen

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

Copy link
Copy Markdown
Contributor

What Problem This Solves

Creators and users cannot browse a curated Featured shelf or compare Claws by category in the current flat catalog. This adds Featured first and category results ranked by install count across Official and community publishers.

Summary

Claws discovery currently renders a flat list. This adds ClawHub's curated Featured Claws above the browse list, plus category controls. Category results collect the complete public category and sort by reported installs across Official and community publishers, with no Official-first preference.

Evidence

  • Before: The existing Agents catalog has one search request and a single unsorted card grid; there is no Featured or category control.
  • After: src/claws/clawhub-source.test.ts proves curated order is preserved and a 20-install community Claw ranks ahead of a 1-install Official Claw across two registry pages. The Control UI browser test verifies Featured appears first and selecting Research sends a category request without an Official filter.
  • Validation: targeted source and Gateway tests, catalog browser tests, core/UI typechecks, i18n verification, and UI style lint passed.
  • Inspected 1440×900 fixture-backed Control UI captures against base bda8f9a222 and this branch. The base has a flat grid; the head has curated Featured first and Research with the 20-install community Claw before the 1-install Official Claw. The browser scenario now asserts that visible order.
Before: flat catalog After: curated Featured
Flat catalog on the base Curated Featured on this branch

Research category with community Claw before Official Claw

Depends on #173345 for the public Claw catalog and Add flow. This PR contains only catalog behavior; creator authoring remains in #173346 and #173377.

Merge Danger

Door: Two-way. Blast Radius: Experimental Claws catalog. The full-category client ranking uses the existing 20-page safety cap; ClawHub will report an error if a category exceeds that cap rather than silently truncating the ranking.

@clawsweeper

clawsweeper Bot commented Oct 20, 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 labels Oct 20, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Oct 20, 2026
@clawsweeper

clawsweeper Bot commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

This PR adds curated Featured Claws and category browsing ranked by reported installs across Official and community publishers.

Example: Browse the Research category containing Release Scout with 20 installs and Workflow Operator with 1 install.

  • Before: The catalog presents one flat grid without category controls.
  • After: Research has its own control and places Release Scout before Workflow Operator.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) Useful discovery feature with inspected visual evidence, but category-search selection remains incorrect before the local sort.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored PR is outside the ordinary contributor proof gate; inspected fixture-backed browser screenshots demonstrate Featured and Research presentation, while source tests support pagination and ordering but do not establish registry cutoff behavior.
Patch quality 🦪 silver shellfish (2/6) 1 actionable review finding remain.

Product

Kind: Feature · Worth it: Yes · Fix scope: Complete
User problem: Users cannot browse curated recommendations or compare Claws within a category in the flat catalog.
Reason: The supplied maintainer-authored designation settles direction, and the feature adds useful discovery controls through existing owners without another setting.

Merge readiness

⛔ Needs changes before merge - 1 item remains

Keep this PR open: the catalog feature has maintainer-backed value, but category searches can discard more-installed matches before applying install ranking.

Priority: P2
Reviewed head: d0f9712929497ae4ae76d9345ee427d873a776e4

Before merge

  • Apply category install ranking before limiting search matches (P2) - The new sort runs after searchClawHubPackages has sent params.limit to ClawHub. The registry ranks by relevance/trust and slices to that limit before returning results. For {query: "briefing", category: "research", limit: 1}, a relevance-preferred Official match with 1 install can exclude a community match with 20 installs, so this returns the wrong top category result. The UI has the same problem once matching results exceed its 100-result search window. Select category matches by installs before truncation, and cover a more-installed match outside the registry's initial result window.

Findings

  • [P2] Apply category install ranking before limiting search matches — src/claws/clawhub-source.ts:308-309

Tests

  • Low-value test packages/gateway-protocol/src/claws-validators.test.ts: Remove the newly expanded literal search-result, detail-coordinate, and preview-coordinate assertions: they duplicate the catalogEntry, coordinate, and preview assertions immediately above without exercising the new category or featured parameters.
  • Missing end-to-end proof: The supplied browser captures use Gateway fixtures; no real-registry category-search cutoff scenario or base-failing/head-passing limit regression is supplied.
Agent review details

How this fits together

The Control UI sends catalog filters through Gateway RPC to the ClawHub package client, and the Claw source projects registry metadata into cards while preserving the existing detail and Add flow.

flowchart LR
  A[Control UI catalog] --> B[Gateway catalog RPC]
  B --> C[Claw source]
  C --> D[ClawHub package client]
  D --> E[ClawHub registry]
  C --> F[Featured and category cards]
Loading

Technical review

Best possible solution:

Keep the existing catalog owners and ensure category-search candidates are selected by installs before the result limit is applied.

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

Source establishes the failure: a category search with limit 1 can receive a relevance-preferred 1-install Claw while excluding a matching 20-install Claw, leaving nothing for the subsequent install sort to correct; no target code was executed.

Is this the best way to solve the issue?

The existing transport, source projection, and shared card renderer are appropriate, but sorting an already limited search response does not implement install-first category selection.

Full review comments:

  • [P2] Apply category install ranking before limiting search matches — src/claws/clawhub-source.ts:308-309
    The new sort runs after searchClawHubPackages has sent params.limit to ClawHub. The registry ranks by relevance/trust and slices to that limit before returning results. For {query: "briefing", category: "research", limit: 1}, a relevance-preferred Official match with 1 install can exclude a community match with 20 installs, so this returns the wrong top category result. The UI has the same problem once matching results exceed its 100-result search window. Select category matches by installs before truncation, and cover a more-installed match outside the registry's initial result window.
    Confidence: 0.96

Overall correctness: patch is incorrect
Overall confidence: 0.94

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Catalog transport and pagination keeps the original intent (81662c5: feat: add Claws as ordinary agents and resources #171623 established ordinary-agent Add and its catalog source; this PR retains public filtering, deduplication, and bounded pagination.)
  • Solid catalog rendering and card actions keeps the original intent (ff3855a: refactor(ui): remove Claws rendering bridges #173470 removed rendering bridges while preserving catalog requests and actions; this PR continues direct Solid rendering and shares cards between shelves.)
  • Search ordering changes intended behavior with a stated reason (81662c5: The existing source preserved registry search order; the PR explicitly changes category results to install order while preserving ordinary search ordering.)
  • Community publisher discovery keeps the original intent (99740c1: feat(claws): discover and add community Claws #173345 enabled public community discovery with current publisher identity; this PR preserves both publisher classes and existing Add authority.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

  • Introduced ranking defect: Category search forwards the requested limit to registry search before sorting the returned subset by installs; the Gateway forwards that same limit and slices the result afterward. (src/claws/clawhub-source.ts:309, d0f971292949)
  • Authoritative search contract: The PR consumes this registry's HTTP search contract, providing an affirmative dependency signal. Its search owner ranks matches using relevance and trust criteria, then slices to targetCount before returning them; category filtering does not change that to install-first selection. (convex/packages.ts:5768, d36ee9117f71)
  • Inspected visual proof: Downloaded before/after images show the flat catalog, Featured shelf, and Research cards with Release Scout first; these are explicitly fixture-backed Control UI captures. (.github/pr-proof/claw-featured-categories/after-research.png, 688b6d455d70)
  • Earlier dependency resolved: feat(claws): discover and add community Claws #173345 merged community discovery and Add support; this PR now targets main, resolving the previous review's dependency step. (99740c18271b)
  • Current main and merge state: Fetched main retains the flat catalog without Featured/category controls; live GitHub reports this head mergeable with mergeable_state blocked, rather than a conflict. (ui/src/pages/agents-home/claws-explore.tsx:154, f224d6eaad8c)
  • Review policy and inspection limits: Read the complete root and applicable Gateway/UI AGENTS files and applied the simplification and test-value guidance; no maintainer-notes directory exists. Older history contains unavailable promisor objects, the earlier reviewed SHA is unavailable locally, and the installed Solid cheatsheet is absent; the introduced diff, current source, and prepared screenshots were readable. (AGENTS.md, d0f971292949)

PR surface

Source +155, Tests +144, Config 0. Total +299 across 15 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 8 206 51 +155
Tests 4 145 1 +144
Docs 0 0 0 0
Config 3 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 15 351 52 +299

Labels

Label changes:

  • add rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦐 gold shrimp and patch quality is 🦪 silver shellfish.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🦪 silver shellfish, so this older rating label is no longer current.

Label justifications:

  • P2: This improves experimental catalog discovery, with a limited-impact defect in category-search result selection.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦐 gold shrimp and patch quality is 🦪 silver shellfish.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

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 (4 earlier review cycles)
  • reviewed 2026-10-20T04:54:39.380Z sha 0d4a3fa :: needs changes before merge. :: [P2] Update protocol fixtures for the required installs field | [P2] Wait for category cards to render before counting them | [P3] Translate category labels through the English catalog
  • reviewed 2026-10-20T05:43:07.403Z sha a14e7cd :: needs changes before merge. :: none
  • reviewed 2026-10-20T05:57:39.069Z sha 688b6d4 :: needs changes before merge. :: none
  • reviewed 2026-10-20T06:57:38.942Z sha de6c78759fc207e6418c432fa62bec8f3c3004c8 :: needs changes before merge. :: none

Reviewed October 20, 2026, 3:23 AM ET / 07:23 UTC (Revision 5).

@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. and removed clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Oct 20, 2026
@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. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Oct 20, 2026
@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. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. and removed clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Oct 20, 2026
Base automatically changed from community-claw-add to main October 20, 2026 07:06
@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 the clawsweeper:intake:feature Preliminary submission classification; full source review pending. label Oct 20, 2026
@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Oct 20, 2026
@Patrick-Erichsen
Patrick-Erichsen enabled auto-merge (squash) October 20, 2026 07:34
@Patrick-Erichsen
Patrick-Erichsen merged commit a4a0223 into main Oct 20, 2026
131 checks passed
@Patrick-Erichsen
Patrick-Erichsen deleted the claw-featured-categories branch October 20, 2026 07:34
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 21, 2026
…penclaw#178047)

* feat(claws): show curated Featured and rank categories by installs

* fix: stabilize Claws category catalog checks

* fix: localize Claw categories and validate catalog fixtures

* docs: attach Featured and category before-after proof

* fix(claws): rank category searches by installs
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. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. size: M 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