transcribe

Build Faster by Coding Slower

Boundary · 2h 2m · transcribed Jun 2026
More from Boundary Business
𝕏 Share ▶ YouTube 📥 PDF 🤖 .md

Transcript

0:00 But the point is for non-disjoint systems, there's like a lot of criteria. Criteria one, you need a way to break down stuff into groups of scenarios. You need aggregation metrics, not just like boolean assert or falses. Like there's like soft scenarios you want to go check in. Criteria three, you need to be able to load data from production databases of some kind or like data sets of some kind and dynamically define test cases. These markdown docs are basically an opportunity to have the model dump out everything that it's thinking so that you can do brain surgery on it before like, okay, here's all the patterns you want to follow, here's all the decisions that you think are the right decisions.

0:33 Give me as many opportunities and give the model as many opportunities to tell you at a high level what it's thinking so you can re-steer before you like drop down a level basically. What I end up doing basically is I go through here and once the implementation is complete, I just start reading my test cases and make sure the test cases are good and that we have like what's called snapshot tests so we actually have like test cases and we print out the text files, what the output of that serialization is, what the inner representation of the data models are.

0:59 And I go and read that and I'm like, oh, I keep on finding more and more bugs. And every time I find bugs, I have to go fix a bunch of stuff. Um and like you can just see me iterate through and try and fix each bug one by one. Yep. But it's very rare that I find very, very like foundational bugs at this phase because if I've done a good job earlier, then I shouldn't find foundational bugs.

1:27 So in this episode was a lot of fun. We went through a ton of um how Vibhav likes to code, how he takes um working with models using long context, using short context, building design discussions, iterating on on the specification for the language. Um and the other example was, you know, the what was it? 16,000 lines that you wrote for um Closures. For the closures feature in BAML and being able to do lambdas. So super exciting time. Uh I think you'll learn a lot about um how we uh do agentic coding and like what the frontier there kind of looks like for being able to ship a lot of really high quality code without slop.

2:03 Um The only other update we have for y'all before you get into it is we are doing an unconference in San Francisco on April 11th is a Saturday. If you are in SF come by the YC office in Dogpatch. We're going to have essentially what we did last time that worked really well. We might do a couple tweaks on this, but it was basically like you come in, you get your cup of coffee, you chat with people. There's a whiteboard up. If you have an idea for something you want to talk about 5 to 10 minute lightning talk. I obviously like no pitches, no selling, but if you are working on a hard problem and you think you learned something that would be interesting to a group of really smart AI engineers, write your topic on the whiteboard.

2:42 We'll pick someone to go first and then when when that person is done talking, they go to the whiteboard. They pick the next most interesting talk that they want to hear and we just kind of like loop through like that for the rest of the day. We'll maybe do some breakouts and split up between like pipelines versus evals versus coding agents. We may keep it all single track. We're going to see how it goes. But if you are in San Francisco on April 11th or you can get here, we'd love to see you and just come connect with other members of the AI that works community.

3:09 Yeah, we've got sadly limited head count, but I think if you guys are fans of the show, you've been here for a while, let us know. We'll make sure we try and make space for everyone there. Yeah, enjoy the enjoy the episode and we hope to see you live in SF. See you soon. This episode's going to be fun. This is AI that works. Usually we do some white boarding, we talk about AI content and how to get the most out of your AI tools. I'm Dex. I'm the founder co-founder of a company called Human Layer. We help you get better results out of coding agents. Bybop, I'll let him introduce himself and then talk about how today's show is going to be different.

3:39 >> Yes, my name is Bybop and we make a programming language called BAML. Today I think we're going to talk about something fun. It's a language feature we've been wanting to do for a while. And then when we do this language feature, the thing that I really want to show is how we go and code from scratch. Like how do we go into the compiler or how do we go into the AST and how do we do this how do we do design all the way through? Yeah.

4:04 All the way up till this feature works. Okay, so I think today's episode is going to be one where we talk about really new feature. It's called testing. I think if we're in the AI world, I want to show a couple of different constructs. I want to show how we design the feature. I want to show how we implement it and I want to show how we communicate with quad but all the nuances about it as well.

4:25 This is going to require a little bit of background knowledge for folks in the compiler. So I'll try and go a little bit slower and make sure I educate folks along the way but how we go make these design decisions and why certain design decisions get made. And then the goal is to just show how we one shot everything. Like at the end I'm not going to touch the implementation loop. It's just going to work. We're going to do everything up until design but we're going to be really really really thorough at design.

4:47 Oh, you're just going to you're going to one shot everything past the design. Exactly. It'll it will just work. It will just work. I this is the workflow that I've been adopting now for a while. I've shipped like multiple 10,000 plus line PRs without by being able to do this. >> your design and then like turn the design back into a ticket basically, right? Exactly. So I'll show you guys what it looks like. And I'll but before we do that, I'm going to show you roughly how we do this. Okay.

5:19 So first let's just really quickly talk about testing. Inductor, can you send me an Excel of all the links by chance? Uh yeah, let's do it. Yeah, cuz we're going to talk about the feature at a high level and then we're going to go down into the weeds of how to build it. Let's get this going. I will drop it in the studio chat. Does that work? Perfect. Let's do it. So first I want to talk a little bit how evals work and how evals have to work in the AI agentic pipelines because I think that will help inspire how we go do this.

5:52 So, I want you to >> great. Everyone's been asking for a new evals episode. Um Yeah. So, imagine I have a black box that produces that takes in some input and produces some output. The thing is this is basically what all agentic pipelines are. They're a black box that produce some input and some output. The problem is because they're black boxes, how do you build understanding of what the system where where it works and where it doesn't work?

6:14 So, I'm going to use a different example cuz I'm going to use an example that I'm somewhat a little bit familiar with. Um I will not explain anything detail, but I'll describe concepts that I think would make sense. So, let's take Face ID for example. We all have Face ID. Uh Face ID happened in the year I think like 2019 or something or 2018 or something is when it came out. Uh maybe 2017. Uh but it's like in that time frame.

6:40 Uh classical ML. No LLMs exist. Transformer is a twinkle in some researcher's eye. Yeah, it doesn't even matter how it's implemented. Just imagine this black box that takes in some input image. Uh input image and then returns back to you uh and perhaps like some sort of like uh the person's I the person's the person's signature of some kind. Right. Cuz you're not you're not giving you're not giving every person their own AI model. The model has to be able to identify different people.

7:12 >> Exactly. So, we give it an input image and a person's signature and we say unlock or don't unlock, right? That's basically the signal. >> Yeah. Boolean classifier. Yeah, exactly. Well, if you're going to go build this test suite, you're going to train this you're going to continuously build a new black box until your unlock works. That's effectively how you're going to go do this. Well, if you're going to do this, the first thing you'll want to do is build a bunch of data. Well, the naive thing to do is actually to say I'm going to build a bunch of data that's like a bunch of rows uh stacked on top of each other.

7:47 Uh where each one is a test suite is like a test case. I'm going to do the I'm going to do each one of these is test cases. Using these for back prop and like loss function? No, not for just for evaluating the system working. Like and then what I'm going to say for all of them >> Each of these has an input image and a signature. And then expect the output. Well, what am I going to say for each test case?

8:15 Uh for every single test case, I'm going to say the following. I'll be like, "Oh, my model is my black box is good if um if I have a like if uh 95% of my 90% pass, this is good. That's like success. >> can not recognize me 5% of the time and it's still a very useful feature. Exactly. But, now I might want to say something different. I might want to say So, I've defined some sort of success metric here. It's not to say success is like the expected output is what I want.

8:47 It's like I might even say success I might define success slightly differently. I might say success is uh success is either the expected output equal equals uh uh like uh Face ID the result. So, there's two definitions of success that I that I'm willing to accept or Face ID equal equals false. Both of these can be considered success. Because I just never want to accidentally unlock the phone.

9:19 All right, I'm biasing towards preferring correct unlocks. So, technically I can have a test suite that says if it never unlocks Go ahead. Yeah, if it doesn't recognize me, that's fine compared to if it thinks someone else is me. A false positive is way worse than a false negative. Exactly. So, we're already getting in some nuances where now I have a 95% pass rate. Well, now you'll notice some other nuances here. So, what I really want to say is this is a 95% pass rate and that's my target is kind of what you want.

9:53 Well, if I have a target of 95% and this is what's working, well, now I run into a problem. If this black box is being optimized for this, it's very easy to just have a black box that always returns false and now you've built a system by accident. That is >> in 95% of the cases. Exactly. So, what's what's kind of interesting is I almost have like two criteria. Um I almost have like a name metric. You have two scores. You have the like did it get it correct and then like did it accidentally Yeah, okay.

10:26 Right. So, and you're already seeing how nuanced testing is becoming. Can I invert this one? Since like we'd going to do like actual expected in in both cases. And these aren't real metrics. I'm just literally making them up. Right. But, this is how you're going to construct your cost function, right? Like the total loss is Yeah, go ahead. >> think about it as cost function how you're training the model. Think of it more like how am I going to produce a benchmark that says if my system is working cuz this is not a model. You can think of this like two models >> Okay, so this is this is not actually signal used to train the train the model. This is signal used to tell if we made the model better or not at like a whole system level. This is signal to that says can I ship this thing?

11:12 Yep. It's like and that's why like this is like Face ID's like two models, heuristics, a bunch of stuff under the hood. Like it's it's not just like one thing. It's not about training at all. It's merely about thinking about testing for non-deterministics deterministic systems. But, you can see like >> whole point of testing is how can when automate the the the process of building confidence that something is stable enough to ship and is better than what we had before. Yeah, and in the prior world, we lived in a world where you build this metric and you build this metric of some kind and remember every metric can be gained gained. So, we have to go ahead and go fix this.

11:47 But what we had to do over here was we built this metric and then a human would go and update this system and here to make it better. Uh and then they'd run the metric again and they could do this. Well, we live in a slightly nicer world now. We live in a world with LLMs. So, if you have a metric, in theory, you should be able to have an an an LLM going a coding agent going and update this system, get the metric and go and do this.

12:09 But the idea is this just gives us a signal about if we can ship or not. But you can clearly see how this is good or bad. But this gets even more tricky because this is actually not how I would do this. What I would do is I would actually take this whole thing and then what I'd say is I'd actually split this into two parts. And what I'd say, for example, is something like this. You have two sets of test cases.

12:33 You have scenarios. You have testing scenarios. One scenario is glasses. Mhm. So, you can see the scenario already. You can see how >> could see, hey look, our overall went up, but our glasses went down. Or you could see our glasses went up, but our non-glasses went down. You have slice and dice the kind of like test cases into a bunch of different categories. Yeah, and I might just say, hey, if glasses with glasses signature, I expect this to remain at any percent correctness rate, but when I use glasses with non-glasses signature, I expect this to drop to 60% correctness rate and I still pass that. Again, Face ID does not have these kind of scenarios. I'm merely making up numbers just to prove the point of what I'm trying to say. But the way you think about these non-deterministic systems and the way we think about our all our agentic outcomes has to be thought very scenario specific. So, there's two things to think about when you think testing.

13:28 We want to make sure that people can build scenarios of some kind, and scenarios are really interesting um for a couple of reasons, but they need to be like almost product-oriented scenarios is how you have to come up with it as. And the way that we do metrics is also not done the way that we used to. We kind of want metrics that are like named metrics that all that all contribute to final like aggregation of the actual data set, if that makes sense.

13:55 So, if we're going to build scenarios, we're going to build them >> this becomes basically like a fairly wide data set of like each individual test case has multiple dimensions, and you can group and shape the data along any of those five, 10, 30 dimensions, and analyze how the behavior changed across any of those. Exactly. So, you kind of need to understand all of that before you can even think about how we're going to do testing.

14:25 But now there's one last Go ahead. Can I can I throw in one Did you ever have to work with OLAP cubes? Does the word OLAP cube mean anything to you? Okay, we won't go down that path. If anyone in the chat wants to hear about OLAP cubes, maybe we'll do an episode on that. So, um I have no idea what Can you give me a 1-second primer on what that is? I'm actually curious. Uh it's a like standard old-school BI tools. They would only let you have like you would basically create a cube, so it's a three-dimensional data set. So, like a sales data set would be like it would have like two dimensions and a metric. It would be like sales volume, and your dimensions would be like by region and by, you know, product. And that was every BI tool you had to like reduce the data set to three dimensions, or basically two dimensions and a value to be able to analyze it.

15:16 That sounds arbitrary why they would pick three dimensions, but I I why. It's because like humans can't think in more than three dimensions, but still. All right, we gave Mark some PTSD. My job My My work here is finished. I will let you get back to the AI. Okay. Um well, okay, there's one last scenario in here that I think is very important. Which is typically when you write test cases in most languages, they're statically typed.

