A ledger for paid steps that Temporal might retry
In my video-call app, a paid API call could be billed twice and the run would still end as a success. If a request reaches the provider and only the reply is lost, the retry bills a second time, and the second reply looks like a normal success. After a call is recorded, the app can transcribe the file, summarize the transcript, upload it, save the results and notify the participants. Two of those steps are paid calls, today ElevenLabs for the transcript and Anthropic for the summary. The chain uses Temporal, a workflow engine: it performs the steps, stores the progress in a database and resumes the job after a crash or a deploy. To resume, it retries the interrupted step, which is how the second bill happens. ...