Skip to content

fix(channels): generate catalog from package manifests - #118097

Merged
vincentkoc merged 1 commit into
mainfrom
fix/channel-catalog-discovery
Aug 3, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
fix/channel-catalog-discovery

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Aug 2, 2026 •

Copy link
Copy Markdown
Member

Summary

  • make in-repository package manifests authoritative for channel presentation and install metadata
  • merge catalog-relevant plugin manifest contracts and channel configuration schemas
  • keep only out-of-tree official plugins in the hand-maintained seed
  • reject duplicate channel IDs instead of silently selecting one
  • generate and verify the committed catalog during release preflight

Problem

OpenClaw had two inventories for the same in-repository channels: metadata beside each plugin and copied records in a central catalog. The generator loaded copied catalog entries first and ignored same-ID package metadata, so stale copies silently won. ClickClack exposed the drift.

The generated catalog also acts as a compatibility supplement for installed official plugins whose shipped openclaw.plugin.json predates newer contracts or channelConfigs. Reading only package metadata would drop that fallback for channels such as Slack and Raft.

This establishes one ownership rule:

  • in-repository presentation and install metadata: extension package.json
  • in-repository catalog contracts and configuration descriptors: extension openclaw.plugin.json
  • out-of-tree official plugins: scripts/lib/official-external-channel-seed.json
  • generated runtime catalog: scripts/lib/official-external-channel-catalog.json

Part of #118043.

User Impact

Cold install, setup, Doctor repair, and packaged catalog consumers now follow the owning manifests. Older official plugin builds continue receiving catalog-backed configuration descriptors, and duplicate IDs fail generation instead of producing order-dependent output.

Evidence

Exact head: 6a6c836c9d3f1e449b4c121edb684015a3956c38.

  • catalog generation check passed
  • bundled channel configuration metadata check passed
  • script declaration check passed: 250 contracts
  • focused Vitest passed: 3 shards, 215 tests
  • packaged runtime postbuild passed: 35 tests
  • lagging-plugin catalog hydration passed: 110 tests
  • official install and repair target resolution passed: 191 tests
  • exact-head hosted CI passed: 88 checks, 0 failures
  • targeted oxfmt --check passed
  • git diff --check passed
  • structured autoreview clean
  • signed commit verified

The large line count is generated catalog and bundled configuration metadata. There are no storage schema or migration changes.

Follow-up

#118106 generates the public channel index from this catalog and repairs the WeCom and ClickClack discovery surfaces. It will close the shared issue after this prerequisite lands.

@vincentkoc vincentkoc self-assigned this Aug 2, 2026
@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: XL maintainer Maintainer-authored PR labels Aug 2, 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. P2 Normal backlog priority with limited blast radius. labels Aug 2, 2026
@clawsweeper

clawsweeper Bot commented Aug 2, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 3, 2026, 10:41 AM ET / 14:41 UTC.

ClawSweeper review

What this changes

This PR generates OpenClaw’s official channel catalog from publishable bundled plugin manifests, retains a seed for official plugins outside the repository, and checks the generated source during release preflight.

Merge readiness

⚠️ Ready for maintainer review - 4 items remain

Keep this maintainer-authored PR open for an owner decision and exact-head CI completion. The patch replaces the current stale-wins catalog behavior with a manifest-owned generation path, preserves a seed for out-of-tree official plugins, and adds focused compatibility coverage; I found no discrete correctness defect in the proposed patch.

Priority: P2
Reviewed head: 6a6c836c9d3f1e449b4c121edb684015a3956c38
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The patch has a coherent owner-boundary repair and targeted regression coverage, while its compatibility contract and remaining exact-head checks still require maintainer review.
Proof confidence 🌊 off-meta tidepool Not applicable: This is a maintainer-authored PR, so the external-contributor real-behavior-proof gate does not apply; the PR body supplies focused test and hosted-CI claims, with exact-head CI still completing.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This is a maintainer-authored PR, so the external-contributor real-behavior-proof gate does not apply; the PR body supplies focused test and hosted-CI claims, with exact-head CI still completing.
Evidence reviewed 6 items Current duplicate handling: The parent generator initializes its entries from the committed catalog and skips a publishable package when the same channel ID is already present, so copied catalog metadata wins over the package metadata.
Proposed ownership boundary: The PR separately validates seed and repository IDs, lets an in-repository package replace an external seed of the same ID, then renders a deterministic committed catalog with a stale-source check.
Compatibility coverage: The PR’s catalog tests cover same-ID seed replacement, synchronization of the committed generated catalog, package/plugin-manifest metadata projection, and policy for external install sources.
Findings None None.
Security None None.

