Latest / AI Infrastructure / How can we trust AI?
Transcript
- 0:02Hello and welcome to episode 25 of the
- 0:05AI infrastructure podcast
- 0:08with me Kai Hendry in the UK, Southwest
- 0:12UK to be exact
- 0:13and
- 0:14my
- 0:15co-host Vincent De Smet over in Vietnam,
- 0:18Ho Chi Minh City
- 0:20I believe.
- 0:23We're both
- 0:24infrastructure engineers
- 0:26by day and uh
- 0:28and and uh by night and in the morning
- 0:31here I am a AI enthusiast. Um in this
- 0:34podcast you can expect us talking about
- 0:37AI and infrastructure.
- 0:39Um what does it all mean?
- 0:41And I I hope you enjoy it.
- 0:43Do please comment.
- 0:45Do please like. Do please subscribe.
- 0:48And um we're trying something new today.
- 0:50We're trying Riverside. So do tell us
- 0:53what you think of the recording. Is it
- 0:54better than the typical Zoom recordings
- 0:57that we've been doing up until now?
- 1:00You tell us.
- 1:02Thank you and enjoy.
- 1:06>> Hey, how are you? Having a good uh day?
- 1:08>> Uh
- 1:09I just woke up really.
- 1:10I'm uh
- 1:13Well, I just
- 1:15There's a lot to cover. It is almost
- 1:17overwhelming every time we meet cuz like
- 1:19there's a few things I want to cover
- 1:21>> Mhm.
- 1:21>> and I'm like
- 1:23where's Vincent on this? Where's Vincent
- 1:25on that? I mean yeah, what about
- 1:26yourself?
- 1:26>> I had a lot of fun from like in the last
- 1:30four days using the tool that I built
- 1:32because I haven't had the opportunity to
- 1:33play with it and and and I had some time
- 1:36to play with it and it just feels so
- 1:37good to to see how it has evolved, what
- 1:40features has been added, what works,
- 1:41what doesn't work. I also played with
- 1:43Riverside like you. Actually basically
- 1:46because you sent me the message I was
- 1:47like, okay, let me try it. It was pretty
- 1:49fun.
- 1:49>> Yeah, well, I'm I'm desperate to improve
- 1:52the production quality and try different
- 1:55things actually. So well, here we are,
- 1:57trying different things. So cool. So,
- 1:59your tool is Spec Ledger or something
- 2:02else?
- 2:02>> Yeah, yeah, no, no, it was Spec Ledger.
- 2:03So, basically, there were a couple of
- 2:05annoyances that had that I had filed,
- 2:07and then they had fixed it, and I wanted
- 2:09to see if it the fixes were there. I
- 2:10think one of the things I might have
- 2:12mentioned this that we were suffering
- 2:13some quality issues, right? Even though
- 2:16that we were using the spec driven
- 2:18development, and I had very good results
- 2:20with it. Once we scaled it out over a
- 2:22team with people of different
- 2:24experiences, I felt that even though we
- 2:26had team alignment on what to implement,
- 2:29there were still, when I finally got the
- 2:31implementation done by other people,
- 2:33areas where I discovered, "Hey, that's
- 2:35not done. This is not done." And so, I I
- 2:37felt like
- 2:39we talked a lot about how do you
- 2:40validate, how do you ensure that the AI
- 2:43implements, and I always talked about,
- 2:45"Yeah, you know, you need to build those
- 2:46validation, you know, testing around
- 2:49it." And then, the thing that I have was
- 2:51completely failing. So, I was like,
- 2:53"What the hell?"
- 2:54>> [laughter]
- 2:54>> So,
- 2:55how is
- 2:57How are you doing it in a team? Cuz I
- 2:58can't help but think all those the
- 3:00quality assurance is is getting back to
- 3:02basics, like, you know, my employer
- 3:04preaches shift left, preaches having a
- 3:06dedicated QA person on the team.
- 3:10>> Yeah, so
- 3:13>> it emphasizes quality. Um so, as a team,
- 3:17you can't just expect AI to to do the
- 3:19quality, right? You have You have to
- 3:21have someone responsible or playing the
- 3:24role of a tester or something.
- 3:25>> I felt the hardest thing is when you are
- 3:28writing quite detailed and maybe too
- 3:31large of a user stories, is how I only
- 3:33find out maybe a week later, like, "Hey,
- 3:36I remember I put some requirement there,
- 3:38and when I'm using it, it turns out it's
- 3:40not there." So, then I get frustrated,
- 3:42like, how did that not get there? Like,
- 3:44in terms of verifying it, it felt very
- 3:47random, and gave me like a lot of doubt
- 3:50about the quality. But, when I started
- 3:52playing with it, I actually realized
- 3:54that none of the quality guards that are
- 3:57built into Spec It were properly
- 3:59initiated. So, I had not initiated the
- 4:02repository, and so we were missing the
- 4:04constitution. We didn't have proper
- 4:06checklists. We didn't have a proper
- 4:09design like
- 4:11>> Well,
- 4:12it sounds like you're in that sort of
- 4:14waterfall mindset where you're saying
- 4:15like the reason we had this quality
- 4:17issue is because our spec was wrong.
- 4:20>> No, it's it's the the the validation
- 4:22wasn't there.
- 4:23One of the things that I put in the
- 4:24constitution is that a quick start
- 4:27document, in this case for a CLI, must
- 4:29document the user stories in a It's a
- 4:33command line interface, so it must show
- 4:35user story one. You have You invoke the
- 4:37command line with this parameter, then
- 4:39this needs to happen. And that directly
- 4:41must translate to a formal like test in
- 4:45the test. So, that I had that in my own
- 4:47project, but I noticed it was missing.
- 4:50We didn't have like these tests there.
- 4:51>> All right, so the the tests are not
- 4:53dropping out of The AI isn't isn't
- 4:56following instructions.
- 4:58>> No, the problem is the instructions were
- 4:59missing.
- 5:00>> Really?
- 5:00>> I had not initiated this, and the
- 5:02constitution was still empty. I thought
- 5:04it was it was filled out. So, it has no
- 5:06principles. So, there was no rule for
- 5:09the AI when it finishes the thing and
- 5:11then validates the task list. Maybe you
- 5:13can say that's because I I thought like
- 5:15waterfall plan wasn't right, but it's
- 5:17very important because the final phase,
- 5:19which is the the the validation and
- 5:20testing and polishing phase, needs to
- 5:22have a task that validates it. And a lot
- 5:25of the times the task was manual
- 5:26verification instead of And that's
- 5:28because it wasn't configured properly.
- 5:30And and so basically what I did for the
- 5:32weekend was exfiltrate what I had done
- 5:34in my own project, where I have a very
- 5:36strong test suite, and basically copied
- 5:38over the principles into this one. Cuz I
- 5:40showed you the grid, right? I showed you
- 5:41that I have flu full play right
- 5:43workflows. In this case, it's It's just
- 5:45a CLI, it's actually a web interface
- 5:47with Keycloak authentication.
- 5:50I'm running everything there and and the
- 5:51and I had no quality problems, but I was
- 5:53also doing it alone, right? So, that
- 5:55means I was defining the plan and I was
- 5:56also driving the implementation. In a
- 5:59team setting, you might only be involved
- 6:01in defining the plan, but you are not
- 6:03driving the implementation. And then you
- 6:05find out the person that did the
- 6:07implementation didn't actually validate
- 6:09it.
- 6:10>> it makes me think that you need to be
- 6:12there for the whole process. You can't
- 6:14be
- 6:15>> want to be there for the whole process,
- 6:16right? So, I am trying to solve that
- 6:18problem because
- 6:20>> Why don't you want to be there for the
- 6:21whole process? Because it's tedious? Is
- 6:23there some reason?
- 6:23>> Because we individually must own each
- 6:26feature that we're working on. Like,
- 6:28there's basically a team exercise where
- 6:30humans decide and collaborate on what is
- 6:32it that we want to implement, and then
- 6:34it's an individual and ideally not even
- 6:36a human involved, purely AI agent
- 6:38implementation, right? So, today we are
- 6:41letting juniors drive that
- 6:42implementation process. I don't know if
- 6:44that's a good thing or if it's a bad
- 6:45thing. Maybe they are distracting the
- 6:46agent and therefore the agent did
- 6:47deliver, but I don't think that's a
- 6:48problem. I think they are letting the
- 6:50agent implement and they're not stopping
- 6:53it when it diverges. And And that's a
- 6:55problem. I don't want a human to be
- 6:57there in the end to to stop it when it
- 6:58diverges. I want it to be so
- 7:01straightforward that when the agent is
- 7:03done, the output works. I don't want to
- 7:05be there for that implementation.
- 7:06>> Why doesn't So, essentially you're
- 7:08saying that the junior is not catching
- 7:11the diversions or something like this?
- 7:12And
- 7:13then you're going back to the drawing
- 7:14board to make sure the AI doesn't
- 7:16diverge. It sounds like that sort of
- 7:18thing is happening.
- 7:19>> Yeah, and I think the contributing
- 7:20factor is that the junior is actually
- 7:21not very much involved in the plan
- 7:23planning process. They're just But, it's
- 7:25not even on juniors only. We even have
- 7:27like a very big user story, like we had
- 7:30too many, like 10, and we split them off
- 7:31into the individual ones. But, we had
- 7:33aligned on the on the 10 big user
- 7:35stories and we realized this is way too
- 7:37big of a scope to try and go into
- 7:38implementation. So, we split it off in
- 7:40three smaller work streams of three each
- 7:42and one of four, and and and I let that
- 7:44I let
- 7:46and then execution by a like a more
- 7:48experienced person, and we still had
- 7:50things where, "Hey, the original 10 user
- 7:52stories had a detail here that was not
- 7:55captured. It could have been lost when
- 7:57it was split, or it could have been lost
- 7:59during the implementation." So, even the
- 8:01split I should have been involved, but
- 8:02Yeah, it's just
- 8:03>> It's tricky. I guess you're you're
- 8:05trying to scale with the help of AI, and
- 8:08>> Yeah. And that's why I really love
- 8:09>> of problems.
- 8:10>> Exactly. That's why I really love this
- 8:11project because it
- 8:13it's really a real true test of scaling
- 8:15out spec driven development across a
- 8:16team of different skilled people.
- 8:18>> So,
- 8:19on that note,
- 8:21let me just share something that I
- 8:22thought was really
- 8:24um awesome.
- 8:25>> And I say different different skilled
- 8:26people, but I also found mistakes that I
- 8:28made, by the way.
- 8:29It's not like
- 8:30>> Yeah, I mean the the last podcast, or
- 8:32the podcast before last, I was I was
- 8:34actually like in shock about a bug that
- 8:37came through into
- 8:39Well, it didn't go into production,
- 8:40thank god, but
- 8:41>> But you feel that the the workflow would
- 8:43have easily been found out if you had
- 8:45paid closer attention.
- 8:46>> Well, if Yeah, if we if we just did it
- 8:48the traditional way, it would it would
- 8:50have never got through. But, of course,
- 8:54I was like giving the PR to a colleague
- 8:57to review, and the
- 8:59and the problem was is that the
- 9:00colleague trusted me, and I trusted the
- 9:03AI, and then and then this bug bug got
- 9:05through. So, the the whole the whole
- 9:07trust thing and I felt it wasn't so much
- 9:09I I put the bug through, it's also that
- 9:11now now my colleague thinks I'm an
- 9:13idiot, for want of a better word,
- 9:15because I let a trivial bug through, and
- 9:18now he's lost confidence in me because
- 9:21I didn't review I didn't see this AI
- 9:24introduce the issue to me.
- 9:27I mean, I'm feeling like I'm blaming AI,
- 9:28but it but it was really me that was
- 9:32that was doing the wrong thing.
- 9:33>> I don't know how much data it had to
- 9:36like you had Like was it part of a huge
- 9:38chunk and therefore it got it flew or
- 9:40did you really just not give it
- 9:42damn guy.
- 9:45>> Anyway quality I feel like we can talk
- 9:47about quality for days but this blog I
- 9:50think is very succinct on the topics. He
- 9:53starts off by saying that every time you
- 9:55have a review it makes you 10 times
- 9:57slower and of course PR reviews we all
- 9:59know they suck but they they are a
- 10:02quality gate right and and he was he was
- 10:04pointing out the more reviews you have
- 10:06like I'm in some heavily regulated
- 10:08environments and it takes like two
- 10:10approvers to get something in and and
- 10:13what he's saying here doesn't sound
- 10:16>> [snorts]
- 10:16>> insane but it it definitely accumulates
- 10:19about how
- 10:20reviews take a long time and then he
- 10:23makes a very interesting point to say
- 10:24that AI can't fix this.
- 10:27And like just like what we talked about
- 10:30like a lot of people are are creating
- 10:32these AI
- 10:33flower wheels or AI harnesses or
- 10:35orchestrations where like you know oh I
- 10:38mean this I mean doesn't it sound like
- 10:41you right now in a in a in some way of
- 10:43instant like well I have this prototype.
- 10:45>> And this a month ago.
- 10:46>> Yeah exactly but the but the prototype
- 10:48is getting busy buggy sorry we need to
- 10:51tell AI to fix this problem.
- 10:53>> I didn't see I need to
- 10:55to let AI fix it.
- 10:56I said I want a formal validation
- 10:58framework around AI.
- 11:00>> Sorry I'm I am making this a meal of the
- 11:03straw materialization but like I I think
- 11:05you get the point here is that the a lot
- 11:06of people are getting into this like
- 11:09trap where like AI caused the problem
- 11:12but maybe I can get AI to fix the
- 11:14problem and then now we have a different
- 11:16sorts of problem.
- 11:16>> Absolutely and this is what I also said
- 11:18said to my friends I mean the fact that
- 11:20we have this problem and we know that
- 11:22because we're taking something and we're
- 11:24scanning it out of a team and clearly
- 11:26the quality is a problem so we need to
- 11:28solve it and that's definitely what's
- 11:30going to be the focus of the next few
- 11:31months, which is the validation
- 11:34mechanisms of the AI output. Cuz
- 11:36everybody's on board with SDD now,
- 11:38right? I mean, it's going all over the
- 11:40place. My friends are constantly sharing
- 11:42Singapore GovTech is doing a
- 11:45a trial of it. Um other organizations
- 11:47are trialing it.
- 11:50>> Oh, okay.
- 11:50>> Yeah, spec driven development. That's
- 11:51That's kind of like been being adopted
- 11:54everywhere, right?
- 11:55>> I feel like the problems that you just
- 11:56talked about like that you
- 12:00wrote the spec, but then somewhere down
- 12:02the line there was a quality lapse or
- 12:04some junior didn't understand. Like
- 12:06>> The whole purpose of SDD is to catch
- 12:08this. And And I know for a fact that my
- 12:10friend wrote a blog post talking about
- 12:13how vibe coding creates all these
- 12:14problems and how spec driven design
- 12:16solves them.
- 12:17And I tell him like I would
- 12:19>> But surely surely if we we ran the clock
- 12:22uh 20 years back, I'm sure some
- 12:24waterfall
- 12:25IBM proponent would have said the same
- 12:27thing
- 12:28about
- 12:29his specs. He would have said like, "Oh,
- 12:31yeah, if the spec would have caught that
- 12:33problem because we would have done the
- 12:34upfront design." What What What about
- 12:36the whole agile thing where you
- 12:38>> No, this is not my This is not the
- 12:39problem that I'm saying that there is,
- 12:41right? I'm saying the spec clearly
- 12:44defined it this way and the
- 12:45implementation does not align. I'm not
- 12:48saying the spec
- 12:49um
- 12:51wasn't properly designed. I never said
- 12:53that. I said the spec was very clearly
- 12:54defined, but the implementation doesn't
- 12:56match the spec. The agents took
- 12:58liberties.
- 13:00And then the funny thing is when I see
- 13:01the agent take liberties when I'm I'm
- 13:02driving it, I stop it and I asked it
- 13:05why. And often times there's a very good
- 13:07reason. Sometimes it was because the
- 13:10task description said one thing and the
- 13:12original plan, like the the very first
- 13:15functional requirement in the spec, said
- 13:17something else. And the agent says,
- 13:19"Spec rules all. So, I went with the
- 13:21spec." And the reason that the task
- 13:22definition was different because halfway
- 13:24through research, when it filtered down
- 13:26into the task, I made a change and I
- 13:29didn't back update it into the spec.
- 13:31Something like that. That that's one
- 13:32case where I'm
- 13:33>> wrong with the with the process.
- 13:35>> Yeah. And and I think sometimes it's
- 13:37because I didn't do the full cross task
- 13:39plan and spec
- 13:41validation cuz I do skip that one
- 13:43sometimes.
- 13:45Um which also made me think like, "Hey,
- 13:46we need to make sure we need to keep a
- 13:48flag to see if somebody at least once
- 13:51has run that validation uh or
- 13:53verification thing." Which is a very
- 13:55extensive read cross artifact um
- 13:58validator that, you know, you can use
- 14:00different models. I used to run those on
- 14:02Codex when I would always run out of
- 14:04tokens. Today, I don't really switch
- 14:05models.
- 14:05>> So you use different models.
- 14:07>> I don't think different models is
- 14:08required. It was just because I ran out
- 14:09of tokens. But yeah, but that's just one
- 14:12case where the implementation diverges.
- 14:14I want to give you one more example,
- 14:16which is
- 14:17um and now I'm forgetting it.
- 14:19So one was that that the task and the
- 14:22plan did not align. The second one that
- 14:24I've seen is that the plan says we can
- 14:28use this library this way and then the
- 14:30agent says it doesn't work. Well, let me
- 14:32go back and simplify this or something
- 14:34like that, right? You see it happen,
- 14:35right? The
- 14:36you make a plan with the agent, it it
- 14:38reads the docs of the library, it
- 14:40decides to do things certain way, and
- 14:42then finally when it's implementing, it
- 14:44doesn't work. And then sometimes Cloud
- 14:45Code goes like, "Well, you know what?
- 14:47This is too complicated. Let me simplify
- 14:48it." Then you know that no, stop. So I
- 14:52stopped it and I asked it very clearly,
- 14:53"What is the problem?" And and it's it's
- 14:55totally valid, right? It's totally
- 14:57valid. But the the most the biggest
- 14:59problem is the agent just keep going
- 15:01instead of stopping and saying like,
- 15:03"Hey, plan doesn't work." And it's very
- 15:05hard to define when when are we okay
- 15:07with the agent stopping and when are we
- 15:09not okay with the agent stopping?
- 15:10Because ideally, we want like a Ralph
- 15:12Wriggum type of loop that keeps going
- 15:13until the task is complete, right? So
- 15:15>> Yeah.
- 15:16>> Yeah. So that's that's the problem.
- 15:17>> that there's different philosophies
- 15:18here. Like I'm I'm I'm more in the like
- 15:21just chat to it camp.
- 15:22>> Just chat with it. Yes, but you don't
- 15:23want to be in the loop the whole time.
- 15:25Maybe maybe it's it's good, right? Maybe
- 15:26it's like yeah, we still have a job.
- 15:30>> Well, I just feel like the small
- 15:32iterations get to the solution better
- 15:35than going back to step one in a sense.
- 15:38Hmm.
- 15:39>> So, you could argue that that the spec
- 15:41was too large and it should have broken
- 15:43down more. Um
- 15:45you could argue that, you know, don't do
- 15:47spec driven development in Vibe. I don't
- 15:49agree with that. But you could say if
- 15:51you do spec driven development, really
- 15:52scope down. And that to be honest is one
- 15:54of the one of the principles I put in
- 15:56the constitution now, which is shortest
- 15:58path to MVP, short-lived branches, scope
- 16:01down, scope down, scope down. Like do
- 16:03not Let's all YAGNI, you ain't going to
- 16:05need it. Nothing that has a clear use
- 16:07case should ever be included in the in
- 16:10in in the implementation plan.
- 16:12>> Mhm. So, I'm just highlighted agent
- 16:14framework and I'm just I can't help but
- 16:15have this thought that like what is the
- 16:18difference between spec driven
- 16:20development that you're creating and an
- 16:23agent framework? Cuz surely
- 16:25the difference
- 16:27there's not a lot of difference there or
- 16:29it can easily be construed as a
- 16:30framework, couldn't it?
- 16:31>> I'm not sure, but to me, when you start
- 16:34talking about agents and what the
- 16:35majority of like articles I read are
- 16:38doing, they're looking at like agent
- 16:39teams and personas and all that. I I
- 16:42don't want to go there. I don't want to
- 16:43look at like agents completely
- 16:45individually doing all the work. I I
- 16:47think you need to have a way to define
- 16:49the work. You need to have a way to to
- 16:52to really
- 16:53you know, master and manage what the
- 16:55work is.
- 16:57Um because I mean, a lot of these teams
- 16:59that are saying, "Oh, we we have a
- 17:01linear uh board with issues and we just
- 17:03assign it to our uh swarm of agents and
- 17:05they they work on it and then we get a
- 17:08working solution." Either maybe that
- 17:10that their SDD spec driven development
- 17:13is is basically their classic product
- 17:15owners
- 17:17um and engineers defining
- 17:19>> Mhm.
- 17:19>> the actual ticket uh down to a very
- 17:21small task that an agent can complete.
- 17:23And yeah, I mean, if you do that, that's
- 17:25perfect, right? But I'm focused on that
- 17:27that life cycle part. Like
- 17:29>> Yeah.
- 17:29>> taking it So, the whole like agent
- 17:32framework and individual working again,
- 17:33like I said, I don't want to be in the
- 17:35driver's seat, but I very much feel I
- 17:37have to be right now. And to me, it
- 17:39feels like you I I I want to control
- 17:41the the you know, the task definitions
- 17:44and how the work goes into the agent
- 17:46framework. That's where I'm focused on.
- 17:48>> So, the other thought, because this is
- 17:50applicable to a problem I have with at
- 17:52work right now,
- 17:54is documentation. So, your spec, is that
- 17:58>> It's not a documentation.
- 18:01>> No, I had the same and it's a very good
- 18:03question that I did a session with my
- 18:04friend. I said, "Hey,
- 18:06um basically what I'm doing is I'm
- 18:07giving people the chance to
- 18:09um give me some project they want to
- 18:12work on, and I use my cloud Claude Code
- 18:14agent tokens, and I spend 2 hours, and
- 18:16we have to complete it within 2 hours,
- 18:18and I'll uh give you a working solution.
- 18:21So,
- 18:22I initialize the repository with or you
- 18:24give me a a repository, you give me a
- 18:26feature to work on, and the condition is
- 18:28that I can record and publish it, and
- 18:30then I hopefully give you a working
- 18:32feature implemented onto your code base.
- 18:34So, I did that with my friend, and he
- 18:35asked me exactly the same question. So,
- 18:37the spec, is that a documentation? And
- 18:40and I actually really didn't realize it,
- 18:41but you need to mean I think you also
- 18:44asked me this last time. No, it was my
- 18:46friend.
- 18:47>> This is the big problem I have at work.
- 18:48I can maybe explain to you the problem.
- 18:50But yeah, so what was
- 18:51>> Sorry, I interrupted you before you
- 18:52explained.
- 18:53>> What was your resolution? How did you
- 18:54What's your approach to documentation?
- 18:56>> I believe it should be um
- 18:59in the repository as um
- 19:01This is what I did for Spec Ledger,
- 19:03right? I I created doc/design that
- 19:06documents every layer. Like, what is our
- 19:08our design philosophy? How do we
- 19:10organize the command line interface? how
- 19:13do we organize the what's the
- 19:15responsibility of each layer within this
- 19:17agentic design framework.
- 19:18>> Okay. So, you have a separate
- 19:19documentation, but who edits
- 19:21documentation? Agents or humans? Or or
- 19:23both? What's your How do you keep the
- 19:25documentation?
- 19:26>> needs to update the documentation. That
- 19:28is the humans need to confirm and and
- 19:30review. I mean, ultimately the agent
- 19:32writes the docs, but the humans need to
- 19:33review and and and can modify the docs.
- 19:36>> So, I feel partly responsible for this
- 19:39misalignment with my my colleague. But
- 19:41like for example, one thing that I like
- 19:43to refer to a lot is this
- 19:46um
- 19:47this French site called I think I showed
- 19:49you this before probably.
- 19:50>> Yeah.
- 19:52>> Whatever. Don't even know how to
- 19:53pronounce that word.
- 19:55We have these different sort of styles
- 19:57of documentation, right? So, that we
- 19:59have some documentation at work. It's
- 20:00quite a lot of documentation, like at
- 20:02least 500 files of markdown
- 20:06um exported from Confluence. And what
- 20:09he's done
- 20:11is pretty good, but at the same time
- 20:13it's kind of made made things a bit more
- 20:17problematic because he's taken the 500
- 20:19documentations and then he's generated a
- 20:22how-to guide. He's generated an
- 20:24information reference. He's generated um
- 20:27some explanation documents. He's He's
- 20:29generated some tutorials from that
- 20:31original
- 20:32um
- 20:33corpus. So, now we have actually more
- 20:35documentation than what we had
- 20:37previously. And now it's like becomes a
- 20:41like like where's the source of truth?
- 20:44>> Yeah, you They They become
- 20:45out of sync.
- 20:46>> Now you have a broken mirror.
- 20:47>> Well,
- 20:50yeah, something like that.
- 20:51>> Yeah, because one the how-to guide is
- 20:53still talking about A, well the
- 20:55reference has been updated and actually
- 20:57it's A A A uh A alpha or A beta. And and
- 21:00now they're like slightly different. And
- 21:03now how to realign
- 21:04>> Exactly. And that now we Yeah, we now we
- 21:06have a serious alignment problem. Um
- 21:09um
- 21:11But like
- 21:12my colleague is he's good.
- 21:14It's I just I just that I feel like
- 21:18that
- 21:19I mean the things he's generated are
- 21:21actually a lot better than what we have
- 21:22currently, but the trouble is it's like
- 21:24there's no way to
- 21:26keep things
- 21:28synced in my mind without
- 21:30running AI over every like every time we
- 21:33update this thing, then maybe I have to
- 21:35have an AI job to create the tutorial or
- 21:38update the tutorial and update the
- 21:39explanation, update the reference.
- 21:41>> You're just going to
- 21:42>> you run the AI, it's going to find a
- 21:43difference and tell you there's another
- 21:44difference.
- 21:45>> Exactly. I'm just
- 21:46I'm already in this like
- 21:48Kafkaesque loop and I can't help but
- 21:50think when we went back
- 21:52The original documentation that we have
- 21:54in Confluence, even though sometimes it
- 21:55was wrong, at least you had the source
- 21:57of truth, right? Like all the
- 21:59documentation for this particular
- 22:00feature is here and and that's that's
- 22:03where it is. It is not like in four
- 22:05places now.
- 22:06>> And it's also something that that that
- 22:07Opus or Sonnet or all of them like to do
- 22:10is when I when I have like, "Hey, we're
- 22:12creating this index document." And then
- 22:14it goes, "Do you want a short summary of
- 22:17like the other document or just a direct
- 22:19external link?"
- 22:21Um and every time it creates a short
- 22:23summary, that's that's something that
- 22:24potentially gets outdated and and
- 22:26doesn't show the original like doesn't
- 22:28actually show the correct contents of
- 22:29what it's linking to, right? I mean, I I
- 22:32tend to
- 22:33I always ask it to generate options and
- 22:35then ask for my alignment and then it
- 22:37always gives me this option to like
- 22:39duplicate some of the information here
- 22:41and then create a link.
- 22:42>> Yeah.
- 22:43>> Which sounds interesting because it's
- 22:45kind of like progressive disclosure,
- 22:47right? You you read a little bit and
- 22:48then you can go in into deeper details,
- 22:50but it just creates an another thing
- 22:53like earlier when I said the task
- 22:55definition is a one thing, the plan kind
- 22:57of hinted at it and then the the spec
- 22:58was completely different. You need to go
- 23:00all the way back to update all of them
- 23:02or you get all these misalignments.
- 23:04>> Yeah, this this
- 23:06Yeah, when you when you talk about uh
- 23:08spec-driven development, I do really
- 23:11like the source of truth element to it.
- 23:14I mean, I'm I maybe made a a brash
- 23:16assumption there, but with your
- 23:18spec-driven development, like there's
- 23:20one document that is the source of truth
- 23:22for that
- 23:23or or or there's a part of the document
- 23:25that's the source of truth for that
- 23:26feature, say, right?
- 23:28>> Yeah, but if you if you So, the thing it
- 23:30it I guess it depends on which framework
- 23:32that you use because I know that Open
- 23:34Spec apparently has the idea of um like
- 23:36archiving and um but but with the one
- 23:39that we currently have with Spec Kit and
- 23:41we haven't changed too much about it,
- 23:43you end up with 20 20 spec 20 spec
- 23:47folders. And each one of them have a
- 23:48slightly iteration on top of the
- 23:50previous features, right? So, your
- 23:53question earlier, like where is the
- 23:54source of truth? It's not in the spec
- 23:56folders because you have the version one
- 23:58which was we do this initial spec with
- 24:00these initial initial features. And then
- 24:02we build on top of that in in the second
- 24:04iteration, we we add a bunch of new
- 24:06features, we modify the original user
- 24:08story slightly. And then the third one
- 24:10but and we don't go back to the first
- 24:11one because that's the original user
- 24:13stories, right? So, I do feel you we
- 24:16need to have a canonical root of repo
- 24:19once this user so once the second spec
- 24:21is merged all the user stories in in
- 24:24like the the root need to be aligned.
- 24:26So, because now we have the original
- 24:28user story here, we have the new user
- 24:30story there, and we have the slightly
- 24:31modified original plus use changes that
- 24:34were introduced by the next one. So,
- 24:37that is currently not in the Spec Kit
- 24:38and that is something that I put in
- 24:40That's not in the Spec Kit. That's not
- 24:42That's not in
- 24:43>> And wait, wait, are you in Spec Kit or
- 24:44or or
- 24:45I mean, is it not in your spec ledger or
- 24:48I don't I don't quite follow what what
- 24:49you mean by that?
- 24:50>> It's It's No, it's not It's not in Spec
- 24:53Kit. I don't know if Open Spec is doing
- 24:55it. Maybe I should I should investigate
- 24:56it further, but it's something that I
- 24:58put in my constitution now, like I just
- 25:00explained, like I just added a docs
- 25:02design markdown index, and I said when
- 25:04we are building, we go and update this
- 25:07the documentation that defines the the
- 25:10system like design.
- 25:11>> Yeah, that seems like a fundamental
- 25:12thing that needs needs to be updated and
- 25:14it needs to be canonical. Like I
- 25:18I was thinking naively at at my
- 25:20workplace that we could just do what AWS
- 25:23docs
- 25:25uh do, like I don't know if you've ever
- 25:26used this uh this I I I know you're
- 25:29going to probably revolt when I say MCP,
- 25:32but this particular
- 25:33>> I am I am controversial, right? Now,
- 25:35everybody says MCP is that? No, I say
- 25:37actually I really enjoy MCP.
- 25:39>> Yeah, I
- 25:41Well, this this MCP uh AWS docs
- 25:44uh feature, I don't know how you want
- 25:46this this service where where uh you can
- 25:50jump into Claude, set up MCP, and then
- 25:52ask questions about AWS docs. It's it's
- 25:55wonderful. And this is what I wanted at
- 25:57work. I wanted something like this where
- 26:00>> For your docs.
- 26:00>> where your docs the the canonical docs
- 26:03of AWS or canonical docs are queried,
- 26:07and and the cool thing about using an AI
- 26:09agent like Claude is that like if you
- 26:11wanted a tutorial, you can you can get
- 26:14you can say to
- 26:15uh your prompt to say like give me the
- 26:17steps to set up an S3 bucket with with
- 26:20the I don't know, an access point or
- 26:22something. And it can read the
- 26:23documentation, and even though it's not
- 26:25a tutorial, even though it's like I
- 26:27don't know what the AWS docs are.
- 26:29>> It can generate a tutorial for you.
- 26:30>> It can it can generate a tutorial. So,
- 26:31this is what I wanted at work, but the
- 26:33trouble is we don't have an MCP.
- 26:35>> I don't think the problem is the MCP.
- 26:37First off, you can what with the CDK TF
- 26:40my fork, we we are we got OSS support of
- 26:44Mentlify, and they provide a doc MCP out
- 26:47of the box out of their platform. So,
- 26:49you put your
- 26:51um handman hand crafted
- 26:55um documentation. Actually, we have two
- 26:57two parts of the CDK TF docs, and that's
- 26:59nothing we built. It's what the original
- 27:01CDK TF project had. Which is on one
- 27:03side, there's the, you know, concepts
- 27:06um type of information about, you know,
- 27:09what's a stack, what's what's an aspect,
- 27:11and all that information. And on the
- 27:12other side, there's an API reference,
- 27:14which is completely generated from the
- 27:16TypeScript uh type definitions, you
- 27:18know, from through JSII. Um you get the
- 27:21core schema, like almost like JSON
- 27:23schema type script schemas, and you
- 27:26generate it cross-translated. It says,
- 27:28for Python, it means it's like this, it
- 27:30uses JSII. So, it generates the API
- 27:32reference. It's like JS docs, Java docs,
- 27:34if you remember, right? It generates
- 27:35this huge um
- 27:37API reference uh libraries, right?
- 27:40>> Which are pretty cool. I mean
- 27:42>> Yeah, and I think that's
- 27:43>> a bit a bit dry, but they have a lot of
- 27:45Yeah, it's it's interesting.
- 27:46>> Yeah, uh when when we when we learn
- 27:47programming in school or in university,
- 27:50you had to go through the Java SDK API
- 27:53docs, right?
- 27:54>> Yeah, the PHP
- 27:55>> to
- 27:55>> I always think of the PHP docs for some
- 27:57reason. The PHP API docs were amazing.
- 27:59>> We had to learn the standard uh library
- 28:01of Java, and we had to like understand
- 28:04all of these collection classes, string
- 28:06buffer, and when to use what. Um
- 28:09And and you had to understand the SDK.
- 28:11Even when I was learning .NET, and we
- 28:13were learning about like threads and
- 28:15asynchronous,
- 28:16um the whole threading in .NET.
- 28:18>> Yeah, that's that's a that's a good
- 28:19exercise to read through the base like
- 28:22With PHP, it was I I I I guess I was a
- 28:25bit distracted half the time because the
- 28:27comments section of the PHP docs was was
- 28:29always hilarious to me or very
- 28:31interesting.
- 28:32>> Okay. So, yeah. So, but but we I think
- 28:35we can agree that we have long solved
- 28:37this problem, right? You put some Java
- 28:39doc string on your code, on your
- 28:41interface, on the property, and you get
- 28:43an auto-generated, very deterministic,
- 28:46maybe dry, but
- 28:48>> you any
- 28:49of that.
- 28:50>> to these decisions, of course.
- 28:52>> It depends how good you document it. But
- 28:53like because if you look at AWS CDK,
- 28:57they actually have like very detailed in
- 28:59the Java doc, they have code snippets.
- 29:01Like sorry, in the JS docstring,
- 29:03JavaScript documentation string. They
- 29:05have a code snippet. Like there's a
- 29:06constructor of the VPC L2 construct,
- 29:09there will be a code snippet. This is
- 29:11how you build a basic VPC right above
- 29:14the constructor. So inside the API ref,
- 29:17um you go to that their docs. They have
- 29:19a right at the top introduction. This is
- 29:21a VPC construct, then little example.
- 29:23This is how you you invoke it with basic
- 29:26>> to send me a link to that cuz it's
- 29:27probably something I completely missed
- 29:29actually.
- 29:29>> AWS CDK L2
- 29:33>> Because we
- 29:34cuz at work we're trying to create level
- 29:36two constructs and our level two
- 29:38constructs are basically living the
- 29:40documentation's living in confluence as
- 29:42an ADR that got signed off by security
- 29:45and whatnot.
- 29:46And
- 29:47I think that's what we're missing at
- 29:48work actually cuz the constructs, the
- 29:50way that they're implemented, there's
- 29:52very little documentation in the source
- 29:54code. Everything's in confluence and we
- 29:56need
- 29:56>> So this is the API reference. So on one
- 29:58side you have the developer guide that
- 30:00explains concepts that
- 30:02that explains that explains concepts.
- 30:04And then you have the completely
- 30:06programmatically generated API reference
- 30:08that you can view in all of the
- 30:09supported languages. So these language
- 30:11translations
- 30:12>> Three.
- 30:13>> are fully automated, right? And then the
- 30:15example I've gave for example was for
- 30:17the VPC, right? Let's go to the VPC. So
- 30:19if you go to the Where is he? Seriously.
- 30:22>> Well, I'm more interested in like a
- 30:24level two construct or something like
- 30:26that.
- 30:26>> Yeah, the the the VPC level two
- 30:27constructs or maybe they
- 30:29they they got rid of it. But I want to
- 30:31show you the level two construct, not
- 30:32the level one. Is this
- 30:34Where are the level twos? Let's just I
- 30:36want I want to take one that I know.
- 30:38Like let's take um
- 30:40Dynamo. So DynamoDB, oh I know why I
- 30:43couldn't see it because it's under the
- 30:44EC2.
- 30:46Eh, where did it go again? It's under
- 30:47EC2. But, they they also have the V2.
- 30:50AWS EC2. Okay, you're going to have to
- 30:52cut a little. So, here you have AWS VP
- 30:54EC2. They have the overview, which is
- 30:56the root readme of the the readme.md
- 30:58from the library, right? In the library
- 31:00folder. And then you have every single
- 31:02construct, and this is an L2. And right
- 31:04in the construct here at the top, you
- 31:06have a little example, right?
- 31:08Um for example here, and then you have
- 31:11another example here.
- 31:12>> Mhm. Mhm.
- 31:13>> And how is this created? If you go to
- 31:15AWS Labs, is it AWS CDK?
- 31:18>> Yeah, but examples if you go to the
- 31:20GitHub
- 31:21>> That's one form of documentation. I I'm
- 31:23thinking like
- 31:24>> No, no, hold on. Let me finish.
- 31:26Um
- 31:27>> Okay.
- 31:28>> AWS EC2. Where is EC2? Oh, no, it's AWS
- 31:31EC2. Where is the source for this
- 31:33because what we just said is that AI can
- 31:35generate all of this stuff, but it's
- 31:37it's it's like slop. So, the root readme
- 31:40is this thing, right? Which
- 31:42completely matches the root readme here,
- 31:45okay? This is import. This is examples.
- 31:48So, that's that thing, right? Exactly
- 31:49the same thing. Then the second thing is
- 31:51you have the library. And then if you
- 31:53look at the actual VPC here, right in
- 31:55the JS doc string, you have these
- 31:57examples, right? Um in the constructor.
- 32:01So,
- 32:02VPC creates a VPC. I guess there's one
- 32:04on the cloud There's two. One One is on
- 32:06the class. There's a JS doc on the
- 32:08class.
- 32:09Um This is the static import. Where is
- 32:12the public Oh, there it was right there
- 32:14at the top. Here. So, export class VPC
- 32:16VPC base. And here we have the original
- 32:19like for example, there's a VPC new.
- 32:22There's So, you see it's even like
- 32:24annotated TypeScript. So, that's use
- 32:26what you see at the top here. When you
- 32:27look at this, you see it right here.
- 32:29That's is a
- 32:30JS doc, right? And then when you look I
- 32:33don't know where the other example is,
- 32:34but I I it's here. Well, where is the
- 32:37actual constructor?
- 32:38>> here's the constructor.
- 32:39>> I think those are good for like
- 32:42development
- 32:43uh
- 32:44It's not because of the library things,
- 32:46but like what what
- 32:47like
- 32:48often enough we we have a little to
- 32:49construct at work where it's for a
- 32:52particular business unit for a
- 32:54particular feature and it's not the sort
- 32:57of style. It's like this this security
- 33:00consideration, security reviews and
- 33:02reasons why it's done this way for
- 33:04certain reasons and
- 33:07>> So, we we have
- 33:09>> I don't think [clears throat] the source
- 33:09code is the right place to put it, is
- 33:11it? I'm not too sure.
- 33:12>> I absolutely think that as much as
- 33:14possible your documentation should live
- 33:16life together with your code.
- 33:17>> Mhm. But like
- 33:19in a lot of enterprises this there's so
- 33:21many non-technical people involved. Like
- 33:23I dare say the security people are not
- 33:26terribly ever going to look at the code
- 33:28and the product owners are definitely
- 33:30not going to look at the code and the
- 33:31business analysts are not going to look
- 33:32at the code.
- 33:34But this is the Mint the Five. Is this
- 33:36Mint the Five driven MCP or AI feature?
- 33:39>> Yeah. So, in this case, right? I don't
- 33:41think I have any example in my
- 33:43documentation that shows you exactly how
- 33:46to how to create a Terraform stack with
- 33:48the S3 backend. But because of the way
- 33:50that these API references and everything
- 33:52is generated, you should get exactly
- 33:54this. Like this is how you do it. And it
- 33:56shows us there's an API reference here
- 33:58and there's a backend config reference
- 34:00here. So, this is kind of what you
- 34:02expect that you're getting out of the
- 34:04AWS MCP, right? You can ask it the
- 34:06question even though that the the
- 34:08reference data, which is auto-generated
- 34:10and very deterministic out of the, you
- 34:13know, API contracts and open API spec,
- 34:16which AWS what they they have their own
- 34:19like Smith
- 34:21Smitty language to define API contracts.
- 34:24They they they document it very
- 34:26auto-generate all the documentation and
- 34:28then you layer layer of AI on top of it
- 34:31and you get this type of response where
- 34:33you ask for an example and it gives you
- 34:35this. And in they actually give you in
- 34:37the pro plan the ability to expose this
- 34:39as an MCP so that people can install, I
- 34:42don't know where is the option here.
- 34:44>> Okay, so this is this is Mintlify
- 34:46uh
- 34:47feature, right?
- 34:48>> Yes, these are all Mintlify features.
- 34:50And and um and and it kind of combats
- 34:53the problem of we have a whole bunch of
- 34:55markdown AI slop generated in five
- 34:57different ways. No, we have the core
- 34:59truth ideally or deterministically from
- 35:01the code source code, and then we layer
- 35:04we layer the AI on top and it has a
- 35:06vector database and it can in it has
- 35:08indexed your docs on whatever they get
- 35:10published or whenever you do a library
- 35:12release, and then uh the vector database
- 35:15quickly sources the data so that it can
- 35:17>> I like this. This is great.
- 35:18Though I mean, you hear me in the sense
- 35:20that like we have a lot of non-technical
- 35:23people involved in in these enterprises,
- 35:25and they just I don't think this is a
- 35:27good fit for them because they they live
- 35:29in
- 35:30in Jira Confluence land. Like how do you
- 35:33how do I incorporate
- 35:34>> I mean, it depends on what is the
- 35:35documentation that you need to generate,
- 35:37right? If the documentation What do you
- 35:39mean? Like if Who owns Who Who has the
- 35:41knowledge? Who needs to write it?
- 35:43>> Well, the the trouble is in a in a big
- 35:45enterprise some people I think the
- 35:47knowledge is kind of split because like
- 35:49some people have technical knowledge
- 35:50like the docs and things like that and
- 35:52they the implementation knowledge. Some
- 35:54people have the the business knowledge
- 35:56like why it is this way because of this
- 35:58decision. Unfortunately, in a lot of
- 36:00enterprises a lot of this information is
- 36:02kind of gatekept to be honest and it's
- 36:05really hard to to shake out like why
- 36:07this decision is like it is
- 36:10and things like this, but
- 36:12this is this is the problem I'm dealing
- 36:14with and I'm just starting to think it's
- 36:15it's a really challenging problem.
- 36:17>> If it's a challenging problem, it's
- 36:18probably worth money.
- 36:21Because I think you know how much money
- 36:22Mintlify has been raising? I mean, I
- 36:24just showed you what they can do with
- 36:26like they are
- 36:27>> Well, this is this is the great thing
- 36:28about AI is like we're looking at
- 36:30problems again and we're coming up and
- 36:32there's innovation happening everywhere
- 36:34and we can hardly keep track of
- 36:35everything. It's just incredible and
- 36:37it's really exciting space. I mean, I'm
- 36:38a little my mood this morning is
- 36:40probably not great, but like I'm
- 36:41actually excited because there's so many
- 36:44but there's so many like things to solve
- 36:46now. There's so many things. But let me
- 36:49let me get back to that blog that we
- 36:50started off with because I think there's
- 36:52some there's some really good points
- 36:53that I made. Like for example,
- 36:56like why we review.
- 36:58We we we want to review so that
- 37:01there's alignment that we have a quality
- 37:05well, I don't want to read out this
- 37:06text, but this is what I'm
- 37:09this is what I'm I'm getting at.
- 37:11Uh
- 37:12this is how I interpreted
- 37:14interpreted this blog.
- 37:16I think we talked about quality. But the
- 37:18the really interesting thing I think he
- 37:20makes it is is trust. Like he he made
- 37:22the point that like uh
- 37:25what one of the things that made
- 37:27Japanese
- 37:29uh
- 37:29stuff so good is that there was an
- 37:31implied quality, right? Like if you
- 37:33bought this Japanese thing, it's going
- 37:35to be quality. So when you when when you
- 37:37have that sort of uh expectation and
- 37:39trust,
- 37:41uh it makes your quality process a lot
- 37:42easier because you don't need to have
- 37:44all these checks and rigors if you know
- 37:46you're going to going to get a quality
- 37:47item um
- 37:49you know, cuz it's got this Japanese
- 37:51labels on it. But I think it's I think
- 37:53it's true like back in the day as I
- 37:55don't think I don't think it's the case
- 37:56nowadays because like Japanese products
- 37:58are probably not even manufactured in
- 38:00Japan, but who knows?
- 38:01>> I mean the core the core point is that
- 38:04with a label on it, it uh
- 38:07it's trustworthy. But the funny thing is
- 38:09also related
- 38:10>> Well, no, the label's the wrong thing.
- 38:11It's like it's like the trust is there.
- 38:13>> You know, yeah, but like it's the same
- 38:15like you trust a certification program
- 38:16or you trust a security scanner or you
- 38:18trust uh it's a it's a base layer of
- 38:22um guarantees, right? That you can build
- 38:24upon.
- 38:25>> Exactly. Exactly.
- 38:26>> Uh but but if you want to talk about
- 38:28Japan quality, when I talk about Japan
- 38:31quality to my father
- 38:33uh who is 80 years old, he says it's
- 38:35funny because back when he was young,
- 38:38um Japan did not have the the the
- 38:41reputation of quality and and it was
- 38:43like where China was maybe a few years
- 38:45back.
- 38:46Um where, you know, made in China was
- 38:48not was like oh it's it's it's not good
- 38:51quality. It was like that with Japan. He
- 38:53says also like they used to come to
- 38:55Belgium and take pictures of everything
- 38:56and everyone hated it like because they
- 38:58take pictures and then they go and make
- 38:59it back in Japan for cheap. Um
- 39:02but it's funny now because now
- 39:04uh made in China is actually like, you
- 39:06know, it's good quality. I don't know if
- 39:09you you still have that connotation, but
- 39:11for me, made in China means it's
- 39:13actually futuristic, it's good quality,
- 39:15it's
- 39:15>> Yeah, there's definitely something. Like
- 39:17I mean
- 39:18my my parents used to go to Japan in in
- 39:21the in the '80s to buy fabric because
- 39:23there was sanctions in in South Africa
- 39:26and you couldn't import fabric very
- 39:28easily from other countries, but in
- 39:29Japan
- 39:30um they were nice to South Africa.
- 39:33>> Contraband.
- 39:35>> I've I've got a few I've got a few
- 39:37Japanese toys and the quality is
- 39:39incredible um for the '80s. So, there
- 39:41was there was a golden age for sure.
- 39:44Uh
- 39:45but like
- 39:46yeah, going back to this
- 39:47going back to AI and
- 39:49>> Yeah, we went to
- 39:50>> teams
- 39:50>> We got off topic totally.
- 39:51>> and teams and things like this. The
- 39:53trust Yeah, like
- 39:55I mean, I know from working with a as
- 39:58being I know from being a consultant for
- 39:59the last 15 years five years at least in
- 40:03my current consultancy, like trust is is
- 40:05the number one thing. Trust is the key
- 40:08to for a client relationship. Trust
- 40:11trust trust. And like I'm a little bit
- 40:13shocked in some ways that people are
- 40:15using AI and uh basically destroying
- 40:19that trust because like that the client
- 40:21doesn't know that much about AI and then
- 40:23someone comes along and another a
- 40:25consultant says like, "But if you use
- 40:26AI, this could be done so much quicker."
- 40:28And then all of a sudden quality issues
- 40:31occur and then the trust is basically
- 40:33destroyed. And this could be a colleague
- 40:35of mine.
- 40:37Um
- 40:39So that anyway, I guess I I don't really
- 40:41have a solution here but like
- 40:43but like if I don't know how you even
- 40:45measure trust really.
- 40:48But but this is the thing that needs to
- 40:50be
- 40:52I anyway, this this blog made me just
- 40:54think aloud that like trust needs to be
- 40:56it needs to be protected. We need
- 40:58integrity here for what whatever we do,
- 41:01trust and alignment or whatever you want
- 41:03to call it is so key with all this
- 41:06innovation that's happening. It's just
- 41:07like
- 41:08>> You know what I also You know how how
- 41:09>> how um we used to look at CI/CD
- 41:12pipelines. One of the concepts of
- 41:14immutable infrastructure is that you
- 41:16build an immutable asset and that asset
- 41:20or artifact moves down the pipeline and
- 41:23the further along it goes to the right,
- 41:25the higher our trust is into this
- 41:27artifact until we are sufficiently
- 41:29convinced to deploy it into production.
- 41:31>> Yeah, passing all the promotion gates
- 41:33and such and so forth.
- 41:34>> And I think that's still very much like
- 41:37the requirements is we need verification
- 41:39mechanisms around these
- 41:41>> But then but then but then but that is
- 41:43in contrast like the speed of AI and the
- 41:46slowness of reviews and quality gates.
- 41:48>> Yeah, which is why everyone always says
- 41:51like Agile and I think we mentioned this
- 41:53like a long time ago, Agile best
- 41:54practices are really important and I
- 41:56think even like Adam Jacobs and all when
- 41:58they talk about AI they always say like,
- 42:00you know, we chef, we do Agile, we do we
- 42:04do all of this, you know, devops best
- 42:06practices. We do validation mechanisms
- 42:09and the focus was always on automation,
- 42:11right? It was always on linting to
- 42:13reduce the overhead and like, you know
- 42:15why linters exist, right? We we want to
- 42:17remove all of the white space
- 42:18differences and formatting issues that
- 42:20people would argue over. Like, no, but
- 42:22you know, curly braces would be on the
- 42:24set next line, not on the same line.
- 42:26Linting rule.
- 42:27>> Yeah, we Yeah.
- 42:28>> We don't want to have We don't want to
- 42:29waste our time with with those
- 42:31discussions, right? So, the more that we
- 42:33can put in uh formal and automated
- 42:35deterministic validation mechanisms
- 42:37around produced code, then the more we
- 42:40can
- 42:40>> Every makes the same point with Go
- 42:42format. Think of the people who created
- 42:44Go format. I don't know if you've ever
- 42:45worked with Go. You have, right? Go
- 42:47format is fantastic.
- 42:49>> And and Rust expanded on that because
- 42:51then aside from Go format, Go test is
- 42:53also an amazing framework.
- 42:55>> Yes, it
- 42:56>> originally those test frameworks, they
- 42:58were not in built-in. Like, Node didn't
- 43:00have a test, right? Then you have
- 43:01Jasmine, and you have so many different
- 43:02iterations of it.
- 43:03>> Yeah, and they're slow and they're God.
- 43:05>> So, a language that is built from the
- 43:07ground up with formatting, linting,
- 43:09testing, like Rust, Go, what else? Those
- 43:12languages, I mean, you have
- 43:14well-established frameworks for Python
- 43:16and for for JavaScript, Jest or Vitest.
- 43:20So, you have a lot of them, yeah.
- 43:22>> I mean, like, we know we know what to do
- 43:24in some ways that we need to add
- 43:27automation, add tests, add
- 43:31>> to build trust.
- 43:31>> automation and sense add trust into the
- 43:33whole into these new technological
- 43:36advancements, AI. But, I just feel like
- 43:38it is very challenging. Like, this is
- 43:40what we need to do, but I feel like we
- 43:42need to
- 43:43go back to the drawing board, like make
- 43:45all these mistakes, and then automate
- 43:46these things again. And that And that's
- 43:48quite challenging in an enterprise
- 43:49environment which is used to
- 43:51being slow and used to
- 43:54having all those quality
- 43:56in place. You know, you can't just like
- 43:58flip the table and say, "Hey, we're
- 43:59using AI and we're making And we're
- 44:01going to be a startup again." And and
- 44:03and we're going to learn a lot and
- 44:04things like this. It's really
- 44:06challenging.
- 44:06>> And I think the most important thing is
- 44:08that AI has been trained on the test
- 44:10frameworks and we're trusting AI to
- 44:12write a test and we need now to need to
- 44:13trust the AI to write the test. Like we
- 44:16don't trust the test because AI wrote
- 44:18it, right? And that's the thing. That's
- 44:21That's where I'm like That's where I'm
- 44:23excited because AWS with Kiro, right?
- 44:25They said the ears format or the easy
- 44:27way of defining
- 44:28>> Yeah, like
- 44:29That's That's an excellent point that
- 44:31you made there. It's like
- 44:33We talk about trust, but like if we
- 44:35asked AI today to write us a test suite,
- 44:38do we trust that this test suite is is
- 44:40actually a value? I I I can't.
- 44:43>> But the problem is that this the the
- 44:45amount of I think the problem is the
- 44:46volume, right? Because the volume code
- 44:50output is much higher. So human
- 44:52reviewers are overloaded. The volume of
- 44:55generated tests are much higher, so you
- 44:58can't validate that every test is really
- 45:00testing what you expect it to test. Are
- 45:02the assertions right? Is it not putting
- 45:03in a mock somewhere?
- 45:05>> Mhm.
- 45:07>> So then
- 45:08you're shifting You're shifting the
- 45:10abstraction layer, right? Because when
- 45:12you talk like low-level assembly, it's a
- 45:14massive volume, right? We We used it by
- 45:17going up in the abstraction layer. And I
- 45:18think that's where then now with AI
- 45:21we're able to live at a much higher
- 45:23abstraction layer, the English language,
- 45:25and we are defining our user stories and
- 45:27we're defining our tests in the English
- 45:29language, right? So things that were not
- 45:31possible in the past, automatically
- 45:33parsing English language into validation
- 45:36framework,
- 45:38become a little bit more realistic now
- 45:40because of AI has the ability to
- 45:42interpret a paragraph, narrate
- 45:46a text that is easily for a human to to
- 45:50understand and validate, formally then
- 45:51convert that into an actual
- 45:53um rule, like property-based testing or
- 45:56Gherkin BDD, these frameworks. Which
- 45:59Which exist for for years and everybody
- 46:01Maybe you will write them off say,
- 46:02"Yeah, we tried it, it didn't work." It
- 46:04We tried it, it didn't work, but it
- 46:05there was no AI.
- 46:07>> I mean, Vince, when I when I'm listening
- 46:10to you, it sounds like
- 46:12the solution to the problem is AI. Like,
- 46:13if if only we had AI
- 46:15>> No, the solution to the problem is to
- 46:17apply AI to higher layer and then have a
- 46:19deterministic parsing. Like, we're
- 46:22parsing a formal language down to
- 46:24>> But that that higher layer requires
- 46:27requires agents to to do the uh
- 46:30>> No, the parsing down will not. Okay, so
- 46:32so imagine this, right? The way that
- 46:34Kiro is designed is to to define a user
- 46:36story. From those user story, like, as a
- 46:39developer, I want this because of this.
- 46:41This is a primary reason why I want to
- 46:42do this, blah blah blah. There gets
- 46:44functional requirements, requirements.
- 46:46When I do this, then this happen, like
- 46:48happy path. When I do this, then that
- 46:50should not happen, like sad path. These
- 46:52are very very parsable strings of text,
- 46:55right? They're in between, they're from
- 46:58the user story, which is like a
- 46:59paragraph of text to actual bullet
- 47:01points of rules.
- 47:03>> Yeah, but like
- 47:03>> requirements. They are parsable. The
- 47:05parsable part means deterministic, means
- 47:07we don't let an AI generate the text.
- 47:10>> need you still need some
- 47:12>> Yeah, but as a human
- 47:13>> test harness to to to run that and and
- 47:15and the AI could
- 47:17>> No, the AI should not be involved there
- 47:18at all.
- 47:19>> But how do you How do you How do you How
- 47:20do you execute these requirements
- 47:22against the implementation of the
- 47:23>> the concept of cucumber and gherkin,
- 47:26BDD, behavior-driven test uh
- 47:28behavior-driven development. They have
- 47:30defined a markdown format that can be
- 47:32parsed down into a validation framework.
- 47:34So, the AI agent writes English in those
- 47:37specific strings and then you fail the
- 47:39parser if it doesn't match that format.
- 47:41Or you pass the parser and it generates
- 47:43a deterministic validation framework.
- 47:45Your role as a human is to validate
- 47:47those requirements.
- 47:49>> Okay.
- 47:49>> And if you fail that
- 47:51then it then you cannot trust it the the
- 47:53completely deterministic generated
- 47:55tests. There's no AI from that point.
- 47:57>> Okay, I think I need to maybe you should
- 47:59try conjure an example for me cuz I
- 48:01guess I'm I'm lacking the trust because
- 48:03I just feel that the AI is smart enough
- 48:06to circumvent that in a way. Like
- 48:10Like for example hear me out here. Like
- 48:11the way I usually test some work when
- 48:14I'm working with the AI stuff is that
- 48:17I I introduce a bug to make sure that
- 48:20that my test harness sort of caught it
- 48:22and that and that for me gives me the
- 48:24reassurance that these tests that were
- 48:26generated are doing a cap are capturing
- 48:29the bug right. You know what I mean?
- 48:30Like there's probably a name for this.
- 48:32Like I I basically randomly enter a bug
- 48:34and make sure that
- 48:36>> Kiro does that and they call it
- 48:37property-based testing. They This
- 48:39basically like fuzzing, right? You
- 48:40generate a whole bunch of variables and
- 48:43you test the rules, the invariants
- 48:45against those variables and you
- 48:47basically generate
- 48:49like programmatically, randomly all the
- 48:52possible inputs until you find a
- 48:54counterexample.
- 48:55>> I understand fuzzing is. It's just It's
- 48:57just that the like my sort of review
- 48:59process is to is to sort of spot check,
- 49:02introduce not so much like a boundary
- 49:04problem, more like something more
- 49:06fundamental. Well, I say that
- 49:09and I can't even think of a good example
- 49:10right now. But
- 49:12that's that's where my my mind is going
- 49:14when it comes to testing. It's like you
- 49:16you are given something to review.
- 49:18There's so much volume as we were saying
- 49:20with the code and and the tests and then
- 49:22you you almost have to go in there,
- 49:25break something just to validate what
- 49:27this what this
- 49:29PR is is trying to do or something like
- 49:30that.
- 49:31>> Yeah, so I had a discussion with Ion
- 49:33Murdock about this where I keep saying
- 49:35like we need to have Gherkin or BDD
- 49:37because this is the my my one of the
- 49:40approaches. Like I said over the last
- 49:41few days I I realized that the
- 49:43constitution wasn't there, the checklist
- 49:44wasn't there, the cross-reference verify
- 49:47wasn't there. That's all AI agent
- 49:49driven, right? But my original idea was
- 49:52assuming that they were all there. Even
- 49:53if they were there, they all failed
- 49:55because they are
- 49:56unreliable. So, my
- 49:58>> unreliable, untrustworthy.
- 50:00>> Yeah. And so, I always want to explore
- 50:03this basically what I heard or
- 50:07understood Kiro was doing. And when I
- 50:09talked to Ion, he said, "Putting more
- 50:12rules and formal methodology around
- 50:15these agents is constraining them too
- 50:17much. You're just going to get worse
- 50:20output because the agents are working of
- 50:22their ability to to I guess have freedom
- 50:25to execute. And the more you start
- 50:27throwing errors at them when they run,
- 50:29the more they get distracted and the the
- 50:30less they can, you know, perform and
- 50:32give you the output that you want.
- 50:34Because my assumption is like I'm going
- 50:35to just immediately throw an error if it
- 50:37doesn't pass, right? So, he said, "Too
- 50:39many rules,
- 50:41even like too many injecting error
- 50:43messages when things are not according
- 50:44to certain expectations is not going to
- 50:47improve the performance of the agents in
- 50:49a way. That's what I understood from
- 50:51him. But I feel like I need to try it. I
- 50:53also wonder why I haven't really seen
- 50:55that in Kiro. I saw a lot of
- 50:56presentations from AWS talking about how
- 50:58they do this like deterministically
- 51:00validating.
- 51:01But I haven't really seen a lot of
- 51:03actual examples of that.
- 51:04>> Well, I mean there must be a reason why
- 51:05it doesn't work, right?
- 51:06>> It's not a solved problem. It's not a
- 51:07solved problem by any means. Anyway, I I
- 51:09got to take my kids to school now.
- 51:11Anyway, I it's a thought-provoking
- 51:13discussion. Thank you again, Vincent.
- 51:15>> I want to try I mean, in terms of giving
- 51:17you examples, it's definitely my
- 51:19intention to build like a Gherkin parser
- 51:23into Spec Ledger. And basically,
- 51:25whenever the agent writes on the
- 51:27requirements, run the parser. If the
- 51:29requirements don't pass, feed it back to
- 51:31the agent say like, "Okay, great. You
- 51:32wrote all the specs, but there's a
- 51:34parsing error on the requirements. I
- 51:36can't I can't
- 51:37>> validate this.
- 51:38>> Instinctively, I'm thinking just like
- 51:40everything in the world, I feel like
- 51:42that human that the like a human needs
- 51:45to be at the beginning and a human needs
- 51:48to be at the end. There's got to be a
- 51:50relationship there. There's got to be
- 51:51trust. And I'm thinking that like when
- 51:53you take the when you take the artifact
- 51:54off the production line, there needs to
- 51:56be that human review before it goes out
- 51:59there.
- 51:59>> approval.
- 52:00>> Exactly. That that QA mark.
- 52:03>> The human that that that signed the
- 52:04contract and that's held responsible if
- 52:07the thing blows up.
- 52:07>> Yeah, exactly. Insurance. The insurance
- 52:09policy and things like that.
- 52:11>> The guy that gets paid $20,000 a month
- 52:13or more at least.
- 52:14>> maybe not the insurance thing. I do find
- 52:16that horribly bureaucratic. I I hate the
- 52:18whole insurance industry. But yeah, I
- 52:20mean I
- 52:22I see where you're coming from. I I
- 52:24I hope you're right in a way. I hope
- 52:26you're right. Though at the same time
- 52:27I'm I'm just thinking to myself that
- 52:29>> I hope I'm wrong because where did the
- 52:31human What's human role if if it can be
- 52:33The human role seem to be the only thing
- 52:35that generates the ideas and then the
- 52:37whole process
- 52:39um is completely AI. There's no Like if
- 52:42you can completely trust the framework
- 52:44that it builds exactly according to what
- 52:46>> Well, let's say there there could be
- 52:47another test. Like for example, there
- 52:49might not be like a tedious QA stamp,
- 52:51but there could be a test a market test
- 52:53like if this product is good, then then
- 52:56then humans will will buy it. And that
- 52:58that is the ultimate test, of course.
- 53:01Uh
- 53:02>> Well, I wanted to show something, but
- 53:03you have to go. I also next time you
- 53:05have to show me I'm going to watch the
- 53:07your your experimentation with swamp and
- 53:09see if I am convinced.
- 53:12>> Yeah, please do. And uh please ask
- 53:14Ashani. Okay, so let's just wind this
- 53:16up. Oh my gosh, I think I need to do an
- 53:17intro in the beginning.
- 53:19>> Yeah, you can edit I I have to say River
- 53:21sounds really nice because the the video
- 53:23was all recorded directly from my
- 53:24machine and it's uploading. Quality is
- 53:26much higher. Audio is really good.
- 53:27Second thing is it's going to give you
- 53:29audio channels. So you can mute me if if
- 53:32you want to talk. I can I can mute I
- 53:34mean you can I do that with my my
- 53:36friend. I was saying something while he
- 53:37was talking or he was talking when I was
- 53:39saying something. You you mute it. So
- 53:41individual audio channels. perfect,
- 53:42right?
- 53:43>> Okay, I'll do an intro. So, that thanks
- 53:45for listening everybody and hopefully
- 53:47this Riverside works really well. See
- 53:48you. Bye. I'm clicking stop.