deepseek-ai/deepseek-harness · error · PresetNotWritableError
agent-presets: preset "${presetId}" cannot be written: this
Error message
agent-presets: preset "${presetId}" cannot be written: this deployment configures no user-writable preset root What it means
Error "agent-presets: preset "${presetId}" cannot be written: this deployment configures no user-writable preset root" thrown in deepseek-ai/deepseek-harness.
Source
Thrown at packages/preset/agent-presets/src/authoring.ts:68
constructor(
/** What the caller tried to change, for the diagnostic. */
readonly presetId: string,
reason: string,
) {
super(`agent-presets: preset "${presetId}" cannot be written: ${reason}`)
}
}
/**
* The root locally authored presets are written to.
* @param roots - the configured roots in precedence order.
* @returns the absolute path of the first `user` root.
* @throws when the deployment configured no writable root.
*/
export function writableRoot(roots: readonly PresetRoot[]): string {
const root = roots.find(candidate => candidate.trust === 'user')
if (root === undefined) {
throw new PresetNotWritableError('', 'this deployment configures no user-writable preset root')
}
return resolve(expandHomePath(root.path))
}
/**
* Read one preset's composition text.
* @param preset - the resolved preset.
* @returns the file's contents.
*/
export async function readComposition(preset: AgentPreset): Promise<string> {
return await readFile(preset.path, 'utf8')
}
/** Whether anything occupies the path (cp's own errorOnExist backstops races). */
async function occupied(path: string): Promise<boolean> {
let present = true
try {
await stat(path)View on GitHub (pinned to b150a551b8)
Solutions
- Configure a user-writable preset root for the deployment.
When it happens
Trigger: Thrown at packages/preset/agent-presets/src/authoring.ts:68 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/09393873d0c8e7d6.
Report an issue: GitHub.