Repository navigation
Description
Bug type
Behavior bug (incorrect output/state without crash)
Beta release blocker
No
Summary
In existing project-parent sessions, sessions_spawn rejected DeepSeek or native Haiku during model validation, although the preserved Gateway model-list projection reported those models available; the same logical session later spawned working Children after text /reset
Steps to reproduce
Historical operator-reported steps, supported by the attached selected records (not rerun for this report):
- Use an installation where DeepSeek and native Haiku routes already work from a normal session.
- Open a session attached to a registered non-worktree project outside the agent workspace.
- Ask Main to invoke sessions_spawn explicitly with
deepseek/deepseek-flashoranthropic/claude-haiku-4-5. - Observe the preflight errors below.
Control: the existing SESSION-A history has failures at 13:57 KST, text /reset at 13:59 KST, then an accepted DeepSeek Child at 14:01 KST and later DeepSeek/Haiku assistant output. Project detachment at reset is operator-reported; no before/after project metadata snapshots were recovered. Do not treat /reset as the proposed fix. A clean-stock minimal configuration was not independently reproduced.
Expected behavior
A model that works in a normal session should remain usable for Child validation when its parent is project-attached, without changing the project execution directory. The attached historical after-reset successes and related upstream inventory contract provide the control.
Actual behavior
Two distinct historical errors were observed before Child execution:
sessions_spawn model "deepseek/deepseek-flash" is not usable: Unknown model: deepseek/deepseek-flash. Found agents.defaults.models["deepseek/deepseek-flash"], but no matching models.providers["deepseek"].models[] entry. Add { "id": "deepseek-flash", "name": "deepseek-flash" } to models.providers["deepseek"].models[] to register this provider model. For custom or proxy providers, also set api and baseUrl so requests route to the intended endpoint. See https://docs.openclaw.ai/concepts/model-providers.
sessions_spawn model "anthropic/claude-haiku-4-5" is not usable: The selected account or native runtime is unavailable for anthropic/claude-haiku-4-5. Restore that account before spawning this model.
The native-runtime wording is an admission result, not evidence that the real credential expired. DeepSeek fails model resolution; Haiku fails availability evaluation inside the same outer preflight. These are not claimed to be identical inner failures.
OpenClaw version
2026.10.6 (fe06181dc5ecc01cf8904abbfc26925925efefbc), build 2026-10-22T08:54:27.830Z.
Operating system
Windows 10 Pro 22H2 (OS Build 19045.7725), WSL2
Install method
global-layout Node package in the managed Node v24.22.1 toolchain. Original installation command: NOT_ENOUGH_INFO.
Model
Main observed: openai/gpt-6.1-sol and claude-cli/claude-sonnet-5-5. Child failures: deepseek/deepseek-flash, deepseek/deepseek-v4-pro; Haiku case: anthropic/claude-haiku-4-5 (not Haiku 5.5).
Provider / routing chain
Gateway sessions_spawn -> resolveSubagentModelAndThinkingPlan -> prepareModelChoice -> prepared catalog owner/model/runtime evaluation. DeepSeek uses the installed global provider plugin; Haiku uses logical anthropic routing to the native claude-cli runtime. The rejected calls did not reach Child inference.
Additional provider/model setup details
DeepSeek plugin manifest: enabled, global registration, activation.onStartup=false, providerCatalogEntry=./dist/provider-discovery.js, modelCatalog present. Earlier investigation recorded an empty inline deepseek model list; credentials and full config are intentionally not attached. A local project creation/recording maintenance plugin is installed but was not disabled; no clean-stock comparison is claimed. Project roots and session identifiers are aliased.
Logs
See `01-child-spawn-evidence.zip`: `logs/child-failures.jsonl`, `logs/child-accepted.jsonl`, `logs/child-execution-identities.jsonl`, and `comparison/timeline.csv`. All event times use the original record timestamp, also rendered as KST. Only selected fields are exported; errors are verbatim.
The preserved models.list projection has 35 rows in agent-default, normal-session and project-session scopes: OpenAI 8, Anthropic 14, Claude CLI 11, DeepSeek 2. Selected DeepSeek and Haiku rows show available=true. It was collected later than the failures. The full raw 35-row response was not retained, and this RPC is not the Child validator owner.Screenshots, recordings, and evidence
Impact and severity
Affected: the reporter's project-parent workflow on this installation. Severity: blocks Child delegation while preserving project membership. Operator reports multiple projects and both Main routes affected. The attachment is a selected evidence set, not a complete failure-rate sample; population-wide frequency is NOT_ENOUGH_INFO.
Additional information
Related: #169205 and #169539. The installed commit is not a descendant of merge 52885d96ffef88db68c56cb772840d23dcfaf150; the installed lease code lacks inventoryInput. The upstream issue is analogous, not identical (it reported Main ingress failures). The PR repairs shared run leases; it does not directly cover sessions_spawn preflight.
Source-level candidate, NOT observed failure-owner state: project workspace owner lookup can miss a compatible published owner and fall back to a readOnly ephemeral build without runtime plugin facts. Owner keys also distinguish readOnly mode. Inspect src/agents/prepared-model-catalog.ts owner selection and src/agents/model-runtime-choice.ts::prepareModelChoice, in addition to the lease fix. Preserve agent/auth/environment/generation isolation and execution cwd. No manual global-model-registration workaround is requested.
No Child/reset/restart/test or Core/config/DB/session mutation was performed to prepare this package. No failing-owner snapshot, clean-stock reproduction, or proof of a proposed patch is claimed. Last-known-good version: NOT_ENOUGH_INFO.
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Activity
clawsweeper commentedon Oct 24, 2026
Codex review: this still needs some work.
Summary
Keep this issue open: current main retains the workspace-sensitive preflight mismatch, released-installation reports establish user impact, and the explicitly closing PR remains draft and unmerged.
Reproducibility: Current source establishes the explicit-workspace owner miss and ephemeral fallback; VQuesada and resinoftree97 supply released-installation observations, but this read-only review ran no Gateway or tests and does not claim a current-main live reproduction.
Root-cause cluster
Relationship:
canonicalCanonical: #182467
Summary: This issue tracks the remaining read-only child-preflight mismatch; its open fixing PR owns the repair, while the earlier merged change addressed adjacent run admission.
Members:
fixed_by_candidate: fix: reach the configured owner on project-parent sessions_spawn preflight #183761 - Open draft PR explicitly closes this issue and changes the affected catalog-owner selection.partial_overlap: fix: resolve plugin-discovered models outside the agent workspace #169539 - Merged inventory-versus-cwd correction covers run leases rather than the remaining read-only preflight.Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.
Next step
Resolve standalone-isolation coverage and establish a failing owner-selection regression plus successful Gateway child execution on the updated #183761 before merging its fix.
Review details
Best possible solution:
Use compatible configured Gateway inventory for child preflight while preserving execution cwd, authentication identity, generation ownership, and standalone workspace isolation.
Do we have a high-confidence way to reproduce the issue?
Current source establishes the explicit-workspace owner miss and ephemeral fallback; VQuesada and resinoftree97 supply released-installation observations, but this read-only review ran no Gateway or tests and does not claim a current-main live reproduction.
Is this the best way to solve the issue?
Correcting inventory selection fits the documented Gateway contract, but the proposed fallback needs real owner-publication regressions and standalone-isolation coverage before its exact implementation can be accepted.
AGENTS.md: found and applied where relevant.
Remaining risk / open question:
Codex review notes: model internal, reasoning medium; reviewed against 56b15bda91b8.
Label changes
Label changes:
No label changes.
Label justifications:
P2: The established failure blocks delegation for particular workspace and provider combinations, with limited demonstrated reach.impact:auth-provider: Preflight can reject usable provider models because it selects catalog and native-authentication facts from the wrong runtime context.Evidence reviewed
What I checked:
src/agents/prepared-model-catalog.ts:277, 56b15bda91b8)src/agents/prepared-model-runtime.owner.ts:353, 56b15bda91b8)src/agents/model-runtime-choice.ts:82, 56b15bda91b8)docs/plugins/architecture-internals/load-pipeline.md:151, 56b15bda91b8)src/agents/prepared-model-catalog.ts, 1332f7a52b43)How this review workflow works
@clawsweeper re-reviewcomments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.@clawsweeper re-reviewor@clawsweeper re-runon an open PR or issue to request a fresh review only.@clawsweeper reviewto request a fresh review only.@clawsweeper explainto ask for more context, or@clawsweeper stopto stop active automation.Reviewed November 8, 2026, 5:32 AM ET / 10:32 UTC.
resinoftree97 commentedon Oct 25, 2026
182467-owner-repro-evidence.zip
Follow-up: isolated owner-selection observation on current
main(observation only, no fix proposed)I am stopping further experiments on this issue here. This comment records what one self-written, Gateway-less test harness observed on upstream
main, what it does not establish, and what I think needs to be verified next by someone who can run the real Gateway. All numbers and quotes below come from the attached evidence package; nothing was re-run to write this comment.Attachment:
182467-owner-repro-evidence.zip(README, harness source, full vitest log, per-case JSON, derived key-evidence file,SHA256SUMS).ZIP SHA-256:
62b8524881fd12f82c22e31eaf823819a9e721f7c44980ddc9aa37d69303c764Scope of the test (please read before the results)
f20e7dbea8fc33024ca4cacc9c103188bf6e17bc(upstreammain, 2026-10-24, perf(control-ui): remove a transcript readiness round trip #182846). Not the installed 2026.10.6 (fe06181) from the original report.zz-owner-observation.test.ts), run on a throwaway HOME/state dir/workspace. No Gateway process, no RPC, no realsessions_spawntool call. It publishes owners by callingrefreshPreparedModelRuntimeSnapshotswith the same options assrc/gateway/server-startup-model-runtime.ts, uses a local test plugin (ocverify) whoseresolveDynamicModelhook resolves only one model, has nomodels.providers, and uses dummy credentials. It is not the real DeepSeek plugin, not a real DeepSeek/Anthropic/Haiku authenticated setup, and not the reporter's configuration.expect(true).toBe(true)), so "1 test passed" in the log is not a verdict.Confirmed by this experiment (observed in the fixture on
main)Calls made per case:
withPreparedModelCatalogOwner({ agentId: "main", workspaceDir, readOnly: true }), thenprepareModelChoice(...)andresolveSubagentModelAndThinkingPlan(...)for (1) a model that only the plugin'sresolveDynamicModelhook can resolve and (2) a control model nothing can resolve. Published (configured) owner workspace =W.workspaceDirpassedundefined["ocverify"]W(explicit string)["ocverify"]W/sub-project[]Unknown modelW[]Unknown model[]Unknown modelgetPreparedModelRuntimeSnapshotreturnedundefined(bothreadOnlyvariants) andacquirePreparedModelRuntimeSnapshotthrewprepared model runtime owner was not published for <agentDir>. (6 of 8 case records; evidence class counts are inderived/key-evidence.md.)acquireReadOnlyPreparedModelRuntime. The resulting snapshot hadmetadataPluginIds: ["ocverify"]butpluginRegistryPluginIds: [].resolveDynamicModelwas never called (0 calls in bothprepareModelChoiceandresolveSubagentModelAndThinkingPlan). In A and B it was called once in each.Unknown modelproduced. In those casesprepareModelChoicereturnedUnknown model: ocverify/dynamic-only-model. Run \openclaw models list --refresh --provider ocverify` ...andresolveSubagentModelAndThinkingPlanreturnedsessions_spawn model "ocverify/dynamic-only-model" is not usable: Unknown model: .... The control model isUnknown model` in every case, as intended.workspaceDirstring equalled the published owner's workspace (B) or was absent (A). Reading the source at this commit,resolvePublishedOwner(src/agents/prepared-model-runtime.owner.ts, ~l.349-390) first does an exact owner-key lookup and only falls back to the configured owner whenworkspaceDir,agentIdorruntimePluginSelectionsis undefined (~l.399-403), and that fallback also comparesworkspaceDirfor equality.acquireAgentRunPreparedModelRuntimefor the project directory succeeded and its snapshot had["ocverify"]in the plugin registry, yet the subsequent read-only owner/model lookups still took the fallback path.Not confirmed (still unknown)
activation.onStartup=false, global registration, empty inline model list) was not loaded. The error text in the issue (Found agents.defaults.models[...], but no matching models.providers[...]) was not produced; the harness message is the generic one quoted above.claude-cli"selected account or native runtime is unavailable" path. Not exercised at all.mainwas tested; the issue already notes the installed commit is not a descendant of merge52885d96, so the code may differ.readOnlyflags and plugin selections as the replicated startup call; whether a real project-parent session passes aworkspaceDirequal to the project root intoresolveSubagentModelAndThinkingPlan/prepareModelChoice; case E emulates admission by calling exported functions rather than runningagent-run-admission-phase.ts.model-runtime-choice.test.ts,model-runtime-choice.native.test.ts,prepared-model-catalog.test.ts) through the standard runner on an 8 GB host; they printed only "still running with no output" and I killed them. There is no pass/fail data from them.OBS_DISCOVERY(printed right after two explicit refreshes) showed zero provider rows and zero endpoint hits, yet the later owner summaries for A and B list one catalog entry (discovered-only-model, the model the fixture endpoint advertises) while C, D and E list none. I did not log when that entry appeared and cannot say whether provider discovery ran. Please treat this as unexplained.Suggested next verification (for maintainers)
readOnly: trueowner lookup with an explicitworkspaceDirthat differs from the published owner's workspace.sessions_spawnfrom a session attached to a project whose root is outside the agent workspace, and log (a) theworkspaceDirthat reachesresolveSubagentModelAndThinkingPlan/prepareModelChoice, (b) the owner keys that are published, and (c) which key the read-only lookup uses. This would show whether the fixture's condition occurs in production.resolveDynamicModel(or the real DeepSeek plugin with an emptymodels.providers.deepseek.models) for step 2, and repeat on 2026.10.6 and currentmainto see whether the behavior differs between them.claude-clinative-runtime availability branch ofprepareModelChoiceseparately with a projectworkspaceDir; this package says nothing about it.models.listand thesessions_spawnvalidator are expected to agree for such directories.To re-check my reading without running anything:
unzipthe archive, runsha256sum -c SHA256SUMS, then seeREADME.md(sections 4-7) andderived/key-evidence.md. The filederived/key-evidence.mdcan be regenerated from the log and JSON withpython3 tools/derive-key-evidence.py.Sanitization: the host's home path and Node install path were replaced with placeholders in two files (hashes in
SANITIZATION.md); the log, JSON and memory-sample files are byte-identical to the originals. The test source contains two dummy fixture values (issue-182467-observation-token,fixture-key) that are not real credentials.resinoftree97 commentedon Oct 25, 2026
@clawsweeper re-review
clawsweeper commentedon Oct 25, 2026
🦞👀
Exact review queued.
Re-review progress:
2 remaining items
clawsweeper commentedon Nov 1, 2026
🦞👀
Exact review queued.
Re-review progress:
resinoftree97 commentedon Nov 8, 2026
@clawsweeper re-review
Update: original project-parent error fixed in a controlled trial on the reporting installation (2026-11-08 KST)
I reproduced the original two
sessions_spawnmodel-validation failures again on the unmodified OpenClaw 2026.10.10 operating Gateway, including after restarting that unchanged Gateway:anthropic/claude-haiku-4-5: account/native runtime unavailable before child creation.deepseek/deepseek-flash:Unknown modelbefore child creation.After applying a version-specific compiled forward-port of the prerequisite in PR #183761 plus the proposed Gateway-lifecycle/standalone-isolation correction (Option 4), the same existing project parent successfully spawned each model, received actual assistant answer
2from each respective backend, and recorded normal child stops. One operating Gateway was used sequentially; provider credentials, configuration, project workspace, and session were preserved. Original backups are available.This is stronger live before/after evidence than the earlier GitHub Actions experiments, where the unpatched CI base did not reproduce the rejection. It is not proof that the unmodified PR branch has been tested end-to-end, nor that all workspace isolation cases pass. Root-cause owner identity at the original failure was not logged.
The detailed evidence summary, targeted owner-selection/P2 correction, and proposed source patch are being submitted on PR #183761: #183761 . The PR remains draft/open and requires the contributor's integration and regression review. Please keep this issue open until a reviewed fix is actually merged.
clawsweeper commentedon Nov 8, 2026
🦞👀
Exact review queued.
Re-review progress:
resinoftree97 commentedon Nov 13, 2026
Follow-up: project-session catalog fix merged upstream (#197238)
A new fix for the same project-workspace/read-only model-catalog lookup failure has now been merged into
main:The merged change adds a Gateway-lifecycle-only, workspace-less published-inventory fallback for read-only catalog lookups, retaining standalone workspace isolation. This addresses the failure mechanism documented here and the P2 concern raised on #183761. Its PR reports real project-session
sessions_spawn/ child-response testing with a stand-in runtime-discovery plugin and targeted regression coverage.For accuracy, this is not a direct re-test of my original Haiku 4.5 / DeepSeek Flash setup on the merged commit. My earlier operating-Gateway red → restart-only red → version-specific forward-port green evidence remains in the comments above.
Could maintainers consider #197238 as the upstream resolution for this issue, and close it when appropriate after confirming the merged behavior/release? Thank you to everyone who investigated and contributed.
abu-b-sidq commentedon Nov 13, 2026
Another trigger for the same preflight miss (2026.11.3): spawning into an explicit
systemAgentthat has no pinned workspaceEnvironment: OpenClaw 2026.11.3 (847611d) on Linux arm64, with the Gateway running as a systemd user service. Claude models run on
claude-clithroughagents.defaults.models.<ref>.agentRuntime.id.Config:
agents.ownership: "explicit"agents.defaults.workspace: "~/.openclaw/workspace"agents.defaults.systemAgent.agentId: "main"mainhas an explicitworkspace.What happens
sessions_spawn({ agentId: "main" })fails:sessions_spawn model "anthropic/claude-sonnet-5-5" is not usable: The selected account or native runtime is unavailable for anthropic/claude-sonnet-5-5. Restore that account before spawning this model.Passing an explicit
modelfails the same way. The same requester can spawn other agents on the same model.mainsession, same model, one minute apart:sessions_spawn({ agentId: "main", visible: true })failed with the error above.sessions_spawn({ agentId: "main" })was accepted and ran.Why (from the 2026.11.3 dist)
The spawn path and the Gateway's published owner disagree on where the system agent's workspace is.
resolveAgentWorkspaceDir(cfg, "main")returnsagents.defaults.workspaceitself only for the agent named bytryResolveLegacyDataOwnerAgentId. Under explicit ownership with more than one agent, that isundefined. So it returns<defaults.workspace>/main.tryResolveConfiguredAgentWorkspaceDirreturns<defaults.workspace>.listConfiguredOwnerInputsgives that launch dir to the compatibility agent (the explicitsystemAgent), withpreserveWorkspaceDirOnRefreshset. So main's configured owner is published at<defaults.workspace>.resolveSpawnedWorkspaceInheritance({ targetAgentId }), which returnsresolveAgentWorkspaceDir. They then callprepareModelChoice({ agentId: "main", workspaceDir: "<defaults.workspace>/main" }). That lookup misses the published owner and falls back to the read-only ephemeral owner. The ephemeral owner has noclaude-cliauth mode, so the spawn is rejected.#183761 adds a fallback that probes at
resolveAgentWorkspaceDir. For this config that is<defaults.workspace>/mainagain, so I don't think it covers this case.Same split, other symptoms
The system agent's runs and bootstrap files use
<defaults.workspace>. Itsmemory_get/memory_searchand the session-memory hook use<defaults.workspace>/main. That matches the "two edited workspaces" state described in docs/concepts/multi-agent.md. This roster never got Doctor's workspace pin.doctor --lintlists main's workspace as<defaults.workspace>/mainand doesn't flag the split.Workaround (verified on the live Gateway)
Pin
agents.entries.main.workspaceto the launch workspace. The change hot-reloads. After it, both the visible main→main spawn and the cross-agent spawn into main succeed.