Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Diagnoses and fixes non-determinism errors in Output SDK workflows that break Temporal replay, retries, or repeat runs.
55% 91%+36 ptsof test cases passed
Passed 20 of 22 test cases with the skill, and 12 of 22 without it.
After refactoring an Output SDK workflow to fix a non-determinism error, what CLI command should developers use to execute the workflow locally with input JSON and test determinism?
Recommends using npx output workflow run with target parameters.
This test ran on v1. v2 is the current version and hasn’t been tested on gemini-3.6-flash yet.
3 of 3 safety checks passed
This skill helps diagnose and fix non-determinism errors in Output SDK workflows. Workflows must be deterministic because Temporal may replay them during recovery or retries, and the replay must produce identical results.
You're seeing:
Temporal workflows must be deterministic: given the same input, they must always execute the same sequence of operations. This is because Temporal replays workflow history to recover state after crashes or restarts.
Non-deterministic operations break this replay mechanism because they produce different values each time.
Problem: Random values differ on each execution.
// WRONG: Non-deterministic
export default workflow( {
fn: async input => {
const id = Math.random().toString( 36 ); // Different each time!
return await processWithId( { id } );
}
} );
Solution: Pass random values as workflow input or generate in a step.
Next to this one in the catalogue, plus more from the same author.