ReliabilityBytes

Thinking Fast and Slow: Designing Reliable AI Agents with Two-Speed Decision Systems

What Kahneman's System 1 and System 2, Jev, and SRE principles can teach us about fast AI decisions, deliberate reasoning, and safe production automation.

Thinking Fast and Slow: Designing Reliable AI Agents with Two-Speed Decision Systems

What Daniel Kahneman, TypeSafe’s Jev, and production engineering can teach us about building reliable AI agents that know when to reason—and when not to.

Imagine it’s 2:13 a.m. Your Kubernetes cluster starts generating alerts.

A deployment has just completed. Several pods are restarting, application latency is rising, and your monitoring system reports an elevated error rate. Somewhere in your infrastructure, an automated system needs to decide what happens next.

Should it create a ticket? Gather more telemetry? Trigger an investigation? Page the on-call engineer? Recommend rolling back the deployment?

We could send everything to a powerful reasoning LLM and ask it to choose the next action. But should we?

A good portion of operational decisions are routine. Asking a reasoning model to analyze every alert from scratch introduces latency, cost, and complexity. Yet routing everything through fixed rules can fail when the situation is unfamiliar.

That tension reminded me of Daniel Kahneman’s Thinking, Fast and Slow. Then I came across Jev, TypeSafe’s model for fast, structured decisions, and started thinking about what a similar division of labor could mean for AI-agent architecture.

The question isn’t whether AI should think fast or slow. It’s how we design systems that know when each approach is appropriate.

The useful analogy: System 1 and System 2

In Thinking, Fast and Slow, Kahneman describes two modes of human cognition:

  • System 1 is fast and automatic. It recognizes patterns and makes familiar judgments with little conscious effort.
  • System 2 is slower and more deliberate. It handles difficult problems, considers alternatives, and demands attention.

Consider driving. An experienced driver recognizes many ordinary situations almost automatically. An unfamiliar junction or unexpected hazard demands more deliberate analysis.

Both modes are useful. Neither is universally correct. Fast judgments can be confidently wrong, and slow reasoning still makes mistakes.

This is an analogy, not a scientific claim that an LLM has human cognition. But it’s a helpful way to frame the engineering question: where does the system need quick classification, and where does it need expensive investigation?

TypeSafe explicitly credits Kahneman as inspiration for the term System One models in its Jev announcement.

Meet Jev: decisions instead of generated prose

Jev takes application state and typed questions, then returns structured answers rather than free-form text. TypeSafe exposes three question types:

TypeWhat it doesExample use
ChoiceChooses among predefined options and returns their probabilitiesRoute an alert to an investigation category
ScoreRates the state against an ordered rubricAssess how closely a case matches a risk profile
NoulReturns a 0–1 probability for a yes/no questionDecide whether evidence supports a particular hypothesis

The questions are evaluated independently against the same state, and the outputs can be consumed by ordinary software. Jev is not intended to write incident reports or perform extended reasoning. Its job is closer to a fast semantic decision primitive.

TypeSafe trains these models using an approach it calls Reinforcement Learning for Calibrated Decisions (RLCD). Its launch materials claim significant latency and cost advantages over general-purpose frontier models for System One-shaped workloads. Those comparisons are vendor-reported, not a promise that Jev will outperform a given model on your production incidents.

The design question is broader than Jev itself:

What if we stopped treating text generation as the default interface for every AI-powered decision?

Some questions need a classifier. Some need a reasoning model. And some shouldn’t involve AI at all.

Reliable AI agents: a two-speed incident architecture

Start with a tempting but incomplete design:

Alert → Reasoning LLM → Suggested or automated action

It’s easy to prototype, but the model becomes responsible for interpreting telemetry, choosing investigation paths, evaluating risk, and potentially deciding whether an action should be performed.

I’d rather separate those responsibilities:

Incoming alert
      |
      v
Normalize + validate authoritative state
      |
      v
Mandatory deterministic safety checks
      |
      v
Fast semantic decision layer
      |
      +---- Known, low-risk case ----> Approved workflow
      |
      +---- Ambiguous / unfamiliar --> Reasoning agent
                                         |
                                         v
                                  Proposed next step
                                         |
                                         v
                               Independent policy gate
                                         |
                                         v
                                  Execute or escalate

