Part of the Determesh series.
What
Every reply Determesh is about to send is scored by an evaluator model, from 1 to 10. That is the evaluator’s entire job. It does not rewrite the reply, does not decide to escalate, does not block anyone. Code reads the number and acts.
The same evaluator also watches long-running internal work and rates whether it is still moving toward the goal. That replaces a hard step limit.
Why
A judge that decides becomes a second orchestrator
The first design had the evaluator score on a 0 to 100 scale, with a decay for every step since the user last spoke, and routing based on the score: healthy continues, degrading escalates to a human, failed rejects.
Once the evaluator is responsible for what happens next, it needs to know the company’s policies, the fallback, whether a human desk exists, how many times this user has been refused. It turns into a second orchestrator with its own prompt drift. And when something goes wrong, there are two models to blame.
So the evaluator was made deliberately narrow. It sees the user’s recent messages and the reply, and answers one question: how good is this exchange? Everything that follows from the answer is configuration and code.
The same tool solves quality and abuse
A bad reply and an abusive user look different, but both end up as low scores. The reply writer produced something vague or wrong: low score. A user kept asking a payments assistant for jokes: the polite refusal is fine, but the exchange is not useful, so the score drops. Someone pasting injection attempts: lowest band.
One number, counted over time, covers both. Bad replies get replaced. Users who keep producing bad exchanges get blocked.
How
What the evaluator is told to score
The score is about the exchange, not the wording:
- A useful, on-topic answer that matches what was asked: the high band.
- An honest “this could not be done” with the reason: the middle. Failing gracefully is not a bad reply.
- An off-topic request answered with a polite refusal: low, and lower each time the user pushes the same thing.
- Abuse, injection attempts, made-up content: the bottom.
That last point about pushing matters. During testing, a polite refusal to an off-topic question scored 9. It was a perfectly good refusal. Which meant a user could ask about the weather forever and never come near a block. The prompt now scores the exchange as a whole, including whether the user keeps pressing something the company does not do.
What code does with the number
Each company sets a quality threshold, a block threshold, a block window and a block duration.
- A reply at or above the quality threshold is sent.
- Below it, the reply is thrown away and the company’s fallback goes out instead: a fixed statement, or a fallback resource such as a ticketing system.
- The fallback is scored too. But it is the emergency exit, so there is no fallback for the fallback. It is always sent.
- Every low score is counted against the user’s identity.
- When the count of low scores inside the window reaches the block threshold, the identity is blocked for the block duration.
One message counts once. When the fallback replaces a low draft, the draft’s score is the one counted, and the fallback’s score is stored but marked as not counted. Otherwise one bad message would count twice.
Counted in a window, not in a row
Low scores are counted within the window, not consecutively. A good exchange in between does not reset the count. Someone alternating one real question with four junk ones still reaches the threshold.
The block is on the identity, not the channel. If a person’s Telegram and email were linked by a verification, a block on one blocks both.
While blocked, nothing runs
A blocked user’s message is stored, and the company’s block text goes back straight away on Telegram and the API. No model is called. Most traffic from a blocked identity is junk, and spending tokens on junk is the one thing blocking exists to stop.
Email is the exception. The block text is sent once, when the block starts. After that, nothing, until it lifts. Answering every spam email with a block notice would make Determesh a reply machine for whoever is sending it.
Grace, not a hair trigger
The thresholds are a count, so nobody is blocked for one bad exchange. And failures on the company’s side are not the user’s fault: a resource can carry its own fallback message, such as “the system is down, please try again later”. An honest reply like that scores in the middle band, not the bottom.
The grace comes from the gradual scoring, not from code trying to tell causes apart. If a user keeps pushing after an honest failure, the scores go down step by step until the exchange reads as spam. At that point the reason it started no longer matters.
Watching the work, not just the reply
A request can take many steps: the orchestrator asks several resources, each assistant calls methods, a job sends hundreds of emails. A fixed step limit would cut off genuinely large jobs. No limit at all invites loops.
Instead, every 10 steps the evaluator rates the work so far: is it moving toward the goal? It sees every model working on the request together, the orchestrator and each resource assistant, each step marked with who took it. No single assistant’s steps can be judged alone, since one may be waiting on another.
A rating that is very low, or that falls sharply, stops the work. The evaluator’s notes on what went wrong become the reply: what failed, and a request for more detail if that would help. This does not use the company fallback, since the problem was found inside the work, not in a reply.
The evaluator never decides to stop anything. It produces a number. Code holds the rule for what a number means.
Previous: Access Control That Lives Outside the Model
Next: Five AI Roles, Five Separate Conversations