Skip to content

feat(configure): shared model defaults for fleets - #180233

Closed
sasan1200 wants to merge 10 commits into
openclaw:mainfrom
sasan1200:feat/fleet-model-scope
Closed

sasan1200 wants to merge 10 commits into
openclaw:mainfrom
sasan1200:feat/fleet-model-scope

Conversation

@sasan1200

@sasan1200 sasan1200 commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Closes #180126
Related: #123871, #131153

What Problem This Solves

  • On explicit multi-agent fleets, openclaw configure --section model always writes the model setup and the provider credential to one agent, so a fleet-wide model and provider setup takes one configure run per agent.

User Impact

  • Explicit fleets with two or more agents get a scope prompt: One agent (default, unchanged behavior) or Shared defaults.
  • Shared defaults writes primary, catalog and allowlist to agents.defaults and stores the provider credential in the shared auth store, so every agent that inherits defaults resolves both the model and the credential.
  • One agent, single-agent installs and agents with their own model settings keep the current write path.

Why This Change Was Made

  • configure.model-scope.ts asks for the scope; One agent keeps the agent-owned path from refactor(cli): make multi-agent operations agent-owned #123871.
  • promptAuthConfig takes a model write target: shared mode writes agents.defaults, starts the model pickers from agents.defaults and sends the credential write to the shared main auth store.
  • A fleet without a System Agent that picks Shared defaults gets configure's existing agent question for the credential and catalog owner.
  • The custom-provider API-key prompt receives the setup target's workspace, including the retry after a failed endpoint probe; the replaced default-agent lookup throws on explicit multi-agent fleets.
  • In shared mode both custom-alias validators (the interactive prompt and applyCustomApiConfig) check agents.defaults, so an alias one agent uses privately does not block a shared alias.

