{"record":{"id":"b39f11d2c28797c8","repo":"deepseek-ai/deepseek-harness","slug":"string-unusable-length-row-s-did-not-activate","errorCode":null,"errorMessage":"${String(unusable.length)} row(s) did not activate:\n${unusable.join('\\n')}","messagePattern":"(.+?) row\\(s\\) did not activate:\n(.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/preset/agent-presets/src/mount.ts","lineNumber":359,"sourceCode":"  // Captured before the subtree exists: the standing scope context still\n  // carries the host composition's base, which is inside the installed\n  // harness and is therefore where a row's package name has to resolve from.\n  /* v8 ignore next -- the Loader sets `baseUrl` on the root before any scoped context derives from it */\n  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.","sourceCodeStart":341,"sourceCodeEnd":377,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/preset/agent-presets/src/mount.ts#L341-L377","documentation":"Error \"${String(unusable.length)} row(s) did not activate:\n${unusable.join('\\n')}\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/preset/agent-presets/src/mount.ts:359 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Fix each listed row per its stated reason, then mount again."],"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"}