15:41 So, you type out the test, and you type it out. The problem is the way that you actually load these is all this data as actually not in your code base. It's often loaded from a database or some other scenario and executed. So, your tests don't even >> SQLite or JSON or Postgres or where or some like SAS cloud secure PII storage system where you don't even want your engineers to have access to and you want the actual control that only runnable on like test harnesses.

16:06 That's right. They send their test code to some like secure enclave, and only from that infrastructure can the test be run or something. >> And like locally pings a different database that you do have access to. So, you can run stuff locally and in a secure enclave where like the test that is hidden. The point is for non-distributed systems, there's like a lot of key criteria. Criteria one, you need a way to break down stuff into groups of scenarios. You need aggregation metrics, not just like boolean assert or falses. Like there's like soft scenarios you want to go check in.

16:35 Criteria three, you need to be able to load data from production databases of some kind or like data sets of some kind and dynamically define test cases. Yeah. And in your word, production is less like production as in like the SAS environment that the customers use, but it's more production in the sense of like this is the very highly regulated environment where there's a lot of rules around where the data's allowed to go and even if it's allowed to leave that particular environment at all. Uh no. I In In face of it, yes. Uh but like in In the case of like agentic systems, the answer is no. You actually just want to be able to pull data from prod.

17:11 And just like get the data from prod. Just like, "Hey, turn this like log I have into a test case that I run." And I might even want to say run the last five like it take all the logs from the last month and run 1% of them as test cases. Yep. Uh as what I want to go sample. So, it's like almost like a moving target. The test doesn't really mean anything, but it what it really signifies is not that the I what I'm measuring for is are my agents performing well for the user for the way that my users are using my application, which is a moving target in some sense cuz it's capturing user behavior and your agent at the same time.

17:48 Yeah, that's what a lot of these like eval platforms like claim to help you to do. Exactly. But, that's the kind of system you need to build. But, in order to build that you have to build test. So, before I go show anything else, I want to show you how you would do the such a thing in Python. Um how do I I have wisdom teeth problem. It's very sad. Aw. I know. I was like >> getting them removed? Dude, I'm 32. I thought I got I got I got lucky and I'd be one of the few folks that never have to get them removed, but I got very, very um test in one second. Uh test in Python.

18:22 Show me how do I parameterize test in Python and in TypeScript where I have to load data from a database where each one of those database calls is a test case. All right. It'll show you an example. Yeah, it's very sad. I thought I was 32 and I I got lucky cuz you typically if you don't have need it by 25, it you're solved. Um uh but no, I'm unlucky. Buddy's asking a really important question. Is this testing in production? Well, you don't want to test in production, you want to be able to test locally, but you want to be able to test using production data.

18:53 Testing on production. Exactly. Uh prepositions makes uh is that is preposition the right word in on? I think so. Or maybe not. Am I getting it right? >> Human in the loop, human on the loop, I don't know. Human on the loop sounds all wrong. Um so, this is how you do this in Python. Um, the first thing you can notice is you parameterize this by case. But like and this is what it kind of looks like.

19:19 It's just not a very good way to go do this. It doesn't feel very ergonomic. And you're not even going to speak. >> Why don't I like this? Like the ability to write arbitrary code to generate your test cases is is very powerful, I think. Yes, so we do want that. But I just don't think that in in Python so few testing scenarios actually revolve around this that this is almost like a hack in the way that it ends up looking.

19:41 Yeah, this is we used to call it in like go we call this like to I mean everyone's called every language you have like table test where you write the test logic once and then the input to every test case is just data. It's kind of lispy. I know you hate functional programming but this is a very FP style thing. >> Yes. Yes. So but I think what we want to do is we want to make it a little bit more native in the way that it works.

20:00 Um, you can you can do there's like a few different ways to do this in Python. I want to show you how TypeScript does it too. Um, TypeScript does this. I really like the TypeScript approach. It looks much more clean in my opinion at least. Because you don't have to use a fancy framework and decorators. It's very clear of like hey you call a function to declare a test case and then you can just loop over it and things like that. Yep. The thing I don't like about TypeScript um, is like where are these magic words coming from? These are so confusing to me like the fact that you first describe a test case and then you like test I think they use it in some frameworks versus test. Those words are kind of like confusing.

20:37 So this is BDD, right? This is the thing of like behave I mean this exists in every language. I don't know why it caught on the most in TypeScript. It's probably because you have a lot of like testing front end applications where you want to describe behavior rather than like hey this DOM element has these properties or whatever. But um, yeah I >> I agree that it's a little bit of a weird way to like nest your test cases and like when all your code is indented 30 times cuz you had a bunch of like before all's or after all's or like nested cases and stuff. And then the assertion like I mean the assertion library, the expect it to be whatever is like actually orthogonal from the BDD test case like words, but yes, I I agree it's a little wonky.

21:16 >> The other thing that goes into it is this the next part of this is once you start actually looking at these, you start discovering things like before all, before each, and then you're like, okay, well, how does how does that work? Well, it turns out when you go into like Google's code bases, Google has a policy that says you should not use before all, before each. Test should be extremely local. Um >> Yeah. is like you end up over generalizing for things that you really shouldn't.

21:38 It's much better to make every test individually self-contained. When you go do this, it's just easier to model. Go ahead. >> Do you think that extends to like cuz like there's there's two flavors of that, right? There's like and and the Go team has talked about this a lot and actually the Mitchell Hashimoto does a really good talk on like testing in Go and they basically said like uh not only do we not use like before each, before all, which can be a little bit of like opaque from like you're reading the test and you actually have the logic, you have to scroll up to the top of the file to see what the setup is.

22:07 Um but what do you think about like test helpers? Like things inside the test case where it's like you know, await, set up set up database record for this, set up database record for that, start server. Like you take the logic that is like repeated in every test case and and build it into a helper. Okay. >> Cuz like uh and the reason I when I started thinking about this problem, I started thinking really hard about we use a lot of Rust in our code bases.

22:32 And I realized Rust doesn't have before each and after all. And I only realized this when I thought about it like I've never regretted not having that the last 2 years of my coding experience in Rust. Maybe three. I I'm not sure there is a BDD testing library in Rust and I'm sure there are Rust code bases that follow that pattern. >> Yeah. There's no chance because like Rust is like macro driven. So you just use macros and like it's just like you just add you just write a shared function and you just say that is what happens a few times. And that's a lot easier to think about.

23:01 So now that we've decided a few things, we decided we want to enable this sort of scenario driven testing with like metrics and everything else. We decided that we want to go ahead and not have before each and after all cuz it's complicated. Uh there's a few things that we are that are implicit like we want to be able to because of semantics, we want to be able to describe the name of the test with strings.

23:25 Like this is a way better way to describe scenario than like glasses glasses like making the variable name is arbitrary. We don't really want to do that. We want to use strings to describe things when possible. Cuz it's very very scenario driven. Um >> Yep. Now we can actually start beginning on this. So, it's very important when you do like full agentic coding at least in my opinion to like totally understand the surface area of everything you're doing. And all these conclusions that I'm sharing are actually they're not um I wish I had done this from scratch. I have not. I have done a lot of legwork.

24:01 Well, I should say my co-founder has done a lot of legwork in doing this. >> is the next the next thing I'm interested in is like yeah, can we look at the desired syntax and like what we think the feature should look like? So, I think I can share it on here. Uh so, this is like a very the first thing that we'll look at. There's a little bit more niceness that I'll go and update in a second.

24:22 But this is kind of what we want but at a very very trivial level. You want to be able to say you have a test, a test run this and then a test run arbitrary code. Yep. It's nicely sandboxed. It's you're running very very trivial amounts of code. And then most importantly you want to have some sort of metrics. So, we'll talk about these metrics in a second really fast. And what what these are versus like assertions.

24:45 And with the syntax is pretty straightforward. We've done a lot of legwork already comparing it to existing syntax. Uh and like existing patterns and other things. We were deeply inspired by Zig's ergonomic syntax. So, that was like a bias that we have already. Uh Zig's way of doing testing is really nice. Zig is phenomenal the way that it does testing. Um but I want to show a couple of things uh as soon as they go down here.

25:10 Um actually, I'll just show Obsidian. I think I have a better version of Obsidian. And then, let me switch this to dark mode. I apologize, amigos. I actually like reading in light mode. Call me a heathen, but it's phenomenal. You can leave it. Why do you Why do you want to change it to dark mode? Oh, okay. Well, people don't judge me. I'm going to leave it uh light mode in that case. Um I mean, I was going to judge you either way, so.

25:33 So, let's quickly look at this uh and see what it looks like. So, this is like the smallest possible test case that you can have. Um just ignore this bottom part. Where you basically have let's say you have a an perhaps a judge something that is able to judge the quality of an input. So, you give an input and an output and it gives you a float back. Well, then you have your actual function. It's going to translate. It's a function takes in language and then a target and it produces some string back out. All you're guaranteeing that it's not null. That's the only hard guarantee you make.

26:02 Then you make a lot of soft guarantees. Soft guarantees are saying, "Oh, I want to guarantee that I want to contain that this contains expected thing and the quality is more than at least 0.7." It's very soft. >> between assert and check sort of similar to like the like um like I know a lot of languages support like a like non-blocking failure where it's like, "Hey, I want to know that this failed, but I want the test to continue executing."

26:31 Uh I wouldn't even think of it as like a failure. Think of it as a metrics collector. You're collecting a metric that is named something that processes on these two elements. Yeah. Most most frameworks that implement this not as metrics would just be like, "Cool, we're going to print that this check failed, but the test will continue to run." And then, if there's at least one failure, then then the test fails, but we don't we let we let it run all of the evaluations before we actually exit the test.

26:57 >> this actually has nothing to do with whether the test fails or not. This is merely about giving you a metric. If you go back to what this is about, I don't care that this test failed. Like, it's fine that we got a bad unlock some of the time. I just the whole scenario of my test failed. >> Exactly. And if the percentage is less than 0.1%, that is more than 0.1%, then the scenario fails, but not the individual test.

27:21 >> So, you're going to have like another like um assertion on the entire scenario or the entire test suite that like makes assertions about the values of the check metrics. Exactly. So, now let's define scenarios. Well, scenarios are test sets. Test sets have a names, but they run arbitrary code on them. And then in every scenario, you can define more tests. So, it should read pretty straightforward in terms of what's happening so far, um and like how this is being designed, and what you're getting out of this. Questions so far?

27:55 >> Okay. So, this is going to emit a separate metric for every test case based on the the ID in the trace. Exactly. So, now the problem is when I run tests, I want tests to run extremely fast. So, if we run tests extremely fast, we first break this process down into two processes, collection and then execution. That's how most good testing libraries I I good testing libraries do it. Uh libraries that don't do a full collection sweep at the beginning, I think are incorrect. Um like I should be able to list out all my test cases really really fast.

28:27 Um at least I think so. >> Okay. So, you don't want the like async iterator where you feed one case off of the off of the collection at a time. No. And the reason you don't want that is because again, we go with we start with the principle. I want tests to run extremely fast. So, if I want a test run extremely fast, that means test should run maximally in parallel. They're running tests maximally in parallel.

28:51 >> to know what they are. You got to know what they are. Um, it like parallelism is impossible without pre-collection is is the claim that I would make. So, we must run collection first. So, that's like a another assumption that we're starting with. And again, I know that there's a lot of background before we get into the actual code, but it's really important that we all deeply understand the problem before we code. So, today's episode will be slightly longer if you watch me code the whole time.

29:18 But, I think once we're all caught up with all the knowledge, then we can go start the coding side of it. So, now we go do this. Well, if I'm going to run this in production, there's another element of this that we actually have. Which is, if we go back to the system over here, we talked about correctness. Well, correctness is kind of interesting for Face ID. Remember, this thing is a non-deterministic system. Same input same same inputs might produce different outputs.

29:46 Yep. So, what I might really want to say is, even though I have this, actually what's this test case should actually run three times. With a little bit of jitter on every input as I run it. Or this or this test case should just run three times in general. And when I run this test case every three times, I want to guarantee that, hey, it none of the time should bad unlock. At least one of the time should unlock.

30:10 And that's considered correctness. That's considered bad unlockness. Ah, okay. So, you're like taking the max and min of the three cases, basically. Exactly. And at least one pass guaranteed none fail. And that's considered a good system for this one. Well, that gets really tricky to go right. There's two ways that we can go do this. The one way you can do this is you can you can literally triple every test case. Well, you can for every test case, instead of being a test case, these are all test scenarios.

30:45 What do you have a three thing and you build an aggregation metric? But really the tricky part is you're kind of building some sort of aggregation logic here is idea. So you're no longer running the test as you thought you were. You're kind of running the test in different ways and with different principles. So how do you go do that? Well, what you really need is you want something where you can actually design the thing that is running the test at the same time.

