{"record":{"id":"eec07f421293573b","repo":"deepseek-ai/deepseek-harness","slug":"input-invalid","errorCode":"input-invalid","errorMessage":"wire field ${JSON.stringify(field)} failed boundary validation","messagePattern":"wire field (.+?) failed boundary validation","errorType":"validation","errorClass":"TypertGatewayError","httpStatus":null,"severity":"error","filePath":"packages/api/gateway/src/index.ts","lineNumber":629,"sourceCode":"  throw new TypertGatewayError('arguments-invalid', endpoint, `args fields do not match the descriptor: ${clauses.join('; ')}`)\n}\n\nfunction decode(\n  codec: TypertCodec,\n  value: unknown,\n  code: 'input-invalid' | 'result-invalid',\n  endpoint: string,\n  field: string,\n): unknown {\n  try {\n    if (codec.mode === 'strict') {\n      value = codec.schema.parse(value)\n      if (value === undefined) return value\n    }\n    assertJsonValue(value, new Set())\n    return value\n  } catch (cause) {\n    throw new TypertGatewayError(\n      code,\n      endpoint,\n      code === 'input-invalid'\n        ? `wire field ${JSON.stringify(field)} failed boundary validation`\n        : 'business result failed boundary validation',\n      { cause, field },\n    )\n  }\n}\n\nfunction assertJsonValue(value: unknown, ancestors: Set<object>): void {\n  if (value === null || typeof value === 'string' || typeof value === 'boolean') return\n  if (typeof value === 'number') {\n    if (Number.isFinite(value)) return\n    throw new TypeError('non-finite number is not JSON-safe')\n  }\n  if (!isObject(value)) throw new TypeError(`${typeof value} is not JSON-safe`)\n  if (ancestors.has(value)) throw new TypeError('cyclic value is not JSON-safe')","sourceCodeStart":611,"sourceCodeEnd":647,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/api/gateway/src/index.ts#L611-L647","documentation":"Error \"wire field ${JSON.stringify(field)} failed boundary validation\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/api/gateway/src/index.ts:629 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Fix the field value to satisfy the wire boundary validation for type and format."],"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"}