Repository navigation
feat: describe decision capabilities in model catalogs - #156554
Conversation
Keep task, protocol, modalities, reasoning, grounding, probability semantics, abstention and route billing distinct without changing chat Model types. Co-authored-by: steipete <[email protected]> Co-authored-by: vincentkoc <[email protected]>
|
🦞👀 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. |
|
Codex review: blocked before merge. Reviewed October 8, 2026, 8:46 AM ET / 12:46 UTC (Revision 4). ClawSweeper reviewWhat this changesAdds optional route-specific declarations of conversational and typed-decision capabilities to model catalogs and prepared catalog metadata. Example: A provider declares fixture/typed with chat: false and decision token rates of 0.042 input and 0 output.
Review scores
ProductKind: Feature · Worth it: Yes Merge readiness⛔ Blocked before merge - 4 items remain Keep open: both prior catalog-propagation findings remain unresolved on the unchanged head. This PR is not ready to merge. Priority: P2 Before merge
Findings
Tests
Agent review detailsHow this fits togetherModel catalogs describe the models supplied by installed provider plugins. Manifest declarations, hosted updates, and configured routes become prepared metadata used by model selection and browsing. flowchart TD
A[Provider manifest] --> C[Catalog normalization]
B[Hosted catalog update] --> D[Manifest catalog planner]
C --> D
D --> E[Alias transport overrides]
E --> F[Prepared catalog metadata]
G[Configured route overlay] --> F
F --> H[Model selection and browsing]
Technical reviewBest possible solution: Extend the existing catalog owner consistently across transport rewriting and hosted replacement, keeping capability facts separate from execution authority. Do we have a high-confidence way to reproduce the issue? Yes, by source tracing: an endpoint-changing alias retains inference, and a same-ID hosted replacement loses it. No failing runtime execution was performed in this read-only review. Is this the best way to solve the issue? Not yet: extending shared catalog metadata is appropriate, but the planner paths must honor the same route-binding and retention rules as the new overlay. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 89c01cd979ef. Merge-risk optionsMaintainer options:
Provenance checked
TestingProof path: unit tests only. Added test files: 2. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +163, Tests +240, Docs +43. Total +446 across 9 files. View PR surface stats
Review metrics
LabelsLabel changes: No label changes. Label justifications:
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 HistoryReview history (3 earlier review cycles)
|
Merge current main and reconcile the original Decision capability metadata with the canonical catalog. Preserve facts for matching hosted routes, clear stale facts on route changes, and retain chat:false. Validated 50 focused tests, planner replay, types, lint, formatting, and full build.
|
ClawSweeper reviews are opt-in for maintainers. If a review is required, finish the work and validation first, then comment |
|
Merged via squash.
|
* feat: describe decision capabilities in model catalogs Keep task, protocol, modalities, reasoning, grounding, probability semantics, abstention and route billing distinct without changing chat Model types. Co-authored-by: steipete <[email protected]> Co-authored-by: vincentkoc <[email protected]> * fix(models): include inference metadata in extracted tooling --------- Co-authored-by: steipete <[email protected]> Co-authored-by: vincentkoc <[email protected]> Co-authored-by: Vincent Koc <[email protected]>
What Problem This Solves
Model catalogs cannot consistently describe Decision-only models or preserve their capabilities when manifest, configured, and discovered model entries are combined.
User Impact
Plugin authors can declare typed Decision capabilities, limits and billing facts. Catalog consumers retain those declarations on the matching route. An endpoint change removes stale hosted facts while preserving
chat: false, so a Decision-only model does not become a chat choice. This metadata layer changes no model defaults, authentication, or execution behavior.Why This Change Was Made
The canonical catalog owns validation, normalization and projection. Unknown prices and limits remain absent; explicit zero prices remain valid. Matching hosted declarations survive merges, while custom-route overrides cannot inherit another route’s facts. This resolves both route-inheritance findings on the original head.
The original contributor history is preserved. Design and requirements contributed by Vincent Koc and Peter Steinberger. Runtime, policy, auth and provider adapters remain separately reviewable stack layers.
Evidence
Candidate:
00d93bb011fd8ac55d72623d1bd9e5bbcdb7d301, integrated with main at0dd9e0b7f7548ad751bd8e0dfdaed4d92e736ed7.pnpm buildpassed, including packages, plugin SDK declarations/exports, CLI, plugins and UI (252 seconds).Exact-head CI passed: https://github.com/openclaw/openclaw/actions/runs/38877909429 (zero pending checks).