Skip to content

feat(models): use prepared Decision capabilities in the picker - #189688

Merged
vincentkoc merged 3 commits into
mainfrom
feat/decision-catalog-picker-20261101
Nov 1, 2026
Merged

vincentkoc merged 3 commits into
mainfrom
feat/decision-catalog-picker-20261101

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Oct 31, 2026 •

Copy link
Copy Markdown
Member

Related: #189081
Catalogue transport (merged): #189678

What Problem This Solves

The Decision picker reads installed manifest rows only, so task capabilities adopted into a prepared catalog generation cannot appear there.

User Impact

Installed Decision adapters can expose the capabilities from the same captured catalog generation used by the model picker. Existing manifest-only discovery, including replace mode, stays available. Remote metadata cannot register an executor or bypass plugin eligibility.

Why This Change Was Made

Pass captured entries to the existing selector projection. Prefer prepared Decision facts where available; preserve installed manifest advertisements when prepared inventory omits or clears those facts. This selector projection never restores prepared execution metadata. Remote-only choices still require prepared Decision facts. Reuse the existing provider alias normalizer and the bounded V1 selector contract.

Evidence

  • On restacked head d24c0e3a0b054baf84e3f48f070d4b85a9598d6e, all 18 picker tests and both ClawRouter HTTP integration tests pass (2 shards, 131.36s), covering prepared remote-only and cleared remote-only rows, preserved manifest advertisements, provider aliases, replace mode, disabled plugins, provider filtering, and unowned metadata.
  • The prepared-first implementation failed the existing custom-endpoint ClawRouter cases; preserving installed selector advertisements fixes that regression without restoring prepared execution facts.
  • Final committed-range local ClawSweeper review of 64e2da31a4fa585f5ddcb0c5be60f1aaaa70ed1c..f4b50bf2bae8ba5e8a3c7a2f2cd1a797a35c324f completed with no correctness or security findings. The initial per-model endpoint finding is resolved and covered by red/green behavior proof.
  • Full pnpm build passed on composed head f4b50bf2bae8ba5e8a3c7a2f2cd1a797a35c324f in 6m 55.7s, including runtime, internal packages, SDK declarations/exports, and UI. Final core, Gateway-test and agent-test typechecks, focused lint, and formatting of all 21 changed files pass.
  • Fresh local ClawSweeper review of 1cb4698d4efb3b3afbdf324b4ef64b9c2f136b7c..d220944e15a485c3b31843df862f981a3fea4165 completed with no correctness/security findings. The alias case now requires an aliased prepared-only model, so manifest fallback cannot satisfy it.
  • All three picker commits replayed unchanged onto merged feed commit 177fe32dfdd77152780442a4c13a806d26d088fc (git range-diff = for each). The PR remains four files. Main changed package/lock inputs; refreshed the private native workspace with the frozen lock before the focused rerun. Restacked core and Gateway-test typechecks, four-file lint, formatting, and diff checks pass. The prior full build above remains prior-head proof; current-head broad CI is required.
  • No UI/protocol shape change, hosted feed rollout, external live inference, isolated live Gateway, or SDK contract break is claimed. The feed PR records the real stable-to-candidate CLI upgrade and the independent global-schema downgrade limitation.

Inherited CI failure

Run https://github.com/openclaw/openclaw/actions/runs/41265561008 fails only the freshness shard and its aggregate gate; security and the other selected jobs pass. The failing assertion is models-list.freshness.integration.test.ts:158: one picker preparation after UI-only preference writes, expected zero, with no extra provider HTTP request.

The same complete three-case test fails identically on exact PR head d24c0e3a and merged main baseline 177fe32d (one failed, two passed; baseline test duration 78.74s). The test, fixtures, metadata invalidation owners, model-list handler, config/agent/plugin owners, dependency inputs and test configuration are unchanged. CI tested merge 36c93c39bc76e0409b578949925675b8607a5e61 with those two ordered parents; the merge tree was verified. This establishes an inherited failure. Its precise invalidation cause remains unresolved; no repair or green replay is claimed. Landing uses the native inherited-failure exception under existing maintainer authority, retaining failed CI and all review/security gates.

@vincentkoc vincentkoc self-assigned this Oct 31, 2026
@clawsweeper

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

@openclaw-barnacle openclaw-barnacle Bot added gateway Gateway runtime size: S labels Oct 31, 2026
@clawsweeper clawsweeper Bot added the clawsweeper:intake:feature Preliminary submission classification; full source review pending. label Oct 31, 2026
@vincentkoc
vincentkoc force-pushed the feat/decision-catalog-picker-20261101 branch from 5bf58d0 to f4b50bf Compare October 31, 2026 19:21
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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. and removed clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Oct 31, 2026
@clawsweeper

clawsweeper Bot commented Oct 31, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR exposes prepared Decision catalog capabilities through the existing model picker while preserving installed-plugin advertisements.

Example: An eligible fixture plugin declares fixture/fast, and its prepared catalog additionally contains fixture/remote with Decision capabilities.

  • Before: The Decision picker lists only fixture/fast.
  • After: The Decision picker also lists fixture/remote; metadata for an unowned provider remains excluded.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The focused implementation appears correct; confidence rests on reported in-process boundary proof, with one ineffective alias case and skipped broad CI.