Evidence

  • Real CLI: openclaw configure --section model driven in a terminal session.
  • Real loopback gateway on the same state: agents.list, models.list per agent, and one agent turn per agent.
  • Turns go to a loopback provider endpoint that records each request's API key (shown masked) and answers 401, so a turn that reaches it ends with exit 1.
  • Fleet alpha/beta, System Agent alpha, Anthropic API key test value.
  • Published builds: [email protected] (1b58cb9), [email protected] (fe06181).
  • main 80ae18c (this branch's merge base).
  • This PR 07464c0 (head); every row and transcript below ran at these builds.
  • Build comparisons cover agents, models, availability, turns and provider requests.
  • models.list pendingProviders differs between runs both ways: One agent head ["anthropic"], main []; single agent head [], main ["anthropic"].
Case Build Result
Before: configure with the key main 80ae18c alpha gets anthropic/claude-opus-5-5 and the key; beta stays on openai/gpt-6-astra, available=false; beta's turn sends no provider request
Shared defaults with the key 07464c0 beta on anthropic/claude-opus-5-5, available=true; beta's turn sends the key
Separate state root, same HOME and config 07464c0 beta available=false; its turn sends no provider request
Shared key revoked with models auth logout anthropic:default --agent alpha 07464c0 beta available=false; its turn sends no provider request
Upgrade from [email protected]: the release configures alpha with the key while beta keeps its own anthropic/claude-opus-5-5; a copy of that state per build runs openclaw doctor --fix --non-interactive --yes, then the gateway 2026.10.5, main 80ae18c, 07464c0 doctor exit 0 on both builds; agents.list, models.list and both turns identical on main and this head; against the release's own gateway only alpha's pendingProviders differs; beta keeps its model; alpha's turn sends the key
Upgrade from [email protected], same steps 2026.10.6, main 80ae18c, 07464c0 doctor exit 0 on both builds; agents.list, models.list and both turns identical on main, this head and the release's own gateway (STABLE_VS_HEAD_IDENTICAL); beta keeps its model; alpha's turn sends the key
Shared defaults with the key on the upgraded 2026.10.5 and 2026.10.6 states 07464c0 agents.defaults gets the primary and allowlist; alpha keeps its primary, fallbacks and allowlist; beta keeps anthropic/claude-opus-5-5, now available=true; beta's turn sends the key
State written by main, read by this PR's gateway main 80ae18c, 07464c0 agents.list, models.list and both turns identical under both builds
One agent (default) with the key 07464c0 agents, models, availability, turns and provider requests identical to main 80ae18c; pendingProviders differs
Single agent, explicit ownership / no agents.ownership 07464c0 no scope prompt; agents, models, availability, turns and provider requests identical to main 80ae18c; pendingProviders differs in the explicit-ownership case
No System Agent, Shared defaults 07464c0 configure asks Which agent do you want to configure?; both agents available=true
Existing shared primary, Shared defaults with a key 07464c0 primary stays anthropic/claude-sonnet-4-6; both agents available=true
Shared auth store on legacy-main, authInheritance.agentId: "alpha" 07464c0 beta's turn sends the key; the same state served again by main's and this head's gateway reports beta available=true; after openclaw doctor --fix (shared auth profiles relocated into shared SQLite state) beta stays available=true and its turn sends the key
Two agents without agents.ownership 07464c0 configure stops at the existing config validity check before any section
HEAD 80ae18c16c831aa5b011cbfdf3a6df2dc265849f
OpenClaw 2026.10.5 (80ae18c)
prompt: Model/auth provider -> Anthropic
prompt: Anthropic auth method -> Anthropic API key
prompt: Allowlist models (comma-separated provider/model; blank to keep current) -> anthropic/claude-sonnet-4-6, openai/gpt-5.4, anthropic/claude-opus-5-5
== configure exit 0
agents.list {} -> exit 0, ownership=explicit defaultId=alpha
  agent alpha: {"model":{"primary":"anthropic/claude-opus-5-5","fallbacks":["anthropic/claude-sonnet-4-6","openai/gpt-5.4"]}}
  agent beta: {"model":{"primary":"openai/gpt-6-astra"}}
models.list {"agentId":"beta"} -> exit 0, models=1 pendingProviders=[]
  anthropic/claude-sonnet-4-6 available=false tags=["configured"]
== turn agent beta
== turn exit 1
"message": "No route-compatible authentication source is configured for openai.
== provider requests from this turn
  • After, this PR, Shared defaults:
HEAD 07464c0ec811ac673cb77e9ee29e4491b33125f7
OpenClaw 2026.10.5 (07464c0)
prompt: Where should this model setup apply? -> Shared defaults
prompt: Model/auth provider -> Anthropic
prompt: Anthropic auth method -> Anthropic API key
prompt: Allowlist models (comma-separated provider/model; blank to keep current) -> anthropic/claude-sonnet-4-6, anthropic/claude-opus-5-5
== configure exit 0
agents.list {} -> exit 0, ownership=explicit defaultId=alpha
  agent alpha: {"model":{"primary":"anthropic/claude-opus-5-5","fallbacks":["anthropic/claude-sonnet-4-6"]}}
  agent beta: {"model":{"primary":"anthropic/claude-opus-5-5","fallbacks":["anthropic/claude-sonnet-4-6"]}}
models.list {"agentId":"beta"} -> exit 0, models=2 pendingProviders=[]
  anthropic/claude-opus-5-5 available=true tags=["default","configured"]
  anthropic/claude-sonnet-4-6 available=true tags=["fallback#1","configured"]
== config after the gateway run
{"defaultsModel":{"primary":"anthropic/claude-opus-5-5","fallbacks":["anthropic/claude-sonnet-4-6"]},"defaultsAllow":["anthropic/claude-sonnet-4-6","anthropic/claude-opus-5-5"],"entries":{"alpha":{},"beta":{}}}
== turn agent beta
== turn exit 1
"message": "All models failed (2): anthropic/claude-opus-5-5: 401: {\
== provider requests from this turn
{"method": "POST", "path": "/v1/messages", "apiKey": "sk-ant-t...0000"}
  • Credential boundaries (state A: Shared defaults with the key; state B: same HOME and config, separate state root):
HEAD 07464c0ec811ac673cb77e9ee29e4491b33125f7
OpenClaw 2026.10.5 (07464c0)
== configure exit 0
== state A: beta
models.list {"agentId":"beta"} -> exit 0, models=2 pendingProviders=["anthropic"]
  anthropic/claude-opus-5-5 available=true tags=["default","configured"]
  anthropic/claude-sonnet-4-6 available=true tags=["fallback#1","configured"]
== turn agent beta
== turn exit 1
"message": "All models failed (2): anthropic/claude-opus-5-5: 401: {\
== provider requests from this turn
{"method": "POST", "path": "/v1/messages", "apiKey": "sk-ant-t...0000"}
== state B (same HOME and config, separate state root): beta
models.list {"agentId":"beta"} -> exit 0, models=2 pendingProviders=[]
  anthropic/claude-opus-5-5 available=false tags=["default","configured"]
  anthropic/claude-sonnet-4-6 available=false tags=["fallback#1","configured"]
== turn agent beta
== turn exit 1
"message": "All models failed (2): anthropic/claude-opus-5-5: Couldn't sign in to anthropic. Your saved login looks expired or no longer works. Run `openclaw models auth login --provider anthropic` or
== provider requests from this turn
######## 2. revocation
== openclaw models auth logout anthropic:default --agent alpha --yes (state A)
Removed auth profile: anthropic:default (anthropic/api_key)
No auth profiles remain for anthropic. Run openclaw models auth login --provider anthropic to sign in again.
== logout exit 0
== state A after logout: beta
models.list {"agentId":"beta"} -> exit 0, models=2 pendingProviders=[]
  anthropic/claude-opus-5-5 available=false tags=["default","configured"]
  anthropic/claude-sonnet-4-6 available=false tags=["fallback#1","configured"]
== turn agent beta
== turn exit 1
"message": "All models failed (2): anthropic/claude-opus-5-5: Couldn't sign in to anthropic. Your saved login looks expired or no longer works. Run `openclaw models auth login --provider anthropic` or
== provider requests from this turn
  • Upgrade from the published [email protected]; the 2026.10.6 run (OpenClaw 2026.10.6 (fe06181)) has the same steps and exits, prints STABLE_VS_HEAD_IDENTICAL, and otherwise differs in pendingProviders values and the loopback port:
######## 1. [email protected] configures the fleet
PACKAGE [email protected]
OpenClaw 2026.10.5 (1b58cb9)
◇  Model/auth provider
│  Anthropic
◇  Anthropic auth method
│  Anthropic API key
◇  Allowlist models (comma-separated provider/model; blank to keep current)
│  anthropic/claude-sonnet-4-6, openai/gpt-5.4, anthropic/claude-opus-5-5
== configure exit 0
== state written by [email protected]
{"defaultsAllow":["anthropic/claude-sonnet-4-6"],"entries":{"alpha":{"model":{"primary":"anthropic/claude-opus-5-5","fallbacks":["anthropic/claude-sonnet-4-6","openai/gpt-5.4"]},"allow":["anthropic/claude-sonnet-4-6","openai/gpt-5.4","anthropic/claude-opus-5-5"]},"beta":{"model":{"primary":"anthropic/claude-opus-5-5"}}}}
######## 2. [email protected] gateway on its state
OpenClaw 2026.10.5 (1b58cb9)
== gateway harness exit 0
== turn agent alpha
== turn exit 1
"message": "All models failed (3): anthropic/claude-opus-5-5: 401: {\
== provider requests from this turn
{"method": "POST", "path": "/v1/messages", "apiKey": "sk-ant-t...0000"}
{"method": "POST", "path": "/v1/messages", "apiKey": "sk-ant-t...0000"}
######## 3. main upgrades a copy of that state
HEAD 80ae18c16c831aa5b011cbfdf3a6df2dc265849f
OpenClaw 2026.10.5 (80ae18c)
== openclaw doctor --fix --non-interactive --yes
== doctor exit 0
== gateway harness exit 0
######## 3. head upgrades a copy of that state
HEAD 07464c0ec811ac673cb77e9ee29e4491b33125f7
OpenClaw 2026.10.5 (07464c0)
== openclaw doctor --fix --non-interactive --yes
== doctor exit 0
== gateway harness exit 0
agents.list {} -> exit 0, ownership=explicit defaultId=alpha
  agent alpha: {"model":{"primary":"anthropic/claude-opus-5-5","fallbacks":["anthropic/claude-sonnet-4-6","openai/gpt-5.4"]}}
  agent beta: {"model":{"primary":"anthropic/claude-opus-5-5"}}
models.list {"agentId":"alpha"} -> exit 0, models=3 pendingProviders=["anthropic"]
  anthropic/claude-opus-5-5 available=true tags=["default","configured"]
  anthropic/claude-sonnet-4-6 available=true tags=["fallback#1","configured"]
  openai/gpt-5.4 available=false tags=["fallback#2","configured"]
models.list {"agentId":"beta"} -> exit 0, models=1 pendingProviders=[]
  anthropic/claude-sonnet-4-6 available=false tags=["configured"]
== turn agent beta
== turn exit 1
"message": "No API key found for provider \
== provider requests from this turn
== turn agent alpha
== turn exit 1
"message": "All models failed (3): anthropic/claude-opus-5-5: 401: {\
== provider requests from this turn
{"method": "POST", "path": "/v1/messages", "apiKey": "sk-ant-t...0000"}
{"method": "POST", "path": "/v1/messages", "apiKey": "sk-ant-t...0000"}
MAIN_VS_HEAD_IDENTICAL
STABLE_VS_HEAD_DIFFERENT
5c5
< models.list {"agentId":"alpha"} -> exit 0, models=3 pendingProviders=[]
---
> models.list {"agentId":"alpha"} -> exit 0, models=3 pendingProviders=["anthropic"]
######## 4. this head adds shared defaults to the upgraded state
HEAD 07464c0ec811ac673cb77e9ee29e4491b33125f7
OpenClaw 2026.10.5 (07464c0)
◇  Where should this model setup apply?
│  Shared defaults
◇  Model/auth provider
│  Anthropic
◇  Anthropic auth method
│  Anthropic API key
◇  Allowlist models (comma-separated provider/model; blank to keep current)
│  anthropic/claude-sonnet-4-6, anthropic/claude-opus-5-5
== state after the shared setup
{"defaultsModel":{"primary":"anthropic/claude-opus-5-5","fallbacks":["anthropic/claude-sonnet-4-6"]},"defaultsAllow":["anthropic/claude-sonnet-4-6","anthropic/claude-opus-5-5"],"entries":{"alpha":{"model":{"primary":"anthropic/claude-opus-5-5","fallbacks":["anthropic/claude-sonnet-4-6","openai/gpt-5.4"]},"allow":["anthropic/claude-sonnet-4-6","openai/gpt-5.4","anthropic/claude-opus-5-5"]},"beta":{"model":{"primary":"anthropic/claude-opus-5-5"}}}}
== gateway harness exit 0
models.list {"agentId":"beta"} -> exit 0, models=2 pendingProviders=["anthropic"]
  anthropic/claude-opus-5-5 available=true tags=["default","configured"]
  anthropic/claude-sonnet-4-6 available=true tags=["configured"]
== turn agent beta
== turn exit 1
"message": "⚠️ Couldn't sign in to the AI service. Sign in again under Models in the Control UI or run `openclaw configure`. | 401
== provider requests from this turn
{"method": "POST", "path": "/v1/messages", "apiKey": "sk-ant-t...0000"}
{"method": "POST", "path": "/v1/messages", "apiKey": "sk-ant-t...0000"}
  • 13 test cases added or rewritten in configure.wizard, configure.gateway-auth.prompt-auth-config, configure.gateway-auth.credential-scope (new), onboard-custom, onboard-custom-config.
  • Each reads a real owner's result: the committed config, the returned config, the auth store each agent resolves under a temporary state root, or the prompt the terminal shows.
  • With the five source files set to main 80ae18c and configure.model-scope.ts removed: 13 failed, 81 passed.
  • At the head the five test files pass 94/94 (pnpm test <files> --maxWorkers=1, 40.2 s wall time).
  • pnpm changed:lanes --base upstream/main: core, coreTests, docs.
  • pnpm check:changed --base upstream/main: typecheck, lint, format and import cycles pass; four repo-wide lanes fail, none on a file this PR touches.
  • Same failures on main 80ae18c: max-lines ratchet (three ui/src/pages/* files), first-party export baseline (three src/agents/worktrees/* lines), core test shard root budget (gateway-root 726, infra 735).
  • Dead-export scan: 137 findings, none in a file this PR touches.
  • test:changed against upstream/main: 15,358 passed, 3 failed outside this diff.
  • src/claws/project.test.ts "rejects a workspace source that portably collides with CLAW.md" fails the same way on main 80ae18c.
  • src/skills/loading/workspace-skill-sync.runtime.test.ts and src/skills/lifecycle/install-download.test.ts pass alone at this head and on main (65/65).

@clawsweeper

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

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-22T03:20:05.153022Z 17255a0 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@openclaw-barnacle openclaw-barnacle Bot added commands Command implementations size: M labels Oct 22, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 17255a076b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/commands/configure.model-scope.ts Resolved
@clawsweeper clawsweeper Bot added the clawsweeper:intake:feature Preliminary submission classification; full source review pending. label Oct 22, 2026
@openclaw-barnacle openclaw-barnacle Bot added the docs Improvements or additions to documentation label Oct 22, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 auth-provider 🚨 May break OAuth, tokens, provider routing, model choice, or credentials. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. and removed clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Oct 22, 2026
@clawsweeper

clawsweeper Bot commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge.

What this changes

Adds a configure scope choice that writes model settings and provider credentials either to one agent or to shared fleet defaults.

Example: An explicit fleet contains alpha and beta, and the operator configures Anthropic.

  • Before: Configure updates alpha's model policy and credentials; beta receives neither.
  • After: Choosing Shared defaults gives inheriting agents the shared model policy and credential while preserving agent-local overrides.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The supplied runtime evidence resolves the previous proof requests and the patch has no actionable finding, but product approval remains outstanding.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (terminal): Exact-head terminal evidence exercises real configure and Gateway agent turns against a recording loopback provider: inheriting beta sends the shared test key, a separate state root sends no request, and logout prevents subsequent provider I/O; the deliberate 401 response proves credential routing rather than successful model generation.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Feature · Worth it: Needs a maintainer decision · Fix scope: Complete
User problem: Fleet operators must repeat model and credential setup for individual agents because configure has no shared setup choice.
Reason: The capability has demonstrated user value, but it adds a user-facing scope choice to intentionally agent-owned setup and requires an owner decision.

Merge readiness

⛔ Blocked before merge - 1 item remains

Keep this PR open: it provides a distinct fleet setup capability with no concrete introduced defect found, but an area owner must approve the new shared setup direction.

Priority: P2
Reviewed head: 07464c0ec811ac673cb77e9ee29e4491b33125f7
Owner decision: Required. See Decision needed.

Decision needed

  • Question: Should configure offer Shared defaults for explicit fleets, including shared provider credentials, while retaining One agent as the default?
  • Recommendation: Approve optional shared setup: Accept the scope choice and existing inheritance semantics, preserving local model and credential overrides.
  • Why: Individual-agent setup is deliberate behavior established by merged ownership work, and no owner has approved this new alternative on the PR or linked issue.

Before merge

  • Resolve maintainer decision - Resolve the maintainer decision shown above before merge.

Findings

None.

Agent review details

How this fits together

The configure wizard translates operator selections into existing model configuration and authentication stores, which the Gateway uses to resolve each agent's provider requests.

flowchart TD
  A[Operator runs configure] --> B[Model scope selection]
  B --> C[One agent]
  B --> D[Shared defaults]
  C --> E[Agent policy and auth store]
  D --> F[Shared policy and auth store]
  E --> G[Gateway model resolution]
  F --> G
  G --> H[Provider request]
Loading

Technical review

Best possible solution:

Approve an opt-in shared setup path through the existing model and credential owners while preserving and explaining agent-local overrides.

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

Current-main source confirms configure targets one agent, and the contributor supplies matching CLI and Gateway traces; this review executed no target code.

Is this the best way to solve the issue?

The implementation reuses existing model mutation and authentication owners, and the simplification pass found no unnecessary production layer or test scaffolding requiring removal.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Configure model and credential ownership changes intended behavior with a stated reason (eed6416: Make explicit-fleet configure operations use the selected agent's workspace, credentials, and model policy.)
  • Custom-provider model projection changes intended behavior with a stated reason (c0197b6: Prevent provider setup from silently replacing fleet-wide defaults while leaving the selected agent unchanged.)
  • Preservation of existing primary models keeps the original intent (a9f163f: Provider authentication recommendations initialize missing primaries without replacing existing explicit or inherited selections.)
  • Custom-provider workspace and alias scope keeps the original intent (c0197b6: Keep setup model mutations and alias validation aligned with their selected owner.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit a9f163f adds src/commands/configure.gateway-auth.ts:285 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: a9f163ff25ba; files: src/commands/configure.gateway-auth.ts)
  • Jacqueline Henriksen: Raw commit eed6416 adds src/commands/onboard-agent-target.ts:103 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: eed64163b629; files: src/commands/onboard-agent-target.ts)

PR surface

Source +174, Tests +517, Docs +7, Other -1. Total +697 across 14 files. Added test files: 1.

View PR surface stats
Area Files Added Removed Net
Source 6 196 22 +174
Tests 6 523 6 +517
Docs 1 8 1 +7
Config 0 0 0 0
Generated 0 0 0 0
Other 1 0 1 -1
Total 14 727 30 +697

Review metrics

Metric Value Why it matters
Production versus test changes Production +196/-22; tests and support +523/-6 Growth adds the scope choice and routes existing configuration owners; tests cover persistence, inheritance, picker scope, alias validation, and retry workspace preservation.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This improves repeated setup for advanced fleet operators while existing individual-agent and manual shared configuration paths remain available.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: ⏳ waiting on maintainer: Only explicit maintainer approvals or decisions remain; merge is still blocked.
  • proof: sufficient: Contributor real behavior proof is sufficient.

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.

History

Review history (3 earlier review cycles)
  • reviewed 2026-10-22T03:46:29.293Z sha b1b03c2 :: needs real behavior proof before merge. :: [P2] Validate custom aliases against the selected write scope | [P2] Preserve the selected workspace when retrying custom setup
  • reviewed 2026-10-22T05:27:36.063Z sha 8b27956 :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-22T05:35:34.758Z sha 8b27956 :: needs real behavior proof before merge. :: none

Reviewed October 22, 2026, 1:09 PM ET / 17:09 UTC (Revision 4).

@sasan1200

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. and removed merge-risk: 🚨 auth-provider 🚨 May break OAuth, tokens, provider routing, model choice, or credentials. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Oct 22, 2026
@clawsweeper clawsweeper Bot removed the clawsweeper:intake:feature Preliminary submission classification; full source review pending. label Oct 22, 2026
@sasan1200

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. proof: sufficient ClawSweeper judged the real behavior proof convincing. status: ⏳ waiting on maintainer Only explicit maintainer approvals or decisions remain; merge is still blocked. and removed status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Oct 22, 2026
@FiredMosquito831

FiredMosquito831 commented Nov 12, 2026 •

Copy link
Copy Markdown

Additional real-world reproduction on Linux, now with version and control case:

  • OpenClaw: 2026.11.3 (847611d).
  • The interactive OpenRouter provider flow accepts a key, reaches the model multi-select, and saves configuration.
  • The interactive Custom Provider flow accepts a local OpenAI-compatible base URL and offers “Paste API key now”, but pressing Enter exits immediately with:
Multiple agents are configured, but this operation has no explicit owner. Select an agent explicitly; CLI callers can pass --agent <id>, channels can add a binding, and ambient services can set their agentId target.

The failure occurs before the custom-provider key prompt opens; no key was entered or submitted. It reproduces with the URL entered with and without the /v1 suffix, so the transcript does not point to URL validation as the cause. After aborting, the user's model-list helper reports that no custom-provider model entries were written.

Expected: the interactive flow should establish One agent versus Shared defaults ownership before beginning provider auth, carry that owner through custom-provider probing and key entry/retry, then persist discovered advertised models and provider auth to the selected shared or agent scope while preserving agent-local overrides.

Automatic model discovery is a separate implementation path and is already represented by merged PR #173300; this report concerns the custom-provider flow aborting before it can reach auth/discovery. The shared-defaults implementation remains proposed in this PR and is not in 2026.11.3.

@sasan1200

Copy link
Copy Markdown
Contributor Author

Not planned.

@sasan1200 sasan1200 closed this Nov 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

commands Command implementations docs Improvements or additions to documentation P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: L status: ⏳ waiting on maintainer Only explicit maintainer approvals or decisions remain; merge is still blocked.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: Shared model defaults in configure for explicit multi-agent fleets

2 participants