Skip to content

feat(plugins): add ClawHub discovery seam - #139042

Merged
Patrick-Erichsen merged 8 commits into
codex/claw-716-plugin-settingsfrom
codex/claw-717-clawhub-catalog
Sep 10, 2026
Merged

Patrick-Erichsen merged 8 commits into
codex/claw-716-plugin-settingsfrom
codex/claw-717-clawhub-catalog

Conversation

@Patrick-Erichsen

Copy link
Copy Markdown
Contributor

Replacement for #137094 after GitHub retained an impossible merge-conflict state. This PR preserves the exact branch, base, and cumulative tree; the original review history remains linked on #137094.

@clawsweeper

clawsweeper Bot commented Sep 5, 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 docs Improvements or additions to documentation app: android App: android app: web-ui App: web-ui gateway Gateway runtime scripts Repository scripts size: XL maintainer Maintainer-authored PR labels Sep 5, 2026
@Patrick-Erichsen Patrick-Erichsen added P2 Normal backlog priority with limited blast radius. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 5, 2026
@clawsweeper clawsweeper Bot added 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. labels Sep 5, 2026
@clawsweeper

clawsweeper Bot commented Sep 5, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 9, 2026, 6:15 PM ET / 22:15 UTC (Revision 24).

ClawSweeper review

What this changes

Adds Gateway APIs for browsing ClawHub plugins, categories, and details, and displays catalog results alongside installed plugins in the Control UI.

Merge readiness

⛔ Blocked before merge - 5 items remain

Keep open: this protected discovery layer remains useful and is absent from current main. The previous method-order finding is resolved, but the package-provenance finding remains in the pinned head.

Priority: P2
Reviewed head: e407cf30c3c1a87594230712187055a3f91eae38

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The discovery boundary is coherent and method-order coverage is repaired, but incorrect package attribution still blocks correctness.
Proof confidence 🌊 off-meta tidepool Not applicable: The supplied repository state classifies the author as MEMBER, so the ordinary external-contributor gate is exempt. Inspected parent-layer screenshots do not show Explore, and the claimed live ClawHub round-trip lacks an inspectable trace; repository visual and external-API validation requirements remain outstanding.
Patch quality 🦐 gold shrimp (3/6) 1 actionable review finding remain.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The supplied repository state classifies the author as MEMBER, so the ordinary external-contributor gate is exempt. Inspected parent-layer screenshots do not show Explore, and the claimed live ClawHub round-trip lacks an inspectable trace; repository visual and external-API validation requirements remain outstanding.
Evidence reviewed 11 items Pinned review boundary: Reviewed head e407cf3 against the supplied introduction base. Its raw recorded parent is fc60b8c. The supplied test merge is stale, so no claim about removing current-main behavior is made.
Prior identity finding remains: The join indexes local runtime IDs and package names together, then prefers the remote runtimeId. The Gateway test explicitly maps the remote memory-plus package to installed Workboard and expects Workboard’s management identifier. Identical catalog-discovery.ts blob IDs at the previous and current heads establish that this previously reported implementation is unchanged.
Observable incorrect projection: The browse fixture supplies packageName memory-plus with runtimeId workboard, then expects installed=true and pluginId=workboard. Explore renders its Installed badge directly from that projected installed flag.
Findings 1 actionable finding [P2] Require package provenance before assigning local installation state
Security None None.

How this fits together

Plugin discovery combines ClawHub catalog metadata with the Gateway’s local plugin inventory. The Control UI displays the combined results while existing lifecycle handlers retain installation and configuration responsibility.

flowchart LR
  A[Plugins workspace] --> B[Gateway discovery APIs]
  B --> C[ClawHub catalog]
  B --> D[Local plugin inventory]
  C --> E[Normalize and match packages]
  D --> E
  E --> F[Explore results]
  B --> G[Visible error and retry]
Loading

