All articles

The AI-Native If Statement Is Not a Policy Engine

AI is getting better at making judgments. That is useful, and it is easy to confuse with something much bigger. A judgment about the world and a determination under a policy are different problems, and only one of them can be settled by a smarter conditional.

AI is getting better at making judgments.

That is useful. It is also easy to confuse with something much bigger.

TypeSafe AI's Jev takes "unstructured state in, typed probabilistic decisions out": give it a piece of state, ask it typed questions, and receive typed answers, each with a calibrated confidence and no prose at all. The company positions it for "smart if-statements" — classifying, routing, scoring or branching where hand-written logic is too brittle. It is an elegant abstraction for a real problem. Traditional software is good at evaluating explicit conditions. Language models are good at interpreting ambiguity. Jev gives developers a way to insert the latter into ordinary software.

But an AI-native if statement is not executable policy.

And the distinction matters.

As enterprises begin using AI to automate consequential business processes, the important question is no longer simply whether AI can make a reasonable judgment. It is whether an organisation can demonstrate that thousands of decisions made across hundreds of applications faithfully implement the policies that govern them.

That is a fundamentally different problem.

It is the problem Kebiki is designed to solve.

Judgment and determination are different things

Consider a simple insurance policy:

Claims involving evidence of intentional damage must be referred for investigation unless the damage resulted from an action reasonably necessary to prevent greater loss.

There are at least two different kinds of reasoning hidden inside that sentence.

One is judgment: was the customer's action reasonably necessary to prevent greater loss? The answer may depend on photographs, descriptions, circumstances and incomplete evidence. There may be no deterministic formula capable of resolving it. An AI model may be entirely appropriate.

But another question is different: given that the action was reasonably necessary to prevent greater loss, what does the policy require us to do?

That is not a judgment about the world. It is a determination under a policy.

These two problems are increasingly being collapsed into the same category, because modern language models are capable of answering both. Capability, however, does not imply equivalence.

Jev makes judgments. Kebiki makes determinations.

That distinction is the beginning of policy engineering.

The missing source

Suppose an organisation has a 140-page underwriting manual.

A developer using an AI-native conditional does not simply hand the manual to an if statement and receive a governed implementation of the policy. Someone must first decide what questions to ask. They might determine that the application needs judgments such as:

  • Is the property adequately maintained?
  • Does the applicant appear to operate a commercial business from the premises?
  • Is this incident consistent with accidental damage?
  • Does the documentation provide sufficient evidence of ownership?

Those may be excellent uses of AI. But notice what has happened.

The original policy has been decomposed by a person into a collection of questions. Those questions have been embedded into software. Other provisions have presumably become conventional code, workflow logic, database constraints, configuration or additional prompts.

The policy engineering problem has not disappeared. It has moved outside the AI primitive.

Someone still has to establish that the collection of judgments, conditions and code constitutes a faithful implementation of the source policy. That is precisely the problem Kebiki starts with.

Policy is not a collection of questions

Enterprise policies contain considerably more structure than isolated judgments. They contain definitions, applicability conditions, exclusions, thresholds, exceptions, dependencies, precedence rules, calculations, evidence requirements and mandatory outcomes.

Consider:

Employees who have completed twelve months of service and worked at least 1,250 hours during the preceding twelve months are eligible, provided they work at an eligible location and no statutory exclusion applies.

There may be no probabilistic judgment in that rule at all. There are facts. There are conditions. There are definitions.

There may be rules elsewhere defining an eligible location. Another section may establish how service interruptions are treated. Another source may contain an exclusion. An amendment may supersede part of the original policy.

The engineering challenge is not to ask an AI whether the employee is eligible. It is to faithfully transform the governing policy into an executable system that can determine eligibility.

That distinction becomes critical at enterprise scale.

A prompt is not provenance

Suppose a judgment comes back as eligible = true. The natural next question in a consequential system is: why?

A model can offer an explanation, and some, Jev included, deliberately return none at all: a typed value and a confidence, nothing more. Either way, an explanation generated by a model is not the same thing as provenance.

Provenance answers a different set of questions:

  • What authoritative source established this requirement?
  • Which provision applied, and which facts satisfied it?
  • Which requirements were evaluated? Which rules fired, and which did not apply?
  • Which version of the policy governed the decision?
  • What tests demonstrated that the implementation behaved correctly?
  • Can the organisation reproduce the same determination later?

These are not primarily AI questions. They are engineering questions.

Kebiki preserves the relationship between the source policy, the requirements derived from it, the executable decision logic and the resulting decision trace. The explanation is therefore not something invented after the decision. It is a property of the system that made the decision.

Determinism is a feature, not a limitation

The current enthusiasm for probabilistic software sometimes creates the impression that deterministic systems are an artefact of an earlier era. For many enterprise decisions, the opposite is true.

If two employees submit identical expense claims under the same policy, organisations generally do not want a sufficiently creative system to approve one and reject the other.

If a tax rule specifies a threshold, the organisation does not need a model's opinion about whether the threshold probably applies.

If an access policy states that contractors may not access a production environment after their engagement has expired, variability is not intelligence. It is risk.

Kebiki deliberately uses AI at build time, where its ability to interpret complex human language is extraordinarily valuable. The resulting policy artefact executes deterministically at runtime.

