Interactive engineering lab

Approval arrival order: dropped, buffered and token-gated decisions

Approval arrival order: dropped, buffered and token-gated decisions. Replay early, duplicate and late approvals against five receiving policies.

By Sandeep Belgavi · Published 2026-11-07

Synthetic fixtures computed locally. No model or production service is contacted.

Experiment workspace

Decision trace

    The question this experiment answers

    An agent drafts a refund for a Belgavi's Book Store help-desk case, and Geetha can open the draft from a preview link while the workflow is still preparing it. If Geetha approves before the workflow reaches its wait, does the approval reach the wait, reach the wrong draft, or vanish? Pick how the receiving side handles a decision that arrives early and replay a timeline of previews, revisions, waits, decisions and worker restarts.

    Change one assumption at a time

    Start from a preset and change one control. In early_click_drop switch the policy to inbox and the approval is applied the moment the wait starts. In early_click_crash switch memory to inbox and the decision survives the restart. In revise_after_click switch inbox_case to inbox and the approval of version 1 is no longer applied to version 2. In token_gated set the resubmit delay to 0 and the request escalates. In double_click change first to last and the second click overturns the first. Timeline lines look like 4 decide R1 1 approve, 6 wait R1 1 or 5 crash.

    Expected outcomes

    early_click_drop: the approval gets a 409 and is lost, and R1 escalates at minute 66. early_click_inbox: the stored approval is applied at minute 6. early_click_crash: the decision buffered in memory is lost in the restart. revise_after_click: the approval of version 1 is applied to the wait on version 2, flagged as wrong version. revise_versioned: the old approval is kept for audit, and the workflow proceeds at minute 30 on the approval of version 2. token_gated: the early click is refused, the resubmission at minute 20 is applied. double_click: the first decision stands. late_after_deadline: the wait escalates at minute 10 and the approval at minute 12 is recorded only. These match the companion Python model.

    Read the table and the trace

    The metrics give the verdict, the outcome per request, when the workflow proceeded and how many decisions were applied, lost, applied to the wrong version, refused or escalated. The table lists every submitted decision with the version it was about and what the receiving side did with it. The trace explains each event in order, including deadlines and restarts, and ends with a summary.

    Reset and export

    Reset inputs restores the selected preset and recomputes. Export JSON downloads the inputs, every decision row, the metrics, the trace and the stated limits, which can serve as a test fixture for a real approval endpoint.

    Limits

    A rule model with one workflow per request and instant delivery; network failures, engine retries and concurrent workers are not modelled. Temporal signals and AWS Step Functions task tokens are summarised from their documentation, not run. Times are synthetic minutes, and requests, drafts and reviewers are invented.

    Views are my own and do not represent any employer, past or present.