Skip to content

feat: publish provider setup metadata in the plugin feed - #3573

Closed
steipete wants to merge 1 commit into
mainfrom
codex/dynamic-provider-catalog
Closed

steipete wants to merge 1 commit into
mainfrom
codex/dynamic-provider-catalog

Conversation

@steipete

@steipete steipete commented Sep 2, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

OpenClaw can discover installable plugins from ClawHub, but cannot offer a new provider during setup without separately maintained core metadata. This adds provider setup hints and small model previews to the existing plugin feed, generated from each eligible release rather than another provider registry.

Companion consumer change: openclaw/openclaw#135997.

Why This Change Was Made

Publication reads the selected release's original openclaw.plugin.json, verifies its stored size and SHA-256, and projects only declared provider identities, explicit auth choices, environment-variable names, and display-only model fields. The extracted manifest is deliberately not used: its object-key rewriting and depth limit can misattribute or lose model declarations.

Install authority remains the existing exact package/version/artifact-digest candidate. No credentials, endpoint configuration, executable discovery flags, or vendor-authored install coordinates are copied. The v1 feed and route stay unchanged; its optional openclaw namespace is accepted by shipped OpenClaw readers. The strict schema package is private, and ClawHub's CLI does not consume this feed.

Whole provider metadata is capped at 64 KiB per entry, with model previews capped at 16 KiB inside that budget. Normalized URLs are bounded after encoding. A publication-size check leaves room within Convex's document limit and rejects oversize output before replacing the last snapshot. No database schema, configuration, or dependency changes.

User Impact

Eligible official provider plugins can become discoverable through the normal feed publication process once the companion OpenClaw consumer lands. This does not change official-publisher admission or make advertised models runnable before installation. Existing plugin/skill/Claws publication behavior and install pins are preserved.

A nearby test fixture now accepts npm 12's keyed pack --json result, matching the production CLI's existing parser; otherwise the full test gate failed before exercising its scenario.

Evidence

  • Regression tests failed before implementation for missing provider metadata, lossy-key collisions, and publication/normalized-URL size limits; all now pass.
  • Local Convex runtime test executes release storage → publication action → stored HTTP feed, and proves a tampered manifest fails without replacing the previous publication. This is an emulated runtime test, not a production deployment.
  • bun run ci:static, bun run ci:unit, bun run ci:types-build, bun run ci:packages, and bun run ci:e2e-http passed. Full unit suite: 6,327 passed, three existing opt-in skips. Package checks include built CLI/admin artifacts; HTTP checks include public reads and unauthenticated protected-write rejection.
  • Independent Codex autoreview: scoped clean at P0; manual source/contract review also completed.

Production delta: +417 lines; tests/test support: +590; generated schema: +260. The growth implements release-bound publication, bounded projection, and validation. This PR does not deploy or publish a release.

@clawsweeper

clawsweeper Bot commented Sep 2, 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.

@vercel

vercel Bot commented Sep 2, 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 2, 2026 3:31am UTC

Request Review

@steipete
steipete marked this pull request as ready for review September 2, 2026 03:31
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 Merging this PR could break existing users, config, migrations, defaults, or upgrades. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Sep 2, 2026
@clawsweeper

clawsweeper Bot commented Sep 2, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge. Reviewed September 16, 2026, 10:51 AM ET / 14:51 UTC (Revision 33).

ClawSweeper review

What this changes

Adds release-derived provider setup hints and bounded model previews to the official plugin feed, with schema, regression-test, and contract-documentation updates.

Regression provenance

Possible regression — suspected (reviewed change). No predecessor PR is attributed.

Merge readiness

⛔ Blocked before merge - 6 items remain

This remains useful work absent from current main. The previously reported release-compatibility defect remains unfixed, and the available evidence does not yet demonstrate the changed producer on a real backend.

