Skip to content

feat(plugins): externalize DuckDuckGo search - #116740

Merged
vincentkoc merged 1 commit into
mainfrom
feat/externalize-duckduckgo
Jul 31, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
feat/externalize-duckduckgo

Conversation

@vincentkoc

Copy link
Copy Markdown
Member

What Problem This Solves

DuckDuckGo web search is optional, but its plugin currently ships inside every core OpenClaw package. Operators who never use this keyless experimental provider still receive its runtime, while plugin installation and release ownership remain split between bundled and external paths.

Why This Change Was Made

This makes @openclaw/duckduckgo-plugin an official external package distributed through npm and ClawHub. The official catalog preserves the existing keyless web-search descriptor and setup metadata, while the generic bundled-to-external update bridge migrates enabled installations using the persisted plugin registry.

The core package now excludes DuckDuckGo artifacts. Package metadata, generated inventory, plugin reference docs, and setup instructions all describe the on-demand install route.

AI-assisted: yes.

User Impact

New users install DuckDuckGo only when they choose it:

openclaw plugins install @openclaw/duckduckgo-plugin
openclaw gateway restart

Existing users who had the bundled plugin enabled retain the same plugin id, configuration, explicit-selection behavior, and keyless credential contract during an OpenClaw update.

Evidence

  • 209 focused tests passed across DuckDuckGo behavior, official catalog resolution, update relocation, bundled artifact exclusion, and npm/ClawHub release tooling.
  • plugin-npm-release-check and plugin-clawhub-release-check accept @openclaw/[email protected].
  • Generated plugin inventory check, targeted oxfmt, JSON parsing, and git diff --check passed.
  • Exact-head Codex autoreview reported no findings and rated the patch correct with 0.87 confidence.
  • Reviewed head: 3b61eb139346dbce9418cc70c5de6462e2b65160.

@vincentkoc vincentkoc self-assigned this Jul 31, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review July 31, 2026 09:27
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Jul 31, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation cli CLI command changes scripts Repository scripts extensions: duckduckgo size: S maintainer Maintainer-authored PR labels Jul 31, 2026
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. labels Jul 31, 2026
@clawsweeper

clawsweeper Bot commented Jul 31, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed July 31, 2026, 6:41 AM ET / 10:41 UTC.

ClawSweeper review

What this changes

This PR externalizes the optional DuckDuckGo web-search plugin from the core distribution into the official @openclaw/duckduckgo-plugin npm and ClawHub package, with catalog metadata, installation docs, and upgrade-bridge coverage.

Merge readiness

⚠️ Ready for maintainer review - 4 items remain

Keep this PR open for maintainer review. The architecture matches OpenClaw’s lean-core/plugin direction, and the patch carries the existing DuckDuckGo descriptor into the official external catalog, but merging the core exclusion needs an explicit release-order guarantee that the external npm/ClawHub package is already available before any release omits the bundled artifact.

Priority: P2
Reviewed head: 960c82cd45d8675e15ab4331462665d5ba5807a9
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The patch is focused and has targeted catalog, relocation, and artifact-exclusion coverage; remaining confidence depends on maintainer-controlled release sequencing rather than a demonstrated code defect.
Proof confidence 🌊 off-meta tidepool Not applicable: This is a member-authored PR, so the external-contributor proof gate does not apply; however, the supplied evidence is pre-publication checks and tests rather than a published-package fresh-install or upgrade run.
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 member-authored PR, so the external-contributor proof gate does not apply; however, the supplied evidence is pre-publication checks and tests rather than a published-package fresh-install or upgrade run.
Evidence reviewed 5 items Plugin ownership direction: The repository vision says optional capabilities should usually ship as plugins, core should stay lean, and the preferred plugin route is npm distribution with ClawHub discovery.
External package contract: The PR changes the DuckDuckGo package from private bundled metadata to an official external package with npm and ClawHub install specifications, host-version compatibility, and release publication metadata.
Upgrade-path coverage: The PR extends persisted bundled-plugin relocation coverage to DuckDuckGo while preserving its non-default enablement contract, which is the relevant path for previously enabled installations.
Findings None None.
Security None None.

How this fits together

DuckDuckGo is a keyless web-search provider implemented as an OpenClaw plugin. Plugin discovery and upgrade relocation use the official external catalog and persisted plugin registry so a formerly bundled enabled plugin can be reinstalled from an external package after an OpenClaw update.

