Interactive engineering lab

Review detour: entry rules, reviewer capacity and exit

Review detour: entry rules, reviewer capacity and exit. Route 30 synthetic agent decisions through review and see what is caught, held or released.

By Sandeep Belgavi · Published 2026-12-06

Synthetic local computation. No reviewer queue, registry or remote service is contacted.

Experiment workspace

Decision trace

    The mechanism

    A detour is a switchable path in front of the executor. When the detour is on and a proposed decision matches the entry rule, the decision waits in a review queue instead of executing. A reviewer works through the queue in arrival order at a fixed throughput. A decision that waits longer than the wait limit is either held, so the customer keeps waiting, or released unreviewed, so the risk is accepted. An optional exit rule switches the detour off after a number of clean reviews in a row.

    Synthetic fixture and controls

    The fixture is 30 synthetic help-desk decisions, CASE-6001 to CASE-6030, one per tick: 19 refunds, 6 address changes and 5 exchanges. Six are wrong: five large refunds (CASE-6004, 6009, 6015, 6022 and 6027) and one exchange (CASE-6013). Controls set the detour switch, the entry rule (every decision, refunds only, or refunds at or above an amount), reviewer throughput in reviews per 10 ticks, the wait limit in ticks, the timeout policy and the exit streak, where 0 means manual exit only.

    Expected outcomes

    The default routes refunds through review at 5 reviews per 10 ticks with a 6-tick limit and the release policy. 19 decisions are detoured, the queue peaks at 5, 4 wrong refunds are caught and 2 wrong decisions execute: the exchange, which the entry rule never detours, and CASE-6027, released unreviewed after 6 ticks. The hold policy catches 5, leaves only the exchange, and makes 3 decisions wait past the limit, the longest for 8 ticks. Routing every decision releases 12 unreviewed and catches only 2. An exit after 3 clean reviews switches the detour off at tick 16 and lets the refunds at ticks 22 and 27 through.

    Read the decisions

    Each trace line names the tick, what happened and why. Detoured lines show the queue length after the decision joined. Approved and rejected lines show how long the decision waited. Released lines mark decisions that passed the wait limit under the release policy, and overdue lines mark decisions that passed it under the hold policy. A detour off line shows the tick at which the exit rule fired. The summary counts what was caught and what executed wrong.

    Experiment before choosing settings

    Predict each run before pressing the button. Raise throughput one step at a time with the default entry rule and find the first value where nothing is released. Then route every decision and find the throughput that catches all six with no waiting; with this fixture it is 10 reviews per 10 ticks. Compare the release and hold policies at the same throughput and decide which failure your customers and your finance team can accept. Try the amount rule with different thresholds and note what it never sees. Export records the inputs, the counts and the full trace.

    Limits and production verification

    This is a deterministic tick model with one fixture, one reviewer queue in arrival order and a reviewer who never makes mistakes. Real reviewers slow down and make errors under load, arrivals are bursty, and wrong decisions are not known in advance. Before switching a detour on, measure real reviewer throughput and arrival rates, write down the wait limit and exit criteria, and read the linked article for what stays deterministic and when an agent is unnecessary.

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