BISWAS Bengali reliability markBISWASAGENTIC RELIABILITY & TRUST
← All stories

AI OBSERVABILITY · INCIDENT REVIEW

The AI assistant disappeared and no alarm rang

A feature flag in one product used up a shared rate limit, and customers of another product lost their AI assistant for hours while every AI dashboard stayed green. What happened, how it was fixed, and the per-tenant signals that would have caught it.

Deepak BiswasDeepak Biswas
12 November 2026 · 10 min read

A personal learning write-up, drawn from an incident review I studied and retold as a generalised case. The company, the products, the people, the dates and the exact counts are removed. Every code snippet, query, alert, metric name and tenant id below is written for this post and is not taken from any real system. The numbers are illustrative, and I picked them so you can check the arithmetic in your head.

A customer opened a page in a document tool their company pays for. It loaded fine. Up in the corner, where the AI assistant button normally sits, the button showed up for about a second and then went away. They refreshed. Same thing. A few customers got something stranger: a prompt telling them to upgrade their plan, on a plan that already included the AI assistant.

Nothing had failed. There wasn't an error to screenshot, and the AI dashboards were quiet: model latency normal, token usage normal, chat success at a hundred percent. Engineering heard about it from the support queue.

WHAT THE CUSTOMER SAW
Q3 planning notes
Ask AI

The page works. The button shows up after a refresh, then it’s gone.

WHAT ON-CALL SAW
1.8 smodel latency, p95
100%chat success rate
0model errors
0alerts fired
Figure 1. The customer’s view of the page (left) and the on-call dashboard (right) over the same hours. Dashboard values are illustrative.

I keep coming back to this incident review because nothing in it is exotic. A feature flag, a rate limit and a catch block. Most of us have shipped all three. I'll tell the story quickly and spend the rest of the post on the question the review couldn't answer: which customers lost the AI assistant, for how long, and why?

What happened, in order

Four pieces matter. There's a document product, where the AI assistant lives, and a second product from the same company that I'll call the sister product. Both ask a small AI config service one question: may this user see the AI assistant? Behind that sits a permission service, which caps how many questions each calling service can ask per minute. One lookup costs two permission checks.

Figure 2. The incident in seven steps. Use Next or the arrow keys to move through it. Quota percentages and the ticket count are illustrative.

The sister product's team had been testing a shortcut button that opens the document product's AI assistant. To decide whether to draw it, their page asked the config service about the user on every page load. The feature sat behind a flag at 50%. Early one morning, in the quietest hours of the day, the flag went to 100%.

Page traffic was up a few percent that morning. Lookups to the config service doubled, and the permission checks behind them doubled too. Nothing broke.

Why it waited for hours

A rate limit is a flat line, and traffic is a wave that rises and falls with the working day. The rollout didn't push anything over the line. It lifted the whole wave, so the top of the next peak no longer fit underneath.

0 permission checks per minute rate limit for this calling service (100%) flag goes to 100% quiet hours, 27% → 39% morning peak busiest region 112%: rejected with 429 78% hours pass, nothing fails flag at 50% flag at 100%
Figure 3. Permission checks per minute over one day against the caller’s rate limit, with the flag at 50% and at 100%. Curves are schematic.

Hours later the busiest region started its working day, demand went past the limit, and the permission service began answering the config service with HTTP 429, too many requests.

The config service did what a lot of careful code does. It caught the error and returned “disabled”. I'd defend that. If you can't confirm a user is allowed to use an AI feature, don't show it to them. The catch is that “disabled” was also what it returned when an administrator had switched the AI assistant off, so the document page got a plain no and hid the button.

A circuit breaker sat in front of the permission call as well. Once enough calls had failed it opened, and for a while checks failed without a request even being sent. Keep that in mind for the recovery.

How it was found, and what fixed it

Customers found it. No monitor did. The nine steps below are in the order they happened, so click through them.

Figure 4. How the incident was found and fixed, in the order it happened. Select a step to read the detail.

Step 6 is the one I'd underline. An engineer put the flag history next to the traffic and saw that page views had barely moved while lookups had doubled. That one comparison ruled out “it was just a busy day”. It also took a person, well into the incident, to think of it. A monitoring system can make the same comparison within minutes of the flag change, and the fourth gap below shows how.

Two things never got settled. The flag pause and the limit increase landed together, so nobody can say how much each one helped. Nobody could say how many customers were affected, either. They had a ticket count. They didn't have a count of tenants or users.

Why every AI dashboard stayed green