That separation is important. AI can help understand the policy. AI can help identify requirements. AI can help compile them. AI can help generate tests. But once the organisation has established what the policy means, it should not necessarily ask a language model to reinterpret that meaning every time the policy is invoked.

Interpret once. Validate rigorously. Execute consistently.

That is a very different architecture from placing probabilistic judgment directly in the decision path.

What happens when the policy changes?

This difference becomes clearer when the source changes.

Imagine that an organisation changes one sentence in a policy governing 40 applications. In a conventional architecture, it must first determine where that policy has been implemented. Perhaps it exists in application code, workflow configuration, rules engines, prompts, AI judgments, documentation, or some combination of all of them. Then somebody has to work out what needs to change.

This is one of the reasons policy becomes technical debt.

Kebiki reverses the relationship. The source remains authoritative. Executable policy is derived from it. When the source changes, the deployed artefact does not silently mutate: the change creates a new candidate that can be analysed, compiled, tested and governed before deployment.

The organisation is maintaining policy, not a growing collection of disconnected interpretations of policy. That is the compiler model applied to enterprise governance.

AI does not eliminate policy engineering

There is a seductive argument emerging around increasingly capable models. Why engineer all of this at all? Why not simply give the policy to an AI and ask it what to do?

Because interpreting a document and operating an organisational control system are different responsibilities.

A sufficiently capable model may correctly answer a policy question 99 times out of 100. For many applications that is remarkable performance. For some, it is entirely sufficient.

But the engineering question is not merely can the model usually get this right? It is what system should the enterprise rely upon to exercise authority?

Those are different standards. A model can provide intelligence without being granted authority. Indeed, one of the most important architectural principles for enterprise AI may turn out to be precisely this separation:

Separate intelligence from authority.

AI can interpret evidence, classify ambiguous information, summarise documents and make judgments where judgment is genuinely required. Governed systems can determine what organisational policy requires as a consequence.

Jev may belong inside the architecture

This is why Jev and Kebiki should not necessarily be understood as competing implementations of the same idea. They occupy different conceptual layers.

Suppose a claims decision requires the following determination:

IF damage_is_intentional
AND action_was_not_necessary_to_prevent_greater_loss
THEN refer_for_investigation

The first input might itself require judgment. Was the damage intentional? A photograph, an adjuster's notes and a customer statement may need to be interpreted, and a judgment primitive could be an excellent mechanism for producing that fact.

The second might also require judgment. Was the action reasonably necessary? Again, this could be an appropriate bounded determination about ambiguous real-world evidence.

But once those judgments have been made, the organisation's policy specifies their consequence. That consequence does not need another opinion. It needs execution.

The architecture therefore becomes:

Evidence
    ↓
AI judgment
    ↓
Structured facts
    ↓
Kebiki
    ↓
Policy determination
    ↓
Governed outcome

This is a much more powerful model than trying to make either probabilistic AI or deterministic policy logic solve every problem. It puts each form of computation where it belongs.

The enterprise needs more than smarter if statements

The if statement is one of the most important abstractions in computing, and an AI-native version of it is genuinely interesting. It allows software to branch on concepts that were previously very difficult to express in code: whether a document appears fraudulent, whether a customer request is reasonable, whether a photograph shows significant damage, whether a message contains a threat.

That dramatically expands what software can do.

But enterprises are governed by something larger than conditions. They are governed by policies, and policies require lifecycle management: authoritative sources, analysis, requirements, compilation, testing, versioning, provenance, deployment controls and traceability.

They require organisations to answer not merely what did the AI think? but what did our policy require, and can we prove that the system faithfully applied it?

No smarter if statement solves that problem by itself.

This is the boundary Policy Engineering defines

The emergence of systems like Jev actually strengthens the case for Policy Engineering.

As AI makes software dramatically easier to produce, implementation ceases to be the principal constraint. Governance becomes the constraint. If developers can create intelligent behaviour in minutes, enterprises need stronger mechanisms for establishing which behaviour is authoritative, where it came from, whether it conforms to policy, how it was tested, and what happens when the governing source changes.

The easier software becomes to generate, the more important those questions become.

Kebiki therefore begins somewhere very different from an AI-native conditional. It begins with the source: the legislation, the regulation, the contract, the operating policy, the standard. The document that expresses what the organisation has actually decided.

From that source it derives requirements, exposes structural weaknesses, compiles deterministic decision logic, generates tests, preserves provenance and publishes governed decision infrastructure.

AI is deeply involved in that process. It simply isn't the final authority.

The distinction that matters

The AI era will need probabilistic systems. It will also need deterministic ones. The mistake is assuming that one replaces the other.

AI is exceptionally good at answering questions where interpretation is unavoidable. What does this evidence appear to mean? How should this information be classified? Does this situation resemble the concept described here?

Policy infrastructure answers a different class of question. Given the established facts, what does the governing policy require?

Jev represents an interesting new primitive for the first category. Kebiki is infrastructure for the second. As AI becomes embedded in more consequential enterprise processes, the boundary between those two responsibilities becomes more important, not less.

The future of enterprise AI is not a choice between probabilistic intelligence and deterministic software. It is an architecture in which we know exactly which one is exercising authority.

Want to see this working on your own policy?

Request a demo