By Orch8 Engineering · Editorial policy
What Happens When a Slack Approval Expires?
Give each approval an ID, deadline, reviewer rule, and immutable subject. On expiry, close the request or deliberately create a replacement. A delayed or repeated Slack interaction should return the current state without reapplying a decision.
What is the practical answer?
Give each approval an ID, deadline, reviewer rule, and immutable subject. On expiry, close the request or deliberately create a replacement. A delayed or repeated Slack interaction should return the current state without reapplying a decision. An approval message is a view onto an operational record. Save request state as pending, approved, rejected, expired, or superseded, along with the subject it covers. Verify incoming Slack interactions according to the official request protocol and check that the actor is authorized for this request. A successful acknowledgment to Slack only confirms receipt. Evaluate the deadline and pending state with the state change so a timeout and a late click cannot both win. If the approval is reassigned, issue a replacement or update the authorization record under a defined policy. An old message may remain visible or be clicked despite a UI update, so the server must enforce the canonical state.
Evidence: Slack interaction acknowledgment and payloads · Reddit agent workflow implementation discussion
- Open approval with deadlineInput
- Wait for reviewerWait
- Check current state and actorDecision
- Resume valid decision onlyExternal action
Store the decision outside the message#
| What you find | What to do |
|---|---|
| Review arrives before deadline from authorized actor | record the decision and acknowledge it. |
| Click arrives after expiry | report the request as expired. |
| Click uses a replaced approval request | show the current replacement without forwarding the old decision. |
Tell reviewers which action is still valid#
Update the message with the final state when possible and give a late reviewer a useful response, such as expired or already approved. If continuing a workflow requires a signal, make that handoff recoverable after storing the decision. Audit the reviewer, request ID, subject, and decision time without collecting unrelated chat data.
Model the deadline and the reviewer decision together#
At 09:00, a workflow creates review R-20 with a 15-minute deadline. If the click arrives near 09:15, apply one authoritative cutoff and state transition. A workflow can choose whether accepted time means the time a verified interaction entered your system or the time a worker applied it, but that definition needs to be explicit and consistent.
Acknowledge Slack promptly according to its protocol and continue the business workflow after storing the accepted decision. If a listener loses its connection after acknowledgment, recover from the stored interaction or transition record. Tie duplicate detection to request and interaction identity so the same click cannot authorize a second action or overwrite a later final state.
Verify it with a failure drill#
Advance a test clock past a pending request’s deadline, then send its approval interaction twice and try a click on the replacement.
- Verify both late clicks leave the original expired and that only the authorized replacement can resume its intended workflow.
Sources and further reading
Official references support technical claims; community discussions are used only as problem signals.