31:09 So you want to be able to choose how you run the test. So in this case this is a quorum runner. A quorum runner says run it up to five times, at least three must pass. And if at least three pass, this works. Well, what is a quorum? Well, there's a couple more things I could show you, but I'll just show you what a quorum is. A quorum is just a thing that returns a lambda that takes a test.

31:30 It knows how to run that one test and then produces a test report. So it just tells you exactly how it's going to run itself. So this a quorum says you'll run this up to N. You'll run this five times and you'll guarantee that at least this many of those times passed. And you'll just produce a quorum test for this. So it's a really simple loop. You run this many times and you collect the pass rate and that tells you whether or not this test actually passed. It's a way in testing to like advance the testing to change the test report to meet some other criteria based on your execution model.

32:03 If that makes sense. How would you How would you consume this? Like so I'm defining the run once as a like inline function that is passed into the quorum runner. Well, run once actually just comes directly from the test that you define. This is run one. It's going to run this block of code. Okay. And every single test produces Exactly. It's not explicit. You don't have to think about this. Every single test >> once call is basically just a a internal wiring of of the thing the user wrote in the test case. Exactly. And then you got to run report out of this. And then a run report can produce another test report out of this.

32:40 What's interesting about this is you actually can do a lot of metrics like this. For example, you can build a retry runner. Where do you have run once and you run and as if any of them pass, you instantly return. If none of them pass, then you return a failure with like the logs of every single failure that happened. Then you'll go ahead and there's a way for example like you might want to say, "Hey, run this, but I want to change what client it operates on every single time. Like I want to change this to like switch models as I go."

33:09 Yeah, and that's why I go run my test case for this. You don't really want to change your test case for this. You kind of want to change the runner of some kind. It's kind of what you're really doing and how you want to think about this. Okay, so this is parameterizing across a matrix, basically. >> Exactly. But you're thinking about this list of test cases, you're giving me the ability to create a matrix runner. Now, the next thing you want to go is you want to say, "Okay, well, once you go do this All right, well, there's a >> So sorry, that that quorum 9 7 means we're going to run it nine times and we require at least seven of them pass. Exactly.

33:43 Right? But also what's interesting is because it's just functions, you can kind of define your own execution model for any one test as you want. You can also require this for test sets. Test sets can also have quorums built in. And what's really interesting is if you wanted to build some level of like serialization, for example, you can also build serialization cuz you can just say when you implement a quorum uh when you implement a like a runner one of the things that you can do is you can just say one of the things that a runner takes in as a parameter is a semaphore. And before you call run once, you require the semaphore to exist, then you call run once.

34:21 And because it's a shared semaphore across multiple tests, it basically guarantees that tests are not They're running in parallel, but they're definitely not executing in parallel. They're locked. Mhm. Okay. >> And that kind of makes sense. So, this gives you the ability >> would actually make my test If the slow part is the test harness, then yes, those things can happen in parallel, but if my actual execution is not parallelizable, isn't that going to be the slow part?

34:46 But, you opt into when you want tests to run in serial. So, the idea is as a developer, you say that these tests have to run sequentially. These tests can all run in parallel. And you you as a developer have to make that claim. We can't provide that for you. Yep. Okay, cool. So, now that we've done this, now you've seen the level of document that we've done the level of history that we've done off of this.

35:08 Well, this is still not enough. We want to We have to go to the next step, which is we'll take this ticket, and I've done a little bit of this work. Um so, I want to share some of this. Where you'll want to go ahead and take this ticket, and then you'll run it through the standard RPI. So, I literally copied and pasted that file directly in there. Uh it's either this one or a different one.

35:27 >> the BEP file that has all that Okay. I literally just copied and pasted everything in there, and I said, "Go do this." And it does the RPI standard process. Zero loop. I didn't do any work. I just told I just gave it to >> auto advanced it through to design. I auto advanced it to design. I think I did one thing in here. Uh no, I didn't even I fully auto advanced it to design. Cool. And then, once I got to design, uh this is where I started playing with this, and I'll show you a little bit of my chat log already. Uh we're still not done yet. So, I'll show you a little bit of my chat log. I told it the syntax. I told start going with it. It may it did the research questions. I did some more research. It produced a design file. It then went ahead and wrote the sign document.

36:12 Then, I started uh looking into the design document. I started thinking a little bit more about implementation detail, because the system so far is very clearly about syntax. Uh what is this UI? This UI is called Riptide. It's freaking great. Dexter, you should talk about it uh when you're when you want to. We'll talk about it at some point. I mean, I'll let you talk about it. >> All right. It's a tool It's a tool that we're working on for Agentic Engineering.

36:37 Yeah. So, I went through that and once I produced this, I then have um I then it did a bunch of research and it started asking me questions about all these design questions I came up. Well, one of the things I started answering some of the questions and I said, "Oh, this global testing um okay, so let me do a little bit more background." Well, in order to write the syntax, there's two levels of a compiler that we have to have. A compiler does a couple of things.

37:01 A compiler takes some syntax and puts it into the execution model of the actual runtime of the language. So, what does this syntax actually say? Well, the syntax basically says something like this. This desugars directly into Let me write this into Rust to get some syntax highlighting. extra All right, there we go. All right. This desugars into something like this. This code over here, this test set code, turns into a call to a global global testing called register test set. You register the test set with this name.

37:40 You take all the stuff in the body of the system and you just put it directly into here. So, you just copy and paste it into the body of the lambda or the closure. It copies in here. It takes in a parameter called test set. Uh every other test set that's constructed here immediately goes test set dot register, test set dot register and it just registers It's self-recursive. So, these can have arbitrary depth. You can have a test set that groups test sets. Exactly. And like this then takes in another parameter called test set. And then like if I had like if I had like a test foo here that does something else, this code over here would just say test set dot register test.

38:22 Um And you can kind of see how this runs. Yep. Um all the way through. And then all the runners just get passed in as the last parameter over here. As like one example of how to think about this. Yeah? Okay. So now that we can understand how Now we can understand roughly how this desugars, you can tell that I put some thinking at how to implement how this implements, but not all of it. So then I start once I have the design doc, I found some other problems with this approach. I realized, "Oh, we can't actually register global things cuz we don't have global variables in YAML because uh global variables are kind of bad and evil for various reasons, and they make it really hard to reason about code."

39:04 So we haven't added them in yet. So because of that reason, we don't want to go think about this. So we started think I started telling it, "Oh, what if instead of a global variable that just passed in this magic, we have a variable in a package called testing that's a registry variable?" That's still static to allocated once by the runtime, but slightly different. So it took my feedback, and it started considering this, and it made some suggestions to me. I'll show you what suggestion it came up with.

39:32 And the thing you have to learn about these models is they're extremely sycophantic. If I suggested something, even the best models, and they almost always are cuz they're they're they're taking a prior that is very reasonable, which is if I'm telling it to consider something, I likely know something that the model doesn't, and it's going to listen to me. So yeah, like this is why I think junior engineers sometimes struggle with these models because when you're a junior engineer and you tell a model something, you tell it to it without letting it know that's an idea you're considering, not that it's an absolute fact that you should do, it's basically just going to listen to you. So whatever mistakes you have are going to compound really fast.

40:11 It's really important to suggest to models very softly what you're what you If it's an If it's a suggestion and not a thou shalt do this, you you need to tell the model this. Well, and this is the whole reason why we started doing these design discussions this way, right? It's like, "Hey, don't tell me how to do the thing. Give me a bunch of options because either if you just tell the model to do the thing, then it's going to just, you know, token tumble out whatever the first thing it starts go Whatever the first token it spits out it takes it down a path, it's just going to keep following that path cuz that's the next most likely token. If you ask it which of these things we should do, it's going to try to read what you actually want and be the most helpful. And so, the really valuable way that that that that that these models work is really like, "Okay, tell me all the options and I the human will do some thinking." And, you know, there is some value in brainstorming. Like, the model can pull more things from your code base, it can pull more patterns in, but like, you know, uh we we uh yeah, what what do we say? It's like, do not outsource the thinking. Um if you let the model make decisions, uh you're rolling the dice.

41:17 Exactly. So, let's go on and like take a look at more of this. So, we now have the model trying to do a global variable that's like defined in some global thing for some reason. And it started thinking about this. It's still a global variable, it's just a global variable in a special magic singleton in the test package. Well, uh well, testing package. We can't call testing We can't call it test because um Yeah. test is a keyword in the language that makes it really ergonomic to read like that. So, it has to be called testing.

41:46 Yep. Um so, it did this. It started going to this. It did a lot more research. It independently did the research. You can see my prompts there are very, very small things. Um so, I started having like spec out what the testing package should look like. Once you did this >> saw in the design doc that that was missing detail and you were like, "Hey, we need to add that detail to this design so that we have like clarity and alignment." Exactly. I wish I could show the history of the design doc over here.

42:10 We should You should add that in. that right. It's coming. Okay. Um cuz then I can show the design doc, but at this point the design doc had no bamma code of what the testing package look like. >> Purely rust code is what it spoke about and like the spec of the language syntax. So I wanted to see like what does a testing package look like? It produced something and then I was like ah this just still feels a little wrong.

42:31 Um and it's just intuition. I can't tell you how I had this. I was just like I don't I really don't like having this magic static variable allocated somewhere. So it started coming up with ideas um and once it did that I was like just doesn't feel right. I don't know how else to put it. It's it just felt wrong. So where you just you have a magic basically it's not quite a keyword, but it's injected into the the I mean JavaScript had this problem too is like if you were running your tests in a test runner, you didn't even have to import this describe and expect. They thought it felt like magic and like no I agree I hate that. I I want it to follow the same rules as the rest of the language.

43:11 >> cuz then I can't like command click on describe and know what it's doing and it's like really hard to understand. So I want I wanted to not have too much magic. So instead what we said is instead of this function um the show again like this it started doing a bunch of stuff. Um instead of doing a function like this one of the things I realized is um I was like I actually agreed with it for a while. I just I was like sloppy. I was like okay registry is the only magic everything else is just regular functions.

43:40 Um but there's nothing else and then I said um uh yeah that's we have an existing assert keyword we wanted to delete that so assert becomes a package. Um small thing >> idea is like do you want these to be like basically functions in the language or do you want them to just be like magic things that are written in rust and have no like the quorum thing, right? It wanted to just make that a rust function versus Well there's like a bamma function. Exactly. Well there's two ways that you can do this.

44:08 You can write You have two options when you write a cert. You can do the Python way, which is you can write this. Or you can do like a TypeScript-y way and do more like this. And the main benefit of being >> has operator overloading, basically. Well, it's not about operator overloading. The main reason that you don't want this and you prefer this is because now you can do really interesting things like you can make an automatic differ built into equals.

44:32 That shows you the diff of the two objects by default. If you do this, you're busy >> have hooks around the inputs and the outputs versus just assert true versus assert false. And then you, the human, have to kind of describe or put in the logging to be like, "Oh, if it is an error, then render the diff of the two objects." >> So, you have to do like the human have to Yeah. Like this is just so weird to me. Yeah. And then like this also changes execution order cuz if for some reason you append you modify the elements in this expression, Yeah.

45:01 >> then like this changes in some weird way. It's like it it You don't really want to do that. You want to make asserts really easy to read. It's a lot more semantic. You can write things like contains. And like >> Yeah. now you can actually write a proper string. You can make it sprint print this out. Yep. And also when you think about like agentic systems, it's not just about that. Agentic systems can benefit a lot more from that diff cuz the diff is much more like agent friendly by default cuz you're like instead of printing out both objects, you can literally be like, "Everything is the same except for elements five and six in arrays."

45:33 Go Here's the Here's the elements of those two things. And you can literally dump those out. Okay. So, anyway, that was a that was another implicit decision that we had made. Well, explicit decision that we made with a lot of other background research along the way. Mhm. So, we did that. We've done We've updated the Zen decision. It goes through and recognizes my questions. And then I think my next question here is uh is this. So, I read all of this as a cool, I agree with this. And remember, we're still the old testing registry is the only magic. Everything else is regular functions, there's nothing special except for this top-level global variable that we have called registry.

46:15 And remember, we hate global variables, so like that's still rubbing me wrong, but I'm I'm accepting this for now. >> Okay. And then I do the next part, which is uh we produce a design document at this point that reflects all of your decisions, right? You've basically taken everything that's happening and like compacted it into a single doc. Oh, this doesn't show the ticket 2.md. Okay. We do not have ticket in the artifact. Uh ticket or ticket two do not show up in the uh in the edges of the nodes. So, the ticket, remember, is I did a lot of cloud code work to produce the original spec that you saw on the Baps website uh that we started with earlier. Well, Aaron did all that work. I did not do any work.

