- Remove redundant newline from fmt.Println at line 325
- Add 9 comprehensive VersionConflictError tests to event_test.go:
* Error message formatting with context fields
* Field accessibility (ActorID, AttemptedVersion, CurrentVersion)
* Unwrap() method and error wrapping
* Sentinel error checking with errors.Is()
* Type assertion support with errors.As()
* Retry logic extraction of CurrentVersion
* Special character handling in ActorID
Co-Authored-By: Claude Code <noreply@anthropic.com>
Add comprehensive examples demonstrating standard retry patterns for
handling version conflicts during optimistic concurrency control:
- Pattern 1: Simple exponential backoff (recommended for most cases)
- Pattern 2: State reload and merge (deterministic, idempotent updates)
- Pattern 3: Circuit breaker (cascading failure prevention)
- Pattern 4: Jittered backoff (thundering herd prevention)
- Pattern 5: Conflict analysis and monitoring
Includes complete, runnable examples and a guide to choosing the right
pattern for different scenarios. Documents best practices for monitoring
and debugging version conflicts.
Closes#62
Co-Authored-By: Claude Code <noreply@anthropic.com>