---
title: "Discussion on \"From Hypothesis to Understanding: A Practical Framework for Applied AI Engineering Experiments\" | Hashnode"
description: "Discussion on \"From Hypothesis to Understanding: A Practical Framework for Applied AI Engineering Experiments\". Turn a favorable engineering idea into a clear decision: start, keep going, change direction, or stop."
url: "https://hashnode.com/posts/from-hypothesis-to-understanding-a-practical-framework-for-engineering-experiments/6ae9ef828b8f5ca5929abb3e"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [From Hypothesis to Understanding: A Practical Framework for Applied AI Engineering Experiments](https://blog.latentthoughts.com/from-hypothesis-to-understanding-a-practical-framework-for-applied-ai-engineering-experiments?utm_source=hashnode&utm_medium=feed)

Turn a favorable engineering idea into a clear decision: start, keep going, change direction, or stop.

Nov 3 · 15 min read · blog.latentthoughts.com  
Updated Nov 5  
Read the article

-   [#codex](https://hashnode.com/tag/codex)
-   [#openai](https://hashnode.com/tag/openai)
-   [#codex-skil](https://hashnode.com/tag/codex-skil)
-   [#experimentation](https://hashnode.com/tag/experimentation)

## Written by

[Gary Stafford](https://hashnode.com/@garystafford)

@garystafford · New York City, USA

  
[View profile](https://hashnode.com/@garystafford)

Practical AI engineering: models, agents, and evaluations: from experiments to real-world applications.

Applied AI Engineer at OpenAI. I write about building AI applications, evaluating models, and turning experiments into practical solutions, drawing on my background in cloud architecture and software engineering.

## Responses 6

Markdown supported · ⌘↵ to post

[Julian Neagu](https://hashnode.com/@julianneagulab)

[Nov 6](https://hashnode.com/posts/from-hypothesis-to-understanding-a-practical-framework-for-engineering-experiments/6ae9ef828b8f5ca5929abb3e/comment/6aed7f27b623060bb5e8c049)

I like the point about testing against a baseline that already works well. I've seen teams spend weeks chasing improvements that look good in isolation but don't make the actual product any better. A solid baseline keeps things honest.

[Abraam Gotsiridze](https://hashnode.com/@abraamgotsiridze)

[Nov 5](https://hashnode.com/posts/from-hypothesis-to-understanding-a-practical-framework-for-engineering-experiments/6ae9ef828b8f5ca5929abb3e/comment/6aec873f520975999b9d6a66)

"Compare against a baseline that already works well" is the line I'd want more agent write-ups to follow. A lot of "the model rewrote its own prompt and got better" results start from a prompt that never had a fair chance, so it's refreshing to read one where the baseline passed and the honest finding was about cost, not accuracy.

The step 6 example is the one I'd underline: fewer tool calls, but higher cost per successful task. Tool calls are easy to count in a trace, so they're the number people reach for, and here they pointed the wrong way. Reporting cost per success next to the cost of producing the revision keeps a "cheaper" version from hiding what it took to get there.

One small addition that could fit in step 5: save a plain diff of the baseline and the frozen replacement instructions next to the results. When a revision saves money, the diff usually shows why, for example a dropped check or a shorter tool list. That's what tells you whether the saving is likely to hold on a different workload.

Out of curiosity, did the model's replacement instructions mostly add rules or remove them?

[Gary Stafford](https://hashnode.com/@garystafford)

[Nov 10](https://hashnode.com/posts/from-hypothesis-to-understanding-a-practical-framework-for-engineering-experiments/6ae9ef828b8f5ca5929abb3e/comment/6aec873f520975999b9d6a66#reply-6af3683898414658a81980bf)

Thanks, Abraam. The first rewrite mostly added procedural detail. It clarified when to stop, what to return, and how to handle retries. The key change was what counted as proof of a refund. If the refund tool explicitly confirmed success and returned a refund ID, the agent could use that response as evidence and skip the extra status lookup. After a timeout, it still had to check status before retrying.

I did save a plain diff alongside the run results. In this case, the diff shows what the agent was allowed to skip, and the traces show what it actually skipped. All six fewer tool calls were refund-status lookups.

[Kartik N V J K](https://hashnode.com/@kartik-nvj)

[Nov 4](https://hashnode.com/posts/from-hypothesis-to-understanding-a-practical-framework-for-engineering-experiments/6ae9ef828b8f5ca5929abb3e/comment/6aeb3f6f3be35414dd042256)

I would have read fewer tool calls as a cheaper run, so the revision costing more per successful task caught me off guard. Were the revised instructions longer, so every model call paid for them, or did fewer tasks succeed?

[Gary Stafford](https://hashnode.com/@garystafford)

[Nov 10](https://hashnode.com/posts/from-hypothesis-to-understanding-a-practical-framework-for-engineering-experiments/6ae9ef828b8f5ca5929abb3e/comment/6aeb3f6f3be35414dd042256#reply-6af3686198414658a8198230)

Thanks, Kartik. Both versions passed all 12 evaluation runs, and the revised instructions were roughly twice as long. The agent received them on every model request. Even with tool calls dropping from 45 to 39, total input rose from 28,833 to 31,986 tokens, with zero cached input in either version. The extra input cost outweighed the savings from generating fewer output tokens, so estimated cost per successful run rose from $0.00606 to $0.00646, about 6.7%.

The usage figures cover the whole request, including the instructions and the rest of the context, so the 6.7% is the measured change in run cost. The logs don’t break out how much of the extra input came from the instructions alone.

[Nube Colectiva](https://hashnode.com/@nubecolectiva)

[Nov 3](https://hashnode.com/posts/from-hypothesis-to-understanding-a-practical-framework-for-engineering-experiments/6ae9ef828b8f5ca5929abb3e/comment/6aea2d0502b35ecafe27ad3d)

It's interesting that it can be used with AI. Thanks for sharing 👍🏼
