AI features rarely die in a dramatic incident. They die in a spreadsheet, months later, when someone finally divides the agent bill by the customers it served and discovers the feature was a subsidy with a roadmap.
The short answer
Compute three numbers per customer, from attributed gateway data: agent cost to serve per month, cost per completed task, and agent cost as a percentage of the revenue that customer pays. Review the distribution, not the average — the average conceals the heavy tail of automated or pathological usage that pricing, fair-use budgets and product design exist to handle. Where cost per customer exceeds the plan's margin, the honest options are a usage budget in policy, a priced tier built from the real cost, or a product change that makes the expensive behaviour cheaper — in that order of preference.
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: a feature whose top decile ate the margin
Willowmere Learning, a fictional tutoring platform, added an agent that generated personalised practice sets. Overall unit economics looked healthy: average agent cost $1.90 per student per month against a $12 subscription. The distribution told another story. The top decile of students — many running automations that regenerated sets continuously — cost $14 to $61 a month to serve. Ten percent of students consumed 58 percent of the agent budget and produced, by the platform's own engagement measures, no better learning outcomes than the median student.
Willowmere put a fair-use budget in the agent's policy at $6 of generation per student per month — three times the median — with a soft landing: the agent explains the limit and offers the day's existing sets rather than erroring. Regeneration automations hit the budget in their first day and mostly belonged to a handful of third-party scripts, which adapted. Fleet agent spend fell 44 percent, paying-student margin on the feature went from thin to comfortable, and the number of students who personally encountered the limit in a normal month was four — all four accepted it when it was explained in the agent's own words.
Averages are where heavy tails hide
Agent usage is never normally distributed: a minority of customers — the automated, the integrated, the genuinely power-using — consume multiples of the median. Any unit-economics review that starts from the average will certify the feature healthy while the tail eats its margin. Start from the distribution: median, 90th percentile, top ten customers by cost, each compared with what they pay. Willowmere's $1.90 average and its $61 top user are both true; only one of them is a decision.
Cost per completed task is the comparable unit
Customers use features differently, so cost per customer alone cannot separate 'expensive because valuable' from 'expensive because wasteful'. Cost per completed, accepted task — per practice set actually used, per report actually opened, per ticket actually resolved — is comparable across customers and across time. A heavy customer with a low cost per used task is a power user to cultivate and price fairly; a heavy customer whose tasks are generated and ignored is a product or abuse problem wearing a usage costume.
Fair-use budgets belong in policy, not in terms PDFs
A fair-use clause in legal text that nothing enforces is a promise to have an argument later. Put the budget where the spend happens: per-customer caps in the agent's policy, sized generously from the distribution — Willowmere used three times the median — with a designed soft landing when it is reached. Legitimate customers almost never meet a budget set at that height; automations meet it immediately, which is the sorting the policy exists to do.
Price tiers from measured cost, or do not price them at all
When a segment legitimately needs more, its tier price should be built from its measured cost per task plus margin, presented with the customer's own numbers. Customers shown their actual usage data, priced from it transparently, argue far less than customers handed a number that smells invented — and several, like Fern Hollow's heavy customer in our cost-allocation guide, will fix their own automation once they can see it. Unit economics you cannot show the customer are only half usable.
When the expensive customer is also your best reference
Occasionally the heavy tail contains a customer you would keep at a loss deliberately — a flagship logo, a design partner, a reference account. Unit economics does not forbid that; it forbids doing it unknowingly. Price the subsidy, record it as a decision with an owner and a review date, and cap it like any other budget so generosity has a number. The customers who damage margins are never the ones chosen deliberately; they are the ones nobody had measured. A quarterly look at the top-ten cost list, with each entry classified as priced, subsidised-by-decision, or to-be-fixed, keeps the deliberate and the accidental permanently separated.
Five actions to get agent unit economics under control
- Compute cost to serve per customer from attributed run data, and review the distribution — median, 90th percentile, top ten — never only the average.
- Compute cost per completed, accepted task so valuable power use separates from waste.
- Set per-customer fair-use budgets in policy at roughly three times the median customer's cost, with a designed soft landing.
- Build any heavy-use tier price from the measured cost per task, shown to the customer from their own data.
- Re-run the distribution monthly; a growing heavy tail is a pricing or product signal, not a finance surprise to absorb.
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