Meshie · 2026-03-16 · 9 min read · ai · risk · product-development
The hardest question in any human-in-the-loop system is deceptively simple: which AI decisions actually need a human? Review everything and you drown your team. Review nothing and you gamble. The answer is a risk score, and it does not need to be complicated to be good.
A transparent formula beats an opaque model here almost every time. When you can read the math, you can explain a routing decision to your team, tune it when reality disagrees, and trust it because nothing is hidden. Let us build one you could ship.
Most AI decisions carry risk along a few intuitive axes. For agent-proposed actions on a ticket, three factors capture most of it:
An agent asking to close an issue, a request that has sat for hours, from a low-confidence model, is exactly the one you want a human to see. A fresh, high-confidence label suggestion is exactly the one you can let flow. The formula's job is to turn that intuition into a single comparable number.
Here is the exact scoring formula Meshworq uses to prioritize its approval queue. Each factor contributes independently, and they sum to a score between 0 and 1.
Risk Score = agentAuthorityFactor + ageFactor + confidenceFactor
agentAuthorityFactor = 0.3 if an agent asked to move the issue to Done
0.15 if an agent asked for any other move
0 if a person asked
ageFactor = min(ageMinutes / 480, 1) × 0.2 // 480 min = 8 hours
confidenceFactor = (1 - confidenceScore) × 0.5 // no score ⇒ 0.5
Risk Level:
HIGH score ≥ 0.67
MEDIUM score ≥ 0.34
LOW score < 0.34
Read it top to bottom and the design choices reveal themselves.
1 - confidenceScore: the less sure the model, the more the risk.The weights encode a philosophy: confidence is the loudest signal, authority is a firm nudge, and age is a gentle tiebreaker. You can disagree with those weights, and that is the point. Because they are explicit, disagreement becomes a one-line change, not an argument with a black box.
Take an agent asking to move an issue into review. The request is two hours old and the model's confidence is 0.25.
agentAuthorityFactor = 0.15 (agent, not to Done)
ageFactor = min(120/480, 1) × 0.2 = 0.05
confidenceFactor = (1 - 0.25) × 0.5 = 0.375
Risk Score = 0.15 + 0.05 + 0.375 = 0.575 → MEDIUM
A score of 0.575 lands in MEDIUM: worth a human's eyes, but not an emergency. Now change one thing. Suppose the agent is asking to close the issue:
agentAuthorityFactor = 0.3
ageFactor = 0.05
confidenceFactor = 0.375
Risk Score = 0.3 + 0.05 + 0.375 = 0.725 → HIGH
That single change in what the agent is asking for pushes the same decision from MEDIUM to HIGH. This is exactly the behavior you want. An unsure agent moving a ticket along is worth a look; an unsure agent asking to close a customer's issue should be near the top of someone's queue right now.
This article first published the formula with a different consequence factor: issueClosedFactor, worth 0.3 "if the agent closed the issue." It read a field that nothing in the product ever wrote. So it contributed 0 to every score the queue ever produced.
With that factor dead, the formula topped out at 0.70 against a HIGH threshold of 0.67. Reaching HIGH needed a confidence of 0.06 or lower and a request already eight hours old. In practice the band that was meant to demand a human was unreachable, and the queue looked busy while being structurally unable to escalate anything.
Every test passed. The unit test built its sample issue with the field already set, a shape the real database could never return. And the test that checked HIGH was reachable used the theoretical worst case, which stayed reachable the whole time this was broken.
We replaced it with the authority factor above, built from data that is actually recorded: who asked for the transition, and where it leads. The lesson is the useful part, and it transfers to any scoring system:
Prove that a realistic item can reach your top band, using data your system really stores. Proving that the worst case can reach it proves nothing.
You could train a model to predict "does this need review." It might even be marginally more accurate. But you would lose the three things that make this formula worth shipping:
A risk score you can explain on a whiteboard will be used. A risk score you cannot will be ignored.
There is a deeper reason too. This score routes human attention, and the humans need to trust the routing or they will second-guess it and review everything anyway, defeating the purpose. Transparency is not a nice-to-have here. It is what makes the whole system function.
The specific factors are Meshworq's, tuned for ticket approvals, but the shape transfers to almost any AI decision. Pick your consequence factor (the irreversible action in your world), your staleness factor (how long is too long for you), and your confidence factor (usually the heaviest). Cap the factors so no single axis dominates unfairly, and set thresholds that match how much review capacity you actually have. Then watch where reviewers overrule the score and let that feedback retune your weights.
Start simple, ship it, and adjust with evidence. A crude formula in production teaches you more in a week than a sophisticated one in a spec.
Risk scoring is how you convert "should a human look at this?" from a gut call into a number your system can act on at scale. The formula that works is not the cleverest one; it is the one your team can read, recompute, and tune. Meshworq's three-factor score, authority plus age plus confidence, is a concrete starting point, and one we have already had to fix once. Borrow its shape, swap in the factors that matter in your domain, keep the whole thing legible, and let the score do what it does best: point scarce human judgment at the decisions that actually deserve it.