How this fits together

The official channel catalog feeds packaged channel discovery, setup, and Doctor’s plugin-repair decisions. Bundled channel packages and plugin manifests provide metadata to the catalog generator, while separately distributed official plugins retain curated fallback records.

flowchart LR
  A[Bundled channel manifests] --> C[Catalog generator]
  B[External official-plugin seed] --> C
  C --> D[Committed official catalog]
  D --> E[Packaged runtime catalog]
  D --> F[Setup and Doctor metadata]
  E --> G[Channel discovery]
Loading

Decision needed

Question Recommendation
Should maintainers accept the compatibility contract that bundled channel manifests replace duplicated catalog records while the external seed remains the fallback for separately distributed official plugins? Approve the ownership migration: Confirm the manifest and external-seed split is the intended long-term catalog contract after exact-head checks complete.

Why: The implementation is coherent, but the catalog drives setup and Doctor behavior for existing installations; the intended ownership and upgrade contract need an explicit owner decision rather than an automated merge conclusion.

Before merge

  • Resolve merge risk (P1) - This changes the authoritative metadata source for setup, Doctor, and packaged catalog consumers; a missing package or plugin-manifest field can alter existing installations even though the generated JSON is syntactically valid.
  • Resolve merge risk (P1) - The supplied exact-head check rollup still contains in-progress jobs, so the asserted hosted validation is not yet independently complete at this review point.
  • Complete next step (P2) - A maintainer must confirm the intended catalog ownership and compatibility contract before merging this protected, maintainer-authored PR.
Agent review details

Security

None.

PR surface

Source +26, Tests +275, Config +2, Generated 0, Other +1747. Total +2050 across 17 files.

View PR surface stats
Area Files Added Removed Net
Source 2 34 8 +26
Tests 6 354 79 +275
Docs 0 0 0 0
Config 2 3 1 +2
Generated 1 8 8 0
Other 6 2298 551 +1747
Total 17 2697 647 +2050

Review metrics

Metric Value Why it matters
Catalog contract projection 4 manifest fields projected The generator now carries catalog, contracts, channel configuration descriptors, and provider endpoints into a runtime-consumed compatibility artifact.
Production versus test LOC production +1,775, tests +275 Most production growth is the regenerated catalog (+1,457 net) and external seed (+164); the remaining generator and runtime boundary changes implement the named ownership contract.

Stored data model

Persistent data-model change detected: migration/backfill/repair: src/plugins/official-external-plugin-targets.test.ts, unknown-data-model-change: src/config/bundled-channel-config-metadata.generated.ts, vector/embedding metadata: src/plugins/manifest-registry.test.ts, vector/embedding metadata: src/plugins/official-external-plugin-catalog.test.ts, vector/embedding metadata: src/plugins/official-external-plugin-targets.test.ts, vector/embedding metadata: test/official-channel-catalog.test.ts. Migration or upgrade compatibility proof is recorded; maintainers should verify it before merge.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #118043
Summary: This PR is the catalog-generation portion of the canonical manifest-drift issue; the stacked discovery/docs PR addresses the separate public-surface portion.

Members:

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

Merge-risk options

Maintainer options:

  1. Verify generated upgrade surfaces before merge (recommended)
    Complete exact-head CI and review representative fresh-install plus lagging official-plugin setup and Doctor hydration from the generated catalog.
  2. Pause the ownership migration
    Keep the existing catalog contract if maintainers do not want bundled package and plugin manifests to become authoritative metadata sources.

Technical review

Best possible solution:

Land one canonical manifest-generated catalog only after the catalog and plugin owners confirm the generated entries preserve fresh-install and lagging-plugin hydration behavior, and after the remaining exact-head checks finish green.

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

No live current-main reproduction was run in this read-only review, but source inspection establishes the prior failure path: the copied catalog is loaded first and same-ID bundled package metadata is skipped. The PR adds focused tests at that exact generator boundary.

Is this the best way to solve the issue?

Yes, subject to the owner decision and upgrade proof: manifest-owned bundled metadata plus a dedicated external-plugin seed removes the competing source of truth while retaining the documented compatibility fallback for separately distributed plugins.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 48c14976b96c.

Labels

Label justifications:

  • P2: This is a bounded channel-discovery and setup correctness repair with compatibility-sensitive but non-emergency blast radius.
  • merge-risk: 🚨 compatibility: The PR changes the source and shape of catalog metadata used by existing plugin setup, configuration hydration, and Doctor targeting.
  • 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: This is a maintainer-authored PR, so the external-contributor real-behavior-proof gate does not apply; the PR body supplies focused test and hosted-CI claims, with exact-head CI still completing.

