We shipped the approval flow in exactsend with one clock, and it felt finished: a human approves a send, the approval gets a TTL, and if nobody executes in time it dies.
Then a send got rescheduled.
The approval was still alive. The TTL had not run out. But the thing it had been approved for had moved (new time, new conditions) and the approval would have spent itself on it quite happily. Nobody had approved that send. They had approved the one before it.
That is when we accepted there are two clocks, and they measure different things.
expiresAt is about the human. In ApprovalDesk.approve it is decidedAt plus the action type's ttlMs, counted from the moment someone decided, because a decision goes stale on its own, regardless of what is being sent.
The window belongs to the revision the approver named. checkWindow holds notBefore and notAfter only, as non-negative safe integers of epoch milliseconds, in order, and no wider than the type's maxWindowMs. defineActionType refuses a maxWindowMs shorter than ttlMs.
So Executor.execute now reads the adapter's clock once and consults both bounds before it spends anything. Past expiresAt: approval-expired. Before notBefore or after notAfter: outside-window. Only after both checks does it call consumeAndRecordIntent with a fresh execution key, so a refusal on either clock leaves consumedAt null and the approval intact. You can come back later and see it was never used, instead of guessing whether a half-executed send happened.
The reschedule problem then solved itself. The approval binds a revision number, and a reschedule appends a new revision with its own window. It cannot move the window an existing approval is executed against. A new plan needs a new decision.
What we do differently now, across payment and compliance work generally: when something is approved, we record what it was approved against, not just when. The pointer is the safety property, and the timestamp is only half of it.
If you have built approval or release gates, it is worth checking whether your approval points at an immutable record or at the current state of one.