coleam00/Archon · error · Error
Failed to capture workflow source from ${sourceRoot}: ${(err
Error message
Failed to capture workflow source from ${sourceRoot}: ${(error as Error).message} What it means
Error "Failed to capture workflow source from ${sourceRoot}: ${(error as Error).message}" thrown in coleam00/Archon.
Source
Thrown at packages/cli/src/commands/workflow.ts:1587
// THAT checkout's `.archon`, not the parent checkout's bytes captured on entry — the
// branch may carry a different workflow YAML, and executing one against the other is
// exactly the mixed-vintage defect (#2660/#2747). Re-freeze the source and re-discover
// from the lane path once the lane resolves it.
const recaptureForLane = async (sourceRoot: string): Promise<void> => {
try {
const replacement = await prepareWorkflowSource(createWorkflowDeps(), {
sourceRoot,
...(detachedPreCreatedRun ? { runId: detachedPreCreatedRun.id } : {}),
});
owner.hold(replacement);
originalStagedRoot = replacement.captureRoot;
const stale = preparedSource;
preparedSource = replacement;
if (stale) {
rmSync(stale.captureRoot, { recursive: true, force: true });
}
} catch (error) {
throw new Error(
`Failed to capture workflow source from ${sourceRoot}: ${(error as Error).message}`
);
}
const rediscovered = await discoverWorkflowsWithConfig(
sourceRoot,
loadConfig,
preparedSource.roots
);
workflowEntries = rediscovered.workflows;
errors = rediscovered.errors;
workflow = resolveWorkflowName(
workflowName,
workflowEntries.map(ws => ws.workflow)
);
workflowEntry = workflow ? workflowEntries.find(ws => ws.workflow === workflow) : undefined;
workflowSource = workflowEntry?.source;
if (!workflow) {
const availableWorkflows = workflowEntries.map(ws => ` - ${ws.workflow.name}`).join('\n');View on GitHub (pinned to 0773b97458)
When it happens
Trigger: Thrown at packages/cli/src/commands/workflow.ts:1587 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/9cb3b08255fd8c70.
Report an issue: GitHub.