Most AI monitoring starts at the model call. The OpenTelemetry GenAI semantic conventions describe spans and metrics for inference, tool calls and agent runs, and the tracing products built on them show you each prompt and each answer. I'd adopt all of it. As far as I can find, though, none of it tells you whether the feature was offered to the user in the first place.

this incident happened here Pageloads Availabilitycheck Button drawnor hidden User opensassistant Promptsent Modelcall uptime checkswatch this no signal of any kind chat metrics and modeltracing start here
Figure 5. Steps between a page load and a model call. The incident happened at the two steps outlined in red, where nothing was measured.

No prompt was ever sent here. A user who can't see the button can't produce a failed chat, so the chat success rate was telling the truth. It was a hundred percent of a number that kept shrinking. The few front-end failure events that did fire carried 4xx codes, and the detection pipeline threw those away as noise.

That leaves four gaps. I'll use one made-up five-minute window for all of them so the numbers add up: 25 active tenants and 23,000 finished availability checks.

1. Errors got flattened into a “no”

isEnabled Allowedthe check finished and the user may use it Deniedan admin switched it off, or no licence Could not find out429, timeout, or circuit breaker open truebutton shown falsebutton hidden
Figure 6. The three possible results of an availability check and the two values the service returned.

The behaviour is fine. Failing closed is right. The blind spot is in what gets written down, because a true or a false can't tell an outage from a setting. The fix is to sort results into finer categories, and to do it in the catch block, the one place that still knows the difference before the error is flattened into false. Every check ends as allowed, denied or failed. Every result carries a reason.

What the code observedOutcomeReason
Permission service says yesallowednone
Permission service says nodeniedpermission_denied
Tenant admin has switched AI offdeniedadmin_disabled
Permission service returns 429failedrate_limited
Permission call runs past its deadlinefailedtimeout
Circuit breaker blocks the callfailedcircuit_open
Example: recording the outcome in the config service (Python, OpenTelemetry)
checks = meter.create_counter("ai.availability_check.outcomes")

def assistant_available(user, tenant, origin):
    check_id = new_id()
    outcome, reason = "allowed", "none"
    try:
        if not permissions.is_permitted(user, ["content", "ai_feature"]):
            outcome, reason = "denied", "permission_denied"
    except RateLimited:
        outcome, reason = "failed", "rate_limited"
    except CircuitOpen:
        outcome, reason = "failed", "circuit_open"   # no request was sent
    except Timeout:
        outcome, reason = "failed", "timeout"

    # A handful of label values. Cheap to store, safe to alert on.
    checks.add(1, {
        "capability": "assistant", "outcome": outcome, "reason": reason,
        "dependency": "permissions", "region": REGION,
        "origin_product": origin.product,
    })

    # Who it happened to goes into an event, not onto the metric.
    events.emit("ai.availability_check",
        check_id=check_id, tenant_id=tenant.id,
        session_key=hashed(user.session),
        outcome=outcome, reason=reason,
        origin_product=origin.product, origin_flag=origin.flag)

    # Still fails closed. Only "allowed" shows the AI assistant.
    return Availability(enabled=(outcome == "allowed"),
                        check_id=check_id, reason=reason)

Take the 23,000 checks in our window. 20,220 came back allowed, 2,300 were denied for real reasons, and 480 failed: 420 on a 429 and 60 because the breaker was open. Here's that window before and after the change.

BEFORE
DASHBOARD
AI assistant enabled87.9%
AI assistant disabled12.1%
On a normal day “disabled” is about 10%. This looks like a wobble.
LOG LINE
WARN config lookup failed, returning disabled
AFTER
DASHBOARD
allowed87.9%
denied10.0%
failed2.1%
On a normal day “failed” is close to zero. This is an incident.
LOG LINE
check_id=c81f outcome=failed reason=rate_limited
dependency=permissions region=r1 origin_product=sister
Figure 7. One five-minute window on the dashboard and in the logs, before and after recording outcome and reason. Values are illustrative.

Before, all you'd see is “disabled” creeping from about 10% to 12%. After, failed checks jump from almost nothing to 2.1%, and that's a number you can put a threshold on.

Example: the alert query (PromQL)
  sum by (region) (rate(ai_availability_check_outcomes_total{capability="assistant", outcome="failed"}[5m]))
/
  sum by (region) (rate(ai_availability_check_outcomes_total{capability="assistant"}[5m]))
> 0.005

Two counting rules matter. Count finished checks, not attempts, so a 429 followed by a successful retry isn't a failure. Keep circuit_open as its own reason too. During recovery you'll want to watch the 429s stop while the breaker failures are still going.