Priority: P2
Reviewed head: c897b1f4361d6b18eb234a2d39792fc21a6da5fe

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) Useful release-bound design and substantial regression coverage are held back by an existing-release blocker and emulated-only producer proof.
Proof confidence 🦪 silver shellfish (2/6) Needs real behavior proof before merge: The changed catalogFeed.publish owner is covered by convex-test storage, action, and HTTP emulation only. The companion's real Gateway evidence uses an installed provider and does not demonstrate publication or consumption of this producer's output; a redacted real-backend publication-to-HTTP trace and reader result remain required. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Patch quality 🦐 gold shrimp (3/6) 1 actionable review finding remain.

Verification

Check Result Evidence
Real behavior Needs proof Needs real behavior proof before merge: The changed catalogFeed.publish owner is covered by convex-test storage, action, and HTTP emulation only. The companion's real Gateway evidence uses an installed provider and does not demonstrate publication or consumption of this producer's output; a redacted real-backend publication-to-HTTP trace and reader result remain required. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Evidence reviewed 9 items Introduced publication failure: The new hydration helper throws above MAX_PUBLISH_FILE_BYTES, which is 10 MiB. Its caller propagates that failure before storing any refreshed feed.
Existing release admission permits larger files: npm-pack publication explicitly bypasses the 10 MiB per-file check while retaining the 50 MiB total limit. The ClawPack parser likewise permits files up to 50 MiB; existing tests cover larger npm-pack files.
Current main still needs the feature: Current main publishes ordinary package entries without manifest hydration or provider setup projection. The latest-release catalogFeed.ts was also inspected through GitHub and lacks that projection; no shipped implementation was established.
Findings 1 actionable finding [P1] Preserve accepted ClawPack releases above the metadata read limit
Security None None.

How this fits together

ClawHub publishes stored catalog snapshots from eligible official package releases. OpenClaw reads these snapshots to discover plugins; this change adds provider setup information beside each exact installation pin.

flowchart TD
  A[Official package releases] --> B[Eligibility checks]
  B --> C[Exact release manifest]
  C --> D[Size and digest verification]
  D --> E[Bounded provider metadata]
  E --> F[Stored feed snapshot]
  F --> G[HTTP feed]
  G --> H[OpenClaw discovery]
Loading

Before merge

  • Add real behavior proof - Needs real behavior proof before merge: The changed catalogFeed.publish owner is covered by convex-test storage, action, and HTTP emulation only. The companion's real Gateway evidence uses an installed provider and does not demonstrate publication or consumption of this producer's output; a redacted real-backend publication-to-HTTP trace and reader result remain required. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
  • Preserve accepted ClawPack releases above the metadata read limit (P1) - An eligible npm-pack release can contain a valid openclaw.plugin.json larger than 10 MiB: package publication explicitly bypasses that per-file limit, retaining the 50 MiB total limit. This new throw propagates through publish before any feed is refreshed, so one previously accepted release blocks unrelated plugins and skills as well. Preserve its ordinary pinned install entry when optional metadata exceeds the hydration budget, while retaining size/digest corruption checks, and add existing-release regression coverage. This previously reported blocker remains unchanged.
  • Resolve merge risk (P1) - An already accepted oversized manifest can stop catalog refreshes after deployment; the prevalence of such existing releases is unknown.
  • Resolve merge risk (P1) - Output caps do not bound all preprocessing: candidate arrays are processed before truncation, and manifest hydration has no cumulative byte budget. Near-limit real-backend cost remains unmeasured.
  • Resolve merge risk (P1) - Compatibility of emitted snapshots with released OpenClaw readers has not been demonstrated.
  • Complete next step (P0) - Repair the oversized-release blocker and add real-backend publication plus reader evidence. Terminal output or redacted logs count; screenshots or recordings are welcome when informative. Redact credentials, private endpoints, IP addresses, and personal information. Update the PR body to trigger re-review; if it does not run, ask a maintainer to comment @clawsweeper re-review.

Findings

  • [P1] Preserve accepted ClawPack releases above the metadata read limit — convex/catalogFeed.ts:686-687
