deepseek-ai/deepseek-harness · error

${binName}: failed to read profile manifest ${path}: ${Strin

Error message

${binName}: failed to read profile manifest ${path}: ${String(error)}

What it means

Error "${binName}: failed to read profile manifest ${path}: ${String(error)}" thrown in deepseek-ai/deepseek-harness.

Source

Thrown at packages/boot/app-boot/src/profile.ts:269

    const link = join(modulesDir, packageName)
    mkdirSync(dirname(link), { recursive: true })
    ensureSymlink(link, target)
  }
}

/**
 * Read a profile's manifest.
 * @param binName - the diagnostic prefix on the thrown error.
 * @param dir - the profile directory.
 * @returns the parsed manifest.
 */
export function readProfileManifest(binName: string, dir: string): ProfileManifest {
  const path = join(dir, 'package.json')
  let raw: string
  try {
    raw = readFileSync(path, 'utf8')
  } catch (error) {
    throw new Error(`${binName}: failed to read profile manifest ${path}: ${String(error)}`)
  }
  // The field checks below validate the file data before trusting the parse type.
  const parsed = JSON.parse(raw) as ProfileManifest | null
  if (parsed === null || typeof parsed !== 'object' || Array.isArray(parsed)) {
    throw new Error(`${binName}: profile manifest ${path} must hold a JSON object`)
  }
  return parsed
}

/**
 * Write a profile's manifest back (2-space JSON, trailing newline).
 * @param dir - the profile directory.
 * @param manifest - the manifest value to persist.
 */
export function writeProfileManifest(dir: string, manifest: ProfileManifest): void {
  writeFileSync(join(dir, 'package.json'), JSON.stringify(manifest, undefined, 2) + '\n')
}

View on GitHub (pinned to b150a551b8)

Solutions

  1. Ensure the profile manifest file exists and is readable.

When it happens

Trigger: Thrown at packages/boot/app-boot/src/profile.ts:269 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/eeaf6bcd4b5a613f. Report an issue: GitHub.