Before changing the queue
A simulated sales floor at an assumed scale of 3,200 leads a week, with three call centers dialing the same leads.
- Proposed change
- One center owns the next attempt. Other centers cannot make a competing call; ownership may transfer before a later attempt.
- Status
- Test onlyBy rule: the logs hold one policy, so no comparison exists. The same logs fit a gain and a loss.
- History read
- Split by lead, 8 weeks
- Confirmation
- Rollout decision
- One lead, simulated history
- Each tick is a call, colored by center; red below a tick marks a second center calling within 20 minutes; grey bands are closed hours.Lead 7,137 Google, arrived Tue 15:17
- Trade-off, favorable version
- +43 quotes a week, for 17.1 more agent hours of handling a week: workload, not proven paid staffing, and no collection gain shown. In the second-chance version: -39 quotes a week.
- Why it could reverse
- In the simulated history, leads answer later calls 0.54 times as often after a double call (interval 0.50 to 0.58). Either the double call annoys the lead, or cooling leads draw double calls and the second call is a real extra chance. The first says coordinate; the second says leave it.
- First step on real data
- Establish one lead identity across centers and the calls each lead actually received, reconcile policies to settled cash, then decide whether an experiment is warranted.
- Evidence needed
- Leads split at random when they are created, each kept in its arm across all three centers. Read on leads reached within 14 days, with quotes per reached lead and collected payments as guardrails. A favorable split leads to a confirmation step, not to rollout. Randomizing arrival weeks instead shares fewer agents, not none: 56% of calls fall outside the lead's arrival week.
- Deployment boundary
- Every new lead is eligible; the owner field is honored by every center's dialer; contact windows and the 10-call limit do not change. One interim look at week 4, on leads 14 days old by then: stop if leads reached per lead is below current at the 1% level.
- Review
- Operations director owns it. Reversed if the whole interval on leads reached per lead sits below 1.
Evidence needed, deployment boundary, review
Same logs, opposite effects
Three versions of this operation differ in one thing no log records: what the second call does to the lead. Under today's process they write the same logs, byte for byte; that is by construction, since the versions differ only in code today's process never runs. Five more leads from that history:
Annoyance
A second call within minutes annoys the lead, and later calls reach it less. One owner helps.
Near-null
The lead was cooling anyway, and the owner makes that call itself. Quotes barely move; the other centers' calls disappear.
Second chance
The lead was cooling anyway, and the other center's call was a real extra chance the owner's cadence does not replace. One owner hurts.
- Leads with a double call
- 45%, about 1,943 double calls and 4,606 agent minutes a week
- Later calls after a double call
- 0.54 times as likely to reach the lead, within bands of attempt number (1 to 5, 6 and more), lead age (five bands) and source
- The decision code, on these logs
- Test only in all three versions, by a rule written into it: one policy in the logs, no comparison. Not a finding.
- A dashboard rule, on these logs
- “They answer less after a double call, stop double calls”: roll out, in all three. In the second-chance version it does so in 40 of 40 runs.
The experiment that separates them
Half the leads get one owner at random when they are created; the other half keep today's process. Leads arrive for 8 weeks, each is read on its first 14 days, and the logs are extracted at the end of week 10.
| Version | Leads reached, owner vs current | Quotes per lead | Collected, owner / current | Decision code | Quote-maximizing choice in this simulation |
|---|---|---|---|---|---|
| Annoyance | 1.04 1.02 to 1.07 | 1.04 1.01 to 1.07 | 6 / 7 0.89, 0.25 to 3.08 | Proceed to confirmation | Change (+43 quotes a week) |
| Near-null | 1.00 0.98 to 1.02 | 1.00 0.97 to 1.03 | 12 / 9 1.38, 0.53 to 3.70 | Not yet | Neither, on quotes (0.0 a week, not significant); the owner rule saves 336 agent minutes a week |
| Second chance | 0.95 0.93 to 0.97 | 0.95 0.93 to 0.98 | 11 / 21 0.54, 0.24 to 1.17 | Keep current | Keep current (-39 quotes a week) |
One run of each version, seed 2026, fixed before any result. Ratios are owner arm over current arm with 95% intervals (collections: exact interval); the line marks 1. The arms hold 12,636 and 13,054 leads for a 50/50 split (p = 0.009; the comparison is voided below 0.001).
Changed since the previous version of this page
- Second chance now reads “keep current”, not “not yet”. Contacts are now counted within each lead's first 14 days, as the decision record says; before, later calls counted too. An outside review showed that this fix alone turns the earlier answer into “keep current”.
- The simulator now keeps its own limits. The earlier history had 37 calls after closing time and 25 leads called more than 10 times. Refusing those calls shifts every later random draw, so the same seed now gives a different run. The collection drop shown before (7 against 21, in the annoyance version) belonged to that run; in this one collections read 6 against 7, and the screen proceeds to confirmation.
- The collection guardrail works with zero payments. Before, zero payments in an arm made the comparison undefined and silently skipped the guardrail. It now uses an exact comparison; zero in both arms is reported as unresolved.
- The favorable version is worth less than shown before: +43 quotes a week against +73, once calls stay within opening hours and the 10-call limit and quotes are counted within 14 days.
- A favorable screen reads “proceed to confirmation”, not “roll out”: the bench tests this first stage, not the full rollout procedure.
How often each answer comes out over 30 runs, by how long the experiment runs:
What this simulation checks, and what it does not
It checks how often the first-stage screen reaches each answer when the truth is known, against holding the current policy and against the dashboard rule. It does not check the confirmation step or the rollout, and it is not an independent validation: I wrote the simulator, the scenarios and the decision code together, and the code changed after runs that included every scenario. The decision code cannot import the simulator; that stops one kind of leak, not favorable co-design.
| Case | True effect of full rollout | Screen, of 40 runs: proceed, not yet, keep | Proceeds where it hurts: code / dashboard rule | Weekly loss after the decision: code / hold / dashboard |
|---|---|---|---|---|
| Randomized by lead, 8 weeks | ||||
| Beneficial: overlaps annoy leads | +42.7±3.4 | 39, 1, 0 | not a harmful case | 1.1 / 42.7 / 0.0 |
| No quote effect: the owner makes the dial | 0.0±3.8 | 1, 38, 1 | not a harmful case | 0.0 / 0.0 / 0.0 |
| Harmful: the second dial was a real chance | -38.9±3.4 | 0, 1, 39 | 0 / 0code: 0.0% to 8.8% | 0.0 / 0.0 / 0.0 |
| History only, no experiment (by rule) | ||||
| History only, beneficial world | +42.7±3.4 | 0, 40, 0 | not a harmful case | 42.7 / 42.7 / 0.0 |
| History only, no-effect world | 0.0±3.8 | 0, 40, 0 | not a harmful case | 0.0 / 0.0 / 0.0 |
| History only, harmful world | -38.9±3.4 | 0, 40, 0 | 0 / 40code: 0.0% to 8.8% | 0.0 / 0.0 / 38.9 |
| A comparison that cannot carry the conclusion | ||||
| Before/after while leads drift, no-effect world | +2.7±3.2 | 0, 40, 0 | not a harmful case | 2.7 / 2.7 / 2.7 |
| Randomized arrival-week cohorts with carryover, 8 weeks | ||||
| Arrival-week cohorts, beneficial world | +42.7±3.4 | 19, 21, 0 | not a harmful case | 22.4 / 42.7 / 0.0 |
| Arrival-week cohorts, harmful world | -38.9±3.4 | 0, 23, 17 | 0 / 1code: 0.0% to 8.8% | 0.0 / 0.0 / 1.0 |
| Where the fast metric and the final outcome can disagree | ||||
| Closing script: more quotes, fewer collections | -1.57±0.23 | 0, 35, 5 | 0 / 40code: 0.0% to 8.8% | 0.00 / 0.00 / 1.57 |
| Closing script: more quotes, more collections | +0.15±0.31 | 2, 38, 0 | not a harmful case | 0.15 / 0.15 / 0.00 |
| Harder mechanisms, written with the bench before its first run | ||||
| Annoyance that wears off after a day | -8.3±3.8 | 0, 24, 16 | 0 / 1code: 0.0% to 8.8% | 0.0 / 0.0 / 0.2 |
| Overlaps land on hard-to-reach leads (harmful) | -26.2±3.7 | 0, 1, 39 | 0 / 0code: 0.0% to 8.8% | 0.0 / 0.0 / 0.0 |
| 15% fewer agents, arms compete harder | +18.7±3.2 | 12, 28, 0 | not a harmful case | 13.1 / 18.7 / 2.3 |
Effects and losses are in quotes a week for the ownership cases and in collected policies a week for the closing script; loss is what the chosen policy gives up each week against the quote-maximizing (or collection-maximizing) choice, not the cost of running the test. True effects are means over 30 paired runs, with their 95% margin; a case counts as harmful only where that whole interval is below zero. Counts carry Wilson 95% intervals: 0 of 40 still allows up to about 9%. Across the 10 cases with an experiment, the code's intervals contain the true ratio in 88% to 100% of runs, in these simulations only. Calls outside opening hours or beyond 10 per lead, over every bench run: 0.
Development history: everything that changed between bench runs
- Run 1 to run 2: a 14-day maturity rule; two weeks of dialing after the last lead; a case counts as harmful only when the true effect's whole interval is below zero. Run 2's counts under that definition were recomputed from its stored results; the file says so.
- Run 2 to run 3, after an outside review: a collection guardrail and a sample-ratio check.
- Run 3 to run 4, after a second review: contacts and quotes counted within each lead's first 14 days on a logged extraction clock; exact collection inference that works with zero events; the simulator's opening hours and 10-call limit enforced and counted; a favorable screen reads “proceed to confirmation”; a log-ratio interval for arrival-week cohorts (still approximate: 4 against 4 weeks, with carryover). What moved in the results: the favorable effect fell from +73 to +43 quotes a week; arrival-week cohorts now proceed in 19 of 40 favorable runs (33 before); the tighter-capacity case in 12 of 40 (39 before); the wearing-off annoyance became a harmful case (-8.3 quotes a week), and the screen never proceeded on it. The table shows run 4. Every run and the commit history are in the repository.
Planning, under stated assumptions
Volume only matters once a comparison is valid. Read as if 3 collected per 3,200 leads were a mature per-lead probability, with all 3,200 leads eligible and split in half: +20% takes about 288 weeks; +50% takes about 53 weeks; +100% takes about 16 weeks. A planning calculation, not a forecast for any real operation.
- Two independent proportions, fixed horizon, two-sided 5%, power 80%.
- Assumes the ratio above is a mature per-lead probability. A weekly count of 3 collected against 3,200 new leads is not shown to be one.
- Leads assumed independent and all eligible. Clustering by center or agent, restricted eligibility or several comparisons all lengthen it.
- Collected premium would also need the spread of premium amounts.
Before any of this, on real data
40 issued and 3 collected in the same week is a ratio, not yet a collection rate. The first check is to match each issued policy to its due date and to settled cash, older cohorts included: policy and lead IDs, issue and first due dates, payment attempts, settlements and reversals, amounts, statuses, event and ingestion times.
If the gap disappears after matching, the collection-failure hypothesis is rejected.
Decision record, a Foundry-oriented specification
What has to exist before the change runs, so its result can be judged after. A proposed mapping, not a deployed action.
- Evidence and choice: snapshot, cutoff, policy version, eligible population, baseline, expected effect, assumptions.
- Assignment and execution: unit, arm, probability, approval, exposure, the dialer's acknowledgement, eligible leads left untreated and why.
- Evaluation: outcome horizon, maturity rule, cost definition, stop conditions, review date, result, counterfactual.
Parameter ledger: assumed scale, assumed, not identified
| assumed scale | Leads per week: 3,200 | Sizes the synthetic operation, nothing else. |
| assumed scale | Quotes per week: 1,100 | Target for the synthetic funnel. |
| assumed scale | Issued policies per week: 40 | Target for the synthetic funnel. A weekly count, not a cohort. |
| assumed scale | Collected policies per week: 3 | Target for a RATE; each synthetic week draws its own count. |
| assumed scale | Ad spend per week: 164,000 MXN | Split between Meta and Google by us. |
| assumed scale | Call center cost per week: 234,000 MXN | Split between three centers at hourly rates set by us. |
| assumed | Three centers dial the same leads; an AI voice agent takes overflow | The structure of the synthetic operation. |
| assumed | Center hourly rates: 165 / 135 / 110 MXN | Chosen so the three add up to the assumed total. |
| assumed | Contact, quote, issue and collection probabilities: see truth.json | Tuned to land near the assumed weekly counts. |
| assumed | Hour-of-day response curve: see truth.json | People answer more after work. |
| assumed | Overlap rate between centers: 12% of dials | How often a second center dials within minutes. |
| not identified | What an overlap does to the lead: three worlds | The subject of the test: history cannot tell. |
| not identified | Payment delays, cancellations, cohort maturity | Not modelled: in this simulation a first payment is known at issue. |
| not identified | Fees, retained revenue, who pays which cost | Left out on purpose: no margin is computed. |
| assumed | Premium amounts: lognormal by source | Only used to fill the policy table. |
The decision record as JSON
{
"object_type": "AllocationDecision",
"decision_id": "next-contact-owner-001",
"evidence_and_choice": {
"snapshot": "synthetic, seed 2026: 8 weeks of enrollment, then 14 days of follow-up",
"cutoff": "extraction at the end of week 10; each lead read on its first 14 days",
"policy_version": "multi-center retries v0",
"eligible_population": "every new lead, all sources, all centers",
"baseline_metric": "leads reached per lead",
"proposed_change": "one center owns the next attempt; other centers cannot make a competing call; ownership may transfer before a later attempt",
"expected_effect": "unknown sign: not identified from history",
"assumptions": [
"overlap mechanism unknown"
]
},
"assignment_and_execution": {
"experimental_unit": "lead (canonical lead ID across all centers)",
"arms": [
"current",
"single owner"
],
"assignment_probability": 0.5,
"assignment_logged_at": "lead creation, before any dial",
"eligible_but_untreated": "logged with reason (no consent, outside contact window, duplicate)",
"approval": "operations director",
"exposure": "owner field honoured by every center's dialer",
"dialer_acknowledgement": "per-dial check that the dialing center is the owner",
"stop_conditions": [
"one interim look at week 4, on leads matured by then (arrived in weeks 1 and 2): stop if leads reached per lead is below current at the 1% level",
"any center dials outside the permitted window"
]
},
"evaluation": {
"outcome_horizon": "contact and quote: 14 days after lead creation; first payment: when mature",
"maturity_rule": "a lead counts once 14 days have passed. On real data a policy counts once its first due date has passed; in this simulation the first payment is known at issue.",
"cost_definition": "agent minutes per lead, from dialer handle time",
"review_after_weeks": 4,
"reversal_criterion": "interval on leads reached per lead entirely below 1",
"observed_result": null,
"counterfactual_estimate": null
}
}Simulator, decision code, bench runs, tests and the published run's logs: github.com/fred1433/queue-decision-test. Built 2026-09-27. No live AI on this page.