If you’re preparing for a forward deployed engineering role, build a small AI workflow and find one rule it must always keep. Ask the person who owns the workflow to help you write that rule. Then try to break it. That gives you a portfolio project with a decision worth talking about.
What formal verification can tell you
Richard MacManus’s November 20 Latent Space issue asks how engineers can check AI-written code. One answer is formal verification. Write down the property you want in a precise language, construct a mathematical proof, and have a proof assistant such as Lean check it. An AI can help draft the proof. The checker decides whether it establishes the stated property under the given assumptions. Richard MacManus, Latent Space on formal verification · Lean, Propositions and Proofs.
Anthropic and Theorem report using Claude to prove that a compiled Linux kernel implementation of zlib met a formal specification of the compression format. The result depended on a model of the machine running the code. The research team points out a problem that survives even a successful proof. Someone still has to decide whether the specification captures what matters in the real system. Anthropic and Theorem, experiments in formal software verification.
One approval should create at most one order
Imagine you’re embedded with a warehouse team. An AI agent reads stock requests and drafts purchase orders. A buyer approves each draft before the system submits it. On a busy morning, the buyer sees a timeout. The purchasing system has already saved the order, but its receipt never made it back. The buyer tries again. If the purchasing system treats the retry as a new submission, the warehouse gets two orders.
Start by asking the buyer what counts as the same order. Two approved requests for the same item might be intentional. Two submissions against one approval are duplicates. A precise first rule is that each approval within a customer account can create at most one order. The buyer still needs a way to tell whether it went through, so give them an order ID or a clear pending status.
Carry the same approval ID through every retry. If you own the database that records the orders, enforce uniqueness on the account and approval together. When a replay comes in, return the existing order ID. If another system records the orders, use its idempotency feature if it has one and check how long it remembers a request. If you can’t establish whether an order went through, keep it pending for someone to reconcile before trying again. Stripe, API idempotency and retention.
- Order savedThe purchasing system records the order under the approval ID.
- Receipt lostThe buyer sees a timeout and tries again with the same approval ID.
- Order foundThe system returns the original order ID. The buyer can see what was placed.
Use a different check for each question
An eval can check whether the agent drafts the right order across a set of stock requests. If the agent can submit approved orders, score the actual records it leaves behind too. An integration test can isolate one failure. Save an order, drop the reply, and send the request again. Check that the store contains one order with that approval ID and that the retry returns the original order ID. Run a second test with two requests arriving together. Anthropic, Demystifying evals for AI agents.
If you want to try a proof, start with a small model of the order store. Model submission as an atomic operation that adds an order for a new approval or returns the existing order for a known approval. Show that every modelled submission preserves the one-order rule. Write down where that proof stops. The deployed database, timeout handling and external purchasing system still need evidence of their own.
- Agent evalDid the agent draft the intended order in the examples we gave it?
- Integration testDid this timed-out request and retry leave one order in the store?
- Formal proofDoes every submission allowed by the model preserve the one-order rule?
What to bring to an FDE interview
Bring a short walkthrough of the timeout and replay, the test that catches a duplicate, and the requirement you would ask a buyer to approve. Use synthetic orders so the interviewer can run the demo. Include two approvals for the same item to show that you can distinguish an intentional second purchase from an accidental one. In the README, state what each check covers and which failures someone still has to resolve.
The most interesting part of that demo is the conversation you had before you wrote the test. Ask someone who handles orders what they would do if they couldn’t tell whether one went through. Their answer will tell you more about what to build than a better prompt will.


