Agent Auth Gateway v1.0

Guides / 7 min read

Postmortem: The Agent That Ran All Weekend

Published 2026-11-14 · Reviewed 2026-11-14 · By the Ingenious AI team

There is a reason so many runaway-agent stories start on a Friday. The loop begins after the last human leaves, runs at machine speed for sixty unattended hours, and is discovered by whoever opens the billing page on Monday.

The short answer

The weekend runaway is a scheduling failure as much as a technical one, and it is prevented by controls that do not need a human present: per-agent daily caps that reset by date rather than by attention, step budgets, off-hours tripwires that lock agents down outside their working window unless a human extends them, and alerts routed to someone actually on call. If your controls require a person to notice, your controls have office hours — and your agents do not.

Check your own setup as you read: run the free Spend Guard self-check or test a policy in the playground — five minutes, no signup, and the gaps it names map to the controls below.

Worked example: Friday 18:07 to Monday 08:15, $1,940

At 18:07 on a Friday, a fictional home-services marketplace, Porchlight Partners, deployed a small change to its job-matching agent: a new data source for contractor availability. The source returned malformed postcodes; the agent's validation rejected each result and retried with a broader search, which returned more malformed postcodes. Nobody was watching: the team's dashboard was a bookmark, not an alert. The agent ran 62 hours, made 88,000 calls, and spent $1,940 — roughly seven weeks of its normal budget — before the Monday standup opened the invoice.

Porchlight's postmortem produced four fixes, all still in place. Daily caps per agent, so a weekend can burn at most two capped days rather than an unbounded total. An off-hours rule: between 20:00 and 07:00 and all weekend, agents run in a reduced mode where write actions need approval and burn above baseline locks them down. A Friday-deploy rule requiring a one-hour watched window after any agent change. And alerts to a named on-call phone. The malformed-data failure recurred in testing three months later, on a Tuesday; the agent locked itself down in 40 minutes at a cost of $18.

Why weekends multiply every other failure

A loop on a Tuesday costs the hours until someone notices, which is usually the same morning. The identical loop on a Friday evening costs the weekend, because detection in most teams is still ambient — a person glancing at a dashboard — rather than mechanical. Sixty-two hours versus four is not a difference in the bug; it is a difference in who was present. Any control set that assumes a present human has a standing weekend exception, and failures, being unsentimental, find it.

Daily caps are the weekend-proof control

Of all the standard controls, the daily cap is the one whose value is set by the calendar: it bounds a bad weekend to a known number of capped days. Size it so one capped day is a nuisance, not a crisis — for most agents a few tens of dollars — and the worst possible weekend becomes arithmetic a manager can read without flinching. Monthly caps alone fail here: a loop can spend the month's budget by Sunday and leave the agent dead for three weeks, or, if the monthly cap is generous, spend a fortune slowly enough to look like growth.

Off-hours are a policy dimension

Agents have working hours whether you declare them or not — the hours their work is actually needed and watched. Declaring them lets policy change with the clock: reduced caps, approval-only writes, lockdown on abnormal burn, or a full pause for agents with no legitimate night work. Porchlight's matching agent had no business writing at 3 a.m.; saying so in policy turned its worst hours into its safest. Batch agents that genuinely work nights get their own declared windows, watched by the same tripwire logic.

The Friday-deploy rule

Changes to agents, tools or data sources reset what 'normal' means, so they deserve a watched window proportional to their blast radius. Porchlight's rule is one hour of active watching after any agent change, and no agent changes after 16:00 on a Friday without an owner staying on call. It costs little — most changes are small — and it moves the first occurrence of a change-induced loop from the emptiest hours of the week to the fullest.

The Monday-morning questions, answered in advance

After any weekend incident, leadership asks the same five questions: how much, how long, what data, who knew, and what stops it recurring. A fleet with daily caps, off-hours policy and a decision log answers all five from records in minutes — Porchlight's second review took twenty minutes, most of it spent approving the fix list. Prepare the answers as a standing report template the on-call fills from the log, so the Monday meeting discusses decisions rather than reconstructions. Teams that can answer quickly and precisely discover that incident reviews become shorter, calmer and — this is the real prize — rarer, because the fixes get approved while the memory is fresh.

Five actions to weekend-proof an agent fleet

  1. Set per-agent daily caps sized so one capped day is a nuisance, never a crisis, and verify they reset by date.
  2. Declare each agent's working window in policy; outside it, reduce caps and route writes to approval or pause the agent.
  3. Add off-hours tripwires that lock an agent down on abnormal burn when no human is watching.
  4. Route alerts to a named on-call phone at weekends, with lock controls inside the alert itself.
  5. Adopt a Friday rule: no agent change without a watched hour afterwards, and none late Friday without an owner on call.

Source note and related guides

Figures in the worked example are illustrative, drawn from a fictional company created for this guide; the controls, failure patterns and procedures described are the gateway's documented behaviour — see the Agent Auth Gateway documentation and the policy patterns in allowlists vs denylists, spend caps and the agent kill switch. Reviewed by the Ingenious AI team, 2026-11-14.

Sources

  • NIST AI Risk Management Framework (AI RMF 1.0), the voluntary framework for managing AI risk across design, development and use: nist.gov, 2023
  • OWASP Top 10 for Large Language Model Applications, the OWASP GenAI Security Project's risk list for LLM and agent systems: owasp.org, 2025
  • RFC 6749, The OAuth 2.0 Authorization Framework, the IETF standard behind scoped, expiring access tokens: rfc-editor.org, 2012

Frequently asked questions

Why do runaway agents so often strike at weekends?

Because detection in most teams is a human glancing at a dashboard. A loop starting Friday evening runs 60-plus unattended hours; the same loop on Tuesday is caught in a morning. Porchlight's ran 62 hours and $1,940.

What single control best prevents weekend disasters?

A per-agent daily cap. It bounds any unattended period to a known number of capped days, works with nobody present, and keeps one bad weekend from consuming a month's budget by Sunday.

Should agents be paused outside working hours?

Agents with no legitimate night work should be — or run in a reduced mode with approval-only writes and lockdown tripwires. Agents with real night work get declared windows watched by the same tripwires.

What is the Friday-deploy rule?

Any change to an agent, its tools or its data sources gets a watched window afterwards — Porchlight uses one hour — and no late-Friday changes without a named owner on call. Change resets what normal means.

How much did Porchlight's fixes cost to run?

Almost nothing in tooling: caps, an off-hours policy, alert routing and a deploy convention. When the same failure recurred in testing, the agent locked down in 40 minutes at $18.

Governing agents in production?

Spend caps, approval queues, policy simulation, burn forecasting, and step-up lockdowns — all built into the gateway. Free tier to start. Or test policies in the playground with no signup.

Share this: X Facebook LinkedIn WhatsApp
← Designing Agent Spend Alerts That People… All guides When Retrieval Eats the Budget: Controll… →