{"record":{"id":"a28f66476c219892","repo":"deepseek-ai/deepseek-harness","slug":"agent-preset-read-only-a28f66","errorCode":"agent-preset-read-only","errorMessage":"agent preset \"${agentPreset}\" ships with the deployment","messagePattern":"agent preset \"(.+?)\" ships with the deployment","errorType":"error_code","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/client/connection/src/client/fixture.ts","lineNumber":2851,"sourceCode":"        }\n        if (fixturePresets.has(agentPreset)) {\n          return err(request, {\n            code: 'agent-preset-invalid',\n            message: `agent preset \"${agentPreset}\" already exists`,\n            details: { agentPreset, reason: 'already exists' },\n          })\n        }\n        fixturePresets.set(agentPreset, { trust: 'user', content: source.content })\n        return ok(request, { agentPreset })\n      },\n      // Native opens are deterministic no-op successes in this fixture, so the\n      // open-directory affordance renders and the path-text fallback stays a\n      // component-test concern.\n      openDocument: (request) => {\n        const { agentPreset } = request.payload\n        const existing = fixturePresets.get(agentPreset)\n        if (existing === undefined || existing.trust === 'system') {\n          return err(request, {\n            code: 'agent-preset-read-only',\n            message: `agent preset \"${agentPreset}\" ships with the deployment`,\n            details: { agentPreset, reason: 'it ships with the deployment' },\n          })\n        }\n        return ok(request, { opened: true as const })\n      },\n      remove: (request) => {\n        const { agentPreset } = request.payload\n        const existing = fixturePresets.get(agentPreset)\n        if (existing?.trust === 'system') {\n          return err(request, {\n            code: 'agent-preset-read-only',\n            message: `agent preset \"${agentPreset}\" ships with the deployment`,\n            details: { agentPreset, reason: 'it ships with the deployment' },\n          })\n        }\n        fixturePresets.delete(agentPreset)","sourceCodeStart":2833,"sourceCodeEnd":2869,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/client/connection/src/client/fixture.ts#L2833-L2869","documentation":"Error \"agent preset \"${agentPreset}\" ships with the deployment\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/client/connection/src/client/fixture.ts:2851 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Do not modify deployment-shipped presets; create a new preset under a different id."],"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"}