An uncertain result is different from a confirmed failure. Retrying a write without reconciling its operation ID can create the same mutation twice. Track completed identities and new work together, including duplicate proposals within the same batch, before deciding which operation to execute.
For each case.operations entry, use operation_id as the identity. Execute once when it is absent from case.completed and from earlier operations. Return executed IDs in first appearance order plus sorted already_completed IDs that were skipped. A retry must not create a second mutation.
The notebook executes your Python against an original local mock. Use the supplied case rather than copying visible values. The hidden checks change identities, revisions and boundary inputs; no provider endpoint or external tool is contacted.
An example implementation of the function contract.