Ashley Flowers

Work · A high-growth insurtech · August 2026

The latency nobody could see

A speed-to-lead SLA that kept regressing, inside a managed package with no readable source

What was happening

New business at this company runs on speed to lead. A prospect requests a quote, the system creates an opportunity, the opportunity is assigned to a sales agent, and the agent calls. The commitment the business made to itself was that 95% of those calls happen inside the target window.

Earlier in the year we had hit that number for the first time, after a rebuild that consolidated fragmented conversion logic into a single path and collapsed twenty-six separate opportunity distributors down to two. Assignment was landing in under a minute from creation.

Then it started slipping. Not dramatically, and not all at once. Compliance would drop a few points, someone would adjust routing configuration, it would recover for a few days, and then it would slide again. We went through several rounds of that. Each fix was plausible, each fix worked briefly, and none of them held.

That pattern is the actual finding, and it took me too long to treat it as one. When a targeted change produces a real but temporary improvement, the thing you changed is usually not the thing that is wrong. You are moving load around inside a constraint you have not found yet.

What was actually wrong

Assignment ran inside a managed package. I could configure it and I could observe it, but I could not read its source. That rules out the normal method, which is to read the code and reason about it, so I needed a way to reconstruct cause from the outside.

Two steps got there.

First, I broke time-to-call down to daily granularity instead of looking at the monthly compliance figure. A monthly average smears a step change into a slope. At daily resolution there was a clean shift point: performance before that date, materially worse after it, with no gradual drift between them. A step change means a discrete event, which means something in the system was different on one specific day.

Second, I needed to know what changed on that day inside a package I could not read. The org was taking nightly configuration backups, originally for disaster recovery. I pulled the snapshots from either side of the shift point and diffed them.

The change was not in my team's configuration. It was a member-resolution change on routing owned by two other departments.

That only matters because of how the engine actually works, which the diff forced me to understand. Assignment does not run per team and it does not run on an event. It runs as a single shared periodic sweep that walks every team's routing configuration in sequence, at over ninety seconds per pass. Every department shares one runtime. When another department's rules got more expensive to evaluate, every pass got longer, and the added latency landed on everyone's assignment, including mine.

One shared sweep, one shared clock, and no isolation between tenants of it.

What I did

The technical fix was the smaller half. The useful half was changing what kind of problem everyone thought this was.

Up to that point it had been handled as an operational issue belonging to my team: our SLA, our numbers, our configuration to tune. I escalated it as a reframe instead. The sentence I used was that this is an architecture decision, not an operational one. A single shared runtime with no per-team isolation means any department can degrade every other department's assignment latency without touching their configuration, without any signal that they have done it, and without anyone owning the interaction. No amount of local tuning fixes that, because the failure is in the coupling.

That landed, and the multi-team causation model was adopted at the executive level in writing the following day. It mattered that the evidence was a configuration diff and a daily time series rather than an argument. People reasonably resist an architectural claim; they do not resist a dated diff.

Then I left governance behind, because a diagnosis that depends on me being in the room is not finished. Everyone with edit access to routing now shares an admin channel, so a change to one team's rules is visible to the others before it is a mystery. Metric checks run on a schedule rather than when someone notices a problem.

What I decided against

Continuing to patch our own configuration. It was working, briefly, every time. That is exactly what makes it the trap. In a shared runtime, local optimization moves the cost rather than removing it, and each successful-looking patch buys a few more days of not finding the real cause.

Replacing the package. Tempting, and wrong at that moment. The regression was urgent, a replacement is a quarter of work minimum, and I did not yet understand the system well enough to specify what should replace it. Ripping out an engine you have just discovered you misunderstood is how you get a second engine you also misunderstand. Fix the latency, write down the architectural constraint, and let the replacement decision be made on its own timeline with the constraint known.

Escalating as a complaint about another team. The change those departments made was reasonable in isolation and nothing in the system told them it had a global cost. Framing it as their error would have been both unfair and tactically worse: it invites a defence instead of a decision, and it leaves the structural problem unaddressed because once someone is blamed, the issue looks resolved.

What happened

SLA compliance was back above 95% within twenty-one days of the escalation, and the governance left behind means a repeat shows up as a flagged change rather than as a month of unexplained drift.

The durable outcome is not the recovery. It is that the organization now holds an accurate model of how its assignment engine behaves, including the part where teams are coupled through a shared sweep, which was not written down anywhere before.

What I would change

The diagnostic path depended on backups that existed for an unrelated reason. Nightly configuration snapshots were a disaster recovery control, and their value as a change-history record for an opaque package was a lucky accident. That is a reasonable thing to discover once and an unreasonable thing to rely on. Treat configuration history for any black-box dependency as deliberate instrumentation with a known retention period, not as a side effect of a backup job.

I would also have found this faster by trusting the pattern earlier. Several rounds of fix-then-regress is a loud signal, and I spent too long treating each regression as a new problem instead of as the same problem continuing to be unsolved. Now, when a second targeted fix produces a temporary improvement, I stop fixing and go looking for the shared resource.

The last one is on measurement, not architecture. We were watching the monthly compliance number because that was the number the business cared about, and a monthly aggregate is structurally unable to show you a step change. The daily series cost nothing to build and should have existed before there was a problem to point it at.


Stack. Salesforce Service Cloud and Sales Cloud, a third-party managed routing package, assignment rules and queues, nightly metadata snapshots, SQL and BI reporting for the daily time series.

More case studies

Human approval, on purpose

An AI triage loop that proposes and drafts, and never closes the ticket itself

Twenty-eight rules in two languages

Replacing a branching routing monolith with a declarative classification layer