Workflow Determinism Troubleshooter

•
419
•

Diagnoses and resolves non-determinism errors in Output SDK workflows to ensure reliable execution and recovery.

This skill is a specialized diagnostic tool for developers building with the Output SDK and Temporal. It addresses the critical requirement that workflow functions must be deterministic to support state recovery and history replays. By scanning for common pitfalls like unshielded random number generation, timestamp calls, and dynamic imports, the skill helps prevent fatal 'non-deterministic' errors that cause workflows to crash during retries. It provides automated detection of problematic code patterns and offers concrete refactoring strategies to move side effects into steps or inputs.

主な機能

01Identifies illegal dynamic imports and environment variable access
02419 GitHub stars
03Analyzes workflow history to debug replay failures
04Provides automated grep-based scanning of workflow source files
05Detects non-deterministic functions like Math.random and Date.now
06Suggests refactoring patterns to migrate logic from workflows to steps

ユースケース

01Reviewing code for best practices before deploying Output SDK agents
02Ensuring AI workflow stability during Temporal recovery and retries
03Fixing 'non-deterministic' error messages in production workflow logs