The fast layer could use Jev, another specialized model, or a simpler classifier. The principle is separation of concerns: judgments inform the workflow, but do not independently grant permission to change production.

Layer 1: Deterministic safety checks

Before querying any model, check the facts that software can compute reliably:

  • Is an SLO or a formally defined paging threshold breached?
  • Is the telemetry missing, incomplete, or stale?
  • Is this alert related to a declared incident or security event?
  • Is an action privileged, destructive, or outside an approved runbook?

These aren’t questions for a probabilistic classifier when authoritative data and rules already answer them.

If a paging policy says to wake the on-call engineer, a classifier should not be allowed to silently downgrade the incident because its narrative sounds less concerning.

Layer 2: Fast semantic classification

Imagine an alert with these signals:

  • A deployment completed eight minutes ago.
  • Several application pods are restarting.
  • Application error rates increased.
  • No obvious node-wide resource pressure is present.

A lightweight decision model could suggest that this resembles a deployment-related failure. That’s a useful routing hypothesis, but it is not proof of root cause.

Here’s an illustrative Jev request using its documented Choice shape:

{
  "model": "jev-latest",
  "state": {
    "alert": "KubePodCrashLooping",
    "recent_deployment": true,
    "symptoms": [
      "Pod restart rate increased",
      "Application error rate increased"
    ],
    "node_pressure": false
  },
  "questions": {
    "investigation_category": {
      "type": "choice",
      "instructions": "Which investigation category best matches the evidence? Choose unclear when evidence is insufficient.",
      "criteria": {
        "deployment": "Symptoms resemble a recent application rollout failure",
        "infrastructure": "Symptoms resemble an underlying infrastructure issue",
        "unclear": "The evidence does not support a clear category"
      }
    }
  }
}

This is a schema illustration, not a tested classifier or a live API result. In practice, we would compare the predicted class against reviewed incidents and check how it behaves on missing, contradictory, and hostile input.

Classification should guide the next investigation, not independently authorize remediation.

Layer 3: Deliberate reasoning

Now imagine a messier case. The deployment succeeded, but latency has increased across several services. Kubernetes events are unremarkable. Database connections intermittently time out. The symptoms don’t fit a known runbook.

A reasoning agent could inspect read-only telemetry, correlate changes across services, compare possible causes, and suggest what evidence to collect next:

  • Is the database issue a cause or a consequence?
  • Did the release modify connection-pool behavior?
  • Are multiple services sharing a degraded dependency?
  • Which safe diagnostic step would separate these hypotheses?

This is the sort of work where deliberate, contextual reasoning may be worth the additional cost.

The agent can investigate without being granted write access to production. The ability to propose an action and the authority to execute it must remain separate.

Layer 4: Independent action policy

Suppose the agent recommends rolling back a Kubernetes deployment. A separate, deterministic gate should verify whether that rollback is permitted, reversible, supported by the runbook, and subject to human approval.

A convincing model explanation is not an authorization mechanism.

Confidence is not correctness

Decision models can return probability distributions and, for Choice and Score questions, Jev also reports a confidence statistic derived from those distributions. According to TypeSafe’s confidence documentation, this describes how concentrated the output probabilities are—not whether an independent authority has verified the answer.

A model can be confident and wrong.

Consider a classifier that handles most routine alerts well but occasionally routes a critical failure into a low-priority workflow. Overall accuracy could look excellent even while its most important failure mode remains unacceptable.

We need to evaluate errors by their consequences, not just count them.

An explicit abstain/escalate path matters too. When available evidence is insufficient, the workflow should be allowed to say: don’t guess; gather more information or involve a human.

TypeSafe documents known Jev limitations that include arithmetic and numerical precision, date comparisons, complex indirection, distracting context, and adversarial content. These caveats are particularly relevant in operations, where an alert payload or log message is often incomplete or attacker-controlled.

And one semantic distinction deserves emphasis: typed output does not guarantee a true judgment. A schema-valid classification can still be factually wrong.

Failure modes of the two-speed design

