insonl
← journal

Keep an AI Intake Workflow Running Through Provider Overload

date
26 November 2026
by
Insonl
read
8 min read

An AI intake worker receives a rate-limit error. It can try again in two minutes, but the next shift needs the item routed before then. If the worker waits, the intake system may still accept new items while the operations team misses the handoff. Decide how long the workflow can spend waiting for the model, what staff need to take over, and which items may go back to automation when the provider recovers.

Consider an illustrative maintenance inbox. Staff need to route fault reports to the responsible team. A model ordinarily suggests an asset match and drafts a short summary. The intake form already provides the site and a declared urgency. Save those fields and an access-controlled reference to the original report before calling the model. Acknowledge receipt after that record commits. Staff can then open the report, look up the asset and assign the case while model calls are paused.

Set the queue-age threshold from the handoff deadline

For each priority, start with the time by which the next team needs a usable handoff. Subtract the time the manual route needs, including the wait for a staffed reviewer and the time to do the work. Leave a margin for dispatch and escalation. A sample urgent lane has a 15-minute handoff target, 6 minutes reserved for manual handling and a 2-minute margin. That leaves a maximum queue age of 7 minutes for automated intake. Use observed handling times and shift coverage to set the allowance. If the manual queue is already backed up, send the item earlier and alert the duty lead.

Calculate age from the original receipt time. Persist the original priority, due time and automation cutoff with the item. Include delayed retries and running calls in the cutoff check. Before starting an attempt, require enough time for its timeout and for saving a validated result. Hand off early if the next eligible attempt cannot fit. Give a watchdog access to the intake records so it can route expired items even when workers are busy or the delayed-job scheduler is behind. Monitor an AI Queue With Service-Level Objectives

Google’s SRE guidance describes serving a reduced response during overload and using criticality to decide which work gets scarce capacity. Here the reduced service is a staffed handoff with the original report and validated intake fields. Pause optional enrichment and batch reprocessing before those jobs consume the capacity needed for current intake. Reserve capacity for urgent work and give routine items their own cutoff and escalation policy so they can surface under sustained load. Google SRE Book, Handling Overload

Bound retries per item and across workers

Classify failures in the provider adapter. For example, Anthropic documents a rate-limit rejection as HTTP 429 and temporary API overload as HTTP 529. Its Messages API can also return 429 for a monthly spend cap and identifies that condition with a specific error code. A confirmed spend cap goes to the workflow owner for resolution and the affected cases go to staff. A temporary error can receive another attempt if the provider permits it and the item has time remaining. When the provider supplies a valid Retry-After on a retryable response, treat it as the earliest time for another call. Anthropic, Claude API errors · Anthropic, Rate limits · Write Error Responses an AI Workflow Can Route Safely

Make one layer responsible for retrying. If the worker owns retries, configure SDK or gateway retry behavior so a single worker attempt cannot quietly expand into several provider calls. Persist attempt reservations before dispatch, so a worker restart cannot replenish the budget. As a starting policy for a drill, allow one initial call and up to two retries, all inside the age cutoff. For temporary failures, use capped backoff with jitter and schedule the next attempt at or after any provider-specified minimum. Save the next eligible timestamp and release the worker. Amazon’s published guidance describes how retries at multiple layers multiply load and how jitter spreads synchronized retries. AWS Builders’ Library, Timeouts, retries, and backoff with jitter

An item budget protects one case. Give all workers sharing a provider limit a shared retry allowance and a cap on concurrent requests. Count first attempts against the provider admission limits too. If rejection rates stay high, pause ordinary calls and leave a small allowance for health probes that exercise the affected route. When a case cannot get a slot before its cutoff, move it to staff. A larger pool of workers can drain a local queue only as fast as the downstream service can accept its calls.

Route one delayed item through recovery

At 09:00 an urgent report arrives for a conveyor fault. The intake service saves the original report, site, receipt time and urgent priority under a stable case ID. It records a 09:15 handoff target and a 09:07 cutoff for automation. A worker’s first call returns 529. The shared limiter permits a later attempt, and the worker records the provider request ID if present, the error and the next eligible time.

At 09:06 the first retry returns a temporary 429 with a Retry-After of 120 seconds. Another retry remains in the item budget. Its earliest start is 09:08, beyond the cutoff, so the workflow routes the case to staff immediately. The reviewer sees why the handoff occurred, the original receipt time, site, urgent priority and a link to the source report. The form shows asset match and summary as pending manual entry. Within the urgent lane, the inbox sorts by handoff deadline and breaks ties by original receipt time. Moving the case into the inbox leaves both values intact.

Record the ownership change and the event that makes the case visible to staff in one database transaction. If the staff inbox lives elsewhere, publish from a transactional outbox and upsert by case ID. Verify that the destination has the case and escalate a failed delivery. Give each worker a claim tied to the case version. A worker can save a validated suggestion only while its claim still owns that version and the cutoff has yet to pass. A delayed job that wakes after handoff detects the new state before calling the provider. A reply already in flight can be recorded as late without replacing staff work. Keep provider attempt metadata, the handoff reason and any staff decision linked to the same case ID.

At 09:10 the reviewer checks the source report and the site asset register, then routes the case to the maintenance dispatcher. At 09:12 the provider starts accepting health probes. The replay worker leaves this case with operations because it has already been routed. Its record still shows the original priority, the source evidence, the failed attempts and the reviewer who assigned it. Any approved later enrichment is a separate operation against the current case version.

Reopen capacity in steps and drill the transfer

When probes succeed repeatedly, admit a small batch of eligible cases and watch their rejection rate and latency before adding more. Recheck each case’s state and remaining time before dispatch. Resume only cases still assigned to automation with room for another attempt. Give earlier deadlines precedence within a priority lane. A rise in errors should shrink admissions again. Watch the age of the oldest unfinished item by priority, the rate of handoffs, the age of cases waiting for staff and time to verified delivery. If the manual team cannot absorb arrivals, page its duty lead and pause optional work. Expose delayed status for accepted cases and apply a predefined intake limit if the backlog exceeds what the team can safely hold.

Run a drill with a sustained overload response, a retry delay that crosses the cutoff and a worker restart after reserving an attempt. Let a model result race with a staff claim. Restore the provider while staff are still working the queue. Check that each item keeps its first receipt time, priority and evidence reference, that there is one active owner, and that only eligible cases return to automation. Time the manual path through verified delivery to the next team. Use that measurement to adjust the cutoff before relying on it during an incident.

Audit one intake workflow

Bring a redacted intake item, its handoff target, a sample provider error and your staffed hours. Insonl can map where to stop retrying and what the reviewer needs to take over. The audit is free. Insonl charges for follow-on work you commission. Request a free AI workflow audit

Sources