coleam00/Archon · error · Error
Cannot read the workflow source configuration in ${cwd}: ${(
Error message
Cannot read the workflow source configuration in ${cwd}: ${(error as Error).message} What it means
Error "Cannot read the workflow source configuration in ${cwd}: ${(error as Error).message}" thrown in coleam00/Archon.
Source
Thrown at packages/cli/src/commands/workflow.ts:1124
* Run every declared dry-run fixture and report per-fixture pass/fail (#2772).
*
* Read-only by construction — the only execution path is `dryRunWorkflow`, so no
* run state is created and no provider is contacted. Returns the process exit code:
* 0 when everything passes (including the nothing-declared case), 1 when any fixture
* fails, a workflow cannot load, or an explicitly named target has none.
*/
export async function workflowTestCommand(
cwd: string,
target: string | undefined,
options: { json?: boolean; targetCwd?: string } = {}
): Promise<number> {
const { workflows, errors } = await loadWorkflows(cwd);
// The fixture runner freezes this repo's source before executing anything, exactly as
// `workflow run` does, and this config decides which directories get frozen. A malformed
// one would silently narrow that set, so it fails here instead; `loadConfig` returns
// defaults when there is simply no config file.
const config = await loadConfig(cwd).catch((error: unknown) => {
throw new Error(
`Cannot read the workflow source configuration in ${cwd}: ${(error as Error).message}`
);
});
let report: Awaited<ReturnType<typeof runFixtures>>;
try {
report = await runFixtures({
workflows,
cwd,
...(options.targetCwd !== undefined ? { targetCwd: options.targetCwd } : {}),
sourceConfig: workflowSourceConfigFrom(config),
...(target !== undefined ? { target } : {}),
});
} catch (error) {
if (errors.length === 0) throw error;
const message = error instanceof Error ? error.message : String(error);
if (options.json) {
await writeJsonLine({
ok: false,View on GitHub (pinned to 0773b97458)
When it happens
Trigger: Thrown at packages/cli/src/commands/workflow.ts:1124 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of coleam00/Archon@0773b97458 (2026-09-01).
Data as JSON: /api/errors/f24ad9d4bd64534e.
Report an issue: GitHub.