Adding a router doesn’t automatically increase reliability. It creates its own failure domain.

The router can fail or become a bottleneck. It needs observability, deadlines, circuit breakers, and a fallback that preserves mandatory alerting.

A bad early decision can suppress deeper investigation. A novel incident may look superficially similar to a known pattern. Escalation rules must account for uncertainty, missing data, and unexpected combinations of signals.

Calibration can drift. Classifier performance may change as services, infrastructure, alerts, or incidents evolve. Monitor its errors rather than assuming that yesterday’s thresholds remain appropriate.

Untrusted input can steer the model. Logs, incident descriptions, and tickets are evidence, not instructions. Keep input filtering, privileges, and policy enforcement outside the model.

Complexity costs money too. Maintaining an AI router, its evaluations, and its fallbacks may not be worthwhile for a small environment where a handful of clear rules is enough.

This is why I would not start by putting Jev in charge of production automation.

How I would test AI agents as an SRE

I’d choose a narrow task first: route non-critical Kubernetes alerts to suggested investigation categories.

Keep the current incident process unchanged, then run the classifier in shadow mode. It observes real or synthetic alerts and produces suggestions, but cannot suppress pages, execute runbooks, or mutate infrastructure.

I would evaluate the system along six dimensions:

  1. Routing quality: Does the suggested category match the reviewed outcome?
  2. Critical misses: How often would it inappropriately downgrade a serious case?
  3. Abstention: Does it recognize unfamiliar or insufficient evidence?
  4. Latency: What is the end-to-end response time, including timeouts and fallback?
  5. Cost: Does reduced reasoning-model usage outweigh router and operations costs?
  6. Drift: Does performance remain reliable across services and over time?

Don’t stop at a single overall accuracy score. Partition the results by severity, signal quality, incident type, and whether a human would have been paged.

An interesting direction for further research is conformal routing—methods that calibrate which requests are safe to send to a cheaper model under specific statistical assumptions. Uddin and Bauer’s ACL 2026 paper on conformal LLM routing explores this idea on language-model benchmarks. It is useful evidence that model routing can be studied rigorously, but it does not establish safety guarantees for our Kubernetes example.

Only after enough evaluated evidence would I consider limited automation, beginning with reversible, low-risk actions. Mandatory paging and privileged changes would still be governed by explicit policy.

Beyond incident response: what about AI code review?

The same split could help with agent-generated code, another area where software production is increasingly faster than human review capacity.

Imagine a pull request entering a CI pipeline. Static analysis, unit tests, dependency checks, and policy-as-code tools run as usual. A lightweight decision model could then help triage the change—documentation, ordinary application code, infrastructure configuration, authentication logic, and so on.

A more expensive reasoning review could focus on changes where architectural context and subtle interactions really matter.

But the fast classifier must not become the only guardrail. For example, a rule that all changes to authentication or authorization paths require review should be enforced from the repository and ownership policy, regardless of what a probabilistic model predicts.

Again, the architecture is not fast AI versus slow AI. It is deterministic checks, fast judgment, deliberate investigation, and verified authority working together.

Final thoughts

Jev caught my attention because its System One framing connected so naturally with Thinking, Fast and Slow. The more important insight, though, isn’t the resemblance to human cognition. It’s the architectural design space the analogy opens up.

We don’t need a large generative model for every small classification. We shouldn’t expect a fast classifier to solve unfamiliar multi-step problems. And neither one should have unchecked authority over production systems.

For SREs, building reliable AI agents draws on familiar principles: identify failure modes, limit blast radius, measure outcomes, and build reliable fallback paths.

The goal isn’t to make AI think faster or slower. It’s to make the entire system more reliable by knowing when to use each—and when not to trust either.


Reliability Bytes explores practical production judgment across Cloud, DevOps, SRE, and platform engineering. If you’d like to develop these skills through hands-on learning and structured feedback, explore the mentorship options at Reliability Bytes.

References and further reading

If you are working on this topic and want practical guidance, you can book a mentorship call.

We can use a focused session to clarify the concept, review your next step, or connect it to Cloud, DevOps, and SRE work.

Book intro call