Repository navigation
fix(arcee): make OpenRouter onboarding runnable - #113097
arisgysel-design wants to merge 5 commits into
Conversation
926e154 to
beac141
Compare
|
Codex review: needs real behavior proof before merge. What this changesThis PR moves OpenRouter-backed Arcee setup and existing model configuration into the OpenRouter provider namespace. Example: Run onboarding with --auth-choice arceeai-openrouter.
Review scores
ProductKind: Bug fix · Worth it: Needs a maintainer decision · Fix scope: Complete Merge readiness⛔ Blocked before merge - 6 items remain Keep open for the assigned owner's judgment: the original credential-routing bug has a merged fix, but this PR retains substantial migration work with two unresolved correctness defects. Priority: P2 Decision needed
Before merge
Findings
Tests
Agent review detailsHow this fits togetherThe Arcee plugin translates onboarding choices into provider configuration and credentials; its new Doctor contract rewrites saved configuration before model selection and agent execution. flowchart LR
A[Onboarding choice] --> B[Arcee setup]
C[Existing configuration] --> D[Plugin Doctor repair]
B --> E[Provider configuration and credentials]
D --> E
E --> F[Model selection]
F --> G[OpenRouter request]
Technical reviewBest possible solution: Prefer the shipped endpoint-aware Arcee routing unless the area owner identifies a remaining problem that requires moving saved configurations into OpenRouter ownership. Do we have a high-confidence way to reproduce the issue? The PR's migration failures are source-reproducible using an OpenRouter-backed Arcee provider with arcee/* policy or an accepted wire-form reference; no target code was executed, and the original credential mismatch already has a merged repair. Is this the best way to solve the issue? The transport-preservation change is focused, but a destructive provider migration needs a distinct justification now that current main supports the existing Arcee references. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 25933024a1e1. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
PR surfaceSource +235, Tests +302, Docs +4. Total +541 across 6 files. Added test files: 1. 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: 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 (13 earlier review cycles; latest 8 shown)
Reviewed October 16, 2026, 9:13 PM ET / October 17, 2026, 01:13 UTC (Revision 14). |
beac141 to
529860a
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
…nclaw#142898) Arcee setup could save an OpenRouter account that the first reply did not use. This repair keeps model identity, the selected endpoint and the account consistent through setup, catalog selection, session creation and execution. Related: openclaw#112747, openclaw#113097 ## Changes - Registered setup uses the shared connection-config helper to save connection settings and retain authored rows. Replace mode generates detached model rows through lazy catalog builders, so editing one setup result cannot change later defaults. Public preset helpers retain eager catalog behavior. - Credential readiness, session pins and execution use the selected model endpoint. Endpoint-conditioned auth aliases extend the existing manifest value shape; string aliases remain supported. Stored credential realms, explicit bindings, linked accounts and account order stay authoritative. - Provider-owned identity joins wire and logical model names without duplicate picker rows or false fallback notices. Exact authored rows retain their endpoint, headers, limits, aliases and precedence. Genuine provider/model changes remain distinct. - Identity lookup uses selected, trusted installed-plugin metadata when the provider is outside the core package. Empty/captured metadata and loader failures retain their existing meanings. - Catalog lookup binds the provider policy once per synchronous search. It preserves first-match order, canonical aliases, unique case-insensitive fallback and providerless ambiguity, while removing repeated registry work for each scanned row. This lookup change adds no cross-call cache or new data. ## Validation - Main reproduced the OpenRouter credential failure. Retained candidate and direct/both-account/mixed-endpoint controls reach the real Gateway path through isolated synthetic transport. - Authenticated account-link and session-creation proof distinguishes stored and received credentials. The candidate retains the linked work account; the baseline sends the other account. Later primary selection and incompatible-endpoint controls keep their original results. - Authored-row and competing-row observations preserve endpoint, header, credential, run budget and exact-row precedence after selecting a shortened catalog ID. - Six compiled helper controls, two real interactive setup routes, profile/precedence/cancellation observations and the same independent source-blind review pass all seven original and four supplemental clauses at their recorded scopes. - The canonical core tarball passed its complete integrity checker. Arcee was separately installed through the normal npm-prefixed CLI against an isolated registry serving the actual built package. Public inspection reports genuine official trust and the expected registry integrity; all nine installed files match the archive. Normal package lifecycle and consent ran without manual marker or trust changes. - That installed plugin then handled normal setup, authenticated `models.list`, `sessions.create` and the first visible reply. The catalog exposes the logical Arcee ID; transport uses the stored OpenRouter account and its wire ID. The completed receipt correctly reports no model switch. Config remains unchanged after the turn, and all consumers stop. - The resolved merge with pinned target `894dc67cbfd95b5218bc1afab8eddaa4f0fd414c` preserves separate public and runtime catalog rows and inherited manifest fields. The affected catalog-route file passes 18 cases; Arcee visibility passes four cases, including the new unmanaged-row identity check. Normal formatting, commit hooks and SSH signing pass on `0f25a8723c45016b1a93591f3525021783a85789`. - The registered direct and OpenRouter setup routes both reproduced shared generated-cost mutation. The shared-helper correction passes all 29 cases in the affected Arcee index file, including both new clone regressions, with zero lint warnings/errors, normal formatting, hooks and SSH signing. This result belongs to `8f564706c77d5c6da37aedd7f7eb0300058abb13`; earlier package and public observations retain their original identities. - CI on the merge found one stale import and a command-file size limit. The follow-up removes the unused import and reuses the existing auth-lookup options object. Targeted lint reports zero warnings and errors for both files; normal formatting, hooks and signed commits pass. The existing behavior reports retain their tested identities. - The current lookup correction reduces 400 real source lookups from 80,600 policy reads / 2.57 seconds to 400 reads / 0.043 seconds. Five existing identity controls, formatting, lint, import-cycle and whitespace checks pass. The unchanged 400-model, 11-agent required CI test remains the final performance check on this new revision; the earlier compiled timeout is retained. Package proof uses build `5ef331fa92c3c9f71ed260203cb6a2459225797e` from raw input `4d560b9e47640c7e5ce1cfc2967baa390cb1e854`. The subsequent test-only correction, lookup optimization and shared setup-helper cutover are not restamped into that package. Earlier compiled `621dcb063135e31ea0c41878bcd57792ee2f8771` and source proofs keep their original identities. All traffic is synthetic; browser interaction and real vendor authentication are not claimed. Earlier failed layouts, memory stops, wrapper errors and incomplete attempts remain available with their resolving evidence. Fresh exact-head review and required CI precede merge. Replaces openclaw#141541 because its PR record does not reflect the pushed head. This replacement preserves the signed contribution history and original author, @obviyus, and resolves the actual target-branch conflicts. The original PR stays open until verified replacement landing; its reviews and failure history remain part of the record. Co-authored-by: Ayaan Zaidi <[email protected]>
|
This assigned pull request has been automatically marked as stale after being open for 27 days. |
79fc6fc to
54ab635
Compare
|
This assigned pull request has been automatically marked as stale after being open for 27 days. |
|
This assigned pull request has been automatically marked as stale after being open for 27 days. |
|
Thanks for the PR. We're closing older pull requests that have gone stale against current This PR still needs real onboarding proof, CI is failing, and there have been no commits since September 17. If the Arcee-via-OpenRouter onboarding still fails on current main, please open a fresh PR rebased on main with a live onboarding run. |
Closes #112747
AI-assisted: implemented and verified with Codex.
What Problem This Solves
Arcee setup through OpenRouter should keep provider configuration, model references, and the stored OpenRouter credential under the same provider owner. The original July onboarding preset wrote an
arcee/...route while storing the credential asopenrouter:default, causing the first agent request to fail. Current main also has legacy auth-alias support; this PR makes new OpenRouter setup canonical and repairs previously persisted configuration.The previous PR head had two compatibility defects: Doctor removed the old provider without migrating every agent model scope, and re-onboarding overwrote an existing shared OpenRouter endpoint/API mode.
Why This Change Was Made
openrouter/arcee-ai/trinity-large-thinkingand owns its provider configuration undermodels.providers.openrouter.baseUrlandapi, seeding defaults only when absent.User Impact
Fresh OpenRouter setup has matching credential and model ownership. Existing installations retain their proxy transport and authored model settings. Older OpenRouter-backed Arcee configuration can be repaired with
openclaw doctor --fix; direct Arcee setup is unaffected.Evidence
Current repair and upstream integration — 2026-09-17
Head:
54ab6358560c4f59a59b06bc820d335a5b08623d. Rebased onto9ace0a571f4151cd1f47eb8aaa7b8cc987c45ceeto resolve the actual merge conflicts; no unrelated main changes were reverted.node scripts/run-vitest.mjs run extensions/arcee/doctor-contract-api.test.ts extensions/arcee/index.test.ts— 39 passed.node scripts/run-vitest.mjs run src/plugins/doctor-contract-declarations.test.ts -t 'matches every resolvable artifact'— 1 passed, 1 unrelated state-migration case deselected.oxfmt,oxlint, andgit diff --checkpassed.Historical live inference proof — original PR head
Performed on 2026-07-31 from PR head
f8ac6b1ce06ded770ee5325191fbfca274600babwith a newly issued real OpenRouter credential. Private credential material was removed and never printed.Security
Only synthetic regression fixtures are added. No API key, OAuth code, verifier, live configuration, or auth-profile contents are included. No production configuration, Gateway restart, or deployment was performed.