SDK subagent.complete rejects inside a service plugin — request for supported diagnosis
Environment
- Installed OpenClaw: 2026.10.5, verified from installed package metadata.
- Linux x64; Node.js v24.21.0.
- Custom service plugin version 0.1.3. Plugin identifier and configured agent name below are placeholders.
Observed behavior
A custom signed loopback broker calls the documented tool-free, sessionless completion SDK from a registered service (apiVersion: 2). The target agent is fixed server-side; provider and model are omitted so the configured agent owns selection. No business data was queried.
The service was loaded and responding. All eight installed plugin files matched the reviewed package. A later native health check reported the plugin loaded, with no plugin errors or unavailable entries. This establishes readiness only, not SDK completion success.
One signed synthetic request reached the completion call and failed. Our custom broker returned HTTP 503 / PLANNER_UNAVAILABLE after 47 ms. This status is generated by our broker, not a direct Gateway HTTP response. No typed plan was returned; effective provider/model execution remains unproved. Latency does not identify the cause.
Sanitized call shape
Schematic extraction of the actual invocation fields; synthetic content and agent placeholder replace deployment-specific values. This is not a standalone reproduction:
const complete = p => api.runtime.subagent.complete(p);
const controller = new AbortController();
const result = await complete({
agentId: "sales-agent",
message: JSON.stringify({ task: "Return synthetic JSON only." }),
extraSystemPrompt: "Synthetic planner only; no tools.",
timeoutMs: 12000,
signal: controller.signal,
});
The real caller validates a bounded JSON plan from result.text. Property invocation is preserved. Installed SDK source reinstates plugin scope and applies lifecycle/admission checks; we have not established whether our service lifecycle usage is correct.
Available diagnostic evidence
The caught exception was reduced to a sanitized record: category DIAGNOSTIC_UNCLASSIFIED_ERROR; one OTHER-class object; own string name/message; no code, status, detail or represented nested cause. Original name/message/stack were not retained. Existing logs cannot recover that discarded identity.
An offline fixture using the actual exported PluginInstanceUnavailableError produces the same structural shape. This does not identify the live exception or prove a lifecycle failure. Root cause could be our plugin usage or the runtime; no core defect is asserted.
Questions
- What supported local facility can identify this caught exception class and package-relative module:line without exposing raw messages, prompts or credentials, or weakening permissions?
- Is invoking subagent.complete from a service callback through the retained api facade supported, and what instance/lifecycle handling is required?
- What minimal isolated synthetic fixture should maintainers use to distinguish service misuse from runtime admission failure? No portable live reproduction or private credentials are supplied.
Expected: configured-agent tool-free completion yielding result.text containing the requested synthetic JSON. Please advise the supported diagnostic path before further instrumentation installs or permission/model changes.
No raw logs, private proof files, credentials, business records or deployment configuration are attached.
Official issue chooser: Sign in to GitHub · GitHub