coleam00/Archon · error · Error
Failed to capture workflow source from ${effectiveDiscoveryC
Error message
Failed to capture workflow source from ${effectiveDiscoveryCwd}: ${(error as Error).message} What it means
Error "Failed to capture workflow source from ${effectiveDiscoveryCwd}: ${(error as Error).message}" thrown in coleam00/Archon.
Source
Thrown at packages/cli/src/commands/workflow.ts:1527
// `finalizeWorkflowSource` (workflow.ts:1749) reassigns `preparedSource` to a
// new object whose `captureRoot` is the LIVE artifacts directory the run
// executes from — rm-ing `preparedSource.captureRoot` on Ctrl-C mid-run would
// destroy the run's source. The original staged path is renamed away by
// either `finalizeWorkflowSource` (container) or `executeWorkflow`'s rename
// (everything else), so an `rm` against it is a no-op once prep has moved it.
let originalStagedRoot: string | undefined;
if (!isContinuation && !options.dryRun && !options.stubsInitPath) {
try {
preparedSource = await prepareWorkflowSource(createWorkflowDeps(), {
sourceRoot: effectiveDiscoveryCwd,
// Keep the capture filed under the run it belongs to when the row already exists.
...(detachedPreCreatedRun ? { runId: detachedPreCreatedRun.id } : {}),
});
// From here the owner reclaims it unless a run adopts it, whichever way we leave.
owner.hold(preparedSource);
originalStagedRoot = preparedSource.captureRoot;
} catch (error) {
throw new Error(
`Failed to capture workflow source from ${effectiveDiscoveryCwd}: ${(error as Error).message}`
);
}
}
// A resolved continuation already discovered over its own roots; reusing that result is
// what keeps a resume from paying digest verification and full discovery twice.
// Mutable: an adopt lane that runs inside the adopted run's worktree re-freezes and
// re-discovers from THAT checkout once its path is known (see recaptureForLane).
let { workflows: workflowEntries, errors } = continuation
? { workflows: continuation.workflows, errors: continuation.errors }
: preparedSource
? await discoverWorkflowsWithConfig(cwd, loadConfig, preparedSource.roots)
: await loadWorkflows(effectiveDiscoveryCwd);
const sourceCounts = countWorkflowSources(workflowEntries);
if (!options.json && !options.quiet) {
console.log(View on GitHub (pinned to 0773b97458)
When it happens
Trigger: Thrown at packages/cli/src/commands/workflow.ts:1527 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/f809daa00960e0a1.
Report an issue: GitHub.