Repository navigation
fix(clawrouter): allow granted Luna utility chat routes - #183779
Conversation
Preserve route-bound discovery inference through registry and prepared catalog assembly without promoting static typed-only rows. Co-authored-by: hannesrudolph <[email protected]>
Worked on by: - @hannesrudolph Co-authored-by: hannesrudolph <[email protected]> OpenClaw-Publication: 03b3f696-9679-4915-a084-561cedf70f31
|
🦞👀 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. What this changesThis PR preserves discovered chat capabilities through ClawRouter model preparation while retaining route-specific restrictions. Example: Use clawrouter/openai/gpt-6-luna as the utility model with a credential granting its Responses route.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Blocked before merge - 2 items remain Keep open: this PR addresses a documented capability-propagation bug, but its new import breaks extracted PR-wrapper provisioning. Priority: P2 Before merge
Findings
Tests
Agent review detailsHow this fits togetherClawRouter discovery supplies credential-scoped model metadata to the registry and prepared catalogs, which utility completion uses before resolving authentication and dispatching inference. flowchart LR
A[Credential scoped catalog] --> B[ClawRouter discovery]
B --> C[Model registry]
D[Static declarations] --> E[Prepared catalog]
C --> E
E --> F[Utility completion preparation]
F --> G[Authenticated Responses transport]
Technical reviewBest possible solution: Retain the route-bound capability repair and complete its existing PR-wrapper dependency inventory. Do we have a high-confidence way to reproduce the issue? The linked report provides matching runtime rejection and successful Responses controls, while source inspection establishes the discovery-to-chat-guard failure; no target code was executed during this review. Is this the best way to solve the issue? The repair uses the existing inference contract and route-matching owners, preserves typed-only rejection, and avoids globally enabling the static Luna declaration. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against a4cfee8af58a. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceAcceptance criteria:
What I checked:
PR surfaceSource +75, Tests +223. Total +298 across 9 files. Added test files: 1. View PR surface stats
Review metrics
LabelsLabel 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 Reviewed October 25, 2026, 3:13 PM ET / 19:13 UTC. |
Include the two newly reachable catalog modules in the trusted wrapper inventory so extracted native PR provisioning can resolve the configured-row projection. Co-authored-by: hannesrudolph <[email protected]>
Worked on by: - @hannesrudolph Co-authored-by: hannesrudolph <[email protected]> OpenClaw-Publication: 2f08df11-ccdc-49dc-a219-145cc2bbda9a
Load the latest-stable generated catalog shape without inference metadata, preserve retained settings through credential-scoped refresh, and exercise the actual Responses completion transport with synthetic HTTP/SSE fixtures. Co-authored-by: hannesrudolph <[email protected]>
Worked on by: - @hannesrudolph Co-authored-by: hannesrudolph <[email protected]> OpenClaw-Publication: 085b3e03-fec9-4455-933a-5e81acd845f7
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Merged via squash.
|
) * fix(clawrouter): allow granted Luna utility chat routes Preserve route-bound discovery inference through registry and prepared catalog assembly without promoting static typed-only rows. Co-authored-by: hannesrudolph <[email protected]> * fix(clawrouter): allow granted Luna utility chat routes Worked on by: - @hannesrudolph Co-authored-by: hannesrudolph <[email protected]> OpenClaw-Publication: 03b3f696-9679-4915-a084-561cedf70f31 * fix(build): preserve PR wrapper catalog projection imports Include the two newly reachable catalog modules in the trusted wrapper inventory so extracted native PR provisioning can resolve the configured-row projection. Co-authored-by: hannesrudolph <[email protected]> * Publish openclaw/fix-clawrouter-luna-chat-183757 Worked on by: - @hannesrudolph Co-authored-by: hannesrudolph <[email protected]> OpenClaw-Publication: 2f08df11-ccdc-49dc-a219-145cc2bbda9a * test(clawrouter): preserve retained catalog utility execution Load the latest-stable generated catalog shape without inference metadata, preserve retained settings through credential-scoped refresh, and exercise the actual Responses completion transport with synthetic HTTP/SSE fixtures. Co-authored-by: hannesrudolph <[email protected]> * Publish openclaw/fix-clawrouter-luna-chat-183757 Worked on by: - @hannesrudolph Co-authored-by: hannesrudolph <[email protected]> OpenClaw-Publication: 085b3e03-fec9-4455-933a-5e81acd845f7 --------- Co-authored-by: hannesrudolph <[email protected]>
Fixes #183757
What Problem This Solves
Fixes session-observer and other utility preparation rejecting credential-granted ClawRouter Luna Responses routes as chat-unsupported.
User Impact
A compatible conversational route discovered for the selected ClawRouter credential can be used as the utility model. Decision-only or incompatible discovery still cannot enable chat, and changing the endpoint or API does not transfer the discovered capabilities. The static Luna declaration remains chat-disabled; native Decisions keeps its existing per-call grant checks.
This does not deploy or reconfigure a Gateway. Existing cached discovery rows need the normal catalog refresh to acquire the explicit capability metadata.
Why This Change Was Made
ClawRouter discovered conversational transports without an explicit inference contract. Registry/configured projections discarded that contract, while captured and full catalog assembly could retain or overlay the static typed-only prohibition. The completion resolver then rejected the model before sending inference.
Emit the discovered route's explicit chat contract, preserve it through registry/configured preparation, and treat static inference as a default only when no independently discovered contract exists for the exact physical route. Luna's existing typed Decisions descriptor has one shared owner rather than a copied definition. No new user configuration, cache, or authorization mechanism is introduced.
Reported by @hannesrudolph in #183757.
Work sessions
Evidence
65e5bd922b8a6c9180a7342678bc709af4451e39: real bundled ClawRouter discovery returned Luna, then utility completion preparation failed withModel clawrouter/openai/gpt-6-luna does not support chat inference.157d8c2bc3ea2fa183afdc11088e69690bf8e64e): rows without inference metadata remain readable and do not invent a chat grant. Credential-scoped discovery refresh then supplies the explicit grant; the real utility Responses transport completesOKthrough an owned HTTP/SSE fixture with the expected endpoint, model and credential. Persisted utility settings remain byte-identical.pnpm buildcompleted successfully; targeted core, ClawRouter, and agent-test typechecks, touched-file lint/format, andgit diff --checkpassed. The build also emitted a Control UI startup gzip budget warning (270698 B versus 270679 B); no UI source is changed, and required PR CI remains authoritative.Simplification: reuse the existing inference contract and route matching; share the existing Decisions declaration. Configured-row projection moved into the existing catalog-entry owner because the selection module cannot grow under the repository line-cap ratchet; no parallel implementation or compatibility wrapper remains. One integration regression covers startup and refresh boundaries. Production code/descriptor delta: +124/-47 lines across nine files, including the required projection extraction and its wrapper inventory; test delta: +360 lines.
Worked on by