{"record":{"id":"7774140dafcb01db","repo":"deepseek-ai/deepseek-harness","slug":"cordis-inspect-self-packageid-requires-pluginid","errorCode":null,"errorMessage":"cordis_inspect_self packageId requires pluginId","messagePattern":"cordis_inspect_self packageId requires pluginId","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/extensions/tool-cordis/src/index.ts","lineNumber":116,"sourceCode":"    description:\n      'Inspect dynamic Cordis objects owned by the current Session at increasing levels of detail. With no IDs, '\n      + 'list only Plugin summaries. With pluginId alone, return version pointers, the latest Run, and every Package '\n      + 'summary. Only pluginId plus packageId returns that immutable Package\\'s Host/Client source and runtime '\n      + 'diagnostics. packageId cannot be supplied alone. Query an exact Package before handling @pluginId, repairing '\n      + 'an asynchronous failure, or defining an updated version. This Tool is read-only: it neither executes code '\n      + 'nor changes version pointers.',\n    parameters: {\n      pluginId: { type: 'string', description: 'Stable Plugin ID returned by cordis_define or injected by @pluginId; omit it to list every current Plugin.' },\n      packageId: { type: 'string', description: 'Exact immutable Package ID owned by pluginId; when specified, source and diagnostics are returned.' },\n    },\n    output: {\n      schema: { type: 'json' },\n      render: (_args, value) => [{ type: 'text', text: JSON.stringify(value, null, 2) }],\n    },\n    execute(args, exec): Promise<JsonValue> {\n      const agent = requireAgent(exec)\n      if (args.packageId !== undefined && args.pluginId === undefined) {\n        throw new Error('cordis_inspect_self packageId requires pluginId')\n      }\n      if (args.pluginId === undefined) {\n        return Promise.resolve({\n          mode: 'plugins',\n          plugins: ctx.dynamicCordisRunner.listPlugins(agent).map(reference => selfSummary(reference)),\n        } as unknown as JsonValue)\n      }\n      const pluginId = CordisDynamicPluginId(args.pluginId)\n      if (args.packageId === undefined) {\n        const plugin = ctx.dynamicCordisRunner.inspectPlugin(agent, pluginId)\n        return Promise.resolve({\n          mode: 'plugin',\n          ...selfSummary(plugin),\n          packages: plugin.packages.map(pkg => ({\n            ...pkg,\n            packageId: String(pkg.packageId),\n            isCurrent: pkg.packageId === plugin.currentPackageId,\n            isNext: pkg.packageId === plugin.nextPackageId,","sourceCodeStart":98,"sourceCodeEnd":134,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/extensions/tool-cordis/src/index.ts#L98-L134","documentation":"Error \"cordis_inspect_self packageId requires pluginId\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/extensions/tool-cordis/src/index.ts:116 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"b150a551b8d465e31e418e1b2eaf5e79bbb7d28e","analyzedAt":"2026-08-24T18:12:29.105Z","schemaVersion":2},"datasetVersion":"2026-08-24T22:17:12.610Z"}