Define your record
Use an application-generated operation ID that survives retries and restarts. The following is an example application schema, not an SDK envelope:Receive and accept
Onmessage_received, the receiving application:
- Checks the sender address against its enrolled users or devices.
- Parses the schema and validates the requested action.
- Looks up the operation ID to detect a replay of work it already accepted.
- Commits the operation and acceptance result in one local transaction.
- Sends an application receipt to the sender using
sendMessage.
operationId, status, acceptedAt and the receiving application’s record ID. Send it over the encrypted messaging path. If the same operation arrives again, return the stored result rather than executing it again.
Do not send an acceptance receipt before the local commit succeeds. If a person must approve the handoff, record and acknowledge acceptance after that decision.