flowchart LR
  A[Bundled DuckDuckGo plugin] --> B[Persisted plugin registry]
  B --> C[Upgrade location bridge]
  D[Official external catalog] --> C
  C --> E[External package install]
  E --> F[DuckDuckGo web-search provider]
  F --> G[Agent web search]
Loading

Decision needed

Question Recommendation
Must publication and real install/upgrade verification of @openclaw/duckduckgo-plugin be a hard release gate before any OpenClaw release excludes the bundled DuckDuckGo artifact? Require publication before exclusion release: Publish the npm and ClawHub package, then record fresh-install and enabled-upgrade proof before releasing a core build without DuckDuckGo.

Why: The code intentionally removes the bundled runtime while the PR discussion defers live package proof until publication; only maintainers can choose the release sequencing and acceptable operational safeguard.

Before merge

  • Resolve merge risk (P1) - A core release that omits dist/extensions/duckduckgo/** before @openclaw/duckduckgo-plugin is available through the selected install route can leave an existing enabled DuckDuckGo setup without its provider until the operator manually recovers the package.
  • Resolve merge risk (P1) - The PR is behind main; refresh the final merge and release validation against the exact merge result after deciding the publication gate.
  • Complete next step (P2) - A maintainer must decide and enforce the package-publication gate for the first release that removes the bundled artifact; no narrow code repair is established.
Agent review details

Security

None.

PR surface

Source 0, Tests +37, Docs +18, Config +21, Other +40. Total +116 across 11 files.

View PR surface stats
Area Files Added Removed Net
Source 1 1 1 0
Tests 3 45 8 +37
Docs 4 23 5 +18
Config 2 24 3 +21
Generated 0 0 0 0
Other 1 40 0 +40
Total 11 133 17 +116

Review metrics

Metric Value Why it matters
Distribution transition 1 bundled plugin excluded; 1 official external catalog entry added; 1 persisted-location bridge path covered This is an upgrade-sensitive ownership move, not merely a packaging cleanup, because enabled users depend on the external package being available at release time.

Stored data model

Persistent data-model change detected: vector/embedding metadata: src/cli/plugins-location-bridges.test.ts. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Prove the publication-first release path (recommended)
    Before releasing the exclusion, verify an external install and an enabled bundled-install upgrade against the published package.
  2. Accept a coordinated release dependency
    Merge only if release owners explicitly accept responsibility for publishing the package before the first core artifact exclusion.
  3. Keep DuckDuckGo bundled for now
    Pause this PR if the external package cannot be published and validated in the same release window.
Copy recommended automerge instruction
@clawsweeper automerge

Special instructions:
Require published npm and ClawHub availability plus redacted fresh-install and enabled-upgrade proof before release promotion.

Technical review

Best possible solution:

Publish and verify the official DuckDuckGo package first, then release the core exclusion only with a fresh-install proof and an enabled bundled-to-external upgrade proof that preserve the plugin id, configuration, and keyless provider selection.

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

Not applicable as a conventional bug reproduction: this PR changes distribution ownership. The relevant observable paths are a fresh external install and an upgrade from a previously enabled bundled installation, neither of which has published-package real-behavior proof in the supplied discussion.

Is this the best way to solve the issue?

Unclear pending the release decision. Externalizing this optional provider fits the repository’s plugin direction, but the best implementation outcome requires published-package availability and both fresh-install and enabled-upgrade proof before the bundled artifact disappears from a release.

AGENTS.md: unclear because the file could not be read completely.

Codex review notes: model internal, reasoning high; reviewed against 27fa5a8950f1.

Labels

Label justifications:

  • P2: This is a bounded plugin-distribution and upgrade-path change with a meaningful but optional-provider blast radius.
  • merge-risk: 🚨 compatibility: Removing a previously bundled plugin can break existing enabled installations if external package availability and relocation are not coordinated with the core release.
  • 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 member-authored PR, so the external-contributor proof gate does not apply; however, the supplied evidence is pre-publication checks and tests rather than a published-package fresh-install or upgrade run.

Evidence

What I checked:

  • Plugin ownership direction: The repository VISION.md says optional capabilities should usually ship as plugins, core should stay lean, and the preferred plugin route is npm distribution with ClawHub discovery. (VISION.md:58, 27fa5a8950f1)
  • External package contract: The PR changes the DuckDuckGo package from private bundled metadata to an official external package with npm and ClawHub install specifications, host-version compatibility, and release publication metadata. (extensions/duckduckgo/package.json:1, 960c82cd45d8)
  • Upgrade-path coverage: The PR extends persisted bundled-plugin relocation coverage to DuckDuckGo while preserving its non-default enablement contract, which is the relevant path for previously enabled installations. (src/cli/plugins-location-bridges.test.ts:165, 960c82cd45d8)
  • Core artifact exclusion: The root package excludes dist/extensions/duckduckgo/**, so a release containing this patch no longer carries the bundled fallback artifact. (package.json:261, 960c82cd45d8)
  • Release-order acknowledgement: The supplied PR discussion says fresh external-install and enabled-upgrade proof are deferred until publication, and states that the external package must be published before the core release that excludes DuckDuckGo. (960c82cd45d8)

Likely related people:

  • vincentkoc: Authored the current externalization commit and the accompanying release-order rationale for the DuckDuckGo distribution and relocation path; broader historical ownership could not be established from the available read-only inspection. (role: current area contributor; confidence: medium; commits: 960c82cd45d8; files: extensions/duckduckgo/package.json, scripts/lib/official-external-plugin-catalog.json, src/cli/plugins-location-bridges.test.ts)

Rank-up moves

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

  • Publish the official package before the first core release that excludes DuckDuckGo.
  • Capture redacted fresh-install and enabled-upgrade proof against the published package.
  • Refresh merge validation on the final merge result because the branch is behind main.

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 (4 earlier review cycles)
  • reviewed 2026-07-31T09:38:27.180Z sha 3b61eb139346dbce9418cc70c5de6462e2b65160 :: needs maintainer review before merge. :: none
  • reviewed 2026-07-31T09:43:53.545Z sha 3b61eb139346dbce9418cc70c5de6462e2b65160 :: needs maintainer review before merge. :: none
  • reviewed 2026-07-31T10:12:31.225Z sha ce933980d97d58469b5809adf602e0b6f35ec36f :: needs maintainer review before merge. :: none
  • reviewed 2026-07-31T10:16:36.159Z sha ce933980d97d58469b5809adf602e0b6f35ec36f :: needs maintainer review before merge. :: none

@vincentkoc

Copy link
Copy Markdown
Member Author

ClawSweeper rank-up move disposition:

  • Fresh external install proof: deferred until the @openclaw/duckduckgo-plugin release candidate is published. Before publication, the exact-head release metadata/catalog checks are the inspectable pre-publication gate.
  • Enabled bundled-to-external upgrade proof: deferred to the same published-candidate validation. The exact-head persisted-location bridge test already covers the registry relocation invariant.

Maintainer decision: approve external ownership and require the external package to be published before the core release containing the DuckDuckGo exclusion. These are optional rank-up moves, not merge blockers.

@vincentkoc
vincentkoc force-pushed the feat/externalize-duckduckgo branch from 3b61eb1 to ce93398 Compare July 31, 2026 10:08
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Jul 31, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@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 Jul 31, 2026
@vincentkoc
vincentkoc force-pushed the feat/externalize-duckduckgo branch from ce93398 to 960c82c Compare July 31, 2026 10:37
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Jul 31, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@vincentkoc

Copy link
Copy Markdown
Member Author

ClawSweeper rank-up dispositions for reviewed head 960c82cd45d8675e15ab4331462665d5ba5807a9:

  • Publish before exclusion release: accepted as a release gate. @openclaw/duckduckgo-plugin must be published to npm and ClawHub before promoting the first core release that omits the bundled artifact. This PR merges source and release metadata; it does not publish that core release.
  • Published-package fresh-install and enabled-upgrade proof: deferred until the package exists in the registries, because a pre-publication run cannot prove registry resolution. Release promotion requires both redacted proofs.
  • Refresh validation against moving main: handled by the repo-native scripts/pr prepare-run and scripts/pr merge-run flow, which prepares and validates the final merge candidate against current main. The reviewed PR head stays frozen; we will not repeatedly rewrite it merely because main advances.

Maintainer decision: accept the external plugin ownership boundary with those publication and release-promotion gates.

@vincentkoc
vincentkoc merged commit 6830820 into main Jul 31, 2026
124 checks passed
@vincentkoc
vincentkoc deleted the feat/externalize-duckduckgo branch July 31, 2026 10:49
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Jul 31, 2026
* origin/main: (23 commits)
  fix(agents): preserve resumed turns after stale terminal events (#116777)
  fix(browser): preserve tab-bound browser authorization (#116778)
  fix(doctor): correct SQLite-backed automation warnings (#116769)
  fix(release): skip unavailable Buzz QA runner (#116753)
  feat(plugins): externalize DuckDuckGo search (#116740)
  refactor(reply): simplify task-owned typing refresh (#116770)
  fix(chat): explain chat-only model limits
  feat(models): expose tool support to clients
  docs(skill): require independent proof before issue closure
  fix(skills): allow autonomous sweep sync (#116755)
  fix(irc): recognize punctuation in nickname mentions (#116758)
  fix(plugins): require explicit source external startup (#116759)
  fix(whatsapp): keep sends running when typing presence fails (#116739)
  fix(cli): reject dangling config path escapes (#116738)
  fix(qa): authenticate summaries and bound native scenario commands (#116748)
  fix(bedrock): reject truncated streams and preserve audio results (#116743)
  docs(skill): isolate autonomous issue sweep worktrees
  fix(ci): retire Kova runtime deps coverage (#116760)
  chore(i18n): refresh native locales (#116640)
  fix(ollama): resolve web search secret refs (#104829)
  ...
fuller-stack-dev pushed a commit that referenced this pull request Jul 31, 2026
# Conflicts:
#	docs/plugins/plugin-inventory.md
#	extensions/duckduckgo/package.json
#	src/cli/plugins-location-bridges.test.ts
#	src/plugins/official-external-plugin-catalog.test.ts
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 1, 2026
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 1, 2026
* origin/main: (23 commits)
  fix(agents): preserve resumed turns after stale terminal events (openclaw#116777)
  fix(browser): preserve tab-bound browser authorization (openclaw#116778)
  fix(doctor): correct SQLite-backed automation warnings (openclaw#116769)
  fix(release): skip unavailable Buzz QA runner (openclaw#116753)
  feat(plugins): externalize DuckDuckGo search (openclaw#116740)
  refactor(reply): simplify task-owned typing refresh (openclaw#116770)
  fix(chat): explain chat-only model limits
  feat(models): expose tool support to clients
  docs(skill): require independent proof before issue closure
  fix(skills): allow autonomous sweep sync (openclaw#116755)
  fix(irc): recognize punctuation in nickname mentions (openclaw#116758)
  fix(plugins): require explicit source external startup (openclaw#116759)
  fix(whatsapp): keep sends running when typing presence fails (openclaw#116739)
  fix(cli): reject dangling config path escapes (openclaw#116738)
  fix(qa): authenticate summaries and bound native scenario commands (openclaw#116748)
  fix(bedrock): reject truncated streams and preserve audio results (openclaw#116743)
  docs(skill): isolate autonomous issue sweep worktrees
  fix(ci): retire Kova runtime deps coverage (openclaw#116760)
  chore(i18n): refresh native locales (openclaw#116640)
  fix(ollama): resolve web search secret refs (openclaw#104829)
  ...
akeshr pushed a commit to akeshr/openclaw that referenced this pull request Aug 1, 2026
* origin/release/2026.7.2:
  feat(plugins): externalize DuckDuckGo search (openclaw#116740) # Conflicts: #	docs/plugins/plugin-inventory.md #	extensions/duckduckgo/package.json #	src/cli/plugins-location-bridges.test.ts #	src/plugins/official-external-plugin-catalog.test.ts
steipete added a commit that referenced this pull request Sep 7, 2026
…#141478)

* fix(update): restore untracked official plugins from the core release cohort

Keep update admission and Doctor repair on the selected stable core version when formerly bundled official plugins have no install record. Preserve existing selectors and capability policy. Add DuckDuckGo published-upgrade and standalone Doctor coverage for bundled and already-missing states.

Related: #135002, #116740

* test(update): recognize missing optional plugin warnings

* test(update): isolate plugin repair proof and satisfy helper lint

* test(update): preserve beta tag selection in doctor fixture

* chore(ci): register plugin doctor survivor entrypoint
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 8, 2026
…openclaw#141478)

* fix(update): restore untracked official plugins from the core release cohort

Keep update admission and Doctor repair on the selected stable core version when formerly bundled official plugins have no install record. Preserve existing selectors and capability policy. Add DuckDuckGo published-upgrade and standalone Doctor coverage for bundled and already-missing states.

Related: openclaw#135002, openclaw#116740

* test(update): recognize missing optional plugin warnings

* test(update): isolate plugin repair proof and satisfy helper lint

* test(update): preserve beta tag selection in doctor fixture

* chore(ci): register plugin doctor survivor entrypoint
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cli CLI command changes docs Improvements or additions to documentation extensions: duckduckgo 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: S 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