CtrlK
BlogDocsLog inGet started
Tessl Logo

saga-orchestration

Implement saga patterns for distributed transactions and cross-aggregate workflows. Use when coordinating multi-step business processes, handling compensating transactions, or managing long-running workflows.

Install with Tessl CLI

npx tessl i github:Dicklesworthstone/pi_agent_rust --skill saga-orchestration
What are skills?

80

1.33x

Quality

70%

Does it follow best practices?

Impact

100%

1.33x

Average score across 3 eval scenarios

Optimize this skill with Tessl

npx tessl skill review --optimize ./tests/ext_conformance/artifacts/agents-wshobson/backend-development/skills/saga-orchestration/SKILL.md
SKILL.md
Review
Evals

Evaluation results

100%

57%

Patient Onboarding Saga

Orchestration saga implementation

Criteria
Without context
With context

SagaState enum

62%

100%

SagaStep fields

62%

100%

Saga dataclass fields

25%

100%

UUID for saga_id

0%

100%

ABC base orchestrator

12%

100%

Concrete saga extends base

83%

100%

Compensation in reverse order

100%

100%

Skip non-completed steps

87%

100%

COMPENSATING state set

100%

100%

FAILED after all compensated

0%

100%

Event payload saga_id and step_name

0%

100%

Compensation includes original_result

0%

100%

Completion and failure events

0%

100%

Without context: $0.3569 · 1m 36s · 12 turns · 12 in / 5,981 out tokens

With context: $0.7463 · 2m 40s · 26 turns · 25 in / 9,913 out tokens

100%

7%

Returns Processing Workflow

Choreography saga with event subscriptions

Criteria
Without context
With context

SagaContext dataclass

66%

100%

Event subscription wiring

100%

100%

Forward path via event publish

100%

100%

Compensation event subscriptions

100%

100%

Compensation publishes rollback events

100%

100%

saga_id propagated

70%

100%

No direct service coupling

100%

100%

In-memory event bus

100%

100%

Event flow documented

100%

100%

Without context: $0.4886 · 2m 15s · 12 turns · 12 in / 10,056 out tokens

With context: $1.0588 · 4m 7s · 23 turns · 23 in / 18,394 out tokens

100%

25%

Fund Transfer Saga with Bounded Wait Times

Saga step timeouts and failure handling

Criteria
Without context
With context

Timeout orchestrator class

100%

100%

timeout_at set to 5 minutes

0%

100%

Scheduler.schedule called

100%

100%

Unique timeout job key

100%

100%

Timeout check inspects executing status

83%

100%

handle_step_failed called on timeout

41%

100%

COMPENSATING state on failure

100%

100%

Reverse-order compensation

100%

100%

FAILED after all compensated

60%

100%

Timeout design documented

100%

100%

Without context: $0.5119 · 2m 13s · 19 turns · 19 in / 8,006 out tokens

With context: $1.2174 · 4m 32s · 36 turns · 274 in / 18,079 out tokens

Evaluated
Agent
Claude Code
Model
Claude Sonnet 4.6

Table of Contents

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.