Agent review details

Security

None.

Review metrics

Metric Value Why it matters
Diff size +1,381/-59 across 12 files The change spans publication, schema artifacts, tests, and contract documentation.
Production versus test growth production +417 net; tests/support +590 net; generated schema +260 net The body justifies production growth as release-bound hydration, bounded projection, and validation.

Merge-risk options

Maintainer options:

  1. Preserve existing releases during enrichment (recommended)
    Retain the exact install entry when optional metadata exceeds the read budget, keep corruption checks intact, and demonstrate successful refresh with existing oversized releases.
  2. Hold publication rollout for compatibility evidence
    Keep the feature unlanded until real-backend output and released-reader consumption establish safe fresh and upgrade behavior.

Technical review

Best possible solution:

Keep release-bound enrichment optional and bounded, preserve ordinary installation entries for accepted releases, and establish backend and reader upgrade compatibility before rollout.

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

Yes, by source inspection: an eligible npm-pack release with a valid manifest above 10 MiB reaches the new throw and aborts publication. This was not executed during the read-only review.

Is this the best way to solve the issue?

The producer is the appropriate layer, but the patch is not yet the best implementation: optional enrichment must preserve accepted releases. Reusing lossy extracted metadata or maintaining another provider registry would weaken the intended release binding.

Full review comments:

  • [P1] Preserve accepted ClawPack releases above the metadata read limit — convex/catalogFeed.ts:686-687
    An eligible npm-pack release can contain a valid openclaw.plugin.json larger than 10 MiB: package publication explicitly bypasses that per-file limit, retaining the 50 MiB total limit. This new throw propagates through publish before any feed is refreshed, so one previously accepted release blocks unrelated plugins and skills as well. Preserve its ordinary pinned install entry when optional metadata exceeds the hydration budget, while retaining size/digest corruption checks, and add existing-release regression coverage. This previously reported blocker remains unchanged.
    Confidence: 0.98

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 30660cd4fffc.

Labels

Label justifications:

  • P2: This is a useful, bounded discovery improvement without evidence of an urgent live outage.
  • merge-risk: 🚨 compatibility: The new manifest limit rejects releases allowed by the existing npm-pack admission contract.
  • merge-risk: 🚨 availability: One rejected manifest aborts the shared publication action, and aggregate hydration cost remains unproven.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🦐 gold shrimp.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs real behavior proof before merge: The changed catalogFeed.publish owner is covered by convex-test storage, action, and HTTP emulation only. The companion's real Gateway evidence uses an installed provider and does not demonstrate publication or consumption of this producer's output; a redacted real-backend publication-to-HTTP trace and reader result remain required. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.

Evidence

What I checked:

  • Introduced publication failure: The new hydration helper throws above MAX_PUBLISH_FILE_BYTES, which is 10 MiB. Its caller propagates that failure before storing any refreshed feed. (convex/catalogFeed.ts:686, c897b1f4361d)
  • Existing release admission permits larger files: npm-pack publication explicitly bypasses the 10 MiB per-file check while retaining the 50 MiB total limit. The ClawPack parser likewise permits files up to 50 MiB; existing tests cover larger npm-pack files. (convex/packages.ts:8621, c897b1f4361d)
  • Current main still needs the feature: Current main publishes ordinary package entries without manifest hydration or provider setup projection. The latest-release catalogFeed.ts was also inspected through GitHub and lacks that projection; no shipped implementation was established. (convex/catalogFeed.ts:575, 30660cd4fffc)
  • Re-review continuity: The completed prior review already raised the oversized-ClawPack finding at this exact head. Comparing its revision with HEAD produced no changes in the publication or projection files. (convex/catalogFeed.ts:686, c897b1f4361d)
  • Proof covers emulation: The complete supplied body explicitly identifies storage → publication → HTTP coverage as convex-test emulation. The test checks unchanged install pins, metadata output, digest rejection, and preservation of the prior snapshot. These are useful supplemental tests, not a real-backend publication trace. (convex/catalogFeed.runtime.test.ts:78, c897b1f4361d)
  • Affirmative consumer-contract dependency: The specification identifies OpenClaw as the wire-contract consumer and requires reader compatibility checks before publication. This establishes why inspecting the OpenClaw reader is relevant. (specs/hosted-catalog-feed.md:45, c897b1f4361d)

