Replay and recovery
These words get used for different operations. They are not substitutes.
The production-core paths re-apply recorded ledger patches. They do not re-run DSL rules, and they do not call payment providers again. The matrix and the sandbox-only commands are on Replay.
| You want to | Operation | External effects |
|---|---|---|
| See what committed | Timeline inspection | None |
| See entity state at a past cursor | Historical entity read | None |
| Rebuild a projection table from committed events | Projection rebuild | None. Handlers only |
| Try a change without touching the original fork | Fork from a cursor | None until you submit a new intent on the fork |
| Correct a workflow | A new intent, including a repair intent | Whatever that intent’s side effects do |
| Re-drive a failed webhook delivery | The delivery worker’s own retry | The HTTP call can run again |
Replaying a projection does not retry a charge. Submitting the intent again can, unless the intent id or your rules make the second submit a no-op.
causet forensics and causet recovery replay are sandbox tooling. They are not the supported production repair path. See What runs today?.
Where a commit can still be invisible
A successful sync response means the ledger and the entity snapshot for that cursor were committed. It does not mean every projection query can see it.
The projection worker applies the event later and, on that path, writes the visibility watermark in the same transaction as the row change. If that event never arrives, a token query stays 409 for as long as the min-cursor flag is on. The cursor recovery scan does not publish the missing event. See Consistency and concurrency.
Failures by component
| Component | What a caller should expect |
|---|---|
| Rule rejection | The intent is rejected. No new commit. |
| Runtime or Postgres failure before commit | The intent does not commit. Retry only with the same idempotency key if you are unsure whether the commit landed. |
| Commit succeeded, projection worker has not applied | Entity read shows the new snapshot. A query can still be old. A token read is 409 until the watermark catches up, when the flag is on. |
| Kafka or the worker is down | The snapshot remains. Projection queries lag until the worker consumes. |
| Webhook delivery fails | The workflow commit is unchanged. Delivery retry can call the receiver again. |
Next steps
- Replay — command matrix
- Read consistency
- Idempotency