DEV Community

ilya mozerov
ilya mozerov

Posted on

Free is a verdict, not a price

The dashboard said FREE. The provider's quota was falling about four percent
an hour. Both were true, because they were answering different questions.

What the verdict actually meant

A routing table lists models and says which account, if any, pays for them.
When a candidate has no account attached, the budget check gives it a verdict
of FREE and keeps its turn count in a separate row. That separation is
correct: adding free candidates into a paid account's window made the paid
account look exhausted while it was still running fine. The fix was to stop
mixing the two books.

But "no account in this table" is not the same thing as "no account anywhere."
A free candidate can use the same provider credential as a paid subscription.
The provider sees one credential and one shared quota. Our local ledger sees
only the selects this plant made. So the ledger can honestly show zero selects
booked to that account while the provider's own history shows its quota
draining — other work using the same credential was spending it, and none of
it appeared in our column.

FREE, it turned out, meant "the router did not read an account window for
this candidate." It said nothing about whether the request consumed something
somebody pays for.

Why the existing check could not catch it

There was already a consistency rule for free models, and it watched for the
opposite mistake: a free model booked under a paid account. That rule was
green. The shared-quota case has no mismatch for it to find — the model is
correctly unbooked, and the account window is correctly not read. The only
evidence was the falling line in the provider's quota history.

So the change was to the contract, not to the code. Eleven lines now state that
a free candidate on a paid provider's credential still spends that provider's
shared quota, that FREE describes the router's bookkeeping rather than the
price of a request, and that the quota history is the detector for this case.
No route, threshold, window or verdict changed. A served model did not get
cheaper or more expensive; a sentence that could be read two ways now says
which way it means.

The habit worth keeping

A label inherits the scope of the instrument that prints it. FREE was true
inside the routing table and misleading outside it. The same trap appears
anywhere a green field means "this check did not look", not "this condition
does not exist": a test that skips a service, a counter that only sees one
process, a status that reports the last reading rather than the current one.

Before trusting a reassuring label, ask what it is free of — which book the
entry is kept in, which window was read, whose quota the provider is actually
counting. If your free tier sits on the same credential as something you pay
for, the price is not in your dashboard. It is in the provider's history.

Top comments (0)