Practice Elf audio companion · Lesson 04
Keep the Work Alive
812 words · approximately 5.6 minutes at 145 words per minute. Final audio will be checked against the target of five to eight minutes.
Full narration script
This is the audio companion to lesson four of Practice Elf: Worker Teams. The narration is generated with AI. Our fictional practice has an RCM item waiting on a credentialing question. Today we are going to interrupt the system and see whether the work survives.
Imagine the credentialing worker has gathered two documents, identified a conflict, and prepared a question for a reviewer. Then its process stops. Perhaps the computer restarts. Perhaps the service reaches a time limit. If the only record is the model's current context, the next worker may have to start over or guess what already happened.
A durable work ledger gives the replacement a reliable starting point. It records the work identifier, current owner, state, evidence references, relevant versions, dependencies, attempts, and next wake-up condition. The ledger is application state with access rules, not merely a paragraph the model remembers to write.
Think of the ledger as the practice's shared account of the job. It says what was requested, what was attempted, what was observed, and what remains unresolved. Keep an event history as the current state changes. Otherwise, a successful retry can erase the evidence needed to understand an earlier problem.
In our example, the RCM item waits on a credentialing dependency. The dependency is a separate work item with a narrow question and owner. When its accepted result arrives, the parent can resume. The parent should not be marked complete merely because the dependency was created, and the dependency should not be treated as resolved because a worker wrote a confident sentence.
Ownership also needs a technical rule. Two processes may receive the same queue message. Both may believe they should run. An atomic claim lets only one become the current owner. A lease can expire when the owner stops making progress, allowing another worker to take over.
But expiration alone is not enough. The original worker might wake up late and try to save a result after a replacement has taken ownership. A fencing token or equivalent version check lets the application reject that stale write. You do not need to memorize the term. Remember the purpose: an old owner cannot override the current owner simply because it eventually finishes.
External actions create a second problem. Suppose an approved request leaves Practice Elf, reaches the destination, and the connection drops before the response is saved. The system does not know whether the action happened. Calling that a failure and immediately resending can duplicate the effect.
Use a stable identity for the logical operation across retries. Save what was sent and what was observed. When the result is uncertain, reconcile the original operation with the destination or route it to the exception owner. A new identifier for every retry defeats the point of preserving identity.
The destination matters. Some APIs enforce idempotency keys. Other systems expose a status lookup. Some require a manual reconciliation process. A local key does not magically make every remote system perform an action exactly once. The recovery contract must fit the actual integration.
The course uses several distinct states: queued, running, waiting for evidence, awaiting approval, confirmed complete, failed, and needs reconciliation. The exact names can vary. The distinction between waiting and complete should not. A task that requires human action needs a visible owner and next step, not a quiet disappearance from the active view.
Here is a useful three-way test. If success is confirmed, record the receipt and do not repeat the completed action. If a temporary failure is confirmed before the action occurred, retry within the approved policy. If the outcome is unknown after dispatch, reconcile before retrying. The third path is the one many demonstrations leave out.
Budgets and retry ceilings belong in the ledger as well. A worker should not repeatedly wake up against the same unresolved dependency forever. Preserve attempt counts, stop at the defined limit, and show what is needed to resume. Waiting for a person is a legitimate state when the remaining decision belongs to that person.
For your exercise, choose one external action in a proposed workflow. Describe what the system would know if it stopped immediately before dispatch, immediately after dispatch, and immediately after receiving a response but before saving it. For each point, write the safe next step and the evidence needed to take it.
Then repeat the exercise with two workers receiving the same event. Which one owns the task? How does the other know? What happens if the first owner returns late? These are practical acceptance questions, not exotic edge cases to postpone indefinitely.
The takeaway is that every interruption should leave a truthful, recoverable state. Durable ownership, operation identity, and reconciliation let the team continue without losing work or multiplying side effects. In the next lesson, we will apply that discipline to a narrow RCM lane and examine what the different kinds of claim evidence actually establish.