{"record":{"id":"f24ad9d4bd64534e","repo":"coleam00/Archon","slug":"cannot-read-the-workflow-source-configuration-in","errorCode":null,"errorMessage":"Cannot read the workflow source configuration in ${cwd}: ${(error as Error).message}","messagePattern":"Cannot read the workflow source configuration in (.+?): (.+?)","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/cli/src/commands/workflow.ts","lineNumber":1124,"sourceCode":" * Run every declared dry-run fixture and report per-fixture pass/fail (#2772).\n *\n * Read-only by construction — the only execution path is `dryRunWorkflow`, so no\n * run state is created and no provider is contacted. Returns the process exit code:\n * 0 when everything passes (including the nothing-declared case), 1 when any fixture\n * fails, a workflow cannot load, or an explicitly named target has none.\n */\nexport async function workflowTestCommand(\n  cwd: string,\n  target: string | undefined,\n  options: { json?: boolean; targetCwd?: string } = {}\n): Promise<number> {\n  const { workflows, errors } = await loadWorkflows(cwd);\n  // The fixture runner freezes this repo's source before executing anything, exactly as\n  // `workflow run` does, and this config decides which directories get frozen. A malformed\n  // one would silently narrow that set, so it fails here instead; `loadConfig` returns\n  // defaults when there is simply no config file.\n  const config = await loadConfig(cwd).catch((error: unknown) => {\n    throw new Error(\n      `Cannot read the workflow source configuration in ${cwd}: ${(error as Error).message}`\n    );\n  });\n  let report: Awaited<ReturnType<typeof runFixtures>>;\n  try {\n    report = await runFixtures({\n      workflows,\n      cwd,\n      ...(options.targetCwd !== undefined ? { targetCwd: options.targetCwd } : {}),\n      sourceConfig: workflowSourceConfigFrom(config),\n      ...(target !== undefined ? { target } : {}),\n    });\n  } catch (error) {\n    if (errors.length === 0) throw error;\n    const message = error instanceof Error ? error.message : String(error);\n    if (options.json) {\n      await writeJsonLine({\n        ok: false,","sourceCodeStart":1106,"sourceCodeEnd":1142,"githubUrl":"https://github.com/coleam00/Archon/blob/0773b9745896ef0612e709c80845a0f7db315b19/packages/cli/src/commands/workflow.ts#L1106-L1142","documentation":"Error \"Cannot read the workflow source configuration in ${cwd}: ${(error as Error).message}\" thrown in coleam00/Archon.","triggerScenarios":"Thrown at packages/cli/src/commands/workflow.ts:1124 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"}