> ## Documentation Index
> Fetch the complete documentation index at: https://docs.khanhng.com/llms.txt
> Use this file to discover all available pages before exploring further.

# AD-001 Durable Orchestration

## Context

Refund claims need asynchronous scanning, extraction, assessment, a reviewer wait, timeout handling, payment retries, and webhook updates.

## Decision

Use Azure Durable Functions to own long-running workflow state, retries, timers, and external approval events.

**Status:** Approved design.

## Alternatives

\[OWNER INPUT REQUIRED: alternatives considered in the design review.]

## Consequences

The workflow can wait for a reviewer without occupying a request thread and can resume from durable state.

Activities must be replay-safe. Payment calls require idempotency, and workflow state must be correlated with the claim.

## Date and evidence

Decision date: \[OWNER INPUT REQUIRED: decision date].

Evidence: repository `GUIDE.md`, sections 1 and 14. The guide explicitly assigns long-running state and approval waits to Durable Functions.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.