Before merge

  • Require package provenance before assigning local installation state (P2) - This prior blocker remains. A ClawHub memory-plus listing with runtimeId: "workboard" matches installed Workboard because remote runtime IDs are searched before package identity. Browse and detail then return Workboard’s installed state and management identifier, and Explore displays a false Installed badge; the Gateway fixture currently asserts this incorrect result. Match registry-qualified installation provenance or a verified official counterpart before projecting local facts, and reject alias-only and cross-registry namesake matches.
  • Resolve merge risk (P1) - Cross-registry namesakes and verified npm-to-ClawHub counterparts still lack coverage establishing reliable attribution in the new public catalog contract.
  • Resolve merge risk (P1) - The available visual evidence covers the parent settings layer; Explore appearance and this layer’s Gateway-to-ClawHub results remain unverified.
  • Complete next step (P2) - Repair the package-provenance join and its regression coverage, then supply the required redacted Explore captures and inspectable live API results.
  • Add data-model compatibility proof - Confirm migration or upgrade compatibility proof before merge.

Findings

  • [P2] Require package provenance before assigning local installation state — src/plugins/catalog-discovery.ts:44-48
Agent review details

Security

None.

PR surface

Source +898, Tests +791, Other +308. Total +1997 across 31 files.

View PR surface stats
Area Files Added Removed Net
Source 16 931 33 +898
Tests 11 806 15 +791
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 4 308 0 +308
Total 31 2045 48 +1997

Review metrics

Metric Value Why it matters
Gateway API expansion 3 read-only RPCs added; 0 existing RPCs removed Browse, categories, and detail introduce a public discovery contract whose package identity semantics need to be reliable.

Stored data model

Persistent data-model change detected: unknown-data-model-change: packages/gateway-protocol/src/schema/plugins.ts. Confirm migration or upgrade compatibility proof before merge.

Root-cause cluster

Relationship: canonical
Canonical: #139042
Summary: This is the replacement discovery layer; the surrounding stack contains distinct settings and full-catalog UI work.

Members:

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

Merge-risk options

Maintainer options:

  1. Correct package attribution before exposing the contract (recommended)
    Use registry-qualified provenance for local-state matching and cover alias collisions, namesakes, and verified official counterparts before downstream consumers adopt these results.

Technical review

Best possible solution:

Derive discovery matches from registry-qualified installation provenance and verified official counterparts, retaining separate remote catalog facts and local runtime facts.

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

Yes, by source inspection: a memory-plus listing with runtimeId workboard matches installed Workboard and returns its state; the Gateway fixture explicitly expects that result. No tests or target code were executed.

Is this the best way to solve the issue?

The Gateway-owned discovery boundary is appropriate, but runtime aliases are not a sound package-identity join. Reusing provenance-aware inventory facts is the narrower repair.

Full review comments:

  • [P2] Require package provenance before assigning local installation state — src/plugins/catalog-discovery.ts:44-48
    This prior blocker remains. A ClawHub memory-plus listing with runtimeId: "workboard" matches installed Workboard because remote runtime IDs are searched before package identity. Browse and detail then return Workboard’s installed state and management identifier, and Explore displays a false Installed badge; the Gateway fixture currently asserts this incorrect result. Match registry-qualified installation provenance or a verified official counterpart before projecting local facts, and reject alias-only and cross-registry namesake matches.
    Confidence: 0.99

Overall correctness: patch is incorrect
Overall confidence: 0.96

AGENTS.md: found and applied where relevant.

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

Labels

Label justifications:

  • P2: This is a bounded plugin-discovery improvement with an incorrect local-state association, rather than an urgent failure of existing workflows.
  • merge-risk: 🚨 compatibility: The new public plugin catalog API can associate one package with another package’s local state and management identifier.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🌊 off-meta tidepool and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Not applicable: The supplied repository state classifies the author as MEMBER, so the ordinary external-contributor gate is exempt. Inspected parent-layer screenshots do not show Explore, and the claimed live ClawHub round-trip lacks an inspectable trace; repository visual and external-API validation requirements remain outstanding.

Evidence

