{"record":{"id":"cff935da01484c72","repo":"coleam00/Archon","slug":"invalid-workflows-config-in-configpath-iss","errorCode":null,"errorMessage":"Invalid workflows config in '${configPath}': ${issues}","messagePattern":"Invalid workflows config in '(.+?)': (.+?)","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/core/src/config/config-loader.ts","lineNumber":270,"sourceCode":"  } catch (error) {\n    const err = error as NodeJS.ErrnoException;\n    if (err.code !== 'EEXIST') {\n      // Only log if it's not a \"file exists\" error\n      getLog().warn({ err, configPath }, 'default_config_create_failed');\n    }\n  }\n}\n\nfunction validateWorkflowContinuationConfig(parsed: unknown, configPath: string): void {\n  if (typeof parsed !== 'object' || parsed === null || !('workflows' in parsed)) return;\n  const config = parsed as { workflows?: unknown };\n  if (config.workflows === undefined) return;\n  const result = workflowContinuationConfigSchema.safeParse(config.workflows);\n  if (!result.success) {\n    const issues = result.error.issues\n      .map(issue => `${issue.path.join('.') || '<root>'}: ${issue.message}`)\n      .join('; ');\n    throw new Error(`Invalid workflows config in '${configPath}': ${issues}`);\n  }\n  config.workflows = result.data;\n}\n\n/**\n * Load global config from ~/.archon/config.yaml\n * Creates default config if file doesn't exist\n */\nexport async function loadGlobalConfig(forceReload = false): Promise<GlobalConfig> {\n  if (cachedGlobalConfig && !forceReload) {\n    return cachedGlobalConfig;\n  }\n\n  const configPath = getArchonConfigPath();\n\n  try {\n    const content = await readConfigFile(configPath);\n    const parsed = parseYaml(content);","sourceCodeStart":252,"sourceCodeEnd":288,"githubUrl":"https://github.com/coleam00/Archon/blob/0773b9745896ef0612e709c80845a0f7db315b19/packages/core/src/config/config-loader.ts#L252-L288","documentation":"Error \"Invalid workflows config in '${configPath}': ${issues}\" thrown in coleam00/Archon.","triggerScenarios":"Thrown at packages/core/src/config/config-loader.ts:270 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":"0773b9745896ef0612e709c80845a0f7db315b19","analyzedAt":"2026-09-01T02:28:07.064Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-08T05:18:18.240Z"}