2. Silent front-end failures

Front-end telemetry fires when users do something. A button that was never drawn does nothing, which is how a feature can vanish for hours without a single client event.

The page should report its decision, and that includes the decision to hide. The server's check_id goes into the event. Later, that id joins the server's reason to what the user saw.

Example: the button reporting its own state (TypeScript)
const result = await fetchAssistantAvailability()   // { enabled, checkId, reason }
  .catch(() => ({ enabled: false, checkId: null, reason: "check_unreachable" }));

track("ai.entry_point.outcome", {
  capability: "assistant",
  checkId: result.checkId,
  state: result.enabled ? "shown" : "hidden",
  why: result.reason,     // none, admin_disabled, permission_denied, rate_limited, ...
});

renderAskButton(result.enabled);
BEFORE
CLIENT EVENTS, ONE PAGE LOAD
page_view  path=/doc/q3-planning
Nothing records that the button was hidden.
AFTER
CLIENT EVENTS, ONE PAGE LOAD
page_view  path=/doc/q3-planning
ai.entry_point.outcome  state=hidden
  why=rate_limited  check_id=c81f
The check id matches the server log line in Figure 7.
Figure 8. Client events from one page load where the button was hidden, before and after the change.

With both events you can say what the responders had to work out by hand: in this session the check failed because the permission service returned 429, and the page hid the button. Count the checks that never report an outcome as well. If you don't, missing telemetry looks like good health.

The cheapest companion is a synthetic probe, and I'd build it first. Every minute, from each region, a test account that's allowed to use the AI assistant loads a page, waits ten seconds and asserts the button is still there. A second account that isn't allowed asserts the opposite. It's about a day of work. It would've caught the flicker at the first peak.

3. Millions of log lines, zero customer counts

This is the gap I care most about. The responders had millions of 429 log lines and a ticket count. What they couldn't say, during the incident or after it, was how many tenants and users had lost the AI assistant.

A log line isn't a customer. One check makes two permission calls, each can be retried, a session loads many pages, and a tenant has many users. To talk about impact you have to collapse all of that.

Rejected permission calls in the logs, retries included
1,900
Availability checks that ended as failed
480
Sessions that had at least one failed check
210
Users behind those sessions
160
Tenants those users belong to
3 of 25
Figure 9. One five-minute window counted at five levels, from rejected calls down to tenants. Bars are not to scale.

Those 480 failed checks are 2.1% of the fleet's 23,000. On a fleet chart that's a small bump. Switch the figure below to the per-tenant view.

Figure 10. Failed availability checks for the same window, shown as a fleet average and per tenant. Tenant ids and counts are illustrative.

Twenty-two tenants with nothing wrong make the average look fine. The other three are having an outage, and they're the ones who'll write to support.

In the real incident the unevenness followed geography, with one region taking nearly all the rejections. Region tells you why a group of tenants is suffering. You still need the tenant to know who: which customers support should contact, whether this belongs on the status page, whether recovery has reached the people who complained.

I'd track two numbers per capability. Breadth is how many tenants have a failed share above a small threshold, say 5% with at least 50 checks. Depth is the failed share inside each of them. A fleet average blends the two, and a small group having a bad time disappears into it.

THE CARDINALITY QUESTION

You can't put a tenant id on a metric. Every label value becomes its own time series, and the bill follows. I'm not suggesting you do. The counter from the first gap has six labels with a handful of values each, and that's the thing that pages someone.

The tenant, the hashed session key and the check id live on the event, in whatever store you already use for logs or analytics. A query or a small stream job rolls them up every few minutes into one row per affected tenant. That table goes on the alert.

Example: the per-tenant rollup (SQL)
SELECT tenant_id,
       COUNT(*)                                             AS checks,
       SUM(CASE WHEN outcome = 'failed' THEN 1 ELSE 0 END)  AS failed,
       COUNT(DISTINCT CASE WHEN outcome = 'failed'
                           THEN session_key END)            AS sessions_hit
FROM   ai_availability_check
WHERE  capability = 'assistant'
  AND  ts >= now() - INTERVAL '5 minutes'
GROUP  BY tenant_id
HAVING COUNT(*) >= 50
   AND SUM(CASE WHEN outcome = 'failed' THEN 1 ELSE 0 END) > 0.05 * COUNT(*);

4. The noisy neighbour problem

This is the old noisy neighbour problem. Two callers share one resource, one of them uses more than its share, and the other one pays for it. The extra load came from the sister product. The people who lost a feature were using the document product. Those are separate requests from separate users, and they'll never share a trace id. All that connects them is the rate limit they both drew from.