What I checked:

  • Pinned review boundary: Reviewed head e407cf3 against the supplied introduction base. Its raw recorded parent is fc60b8c. The supplied test merge is stale, so no claim about removing current-main behavior is made. (e407cf30c3c1)
  • Prior identity finding remains: The join indexes local runtime IDs and package names together, then prefers the remote runtimeId. The Gateway test explicitly maps the remote memory-plus package to installed Workboard and expects Workboard’s management identifier. Identical catalog-discovery.ts blob IDs at the previous and current heads establish that this previously reported implementation is unchanged. (src/plugins/catalog-discovery.ts:44, e407cf30c3c1)
  • Observable incorrect projection: The browse fixture supplies packageName memory-plus with runtimeId workboard, then expects installed=true and pluginId=workboard. Explore renders its Installed badge directly from that projected installed flag. (src/gateway/server-methods/plugins.test.ts:365, e407cf30c3c1)
  • Method-order finding resolved: The shared suffix includes users.mentionable, mentions.list, and mentions.dismiss, and both advertised-order and core-order assertions consume it. The previous missing-method finding is therefore not repeated. (src/gateway/server-methods-list.test.ts:136, e407cf30c3c1)
  • Existing provenance-aware owner: The inventory owner already distinguishes registry identity and verified official counterparts through resolveInstalledHostedOfficialEntry. Its matching checks package/source provenance rather than treating a runtime alias as package ownership. (src/plugins/management-catalog.ts:352, e407cf30c3c1)
  • Still necessary on main: Fetched main exposes inventory, inspection, refresh, and query-based search but lacks these three catalog handlers. The new catalog client and join files are absent from both fetched main and the supplied latest-release commit. Existing search does not provide browse pagination, categories, or joined local facts. (src/gateway/server-methods/plugins.ts:86, 7e3a90bf5ce8)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Patrick-Erichsen: 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.

  • Repair the provenance join and cover runtime-alias collisions, cross-registry namesakes, and verified official counterparts.
  • Provide redacted Explore before/after captures and inspectable Gateway browse, cursor, categories, and detail results.

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 (23 earlier review cycles; latest 8 shown)
  • reviewed 2026-09-09T17:32:48.571Z sha 61b8f2b :: blocked before merge. :: [P2] Require package provenance before assigning local installation state | [P2] Include the existing mention methods in both suffix assertions
  • reviewed 2026-09-09T18:10:38.762Z sha a0daa19 :: blocked before merge. :: [P2] Require package provenance before assigning local installation state | [P2] Include the existing mention methods in both suffix assertions
  • reviewed 2026-09-09T18:28:24.728Z sha 82543c3 :: blocked before merge. :: [P2] Require package provenance before assigning local installation state | [P2] Include the existing mention methods in both suffix assertions
  • reviewed 2026-09-09T18:42:18.540Z sha f20f5de :: blocked before merge. :: [P2] Require package provenance before assigning local installation state | [P2] Include the existing mention methods in both suffix assertions
  • reviewed 2026-09-09T19:10:16.789Z sha eaf6050 :: blocked before merge. :: [P2] Require package provenance before assigning local installation state | [P2] Include the existing mention methods in both suffix assertions
  • reviewed 2026-09-09T19:39:41.119Z sha 89a10be :: blocked before merge. :: [P2] Require package provenance before assigning local installation state | [P2] Include the existing mention methods in both suffix assertions
  • reviewed 2026-09-09T20:23:21.089Z sha 72d47e3 :: blocked before merge. :: [P2] Require package provenance before assigning local installation state | [P2] Include the existing mention methods in both suffix assertions
  • reviewed 2026-09-09T21:18:42.675Z sha fc60b8c :: blocked before merge. :: [P2] Require package provenance before assigning local installation state | [P2] Include the existing mention methods in both suffix assertions

