{"record":{"id":"10e7748e9fc63f2f","repo":"deepseek-ai/deepseek-harness","slug":"tool-fs-search-gracems-must-be-no-greater-than","errorCode":null,"errorMessage":"tool-fs-search: graceMs must be no greater than ${MAX_TIMER_DELAY_MS}","messagePattern":"tool-fs-search: graceMs must be no greater than (.+?)","errorType":"validation","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/fs/tool-fs-search/src/index.ts","lineNumber":138,"sourceCode":" * Register the `glob`/`grep` filesystem discovery tool suite. The packaged\n * ripgrep binary is always available (an npm dependency), so registration is\n * unconditional.\n *\n * @param ctx - plugin context; registrations are effects scoped to this plugin.\n * @param config - resolved plugin configuration from schemastery.\n */\n// oxlint-disable-next-line typescript/require-await -- async keeps a load-time config rejection a rejection, not a synchronous throw\nexport async function apply(ctx: Context, config: Config): Promise<void> {\n  // schemastery (Config) has already filled every defaulted field.\n  const resolved = config as ResolvedConfig\n  assertPositiveInteger('globMaxResults', resolved.globMaxResults)\n  assertPositiveInteger('grepMaxMatches', resolved.grepMaxMatches)\n  assertPositiveInteger('grepMaxLineBytes', resolved.grepMaxLineBytes)\n  assertPositiveInteger('searchMetaMaxBytes', resolved.searchMetaMaxBytes)\n  assertPositiveInteger('rawOutputMaxBytes', resolved.rawOutputMaxBytes)\n  assertPositiveInteger('graceMs', resolved.graceMs)\n  if (resolved.graceMs > MAX_TIMER_DELAY_MS) {\n    throw new Error(`tool-fs-search: graceMs must be no greater than ${MAX_TIMER_DELAY_MS}`)\n  }\n  assertPositiveInteger('stderrMaxBytes', resolved.stderrMaxBytes)\n  assertPositiveInteger('timeoutMs', resolved.timeoutMs)\n  applyGlobTool(ctx, {\n    sampleOverCapGlobResults: resolved.sampleOverCapGlobResults,\n    maxResults: resolved.globMaxResults,\n    maxMetaBytes: resolved.searchMetaMaxBytes,\n    rawOutputMaxBytes: resolved.rawOutputMaxBytes,\n    graceMs: resolved.graceMs,\n    stderrMaxBytes: resolved.stderrMaxBytes,\n    timeoutMs: resolved.timeoutMs,\n  })\n  applyGrepTool(ctx, {\n    maxMatches: resolved.grepMaxMatches,\n    maxLineBytes: resolved.grepMaxLineBytes,\n    maxMetaBytes: resolved.searchMetaMaxBytes,\n    rawOutputMaxBytes: resolved.rawOutputMaxBytes,\n    graceMs: resolved.graceMs,","sourceCodeStart":120,"sourceCodeEnd":156,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/fs/tool-fs-search/src/index.ts#L120-L156","documentation":"Error \"tool-fs-search: graceMs must be no greater than ${MAX_TIMER_DELAY_MS}\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/fs/tool-fs-search/src/index.ts:138 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"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"}