Skip to content

fix(plugins): keep Decision provider startup metadata scoped - #176313

Merged
steipete merged 1 commit into
mainfrom
fix7/decision-provider-metadata-fixture
Oct 18, 2026
Merged

steipete merged 1 commit into
mainfrom
fix7/decision-provider-metadata-fixture

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

Decision-only configurations fall back to the complete startup metadata inventory when their provider ID differs from the owning plugin ID.

User Impact

Restores narrow metadata selection for per-agent and default Decision models. The existing fallback still loaded the provider; this fixes unnecessary discovery work, not a proven loss of Decision execution.

Why This Change Was Made

Related: #176133. That change deliberately added capability-tagged Decision references to the shared configured-model collector. The startup validation reader treated those references as direct conversational provider IDs before the existing decisionProviders contract-owner lookup could run. Keep those references with the capability owner instead. No new lookup, cache, or fallback is needed.

Evidence

  • Reproduced the exact hourly 39149748413 failure on current main: the per-agent metadata-scope assertion failed while all four startup activation cases passed (31.49 s wrapper).
  • After the fix, native Bun startup tests passed: 15 tests across four files and two existing configurations (45.02 s). The original per-agent assertion remains; default Decision selection now shares its coverage.
  • Broader channel/startup metadata coverage passed: 87 tests (18.86 s wrapper).
  • Core and focused test types, targeted lint, format, and independent P2 autoreview passed.
  • Full pnpm build passed in 4m 33.5s, including declarations, public SDK export checks, and the Control UI build.

Decision references added by #176133 were being treated as direct chat
provider IDs before the existing Decision contract-owner lookup. When the
provider and plugin IDs differ, metadata selection falls back to the whole
inventory. Provider activation still works, but startup does extra work.

Let the existing capability lookup own Decision refs and preserve direct
provider validation for the other configured models. Keep the per-agent
regression and cover default Decision selection with the same contract.

Validation: exact current-main failure reproduced in 31.49s. Native Bun
startup siblings passed (15 tests, 45.02s); channel metadata siblings passed
(87 tests, 18.86s). Core/test types, targeted lint/format, full packaged build
(4m33.5s), and independent P2 review passed.
@clawsweeper

clawsweeper Bot commented Oct 18, 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.

@steipete
steipete marked this pull request as ready for review October 18, 2026 18:04
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-18T18:06:41.854577Z 2c05bc5 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@steipete
steipete enabled auto-merge (squash) October 18, 2026 18:11
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 18, 2026
@steipete
steipete merged commit 76d8094 into main Oct 18, 2026
188 of 190 checks passed
@steipete
steipete deleted the fix7/decision-provider-metadata-fixture branch October 18, 2026 18:17
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash auto-merge.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 19, 2026
…w#176313)

Decision references added by openclaw#176133 were being treated as direct chat
provider IDs before the existing Decision contract-owner lookup. When the
provider and plugin IDs differ, metadata selection falls back to the whole
inventory. Provider activation still works, but startup does extra work.

Let the existing capability lookup own Decision refs and preserve direct
provider validation for the other configured models. Keep the per-agent
regression and cover default Decision selection with the same contract.

Validation: exact current-main failure reproduced in 31.49s. Native Bun
startup siblings passed (15 tests, 45.02s); channel metadata siblings passed
(87 tests, 18.86s). Core/test types, targeted lint/format, full packaged build
(4m33.5s), and independent P2 review passed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant