Skip to content

fix(plugins): restore diffs external catalog validation - #130362

Merged
RomneyDa merged 1 commit into
mainfrom
fix/diffs-external-install-metadata
Aug 26, 2026
Merged

RomneyDa merged 1 commit into
mainfrom
fix/diffs-external-install-metadata

Conversation

@RomneyDa

Copy link
Copy Markdown
Member

Related: #129782

What Problem This Solves

Fixes an issue where release validation rejected the official external plugin catalog after the diffs plugins moved out of the core distribution.

Why This Change Was Made

The two independently published diffs packages no longer advertise a bundled local install path. The base diffs manifest also declares its existing ClawHub route, matching its release policy and the official catalog.

User Impact

Release validation can verify the external plugin catalog again. Operators continue to install the diffs plugins through their published npm or ClawHub packages.

Evidence

  • Pre-fix reproduction: node scripts/run-vitest.mjs src/plugins/official-external-plugin-catalog.test.ts failed with diffs and diffs-language-pack install metadata gaps.
  • Post-fix owner and sibling proof: 92 tests passed across src/plugins/official-external-plugin-catalog.test.ts, src/plugins/bundled-sources.test.ts, and src/cli/plugin-install-plan.test.ts.
  • node scripts/check-changed.mjs -- extensions/diffs/package.json extensions/diffs-language-pack/package.json passed 16 gates through plugin boundaries and package patch validation. Extension typecheck then stopped on unrelated missing imapflow, mailauth, and mailparser dependencies in the existing worktree dependency tree.
  • Duplicate search: no open PR or issue found for this exact catalog drift.

Production/config LOC: +1/-2 (net -1). Tests: +0/-0. The existing catalog ownership test is the regression proof and demonstrably failed before this repair.

This change was developed with AI assistance.

@clawsweeper

clawsweeper Bot commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@clawsweeper clawsweeper Bot added P1 High-priority user-facing bug, regression, or broken workflow. 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. labels Aug 26, 2026
@clawsweeper

clawsweeper Bot commented Aug 26, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 26, 2026, 5:03 PM ET / 21:03 UTC.

ClawSweeper review

What this changes

The PR removes obsolete local install metadata from the external diffs plugins and adds the base plugin’s existing ClawHub install route.

Merge readiness

⚠️ Ready for maintainer review - 1 item remains

Keep open. This member-authored PR makes the external-plugin manifests match the catalog validation contract; current main still has the mismatched metadata, and no patch defect was found.

Priority: P1
Reviewed head: 8db74c6db13a39b4496c855853342164ea6d855f

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A narrow, source-proven manifest correction with green exact-head checks in the supplied PR context and no actionable review findings.
Proof confidence 🌊 off-meta tidepool Not applicable: This member-authored PR is exempt from the external-contributor proof gate; its body also records focused before/after catalog-test evidence.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This member-authored PR is exempt from the external-contributor proof gate; its body also records focused before/after catalog-test evidence.
Evidence reviewed 6 items Validation invariant: The catalog ownership test enumerates external published plugins and fails unless each manifest install object exactly equals its one catalog entry.
Current-main mismatch: Current main still advertises a local path for both diffs packages; the base diffs package also lacks the catalog’s ClawHub route.
Catalog contract: The bundled official catalog specifies npm plus ClawHub routes, with no local path, for both diffs entries.
Findings None None.
Security None None.

Live Verification

Command: node scripts/run-vitest.mjs src/plugins/official-external-plugin-catalog.test.ts

Result: PASS (completed)

[test] starting test/vitest/vitest.plugins.config.ts

 RUN  v4.1.11 /tmp/clawsweeper-live-proof-130362-GUhnLw/target

 ✓  plugins  src/plugins/official-external-plugin-catalog.test.ts (82 tests) 1471ms

 Test Files  1 passed (1)
      Tests  82 passed (82)
   Start at  21:04:10
   Duration  3.73s (transform 1.92s, setup 1.03s, import 868ms, tests 1.47s, environment 0ms)

[test] passed 1 Vitest shard in 9.88s
[test] starting test/vitest/vitest.plugins.config.ts

 RUN  v4.1.11 /tmp/clawsweeper-live-proof-130362-GUhnLw/target

 ✓  plugins  src/plugins/official-external-plugin-catalog.test.ts (82 tests) 1328ms

 Test Files  1 passed (1)
      Tests  82 passed (82)
   Start at  21:04:21
   Duration  2.49s (transform 636ms, setup 474ms, import 452ms, tests 1.33s, environment 0ms)

