Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
66 commits
Select commit Hold shift + click to select a range
eca74d6
Add initial skill for testing, which is simply Steve's skill (#1)
donald-pinckney Feb 2, 2026
5998c64
Use claude to merge Steve's, Max's, and Mason's skills. (#2)
donald-pinckney Feb 4, 2026
ff033bc
add simple feedback mechanism (#3)
donald-pinckney Feb 4, 2026
b8b74c0
Change skill name to kebab-case, for compatibility with Amp and Cline…
donald-pinckney Feb 13, 2026
d25073a
Clean up references/core/ai-integration.md
donald-pinckney Feb 13, 2026
b0fcfe3
Clean up references/core/common-gotchas.md
donald-pinckney Feb 13, 2026
e113399
Clean up references/core/common-gotchas.md
donald-pinckney Feb 13, 2026
2b6676f
Clean up references/core/determinism.md
donald-pinckney Feb 13, 2026
efc8ef2
Clean up references/core/determinism.md
donald-pinckney Feb 13, 2026
45497f4
Update error-reference.md
donald-pinckney Feb 17, 2026
f61d2ea
Update interactive-workflows.md
donald-pinckney Feb 17, 2026
1f4c53d
Clean up patterns.md
donald-pinckney Feb 17, 2026
3c19991
Cut shell scripts
donald-pinckney Feb 17, 2026
d237247
Edit troubleshooting.md
donald-pinckney Feb 17, 2026
5695854
remove interceptors for now
donald-pinckney Feb 18, 2026
e10cbb8
remove dynamic workflows
donald-pinckney Feb 18, 2026
d4d9921
clarify on heartbeating of async activity completions, and prompt it …
donald-pinckney Feb 18, 2026
1c185b6
Improve references/python/advanced-features.md
donald-pinckney Feb 18, 2026
e945f1d
Use explicit namespace in connect
donald-pinckney Feb 18, 2026
322f85a
remove duplicated content from determinism.md, clean up
donald-pinckney Feb 18, 2026
bb46cb4
Improve references/python/data-handling.md
donald-pinckney Feb 18, 2026
3dcccb8
Prefer start_to_close_timeout
donald-pinckney Feb 18, 2026
8b7dffa
don't explicitely provide defaults for retry policies
donald-pinckney Feb 18, 2026
f693cc7
error-handling.md cleanup
donald-pinckney Feb 18, 2026
3d43cd2
move idempotency patterns to patterns.md
donald-pinckney Feb 18, 2026
f0387e3
remove multi-param activities
donald-pinckney Feb 18, 2026
f36faca
small edits
donald-pinckney Feb 18, 2026
0bc69b2
Unify sandbox stuff into one file
donald-pinckney Feb 18, 2026
56dde75
local activities aren't experimental
donald-pinckney Feb 18, 2026
35c3bc5
Clean up references/python/sync-vs-async.md
donald-pinckney Feb 18, 2026
d61866b
Cleanup observability.md, remove duplicated search attributes
donald-pinckney Feb 19, 2026
ad4cc34
Cut otel for now
donald-pinckney Feb 19, 2026
f01763a
cut a lot of duplicate stuff from python gotchas, address comments
donald-pinckney Feb 20, 2026
cbfd857
de-duplicate content
donald-pinckney Feb 20, 2026
79ecaf3
Lots of improvements to testing
donald-pinckney Feb 20, 2026
663bbe4
cleanup to top level of skill (like CLI install instructions), and to…
donald-pinckney Feb 20, 2026
ec02f38
Improve patterns.md
donald-pinckney Feb 23, 2026
14da16a
clean up ai-patterns.md
donald-pinckney Feb 23, 2026
fd1af23
Update readme with installation instructions
donald-pinckney Feb 23, 2026
846cb44
remove ts directory
donald-pinckney Feb 23, 2026
0692311
De-couple core from python and TypeScript as much as possible
donald-pinckney Feb 23, 2026
83aa233
Remove TypeScript hints
donald-pinckney Feb 23, 2026
47ae2fd
add prompting for feedback at startup - wait for ethan on slack channel
donald-pinckney Feb 19, 2026
75c568d
shorten url
donald-pinckney Feb 19, 2026
3f972f9
Update slack channel
donald-pinckney Feb 23, 2026
99a2d4a
Automated pass over on python cleanup & deduplication
donald-pinckney Feb 27, 2026
87fe92e
Remove multi-patching from Python, since its obvious, dont waste toke…
donald-pinckney Mar 3, 2026
766f888
Add TypeScript (#31)
donald-pinckney Mar 7, 2026
8ad9233
Fix typos and reference links (#36)
donald-pinckney Mar 7, 2026
c73c9c0
quick edit to readme (#37)
donald-pinckney Mar 12, 2026
c013b87
Fix saga compensations to run under cancellation protection (#43)
donald-pinckney Mar 17, 2026
291f4e5
Update readme for public preview (#45)
donald-pinckney Mar 18, 2026
21d1d41
a few more readme tweaks (#46)
donald-pinckney Mar 18, 2026
6cd40f2
Add MIT License to the project (#47)
donald-pinckney Mar 18, 2026
e16c9b8
Add Go (supersedes other PR) (#38)
donald-pinckney Mar 19, 2026
b9a0728
Setup CODEOWNERS to AI SDK team (#48)
donald-pinckney Mar 19, 2026
29e4600
Align version number in SKILL.md and plugin.json. (#49)
donald-pinckney Mar 19, 2026
1cc4591
Merge branch 'main' into dev
donald-pinckney Mar 19, 2026
68ebe14
Fix typos and broken references across skill docs (#56)
jacksonlo Mar 31, 2026
b040ae1
Fix Python reference bugs: incorrect API name, syntax error, broken c…
trevoryao Mar 31, 2026
57c08ef
Add `@workflow.init` decorator to python.md Key Concepts (#57)
brianstrauch Mar 31, 2026
8369c65
Remove ASCII diagram, replace with prose. (#66)
donald-pinckney Apr 2, 2026
9b97cee
[fix] Add missing section to TS's observability (#65)
donald-pinckney Apr 2, 2026
0c8586b
Add Java SDK support (#42)
donald-pinckney Apr 2, 2026
7d5ae76
Reduce repetition in determinism sans sandboxing (#67)
donald-pinckney Apr 2, 2026
25eb553
Bump to 0.2.0 for Java release (#72)
donald-pinckney Apr 3, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Clean up references/core/common-gotchas.md
  • Loading branch information
donald-pinckney committed Feb 19, 2026
commit e1133991315327c45b75d6d1e4f65bc98669b4c7
65 changes: 17 additions & 48 deletions references/core/common-gotchas.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@

Common mistakes and anti-patterns in Temporal development. Learning from these saves significant debugging time.

## Idempotency Issues

### Non-Idempotent Activities
## Non-Idempotent Activities

**The Problem**: Activities may execute more than once due to retries or Worker failures. If an activity calls an external service without an idempotency key, you may charge a customer twice, send duplicate emails, or create duplicate records.

Expand All @@ -16,9 +14,7 @@ Common mistakes and anti-patterns in Temporal development. Learning from these s

**Note:** Local Activities skip the task queue for lower latency, but they're still subject to retries. The same idempotency rules apply.

## Replay Safety Violations

### Side Effects & Non-Determinism in Workflow Code
## Side Effects & Non-Determinism in Workflow Code

**The Problem**: Code in workflow functions runs on first execution AND on every replay. Any side effect (logging, notifications, metrics, etc.) will happen multiple times and non-deterministic code (IO, current time, random numbers, threading, etc.) won't replay correctly.

Expand All @@ -39,9 +35,7 @@ Common mistakes and anti-patterns in Temporal development. Learning from these s

See `references/core/determinism.md` for more info.

## Worker Management Issues

### Multiple Workers with Different Code
## Multiple Workers with Different Code

**The Problem**: If Worker A runs part of a workflow with code v1, then Worker B (with code v2) picks it up, replay may produce different Commands.

Expand All @@ -51,70 +45,45 @@ See `references/core/determinism.md` for more info.

**The Fix**:
- Use Worker Versioning for production deployments
- Use patching APIs
- During development: kill old workers before starting new ones
- Ensure all workers run identical code

### Stale Workflows During Development

**The Problem**: Workflows started with old code continue running after you change the code.
**Note:** Workflows started with old code continue running after you change the code, which can then induce the above issues. During development (NOT production), you may want to terminate stale workflows (`temporal workflow terminate --workflow-id <id>`), or use `find-stalled-workflows.sh` included in this skill to detect stuck workflows.

**Symptoms**:
- Workflows behave unexpectedly after code changes
- Non-determinism errors on previously-working workflows

**The Fix**:
- Terminate stale workflows: `temporal workflow terminate --workflow-id <id>`
- Use `find-stalled-workflows.sh` to detect stuck workflows
- In production, use versioning for backward compatibility

## Workflow Design Anti-Patterns

### The Mega Workflow

**The Problem**: Putting too much logic in a single workflow.

**Issues**:
- Hard to test and maintain
- Event history grows unbounded
- Single point of failure
- Difficult to reason about

**The Fix**:
- Keep workflows focused on a single responsibility
- Use Child Workflows for sub-processes
- Use Continue-as-New for long-running workflows
See `references/core/versioning.md` for more info.

### Failing Too Quickly
## Failing Activities Too Quickly

**The Problem**: Using aggressive retry policies that give up too easily.
**The Problem**: Using aggressive activity retry policies that give up too easily.

**Symptoms**:
- Workflows failing on transient errors
- Unnecessary workflow failures during brief outages

**The Fix**: Use appropriate retry policies. Let Temporal handle transient failures with exponential backoff. Reserve `maximum_attempts=1` for truly non-retryable operations.
**The Fix**: Use appropriate activity retry policies. Let Temporal handle transient failures with exponential backoff. Reserve `maximum_attempts=1` for truly non-retryable operations.

## Query Handler Mistakes
## Query Handler & Update Validator Mistakes

### Modifying State in Queries
### Modifying State in Queries & Update Validators

**The Problem**: Queries are read-only. Modifying state in a query handler causes non-determinism on replay because queries don't generate history events.
**The Problem**: Queries and update validators are read-only. Modifying state causes non-determinism on replay, and must strictly be avoided.

**Symptoms**:
- State inconsistencies after workflow replay
- Non-determinism errors

**The Fix**: Queries must only read state. Use Updates for operations that need to modify state AND return a result.
**The Fix**: Queries and update validators must only read state. Use Updates for operations that need to modify state AND return a result.

### Blocking in Queries
### Blocking in Queries & Update Validators

**The Problem**: Queries must return immediately. They cannot await activities, child workflows, timers, or conditions.
**The Problem**: Queries and update validators must return immediately. They cannot await activities, child workflows, timers, or conditions.

**Symptoms**:
- Query timeouts
- Query / update validators timeouts
- Deadlocks

**The Fix**: Queries return current state only. Use Signals or Updates to trigger async operations.
**The Fix**: Queries and update validators must only look at current state. Use Signals or Updates to trigger async operations.

### Query vs Signal vs Update

Expand Down