46:54 >> Yep. Um we did all of that work. Then I we and that's a totally separate process. Like a lot of background work, a lot of understanding to produce a good ticket. Yep. Then we went through and just ran it through RPI to produce research questions. Research fully automated. We produced a design discussion. Then you saw me iterate and you can just see timelines of how long this takes just so we have like a little bit more clear concept of what this active time is more important. So, I kicked this off at 8:07.

47:23 Yep. >> Uh and then So, you were you were taking breaks to play League of Legends in between this as well. >> Oh, yeah. So, the way I code now is I pretty much just have like two agents running in the background arbitrary tasks and then I just play League while I code and it's freaking great. Um SBF has got nothing on me. Um sorry, I shouldn't say that, but you know. Incredible. >> Batman thought he wanted to >> Listen, man, if you want to be the next SBF, you know, just just don't don't bring it into the podcast, okay? I like doing this show. I don't want you to go to jail.

47:56 >> understand about certain founders? It's like, how do you make a startup that like just you just literally Anyway. Uh I can't I don't want to say this. I'm not going to comment on anything going on in the startup scene right now on the internet that we all haven't heard of that. Um anyway, and then so that was 808 when we started that 807. And then So, what is this ticket two? Okay. So, it took me about two uh like two and a half hours to come to this point of liking this design decision.

48:25 Um once I found the design decision, then I told it a very specific task, which is take ticket two, um and then create a ticket two. So, that means take all the design discussion and literally just create a new ticket as if we had all this learnings from day one. And it's already read your ticket one, so it kind of knows the shape and the level of detail that you want in a sort of more PRD style thing. Like the design discussion has tons of code base context and you kind of you're basically like take all those decisions and and and distill them out into another like high-level, almost like PRD style thing.

48:57 >> Exactly. Uh so, then it does that um and like it's actually kind of Um and then I do that. And then when I read this is when I finally realize some mistakes. Um I was like, oh uh I was like I realized, oh well, we don't actually have like this yet. It's not theoretical. Uh it's coming in, but it's not there yet in the existing language as we have it right now. Yeah. So, it added some notes.

49:20 Then I went ahead and read more. And then I said, oh. I realized something as I read the final ticket. Cuz remember, when you're in the design discussion mode, you're not reading the whole concept as like a story anymore. You're kind of reading you're so much in the weeds, it's hard to zoom out. So, I was so stuck in the global variable mode, it took me another like um it took me uh another like 30 minutes of processing uh of like iterating on this and actually reading the file. There's a step in here where I'm actually reading, and you can just see when I start reading cuz like the time just jumps.

49:52 Yeah, like I just start reading. Like I just Yeah. I disappear for like 20, 30 minutes and I just read. The whole thing. I read basically the entire design discussion. I read the entire ticket. Camille would like to see ticket two um I will show you an example before I get into the details because I think it's going to be useful to have some more context. Okay. >> As I go read the ticket, I catch something. I'm like I don't know. My brain takes off at 11 and I'm like hmm I don't like global variables. I really never liked them. It was like a hack that I accepted.

50:26 Instead of it doing the global variable thing what if I just pass in a registry as a parameter? Instead of it saying instead of this instead of this compilation step doing this what if this actually decompiles into the following? I just pass in a test registry into here. Uh who knows what this type is? Uh yeah. Would the gentle coder want to have a Instead of a global test thing, you get to use test registry. Exactly. And now all of these have become nicely recursively defined cuz this is also a test registry and this is also like whatever type this is is the same type that this is. Yep.

51:08 And so you had just have one thing. Basically, you have one global thing that gets passed into all the declared tests for every file that ends up like basically rolling down into every single test instance. Exactly. And it just kind of works with very, very, very low effort if that makes sense. Okay. The thing you just wrote, is that what Claude came up with? Or like I guess I guess that's what you that's what you passed in in your prompt of like hey, let's keep iterating on ticket two. Exactly. So like this was again, this Claude did not come up with this. I had to come up with this. Um You designed this.

51:40 >> this I had to come up with the design. You can see what And you can see the level of does it design that I gave it. A very, very little. It was like Yep. Oh, I suppose it had like uh instead of any new top level lets, cuz you don't want a global variables, you can just say every single test set in a file gets a single test operation that gets hoisted into a lambda. So, I'm trying to be very technical in the way that I speak to it, so it's a little bit more understanding.

52:03 I don't think I was trying This is the way I speak, actually. So, maybe I'm a little weird. Uh but then I just said, "Do this." And it just did the thing, and then it's produced a new output. Then it started thinking. I was like, "Oh, here's all the options that we have for it." Um and it produced something It produced a bunch of options for me to consider. And it actually suggests A and B. And options A and B are very interesting.

52:26 Option A says a new testing in it per file, and option B says per package. And they're slightly different, uh but it has different implications. And I asked it to try and tell me which one is better, cuz like I don't want to think about it. So, like I I I do offload some of the thinking, uh but not all of it. So, it actually said that >> Well, you you let it you you give it a chance, and then it gives you the reasoning, and you're like, "Okay, yeah, the actually this answer makes a lot of sense." It's like, "Oh, we're already doing a knit per package, so we might as well do the test in the same way, right?" Uh and then I was like, "Oh, we can't do per package." I realized something. There was like uh There was like some semantics to the language that actually make per package really hard, and the model doesn't have the context about how the package is some work probably fully to like know that off the top of its head.

53:13 Nope. So, then I was like, "Oh, we can do per namespace." Uh uh and we can also do per file, so that would make the most sense for uh but per package basically has like consequences. Uh what they are, just ignore that. It's It's just what I The point of that is it's useful to have a strong background in your code base to be able to navigate these systems. And I hope by this point you all can very clearly tell if I had vibe coded this in the traditional VIBE vibe coding style, this would not work.

53:42 Uh like there's so many assumptions that the system got wrong already. Mhm. So, it started to be like >> it is like these these these markdown docs are basically an opportunity to have the model dump out everything that it's thinking so that you can do brain surgery on it before like okay, here's all the patterns you want to follow, here's all the decisions that you think are the right decisions. Give me as many opportunities and give the model as many opportunities to tell you at a high level what it's thinking so you can re-steer before you like drop down a level basically. Exactly. And at the and you can tell that this is a pretty rapid back and forth. I'm like fairly engaged and the times when I disengage are when I'm playing League or when I'm reading documents. But it's it it's pretty straightforward in terms of just reading most of this. And then this is just it's a pseudo it's a pseudo plan mode with custom agent plans that we have. So, there's just like custom agents commands skills that come in here so like like these skills that you can find like trade plan, edit plan, etc.

54:42 Um and you can go to this. So, then we have So, then we came it came it actually realized this is like oh it actually decided not to do per namespace and that that's a correct call. I can't describe why cuz there's a lot of context I have to fill in. It's not useful. But it it chose per file and then it actually said per package we actually chained them in and we call every per file thing once in the package.

55:04 And it generates this per package function as well. So, now we have a package registry of tests and a collection registry of tests that does this. What's really nice about this is this does a couple of nice consequences. This makes it so that startup time for the program is not delayed by test collection which is really nice from a system over here. Uh, and then I was like I still wasn't convinced. I was like should we do per namespace again instead? I was like I really wanted to explore this space of this.

55:32 Um, and the only thing I don't like about this is a the is only using its existing context here. It's not making tool calls or search the code base. So, I know there's some falsehood here. So, it actually does It actually comes back with a pretty existing thing. And like actually this is a line that convinced me. Uh a little bit. And you'll see later, I try and fight it really hard. Um All right. I try and fight it really hard. I'm like I really wanted to do per name space. It's cuz it's easier to ex- to reason about.

56:03 Um so, I >> from a user perspective or from a like maintainer of the language perspective? >> maintainer perspective. It's easier to It's easier to reason about. Um and then I think I I think I convinced it for a little bit. Um it does this. Uh and then I said Okay. Uh now this is still cloud. It's still doing stuff. It's still doing stuff. Okay. Um and then it made some assumptions. I was like, "Oh, name spaces are folders that start with NS."

56:31 That's like how we do name spaces in BAML. Uh because uh We'll talk about that later. So, like for example, the model understands this. So, like this is not in a name space. It's just in the top uh global name space. Um this is in a name space. This is all the files in this folder automatically in the same name space. It works very similar to go if you've seen go before. Where like go in go files like everything in the package is shareable across files. Files don't mean anything.

56:58 And in an agent-friendly world, you actually want files to mean almost nothing. Cuz agents just cat files all the way around uh all the time. And like files don't mean >> and yeah. Exactly. The semantics of the Yeah, you don't want the path to be meaningful. Well, you want Um you want minimal impact from the path's meaningfulness. You want some grouping level from the path. But we can talk about name spaces later. Um and the trade-offs there.

57:26 So, it actually did all this. And I looked at this. And I was like, "Oh, this is not valid syntax. It made a bug." So, again, you'll see that I like as this is happening, while all these changes are happening, it's actually making a bunch of changes, but I'm actually reading while the changes are happening. That's why I'm able to go and skim through this really fast and give a response within like less than like a minute I've been producing the whole document because I'm I'm reading it already as it's happening.

57:49 Um so, then I found this bug. So, I had this prompt queued up. Uh please ship queuing Dexter so I can queue this and it'd be faster for me. It's coming. It's uh well, this is why I like next time we do a No Vibes Allowed with this is you know, sometimes these episodes we would try to do them in an hour and it's just you can't ship anything real in an hour. So, I mean, you can already see that >> Yeah. We started this at 8:00 p.m. It's now 11:22 and that doesn't include any of the work I was doing with Claude before 8:00 p.m. Iterating on that back to make it slightly better. So, it's about 3 and 1/2 hours already.

58:21 Um so, then I had it go and produce this. I was like, "Oh, this isn't valid." Caught this mistake. I was like, "Oh." And then we had to go riff about how we're going to go deal with this. Yep. And then I was just like, "Let's do the simple thing uh and just like dump variables in in positional order and it's up to the user to make sure the positions are correct." >> Exactly. Um we haven't decided how named and keyword args are going to go.

58:42 Yep. Uh so, now it's all this problem. I fixed another thing in it and I'm trying really, really, really hard to make sure that there's no mistakes cuz any one mistake in this ticket is just compounding mistakes I have to deal with earlier. I am for full correction. >> thousands of lines of code and a mistake here could lead you to basically having to throw out the whole thing cuz this is 200 lines of spec that's going to turn into thousands of lines of code and so the impact of one wrong line is pretty significant. And it creates like drift from the model when it sees like two two possible truths, then it's like, "Oh, which one do I do?" And at any point down the stream it can now drift on any one of those directions. And like you can't steer that because I can't keep up with the rate at which Claude writes code. I just pos- it's impossible for me to read code at that speed.

59:26 At least for me. Uh some people are much better readers than I am. Uh people that did debate for example. So, then we did this, it produced this, and then I was like uh then I said I was You can see I'm really trying to go by the name name space thing. I'm probably just on something. It's like 11:30, my brain's not working correctly, and I'm really stuck on name spaces. Um yeah. Uh and then it does some stuff.

59:48 Uh so, then tries to do per name space. And then I was like, oh. Uh and then it changed it back to per file. really fighting me really hard on this. Um and then at one >> deep in the dumb zone, man. I know you I know you're using the 1 mil context, but like it's not able to it like I usually try to recontinue it at over like 100k tokens. Um I think the model's actually correct here. I actually should not be doing in the I should not be using name spaces.

60:16 I'm in the dumb zone in my brain uh is the problem. >> Maybe maybe that's part of it, right? Yeah, that theory that like Opus gets dumb at 2:00 p.m. or 3:00 p.m. Pacific time, and it's like, maybe you get dumb at 2:00 p.m. Pacific time cuz you just had lunch, and you don't care as much anymore. I definitely get dumb at like 11:30. Um So, then I was working, and I was like, oh. And then I was like, oh, nothing has been rust There's like some magic thing that we have that allows in BAML for you to say, "Hey, this is actually data that's in rust, not in BAML."

60:45 And that allows you to do something well there. Uh and then you can just you just uh say that this can be pure BAML. It goes ahead and makes some updates. Uh it recognizes my its correctness. It cleans this up a lot. Um and then I realized, uh shoot. I haven't thought at all about how to actually build the test harness, the one that can run everything as parallelly as possible. Um so, then it goes and starts thinking about this more.

61:12 And once it does this, it comes up with a bunch of options. And I I can just help it rule out certain things. Uh it's like, I want test that can run in parallel. Uh, and then I was like, "Oh, we can also introduce a semaphore construct." And then now you can do serial. Cuz once you make parallel the default, you now need to give users a way to make serial possible. So, I think the best construct there is a semaphore.

