AWS's Rajath Kotyal proposes translating each requirement several times to find ambiguity
Rajath Kotyal of AWS describes checking a specification before a coding agent sees it: an LLM formalizes each rule, a solver checks the rules against each other, and repeated translations expose readings the author never settled.
Watch from 0:33Recording by AI Engineer.
The idea
The speaker’s argument, in our words.Kotyal starts from bugs that originate in the specification rather than in the code. Two rules can each read fine and still contradict each other (orders with no inventory become backorders; no order may ever be a backorder), a single sentence can carry two meanings, and some states may be covered by no rule at all. His team's proposal is to catch these before code exists: an LLM first tries to clean up the wording, then translates the requirements into SMT formulas, and a solver checks whether they can all hold together.
The translation step is itself unreliable, so the pipeline does not trust a single translation. It asks the model to formalize the same requirement seven or ten times, groups the results by logical equivalence, and uses the spread to decide whether to accept a reading, ask the author, or abstain from implementing the rule. A vague rule such as "remove the record" comes back to the user as explicit options. Kotyal is clear that the user remains the only judge of what the specification was meant to say, and that evidence for this kind of formalization in agent workflows is still thin.
What they found
From the talk. Figures are self-reported unless stated.The pipeline first lets the LLM refine wording, then formalizes English into SMT-LIB formulas that a solver checks; when the solver detects a conflict or a double meaning, the LLM is told to recheck that sentence.
Design of a project from the AWS automated reasoning group. No accuracy or coverage figures are given.
Technical recommendation
2:49The model is asked to translate the same requirement seven or ten times; outputs are clustered by logical equivalence and the system accepts, asks the user, or abstains.
The speaker frames the sampling as a way to see which assumptions the model made for itself. No data on how often clusters disagree is presented. At the end he also mentions LLM judges as a fallback when the user gives no answer.
Technical recommendation
4:13A vague rule such as "remove the record" is presented to the user as explicit options (delete it, or retain it and hide it) instead of letting the model pick one.
Example from the talk; it also shows a gap where no rule covers an idle order.
Technical recommendation
5:15
Why it matters
Our reading. Not said in the talk.Teams putting specs or rule files in front of coding agents usually review the generated code, not the instructions. A contradiction in the instructions forces the agent to pick a behaviour silently, and the choice then shows up as a code bug.
What one could try
- Before handing a spec to an agent, ask a model to list rule pairs that cannot hold together and states no rule covers.
- For a rule that matters, request several independent formalizations and compare them; if they disagree, send the question back to the author.
- Add an explicit abstain path: rules that cannot be disambiguated are left unimplemented and flagged.
Limitations
- No results are presented: no measured reduction in bugs, no false positive rate, no data on how often sampled translations disagree. It is a short talk describing a project design.
- A consistent formalization can still be the wrong reading of the author's intent; the solver only checks what was translated.
- The speaker himself describes the evidence for formalization in agent workflows as thin and the field as emerging.
Original sources
AI Engineer CODE Summit 2026 · Nov 11, 2026
Specs have bugs too
Rajath Kotyal · Amazon Web Services · 8 min
This is our synthesis of the talk, checked against the transcript at the linked moments.