Carry the origin with every request: which product is asking, behind which flag, at what rollout value. The origin_product label in the first gap’s example is the cheap version.

A ratio does the rest. It's the metric I'd most like people to take from this post.

Item page views per minute flag goes to 100% up a few percent Config lookups per item page view flag goes to 100% 0.51.0
Figure 11. Page views per minute (left) and config lookups per page view (right) around the flag change.

Divide downstream calls by the user activity that causes them and you get a number that should barely move from day to day. Here, 10,000 page views a minute went from producing 5,000 lookups to producing 10,000. Traffic said nothing had changed. The ratio went from 0.5 to 1.0 within five minutes, on a series tagged with the flag. That's step 6 of the incident, done by a machine instead of a tired engineer.

Multiply the new ratio by yesterday's peak and you have a warning. This caller peaked at 78% of its limit, with 34 of those points coming from the sister product. Double that path and you get 78 + 34 = 112%. You can know that in the quiet hours, right after the rollout, long before the first 429.

The same morning, replayed

None of this was in place, so treat what follows as a thought experiment. It's still worth putting the two mornings side by side.

WHAT HAPPENED hours with no signal about four hours flag goesto 100% peak: buttonsvanish customersfile tickets incidentopened causefound mitigated THE SAME MORNING WITH THE FOUR SIGNALS if that alert is missed flag goesto 100% ratio alert:peak projectedat 112% flag pausedbefore the peak peak:first 429s failed-check alertnames 3 tenantsand the reason recovery checkedper tenant
Figure 12. Timeline of the incident as it happened (top) and as projected with the four signals in place (bottom). The lower timeline is a projection.

In the replay, the first alert arrives a few minutes after the flag change:

WARNING  amplification changed: sister-product → ai-config
lookups per item page view: 0.5 → 1.0 (last 10 min)
changed with: flag "assistant-shortcut" 50% → 100%
permission quota for ai-config at yesterday's peak: 78%
projected at today's peak: 112%

If somebody pauses the flag, there's no incident. If nobody does, the second alert fires five minutes after the first 429s:

PAGE  assistant availability checks failing: 2.1% (threshold 0.5%)
reasons: rate_limited 420, circuit_open 60 · dependency: permissions
entry point hidden after a failed check: 480 page loads
tenants above 5%: 3 of 25 active → T07 60%, T12 45%, T21 35%
sessions affected: 210 · users affected: 160

The real incident began with a channel named after a missing button and six teams wondering why they'd been paged.

QuestionDuring the incidentWith the four signals
What told us first?Support tickets, hours after the causeThe amplification ratio, minutes after the rollout. Failing that, the failed-check rate at the first 429s
Is it an outage or a setting?Checked by hand, after ruling out admin settings and a rendering bugThe outcome is failed, not denied, and the reason is on the alert
Who is affected?Not known. Ticket count onlyA list of tenants with the failed share for each, plus session and user counts
Where is the extra load from?Found by an engineer comparing flag history with trafficOrigin product and flag are on the series that moved
Has it recovered?Limit dashboard, log search, and one person logging into customer sitesThe per-tenant failed share returns to zero, with circuit_open watched separately, and the synthetic probe passes

Where I would start

I'd go in order of cost. The synthetic probe comes first, because it needs no product changes. The reason on the availability check is next, and the button's outcome event after that. The per-tenant rollup and the ratio come last, since they depend on those events.

Test the alarm once it exists. Make the permission dependency return 429 for a test tenant for ten minutes. Check that the alert fires, names that tenant, and clears when the button is back. Write down who owns that page, by name. After this incident someone asked whether any alert had fired when the flag went to 100%. None had, because each team assumed a 429 was the other one's to watch.

If you're new to this work, keep one thing from this story. An AI feature starts when your product decides whether to show the button, long before anyone types a prompt. Here that decision had no model in it at all, and it's the part that broke. Measure it for each tenant and write down the reason. Next time, an alert will tell you before a customer does.


Deepak Biswas is a senior engineering reliability leader working on automated incident detection, impact measurement, resiliency testing and disaster-recovery orchestration. More at https://biswas-ai.com. This article reflects personal learning and opinion, not the position of any employer.

CONTINUE THE CONVERSATION

What does this change for your platform?

Talk reliability with Deepak ↗

NEWSLETTER

AI observability,
in your inbox.

The latest technical news and trends in AI observability, AI infrastructure reliability and AI gateways.