coleam00/Archon · error · Error

Workflow '${workflowName}' failed to load: ${loadError.error

Error message

Workflow '${workflowName}' failed to load: ${loadError.error}

Fix the YAML file and try again.

What it means

Error "Workflow '${workflowName}' failed to load: ${loadError.error} Fix the YAML file and try again." thrown in coleam00/Archon.

Source

Thrown at packages/cli/src/commands/workflow.ts:1640

    await assertCliWorkflowRequirementsMet(workflow);
  };

  // Name the selection in the capture's manifest, now that it is known. The manifest is
  // outside the digest, so this records provenance without disturbing what was frozen.
  if (workflow && preparedSource) {
    await recordSelectedWorkflow(preparedSource.captureRoot, workflow.name);
  }

  if (!workflow) {
    // Check if the requested workflow had a load error
    const loadError = errors.find(
      e =>
        e.filename.replace(/\.ya?ml$/, '') === workflowName ||
        e.filename === `${workflowName}.yaml` ||
        e.filename === `${workflowName}.yml`
    );
    if (loadError) {
      throw new Error(
        `Workflow '${workflowName}' failed to load: ${loadError.error}\n\nFix the YAML file and try again.`
      );
    }
    const availableWorkflows = workflows.map(w => `  - ${w.name}`).join('\n');
    throw new Error(
      `Workflow '${workflowName}' not found.\n\nAvailable workflows:\n${availableWorkflows}`
    );
  }

  // Second half of the handed-over row's claim check (#2872): the row must belong to the
  // workflow being invoked. Checked here rather than at load because the row carries the
  // RESOLVED name its launcher selected, and resolution needs discovery. It catches an
  // id crossed between two concurrent detached launches, and the narrow window where the
  // child's re-capture resolves a different workflow than the parent did.
  if (detachedPreCreatedRun && detachedPreCreatedRun.workflow_name !== workflow.name) {
    throw new Error(
      `Cannot execute run '${detachedPreCreatedRun.id}': it belongs to workflow ` +
        `'${detachedPreCreatedRun.workflow_name}', not '${workflow.name}'.`

View on GitHub (pinned to 0773b97458)

When it happens

Trigger: Thrown at packages/cli/src/commands/workflow.ts:1640 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/aad6b48a516bdc82. Report an issue: GitHub.