Proof confidence 🦐 gold shrimp (3/6) This MEMBER-authored PR is outside the ordinary contributor proof gate; supplied evidence reports handler-level picker tests and real loopback ClawRouter execution, without claiming shipped Gateway coverage.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Feature · Worth it: Yes · Fix scope: Partial
User problem: Decision models available in a prepared catalog cannot appear in the picker unless also advertised by an installed manifest.
Reason: The maintainer-authored proposal provides a focused picker slice of the linked catalog program while preserving existing selections and execution ownership.

Merge readiness

✅ Ready for maintainer review

Keep open: this maintainer-authored draft adds a useful picker capability absent from main, with no concrete correctness or security finding.

Priority: P3
Reviewed head: f4b50bf2bae8ba5e8a3c7a2f2cd1a797a35c324f

Before merge

None.

Findings

None.

Tests

  • Low-value test src/gateway/server-methods/models-list-result.plugin-runtime.test.ts: The added owned-provider-alias case has the same model and capabilities in the manifest fallback, so it passes even if prepared alias matching fails; remove it or use an aliased prepared-only model.
  • Missing end-to-end proof: No supplied shipped Gateway scenario demonstrates a prepared-only Decision row reaching the picker, and no base-to-head regression run is shown for that new capability.
Agent review details

How this fits together

The Gateway projects captured model catalog entries and eligible plugin manifests into models.list.decisionModels, which supplies the Control UI Decision picker.

flowchart LR
  A[Prepared catalog] --> C[Decision selector projection]
  B[Eligible plugin manifests] --> C
  C --> D[models.list response]
  D --> E[Decision picker]
  E --> F[Existing Decision runtime]
Loading

Technical review

Best possible solution:

Keep the existing selector owner, consume its captured prepared rows, and retain installed advertisements without changing execution authority.

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

This is a feature extension; source confirms main's manifest-only selector cannot expose prepared-only Decision rows.

Is this the best way to solve the issue?

The change uses the existing projection, alias normalizer, and plugin eligibility owner, with no unnecessary production layer or state.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 114adcd6e5b1.

Provenance checked

  • Canonical manifest Decision selector projection keeps the original intent (1217586: Expose native typed Decisions through canonical manifest capabilities while keeping static advertisements separate from credential grants.)
  • Prepared model-list ownership keeps the original intent (faaae32: Keep preparation facts in the existing lexical owner and retain the prepared plugin-registry boundary.)
  • Existing selector and HTTP test fixtures keeps the original intent (test: remove low-value tests (batch d562) #183813: Consolidate overlapping fixtures while preserving registered-host and transport behavior.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Vincent Koc: Raw commit 7d95d86 adds src/decisions/clawrouter.integration.test.ts:15 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 7d95d86d7cd3; files: src/decisions/clawrouter.integration.test.ts)
  • Peter Steinberger: Raw commit faaae32 adds src/gateway/server-methods/models-list-result.ts:172 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: faaae3240c30; files: src/gateway/server-methods/models-list-result.ts)

PR surface

Source +25, Tests +52. Total +77 across 4 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 2 35 10 +25
Tests 2 55 3 +52
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 4 90 13 +77

Root-cause cluster

Relationship: partial_overlap
Canonical: #189081
Summary: The umbrella issue coordinates Decision ownership and catalog work; this PR supplies the picker slice atop the separate catalog implementation.

Members:

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

Labels

Label changes:

  • add P3: This is an optional catalog-discovery extension without an established urgent runtime defect.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P3: This is an optional catalog-discovery extension without an established urgent runtime defect.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rank-up moves

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

  • Remove the ineffective alias case or make it exercise an aliased prepared-only model.
  • Demonstrate a prepared-only Decision model through the shipped Gateway picker.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed October 31, 2026, 3:48 PM ET / 19:48 UTC.

Base automatically changed from feat/decision-catalog-v3-20261101 to main November 1, 2026 02:22
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation scripts Repository scripts agents Agent runtime and tooling size: L and removed size: S labels Nov 1, 2026
@vincentkoc
vincentkoc force-pushed the feat/decision-catalog-picker-20261101 branch from f4b50bf to d24c0e3 Compare November 1, 2026 02:25
@openclaw-barnacle openclaw-barnacle Bot added size: S and removed docs Improvements or additions to documentation scripts Repository scripts agents Agent runtime and tooling size: L labels Nov 1, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review November 1, 2026 02:31
@vincentkoc
vincentkoc merged commit e7fdb9b into main Nov 1, 2026
209 of 213 checks passed
@vincentkoc
vincentkoc deleted the feat/decision-catalog-picker-20261101 branch November 1, 2026 03:03
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via explicitly authorized admin squash with attributed pre-existing CI failures.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 1, 2026
…law#189688)

* feat(models): expose prepared Decision capabilities in the picker

* fix(models): preserve installed Decision selector advertisements

* test(models): require prepared-only alias discovery
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gateway Gateway runtime P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. 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