{"record":{"id":"d2a11de37de27ced","repo":"deepseek-ai/deepseek-harness","slug":"unknown-job-id","errorCode":null,"errorMessage":"unknown job ${id}","messagePattern":"unknown job (.+?)","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/jobs/jobs-local/src/index.ts","lineNumber":347,"sourceCode":"\n  /**\n   * The completion listeners that own `owner`'s notices: the global layer's\n   * first, then each scoped layer along the owner's chain. A listener outside\n   * that chain belongs to another composition and must not deliver, or the\n   * owner reads one notice per mounted preset.\n   * @param owner - the settled job's owner, or undefined for unowned work.\n   * @returns the listeners to notify, in registration order per layer.\n   */\n  private *listenersFor(owner?: Agent): IterableIterator<JobDoneListener> {\n    yield* this.layers.global.listeners.values()\n    const scope = owner === undefined ? undefined : scopeOf(owner.ctx)\n    for (const layer of this.layers.chainLayers(scope)) yield* layer.listeners.values()\n  }\n\n  /** Look up a job or fail loud. */\n  private expect(id: JobId): TrackedTask {\n    const job = this.store.get(id)\n    if (job === undefined) throw new Error(`unknown job ${id}`)\n    return job\n  }\n\n  /**\n   * The isolation fence: a job with an owner is reachable only by callers\n   * whose session id matches (`!== undefined` semantics — an unowned job is\n   * open, and a no-agent caller can never match an owned one).\n   */\n  private assertAccess(job: TrackedTask, caller?: Agent): void {\n    if (job.owner !== undefined && job.owner.id !== caller?.id) {\n      throw new Error(`job ${job.id} belongs to another session`)\n    }\n  }\n\n  /** Project a fresh read-only snapshot from the mutable record. */\n  private snapshot(job: TrackedTask): JobSnapshot {\n    const ownerSession = job.owner?.id\n    return {","sourceCodeStart":329,"sourceCodeEnd":365,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/jobs/jobs-local/src/index.ts#L329-L365","documentation":"Error \"unknown job ${id}\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/jobs/jobs-local/src/index.ts:347 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use a job id returned by job_start or job_list; the job may already have finished and been reaped."],"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"}