deepseek-ai/deepseek-harness · error · Error
cordis_define needs a non-empty `name`
Error message
cordis_define needs a non-empty `name`
What it means
Error "cordis_define needs a non-empty `name`" thrown in deepseek-ai/deepseek-harness.
Source
Thrown at packages/extensions/cordis-host-runner/src/index.ts:154
private group: Fiber | undefined
/** Create the service under the Host composition. */
constructor(ctx: Context, config: Config) {
super(ctx, 'dynamicCordisRunner')
this.rootCtx = ctx
this.resolved = config as ResolvedConfig
this.inspectRegistry = new CordisInspectRegistryService(ctx)
}
/**
* Define a new Plugin's first Package or append a Package to an existing Plugin.
* @param request - Session ownership, Plugin selection, metadata, and source code.
* @returns Host-minted Plugin and Package identities with declared-half metadata.
*/
define(request: DynamicCordisDefineRequest): DynamicCordisDefineReceipt {
const name = request.name.trim()
const purpose = request.purpose.trim()
if (name.length === 0) throw new Error('cordis_define needs a non-empty `name`')
if (purpose.length === 0) throw new Error('cordis_define needs a non-empty `purpose`')
if (request.code.host === undefined && request.code.client === undefined) {
throw new Error('cordis_define needs `code.host`, `code.client`, or both')
}
if (request.code.host !== undefined) precheckCode(request.code.host, 'code.host')
if (request.code.client !== undefined) precheckCode(request.code.client, 'code.client')
let plugin: DynamicCordisPlugin
if (request.plugin.kind === 'new') {
const prefix = request.plugin.idPrefix.trim()
if (!/^[a-z]{3,6}$/.test(prefix)) {
throw new Error('cordis_define `plugin.idPrefix` must contain 3–6 lowercase English letters')
}
const pluginId = CordisDynamicPluginId(this.registry.mintPluginId(prefix))
plugin = {
pluginId,
sessionId: request.sessionId,
packages: new Map(),View on GitHub (pinned to b150a551b8)
When it happens
Trigger: Thrown at packages/extensions/cordis-host-runner/src/index.ts:154 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of deepseek-ai/deepseek-harness@b150a551b8 (2026-08-24).
Data as JSON: /api/errors/c033fb9699ed1c85.
Report an issue: GitHub.