Evidence

What I checked:

  • Current duplicate handling: The parent generator initializes its entries from the committed catalog and skips a publishable package when the same channel ID is already present, so copied catalog metadata wins over the package metadata. (scripts/write-official-channel-catalog.mjs:76, cad499d7ca06)
  • Proposed ownership boundary: The PR separately validates seed and repository IDs, lets an in-repository package replace an external seed of the same ID, then renders a deterministic committed catalog with a stale-source check. (scripts/write-official-channel-catalog.mjs:115, 6a6c836c9d3f)
  • Compatibility coverage: The PR’s catalog tests cover same-ID seed replacement, synchronization of the committed generated catalog, package/plugin-manifest metadata projection, and policy for external install sources. (test/official-channel-catalog.test.ts:79, 6a6c836c9d3f)
  • Runtime consumer boundary: Current runtime code uses catalog channel environment metadata to identify configured channel presence and Doctor repair targets; this makes generated-field completeness an upgrade-sensitive behavior rather than a docs-only change. (src/channels/config-presence.ts:160, 48c14976b96c)
  • Feature provenance: Current-main blame attributes the existing catalog writer to Vincent Koc, and prior catalog/WeCom-install commits show the same area ownership trail; an earlier packaged-catalog release fix is attributed to Nimrod Gutman. (scripts/write-official-channel-catalog.mjs:115, db7c48478f80)
  • Current-main and release status: The PR head is not an ancestor of current main, so this remains necessary work rather than an implemented-on-main cleanup. The local repository could not complete an older tag/history fetch because its promisor remote was unreachable; no release inclusion is claimed. (scripts/write-official-channel-catalog.mjs:115, 48c14976b96c)

Likely related people:

  • Vincent Koc: The current generator lines blame to Vincent’s merged main work, and prior catalog and official-channel-install fixes are also authored by Vincent. (role: current catalog owner; confidence: high; commits: db7c48478f80, 961575ddf7e4, ce4bb8f63826; files: scripts/write-official-channel-catalog.mjs, scripts/lib/official-external-channel-catalog.json, src/plugins/official-external-plugin-catalog.ts)
  • Nimrod Gutman: The generator history includes Nimrod’s shipped-catalog and npm-tar preservation fix, which is adjacent to this PR’s packaged runtime catalog contract. (role: packaged catalog contributor; confidence: medium; commits: b84a13078830; files: scripts/write-official-channel-catalog.mjs, scripts/runtime-postbuild.mjs)

Rank-up moves

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

  • Complete the remaining exact-head CI jobs.
  • Confirm generated catalog output preserves representative fresh-install and lagging-plugin setup and Doctor behavior.

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 (5 earlier review cycles)
  • reviewed 2026-08-02T17:58:09.474Z sha 6f2a0be0e5f4fc778cec8f309cf06a56cc394d33 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-02T18:20:24.531Z sha 0f0d616 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-03T14:05:45.254Z sha bb30532f1b9a81cd6984390b2ed9c38c8443665e :: needs maintainer review before merge. :: none
  • reviewed 2026-08-03T14:17:37.655Z sha c5596014a7fae6c41dbbf3a01597c4bf33ad73b3 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-03T14:28:51.800Z sha 53e2355955108de344d658ab03a214a133319e59 :: needs maintainer review before merge. :: none

