deepseek-ai/deepseek-harness · error · Error
unknown job ${id}
Error message
unknown job ${id} What it means
Error "unknown job ${id}" thrown in deepseek-ai/deepseek-harness.
Source
Thrown at packages/jobs/jobs-local/src/index.ts:347
/**
* The completion listeners that own `owner`'s notices: the global layer's
* first, then each scoped layer along the owner's chain. A listener outside
* that chain belongs to another composition and must not deliver, or the
* owner reads one notice per mounted preset.
* @param owner - the settled job's owner, or undefined for unowned work.
* @returns the listeners to notify, in registration order per layer.
*/
private *listenersFor(owner?: Agent): IterableIterator<JobDoneListener> {
yield* this.layers.global.listeners.values()
const scope = owner === undefined ? undefined : scopeOf(owner.ctx)
for (const layer of this.layers.chainLayers(scope)) yield* layer.listeners.values()
}
/** Look up a job or fail loud. */
private expect(id: JobId): TrackedTask {
const job = this.store.get(id)
if (job === undefined) throw new Error(`unknown job ${id}`)
return job
}
/**
* The isolation fence: a job with an owner is reachable only by callers
* whose session id matches (`!== undefined` semantics — an unowned job is
* open, and a no-agent caller can never match an owned one).
*/
private assertAccess(job: TrackedTask, caller?: Agent): void {
if (job.owner !== undefined && job.owner.id !== caller?.id) {
throw new Error(`job ${job.id} belongs to another session`)
}
}
/** Project a fresh read-only snapshot from the mutable record. */
private snapshot(job: TrackedTask): JobSnapshot {
const ownerSession = job.owner?.id
return {View on GitHub (pinned to b150a551b8)
Solutions
- Use a job id returned by job_start or job_list; the job may already have finished and been reaped.
When it happens
Trigger: Thrown at packages/jobs/jobs-local/src/index.ts:347 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/d2a11de37de27ced.
Report an issue: GitHub.