@adonis-agora/agent
Version:
Governed, durable-backed AI agent (chat + tool-calling + governance) for AdonisJS — part of the Agora ecosystem.
17 lines • 1.11 kB
TypeScript
/**
* Is this the durable runtime refusing a checkpoint position, rather than anything the agent did?
*
* Matched by NAME, and by suffix, because `@adonis-agora/durable` raises the same contract under two
* class names: the in-process engine throws `NonDeterminismError` and the remote replay context
* throws `WorkflowNondeterminismError`. Same cross-runtime reasoning as the `isControlFlowError`
* hook, and as `isControlFlowSignal`'s name check, which exist for exactly this reason on the
* suspend path.
*
* Callers must let these through untouched. Every `catch` in a workflow body reacts by writing more
* checkpoints (a toolfail, a run-end), and on a journal that has already diverged each of those asks
* for a position the history cannot supply — so the recovery attempt raises its own refusal, and
* THAT is the error the operator reads: a message pointing at the wrong seq, naming checkpoints from
* the recovery path rather than the two that actually disagreed.
*/
export declare function isReplayIntegrityError(error: unknown): boolean;
//# sourceMappingURL=replay-integrity.d.ts.map