{"record":{"id":"2106903aeaf2bd1d","repo":"deepseek-ai/deepseek-harness","slug":"row-s-published-process-global-service-s-leak","errorCode":null,"errorMessage":"row(s) published process-global service(s) [${leaked.join(', ')}]; a preset service must sit behind an `isolate` realm or move to the host composition","messagePattern":"row\\(s\\) published process-global service\\(s\\) \\[(.+?)\\]; a preset service must sit behind an `isolate` realm or move to the host composition","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/preset/agent-presets/src/mount.ts","lineNumber":363,"sourceCode":"  if (agentCtx.baseUrl !== undefined) harnessBase.set(config, agentCtx.baseUrl)\n  // Before the record this mount is about to add: standing mounts are one per\n  // preset and live until whole-tree teardown, so pruning here only sweeps\n  // records of torn-down runtimes (tests; an HMR reload of the roster).\n  pruneDisposedMounts()\n  const handle = agentCtx.plugin(PresetTree, config)\n  try {\n    await handle.await()\n    const subtree = mounted.get(config)\n    /* v8 ignore next -- the subclass constructor runs before `await()` settles for every mounted tree */\n    if (subtree === undefined) throw new Error('mounted subtree did not publish its entry tree')\n    const { tree, fiber } = subtree\n    const unusable = inactiveRows(tree)\n    if (unusable.length > 0) {\n      throw new Error(`${String(unusable.length)} row(s) did not activate:\\n${unusable.join('\\n')}`)\n    }\n    const leaked = leakedServices(agentCtx, fiber)\n    if (leaked.length > 0) {\n      throw new Error(\n        `row(s) published process-global service(s) [${leaked.join(', ')}]; `\n        + 'a preset service must sit behind an `isolate` realm or move to the host composition',\n      )\n    }\n    mounts.add({ presetId: preset.id, fiber, key: scopeOf(agentCtx) })\n  } catch (error) {\n    try {\n      await handle.dispose()\n    /* v8 ignore next 5 -- teardown of a subtree nothing else references has no\n       observed failure mode; the guard exists so a teardown error cannot\n       replace the mount diagnostic the caller needs. */\n    } catch {\n      // Swallows only this subtree's teardown failure. The mount error below is\n      // the actionable one, and the discarded fiber is unreachable either way.\n    }\n    throw new PresetMountError(preset.id, `${mountDetail(error)} (${preset.path})`, { cause: error })\n  }\n}","sourceCodeStart":345,"sourceCodeEnd":381,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/preset/agent-presets/src/mount.ts#L345-L381","documentation":"Error \"row(s) published process-global service(s) [${leaked.join(', ')}]; a preset service must sit behind an `isolate` realm or move to the host composition\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/preset/agent-presets/src/mount.ts:363 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Put the preset service behind an isolate realm, or move it to the host composition."],"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"}