@vincentkoc
vincentkoc force-pushed the fix/channel-catalog-discovery branch from 6f2a0be to 0f0d616 Compare August 2, 2026 18:12
@clawsweeper clawsweeper Bot added the merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. label Aug 2, 2026
@vincentkoc
vincentkoc force-pushed the fix/channel-catalog-discovery branch from 0f0d616 to bb30532 Compare August 3, 2026 13:59
@vincentkoc
vincentkoc marked this pull request as ready for review August 3, 2026 13:59
@vincentkoc
vincentkoc force-pushed the fix/channel-catalog-discovery branch from bb30532 to c559601 Compare August 3, 2026 14:11
@openclaw-barnacle openclaw-barnacle Bot added the channel: signal Channel integration: signal label Aug 3, 2026
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. labels Aug 3, 2026
@vincentkoc
vincentkoc force-pushed the fix/channel-catalog-discovery branch from c559601 to 53e2355 Compare August 3, 2026 14:20
@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Aug 3, 2026
@vincentkoc
vincentkoc force-pushed the fix/channel-catalog-discovery branch from 53e2355 to 6a6c836 Compare August 3, 2026 14:35
@vincentkoc
vincentkoc merged commit 7fabb55 into main Aug 3, 2026
133 of 136 checks passed
@vincentkoc
vincentkoc deleted the fix/channel-catalog-discovery branch August 3, 2026 15:17
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Aug 3, 2026
* origin/main:
  fix(onboard): keep referenced provider secrets out of plaintext (#118702)
  docs: show canonical agent roster configuration (#118722)
  fix(channels): generate catalog from package manifests (#118097)
  fix(zalouser): distinguish probe timeout from auth failure (#111336)
  improve(ui): cut E2E shard runtime by reusing the bundle (#118697)
  fix(cli): publish completion caches atomically (#118715)
  fix(whatsapp): honor disabled self-chat without widening group access (#118711)
  fix(voice-call): terminate carrier calls after realtime startup failures (#118699)
  fix(slack): isolate GovSlack media trust and delivery (#118695)
  fix(browser): wrap page-controlled action results (#118691)
  fix(security): sanitize JSON-escaped forged content boundaries (#118698)
  test(qa): prove real yielded-child completion and channel delivery (#118707)
  fix(doctor): honor explicit plugin-only migration authority (#118700)
  fix(security): detect child_process calls through aliases and computed members (#116304)
  test(gateway): avoid async facade mock race (#118708)
  fix(gateway): preserve final speech during transcription shutdown (#118693)
  fix(gateway): resume durable outbound delivery retries (#118694)
  fix(plugins): reject external public-artifact hardlinks (#118689)
vincentkoc added a commit that referenced this pull request Aug 3, 2026
* origin/main: (78 commits)
  fix(parallels): recover Windows poll transport failures (#118479)
  fix(channels): deny unauthorized Discord and Telegram binding access (#118704)
  fix(test): bound shared git inventory lookup (#111171)
  fix(onboard): keep referenced provider secrets out of plaintext (#118702)
  docs: show canonical agent roster configuration (#118722)
  fix(channels): generate catalog from package manifests (#118097)
  fix(zalouser): distinguish probe timeout from auth failure (#111336)
  improve(ui): cut E2E shard runtime by reusing the bundle (#118697)
  fix(cli): publish completion caches atomically (#118715)
  fix(whatsapp): honor disabled self-chat without widening group access (#118711)
  fix(voice-call): terminate carrier calls after realtime startup failures (#118699)
  fix(slack): isolate GovSlack media trust and delivery (#118695)
  fix(browser): wrap page-controlled action results (#118691)
  fix(security): sanitize JSON-escaped forged content boundaries (#118698)
  test(qa): prove real yielded-child completion and channel delivery (#118707)
  fix(doctor): honor explicit plugin-only migration authority (#118700)
  fix(security): detect child_process calls through aliases and computed members (#116304)
  test(gateway): avoid async facade mock race (#118708)
  fix(gateway): preserve final speech during transcription shutdown (#118693)
  fix(gateway): resume durable outbound delivery retries (#118694)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 4, 2026
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 4, 2026
* origin/main:
  fix(onboard): keep referenced provider secrets out of plaintext (openclaw#118702)
  docs: show canonical agent roster configuration (openclaw#118722)
  fix(channels): generate catalog from package manifests (openclaw#118097)
  fix(zalouser): distinguish probe timeout from auth failure (openclaw#111336)
  improve(ui): cut E2E shard runtime by reusing the bundle (openclaw#118697)
  fix(cli): publish completion caches atomically (openclaw#118715)
  fix(whatsapp): honor disabled self-chat without widening group access (openclaw#118711)
  fix(voice-call): terminate carrier calls after realtime startup failures (openclaw#118699)
  fix(slack): isolate GovSlack media trust and delivery (openclaw#118695)
  fix(browser): wrap page-controlled action results (openclaw#118691)
  fix(security): sanitize JSON-escaped forged content boundaries (openclaw#118698)
  test(qa): prove real yielded-child completion and channel delivery (openclaw#118707)
  fix(doctor): honor explicit plugin-only migration authority (openclaw#118700)
  fix(security): detect child_process calls through aliases and computed members (openclaw#116304)
  test(gateway): avoid async facade mock race (openclaw#118708)
  fix(gateway): preserve final speech during transcription shutdown (openclaw#118693)
  fix(gateway): resume durable outbound delivery retries (openclaw#118694)
  fix(plugins): reject external public-artifact hardlinks (openclaw#118689)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

channel: signal Channel integration: signal 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. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: XL 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