coleam00/Archon · error
Failed to list workflow events since ${after.toISOString()}:
Error message
Failed to list workflow events since ${after.toISOString()}: ${(error as Error).message} What it means
Error "Failed to list workflow events since ${after.toISOString()}: ${(error as Error).message}" thrown in coleam00/Archon.
Source
Thrown at packages/core/src/db/workflow-events.ts:251
let typeClause = '';
if (eventTypes && eventTypes.length > 0) {
const placeholders = eventTypes.map((_, i) => `$${String(i + 2)}`).join(', ');
typeClause = ` AND event_type IN (${placeholders})`;
params.push(...eventTypes);
}
params.push(limit);
const limitParam = `$${String(params.length)}`;
const result = await pool.query<WorkflowEventRow>(
`SELECT * FROM remote_agent_workflow_events
WHERE created_at >= $1${typeClause}
ORDER BY created_at ASC, COALESCE(event_order, 0) ASC, id ASC
LIMIT ${limitParam}`,
params
);
return [...result.rows].map(parseEventRow);
} catch (error) {
getLog().error({ err: error as Error }, 'db.workflow_events_list_since_failed');
throw new Error(
`Failed to list workflow events since ${after.toISOString()}: ${(error as Error).message}`
);
}
}
/**
* Return completed node outputs and cumulative usage (tokens AND cost) for a workflow
* run. Used by the DAG executor to restore state when resuming a failed run.
* Throws on DB error — caller owns the degradation policy.
*
* Both usage axes are summed from `node_completed` and `node_failed` rows, and only
* from rows that are not marked `data.aggregate`. Failed rows contribute spend but
* never completed outputs, so their nodes remain eligible for resume.
*
* This makes a run's total MONEY BURNED, not the cost of the surviving path — the
* figure an operator watching a budget wants, and a deliberate change from what the
* number meant before failed rows were summed (#2654). Three consequences follow, all
* intended:View on GitHub (pinned to 0773b97458)
When it happens
Trigger: Thrown at packages/core/src/db/workflow-events.ts:251 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/c2bc73b6ac90e6e0.
Report an issue: GitHub.