[test] passed 1 Vitest shard in 8.65s

Assertions:

  • NOT OBSERVED expect_output: catalogs every published external extension exactly once — command exited successfully; expected output was not observed in the captured pane

How this fits together

Plugin manifests declare how externally distributed plugins can be installed. The official external-plugin catalog and release validation consume those declarations to ensure published install routes remain consistent.

flowchart LR
  A[Plugin manifests] --> B[External plugin catalog]
  B --> C[Catalog consistency test]
  C --> D[Release validation]
  D --> E[Published install routes]
Loading

Before merge

  • Complete next step (P2) - This active member-authored PR already contains the narrow repair; the remaining action is normal exact-head maintainer review.
Agent review details

Security

None.

PR surface

Config -1. Total -1 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 0 0 0 0
Docs 0 0 0 0
Config 2 1 2 -1
Generated 0 0 0 0
Other 0 0 0 0
Total 2 1 2 -1

Review metrics

Metric Value Why it matters
Production versus test LOC production +1/-2 (net -1); tests 0 The fix removes stale local-install metadata while adding the catalog’s existing ClawHub route without growing runtime or test code.

Technical review

Best possible solution:

Land the manifest-only correction so externally published diffs packages have the same supported install routes in their source metadata and official catalog.

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

Yes—source establishes a high-confidence path: the pre-PR manifest install objects differ from catalog entries and fail the exact-equality ownership test at src/plugins/official-external-plugin-catalog.test.ts:354.

Is this the best way to solve the issue?

Yes. The manifests own their published install metadata, and making them exactly match the existing catalog is narrower and safer than adding validator exceptions or changing installation logic.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 26d3b08758fb.

Labels

Label justifications:

  • P1: The mismatch blocks release validation for externally distributed diffs plugins.
  • 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 member-authored PR is exempt from the external-contributor proof gate; its body also records focused before/after catalog-test evidence.

Evidence

What I checked:

Likely related people:

  • RomneyDa: Authored the prior diffs language-pack split and this focused manifest correction. (role: feature owner and recent area contributor; confidence: high; commits: d638611684a8, 8db74c6db13a; files: extensions/diffs/package.json, extensions/diffs-language-pack/package.json)
  • vincentkoc: Authored the related merged externalization work that established the external-package boundary this metadata must describe. (role: adjacent external-distribution contributor; confidence: medium; commits: 2b06180bb5fe; files: extensions/diffs/package.json, extensions/diffs-language-pack/package.json)

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 (1 earlier review cycle)
  • reviewed 2026-08-26T20:20:07.285Z sha 8db74c6 :: needs maintainer review before merge. :: none

@RomneyDa
RomneyDa merged commit 3945499 into main Aug 26, 2026
95 checks passed
@RomneyDa
RomneyDa deleted the fix/diffs-external-install-metadata branch August 26, 2026 22:14
vincentkoc added a commit that referenced this pull request Aug 26, 2026
* origin/main: (275 commits)
  fix(ai): require explicit compatible-provider endpoints (#130453)
  test(control-ui): guard the hand-mirrored theme --bg copies (#130444)
  fix(onboard): preserve the saved skills package manager (#130438)
  improve(worker): diagnose admission-deadline failures and widen daemon revalidation budget (#130435)
  fix(plugins): align diffs external install metadata (#130362)
  refactor(models): consolidate config normalization (#130439)
  fix(browser): accept common keyboard aliases (#130401)
  fix(release): refresh IMAP plugin baselines (#130351)
  fix(tests): type sticky model agent fixtures (#130441)
  fix(qa): track current Slack progress cards (#130354)
  feat(ui): refine the mobile composer (#130308)
  fix(ui): clarify gateway disconnect status in tab title (#130364)
  test(qa): await gateway startup before network probes (#130353)
  fix(qa): run Buzz profile scenarios with pooled credentials (#130316)
  fix(crabbox): keep the setup failure reason and name its phase (#130425)
  fix: dashboard tools target the wrong Gateway after admission (#130112)
  fix(ui): distinguish inherited model defaults from session pins (#120805)
  feat(feishu): let agents resend received stickers (#130374)
  refactor(models): prepare selection policy once (#130413)
  fix(ui): make dashboard side panels enter split view (#130426)
  ...

# Conflicts:
#	test/scripts/docker-build-helper.test.ts
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

extensions: diffs maintainer Maintainer-authored PR P1 High-priority user-facing bug, regression, or broken workflow. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS 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