@Patrick-Erichsen
Patrick-Erichsen force-pushed the codex/claw-717-clawhub-catalog branch 2 times, most recently from 2da332e to 873b6ff Compare September 5, 2026 13:01
@Patrick-Erichsen
Patrick-Erichsen changed the base branch from codex/claw-716-plugin-settings to main September 5, 2026 13:09
@Patrick-Erichsen
Patrick-Erichsen requested a review from a team as a code owner September 5, 2026 13:09
@Patrick-Erichsen
Patrick-Erichsen changed the base branch from main to codex/claw-716-plugin-settings September 5, 2026 13:09
@Patrick-Erichsen
Patrick-Erichsen force-pushed the codex/claw-717-clawhub-catalog branch from 873b6ff to 84663ec Compare September 5, 2026 14:31
@openclaw-barnacle openclaw-barnacle Bot closed this Sep 5, 2026
@openclaw-barnacle openclaw-barnacle Bot reopened this Sep 5, 2026
@Patrick-Erichsen
Patrick-Erichsen force-pushed the codex/claw-717-clawhub-catalog branch from e375006 to e0ca5ce Compare September 9, 2026 14:39
@openclaw-barnacle openclaw-barnacle Bot removed the docs Improvements or additions to documentation label Sep 9, 2026
@Patrick-Erichsen
Patrick-Erichsen force-pushed the codex/claw-717-clawhub-catalog branch from 82543c3 to f20f5de Compare September 9, 2026 18:35
@blacksmith-sh

This comment has been minimized.

@Patrick-Erichsen
Patrick-Erichsen force-pushed the codex/claw-717-clawhub-catalog branch from f20f5de to effc917 Compare September 9, 2026 18:53
@Patrick-Erichsen
Patrick-Erichsen force-pushed the codex/claw-717-clawhub-catalog branch from effc917 to 437da73 Compare September 9, 2026 18:56
@Patrick-Erichsen
Patrick-Erichsen force-pushed the codex/claw-717-clawhub-catalog branch from eaf6050 to 89a10be Compare September 9, 2026 19:33
@Patrick-Erichsen
Patrick-Erichsen force-pushed the codex/claw-717-clawhub-catalog branch from 89a10be to 72d47e3 Compare September 9, 2026 20:16
@Patrick-Erichsen
Patrick-Erichsen force-pushed the codex/claw-717-clawhub-catalog branch from 72d47e3 to fc60b8c Compare September 9, 2026 21:11
@Patrick-Erichsen

Copy link
Copy Markdown
Contributor Author

Landing verification on the rebased stack: the catalog layer is now based on current main, package identity joins by ClawHub package identity rather than runtime ID, and the current Gateway method-order contract tests are included. Maintainer approval to land the complete stack is explicit in the coordinating Codex task. Final combined validation: pnpm check passed at daf1aac0cfea.

@Patrick-Erichsen

Patrick-Erichsen commented Sep 9, 2026 •

Copy link
Copy Markdown
Contributor Author

Landing disposition: the provenance finding is fixed in the deployable stack by commit 0fff22d: clawhubPackage is recorded from trusted install or official-catalog provenance, and catalog joins no longer match runtimeId. Alias-collision coverage is included. We are landing through GitHub atomic stack merge up to #142782, so this intermediate head will not deploy without that repair. The top exact-head ClawSweeper review reports no remaining introduced defect and accepts the combined real-flow proof.

@Patrick-Erichsen
Patrick-Erichsen merged commit 85a8013 into main Sep 10, 2026
185 checks passed
@Patrick-Erichsen
Patrick-Erichsen deleted the codex/claw-717-clawhub-catalog branch September 10, 2026 02:05
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 10, 2026
* feat(plugins): add ClawHub discovery seam

* fix(plugins): keep lifecycle mutations in their owner

* fix(protocol): align plugin UI methods with current train

* test(gateway): align plugin methods with release train

* test(gateway): align catalog ordering with current protocol

* test(gateway): include model probe in core suffix

* build(plugins): refresh Workboard bundle references

* fix(plugins): keep catalog layer independently green
threely-lab pushed a commit to threely-lab/openclaw that referenced this pull request Sep 10, 2026
- GatewayMethod: add plugins.catalog.browse / .categories / .get (openclaw#139042)
- Question: add optional url field (openclaw#132158)

Protocol-only sync, no user-visible behavior change.

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

Labels

app: android App: android app: web-ui App: web-ui gateway Gateway runtime maintainer Maintainer-authored PR merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. plugin: workboard rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. scripts Repository scripts size: XL 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