61:35 >> if their test case itself is in parallelizable, they can opt out of the auto parallelization for certain >> Exactly. So, then we actually started riffing on what it means to be a test runner. And we realized that it means to be a test runner is instead of just telling you what a run is, it's a function that takes in a function that produces a new function that produces a test report. So, it's a little bit easier.

61:57 It's a decorator. Exactly. You can think of it like a decorator. Um, and then we started doing this. I was like, "Oh, this works pretty nicely. You can define a semaphore and then you can say that these run locked." So, it's not that they're running serially, it's just that they run now in order. So, now we need to define a serial construct in a bit. And we'll see we'll start coding in a second. Um, we're almost done. We're almost caught up to where I am right now.

62:19 So, but I >> This is good. You did a good job of compressing 4 hours of thinking into a 30-minute podcast episode. Actually, I did go to bed at some point. I don't know when I went to bed. That's what you see. >> morning. Is this where your decisions start getting a lot better? Yeah, I think so. Yeah, I think I just did the last thing and I just went to bed at 11. I was like, "I'm done. I have nothing to do anymore." So, I woke up and I started coding again in the morning.

62:42 >> This was this morning? Yeah, it was this morning. I was just coding. I I This problem was interesting. Um, >> Yeah. and I was like, "I just need a new brain power to think about this." And that's when I was like, "Oh, parallelism is a thing." I think there was a Slack thread or something that caused me to think about this. Mhm. Um, so we started thinking about this. We started doing parallelism. Uh, the semaphore construct came up.

63:03 The model produced a bunch of options. And then I actually realized um, the runner is code that can run during collection uh, the runner code can actually run during collection. Yeah, um, the problem is if the runner code runs during collection, we can't actually tell you what can run in parallel. It's our information we have. Cuz I thought would be really nice from a CLI perspective is what if you could show in collection what is going to run when in parallel.

63:28 But because it's arbitrary code, you actually can't >> able to kind of like parse it almost into a plan so you can present it to the user. Exactly. I like it. >> Right? But it turns out you can't do that because of arbitrary code. Once you write an arbitrary code, presenting certain things becomes impossible. So, I had to tell the model that. But then I told it Basically what I was telling you was everything is basically a slam does, even a test set. It initially said test sets runners are now just aggregations as well.

63:53 The problem with test set runners being aggregations is a couple of things. One, this it's weird that these things take in different types. That's the first thing that I noted. It's like, "Oh, why does this take in a function that is a void and then produce a test report?" It This just feels off to me. It's the best way that I would describe this. Uh and then this takes in a type that is not the same type.

64:14 So, that's the first thing that I noted. And then I was like and then the model was like, >> okay. Then instead of void, it should return the test report and then you can do Yeah, that makes sense. >> Exactly. It's makes more sense. It's not really That's how you should think about it. >> you can wrap the thing without changing the type and the code doesn't have to know whether it's wrapped or not. So, you nailed it. Exactly. So, now >> Cool. we basically are running this as a Now, it really looks like it It's like an identity decorator is more of how you think about it. A decorator takes in of the self and produces self back out.

64:49 It's It's not just decorator. >> of the the biggest issues with like Python and like typed Python is like once you throw a decorator on, all the types like >> Everything breaks. Exactly. Or you don't you don't get any guarantees anymore because the decorator is you're not going to pass a bunch of type parameters into a decorator. Exactly. So, now you get this system that is able to give you this. And now you have this. So, now you can kind of produce uh a And you're noticing the model's doing most of the heavy lifting because the context is pretty good and it understands what it's trying to do.

65:20 The model can roughly get far along. So, then I was like, "Okay, well, okay, this is pretty good. This all makes a lot of sense." I was like, "Before we go and update ticket two, just show me the full code. I want to see code." Uh and there's two reasons for this. One is by seeing code by seeing code right here, I'm heavily buying the biasing the model towards this code submit when it writes the ticket.

65:42 Cuz otherwise, it's going to invent this code submit and write the ticket. But, also like it prevents me from writing a ticket that's bad in the first place. This is interesting. So, you're doing a thing that is a little bit different from how I I I I use this like tool in these these workflows. When I'm doing So, you're you're locking up a lot of the design con not locking, but like you're allowing a lot of the design concept to exist in the context window.

66:07 Whereas, when I'm using this, I am every single question I have is like update the doc. And so, it's like I read the doc, I write to Claude, Claude updates the doc as like a unidirectional flow. I I think that's for me is mostly about like context anxiety is like I want to know at any given point every single thing I've said to you is tracked somewhere outside of this context window because I always treat the context window as something where like it might veer off or my session might shut down or or whatever it is and I always want to be able to resume from the document.

66:38 So, here's how I think about it. doesn't why I do it this way. Um Yeah. Um when I model context windows, like look, we all know models clearly are like models heavily biased towards like most recent instructions a lot. Yep. Like we know that the model's going to prefer these two texts way more than it prefers things at the top. It just will. So, it's not that I'm losing information, it's just that I don't really need perfect recall on this section.

67:07 Yeah. I'm not worried about like the traditional dumb zone because what I already know is like what I know is like the most recent messages are not in the dumb zone. Right? Like I it's they it's just like I know the model's going to bias towards this and like likely what the model's actually biasing towards is like this plus like like the system message.

67:40 >> Yeah. And like this is probably like highly prioritized in some way. Um >> This is what the models are trained to attend to the most recent thing. This is what we talk about is like they forget what's in the middle. This has been This has been like common knowledge since the chat GPT >> Exactly. So like because of this I'm not too worried about this because like look, I'm actively engaged. Everything up here is stuff that I'm actively participating in. You know, the last couple all of all of the things that you care about are in the last couple messages and so you're not worried about being deep into the context window.

68:11 Exactly. And then more importantly, my brain is much better holding on to like long-term ideas and consistency for this entire conversation. So I'm not worried about it like the model making a huge mistake cuz one the models aren't that bad. They're they won't make huge mistakes, but details are my responsibility. Okay. So yeah, it might forget a detail from 15 messages ago, but you know, you're confident that's locked into your head and if the model forgets it, you'll just remind it. Or even if I it doesn't matter if it's locked in, I'll recognize it. I I the burden is on me to recognize.

68:45 Yeah. Yeah. I I I would I would rather have the the guarantee that whenever I make a decision, it's it's it's locked into the doc and basically the model can just reread the doc at any point either in this conversation or in a new conversation and basically have all the things that are important. And so, I'm I'm I'm Yeah, go ahead. The problem that I run into with that approach is that for really like heavy design construct, like this hopefully everyone can tell at this point this is a very very heavy design construct. This is like there's a lot of design space here, a lot of room for mistakes. If I were to serialize the disk every single design decision, I would move at half the rate.

69:21 And I I I want to move fast. Like it's like serializing to disk is extra tool calls, extra wait time, extra consistency the model has to maintain. And I'm actually wasting tokens doing that. So, like that's why I don't do it for like heavy heavy design tasks. Cool. All right, let's keep going. I just wanted to like riff about that for a sec. So, now we produce runners. Um it produced some code for me. This looks pretty good. It's like, "Okay, cool.

69:46 This is a test runner." It still doesn't do this for test sets, but that's okay. I'm not That's not what I'm focusing on. I want to focus on one thing at a time cuz if I distract the model, it'll do things poorly. So, we're going to focus on the test runner only. It defines what quorum looks like. And I read this code, I don't like does this seem right? Do I like this? There's things I don't like about this, like what summary is and other things, like it seems too much magic, but I hand wave that for now.

70:10 I'm not thinking too hard. I am thinking about composition. Cuz that matters to me a little bit. Uh and you can see the model almost doing thinking in its system as it's doing this. Um so, it's it's kind of interesting here uh what it's doing over here. Um and it's proposing different ideas for how we might want to do composition to make the user's life easier. It's like a decorator on a decorator, but with some execution logic around it.

70:38 Okay. >> Um so, it's proposing some ideas to me. So, I'm at collection. I'm like, "Okay. Well, this looks pretty good." And then I realize the problem, which is you can't actually redefine test how test sets run, only tests. But I can redefine how collection works. And this is just me validating the assumption the model made. Before I try and change something, it's really important for me to like give the model like context around what it what it has baked into its design philosophy. And I want to really reinforce that.

71:06 And once I've reinforced it, it's like, "Oh, yes, it's doing something like this." >> to match the same thing. And then I then I really have it try and articulate this for me. And when it tries to go articulate this, the model will come up with the same hunch that it is. And I realize, "Oh, let's just make it a lambda uh is the best option." Again, and it starts proposing options and I then I give it everything else cuz it's already seated directionally where I'm going.

71:33 Um and then it now produces what I want, the symmetric runner. And now it has >> Nice. a really really nice chain, and then it kind of just works along the way through. And now it's >> annoying that Claude couldn't come up with that the first time. That the models are just like, "Yeah, let's actually add more complexity." And you're like, "Nope. Nope. Narrow it down. Narrow it down. Make it look pretty." Yeah. Yeah. Um and again, I still haven't written to the ticket yet. So, I know I know Camille, you asked to see the ticket, but I haven't even written to the ticket. It's all in context of what I'm doing so far.

72:04 And now I start going to details. Now I'll talk about summary and metrics. I'll talk about all this other stuff. I define a JSON type when I go do this. Um Uh then it produces some more data, blah blah blah. That's not really interesting. Uh it updates the mental model. Update the test ticket. So, then it has a really quick thing and then I guess it updates the ticket without me telling it, too. Um And then I think I have to go at some point. Uh there's some small Oh, I started reading actually 8:13. It It took me like 12 minutes to read the ticket.

72:34 Uh then I told it to go read the ticket. And when I read this, I was like, "I don't like the dollar signs, but can you put underscores instead?" So, it changed the name. Um Uh change the name, change the name. Uh Cool. And I think that's it. That's where we caught up to. Now, while we do this, let's take a look at what the final ticket looks like. Well, any questions so far from folks out there?

72:58 Uh about this process. We're caught up in the real time now. We're in live mode. Are you going to write the code? Yeah, we'll do in a second. Um I'm just going to do the next part of the task, which is just reread this ticket, to be completely honest, and like make sure that this is correct. This is super high leverage. Um cool. Uh but this is like my day-to-day. Like when I'm coding, this is exactly what I'm doing. Um and like this is what I do whether I'm being recorded or not being recorded or I'm talking on the screen. Like it takes good amount of time for me to iterate.

73:31 And I give myself that time, and I do a lot of like long context. That's why I like longer models because I keep everything in the context window for most of my behavior, and then I write to disk at some checkpoints effectively. Yep. Um so then I produce this ticket, and then I go read this. I'm going to go read this really fast. Uh I might make more mistakes when I go read this because I'm skimming rather than reading in in sequence.

73:57 No, read it read it in read it read it in real time, dude. Oh, it's going to be too slow. It's going to take like 15 minutes of just silence. And we don't want that. Uh so we'll show you guys roughly what it is. Um and the most important part of that right here is like I'm not too worried about the syntax form. All this makes sense. Like I know it's not going to change too much syntax. We've already discussed all this. What I want to go check is the execution model and what it desugars to. And this is going to work.

74:20 Cool. So I read this file. So it actually like now it actually gives a file name when it does this. It makes init test four, blah blah blah, takes it out of registry. This function returns void. Registry registers a test. So it actually runs this test, which is kind of nice. Uh for the first one, which is translate hello, it does this, and then testing quorum gets passed in. Perfect. >> Nice. This works. Um or or might ask a question, am I actually monitoring how much of the context window is being used throughout this process?

74:53 Are you also taking compactions I count? Well, I used to before when like the models did not have a million context, I would actively manually compact at certain checkpoints because like I just I find the value of the continuous context chain useful. But now it's a million context, I just let it rip until I get pretty far. I think the biggest I've hit is like 800,000 tokens. We publish a blog post with some like early findings and like honestly might be going back to Opus 45 for certain things.

75:23 Um it actually might be interesting to have, you know, Kyle's done a lot on like long context models and like ways to turn It's the same model. It's not like they added more intelligence to it or more attention. They're just using things like yarn to allow it to take more more input in. Yeah. We don't have to talk about that today. That's like a good other That's a like a good other um other things to say. aware of this construct of this is what a long context is, you can use the model well. But you have to be aware of this. And you have to make up for the lack of knowledge that the model has on old context window. It is your responsibility as the present steering to go do this.

75:58 >> Okay, but also but also if like the middle of your context window you're just going to pretend like it doesn't exist or it's barely going to impact you, why not just start a new one? Convenience. Yeah. It is like convenience to be honest. And sometimes it doesn't impact you, it just has less influence. I think it's false to say that it won't impact you. It just impacts the current steering less than the most recent messages.

76:22 Is the best way that I would use to describe it. So, this looks pretty good to me in terms of what's happening. It feels like we have registration, we have all these other things working. Um I like the naming convention here. This looks correct. Um it has the per package shainer where we have one global in a test function that takes in a registration pass to the solvent. Now it's actually really clear what you have to do. You have to construct a new registry type and then you just call in a test. Now you have all the tests being collected.

76:52 What's really nice about this is you only have to collect the test that you care about. So we can pass in some special flags into here to make sure that collection doesn't run for a certain things. So like this could be state >> Well, I'm curious is like in the CLI when I actually execute testing, like what sort of filtering stuff is available to me and we haven't touched anything on like how do I tag tests to be able to slice and dice?

77:13 Exactly. Haven't touched on that at all. Um But you know that this architecture is going to make it easy for you to add that feature later and that's like one of the things you're designing for, I'm I'm sure. Um Someone asked the question like what made me switch out. Um honestly it's just one of my philosophies when I go and I code with these systems is I one on a I think the way I would say humans are lazy and like lazy coders are extremely lazy.

77:41 And I am probably one of the laziest of all of them. Uh so why do I not come manually come back? It's because if I can get away without doing it, I will. I will not do it. And my way of doing that is I just limit my test on different scenarios. So I've implemented like three or four features using this approach. And like I got great outcomes and because I got great outcomes, I have empirical evidence that I'm not being impacted by like manually controlling context. There's other reasons to manually the the down zone and keeping the context window small is about optimization and it's also like it's a rule of thumb.

78:15 When I say like hey try to stay under 100,000 tokens, that's really like if you don't know what you're doing and you have no intuition, like that's all you can go off of, but obviously for certain tasks you can go up to 800,000 tokens. For certain tasks you can actually only want to stay below like 50,000 tokens because it really requires a ton of reasoning and thought. I don't know what that would be, but like it is a it is a guideline, not a not a rule, and there's like, you know, there's a lot of nuance here of like It's correlated with the amount of effort that you want to put in at the time. If you want to be highly engaged in the process, go further. If you want to be highly disengaged to the back context, you probably don't want to go as far.

78:53 Uh cuz it's just like let the model make If you want the model to make less mistakes, stay smaller context. If you want the model to make more um If you want to be lazy, use bigger context. But then you have to make up >> What's the laziness in some other ways? Yeah, you have to you have to basically it's like, okay, what every in every message you send, you're going to make sure that all of the all of the last three messages continue to get kind of like re-propagated. The things you care about are going to get reiterated by the model, so it stays in the recent context. Exactly. So, at this point, I'm very happy with what this does. It it produced everything up to this point.

79:26 Now we have the next part um uh that we got to look at, which is old style migration. So, we used to have old test and Babel that looked like this, and we're like, how do you migrate this well? This just desugars directly. It's kind of nice. You don't have to think about it. It just works. Uh like there's nothing special here. And then arg names just get dropped. >> of the all of the things already that you would need to power something like the the VS Code extension and things like that. Like everything's still being emitted by the telemetry layer.

79:54 Um kind of it kind of. Uh but we again, we're not talking about that right now. One of the most important things that I found to be useful when I do a diagnostic system is work on the work on the layer that is the most foundational first. Get that working. Keep that extra context of like we got to make the CLI work. We got to make the VS Code extension work. We got to make all this stuff in your brain.

80:14 Be aware of it. >> But don't let the don't don't force the model to design all of that. This is what we call vertical slices or like tracer bullets. It's like get the foundation there, make it work end to end, and then you can add more functionality in versus trying to design the entire thing up front. Exactly. And now the ticket starts talking. So, like at this point the ticket is talked about desugaring. So we talked about desugaring. Now the ticket is talking about what key What does this mean for the language or the language we have to introduce new keywords we have to introduce test set and width. We already have test as a keyword so it's already different. Uh so it doesn't need to introduce that.

80:47 And then it says, "Okay, we have to delete the assert keyword." We don't have assert keywords anymore cuz the assert keyword is just a package, it's not a keyword anymore. And then we introduce some new standard library packages. The standard library package that introduces is testing package. And the testing package is described as such. I'm not going to read this really fast, I'll read it in a second. Uh then we describe the runners and what they actually describe. They're just type aliases that point to that are lambdas.

81:14 Yep. Uh we define a JSON type in the BAML standard library. Uh which is just described like this. It's helpful. Uh we should go do that. Um it's nice. Um then we do report types where we define all all the report types are. Um and then I need to think about this. I I haven't thought about this enough yet. We need to think about this. I don't like unknown here. We got to We got to go flush this out in a second.

81:40 But that's like as I'm skimming this, I'm reading this in real time with everyone right here. So like I'm just flagging for certain things. Like I'm like I see unknowns, don't really like that. Don't like uh uh uh don't like some of this stuff. We'll have to get around this. We have a semaphore prototype. Now this is a pretty advanced so probably just going to wait on this and not think too hard about this right now.

82:03 Uh because semaphores require release constructs and other things that we have to go deal with with garbage collection. Uh we need to first semantics on semaphores. So I'm I'm likely going to tell the model semaphore is like an additive thing. So I'll just tell the model here. Semaphore out of scope is a feature thing we do because to invent it, we need to add the first slash destructor semantics and those are undefined.

82:40 Cool. So, I'll I'll just let it know that so it can kind of know that we might want it but not that we'll implement it right away. And then it just tries to tell me like lots of the force. Yeah, so we're just not going to do like channel forces off for now. Um it's just too complicated cuz I don't want to do anyone differ uh and like that's a whole that I have to go we have to go right like like the errands go right. Do you want to do that as well?

83:02 >> the defer keyword in Go where you can like basically say like before this block exits like run this run this function. Yeah, like Go does that really really really well. I really like that. It's like ah on return run defer. Yep. Um on or or panic. Yeah, panic is bad. Um I have a panic button, that's different. Uh so, then it talks about more test set runners. I look at all of these. Um all passes kind of interesting. I think all passes kind of redundant.

83:30 Uh but like that should be the default behavior is the way I described it. So, there's no reason to have an explicit all pass. Um so, let's comment that in. All pass seems like a default behavior in test sets so I don't know why I would ever create this. Um we'll send this as soon as it's done. Uh it's going to take a while. So, I'll go read this uh quorum to regular panel functions. Yep.

84:01 People can run their own. Think about this. Scheduling. Now, I'm going to go read this. This is probably the most tricky part, which is I have to read how I execute how our execution model will work. Create registry. Cool. Now, we have a collection. Once you've done a collection, then we need to go ahead and um for each leaf. Cool. Yeah, that looks pretty good. We're going to go run this and then go do this. I think this will work.

84:28 And then this is very recursive. This is kind of defined nicely. Uh this is the only special thing that has to be like kind of built in. Which is fine. Yeah, we can just do a very very simple thing. Uh over here check package. Along the way, soft asserts. They just output metric results.

85:00 Yeah. Uh problem is I I I don't really want to think about how metric results are going to be aggregated yet because if I think about this right now, I Yeah. Uh it's like I have to think about how aggregations happen and like for example, like asserts are very obvious that they happen. When you have an assert, it raises an assertion error. Yep. >> When you run a When you run a check and you can write this in any arbitrary code anywhere. When you run a check, the question I have to ask is what happens if a user writes a check statement in a in an arbitrary function. What does that mean?

85:32 And what does that actually do? So that's kind of soft. So I'm going to do I'm What I'm going to do is uh assert package is in the clear. Uh feature work since asserts can be arbitrary function but check I do you.

86:07 I have no idea no idea what that means outside of tests. I don't know. I think about this later. Okay, cool. So, Miles going to go do this and then they'll just let us know how to go do this where it's like serialization is future work. The one thing about this every test will run in parallel for now. Um and then also we need to go deal with uh we need to go deal with like um the assert package and check where check is marked as future work.

86:43 Okay. Okay. I I honestly think this ticket is pretty good as is. Let's ship it, dude. Let's Let's go. There's a few other concerns I have which are mostly around like mm this unknown stuff feels wrong. Um I got to think about this. >> So, but So, how about how about you just remove the things that you're unsure about so they don't come into the model as like pre-baked decisions? Just be like, "Hey, remove that section." And then it'll come up in the design discussion and you can iterate more.

87:15 And this is something we do all the time. It's like if I'd rather I'd rather I'd rather not have a bad If I'm not sure about how to do something, this is also how we take a two-sentence like thing and turn it into a big design discussion. It's like if I'm not sure about the implementation or how I want it to look, it's like, "Cool, go get a bunch of code base patterns, go get a bunch of code base context and then I'll have a much more grounded discussion later with all the patterns available."

87:37 In this case, I can't really do that because this is all novel stuff we're adding and there's no patterns for it to copy. Like I just have to model what like what is a run report going to have as an outcome. It has like pass, fail, error, skip. Duration milliseconds. That's reasonable. Yep. It has metrics which are going to be metric result we'll we'll look at in a second. I have no idea what output means here.

87:58 Um >> Yep. Like so, what I'm actually going to tell it is when I go look at all the data structures that it added, it added a lot of unknowns. Help me understand the unknowns. Yep. Yep, that's what it is. It's yeah. Give me lay everything out on the table so I can remix things, take things out before we go actually write code and then we're kind of like down a path that's harder to steer off of.

88:24 Okay, cool. And I think this is the last part. And once this works, what we can do is we can actually take this whole ticket and then just go wild. And then let it go like let it go through. And we'll do another round of design discussions, but often what I find is the second design discussion is so pure and so clean that I don't even have to think about it. You just take all the recommendations and and and rip through them.

88:48 It mostly just gets me all the way there. Um, and I'll run this in a second. I also would do a lot of things where I let the model just run stuff in parallel and I just waste tokens to in favor of speedups. >> So like for example, I Well, it's not it's not waste tokens. It's just like there's a chance it might be wrong and if the uh This is great. Nice. This is good. Um So like for example, like let's say I'm in the design phase and it produced a final document and I'm like I'm pretty sure it's correct, but it's not a guarantee yet.

89:20 What I will do is I will actually kick off the next phase of like outlining and creating a plan right here and I'll just let it kick off. Yeah, the question that you had was how do I take uh learning from these runs and then how do I use that to measure feedback based on what is good or bad? Um, might want to re- re-two back to how the communication went and see how to improve. I think that's just like a macro level thing that you think about as an engineer generally. It It's like if you've ever worked on a team, uh it's useful to just like read your code and say, "Oh, as I read this code, do I have Do I have people that are like um How do I describe it?

89:59 Like how often how many comments do I get on my code reviews? How fast am I shipping? How many bugs do I have post shipping? It's like a macro level thing. It's not a thing that I really do actively where I go and like read the where I go reread the context window. Um I try and just be really deliberate as I read read the context window and I just like have a proxy like am I shipping or not shipping? If I am if I'm if I'm landing things into main, I'm likely doing okay.

90:27 And then the next thing I look at is how big are the size of tasks I'm able to land and how fast am I able to land them in. And like I just measure those two like quality metrics that I get to be a really good idea of what's working along the way. Um cool. Um we have literal types. And then rate is confused and then we can remove past rate. Um perfect. I think this is perfect and then we're and then I think the last thing here is we're done.

90:56 So, let's going to update this. I really shouldn't use a model to update this. I should have just done this by hand. But, the only reason I use the model to say that we have literal types instead of having to a string but having to be like one of these three types is because I just don't want the model um to go understand this really fast. Uh I don't I don't In cases like three references in the code base that I perhaps missed while scanning this while scan uh scanning this, I would just not want to think about this.

91:24 Is it Yeah, is if you change it in one place cuz you saw it but you didn't see some other thing downstream like the model's much more likely to actually change it in every place that matters. >> Yeah, and like see what it did over here? It actually exactly It just did a better thing than what I would have done. Uh and it just did that in a nicer way instead of duplicating this. Yep. Um Justin asked a question, "Would you sort traces logs tied to session IDs in the PR so you have a finer detail to replay to analyze for their state?" Not really. Um the reason that I wouldn't do that is because like once you checked in this code, the code has now become the source of truth. If you have bugs, you just iterate from that code. If this is code is so bad that you can't recover from it, then you would like and then I what I would do is I'd just roll back that code and do it from scratch again.

92:11 Like you just got to pick one or two things in that dimension, but I wouldn't really start with the logs. For this uh for this whole thing. >> I will say during code review, I'm going to steal the screen share for like 1 sec. Oh, I can show you the code review really fast. It's freaking great. I know what you're going to show. Let me show you a real practical example of >> to the task or whatever. Oh, it's even better than that. I think you guys did this phenomenal. Um So, as a part of building testing, one of the things we realized we needed was closures because everything that you saw was implemented using closures.

92:44 Um So, when I was implementing closures, I was actually able to just I can just show you what closures look like. And closures did this entire process in the exact same way. I did the exact same process that I showed everyone on the call really fast. Uh and So, you don't have the task thing? Um I do. I do. It's just that this one doesn't have it. It's because it was updated. It does put a link to the cloud version of this You're all set. Let me share my screen, I'll show you. So, I can come to this pull request and we have a couple different links that get added to the top. So, you have the artifacts, which is just the list of um of the artifacts for this task, which in this case there are a lot. Um it includes screenshots and stuff like that. But we also have a link to the task. So, this is a deep link into the Riptide app that actually opens up and like you can come in and see, okay, cool. Here's all the things that Kyle did to uh to implement this. And so, obviously like I'm not going to come here and read every single one of these sessions, but um you get where I'm going with this. It might be useful to build like an AI chat that can like ask people questions about the implementation without asking them directly. Now, this is the best part.

93:53 All you do is you hit copy, you copy the content of this file, uh you make a new task, you paste this into there, and you just don't think. It's great. And you just auto advance everything through. And that's it. That's a process. Literally the process is >> the other auto advance Are you just auto advancing through the design and then you're going to pause? >> Yeah, and actually I want to disable this one. Uh, and you'll see why in a second. Uh, while this happens, it's just going to go through and produce the code.

94:23 Yep. You uh you have an update to install by the way. Yeah, that's not happening right now. This code's running. Yeah. Um, and debug at that level. But what I don't do is measure the high-level metrics and iterate. Just wondering how far we need to go down the context window for Dex to be happy. Oh, that's funny. Yeah, I I think for the context windows you just you just have to decide if what you're okay with and what you're not okay with. Um, and like how much effort you want to put in. For some tasks, I do the same thing as Dex. I stay very far out of the dump zone.

94:53 But for a lot of tasks, I like the bigger tasks, I just let it rip and it works for me, at least. Yeah, I I think it's like um I think Craig or no, Chris Chris on Twitter said this really well, which is basically like if you want to read a bunch of documents and summarize them or write a new document, um it can be you're totally fine at 120 or 220 or 320k tokens. It's if you want to do like multi-turn tool calling and like run the test and then fix something and then run the test again and have that like feedback loop kind of thing, I think that's where you see the model starts to like basically have a like a spinout crisis. The trick really, Dex, is just uh make no mistakes.

95:36 No, I'm joking. Uh, but it requires >> got to type We got to type uh make no mistakes ultra think. Exactly. Then you're good. That's how That's I I don't know why all these noobs don't do that. Um, but yeah, I think the the real problem is just the more open your design doc is, the more assumptions the model will make and then the more assumptions it makes, the more mistakes it will make in implementation cuz it's inconsistent in its implementation and your tests will break and then you end up calling a lot of tool calls redundantly. So like >> I follow.

96:08 >> That's that's kind of the premise, right? Uh there is. Um and whereas like if we do the level of design that we did here where like we literally spent hours writing that first back that we shared. Then we we spent literal hours, like 5 hours of time producing ticket two. Yep. >> and that's purely to just take that ticket and make a better ticket. And then you're going to ship 2 weeks worth of like what if you were tap tap tapping in cursor would have been a week or two of work. Oh.

96:37 >> And yeah. >> Well, I haven't I haven't I haven't tap tap tapped in so long. I don't I don't type code anymore. Um I'm too lazy for that. Typing code is is too 2024. >> do that for me. That's too 2024. I can't wait to get Codex in here, too. Um we're really interested to see how this workflow works with Codex and if that can like push the frontier even more. Yeah, I I like maybe I think the models roughly work in the same way. I think it's like the difference for me is not really how good the models get. The difference for me is like how big of a task I'm pushing through to the model at any in the same unit of time.

97:15 Like this testing thing, closures, I would have There's no way I could have implemented closures in less than a >> week and a half. Anyway, one of the things that I do when I go implement stuff is uh I actually have a checkout of like most programming languages uh ripped off in my own repo. Yep. >> Um Oh, so you just like tell me how go how go handles this. Literally what I do. So I I literally have to go research and produce documents like how does go handle this? How does XYZ handle this?

97:42 How does Python handle this? How does TypeScript handle this? And I had to go research like how uh closures in every single language. Cuz I Yep. >> I just couldn't have possibly made a good design decision without that context. And like this is where the model speed up comes up in. So like a lot of times before we often would make execution trade-offs and short cuts cuz like it's not possible to make the right decision. Yep.

98:04 >> But now you can literally just make the right decision every single time without having to think about it. I think that's the real value prop here of what these models can actually enable. Uh it just made some progress. It's so slow. I hate waiting for this step. But it is a very useful step, so I let it go. Okay. Um Yeah, what's new with you? >> Why is this taking so long? Wait, what is it doing? Is it just doing research?

98:32 We are actually building evals to make research faster. Um Oh. Well, I can help you with that. You see these new tests? Yeah. >> You can literally just write some tests and then make your life way easier. You can write a metric. Well, so we're doing evals on coding agents. Um but I I It's the same thing. You just build like you just build a metric of how fast does the research step take? You just build a latency metric on top of it.

99:00 And now you have Um now you can simply go thread ahead and just build a test set of a bunch of different scenarios. Like long ticket, short tickets, code bases of different kinds, and then just now you have a metric and you can go optimize whatever implementation you want. Oh, so you're building a like the the the vision for this is like a toolkit for building generic evals. Yeah, that's exactly it cuz you can write arbitrary code.

99:25 Can you call my TypeScript from inside a test function? Do you have bidirectional bindings or do I have to write it in balance? >> Yes, sir. Yes, sir. We have lambdas. So uh our one of the things I'm designing uh I have a separate plan for this is how to bind lambda across So, once you bind lambda across languages, then you can call a TypeScript function and then just run it inside of a Babel code base.

99:50 Yes. Okay, yeah, because that TypeScript function would be literally like taking a coding agent SDK and like running it on like a long horizon, like do an entire research task, and then come back and give me the like basically do like a Jepa style thing where you give the model the ability to change not just the prompt, but also like okay, we're going to give you like this There's going to be like six prompts, right? Cuz there's the each sub-agent prompt, there's each sub-agent's model. It's almost like more to work Have you played with auto research yet?

100:20 I haven't yet. I think like for me like those harnesses are kind of interesting. But I just sadly don't have the time. I think too much about like the substrate layer. Like for me the substrate layer is much more interesting. >> auto research Auto research doesn't work well unless you have a good way to collect like metrics and signal about how things are performing. And so like I think this would actually work really well with auto research once it's shipped. Yeah.

100:44 This I mean, I have really really high confidence this will ship by end of day today. There's a whole another process that happens after this is implemented, which is then our auto reviewer code rabbit complains about a bunch of stuff, and then I'm like, "Ah, I should have a I should have a phase in our Kanban board called code rabbit. Where it's merely just a task of where we wait and go check it out cuz it's so slow."

101:06 >> Wait for code rabbit to do its thing, and then do you actually read the code rabbit results, or do you just pass them all back to Claude? I actually I have Claude go and summarize them for me because code rabbit's not Again, it's like it just depends on how much of the automatic stuff you want. Like the more automatic stuff you If you spent so much love and care into making your design discussion good cuz you're shipping like 25,000 lines of code.

101:30 Well, then and then you just suddenly slop it all away cuz code rabbit gave you like 50 comments. It's just, you know, I think that's pure slop at that point. And like you're adding slop at the final layer. So it's like you just got to read and decide how much slop you want. Cuz like a model's incentive is to like it's always going to come up with something. Exactly. Yeah. It's always going to come up with something.

101:52 >> I was posting about this. It was like the idea of just like yeah, if you ask the model if the code is good, then the model will be like, "Oh yeah, it's great. It's comprehensive. It's got unit tests. Everything's working." And if you ask the model, "Hey, is this code bad? Like tell me what's wrong with it." It will find a bunch of like bad patterns or bad architecture and like it's just going to go out of its way to tell you what it thinks you want to hear, which makes it completely useless for like deterministically evaluating if something is good or not. And so the thing that we talked about like in the JP Morgan emails episode that we did like six, seven, maybe maybe nine months ago. Might have been a year ago at this point. But it was like you do a bunch of boolean classifiers on the thing you're evaluating and then you use deterministic code to attach those to value good or bad. The model is just saying like, "Is it X? Does it do Y?"

102:40 And then you build those up on in in in code world about like okay, like here's the actual score based on all those flags. Exactly. So I did a lot of work here to actually go find exactly how the code should be represented and literally this I had the repos and I just made it go research through it. And like I just I don't have to think about this. So like if you're implementing something and you know you have other language like things that are like baseline research like the standard way that stuff is done.

103:05 In our case like we're building a language. There's a lot of prior art that's already discovered. Um everyone should have one of these downloaded because otherwise you can't possibly go ahead and like you can't rely on web search to find this information. Um when you can just find stuff in in the code itself. And it does a really good job of doing that. Um I also prompted to go search for like the web as well because sometimes the web is like a shortcut to understanding how code actually works.

103:32 Um and then like the other thing I do is I actually read this and make sure it's like sound. It's very easy for me to like check if something is sound or not because like you can just like double-check uh as a software engineer if something makes sense. You don't have to check if it's correct, you check for soundness because correctness requires too much work. I don't need to be a primary source reference for every single thing out there. That's too much way too much engagement.

103:54 Yeah, that makes sense. Oh my god, that's so slow. Okay, finally. It's producing the research questions. Normally when I do this I actually run like two tasks in parallel because that's what allows me to actually make progress because if I only do one thing then it's kind of boring. Um, because of things like this. Like this thing has been running for like 15 minutes now. Uh, it's so long. Yeah, you have a big code base. This is why we need to get faster research. Um, there's a lot of people building specialized models for fast code search now and I actually think like being able to like parse out the entire call graph um and and like iterate through there is a really interesting problem that we're exploring as far as like just custom tools that integrate with the LSP.

104:34 Yeah, um this will take some time. This will probably take another 10 minutes. This is also why I play video games in the middle. >> There's kind of a There's a trade-off here between like, okay, we're going to spend time um doing making sure that this context window is fully objective and it does involve like doing multiple passes over the same code. Um, but the benefit is that you get research without opinions. To be really candid, I think it's actually not bad that it's slow. I don't really care. I just have a different workflow now. Instead of like letting things happen in serial, like this this whole task from like ticket to like research or like design discussion takes like 15, 20 minutes, maybe 30. I don't care. I just switch tasks and I go do something else.

105:13 You go to a different one. Yeah. And it's like this is This is what I found is like you can parallelize two hard tasks at a time. If it's If it's more than two then it's like your your attention may fall off. I mean, depends on how how how long your your gap is, but yeah, I I find that it's really valuable to have one primary task and then one or two secondary tasks. The only thing that I think is is required to do this well is that you need to ensure that um how do I say this?

105:44 You need to make sure that you have a number one priority and it's not like oh, we're going to bring these both along and like keep them up to like keep them like tied with each other. It's like when the primary task is unblocked, I go back to it even if I'm in the middle of something on the secondary task. This is how I think about it. Because otherwise you end up with more work in progress instead of just like the thing that is the most important is always getting the most attention because we want to optimize for like the lead time total for a task. I'd rather ship one thing in three days and the second thing in five days than ship two things in like four days. I mean, obviously like it ends up being about the same and actually like you finish them both, but it's like if you want to optimize for like delivering shipped code to your code base, the cycle time on an individual task is super super important and high leverage. And this comes from like factory like production line theory, not from this isn't even a software thing. I That's actually interesting. I haven't thought about that way. I I usually just go with the flow to be honest.

106:49 Um which maybe is why I'm not sure >> I mean, you're a super genius, so you get to bend the rules including around the dumb zone and things like that. Well, the thing you framed is actually really interesting. I actually don't need to I think I would ship faster if I did it that way. What if I have a primary task? I think I'm going to try switching to that approach. Where like You should try that. You should also read I'll get you a copy of the book called Did you ever read the the goal?

107:13 No, what's it about? Okay, so the goal was this book that was came out in like 70s and it was basically it was a book about a guy who had like gone to Japan and seen how Toyota did like lean Kanban style stuff. It's a fiction book. It's a little silly. It's like a guy It's he like has to save the factory and like there's all this like like random drama storytelling stuff. But the basically what they came out with was like the the inside is it like in the '60s, '70s like they had all these MBAs and they would bring people into a factory and your job was to like optimize one station. So it's like this machine in the whole Let's say there's 50 stations on 50 things that have to happen to produce a car engine or like some physical part and each person would come in and optimize their one station and no one was looking at like the end-to-end flow.

108:04 And it's actually like the more you optimize a station that is not the bottleneck, the less efficient the overall system becomes because you have like the more work in progress that is piling up. If this system is cranking out parts and the thing after it is slow, it doesn't matter how efficient this thing is because whatever the slowest thing in the workflow is, that is your constraint and you should always be like optimizing for the end-to-end flow rather than any one particular step. Just find the step that is the bottleneck because the more inventory you accumulate in factory it's like parts that cost money and in code it's like tickets sitting in progress or tickets sitting in review or whatever it is. And so it's like this is like the original like scrum agile whatever was like start work from right to left, right? Take the thing that is almost done and everybody focuses on fixing that and then you move to the left and then you move to the left. And so it's like you're always want to finish work in progress and you always want to optimize for like what is the slowest part of this pipeline.

109:05 I agree. Um it's very hard to do it on software. It's hard to measure what's work in progress, but that is the right model, 100%. >> Yeah. I'm Yeah, I'm going to try that. I think having like a good primary is really nice. I don't think I do that actively. Maybe it's subconsciously, but I don't do it close. I try and basically just if I'm working on something, I just take it to it like a checkpoint then I do the next thing, take it to a checkpoint. I just keep swapping checkpoints. Yeah. And so there's this idea of like, okay, let's move these tickets along in parallel and that's what people think is parallelization, but really it's like whatever thing is further along, that gets your attention even if the other one falls behind. Yeah, exactly. That's interesting. It's going to that's going to change my way of parallelization. I was like I was like 2 years into my or like a year into my software engineering career and I was like at a one-on-one with my boss, amazing dude, and he was I was basically like, I'm really frustrated because like we had this issue where like that we had a lot of regressions on the front end and it was like kept slowing things down. Uh or it was like it felt inefficient and he was like, look, you need to understand that there are inefficiencies that are not bottlenecks.

110:06 And I don't care if you're at a thousand-person enterprise or a two-person startup, if you're optimizing inefficiencies that are not bottlenecks, you are wasting time and you are adding no value. That's funny. I agree. I mean, yeah, it makes sense. That's that's a very very interesting way to frame it though. I like that. Yeah, that's good. I will find you a copy of this silly old book from the '70s. The craziest thing about that book is like here we are on a podcast like doing dot leadership or whatever you want to [ __ ] call it.

110:35 Just riffing and vibing. >> Yeah. The The craziest thing about that book is it's famous, they've sold 10 million copies. Uh I was talking to one of the original founders of Chef and he he said, you know, well, you know, the book was actually written to sell the software. And I was like, what? He's like, yeah. I was like, what software? He's like, exactly. You could you could do you could write a book or a piece of content that changes the way the world thinks about a problem and nobody knows like that it was actually like you were trying to sell some like, you know, COBOL supply chain optimization software. Like that part died. The commercial thing died. The thing that lived on was like the idea.

111:16 >> The book. Well, that's why you got to You know why they messed up? They should have just led the book with Here's Here's the software that we're selling and why. They just forgot that hook at the beginning. Yeah. Well, they were on the What was it? The sell the problem kind of thing. Exactly. That's the hard part about selling the problem. If you sell the problem, then it does it turns off. You got to sell the thing at same time.

111:39 Yeah. Um that's like part of why we invented this testing thing. I think like most people have probably never like We've done a lot of episodes about evals. I've seen a lot of codebases that have done evals, but like that's what I find really interesting though about all this stuff, which is like if you don't think about evals in this approach from the very beginning, it's really hard to like uh it's really hard to go and like go ahead and come back and solve this from like first principles.

112:02 It's kind of very similar to like once you saw that next you're like, "Oh, shoot. This is actually useful in my current research task cuz it's the same thing." And like but once you break down evals in this way, what you really think about is like this is not about faith. I need this like any non-deterministic system, which inherently means any system where any point in a call stack you use math.random or date time or um um or or an LM or a model of some kind.

112:32 And any system that does any of those things needs to think about testing in a foundationally different way than like software that just does control flow. And in fact, it's actually not just any of those systems. Like anytime where you have an external dependency where you make a network request that you don't control. Uh there's this really interesting problem in like system design where someone's like you have a black box API that you call. It takes a really long time solve the problem.

112:58 And it's designed to be an ambiguous problem by definition because like that's just like you got to go solve that problem. How do you deal with a black box that you cannot control? And that's out of scope out of scope. You got some questions. I mean we have mostly people just saying um that supply chain and procurement and operations is a uh useful place to get ideas about software and how to build better software teams. And they want access.

113:28 I said DM me on Discord. We're We're getting ready to actually do like a proper launch of this stuff and like put up a you know stripe page swipe a card and and like actually get rocking with it where like anybody can sign up. Um we wanted that to happen in March and we had a bunch of random infrastructure [ __ ] that we got pulled into. Um but now the infrastructure is super stable. I don't know if you see at the bottom uh it says sync degraded.

113:54 Um that is a system that Kyle built which is basically like we we had some issues with our sync provider and it used to be when the sync provider was down uh there was zero chance that your app was going to work. And so we built a like background path that is like a little bit slower and less performant but if the like hot path is broken you can still the app is still usable and it just uses like a polling base sync.

114:22 Oh nice. That's kind of cool. Uh this is so slow. I hate waiting for this. Well if anyone is here uh Finish your eval system so I can make the research faster. Well we're doing that right now. Yeah. Um >> I mean at this at this point like all I'm really going to do is going to produce the research. I'm going to tell it to go answer the open questions and then I'm going to let it hit the design phase, read it, and then go ship it again.

114:49 There's not really much more I'm going to do beyond that um over here. So like we can watch me do it. We can let it run in the background. I can make um what I'll do is I'll make all these like public links so everyone can go read all of it and I can make the whole task public. Uh so if if people that are curious can just go watch it in real time and go record and replay.

115:09 Uh and then obviously by the time that you see this video on YouTube, there's going to be a GitHub link to this actual PR that's fully made. So we can go ahead and like include that at the end as well. Yeah. What do you think, Dexter? This This is going to work. This This is a fully automated process. Um I did this I already did this with closures. Here's Here's two sessions. >> you want uh you want an auto advance that allows you to skip the design discussion? No, I actually need to read the design discussion to make sure it's correct. I have to know I I have to deterministically know that it's correct. That's your last That's your last check.

115:45 Yeah, that's my last check. Yeah. Uh cuz then I can >> about making some of the more advanced things like, "Okay, if you really know what you're doing, you can auto advance the design discussion, but you have to like unlock it by doing 100 sessions or something." Yeah, ignore how many lines of code I deleted. Like how many lines of code I added. And like this is mostly just pure Rust code. >> in like a couple days?

116:04 Um I mean I can we can look at how many sessions it was. It was uh uh 12:08 a.m. I Yeah, I guess you don't have the date here, which is unfortunate. >> That's crazy. Uh I think it took me like 2 days to implement all of closures. So I started at midnight and then I finished at like 3:54 a.m. the next day, like 2 days after like Yeah. So like roughly like 36 hours of time with sleep in there.

116:36 >> Um with like two sleeps actually uh in there. So like it's pretty straightforward to go implement. Um but all fully vibed, fully advanced, fully auto auto advance all the way Once I do this part I Once I do this part, I just auto advance all the way through. There's not really much I do um in that approach. Um, it works, but I I spent a lot of time in building that perfect ticket to make that really, really possible.

117:05 There's There's a couple of open questions, I think the workflow is very, very dynamic. I wouldn't say I've hard-coded this workflow and I know like what to do. I have a pattern. Like the number of times I loop, the number of times I answer the question is very task-specific. So like there are building blocks that I use, not really like things that I can yet automate. Because I don't have a good way to dump all my context into in like all that context in my head into my ticket on day zero.

117:32 So it just can't do it. It's not possible. Oh, did I make a mistake, actually? Oh, okay, that's good. No real risk. It's just a very tiny change. I don't care about this change. It's very scary sometimes when I when I forget to import stuff. I was like, "Oh, did I not sync against the latest repo?" That's actually the hardest thing about work trees. You have to remind yourself to sync and get pulled before you start a task.

117:56 I can show you a Claude MD snippet that will that will force the app to do it. We didn't want to be like as opinionated on this as we could be. But I did I send you my latest like blog post on like how to how to get Claude to like deeply adhere to your Claude MD. No, what do you do? It's really simple. We just use these XML blocks. So it's like important if you are doing X, Y, and Z.

118:22 And it just like gives Claude because this is a message is like only follow this instruction if it's highly relevant. Um, here's the here's the snippet that it actually puts in is like, you know, you should all not respond unless it's highly relevant to your task. So the way you get it to follow your Claude MD is you should be very explicit about when is this you know, relevant to your task. Um, and so >> the thinking to the model rather than the model inferring it. You're explicit about when it's relevant.

118:51 Yeah, and you do it's just a little bit more It's It's Yeah, exactly. Instead of saying always write the tests, you say, "So, we have this in our like we have this template for doing multi-repo stuff with this." Um I think we talked about this before. But it's basically like important if you are using the RPI create research scale, always get pull the branch or whatever. Actually, we already have this in here. Um >> Nice. You know, check to ensure the repos in question is at the latest from the Git >> good.

119:19 You know what's funny? We actually don't have a cloud MD file that we use. I just have not found a good use case for it. Yes. This is the only thing we use cloud MD. I mean, I'm not going to pull up our exact cloud MD, but it's basically like it's a map of the repo, and then it's this kind of [ __ ] It's like, "Okay, if you need to query the database, here is the exact shell command to to run, otherwise ignore it." What I end up doing basically is I go through here, and once the implementation is complete, I just start reading my test cases and make sure the test cases are good, and that we have like what's called snapshot tests. So, we actually have like test cases, and we print out the text files, what the output of that serialization is, what the inner representation of the data models are.

119:56 And I go read them. I'm like, "Oh, I keep on finding more and more bugs." And every time I find bugs, I have to go fix a bunch of stuff. Um and then you can just see me iterate through and try and fix each bug one by one. Yep. But it's very rare that I find very, very like foundational bugs at this phase. Because if I've done a good job earlier, then I shouldn't find foundational bugs.

120:19 And sometimes I do. And then I do the most absurd stupid thing, which is actually nuke all my work. I kill the branch, and I start from scratch again. I make it I make the ticket explicitly have that call out. And I do the design discussion, follow everything out, make a new ticket, and start again. Yep. >> And then I auto roll roll back, cuz it's faster to restart from scratch with a good basis than it is to incrementally fix certain things.

120:46 Yep. And And there's there's a there's an intuition there, right? If it's only 5% wrong, then I will just riff back and forth with the model on it. But if it's 30% wrong, then I know it's easy to just start over because all I do is drop the thing in and rip it and it goes spends a bunch of token like the tokens are cheap compared to the amount of effort you're going to spend trying to re-steer the model after it's started going down a bad path. And you can see that I sent like almost like 15 messages at this point. I but like um with a lot of um with a lot of optionality of how long this context chain gets when it gets to incrementality.

121:18 And then once this is done, I'm like um and then I ask it to describe I actually sometimes ask the model like, "Oh, this feels large. I want you to consider this." And the model's like, "Oh, oh, but that's actually really easy." That's cuz again, I'm not reading the code, so I need the model to describe things back to me. Mhm. >> And once it does this, then I have it go produce a PR. And once it produces a PR, I actually have this fun little script that helps me get data back from LLMs that go and describe the feedback back and I just run the I don't know what the command one is. There's another thread somewhere that has some of this information.

121:51 That where I get the comments from the AI coding engines and I just let it rip and a roll. That's basically what I'm going to do over here is like once this is done, now it's finally proposing a synthesized document. I'm just going to let it rip in the same way. Like it's a very straightforward loop. This is the process that I use end-to-end for almost every complicated task. If I think it's going to end up being like 5,000 plus lines of code, this is like this is the process that works for me.

Summary

In this episode, the discussion revolves around the complexities of testing non-disjoint systems, particularly in the context of coding with AI models. The hosts, Vibhav and Dex, delve into the criteria for effective testing, the importance of scenario-driven testing, and how to leverage AI tools to streamline the coding and testing process. They also share insights on organizing coding tasks, managing context, and the iterative nature of software development.

- Non-disjoint systems require careful breakdown into scenario groups for effective testing.
- Aggregation metrics are essential, moving beyond simple boolean assertions to capture nuanced outcomes.
- Dynamic test case generation from production data is crucial for real-world applicability.
- Emphasizing the importance of clear communication with AI models to guide design decisions effectively.
- The hosts discuss the iterative process of coding, testing, and debugging, highlighting the need for thorough documentation.
- They advocate for a structured approach to testing that includes soft assertions and metrics to evaluate performance.
- The conversation touches on the significance of understanding the context and flow of tasks to optimize coding efficiency.
- The episode concludes with a call for community engagement and collaboration in the AI coding space, including an upcoming unconference event.
© transcribe · For agents Built with care and craft by Gokul Rajaram