Repository navigation
feat(models): use prepared Decision capabilities in the picker - #189688
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
5bf58d0 to
f4b50bf
Compare
|
Codex review: needs maintainer review before merge. What this changesThis 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.
Review scores
ProductKind: Feature · Worth it: Yes · Fix scope: Partial 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 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe 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]
Technical reviewBest 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
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +25, Tests +52. Total +77 across 4 files. Added test files: 0. View PR surface stats
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. LabelsLabel changes:
Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale6/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. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 31, 2026, 3:48 PM ET / 19:48 UTC. |
f4b50bf to
d24c0e3
Compare
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
…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
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
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.64e2da31a4fa585f5ddcb0c5be60f1aaaa70ed1c..f4b50bf2bae8ba5e8a3c7a2f2cd1a797a35c324fcompleted with no correctness or security findings. The initial per-model endpoint finding is resolved and covered by red/green behavior proof.pnpm buildpassed on composed headf4b50bf2bae8ba5e8a3c7a2f2cd1a797a35c324fin 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.1cb4698d4efb3b3afbdf324b4ef64b9c2f136b7c..d220944e15a485c3b31843df862f981a3fea4165completed with no correctness/security findings. The alias case now requires an aliased prepared-only model, so manifest fallback cannot satisfy it.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.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
d24c0e3aand merged main baseline177fe32d(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 merge36c93c39bc76e0409b578949925675b8607a5e61with 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.