{"record":{"id":"a862082c541c2a1b","repo":"Fission-AI/OpenSpec","slug":"invalid-operations-field-in-config-must-be-obje","errorCode":null,"errorMessage":"Invalid 'operations' field in config (must be object)","messagePattern":"Invalid 'operations' field in config \\(must be object\\)","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/core/project-config.ts","lineNumber":126,"sourceCode":"  const context =\n    projectConfig?.context !== undefined && projectConfig.context.trim().length > 0\n      ? projectConfig.context\n      : undefined;\n  const guidance = projectConfig?.operations?.[operationId]?.guidance;\n  const operationGuidance = guidance && guidance.length > 0 ? guidance : undefined;\n\n  return {\n    ...(context !== undefined ? { context } : {}),\n    ...(operationGuidance !== undefined ? { operationGuidance } : {}),\n  };\n}\n\nfunction parseOperations(raw: unknown): OperationsConfig | undefined {\n  if (raw === undefined) {\n    return undefined;\n  }\n  if (!raw || typeof raw !== 'object' || Array.isArray(raw)) {\n    console.warn(`Invalid 'operations' field in config (must be object)`);\n    return undefined;\n  }\n\n  const supported = new Set<string>(OPERATION_IDS);\n  const operations: OperationsConfig = {};\n\n  for (const [operationId, value] of Object.entries(raw)) {\n    if (!supported.has(operationId)) {\n      console.warn(\n        `Unknown operation ID '${operationId}' in config. Supported operation IDs: ${OPERATION_IDS.join(', ')}`\n      );\n      continue;\n    }\n\n    const typedOperationId = operationId as OperationId;\n    if (!value || typeof value !== 'object' || Array.isArray(value)) {\n      console.warn(\n        `Invalid 'operations.${operationId}' field in config (must be object), ignoring this operation`","sourceCodeStart":108,"sourceCodeEnd":144,"githubUrl":"https://github.com/Fission-AI/OpenSpec/blob/6926ccb18afa4ff621112813e9968334576ee11a/src/core/project-config.ts#L108-L144","documentation":"Error \"Invalid 'operations' field in config (must be object)\" thrown in Fission-AI/OpenSpec.","triggerScenarios":"Thrown at src/core/project-config.ts:126 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":"6926ccb18afa4ff621112813e9968334576ee11a","analyzedAt":"2026-08-25T12:29:45.729Z","schemaVersion":2},"datasetVersion":"2026-08-25T16:17:27.014Z"}