Likely related people:

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

  • Preserve publication for accepted oversized ClawPack manifests and add regression coverage.
  • Measure candidate processing and cumulative manifest hydration near their limits on a real backend, tightening budgets where needed.
  • Provide redacted publication-to-HTTP and released/companion-reader results showing provider hints, unchanged install pins, and rejected tampering.

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 (32 earlier review cycles; latest 8 shown)
  • reviewed 2026-09-03T21:39:30.371Z sha c897b1f :: needs real behavior proof before merge. :: [P1] Exercise emitted metadata through the OpenClaw reader | [P2] Bound raw model candidates before sorting | [P2] Bound raw provider and auth candidates before projection | [P2] Budget manifest hydration across a publication
  • reviewed 2026-09-03T21:48:25.632Z sha c897b1f :: needs real behavior proof before merge. :: [P1] Exercise the new field through the OpenClaw reader | [P2] Add a cumulative manifest-hydration budget | [P2] Cap raw model candidates before sorting | [P2] Bound provider and auth inputs before filtering
  • reviewed 2026-09-03T23:42:46.422Z sha c897b1f :: needs real behavior proof before merge. :: [P1] Exercise provider metadata through the OpenClaw reader | [P2] Cap raw model candidates before sorting | [P2] Bound provider and auth inputs before repeated scans | [P2] Budget manifest hydration across the publication
  • reviewed 2026-09-04T04:52:44.817Z sha c897b1f :: needs real behavior proof before merge. :: [P2] Keep model preview selection bounded | [P2] Avoid repeated full scans of setup metadata | [P2] Cap aggregate manifest hydration per publication
  • reviewed 2026-09-04T05:57:47.535Z sha c897b1f :: needs real behavior proof before merge. :: [P2] Cap raw model candidates before sorting | [P2] Index or bound setup metadata before per-provider scans | [P2] Budget cumulative manifest hydration per publication
  • reviewed 2026-09-04T21:01:15.080Z sha c897b1f :: needs real behavior proof before merge. :: [P2] Cap raw model candidates before sorting | [P2] Bound provider setup scans before projection | [P2] Budget cumulative manifest hydration per publication
  • reviewed 2026-09-04T23:03:59.940Z sha c897b1f :: needs real behavior proof before merge. :: [P1] Preserve accepted ClawPack releases above the metadata read limit
  • reviewed 2026-09-12T11:30:05.213Z sha c897b1f :: needs real behavior proof before merge. :: [P1] Preserve accepted ClawPack releases above the metadata read limit

@clawsweeper clawsweeper Bot added the merge-risk: 🚨 availability 🚨 Merging this PR could cause crashes, hangs, restart loops, stalls, or process outages. label Sep 2, 2026
@github-actions

Copy link
Copy Markdown
Contributor

This pull request has been automatically marked as stale due to inactivity.
Please update it or it will be closed.

@github-actions github-actions Bot added the stale label Sep 12, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Closing due to inactivity.
If this PR should be revived, reopen it with current context and a fresh validation plan.

@github-actions github-actions Bot closed this Sep 22, 2026

This branch was successfully deployed

1 active deployment
Preview – clawhub — c897b1f4 Deployed Sep 2, 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: 🚨 availability 🚨 Merging this PR could cause crashes, hangs, restart loops, stalls, or process outages. merge-risk: 🚨 compatibility 🚨 Merging this PR could break existing users, config, migrations, defaults, or upgrades. P2 Normal backlog priority with limited blast radius. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. stale status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant