Skip to content

feat(api): expose plugin categories - #3582

Merged
Patrick-Erichsen merged 3 commits into
mainfrom
codex/claw-717-plugin-categories
Sep 4, 2026
Merged

Patrick-Erichsen merged 3 commits into
mainfrom
codex/claw-717-plugin-categories

Conversation

@Patrick-Erichsen

@Patrick-Erichsen Patrick-Erichsen commented Sep 3, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • expose the canonical ordered plugin-category definitions at GET /api/v1/plugins/categories
  • return slug, label, description, bare Lucide icon key, and stable order
  • update the public HTTP API reference and tracked schema build output

This is the ClawHub prerequisite for OpenClaw CLAW-717 and the full catalog UI in openclaw/openclaw#137659.

Validation

  • bun run ci:static
  • bun run ci:unit (6,321 passed, 3 skipped)
  • bun run ci:types-build
  • local-auth Playwright HTTP proof: 2 passed, including the registered categories route
  • GitHub e2e-http and claws-openclaw-contract checks passed
  • autoreview: clean

References OCF-54

@Patrick-Erichsen
Patrick-Erichsen requested a review from a team as a code owner September 3, 2026 06:33
@clawsweeper

clawsweeper Bot commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@vercel

vercel Bot commented Sep 3, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
clawhub Ready Ready Preview Sep 3, 2026 11:32pm UTC

Request Review

@clawsweeper

clawsweeper Bot commented Sep 3, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 3, 2026, 9:17 PM ET / September 4, 2026, 01:17 UTC.

ClawSweeper review

What this changes

Adds a public endpoint returning the canonical ordered plugin-category metadata, its shared route constant, documentation, and direct HTTP coverage.

Merge readiness

⛔ Blocked before merge - 3 items remain

Keep open. Current main does not expose this route, and the prior route-coverage blocker is resolved by the new local-auth HTTP test; a maintainer should still confirm that the documented fields and ordering are the intended stable v1 contract.

Priority: P2
Reviewed head: 36bc4e917bb12c310dcf95f48c2ac8c61221d360
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The focused implementation and direct route coverage are solid; only public-contract approval remains.
Proof confidence 🌊 off-meta tidepool Not applicable: The author is a collaborator, so the external-contributor proof gate does not apply; independently, the branch adds a local-auth Playwright request through the registered Convex route and records a passing two-test run in the PR body.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The author is a collaborator, so the external-contributor proof gate does not apply; independently, the branch adds a local-auth Playwright request through the registered Convex route and records a passing two-test run in the PR body.
Evidence reviewed 6 items Current main lacks the endpoint: The fetched current-main tree contains the shared plugin-category definitions but no category-route constant, HTTP handler, or registered /api/v1/plugins/categories endpoint.
Endpoint derives from the canonical taxonomy: The introduced handler maps the shared category definitions into the documented slug, label, description, icon, and order response fields.
Route is registered through the production HTTP boundary: The introduced route binds the new API path to its HTTP action before the existing plugin subpath router.
Findings None None.
Security None None.

How this fits together

ClawHub serves plugin catalog metadata through Convex HTTP routes. Discovery clients request the category list, which is derived from the shared taxonomy and returned as JSON for catalog interfaces.

flowchart LR
  A[Discovery client] --> B[Plugin categories API]
  B --> C[Convex HTTP router]
  C --> D[Shared category taxonomy]
  D --> E[Ordered JSON response]
  E --> F[Catalog interfaces]
Loading

Decision needed

Question Recommendation
Should slug, label, description, bare icon key, and numeric order be a stable public v1 contract for plugin discovery clients? Approve the v1 catalog contract: Confirm the documented fields and taxonomy order are stable for OpenClaw and other API consumers, then merge the route.

Why: The implementation is bounded and the runtime route is now covered, but publishing canonical metadata and ordering commits future taxonomy changes to external consumers.

Before merge

  • Resolve merge risk (P1) - Merging creates a documented public v1 contract for category fields and display order; changing that taxonomy later could break the linked OpenClaw catalog consumer unless the stability expectation is explicitly approved.
  • Complete next step (P2) - Confirm that the documented v1 category payload and ordering are the intended stable public contract before merge.
  • Resolve maintainer decision - Resolve the maintainer decision shown above before merge.
Agent review details

Security

None.

Review metrics

Metric Value Why it matters
Production and test delta production +24, tests +84, docs +6, generated +3/-1 The single endpoint is backed by both handler assertions and a direct local-auth HTTP route test.

Merge-risk options

Maintainer options:

  1. Approve the v1 catalog contract (recommended)
    Confirm that the documented category fields and display ordering are supported compatibility commitments before landing this public endpoint.
  2. Pause for a narrower contract
    Keep the PR open if taxonomy details are not yet stable, and revise the response to a deliberately supported compatibility surface.

Technical review

Best possible solution:

Retain one endpoint derived from the shared taxonomy and merge after a maintainer confirms the documented response fields and order are the stable contract for discovery consumers.

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

Not applicable: this PR adds a new API capability rather than repairing a reported failure. Its production route is nevertheless directly covered by the introduced local-auth HTTP test.

Is this the best way to solve the issue?

Unclear pending product confirmation. Deriving the response from the existing canonical taxonomy is the narrowest implementation, but the intended long-term public compatibility contract needs maintainer approval.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 0f6803b4611f.

Labels

Label changes:

  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The author is a collaborator, so the external-contributor proof gate does not apply; independently, the branch adds a local-auth Playwright request through the registered Convex route and records a passing two-test run in the PR body.
  • remove status: ⏳ waiting on author: Current PR status label is status: 👀 ready for maintainer look.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.

Label justifications:

  • P2: This is a bounded discovery API addition with limited user-facing blast radius.
  • merge-risk: 🚨 compatibility: The documented v1 payload and ordering become an external contract for catalog consumers.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The author is a collaborator, so the external-contributor proof gate does not apply; independently, the branch adds a local-auth Playwright request through the registered Convex route and records a passing two-test run in the PR body.

Evidence

What I checked:

  • Current main lacks the endpoint: The fetched current-main tree contains the shared plugin-category definitions but no category-route constant, HTTP handler, or registered /api/v1/plugins/categories endpoint. (0f6803b4611f)
  • Endpoint derives from the canonical taxonomy: The introduced handler maps the shared category definitions into the documented slug, label, description, icon, and order response fields. (convex/httpApiV1/packagesV1.ts:2479, 36bc4e917bb1)
  • Route is registered through the production HTTP boundary: The introduced route binds the new API path to its HTTP action before the existing plugin subpath router. (convex/http.ts:158, 36bc4e917bb1)
  • Prior route-coverage blocker is resolved: Compared with the earlier reviewed head, the only relevant new production-boundary coverage is a Playwright request to the registered category endpoint, asserting status, JSON content type, ordering, and representative payload. (e2e/local-auth/plugin-catalog-api.pw.test.ts:31, 36bc4e917bb1)
  • Taxonomy has an established shared source: The category definitions provide the same canonical ordering asserted by the new endpoint test; their originating catalog-taxonomy commit is recorded as a merged GitHub commit. (packages/schema/src/catalogMetadata.ts:25, 04ec212100f5)
  • Public responses include the standard CORS and JSON headers: The shared JSON response helper supplies JSON content type, no-store caching, and permissive CORS headers, so the added read-only handler follows the existing public API response convention. (convex/httpApiV1/shared.ts:96, 36bc4e917bb1)

Likely related people:

  • Patrick Erichsen: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Jason (Json): Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rank-up moves

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

  • Obtain explicit maintainer confirmation that the documented category payload and ordering are the intended stable v1 contract.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (10 earlier review cycles; latest 8 shown)
  • reviewed 2026-09-03T09:37:03.032Z sha 364cb90 :: blocked before merge. :: none
  • reviewed 2026-09-03T11:58:49.755Z sha 364cb90 :: blocked before merge. :: [P2] Add a real HTTP smoke for the registered route
  • reviewed 2026-09-03T12:48:05.873Z sha 364cb90 :: blocked before merge. :: [P2] Add a real HTTP smoke for the registered route
  • reviewed 2026-09-03T14:37:44.233Z sha 364cb90 :: blocked before merge. :: [P2] Add a real HTTP smoke for the registered route
  • reviewed 2026-09-03T14:58:58.570Z sha 364cb90 :: blocked before merge. :: [P2] Add a real HTTP smoke for the registered route
  • reviewed 2026-09-03T17:55:00.735Z sha 364cb90 :: blocked before merge. :: [P2] Add a real HTTP smoke for the registered route
  • reviewed 2026-09-03T19:32:34.416Z sha 364cb90 :: blocked before merge. :: [P2] Cover the registered HTTP route with a runtime fetch
  • reviewed 2026-09-03T21:57:28.964Z sha 364cb90 :: blocked before merge. :: [P2] Cover the registered HTTP route with a runtime fetch

@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. merge-risk: 🚨 compatibility 🚨 Merging this PR could break existing users, config, migrations, defaults, or upgrades. 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 status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. labels Sep 3, 2026
@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Sep 4, 2026
@Patrick-Erichsen

Copy link
Copy Markdown
Collaborator Author

Maintainer decision: approved. The documented v1 category payload (slug, label, description, icon, and order) and canonical taxonomy ordering are intended as the stable discovery contract. Proceeding with merge and backend deployment after exact-head validation.

@Patrick-Erichsen
Patrick-Erichsen merged commit 6a7c155 into main Sep 4, 2026
83 of 92 checks passed
@Patrick-Erichsen
Patrick-Erichsen deleted the codex/claw-717-plugin-categories branch September 4, 2026 01:38

This branch was successfully deployed

1 active deployment
Preview – clawhub — 36bc4e91 Deployed Sep 3, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-risk: 🚨 compatibility 🚨 Merging this PR could break existing users, config, migrations, defaults, or upgrades. P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant