Latest / AI Infrastructure / Where does Spec Driven Development fit?
Transcript
- 0:00And all this stuff it happens that you
- 0:02you remember it just enough to to pass
- 0:04the certificates. That's why I'm
- 0:06personally I had this experience of
- 0:08getting or being required to get like
- 0:11five certificates in 3 months and then
- 0:13each of those certificates expected like
- 0:163 to 6 years of experience and I was
- 0:18just an intern. Not an intern, I was
- 0:21just on probation and condition to pass
- 0:23probation was to pass. And so some
- 0:25people joined before me, they had
- 0:27prepared exam cram guides and downloaded
- 0:29a bunch and then on one of those
- 0:31certificates I got like a 100% like a
- 0:34complete passing score and I was like
- 0:36they're going to be revoked. They're
- 0:37going to
- 0:38>> [laughter]
- 0:39>> they're going to you know claim that I
- 0:41That was actually the most interesting
- 0:42one. It was Microsoft SQL Server 2005 uh
- 0:45certification.
- 0:46I remember now you're describing your
- 0:48past when you were like uh
- 0:51Yeah, and it's the same thing because to
- 0:53be a Microsoft gold partner you have to
- 0:55have a certain amount of people within
- 0:57the organization that have those
- 0:58certificates. Yeah. I mean it's 2026.
- 1:02It's the same with AWS. I'm pressurized
- 1:04to do the certificates anyway. I mean
- 1:06the problem I learned from that is that
- 1:08I never trust someone who has a
- 1:09certificate. Like if somebody on a CV
- 1:12puts certificates, I will usually if
- 1:15it's in something I'm knowledgeable
- 1:16about, I will make their life hard on
- 1:18those topics. Well, fair enough. I mean
- 1:21and it's
- 1:22On certificates I do think
- 1:25they're more useful than they're not
- 1:27useful. And
- 1:29and to be honest I I do encourage my
- 1:31colleagues to get it because you do
- 1:32learn things that you might not
- 1:34ordinarily know. Um it's a bit lame but
- 1:36I didn't even know about uh
- 1:38I didn't know about
- 1:40CloudTrail Lake until it was in the exam
- 1:43question. Yeah, I don't know about it
- 1:45also. But then what do you use it for?
- 1:47Is it like like a data lake for your
- 1:49audit events or is it like a Yeah,
- 1:51exactly. So you don't have to Previously
- 1:53I think you just used to dump everything
- 1:55in S3 and and try to make sense of it
- 1:57with Athena.
- 1:59Yeah, but night
- 2:01At one of my previous organizations,
- 2:03they set up a huge Elasticsearch cluster
- 2:05to ingest all of the security events
- 2:08data. And to be honest, they just took a
- 2:10off-the-shelf GitHub Python repo. It's
- 2:13funny because we were doing Terraform
- 2:15everywhere for 3 years, and then we
- 2:17hired two people to do security with a
- 2:18new CTO, and those people go off and
- 2:21they do absolutely everything on their
- 2:23own, completely in isolation. And they
- 2:25like under direct supervision of the CTO
- 2:28to build all these dashboards. And like
- 2:30well, that's okay, but then they do like
- 2:33integrate with our Terraform. So, they
- 2:35set up all this account, we need to set
- 2:36up a Kinesis stream endpoint to to, you
- 2:39know, route all the events. But, I mean,
- 2:41they they impressed me when I there was
- 2:44a an US East 1 login outage, and I went
- 2:48around the back to get like access via a
- 2:51I don't know, I I think I use an access
- 2:53key that is stored At the time, that was
- 2:55like more than 4 years ago, we still had
- 2:57some AWS access keys in some services,
- 2:59and I just went to the secret store,
- 3:01used the access key directly, and
- 3:03started doing my stuff there because I
- 3:04couldn't do IAM logins. And I
- 3:06immediately got a notification on Slack.
- 3:09Yo, Vincent, there's some unusual
- 3:10activity on this access key. Is this
- 3:12you? And I was like, oh, wow, nice. So,
- 3:14it worked. Yeah, yeah. I didn't really
- 3:16know about all the security tooling like
- 3:18Security GuardDuty, Security Hub. I do
- 3:21feel it would probably They have all
- 3:23these like like out of the box stuff
- 3:25that will help you catch that sort of
- 3:26stuff.
- 3:27>> And with
- 3:28Another thing I didn't quite know about
- 3:30was that, you know, when you have an
- 3:32organizational unit in your master root
- 3:34account, you can there's a command in
- 3:36AWS Organizations to delegate the
- 3:38account, so you can delegate
- 3:40the security account and the IAM
- 3:43account.
- 3:44>> Yeah. I didn't actually know about
- 3:46>> I know that people set up accounts to do
- 3:48that, but I didn't know that you can you
- 3:51can delegate it straight from the the
- 3:53root account and and and in that way.
- 3:55So, Yeah, we we have a few things like
- 3:57Like um we have a shared services
- 4:00account where we run all of our like uh
- 4:02workloads like Atlantis and and like
- 4:05even if you use CDK and you CDK
- 4:07pipelines, it will recommend you to have
- 4:09a DevOps like pipeline account and it
- 4:12will provision the CDK pipeline into
- 4:14that DevOps account and then it will
- 4:16create trust relationships uh into your
- 4:18across your other accounts and your
- 4:19regions. So, we have this shared service
- 4:21account and we have like some delegated
- 4:23for resource manager, I believe, and
- 4:25also to to aggregate some of data with
- 4:28control tower. Control tower does a lot
- 4:30of that out of the box. But yeah, I mean
- 4:33what you said, sometimes there's some
- 4:34services and if you keep them on the
- 4:36root like the management account, it's
- 4:38not a very good practice and it's much
- 4:40better like they actually recommend say,
- 4:41"Hey, you shouldn't do this in here. You
- 4:43probably need to delegate this to
- 4:44another account." Yeah. There's also a
- 4:46feature I didn't know about where you
- 4:48can basically
- 4:50stop the root root account access.
- 4:53And uh it forces you to do like a
- 4:55temporary root access. I I can't
- 4:57remember the name of the feature, but
- 4:58there's a there's a there's quite a few
- 5:00things. But that's accounts root, right?
- 5:02It's not management account from the AWS
- 5:04org. Yeah, but still like you don't want
- 5:06root account Yeah, but it's different,
- 5:09right?
- 5:09What do you mean when you say root
- 5:11account? Because in in AWS org, you have
- 5:13a management account which is the
- 5:15account that you use to manage your org
- 5:17and root, what is root account in an AWS
- 5:21org? Root is the like maybe um So, you
- 5:24mean the root user? When you set up a
- 5:26new account, you have like this master
- 5:28and Yeah, you should absolutely disable
- 5:30that. That's like like we have that
- 5:33disabled.
- 5:35I think it's probably AWS config rules
- 5:37that I I'm brushing up on all the
- 5:39security stuff because my next role is
- 5:41more security sec sec eng. So, my new
- 5:44role uh which I'll be starting next
- 5:46week. We'll be administering
- 5:49um
- 5:50security preventions, monitoring, and
- 5:53all that sort of stuff on a on a large
- 5:55organization, making sure that nothing
- 5:57untoward happens. With with a focus on
- 6:00AI tooling because
- 6:02they want That's why we
- 6:04That's why that I'm was kind of keen on
- 6:05the AI guardrail stuff. So, I probably
- 6:08will continue working on that. Although,
- 6:10and and that project is like the first
- 6:12project I've used Spekit on or Spectrum
- 6:14development. And yeah, I do as I
- 6:16mentioned over WhatsApp, I I have I have
- 6:18some questions or some concerns or like
- 6:21I'm a bit I shared I mean, I shared them
- 6:23with you, and I've also shared my
- 6:25Spectrum development questions with my
- 6:27colleagues. And I feel like I get the
- 6:29same answer from you than with my
- 6:30colleagues. Like, "Yeah, that's Spekit.
- 6:33Have you tried this other STD
- 6:36accelerator? Have you tried Be Mad? Have
- 6:38you tried Get Things Done?" It's like,
- 6:39"What?" I think generally it's the right
- 6:41advice. You should try many. And also,
- 6:43Spekit is has not been maintained. And
- 6:46then, some of the like information you
- 6:47share with me, it's clear that they are
- 6:49changing things in Spekit without
- 6:51updating the docs. So, the original
- 6:53person building it is no longer with
- 6:55Microsoft since like, I don't know,
- 6:57since November when he joined Anthropic
- 6:59to work on MCP specifically. And since
- 7:01then, it has been in limbo for like
- 7:03several months. And I guess in the
- 7:05lately, like maybe in the last month or
- 7:07so, they started adding new stuff to it.
- 7:09Like, they rewrote all of the prompts
- 7:10into skills. I think that's a pretty
- 7:12interesting idea. I mean, all honestly,
- 7:14Anthropic says that the commands /
- 7:16commands and skills are kind of the same
- 7:18thing. And you see Spek ledger also
- 7:20Sorry, you see Opus or the agent shell
- 7:22loading prompts as if they are skills.
- 7:25>> commands are way more implicit. Like,
- 7:27you like this is what's happening.
- 7:29>> They've been completely If you go to the
- 7:31official Anthropic docs, commands and
- 7:33skills are the same thing. If you run a
- 7:36/command, it loads the the skill
- 7:38of that command. If you mention, we're
- 7:40going to run the Spek ledger inspect.
- 7:42>> Okay, so it's going to go and load it.
- 7:44>> You should it's the same. You just go
- 7:46slash okay, okay, fine. For the agent,
- 7:48the idea of slash command has been
- 7:49deprecated. It's no longer a thing.
- 7:51They're still available but
- 7:52>> I thought you were saying that that that
- 7:55the
- 7:57the steps in spec driven
- 7:59development specify the plans, the
- 8:02tasks, the implement is now skill in the
- 8:05sense that you don't actually have to
- 8:06explicitly type it, but it sounds like
- 8:09the command is just hooked up to the
- 8:10skill. Yeah, the agent sees the commands
- 8:13and can load the command on demand. And
- 8:15I I see this is very nice in in cloud
- 8:17code with spec ledger. I think the front
- 8:19matter of the command because the
- 8:21implementation of Claude Code and the
- 8:23implementation of GitHub co-pilot, they
- 8:26at the very tail end of spec it, they
- 8:27added this idea of like handoffs between
- 8:29agents. And they even have this concept
- 8:32of like in the because I watched the
- 8:33videos of how he uses it with within VS
- 8:35code with co-pilot and he has the chat
- 8:38interface and it's very easy for him to
- 8:39say, "Now I want to hand off to this
- 8:41next command." And at the front matter
- 8:43you have like if you run this command
- 8:44then the handoff it next is that that
- 8:46next step that you need to do. And I
- 8:49just copy that over and when I ask cloud
- 8:51code, you know, with the onboarding
- 8:52actually with spec ledger, which is a
- 8:54skill that we added when you in it a
- 8:56repo, if it's a new repo, it
- 8:58automatically triggers the onboarding
- 9:00skill. If it's a existing repo, the
- 9:02onboarding skill does an exploration and
- 9:04then suggests the principle for you. It
- 9:06will look at your code in the way that
- 9:07you organize things and then it will say
- 9:10based on like you know, don't repeat
- 9:12yourself or write everything twice and
- 9:14you're you're like it will it will take
- 9:16a couple of those patterns that it sees
- 9:18and it will say, "The principles that
- 9:20you might be aligned with are these."
- 9:22And that's the onboarding flow of spec
- 9:24ledger that that spec it doesn't have.
- 9:25But the same with in it, the in it
- 9:27onboarding flow because of these
- 9:29handovers between the prompts and
- 9:31because if you use with Opus 1 million
- 9:33token context with spec ledger, you get
- 9:35this very smooth like, "Okay, we've set
- 9:37up the constitution. Do you want to
- 9:39build a new What do you want to work on
- 9:41first?
- 9:42The point of a handoff is to refresh the
- 9:45context, right? To clear, right? So that
- 9:46you have But not necessarily. It's It's
- 9:49more like what's the next step, right?
- 9:51We We We've done the constitution. We're
- 9:53going to work on our first feature,
- 9:54right?
- 9:55>> the handoff is is is the is the sort of
- 9:57line in the sand between a specify and a
- 10:00plan and a Do you Do you have the Do you
- 10:02have the same steps in Spec Ledger that
- 10:04the specify a plan? Yeah, it's pretty
- 10:06much the same except one person that
- 10:08like to use Open Spec renamed one or two
- 10:10things. Like instead of
- 10:12instead of analyze, it's
- 10:15or clarify.
- 10:16>> It's clarify. Yeah. Or clarify is the
- 10:18same thing.
- 10:19>> Spec It is clarify. Then there was
- 10:21something that was verify for a
- 10:23cross-check. I don't know. He renamed
- 10:24some of them, which I wasn't a huge fan
- 10:26of. I was like, but people come from
- 10:27Spec It. But I think more people use
- 10:29Open Spec. And it's funny because I I
- 10:31explained everything to a friend of mine
- 10:33and then he announced this to everyone,
- 10:36"Oh, I'm doing a workshop on how to do
- 10:37spec-driven development." And like he I
- 10:39was like Yeah, that was it.
- 10:41>> I was learning it.
- 10:43Exactly.
- 10:44Anyway.
- 10:45>> Yeah, I've seen things like that before.
- 10:48It's not the first time.
- 10:49>> Question Question Question time for you
- 10:52is like if you have like a if you're
- 10:54working on a spec-driven project and
- 10:56there's a small change that you need to
- 10:57make, do you go through all the steps?
- 11:00Because there was like a bug in my AI
- 11:03guardrail uh guardrail thing. It was
- 11:06quite simple to fix. I was like, I could
- 11:08even fix it by hand, like a cave man.
- 11:10>> Yeah, absolutely. I've said that many
- 11:11many times that I
- 11:13that I have two ways of working with the
- 11:15agent, right? Often because I'm working
- 11:17on Spec Ledger using Spec Ledgers, then
- 11:19while I'm working, I see, "Hey, this
- 11:20doesn't work well." And then I ask the
- 11:22agent, "Can you figure out why
- 11:24it didn't do this? I expect you that
- 11:26this would happen." And then the agent
- 11:27says, "Well, the prompt said this and my
- 11:30context has that. So that's why I didn't
- 11:33do it. And then I say, "Okay, go file a
- 11:34bug, right? Go file a bug. We're going
- 11:37to address that. Uh let's continue with
- 11:38the work that we're doing." And then I
- 11:41will often open a second cloud uh for
- 11:43what you just described, like there's a
- 11:44small little prompt template issue or
- 11:47the command isn't outputting something
- 11:49that confuses the agent, causing it to
- 11:51to do something unexpectedly. So, I just
- 11:54open a second cloud session. I say, "Go
- 11:55create a Git work tree and and then
- 11:58using the Git work tree tool, and then
- 12:00address this bug." That's the bug
- 12:02number. Okay.
- 12:03>> Just in plan mode. [clears throat] Just
- 12:04in plan mode. No specifier, no spectrum
- 12:07development. You do it in parallel.
- 12:08Yeah, cuz it's cuz that's the next thing
- 12:10I wanted to moan about was that going
- 12:13through spec uh
- 12:15spec it's but you know, specify, plan,
- 12:18God, clarify. It takes so long. It takes
- 12:21so
- 12:21long.
- 12:22>> I used to I used to tell it like even in
- 12:24plan mode, I would use to also indicate
- 12:27like, "Let's look at the impact." If the
- 12:29bug sometimes it looks superficial, but
- 12:31I ask it, "Go and investigate how much
- 12:33of the code base needs to be modified
- 12:34and what is the huge like how how big is
- 12:36the impact of this bug?" And then it um
- 12:39and then I might decide that this is
- 12:41quite big, and I actually might want
- 12:43this to be more of an STD flow. So, you
- 12:45can easily evolve like going from a bug
- 12:48planning phase and say, "No, I'm going
- 12:50to make a a branch for it. I'm going to
- 12:52create user stories and and get a larger
- 12:54buy-in." And and the And the reason for
- 12:57going for this bug workflow is for
- 12:59speed, right? Just to get it done.
- 13:01>> And then the one of the things I did was
- 13:02I used to specify work on the bugs 1 2 3
- 13:064 5. And then it would create this
- 13:08massive fe- uh massive feature, like
- 13:10user stories, this bug needs to be fixed
- 13:12because as a user this and that, and it
- 13:13was this massive. And then I would it
- 13:16would never get done. Like I would ask
- 13:18other people, like, "Do you agree with
- 13:19the approach for these bugs?" But a lot
- 13:21of them were very straightforward. Like
- 13:23it's a very easy bug. Uh so, there's no
- 13:25need to get like a full alignment on
- 13:27that. So, so then I was like these
- 13:28branches affected too many areas, became
- 13:31too big. And I think that's the biggest
- 13:32danger with spectrum development is that
- 13:35you go in these long-lift massive
- 13:37feature branches. Which is great if
- 13:39you're starting from scratch.
- 13:41Which is a little bit less great if you
- 13:44like if you're bootstrapping something,
- 13:46the first commit you have to set up the
- 13:47whole repo and you have to build out an
- 13:49MVP and you have to have a you basic
- 13:51testing. So, you can do this huge flow
- 13:53and the branch can be quite big. You can
- 13:56try and cut it down like, "Hey, I really
- 13:57want just to have the web app with the
- 13:59minimal interface and and and and all
- 14:01that." Sometimes just even I want the
- 14:02CLI with this input schema and then I'll
- 14:05work on the web app later. So, it's very
- 14:07dangerous to to go into these massive
- 14:09feature branches that never land.
- 14:11>> That leads me to my next issue is that
- 14:15yeah, it's easy for the branch to get
- 14:17quite big. And then, of course, the PR's
- 14:20going to become massive if you ever had
- 14:22to approve PR's in your in your in your
- 14:25project. So, how do you Is there like a
- 14:28clever way to say like
- 14:31what we're working on here can't be more
- 14:33than a thousand lines of code or
- 14:34something like that? Cuz at the moment
- 14:36AI agents This is your judgment and you
- 14:39I don't think you can You need to cut
- 14:41it. Like what I do, I tell the agent
- 14:43looking at the number of user stories if
- 14:45it's above five, I don't know. And then
- 14:47I say, "Let's scope these out." Like
- 14:49flag them as like um
- 14:51a wish list or later. And it will just
- 14:53put it like Again, I think we we have to
- 14:56not be stuck up on the process cuz if it
- 14:59feels like I mean, I understand on one
- 15:01way you want to guarantee quality and
- 15:02you want other people to follow a
- 15:04process and and then people get confused
- 15:06if the process isn't clear. But I think
- 15:08the mistake that you're making is you're
- 15:10getting so hung up on the process. Like,
- 15:12"But hey, but how do I do this?" Well,
- 15:14it's still an AI agent. You can still
- 15:16talk to it. And I think one thing we
- 15:18learned is that with these AI agents,
- 15:21you just ask them. You say like, "Hey,
- 15:24there's something wrong with your
- 15:25settings." And it goes and finds the
- 15:26setting and say, "Oh, you're right.
- 15:28There's a setting here that I can change
- 15:30and it will solve this problem."
- 15:31>> I I mean, we're debating here. I can see
- 15:33what you're saying, but though I do feel
- 15:36the process should have a lot of a lot
- 15:39of all like it should get you there
- 15:41without without it should get you to
- 15:43where you need to go to without too many
- 15:45problems. And I do feel as you mentioned
- 15:47the feature branch being too big is is
- 15:49very very easy to happen. I think like
- 15:52One thing that works for teams
- 15:54very disappointing
- 15:55>> you do it, you will get you will not
- 15:57have that problem. I don't think I mean,
- 15:59you could argue that yeah, but if
- 16:01somebody news comes, he's going to face
- 16:02these issues. But I I think you need to
- 16:06let people do pilots and and experience
- 16:09the problems and then walk back from it.
- 16:11>> I mean, I can only tell you 100 times
- 16:13Kai the same things that I've said on
- 16:15this show about these feature branches
- 16:18and scoping down.
- 16:19>> I know my it's a bit irritating to hear.
- 16:21My But the Okay, another thing that I
- 16:24was a bit disappointed by is that Spec
- 16:26Kit has this auto Git commit hook. And I
- 16:30was like, "Oh, cool. So, when I do this,
- 16:32it just Git commits." And then when I do
- 16:34that, it it just Git commits. So, I So,
- 16:36I can roll back. To be honest, I never
- 16:38rolled back. And then when I looked at
- 16:39the Git history, I was expecting to see
- 16:41like an amazing like step-by-step about
- 16:44all my genius prompts that I I was
- 16:47giving. The
- 16:48If you look at the Git history of the AI
- 16:50God Rolls project, link below, whatever.
- 16:52There's no
- 16:53the Git commit uh message is just like,
- 16:55uh you know, Spec Kit blah, Spec Kit
- 16:58that. There's no no information in the
- 17:00in the
- 17:01uh Git Maybe that's just a a problem
- 17:03with the
- 17:03>> like I said, the people that are working
- 17:04on Spec Kit right now, I think they are
- 17:07not very high quality because they made
- 17:09changes, but they didn't update the
- 17:10docs. Like they don't show that this
- 17:12There's a lot of documentation lagging
- 17:14behind. And to be honest, this commit
- 17:16hooks are are are something that didn't
- 17:19exist. And right now my commits are
- 17:21really nice.
- 17:22I really love the the commits that I'm
- 17:24getting, but I'm not using any hooks.
- 17:26Okay, well, okay, it's I've got to I've
- 17:28got to say something.
- 17:29>> times stop using spec drift, right? I
- 17:31mean, I've said I've said it like it's a
- 17:32good first starter.
- 17:33>> didn't use that one first, but okay, um
- 17:36No, yeah, you use it first. You do a
- 17:37small little demo and then you find all
- 17:39the pains and and when you ask me all
- 17:42these questions, I was like, I'm not
- 17:43going to answer those questions anymore
- 17:45until you try something else because
- 17:47And I did And for the record, I did try
- 17:49Kyra and that was a terrible experience.
- 17:51It was terrible. It was so slow and it
- 17:54it kept on like
- 17:55uh you know, timing out and you know,
- 17:58you kept on having to baby sit it. Not
- 18:00cool. Not cool. And then yeah, the the
- 18:02last note I have and I've talked to you
- 18:05about but it for and I'm sure you're
- 18:06going to tell me to do try another one
- 18:08is is the spec drift problem where the
- 18:10specs just become unaligned. But yeah, I
- 18:12will Okay, I'll I'm going to try another
- 18:14one.
- 18:15>> again, I already I I said this several
- 18:17times on this on these calls as well,
- 18:19that it is really up to you to say to
- 18:21the like let's say that the constitution
- 18:23is kind of and the same with Google
- 18:25Conductor, right? They all have these
- 18:26project principles a concept.
- 18:28>> forgot about Google's. Yeah, you tried
- 18:30Google Conductor and one of the things
- 18:32is it like it uses this JSON file at
- 18:33least back like maybe between four
- 18:35months ago and and it has this idea of
- 18:37like how do you want to define like how
- 18:39do you work with your team? And there's
- 18:41a constitution, right? And and this spec
- 18:43drift problem that you mentioned, like I
- 18:45can't explain it
- 18:46several times. I said like, you can
- 18:47really create a constitution rule and
- 18:50say that every spec plan includes
- 18:53maintaining
- 18:55um
- 18:56a centralized documentation library.
- 18:59Let's say that because again, the spec
- 19:01folders, they will contain a history of
- 19:03all of the specs that you've been
- 19:05adding, but they're changing. Like even
- 19:07if I scope something out in my five user
- 19:09story spec and I say, let's not do user
- 19:12story six and write it down." And then,
- 19:14when I come back to it once it's merged,
- 19:16I will often have changed my mind. I
- 19:18will look back at user story six and I
- 19:19see I realize that's not really what I
- 19:21want because now I have something in
- 19:22hand and I realize that actually it
- 19:24should be different. And so, thinking
- 19:26that those spec folders have any
- 19:28meaning, I think it is wrong. And what I
- 19:31do now is I tell in my constitution,
- 19:34when you build your plan and you layout
- 19:36your tasks, one of the final tasks is to
- 19:39go back and update the documentation.
- 19:41That's one way of doing it. The second
- 19:43way is like we discussed as well is I'm
- 19:46actually having a library of end-to-end
- 19:48tests. And the user stories, they impact
- 19:50it. I I ask it to write a quick start.
- 19:53And if you look at the spec later
- 19:54constitution, the CLI, it has a rule
- 19:57that says the quick start MD that gets
- 19:59generated has to match the E2E test
- 20:03suite. So, because it's a CLI, it's very
- 20:06easy to for it to write down when the
- 20:07user runs this command, then this is
- 20:10what needs to happen, right? And that's
- 20:11my quick quick start MD, which is like
- 20:13it shows you how the sub command looks.
- 20:16It shows you what the arguments are and
- 20:18the CLI, what's the UX a little bit. And
- 20:20it basically translate very cleanly to
- 20:22an end-to-end test on on on Go lang,
- 20:25where it's like it builds the binary and
- 20:27then it writes a test things
- 20:31like do the assertions. And so, my quick
- 20:34start.md per spec in those folders, each
- 20:36time results in another changes into the
- 20:39E2E. And if I don't have the central
- 20:42docs of these are all the features and
- 20:43all the sub commands, I have a fully to
- 20:45E of all the features and sub commands
- 20:46that are officially supported, right?
- 20:48And if I run make E2E, it's going to run
- 20:51is the user still able to run SL, um,
- 20:53you know, in it. Is the user still able
- 20:55to run this and is this the in it
- 20:57behaving the way it is? And if I haven't
- 20:59if I have changed the behavior of my
- 21:01CLI, you know, because a new a new spec
- 21:03has landed that has changed the
- 21:04behavior, then any of those previous E2E
- 21:07tests will have failed, right? So,
- 21:08basically I have an executable Okay, so
- 21:10a specification.
- 21:11>> you essentially have a constitution to
- 21:13say like don't break the tests. The the
- 21:15tests are the source of truth. I say
- 21:16there's two ways. You can say like I
- 21:18have two in my in my constitution. I
- 21:20always say like when you write the when
- 21:22you do the research phase and and you
- 21:24basically convert the very
- 21:26product-oriented or user stories from
- 21:28the specification into an actual
- 21:30technical stack and down to the line
- 21:32what is the actual, you know, command
- 21:35that gets run, whether it be like I have
- 21:37a mono repo that is because I love spec
- 21:39kits in in mono repos or spec driven
- 21:41development because you go like we have
- 21:43the web, we have the CLI, we have the
- 21:45back end, and they're all interacting
- 21:46with each other. And so, the quick start
- 21:47is usually, you know, we we we run a a
- 21:50seeding script that set up the whole
- 21:51environment, and then we do this and
- 21:53that, and everything can be executed.
- 21:55So, that's one way. I have an executable
- 21:56kind of like centralized version away
- 21:59from the spec folders. Or the other side
- 22:01is I have a centralized docs because
- 22:03ultimately when you build a
- 22:05a solution, if it's a dev dev tool
- 22:07focused, you will usually have a docs
- 22:09website, right? Of like these are all
- 22:10the features and this is how this work.
- 22:12And so, part of the work that needs to
- 22:13be done is to go back and update all the
- 22:15docs accordingly, and then, you know,
- 22:18when that lands, it pushes that. That's
- 22:19why I think mono repos are great because
- 22:21you can have everything
- 22:22>> I'm totally team mono repo. I can't I
- 22:25was speaking to a colleague and he says
- 22:27that the on this enterprise project that
- 22:29he's on, they they practice hexagonal
- 22:32architecture. I had to look it up, but I
- 22:35know what it means like
- 22:37It's clean.
- 22:37>> things are split into domains. So, he
- 22:40was saying that like they're using spec
- 22:41kit driven development on on a on a
- 22:43project, and and for and for managers
- 22:46and BAs and stakeholders, they can
- 22:48generate user stories in a flash now
- 22:52thanks to spec kit. But the trouble is
- 22:54is that when you come to implement it in
- 22:56a hexagonal architecture, you
- 22:58essentially need to to cut like five or
- 23:00six PRs for for a feature that's
- 23:02crossing
- 23:03um, you know five or six domains.
- 23:06And as he says this is an absolute
- 23:07nightmare because spec
- 23:10STD doesn't help you there.
- 23:12Yeah.
- 23:14It's I've You should have an orc
- 23:17his hot take like what why isn't STD
- 23:20just called alignment driven development
- 23:23or something because that's all it
- 23:24really gives you right?
- 23:26>> Alignment between AI and you and then
- 23:28more multiplayer with other people. Yeah
- 23:31it's like a more multi like multiplayer
- 23:33driven development. To go back to your
- 23:35previous point like when I have a a poly
- 23:37repo I do actually in my work folder
- 23:39where I launch cloud I clone multiple
- 23:42repos. So I have my work directory. Yeah
- 23:44and then cloud has access to all of them
- 23:46and that's where some people like you
- 23:48you create a like a spec driven repo and
- 23:50then I'm not doing get submodules but
- 23:53it's close to it right? It's like this
- 23:55massive integration repo with modules
- 23:57sub
- 23:58In VS code you can use this workspace
- 24:00feature which was a lifesaver in the in
- 24:02a previous life. Because I used
- 24:04workspaces and it's a different thing
- 24:06though. Like I used it for well I used
- 24:08it for a different purpose I guess. You
- 24:10can have different checkouts and they
- 24:11both and they all and like in code
- 24:13spaces they come out in the workspaces
- 24:15folder and they and then you can see it
- 24:17nicely in your VS code. I mean it's not
- 24:20that much different to checking into it
- 24:22like one folder in a way. The one
- 24:24problem that I had was that a lot of the
- 24:27language servers of like typescript and
- 24:30node JS and the integration within VS
- 24:33code had issues with mono repos or I had
- 24:35some problems with my configuration. I
- 24:37remember one of the problems was the
- 24:39debugger like if I need to run just
- 24:41tests with a node JS debugger you could
- 24:44only configure the debugger at the root
- 24:46of the repo at the root of the project
- 24:48not root of the repo. So I had a mono
- 24:50repo with like five projects and then
- 24:53the debugger would like use the get root
- 24:56to find like to launch the the the and
- 24:59he couldn't. Actually, it wasn't get
- 25:00root, it was project root. So, that's
- 25:02where I had to use workspaces. So, every
- 25:04package had a different had a workspace,
- 25:06and then I could open in this project in
- 25:09workspaces, and then I could go to any
- 25:11of them and run debug this package, and
- 25:13then it would run the debugger attached
- 25:15to this Yeah, I'm glad you brought that
- 25:17up because like that's the typical thing
- 25:19if you don't use a mono repo, you have
- 25:20the different folders. And then does
- 25:23your bloody intellisense work? Does your
- 25:25code sense work between the different
- 25:27projects? Because often enough that
- 25:29someone's like saying, "I've got this
- 25:31work around." But like the you know, the
- 25:33typescript
- 25:35type checking or the or the python
- 25:37whatever it's called is broken.
- 25:39Interesting. Yeah, and
- 25:41Okay.
- 25:43Another thing before I forget cuz I I
- 25:44just made a note about it. Going back to
- 25:46speckid, on the topic of all the specs
- 25:49that you should look through, there
- 25:50there was a command. I didn't try it. I
- 25:52should have bloody tried it. And it was
- 25:54I think it called speckid archive. Have
- 25:56you Do you know what that command does?
- 25:58I
- 25:58I didn't have this yet. It's definitely
- 26:00one thing on spec ledger it's in the UI.
- 26:03But basically, the way it went, right? I
- 26:05use speckid. I added task management
- 26:07with with like um
- 26:09a task graph instead of a markdown
- 26:11because speckid was writing everything
- 26:12down in markdown and it was like trying
- 26:14to track dependencies and
- 26:15parallelization. That makes sense.
- 26:17>> I don't know that like like you have to
- 26:19do that.
- 26:20>> Does. Yeah, well well, I got rid of that
- 26:22by by telling all of my structure
- 26:25prompt. I noticed that well, they kept
- 26:28it.
- 26:28It's just an index. So, if you use spec
- 26:30ledger, please do instead of complaining
- 26:32and then never trying. Okay, I'm going
- 26:34to try spec ledger next with I'm going
- 26:36to I'm going to redo my projects in spec
- 26:38ledger and then I
- 26:40Yeah, so
- 26:40>> Do you really want me to do this? Okay,
- 26:42so if you use spec ledger, you download
- 26:44a single go lang CLI and it has all of
- 26:47the sub commands to do the spec info,
- 26:49create a branch, do all the things. It
- 26:51it up all of all your templates, and it
- 26:54can download and update the template.
- 26:55So, it's like a single thing. I don't
- 26:56know. Originally, with Speck Kit, it was
- 26:58like it created bash scripts. There was
- 27:00one Python command to do bootstrap. It
- 27:02was a bit bit messy. So, with with Speck
- 27:05Ledger, it will then if you init, it
- 27:07will ask you what agents that you use.
- 27:08And if you want, it will then launch
- 27:10Claude Code with a prompt, and it will it
- 27:13will trigger the um the onboarding
- 27:15process, which will launch an explore
- 27:18agent, or if you if you do it in a
- 27:20brownfield, it should launch an explore
- 27:21agent and then come up with a bunch of
- 27:23principles.
- 27:24>> I can just bring my code over. Okay. It
- 27:27should be. I'll try that. I forgot about
- 27:29the brownfield. I'm living in such a
- 27:31rosy life. But, one thing that I would
- 27:34say, like the idea of Speck Ledger was
- 27:36that you use the use the GitHub app in
- 27:38the repo, and the moment you push, the
- 27:40GitHub app will publish the markdown and
- 27:43parse out the tasks and generate a
- 27:45Kanban and generate a task graph to
- 27:47visualize what the tasks are, and then
- 27:49show the status of them, and then you
- 27:50could click on them and see the details.
- 27:52You using Beats under the hood, right?
- 27:53Well, originally, yes. But, then we we
- 27:56got rid of it because it's really a
- 27:58pain. Like
- 27:59>> One of the things So, you're back with
- 28:01Beats. Yeah, so I'll explain it again.
- 28:02So, basically, Beats uses a a task list
- 28:05at the root of your repo, right? And
- 28:07originally, I thought that's pretty cool
- 28:09because that means that when I'm running
- 28:11the command, like the the task get the
- 28:14the list of tasks, even if I haven't
- 28:16closed all of them in the next feature,
- 28:18so the feature has been merged and I'm
- 28:20working on a new one, it can see all of
- 28:21the tasks because it's a shared central
- 28:23one in the repo, not a per spec task
- 28:26list. Well, that turned out to be really
- 28:28painful because then they would create
- 28:30merge conflicts. And I mean, Beats
- 28:32always had this issue.
- 28:33>> the way the branches work. Okay, yeah.
- 28:35Yeah, and but Beats always had this
- 28:37issue. It it it tried to work around
- 28:38this problem by creating a sync branch.
- 28:41So, every time you would commit, then
- 28:43Beats would pushed the CLI would be
- 28:45triggered via a
- 28:47to go and update a single branch for
- 28:49everyone every other branch to be
- 28:51synchronizing into a single branch. So
- 28:53they created this thing within beats
- 28:55and it happens behind the scenes if you
- 28:57don't pay attention and it keeps
- 28:59propagating and recreating those
- 29:00branches if you if you are not able to
- 29:02remove all of the traces of beats. So it
- 29:04was creating a lot of conflicts, it
- 29:06wasn't able to handle the conflicts well
- 29:08and so one of the people that was
- 29:09working on spec ledger was like I'm so
- 29:11tired of beats and I will just take the
- 29:14the the idea but without running a demon
- 29:16just JSON L keep a task task graph, you
- 29:19know, take the structs from beats like
- 29:20look at the beats source code and do it
- 29:22per spec. That means if you run spec
- 29:24ledger from the root, it will find
- 29:26across all of the spec folders all of
- 29:28the tasks. It can do that. You can see
- 29:30all of the tasks across all of the
- 29:31specs. But if you run it within this
- 29:33feature, then you will only get the
- 29:35feature specs like this the task for
- 29:37that feature spec.
- 29:37>> sounds bloody sensible. And then the
- 29:40JSON L task list is in the folder so it
- 29:43will not conflict between each other.
- 29:44Because they're all like contained
- 29:46within the features so they will not
- 29:48fight constantly. So it's way way
- 29:50better. So that's why it was written.
- 29:52I understand I I I I understand the
- 29:54drawbacks of beats. I also I find that
- 29:56like some people are comfortable using
- 29:57beats or something like beats and then
- 29:59some people are definitely more
- 30:01comfortable marked out but that's
- 30:02another that's another separate topic. I
- 30:04wanted to to to to check in with you
- 30:07with
- 30:08with the
- 30:09the multi player what what what is your
- 30:11vision when it comes to multi player
- 30:13development
- 30:15with spec ledger cuz that's the ultimate
- 30:17that's the ultimate
- 30:19underscore with spec
- 30:21spec driven development is how the multi
- 30:24player works. Yeah.
- 30:26I'm I'm struggling to see it myself but
- 30:29I've just obviously just did it in one
- 30:31my mono repo with mono
- 30:34Yeah, exactly. If you don't have other
- 30:35people to work with you cannot see it. I
- 30:37mean
- 30:38I I saw the vision and when we all three
- 30:42during the week like I was in Hanoi, one
- 30:44person was in Saigon, another person was
- 30:46in Singa in Singapore, we would do we
- 30:48would be on a shared group chat because
- 30:50we're not a company. And we would just
- 30:53constantly like, "Hey, I specked out
- 30:55this thing." And then during a meeting
- 30:57we would make some notes and then we
- 30:58would go off and you know, create the
- 31:00different features that we want to work
- 31:01on. And then we could share very
- 31:03quickly. Yo, I I just had with my agents
- 31:06and with the contacts I provided I
- 31:08generated these user stories. Is there
- 31:09any concern? Does this look like a good
- 31:11approach to you guys? And then we would
- 31:13just quickly go through, put some
- 31:14comments, and say, "Hey, I think you
- 31:16misunderstood." And and the great thing
- 31:18is like I mentioned this before, I would
- 31:20do a user stories and then somebody left
- 31:22a comment and I was like, "This comments
- 31:25makes no sense to me whatsoever." And I
- 31:27would I was I was about to reply like,
- 31:30"That makes no sense." And then instead
- 31:32I use the Spec Ledger CLI and it
- 31:35basically, you know that the Specket has
- 31:37this clarify where you you take all the
- 31:39user stories and there's always edge
- 31:41cases and then it will go like, "There's
- 31:43still unresolved questions. How do you
- 31:45like these are the different ways you
- 31:46could approach them, right?" So this
- 31:48clarify command, yeah, in Spec Ledger
- 31:50this clarify command, we actually push
- 31:53the commit with all of the edge cases
- 31:55and then we let people comment and the
- 31:57clarify command tells the agent, "Great,
- 32:00you've looked at the edge cases in the
- 32:01documents. Go and look if anyone left a
- 32:03comment on any of these artifacts." And
- 32:06then the SL CLI will pull all the
- 32:08comments that is in the web web app and
- 32:10then pull them down and then look at
- 32:12what's
- 32:13>> down from from GitHub? Where are the
- 32:14comments by the way? Metadata. That's
- 32:17that's the one thing that is not stored.
- 32:19It's like, okay, the way that I see Spec
- 32:21Ledger is like the pull request view of
- 32:23GitHub where you leave comments on the
- 32:24PR except the PR doesn't organize the
- 32:26files in a nice way. Spec Ledger
- 32:28organizes the files in a way that makes
- 32:31sense for Spec Ledger development.
- 32:32>> this sort of view of the branch and then
- 32:35people comment on it inside a SpecLedger
- 32:38web application.
- 32:38>> like I I basically looked at how Jira
- 32:40organized documents. If you look at Jira
- 32:43at the top, you have like these
- 32:45artifacts have been created within the
- 32:46spec phase or the these artifacts have
- 32:48been created during the planning phase.
- 32:51These artifacts have been created during
- 32:52the tasks phase. And if And Jira
- 32:54visualizes the process, it says you're
- 32:56in the spec phase, you have artifacts
- 32:58there. You did not do the plan and
- 33:00research yet. So So the SpecLedger took
- 33:02that idea and visualizes it on a web app
- 33:05share it with other people and other
- 33:07people can see, oh this feature branch
- 33:09is already at the task phase. It has
- 33:10already done the user stories. It has
- 33:12already generated the research and it
- 33:13has already generated the task graph.
- 33:16That feature branch from Kai is still in
- 33:19the specify phase. That means that there
- 33:21are only artifacts related to that phase
- 33:23inside this branch. There has been no no
- 33:25research. There has been no task
- 33:27generation yet. So that's the idea.
- 33:29Compared to a PR where you just see a
- 33:31list alphabetically organized where S
- 33:33become comes after What is it? Research
- 33:36or P Q R S? Yes. So you would see like
- 33:38research.md and then you would see
- 33:40spec.md and you'll be confused because
- 33:42in the PR flow, if you look at the
- 33:44GitHub pull request view, it doesn't
- 33:46tell you you should read the spec first
- 33:48you should go look at the research
- 33:49because the research follows from the
- 33:50spec, right? So that's the idea of
- 33:52SpecLedger. It tells you that we have
- 33:55done the specification and in here's the
- 33:57spec and it has a little star because
- 33:58that's the core artifact of this stage.
- 34:00And and and that's the one you should be
- 34:01looking at. You read the user stories.
- 34:04And then if you want to like
- 34:06I was looking for screenshots, but I
- 34:08guess the the app is evolving a lot.
- 34:10Yeah, I mean honestly this could be one
- 34:12of the If it is it was a monorepo, but
- 34:14the problem is that people I work with
- 34:15didn't make it a monorepo. Um I I I want
- 34:19to put everything under monorepo. Docs,
- 34:20landing page, backend, CLI, everything
- 34:23public. But um yeah, I
- 34:25I haven't had a lot of time. I've
- 34:27re-architected the thing because it's
- 34:28super big.
- 34:30>> architecture aside, I would love to um
- 34:33capture the um um
- 34:35What I'm looking to see is like an an
- 34:38essence of what the workflow looks like.
- 34:39You know, Vincent comes along, comes up
- 34:42with the user story, Bob comes along,
- 34:44has a comment here, Jane comes along,
- 34:47have we thought about this? And then
- 34:50these are this is great. I had like a
- 34:52mock-up on speclager.io/
- 34:55is it demo? Yeah. Yeah, that's very old.
- 34:58The very first time I actually you can
- 35:00click on that and that's the cool thing
- 35:01about like sharing a little mock-up at
- 35:03HTML. So basically we asked, okay
- 35:08We had Cloud build a little mock-up UI.
- 35:11This is all fake data, all JSON static,
- 35:14all served from S3 behind CloudFront.
- 35:16And this was the this was the design
- 35:19that I wanted. So you can see we have to
- 35:21specify phase, you can collapse that.
- 35:23You can click on the little issues tab
- 35:25at the top where you will see your
- 35:26combine and you can see the the the
- 35:28issues tab. You have artifacts and
- 35:30issues and changes.
- 35:31>> I'm sorry, sorry. I I was going
- 35:33>> Yeah, and then you can switch that over
- 35:34to tree view on the top on the top right
- 35:36tree view. And that's that's what you
- 35:38would see in beats or in if you would
- 35:40use pal. So this is the web view of
- 35:42that. And then the changes to be honest,
- 35:44I hate that. It needs to be part of the
- 35:46artifacts. You I want the Google Doc So
- 35:49this is just the get diff view which to
- 35:51me makes no sense. If you use Google
- 35:53Docs and you work collaborative on
- 35:54documents, you can click on you you can
- 35:56see the versions of what this document
- 35:59and you can compare two versions. And
- 36:01and this whole changes being on a
- 36:02completely different area is is really
- 36:04bad and and that's one of the things I
- 36:05will change when I finally get around to
- 36:07do redoing the UI.
- 36:09Um
- 36:10Yeah, and then if you click you see you
- 36:11have the two phases. As you see in this
- 36:13case the in the workflow you see specify
- 36:15and plan has been completed. Although
- 36:17that the visualization is pretty bad.
- 36:19Uh oh, you're okay, you're on a
- 36:20different branch as me.
- 36:23Um
- 36:24Yeah, so you can see at which stage each
- 36:26of them are. When you go to spec, you
- 36:28can see the comments on If you click on
- 36:29one of them, spec.md.
- 36:31Click on the spec.md. Then you can see
- 36:34you can select text.
- 36:35>> Ah.
- 36:36Select some text. Not there, not in the
- 36:38comments. Yeah, there. Select some text.
- 36:40And then you can click comment, and can
- 36:42leave a little comment, blah blah blah.
- 36:45>> And then all of those comments and they
- 36:46are also threaded.
- 36:48I'm sorry. I'm glad you're working on
- 36:49this I'm really happy that you're
- 36:51working on this.
- 36:52>> on it anymore. We working on it like at
- 36:54the start of the year. Now I want to
- 36:56rewrite it because
- 36:58>> what what what what why are you getting
- 37:00distracted like is it cuz you're trying
- 37:01to just take home some money? Mhm.
- 37:04Like I mean I want to open source this
- 37:06whole thing. It's a Next.js app backed
- 37:08by Supabase hosted on Vercel, but I am
- 37:11doing a full review of the Supabase. And
- 37:14I honestly spent like almost 2 days
- 37:16asking Claude to help me understand how
- 37:19to properly architecture a Supabase app
- 37:22because honestly
- 37:23>> it's like it's just Postgres, isn't it?
- 37:25Yeah, it's a tier It's like a two-tier.
- 37:28It's like go back to stored procedures
- 37:29type of thing. You know, it's back to
- 37:31the '90s. What? Why are you architecting
- 37:33it like that? It seems a bit bizarre.
- 37:35>> Because that's how Supabase works. I was
- 37:38asking like how do I
- 37:39>> not depend on Firebase?
- 37:41It's I mean if it's an open source
- 37:43project, you can't depend on that.
- 37:45>> What? I make it easily I want to I want
- 37:47it to be super easily hostable. And
- 37:49Supabase gives you like a CRUD back end
- 37:52very quickly. But then when you look
- 37:53into it, it actually sucks to be honest,
- 37:56but Okay. Well, anyway.
- 37:59Make it make it AWS hostable. I mean AWS
- 38:02has a lot of stuff out of the out of the
- 38:03box. The database stuff I think is
- 38:05cheaper than it used to be. I know it's
- 38:07not free. Yeah. But With Supabase you
- 38:10get a free setup easily and also you can
- 38:12self-host completely. You can you can
- 38:13run it on localhost compose stack. So I
- 38:16don't like Supabase and that's why I
- 38:17spent 2 days trying to understand why I
- 38:19should be using Supabase and why I
- 38:20should like it. It's It's been
- 38:22frustrating. Like the very first I did a
- 38:24hackathon and they introduced Superbase
- 38:25and I hated it. I was like, what is
- 38:27this? This is from from client to
- 38:29database directly. Where is the
- 38:31the backend?
- 38:32The application layer, where is the
- 38:33logic? And then they built this thing in
- 38:36Superbase because I I was like I had the
- 38:38idea, I had the mock-ups of the UI and
- 38:40then they spent like two people junior
- 38:43to build it and um
- 38:45and they use Superbase and I was like,
- 38:46okay, I'll I'll guess I can I can try to
- 38:49come up with that.
- 38:50But now we all know that you're that was
- 38:52not the best decision. But what is your
- 38:54opinion of SQLite? That's another one
- 38:57that I I like to use locally, but on the
- 39:00cloud it's a different story. So SQLite
- 39:02is super interesting, uh but it doesn't
- 39:04do any like proper types in the in the
- 39:06backend. When I build a Terraform state
- 39:08backend, I support SQLite for like
- 39:10having a single node backend, right? So
- 39:12you can just run the Go language web
- 39:13server backed by an SQLite, set up
- 39:15Lightstream to have the write-ahead logs
- 39:18streamed to S3 and have point-in-time
- 39:20recovery very easily without doing like
- 39:22daily backups. So you can do a lot of
- 39:24really cool stuff with SQLite.
- 39:26But the moment I started saying I'm also
- 39:27supporting RDS and Postgres, then I
- 39:30having so many issues because you can't
- 39:33do it in SQLite. Like I I built like a
- 39:35repository pattern and and then
- 39:37integration and there's so much like the
- 39:39database schemas I was using uh Boon
- 39:41ORM, which is a Go language ORM that
- 39:44supports SQLite and Postgres quite well.
- 39:46And there was so many problems with
- 39:49supporting it. The minute you you have
- 39:51that requirement of or you have that
- 39:53like support other databases problem and
- 39:56you should earlier like if you want to
- 39:58make it easily hostable, I mean
- 40:00the hosting companies lock you in for
- 40:02one reason or another. There's also
- 40:04Turso that that they because SQLite
- 40:08license is very strange. Like they give
- 40:09you the software for free, but they they
- 40:11charge you for the testing framework.
- 40:13And then Turso I think rewrote SQLite I
- 40:16think in Rust. I'm not sure.
- 40:19And then they have three rights to worry
- 40:21about.
- 40:22Re-implement
- 40:24or reverse engineer the test suite,
- 40:25which is not available. And they made a
- 40:28company and then they make like they
- 40:29call it like Turso is a database at the
- 40:32edge. So you can have like a distributed
- 40:33SQL Lite database at the edge.
- 40:35>> Mhm.
- 40:36And they have some really cool ideas
- 40:37there. It makes me think why didn't
- 40:40Steve Yegge consider SQL Lite for Beats?
- 40:43Because it is very
- 40:45>> migrated.
- 40:47They migrated to
- 40:48>> to Dolt or something.
- 40:51But which is Because because it solves
- 40:53all of their like distributed Git
- 40:55branches problem that we just talked
- 40:56about. He had his demon, he had this
- 40:58whole Git sync branch approach. And then
- 41:01when they migrated to Dolt, I think they
- 41:03solved a lot of those problems. But I
- 41:04never like tried using it. Well, there's
- 41:07so many things to try. I guess I have a
- 41:09good a good problem. AI guardrails and I
- 41:13can I have the time to try different
- 41:15things. So I'm just going to try
- 41:16different things. I'm going to try more
- 41:18and more. Hey, did you want to talk
- 41:20about anything else? Did you want to
- 41:21talk about cuz got 10 minutes left. Did
- 41:24you want to talk about another security
- 41:26topic about the TanStack or because you
- 41:29mentioned it and I didn't really
- 41:31understand what the the problem was cuz
- 41:33I cuz in my mind you educated me on the
- 41:35PNPM supply security stuff.
- 41:38Oh, I got educated by someone yesterday.
- 41:41Oh no, two days
- 41:42>> And I thought to myself, if you use PNPM
- 41:43you're fine. No, but like
- 41:46Actually very interesting feedback I
- 41:47got.
- 41:48Okay, what was the feedback?
- 41:50Okay, so first off, of course it's been
- 41:52a a roller coaster ride, you know,
- 41:54because I don't know if we covered this,
- 41:55but we had the copy fail local privilege
- 41:58escalation Linux kernel bug.
- 42:01>> That was allowing people to assume root
- 42:03permissions if they
- 42:05access. So local then somebody some
- 42:08somebody reported a but a
- 42:10bug called copy Sorry,
- 42:13dirty frag, which researchers started
- 42:16patching up on an open source repo, so
- 42:18on an open branch. And an independent
- 42:21researcher saw the branch, and the
- 42:23branch name was like in the class of
- 42:25copy fail. So, that drew his attention,
- 42:27like what is this copy fail category
- 42:29branch? Like is that another local
- 42:31privilege escalation bug? And so, he
- 42:33independently wrote a Python exploit
- 42:36script based on the changes that he saw,
- 42:38and then he published it. And then then
- 42:41everyone suddenly was like, "Holy, this
- 42:43is breaking the embargo. There has been
- 42:45no fixes released. Like the kernel
- 42:47hasn't been released. The distributions
- 42:49haven't been able to patch anything. And
- 42:51now there's a live exploit, which is a
- 42:53zero day, that people can abuse." So,
- 42:56initially the reaction was like,
- 42:57"Embargo has been broken by somebody."
- 42:59Uh but then he clarified on the mailing
- 43:02list, "Sorry, guys. I just saw this
- 43:04branch. It drew my attention. It didn't
- 43:05know it was like It wasn't my intention
- 43:08to create a zero day exploit." And for
- 43:10me there was like, "I just finished
- 43:12rolling out new AMIs, cuz I do immutable
- 43:14infrastructure with the new kernel
- 43:16build, and now I have to do it all over
- 43:18again. And worse, there were no kernel
- 43:20patches yet." So, that's where I think
- 43:22we had this discussion. People started
- 43:23releasing remediation instructions,
- 43:26which is like you have to go and and
- 43:28inside the Linux kernel disable these
- 43:30modules if you don't use it, because
- 43:32that's your right now your protection
- 43:34against the LP. And the funny thing is
- 43:37that What What is Sorry, what is LP?
- 43:38>> Local privileges escalation.
- 43:41>> Okay.
- 43:42>> So, so the The funny thing is that the
- 43:44these remediation instructions are being
- 43:45distributed like agent prompts, right?
- 43:48>> Yeah. Because like you don't need to
- 43:50tell you don't need to like step one do
- 43:52this, step two do this. No, you you can
- 43:54just say give this prompt to your agent
- 43:56and ask it to go and fix things. So,
- 43:59originally when I was I was looking at
- 44:01fixing the issue, I have AWS SSM, so all
- 44:04of my Linux instances are available in
- 44:05an inventory, and I can give the agent
- 44:08access to it, and I say, "Find out all
- 44:10the Linux instance or find out all the
- 44:12instances that are running the AMI that
- 44:14we need to go patch." And then it goes
- 44:16and SSH into and and patches it up. Are
- 44:19you using AWS Inspector to sort of
- 44:21highlight the vulnerability or
- 44:24We have Wiz.io to to
- 44:27you know, inspect the runtime. It's kind
- 44:30of like intrusion detection and
- 44:31prevention.
- 44:33Okay.
- 44:33>> agents
- 44:34So, they Wiz gives us like a graph.
- 44:36Yeah. Okay. And does it know about
- 44:39these copy fails and these It does. It
- 44:42does. It It does highlight like Yeah, if
- 44:43I don't uh patch the the instance, then
- 44:46then we get an email, and we see a nice
- 44:48graph of why and the the the risk
- 44:50because if this is a Linux instance with
- 44:52no public endpoints, and it's in a
- 44:53private subnet, and it's usually fine. I
- 44:55mean, like it's a lower risk factor.
- 44:58I mean, do you have local users with
- 45:00shell access to
- 45:02>> No.
- 45:03So, that's why also we are a lot So, the
- 45:05risk is bloody low for you, isn't it?
- 45:07Yeah. Yeah, the risk is much lower, but
- 45:09but you want to patch these things
- 45:11because
- 45:12they do show up in
- 45:14in those tools. And for example, my
- 45:16Atlantis instance has a public IP that
- 45:18is reachable by GitHub webhooks. So, it
- 45:21will usually find and and highlight that
- 45:23one because it says, "Oh, this Atlantis
- 45:25instance is public IP like the EI
- 45:27because it shows the AWS resources, and
- 45:29it shows that there's an elastic IP
- 45:31publicly attached to it.
- 45:33>> if it's like a public IP running an
- 45:36endpoint, you can't run that sort of
- 45:38LPE, right? There's There's no way you
- 45:40can do it. I mean, like I do I do
- 45:42sometimes wonder like you were just
- 45:44saying that like, "Oh, I just patched
- 45:46AMIs, and then I have to do it all over
- 45:47again." I mean, you're doing a lot of
- 45:49work. No doubt. Actually, no, I'm not
- 45:51actually doing
- 45:52>> you I sometimes think it was like Do you
- 45:53Do you need to do it? You don't really
- 45:55need to do it, really, cuz there there's
- 45:57no risk, in a way. If the If you don't
- 45:59have This is defense in depth. This is
- 46:01in case there's an RCE, somebody gets
- 46:03like let's say that I had running an
- 46:05Engine-X and I'm using OpenResty with
- 46:07Lua scripts and there's an exploit for
- 46:10someone to get remote code execution on
- 46:13the host. But Engine-X no problem,
- 46:15right? Because I'm running it under the
- 46:16Engine-X web user in Linux and that user
- 46:19doesn't have any permissions. And then
- 46:21you have an LPE because you never put
- 46:23patch to copy fail. So then that that
- 46:25Engine-X user that has no permissions
- 46:27suddenly elevates the permission to
- 46:29become a root on that host and suddenly
- 46:32gets access to write to an EBS volume
- 46:34and and persist itself. Because I have
- 46:35like some nodes that like they're in
- 46:38ASGs and ephemeral, they get like
- 46:39rotated, but they do have like for
- 46:42example TLS certificates that are maybe
- 46:44with Let's Encrypt stored on the on the
- 46:46on a volume. And so the Engine-X web
- 46:48server doesn't have access to that
- 46:50volume. Well, if I'm using
- 46:52>> So I still I still think that I mean who
- 46:55uses Engine-X nowadays, but I still I
- 46:57still find that hard to imagine
- 46:59sometimes. Anyway, I'm not trying to say
- 47:01that there's no
- 47:02I'm not I'm not I'm not trying to say
- 47:04there's no risk, but I'm just
- 47:05>> you should look at the at the at the web
- 47:07report on how much of the web is served
- 47:09by Engine-X. I think it's still at like
- 47:1150%.
- 47:12Well,
- 47:13I still find it hard to imagine that you
- 47:15can get user access on an Engine-X
- 47:18server in a in a modern hosted system. I
- 47:21find it extremely hard to imagine, but I
- 47:24feel free I feel free to prove me wrong,
- 47:26listeners. I just I just hate how like
- 47:30every security chat group I'm on like
- 47:32hey, look at this copy fail thing.
- 47:34Screaming, you know,
- 47:36exasperated emojis. I like this is super
- 47:39interesting.
- 47:40>> dude, it's not going to be we don't
- 47:43really need to do that we don't need to
- 47:44drop everything and patch this because
- 47:47the risk is incredibly low. We don't
- 47:50have local users. You're forgetting
- 47:53You know the amount of products that I
- 47:55built that do not properly validate
- 47:58inputs. When you say you don't have
- 47:59local users, there's so many other
- 48:01things. Sorry, you're using? We use go.
- 48:04Okay, let's talk about the 10 stack 10
- 48:07stack a hack because it was very
- 48:09interesting that it it actually
- 48:12showed that um I know I forgot. Cuz I I
- 48:16said like one of the one of the things
- 48:18that came out of this is basically 10
- 48:20stack got published through the trusted
- 48:22OIDC and was published as a verified
- 48:25package. Meaning the package was built
- 48:28on hardware that was running in GitHub
- 48:31managed a software and it was signed and
- 48:34all of the verifications everything
- 48:35passed.
- 48:36It was published from official CICD
- 48:38pipelines from the project. Yeah, I mean
- 48:41package that's signed and has a
- 48:43vulnerability doesn't really surprise
- 48:44me, but carry on.
- 48:45No, but that's one of the more, you
- 48:47know, the whole
- 48:49security stance of a lot of these
- 48:51projects is like you don't use
- 48:52long-lived credentials because a lot of
- 48:54these attacks lately have been
- 48:56secret exfiltration, right? The Tree V
- 48:58hack, Aqua security, it was all about
- 49:01a package got executed, got access to
- 49:03secrets, and we got like tokens to
- 49:05publish. And I was like, why do you have
- 49:07tokens? Why do you have long-lived
- 49:08tokens? You should be using short-lived
- 49:10tokens that are only valid for the
- 49:12amount of time that you need to publish.
- 49:13So, if your whole approach to security
- 49:15was to adopt OIDC, that has now been
- 49:18subverted. I mean like not subverted,
- 49:20you always need to do defense in depth,
- 49:21right? So, one of the main things was
- 49:23that the 10 stack package was
- 49:25through OIDC, short-lived tokens,
- 49:28verified builders, signed package,
- 49:30published. So, So, that So, they had a
- 49:32good posture, but they still still got
- 49:34hit or something. Is that what you're
- 49:36saying?
- 49:36>> Yeah, they got hit because there was a
- 49:38way for somebody to do a PR, and so I
- 49:42think it's Team PCP, right? The what's
- 49:44it called? Hulut? Oh, yeah. Yeah. Mini
- 49:48Hulut from Team PCP, they were able to
- 49:51shy Hulut and mini shy who loot. So they
- 49:54were able to create a PR and the caching
- 49:58action of GitHub actions did not
- 50:01differentiate the branch that the cash
- 50:03came from. So they created another sort
- 50:06of get
- 50:08hack in a way through the cash thing or
- 50:10something. Yeah, and it's funny because
- 50:12lately somebody shared an article with
- 50:14we was like we are bad citizens if we
- 50:16are not using proper caching techniques
- 50:18because everyone just assumes that NPM
- 50:20GS and Python registries and Maven
- 50:23public registry all of this
- 50:25infrastructure is available for free,
- 50:26but it costs money. And so you are
- 50:30consuming a lot of compute whereas you
- 50:32should probably use a proper cash and
- 50:34don't redownload every package every
- 50:36time you need to do a run. And now
- 50:37caches are can be dangerous or it can be
- 50:40an attack vector.
- 50:41>> Well, if you do it again, all of these
- 50:43attacks are exploiting some very minor
- 50:46oversight in the way that things are set
- 50:48up, right? The option is there and you
- 50:51can use it, but if you do, there's a
- 50:53whole bunch of conditions that you need
- 50:55to do to protect yourself. In this case,
- 50:57if you're doing this type of caching,
- 51:00you need to make sure that the main
- 51:01release branch doesn't use the caches
- 51:04that are created and and and accessible
- 51:07to untrusted code. So they did they did
- 51:09a pull request from their code that they
- 51:11controlled and they were in the cash
- 51:13process part of the PR, it injected a
- 51:17poison package inside the cash. And so
- 51:19when the main release happened, the cash
- 51:22got pulled in and during the node
- 51:24install from the cash, node node modules
- 51:26installed from the cash, a hook was
- 51:28executed I think or something similar.
- 51:30I'm not sure exactly how they were able
- 51:32to trigger the poisoned package and that
- 51:34package then was able to do whatever it
- 51:37needed to do
- 51:38with full credentials.
- 51:39>> that to me, Vincent. Yeah, because
- 51:41that's in these cases people are like oh
- 51:43somebody of the maintainers had like a
- 51:45token or his account was not secure
- 51:47because this used to happen, right?
- 51:49People got hacked, they took their
- 51:51account got taken over or they were like
- 51:53how did somebody merge this? Like when
- 51:55when they talked about three V action,
- 51:58then somebody had approved a pull
- 52:00request that was pointing to a a commit
- 52:03that it was accessible from a fork
- 52:04repository. So so they were like why did
- 52:07they not like why did they approve this
- 52:09PR? And it's like usually because it's
- 52:11hidden between a bunch of other diffs
- 52:12and and things like that, right? So all
- 52:14of these are very interesting and and
- 52:15what they are trying to say is also that
- 52:17with these AIs studying these
- 52:19repositories and the way they are set
- 52:21up, they're finding these
- 52:22misconfigurations and these loopholes
- 52:24much faster than we have. Like some of
- 52:26these problems have been there for 20
- 52:27years but nobody saw. And now these AIs
- 52:29go through everything and they're like,
- 52:31"Hey, the cache is reused across
- 52:33branches. Exploit this." So a lot of
- 52:35this is now automated being found and
- 52:37then it's causing issues over and over
- 52:39again.
- 52:40Yeah, yeah, this is this is fascinating.
- 52:42Okay, but I need to take my kids to
- 52:44school. Thanks for your patience.
- 52:46>> There was one more thing about using
- 52:48package age. The package age like you
- 52:51said like if you use PNPM and you make
- 52:53sure that the package is over a certain
- 52:54amount of age should be sufficient to
- 52:57protect yourself. I got schooled on that
- 53:00two days ago but now I forgot. He says
- 53:01like I need to Wait, I I think I made a
- 53:04note. I tried to be really fast here. I
- 53:06hope I wrote it down. Well, or maybe
- 53:08we'll put it in the show notes in in the
- 53:10in the description how you got schooled
- 53:13with PNPM. You can't just rely on PNPM.
- 53:15Man, yeah. Well, I'm I'm I'm going to
- 53:17I'm actually looking forward to doing
- 53:19more security-related stuff. So I'm let
- 53:22I remember.
- 53:23>> I'm going to learn more. I saw the note.
- 53:25He said that if you set up your project
- 53:28to automatically update your
- 53:30dependencies even if you make those auto
- 53:33update flows make sure that they don't
- 53:35update until the package has more than a
- 53:36few days on the registry because then
- 53:38you hope it will have been detected, you
- 53:40will still be hacked. And the right way
- 53:43to do it is to use a GitHub secret a
- 53:46GitHub Dependabot feature, which through
- 53:49secret through security. So, Dependabot
- 53:52does a security scan on the packages.
- 53:54And then it will only say, "Hey, this
- 53:57package this dependency has a
- 53:58vulnerability." And only update those
- 54:00packages, not everything. So, a lot of
- 54:02these upgrade flows, they will just look
- 54:04is there a new package? Okay, upgrade.
- 54:07And then is an upgrade and all the tests
- 54:09pass? Okay, auto approve and merge. So,
- 54:11always our project is upgrading, always
- 54:13up to date. Your previous approach was
- 54:15missing that security scan which
- 54:17Dependabot gives you. Yeah, he's saying
- 54:19is is like never do that. Only upgrade
- 54:22if there's a CVE in a dependency and
- 54:24only or if you have really there's a a
- 54:27minor version patch that you need
- 54:28because of a new feature, right? So, use
- 54:30Dependabot, it will identify any
- 54:32dependencies that have a
- 54:34security vulnerability and it will
- 54:37update those. I've never heard someone
- 54:39advocating for Dependabot. Like usually
- 54:41everyone says use Renovate, use more
- 54:43advanced, you know, PNPM Because we're
- 54:46on a public repo and it's for free. So,
- 54:48he says, you know, you can get you get
- 54:49it for free. So, and it's like easy to
- 54:52set up.
- 54:52>> that that comes out of the box with uh
- 54:56with Dependabot or do you have to is
- 54:57that a feature that you need to enable?
- 54:59I think it's a feature. So, I did it's
- 55:00something he told me like we have a lot
- 55:02of those auto upgrade flows. Link to
- 55:04I need to run although my kids will be
- 55:06late. Thanks again, Vincent. We
- 55:07appreciate it. Boy,
- 55:09>> Okay. uh Bye-bye.