paperclipai/paperclip · error · Error
Routine run ${run.id} failed: ${failureReason}
Error message
Routine run ${run.id} failed: ${failureReason} What it means
Post-run check in pipeline automation execution: the routine run recorded a failureReason, so the run is marked failed and the reason is surfaced in the error/log message. It is a reporting sentinel wrapping whatever downstream step failed, not a distinct fault; inspect run.failureReason for the root cause.
Source
Thrown at server/src/services/pipelines.ts:3011
variables,
},
variables,
descriptionAppendix: [
buildPipelineAutomationIssueTitlePrefix(detail),
buildPipelineStageEntryPreamble(detail),
buildPipelineCaseContextMarkdown({
...detail,
breakdownMechanics,
triggeringEventId: execution.triggeringEventId,
outputSummaries,
}),
].filter(Boolean).join("\n\n"),
});
if (!run.linkedIssueId) {
const failureReason = typeof run.failureReason === "string" && run.failureReason.trim().length > 0
? run.failureReason.trim()
: null;
throw new Error(
failureReason
? `Routine run ${run.id} failed: ${failureReason}`
: `Routine run ${run.id} did not create or coalesce an execution issue`,
);
}
const [updated] = await db
.update(pipelineAutomationExecutions)
.set({
status: "succeeded",
executionIssueId: run.linkedIssueId,
error: null,
updatedAt: nowDate(),
})
.where(eq(pipelineAutomationExecutions.id, execution.id))
.returning();
await db
.insert(pipelineCaseIssueLinks)
.values({View on GitHub (pinned to 120ae5428f)
Solutions
- Inspect the failure reason in the message and the run logs, fix the cause, and rerun the routine.
Defensive patterns
Strategy: try-catch
When it happens
Trigger: Thrown at server/src/services/pipelines.ts:3011 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of paperclipai/paperclip@120ae5428f (2026-08-18).
Data as JSON: /api/errors/79ffa4faaf6122b6.
Report an issue: GitHub.