Latest / AI Infrastructure / Checking for AI guard rails
Transcript
- 0:00How does it go? How did it go? Did you
- 0:02have a play? Did you do what you said
- 0:04you would?
- 0:04>> To be honest, I I wanted to I did, but I
- 0:08kept on running into issues because the
- 0:11project that I had the std spec driven
- 0:14development in mind was a mapping
- 0:16project which has a ton of dependencies
- 0:18in order for it to work with the open
- 0:20street map. And I kept on having
- 0:22problems with Docker and
- 0:23>> yeah because I needed Docker to build
- 0:25the sort of dev container with all the
- 0:27with all the open street map.
- 0:29C++ boost balls. But let's not let's not
- 0:32talk about that because
- 0:35>> but I think it highlights a very
- 0:37important thing, right? Um you you
- 0:40speced it out. You had the user stories
- 0:42but you got stuck on technical problems
- 0:43like the
- 0:44>> No, I didn't even I to be honest I
- 0:45didn't even get that far.
- 0:47>> Okay, I need to revisit that.
- 0:50>> But today I was going to conveniently go
- 0:54around that way. I hear this echo.
- 0:57>> Let's Hold on. Let me just see if I can
- 0:58>> probably my my head too loud or
- 1:00something.
- 1:01>> Oh, echo cancellation.
- 1:02>> You mean you hear yourself? Maybe from
- 1:04my can back into the mic.
- 1:06>> Maybe it's me.
- 1:07>> Yeah, the I mean changing the topic cuz
- 1:10the spectrum I mean need to I I just
- 1:13I've had a few just abortive attempts to
- 1:16spectrum development. I just need to
- 1:18give it another try. So have you been
- 1:20doing it? What what is your status with
- 1:22spectriven development before we move
- 1:23on? So I've been working on a rewrite an
- 1:26open source version of the back end of
- 1:28Spec Ledger. So currently Spec Ledger
- 1:31public repo is a Golang CLI and the
- 1:34actual web app is a Versel hosted Nex.js
- 1:37app with serverside rendering and I am
- 1:40not a fan of that. Um I also prefer
- 1:43monor repos and I don't mind. I think it
- 1:46will be more interesting if the back end
- 1:47is open source directly within the CLI
- 1:50repository. So, I've been specking out a
- 1:53new version of of the spec ledger with
- 1:56organization support like multi-tenant
- 1:59from the get- go. So, you can organize
- 2:01projects per organization and then you
- 2:03have your private workflows of if you
- 2:06want to do openspec or if you want to do
- 2:07specit or if you want to do Google
- 2:09conductor
- 2:11>> then you would should be able to choose
- 2:12internally with like or you can build
- 2:14your own version of your of your
- 2:16templates. Basically what I want is I
- 2:18don't want the prompts the um the
- 2:21workflow to be embedded within the
- 2:23Golang CLI. I want the Golang CLI to
- 2:26like you know you authenticate and you
- 2:28pull it from your organization or maybe
- 2:31maybe there is the first version is is
- 2:32is is available so when you
- 2:35>> organization organization why do you say
- 2:37organization is that just to set set the
- 2:39context or something? Yeah, because I
- 2:41believe the main purpose of or the main
- 2:43problems that I'm trying to solve is
- 2:45stakeholder buyin and sharing access to
- 2:49the artifacts that need to be reviewed
- 2:51and a review environment. And then the
- 2:54second thing I want to solve is keeping
- 2:57your specdriven development projects
- 2:59aligned in terms of workflows so that
- 3:02you can version and pull the workflows.
- 3:04And then because specdriven development
- 3:06workflows are heavy-handed, you should
- 3:08be able to customize your workflows to
- 3:10have maybe less steps for your for maybe
- 3:12the data team doesn't want to do certain
- 3:15steps of it. So you could customize
- 3:17basically right now on Reddit I see
- 3:19quite a lot of posts about we had the
- 3:21problem of distributing skills within
- 3:22our organization so we build an internal
- 3:25skills registry which I think is already
- 3:27hold on
- 3:28>> does mpx skills.sh SH support private
- 3:32ones I wonder cuz that's the way I I use
- 3:35to distribute my own skills.
- 3:36>> Yeah, so Versel is very simple the NPX
- 3:39skills from Versel. I actually ported
- 3:42that TypeScript source code because it's
- 3:44open source into Golang specure CLI. So
- 3:47um so basically because I I don't want
- 3:49you to have to run multiple right beats
- 3:51is inside the Golang CLI. the skills is
- 3:54inside the Golang CLIs manage. So you
- 3:56just download
- 3:57>> building your own bundle package of AI
- 4:00tooling or something.
- 4:01>> Yeah, I mean you could argue that you
- 4:02take the best tool for the job. But I I
- 4:04think all of this is related like by
- 4:06adding the skill search and skill
- 4:08install capabilities directly to the
- 4:10Golang CLI of the spec ledger. You can
- 4:13also trigger it by the agent. So when
- 4:15the agent goes down to the plan phase
- 4:17and identifies a certain text tech like
- 4:19hey you're building a react it then
- 4:21actually goes and searches using the SL
- 4:23skills any react skills that we can use
- 4:26and then it proposes like I found these
- 4:28skills and the versel uh registry has
- 4:30metadata from snik about vulnerability.
- 4:33So the agent does that
- 4:35>> so it sounds like every organ
- 4:37organization needs to heavily customize
- 4:40this spec ledger workflow or how do you
- 4:43describe it? Yeah.
- 4:44>> Yeah. Because I think skills are like I
- 4:46don't know my experience with skills is
- 4:48that they have some skills I cannot
- 4:49share because they have some hard like
- 4:50some information that is private. So yes
- 4:53you can use the versel skills dot you
- 4:56know skills registry which is actually
- 4:57it's interesting because after porting
- 4:59it from Typescript over in Golang cloud
- 5:01told me a couple of interesting things.
- 5:03Apparently the way that skills are
- 5:05indexed by that tool is if you use it to
- 5:07install a skill.
- 5:08>> Yeah. Then it comes up on the
- 5:09leaderboard.
- 5:10>> And then it comes up on the leaderboard.
- 5:11It's through metadata to usage metadata.
- 5:14So, so my Golang CLI is also sending
- 5:17usage like every time you run the specs
- 5:18ledger CLI to install a skill, it's
- 5:21sending the same metadata like this
- 5:24skill was installed. Yeah. And then the
- 5:26second part is the skills live inside
- 5:28GitHub, right? There nothing else.
- 5:29There's no there's no no other registry.
- 5:31It's just simple. A skill is referenced
- 5:32by uh a git repository. There's a
- 5:35shortcut for the Versel skills which are
- 5:37served directly from the registry
- 5:38endpoint. So for every or pretty much
- 5:41every other skill, the npx skills CLI
- 5:44actually does a get clone of the repo
- 5:46and and then my Golang CLI is like
- 5:49trying to use GitHub API, but then there
- 5:51was a bug because it wasn't like getting
- 5:53all of the references like we get get
- 5:55the main
- 5:56>> API is a nice way to get some private
- 5:58stuff.
- 5:59>> Yeah. And it would be that's my goal
- 6:01ultimately. My goal is SL CLI, you know,
- 6:04and as part of an organization, you have
- 6:06your own skills that you can't make
- 6:08public and that you don't want the users
- 6:09data to be registered. So, so then you
- 6:12you should be able within teams to run
- 6:14the SL binary and then uh hide or or
- 6:16just have private skills as well on top
- 6:18of the Versel registry hosted skills.
- 6:20>> Let me just
- 6:21>> But the same with agents.
- 6:22>> I'm trying to find um how to share
- 6:25something. Where's the chat? There's
- 6:26chat here somewhere. Oh, yeah, it's on
- 6:28the right on the side. So this this this
- 6:30rewrite of spec ledger is really a big
- 6:32like a thing that I wanted because the
- 6:34way I envisioned it, it always had like
- 6:36the ability to create your own workflow
- 6:37within your organization and share those
- 6:38across repositories and that was never
- 6:40possible because of the way it was
- 6:41implemented. So I'm really excited about
- 6:43this rewrite but um I haven't been able
- 6:47to actually you know complete it.
- 6:50>> You can see what I'm writing here.
- 6:52>> Yeah, it's a big box with spec ledger.
- 6:53Maybe you want to zoom in because when I
- 6:55watch these um recordings on YouTube the
- 6:57it's always super small. I usually watch
- 6:59from mobile.
- 7:00>> Okay. So, um I I love how like in the
- 7:03last one I'm we we called this this
- 7:06whole thing
- 7:07um you know this whole STD thing a
- 7:11planning tool uh you know driving
- 7:13alignment and now this thing like you're
- 7:16doing a package a bundle of of necessary
- 7:21AI tooling or something is the way
- 7:24thinking I'm processing what you just
- 7:26said to me. Uh yeah it's more like um
- 7:29boilerplate management. So if you want
- 7:32to bootstrap a repository for a certain
- 7:34type of development it will you know
- 7:37with SL init you will get the full spec
- 7:40like spec kit workflow which is the same
- 7:42spec ledger workflow
- 7:43>> and then every prompt is telling the
- 7:46agent to hey if you run the SL binary
- 7:48you can find open comments that people
- 7:51has left on on these documents. you can
- 7:53find um issues that have been created
- 7:56and and task dependency graph and what
- 7:59is open what is available what's the
- 8:00definition of done has this been
- 8:02completed
- 8:03>> oh so do what are you using for like a
- 8:05beads visualizer
- 8:06>> no visual I yes sorry so when you push
- 8:09git there's a web hook that parses the
- 8:11JSNL
- 8:12>> uh and then visualizes into a conbon
- 8:15view and um a tree view in in the web
- 8:18app so
- 8:19>> Oh so so that's part of your your web
- 8:21app
- 8:21>> yeah that's the back end so the back can
- 8:23is the web app is is really so I I did
- 8:26um a little like brain
- 8:29storm with um I think it was with CHPT
- 8:31to identify if um Spec Ledger should
- 8:35really be a plug-in for backstage or a
- 8:40collection of plugins for backstage
- 8:41because I felt like backstage has is an
- 8:44internal developer platform that gives
- 8:46you a single pane to discover you know.
- 8:48>> Yeah, I'm not I'm not fan. Yes, I know a
- 8:51lot of people hate backstage because of
- 8:52past experience because it was hard to
- 8:54customize because it required you to
- 8:56write TypeScript plugins. I think a lot
- 8:58of those arguments and I'm very excited
- 8:59to challenge that opinion of me are gone
- 9:02with AI because now asking and also
- 9:05backstage has repositioned itself more
- 9:07as like a context delivery or like AI
- 9:10native tool and like remote MCP. So a
- 9:13friend told me like I think we discussed
- 9:14this last time. He said that having a
- 9:16remote MCP server unlike having all
- 9:18these skills inside repositories and
- 9:20distributed across machines is much
- 9:22harder to keep aligned than having a
- 9:24remote MCP. And a remote MCP is always
- 9:26up to date to the version that's
- 9:28deployed for everyone. So that made me
- 9:30think like actually um having this like
- 9:33this IDP as a context provider.
- 9:36Therefore specledger should really just
- 9:38be like a small AI workflow plugin to
- 9:41it. But at the same time, I don't want
- 9:42Spec Ledger to pre-require um uh
- 9:46backstage obviously because a lot of
- 9:47people don't want to run it. So that's
- 9:49why I was like, is there a way for me to
- 9:50build specger as a bunch of plugins and
- 9:53then mock the whole of backstage as just
- 9:57um you know, if you don't want
- 9:59backstage, you can just have like um a
- 10:01virtual one that just runs spec ledger
- 10:03only. Um but it looked like it's really
- 10:06not a good idea to do that. But it also
- 10:07surfaced very interesting stuff. So,
- 10:09backstage does have some document
- 10:12plug-in that basically uses MK docs to
- 10:14visualize the um the data and and I I
- 10:18was basically telling TGPD I feel like
- 10:20specledger is just um a like markdown
- 10:23render like a web app that renders
- 10:25markdown out of a git repository, right?
- 10:28But it's not really um because Specled
- 10:30Ledger gives you metadata about the
- 10:31ability to to leave comments. It also
- 10:34visualizes specifically the workflow
- 10:36because that's a common problem with
- 10:37specd driven development is like I've
- 10:39done this what's the next step I
- 10:40remember our early discussions every
- 10:42single time was like what's the next
- 10:44step so so spec ledger visualizes that
- 10:46process so it's it's a very customized
- 10:49um for the spec spec development
- 10:52>> and then how does GitHub fit in with
- 10:53this
- 10:54>> GitHub right
- 10:56>> is git is the source of truth right but
- 10:59you're assuming GitHub is there and
- 11:01going to be running like your CI/CD and
- 11:04the rest of it, right? I mean, just to
- 11:06build a complete picture here,
- 11:07>> um, I mean, Git is a source of truth.
- 11:10Specled Ledger just generates documents
- 11:12that are version controlled in git and
- 11:14the spec spec web app is currently only
- 11:17built for GitHub web hooks, but it could
- 11:20support any git version control system.
- 11:22Uh, and just visualizes the contents of
- 11:24your git repository also across
- 11:26repositories, right? um as an
- 11:29organization then you should be able to
- 11:31like one one other feature that specled
- 11:32ledger I feel must have is the ability
- 11:35to search like is there any like have we
- 11:39if this uses story somewhere is there
- 11:40like like you know to index and find and
- 11:42source like what what you get cuz
- 11:44basically it's kind of like a knowledge
- 11:46base like what do you need if you if
- 11:48you've replaced confluence with kit you
- 11:50need still the ability to see the
- 11:52documents in a nice uh printable view
- 11:54mobile so it's possible to you know have
- 11:57a mobile version to to easily review and
- 12:00look at documents. Um that's really bad
- 12:02on the GitHub interface because that's
- 12:03not what it it's written for, right? And
- 12:05uh the search functionality, right, with
- 12:07Confluence, you can very easily go and
- 12:09find related documents and things like
- 12:11that as a KB. I mean, in the end, it's a
- 12:14bit like Obsidian then, right?
- 12:17Creating my gosh, I'm really messing
- 12:18this up. Okay, so I think I I I
- 12:21understand where you're going here. I I
- 12:23think all this tooling
- 12:26um has its place and I think it's kind
- 12:31of interesting. But I just I wanted to
- 12:34just contrast this with with my reality.
- 12:37And my reality is like
- 12:40um
- 12:42I'm usually like in a in a in a team. Oh
- 12:45my god, what happened to my you know I'm
- 12:47usually in a team. I mean this is great
- 12:49for for alignment, right? But I'm I'm in
- 12:52a team with like a couple of other
- 12:54people. We're all generally using um but
- 12:58that's you know something like claw code
- 13:00or codeex or whatever
- 13:01>> or open code
- 13:02>> or even open code. Yeah. Well, we all
- 13:04Okay, let's let's see if I can draw a
- 13:06picture that's a bit more
- 13:07representative.
- 13:08>> There's a massive CDK terrain release
- 13:09coming by the way. Lots of fixes.
- 13:11>> Nice. like we we all have like a our
- 13:13individual uh uh
- 13:18sessions whatever and um and we all I
- 13:21don't know working on different sort of
- 13:23things
- 13:26I I guess I guess in reality this in a
- 13:29proper software project this turns out
- 13:31to be uh PRs I suppose
- 13:33>> yeah which is also I mean I mean as
- 13:35you're drawing arrows which is also a
- 13:37feature that specledger built which is a
- 13:40a session like um indexing engine,
- 13:43right? Every every time you do a commit
- 13:45spec ledger CLI is um triggered as a
- 13:49hook. And to be honest, right now that's
- 13:50not very configurable. It's a bit like
- 13:51beats. It's it's like a virus and it
- 13:53stalls themselves. But basically, when
- 13:55it detects a get commit, it will capture
- 13:57the human um conversation of what led to
- 14:01that commit inside. Yeah, it does.
- 14:04>> Okay, this is what I was looking for. A
- 14:06a get commit.
- 14:07>> That's how it has been implemented. I
- 14:09don't know like I let somebody else
- 14:11decide what's the best integration
- 14:12pattern.
- 14:13>> So it grabs the the transcript or
- 14:16>> it grabs the delta. So every like every
- 14:18time um it does it uses like a
- 14:22sophisticated regular expression
- 14:25uh and it it identifies um which context
- 14:29that you're on like for example are we
- 14:31working on this spec or that spec which
- 14:33branch is he on um and so on. And then
- 14:36it will capture all of the conversation
- 14:38since the last capture point uh and then
- 14:41put it inside superbase. And then the
- 14:43idea is then to surface it, right? To be
- 14:45able to see this comet was really good
- 14:47or this like this whole feature went
- 14:49wrong. So every single like ultimately
- 14:51all of the messages that led for one
- 14:54feature spec are all tagged by the
- 14:56feature spec and we can break it down by
- 14:58commit to see how did the user come up
- 15:00to that commit. Um but that part of
- 15:03actually mining the data displaying the
- 15:05data is not implemented.
- 15:07>> So we do have like data being in in
- 15:10superbase. I have never looked at the
- 15:11table. Somebody else implemented it. I'm
- 15:13not sure if this is the best way like
- 15:15one of the approaches we thought was
- 15:16like why don't we just you know just
- 15:19drop the whole session in inside S3 or
- 15:22something like that like obviously with
- 15:23the consent. Um yeah, but um yeah,
- 15:27that's not really there, but that's
- 15:28definitely one of the things that we
- 15:29want
- 15:30>> that we want to expand on.
- 15:31>> All right, cool. Cool. Cuz like I
- 15:32there's a few things that that that come
- 15:34to mind.
- 15:35>> I keep saying the same thing because I
- 15:36mean I also keep saying the same thing,
- 15:37but you shared Simon Willis like
- 15:39visualization of how you capture your
- 15:41sessions and put them into an HTML
- 15:43format.
- 15:44>> Yeah. I'm just revisiting it. I'm just
- 15:46revisiting it because there's still some
- 15:48questions in my mind like um
- 15:52like the PRs like like like guard rails
- 15:57here like like like things I think are
- 16:00quite sensible to do like like how how
- 16:02would you like limit the size of the PR
- 16:05because I mean I I mean I'm guilty of
- 16:06doing this myself when I'm I'm and I'm
- 16:09in a bit of a session with Claude or
- 16:11Codeex and my PR that I just created is
- 16:14huge like wouldn't it make sense?
- 16:15>> I mean this is a common problem with AI
- 16:18development, right? That that it's very
- 16:20hard for humans to review. I I honestly
- 16:23think with
- 16:25that we have to trust our CI/CD and our
- 16:28tests more that we cannot review the
- 16:30code. Um but I also I have two ways of
- 16:34working with with uh with the code,
- 16:35right?
- 16:37Um
- 16:39I have smaller PRs when I tend to use um
- 16:42cloud plan mode and I do that when I and
- 16:45so no spec driven development when I'm
- 16:47working on like an issue that was
- 16:49created. So I have two ways two work um
- 16:52streams. One is specd driven development
- 16:54creates the issue list next issue ready
- 16:56you know based on the spec and the user
- 16:58stories and everything that we agree the
- 16:59humans involvement is the review of the
- 17:01user stories and the validation that the
- 17:03end to end thing work and the user story
- 17:05is is implemented as is exe executable
- 17:08specs should be the ideal proof that it
- 17:10works we don't care about the code
- 17:11>> okay I don't think I've this before but
- 17:13that makes a lot of sense the human okay
- 17:15let me just let me just pen that before
- 17:18I lose it
- 17:21the human does the um I'm I send you the
- 17:24link in the chat by the way. Um a story
- 17:27review. So that comes I I'm not too sure
- 17:30what the the whole cycle looks like. And
- 17:32then I'm looking for a I don't know an
- 17:36AI. The AI does does the um or the agent
- 17:40does the the the code review is what
- 17:43you're saying, right?
- 17:44>> Uh
- 17:47code review. I mean awesome. I think
- 17:50right now people are going back and
- 17:52forth this a lot between because some
- 17:54people like I mean back in January a lot
- 17:55of people step up and says I'm an
- 17:57engineer that have like senior engineer
- 17:59lots of experience I don't look at my
- 18:01code anymore right lots of people said
- 18:03that back in January I think people now
- 18:05in May are coming back from that a
- 18:06little bit and saying yeah you know we
- 18:08did that we we didn't look at our code
- 18:10it wasn't really good we found like so
- 18:12much duplicated functions so much uh
- 18:15>> I don't know like running situations
- 18:18>> so you were just telling me I mean sorry
- 18:20I was maybe half listening because I was
- 18:22trying to
- 18:24>> cuz I was telling you that the human's
- 18:25involvement is purely and I don't user
- 18:27stories yeah on the user stories and
- 18:29then validating that like I mean you
- 18:32have you should have automated
- 18:33validation like we talked and endlessly
- 18:36about that um how do you really have
- 18:39fully automated tests and the ability to
- 18:41bootstrap a full ephemeral environment
- 18:42and validate everything works exactly
- 18:44the way you expect or how you have
- 18:46executable specs uh and then on the
- 18:49other ite you have the the code. Um,
- 18:53right now people are going crazy, right?
- 18:55You have agents reviewing agents. My
- 18:56friend was like that's that will never
- 18:58work. Agents will always say that they
- 19:00are doing the right job. But to be
- 19:01honest, you can do adversarial reviews
- 19:03and agents can be very critical. You can
- 19:05create dedicated skills that focus on
- 19:08identifying security issues and so on.
- 19:10There's a lot of startups right now with
- 19:12huge amount of investment um for
- 19:16for um you know for AI review systems,
- 19:20right?
- 19:20>> Yeah. Yep. So I mean I mean that's the
- 19:23next thing I wanted to get on to with
- 19:26Okay. So so I'm just I'm still trying to
- 19:28imagine this PR. So So you still have a
- 19:30huge PR and you just basically rely on
- 19:33your your CICD and your your a your
- 19:37adversarial agents to review it. But
- 19:39like and and then as you said like for
- 19:42security you also have a particular
- 19:44agent to to
- 19:45>> it doesn't all have to be agents right I
- 19:47mean right now you have very decent like
- 19:50Golang evaluators that say complexity of
- 19:52function is too is is too
- 19:54>> yeah like go sec and go
- 19:57um go lint something whatever
- 19:59>> yeah it will say you have three layer
- 20:01like you you this is there's a nested if
- 20:05branches um this is too complex uh fall
- 20:09is not clear.
- 20:10>> So there's some deterministic uh things
- 20:13you can run over it.
- 20:14>> Also test coverage even if you want to
- 20:16consider it as a valid metric.
- 20:19Um that will say like I don't know I
- 20:22really don't like test coverage after
- 20:24you know the problems I had with with AI
- 20:26because of the amount of refactoring you
- 20:28have to do and how I feel tests fail
- 20:30when you have to do massive refactoring.
- 20:32But maybe it's a it's a skill issue of
- 20:34initial planning. I I I I I'm I'm I'm
- 20:38not a fan of test coverage. I feel like
- 20:39almost ripping that out just because I
- 20:41don't want to encourage it because like
- 20:42sometimes I think the the Go core team
- 20:46they basically
- 20:48uh they have very light uh testing in a
- 20:51way. Their coverage is not for the full
- 20:53Golang source code. They they they test
- 20:56where they think it's meaningful to
- 20:57test. And I noticed that in my
- 20:59personally in my own projects when I get
- 21:00AI to do um you know try to get 100%
- 21:04coverage like it like completely
- 21:06re-engineers my my source code and
- 21:08completely uh you know creates these
- 21:11interfaces just so that they can
- 21:12properly be tested and it m it just
- 21:15balloons the source code in my it makes
- 21:17the source even simple projects kind of
- 21:19difficult in my opinion but I know it's
- 21:21probably better engineered but I just
- 21:23for a hobby project I just hate it. I
- 21:25had an interesting experience very early
- 21:26on when I started learning Golang. Um I
- 21:29was writing small little projects back
- 21:31like 10 years ago and I was trying to
- 21:34write go tests and it wasn't going very
- 21:36well and I ended up rewriting a lot of
- 21:38my like I implemented all the stuff and
- 21:40then I was like okay now let me write
- 21:42some tests like I haven't done that
- 21:43before. Uh I start writing tests and I
- 21:46can't test this thing. I can't test that
- 21:47thing because you you can't like execute
- 21:49it individually. you can't you you need
- 21:51to like the function needs to uh you
- 21:54know maybe the interface must be what
- 21:56you call it inversion of control must be
- 21:57injectable must be this type of patterns
- 22:00and I I was like wow after I finished
- 22:02writing the test I feel my code is so
- 22:03much nicer I've like and I go to my
- 22:06colleague and I say like well I just
- 22:08learned how to write go test it was
- 22:09pretty cool I rewrote all of my original
- 22:11code and he was like if you have to
- 22:12rewrite your original code to write go
- 22:15test that's probably not a good thing
- 22:16and I was like to be honest I believe
- 22:19the original code was really bad and I
- 22:21believe rewriting your code to implement
- 22:22the tests made it a lot better like
- 22:24you're just saying oh it creates I I I
- 22:26think the fact that you had trouble
- 22:27adding the tests or the AI ask you to
- 22:30you know to re interfaces because it was
- 22:32all tightly coupled and and not possible
- 22:34to test again where do you want to do
- 22:36the tests do you want to do unit test
- 22:38>> I think on on a on a client project I
- 22:40would have done the proper thing it's
- 22:41just it's just I find I find it's uh I
- 22:46was just trying to make a facicious I
- 22:48was trying to make an argument that when
- 22:49you go to 100% uh when when you want to
- 22:52achieve 100% coverage, weird things
- 22:54start to happen in my opinion.
- 22:56>> Yeah. No, like every metric once it
- 22:58starts to get gamed, you're not getting
- 22:59what you want. And I also had a
- 23:01colleague like who said my my coverage
- 23:03is super high, but that's usually that's
- 23:05like you have some organizations where
- 23:07you can't have more than X percentage of
- 23:09coverage. Can't be more than 70%. If if
- 23:12it's more than 70%, you're you're you're
- 23:14you're writing your test to technical
- 23:16implementation details. So I think
- 23:18there's there's some assumptions that I
- 23:19think that we need to capture here
- 23:21because I I heard a story where there's
- 23:24an organization that's using Claude
- 23:25everywhere and and in some of some of
- 23:28the you know the different teams the
- 23:30different skill levels and some people
- 23:33are basically producing like
- 23:36uh artifacts using claude or codecs
- 23:39which maybe don't go through a CI/CD you
- 23:42know like like like how do you prevent
- 23:44claude from like publishing to a public
- 23:47site or something like this these sort
- 23:48of things. Um like I feel I feel like we
- 23:53this is quite a rosy situation where
- 23:55everyone's like
- 23:56>> I disagree. I mean if you're telling me
- 23:58that the organization doesn't have
- 24:00proper uh you know development practices
- 24:03and people are like I think the biggest
- 24:07issue that people have with AI messing
- 24:09up things is that they are not engineers
- 24:11and they have never worked in in an
- 24:13organization that actually follows
- 24:14proper sane engineering practices.
- 24:17>> But this this is the
- 24:18>> having separate environments not getting
- 24:20giving access to production going and
- 24:22promoting artifacts and as you increase
- 24:24the trust. I mean a lot of these stories
- 24:26that I hear about AI is because you're
- 24:28not following the most basic DevOps or
- 24:31security practices that even the
- 24:33smallest startup has.
- 24:34>> Well, I mean I could come up I can come
- 24:36up with some scenarios like for example
- 24:39like for like you you in a in a even in
- 24:42a a small or larger organization you
- 24:44might have people who are like um you
- 24:48know working in finance and things like
- 24:49this and then they want to come up with
- 24:51some sales report. I mean to them this
- 24:54this whole engineering stuff is
- 24:56completely foreign to them and then they
- 24:58end up
- 24:59>> but but it is a problem where where
- 25:01you're not like an AI engineer or an AI
- 25:04um what what would you say an AI agent
- 25:06is basically need to be on boarded onto
- 25:08the systems right and the boarding
- 25:11practice must um must be solid if you do
- 25:14the same with a human you could argue
- 25:16that like you tell a human it's going to
- 25:18do it's going to make a mistake but you
- 25:19tell it not to do it again it's going to
- 25:21do it again and AI agent doesn't really
- 25:23learn unless you have like this like
- 25:24memory system or or so on, but like it's
- 25:26still going to keep making the same
- 25:28mistakes. I I would accept that as an
- 25:29argument, but still it's a problem with
- 25:32access. If you're saying like, oh,
- 25:33there's a finance guy now gets wants to
- 25:36get cloud access because um it's all the
- 25:38rage and he believes himself um an
- 25:40excellent engineer because AI tells you
- 25:43this is so easy and let's do it and then
- 25:44it just goes and publishes um a
- 25:46financial report which would be private.
- 25:49Uh I can agree with you that that that
- 25:51happens. Um and and we actually have a
- 25:54DevOps day talk about that last year in
- 25:56Singapore where if your organization
- 25:59doesn't have a proper policy on AI
- 26:00adoption already a year ago they were
- 26:02saying like well how are you going to
- 26:04govern um AI like if if you don't have a
- 26:07policy people are going to use their own
- 26:09subscription and their own tool.
- 26:10>> So for example the finance or the
- 26:11nontechnical people in an organization
- 26:14let me get this straight. So you're
- 26:16saying that you wouldn't give them
- 26:17access to to claude on AI tools?
- 26:20>> No, no. Like the talk that I refer of uh
- 26:23DevOps day Singapore last year
- 26:25explicitly said that as an organization
- 26:27you have to have an AI policy. You have
- 26:29to put in place um the contracts and
- 26:32also you have to give them access you
- 26:33have to give them a proper way to access
- 26:35it. That includes through a company
- 26:37subscription um with limitations that
- 26:40like will
- 26:42um you know first of like guarantee that
- 26:45there will be no training on this
- 26:46internal data. No internal data will be
- 26:48used by the inference provider. So
- 26:50that's a proper contract between the
- 26:52company and the um and the inference
- 26:55provider. and and then other suggestions
- 26:57that was in that talk which I'm off the
- 27:00top of my head was like to actually have
- 27:02a router that looks at the AI usage. Um
- 27:06basically everyone is using AI through
- 27:08this router and then that gives you a a
- 27:11layer of accountability and also ability
- 27:13to block things.
- 27:14>> So on on that topic how do you how do
- 27:16you route all the the AI network
- 27:19requests through a router? This is
- 27:20something I I I I was meaning to look at
- 27:24today. I I
- 27:26>> so I can I I could find you that talk
- 27:28because he he gives an example. It's a
- 27:29year old so obviously a lot have
- 27:30changed. Um and also funny I think we
- 27:33mentioned this in the previous call as
- 27:34well that a lot of these routers are
- 27:36actually like stealing um your your
- 27:39credentials and like trying like crypto
- 27:41wallet stealers and so on. So you have
- 27:43to be careful which one you use. But but
- 27:47I think another important part of that
- 27:49aspect is or another important aspect of
- 27:52that is something that's really
- 27:53happening a lot right now with agents
- 27:55messing up is like agent like you just
- 27:57mentioned guard rails right I talk
- 27:59frequently with George who works at
- 28:01stackpack and they kind of pivoted
- 28:03towards more of aentic uh because they
- 28:05are focused on devops tasks so they're
- 28:07focused specifically on how do we put
- 28:10like a harness that catches
- 28:13damaging actions and then uh stops them,
- 28:16right? I think there was recently an
- 28:18announcement from AWS or uh they said
- 28:20like hey here we give you a sandbox was
- 28:22it I think Verscell announced agent
- 28:24sandbox where they say now you give we
- 28:26give you a full sandbox and um we
- 28:28guarantee that the agent cannot do
- 28:29anything anything silly. I'm not sure if
- 28:31it was Versel or AWS. There's been a
- 28:34whole there has been a few announcements
- 28:36like I I thought I was of the opinion
- 28:38that AWS Bedrock had had a lot of stuff
- 28:42in this regard, but I'm I'm just talking
- 28:44up my ass really.
- 28:45>> I remember seeing an announcement
- 28:46somewhere on on on on um LinkedIn being
- 28:49like we we guarantee you that the agent
- 28:52cannot do something damaging.
- 28:55Like in my previous client, I was I
- 28:57think I was whining and bitching about
- 28:59it with you, but like it was heavily uh
- 29:01limited in the sense that we could only
- 29:03use it in co-pilot
- 29:06and I guess it was a bit for for
- 29:08fortuitous, but we were using uh dev
- 29:11containers. So when we were using dev
- 29:13containers, we were using co-pilot and
- 29:15we're using AI and dev containers and
- 29:17everything was very was sandboxed by
- 29:19default like without us even thinking
- 29:23about it. Um so
- 29:26of course
- 29:28of course most people who who using AI
- 29:31are not really using it in a sandbox
- 29:33right at this point in time. I I know
- 29:35maybe clawed code work tried to get
- 29:38there
- 29:39uh but like most people who who who just
- 29:42run clawed code are don't have a proper
- 29:44sandbox really especially when they when
- 29:46they go you know dangerously skip
- 29:48permissions or something.
- 29:49>> Yeah I think
- 29:51but so Claude Code added a new
- 29:53interesting thing which is auto mode.
- 29:55Um, so originally when you did a plan,
- 29:57you had the option to go auto accept
- 29:58edits and then it would still constantly
- 30:00ex ask you for permission because I I
- 30:02don't use I don't run dangerally skip
- 30:04permissions. I am the bottleneck. When
- 30:06it asks me a comment, I haven't
- 30:07whitelisted. I have to approve it or
- 30:09allow listed. Then now it has this allow
- 30:11mode which I've been trying to use a
- 30:13couple of times and successfully
- 30:15sometimes but lately I actually kind of
- 30:17avoid it. So auto mode is a separate
- 30:19eval agent that like a small little
- 30:22model that does a quick eval like is
- 30:24this a dangerous activity or not and it
- 30:26rejects things because it says things
- 30:28yeah but that's kind of like affecting a
- 30:30third party system and we should not be
- 30:32affecting third party system like it's
- 30:34very uh generic type of evaluator. It
- 30:37doesn't take into account the context of
- 30:38what we're trying to do. It just looks
- 30:40at the command and says could this
- 30:41potentially have a negative impact? If
- 30:43it does it just rejects it interesting
- 30:45and then it gives the reason. I thought
- 30:46we're going to maybe talk about hooks
- 30:48and things like that. Have you have you
- 30:50played with clawed hooks?
- 30:51>> Yeah. So the the spec ledger CLI is a
- 30:54hook that um that that acts whenever a
- 30:57command get executed.
- 30:59>> Yeah. But like are you talking about
- 31:00like a cloud hook or github?
- 31:03>> Yeah.
- 31:03>> Cloud. So it happens whenever the agent
- 31:06triggers a git commit because a lot of
- 31:08the prompts and a lot of the work I do
- 31:10um now is I I have no problem with the
- 31:13agent. Actually, before I never allow
- 31:15the agent to commit, but now I always
- 31:17ask the agent to commit because it
- 31:18writes a really good it stages the file
- 31:20correctly. It writes a really good
- 31:21commit message that I like to see. So,
- 31:23um, so that's why the agent it requires
- 31:25you to trust the agent to do the commit.
- 31:27So, when that happens, um, it's a bash
- 31:30call that that doesn't
- 31:31>> your claw hook uh sort of make sure that
- 31:35there's a good uh get.
- 31:37>> No, no, no. the only thing it does
- 31:39because it has to do something real fast
- 31:41uh and get out of the way because if the
- 31:42hook fails it it really breaks your
- 31:44agent's shell. We have experience where
- 31:46if CLI breaks for whatever reason and
- 31:49then everything the agent tries to do
- 31:51because it was a a bash tool hook. So
- 31:54every time the bash tool was called to
- 31:56do a git command or whatever to identify
- 31:58if it was a big git command. It was a
- 32:00nightmare. No. suddenly like I would
- 32:01download the new spec ledger CLI uh
- 32:04release and then I would try to use
- 32:06cloud and it would just break like the
- 32:07model would just constantly every
- 32:09command and it wouldn't tell you why it
- 32:10would just be failed failed failed and
- 32:12after investigation we figure I figured
- 32:14out like oh it's because of the SL
- 32:16binary hook is is exiting exit one and
- 32:19the hooks are failing and there was no
- 32:21information why
- 32:23>> that's the one thing I always get
- 32:24frustrated with uh all the tooling
- 32:26really is that like sometimes something
- 32:29hit something went into my global thing
- 32:32and then and then and then there's
- 32:33something in my project thing and I
- 32:35don't know what the precedence is like
- 32:37or what what's being used
- 32:40>> but that what I really like about that
- 32:42is that whenever something like that is
- 32:44failing I always ask cloud okay go and
- 32:46look what is going on and it goes
- 32:48through its local settings it goes
- 32:49through the global settings it goes here
- 32:51and there and says like these are all
- 32:52the things that are currently connected
- 32:54that could be impacting this and and
- 32:56here it is this is the fix
- 32:57>> so the next thing I want to talk about
- 32:59is things.json like
- 33:02um do you ever touch this file like I I
- 33:05know it's probably more of a Claude
- 33:06thing but like do you ever because in
- 33:08the settings.json you can like uh I
- 33:13think Claude also does it in skills in
- 33:15other places. Hold on I'll get to skills
- 33:17in a bit but like in in the
- 33:18settings.json you have your like
- 33:20permission sets you can say that like
- 33:22>> and also arguments for the model and
- 33:23like API endpoints for the model. Yeah,
- 33:25there's a bunch of stuff that goes in
- 33:26there. Like everything goes in there
- 33:28basically. Like would you say it's um it
- 33:33makes sense to ship a settings.json in a
- 33:36project as to you know maybe disallow
- 33:39users from I don't know RM or something
- 33:42like that
- 33:44RM minus RF. You know what I mean? So,
- 33:46so what what specledger uh the Golang
- 33:48CLI does is it does have the concept of
- 33:50agent config because one of the people
- 33:53that was working on the project was
- 33:55either using open code or Claude Code
- 33:57with quen local or a separate uh
- 34:00endpoint. So when he I built a feature
- 34:02that launch launches Claude Code and with
- 34:04a prepared prompt and then goes straight
- 34:06into some activity. So you would run SL
- 34:08and then it would bootstrap the repo and
- 34:10then would immediately launch Claude Code
- 34:12and says um we're bootstrapping the repo
- 34:14and it has the prompts and the skills
- 34:15and it would just go off and he'd be
- 34:17like that really breaks for me because I
- 34:18have to set a custom endpoint. I have to
- 34:21do all of these additional settings
- 34:22configuration when I launch Claude Code
- 34:24there's all this like arguments that I
- 34:26pass in and so he built a feature on the
- 34:28on the CLI that that gives you the
- 34:30ability to configure different agents uh
- 34:32profiles um like and and so your
- 34:34settings.json JSON but but with two
- 34:36sections like secrets versus non-secs
- 34:39overridable what is collected what you
- 34:41would commit into the repo because maybe
- 34:44you want some of those settings be get
- 34:46included and some of this like local
- 34:47that you don't want to include so so
- 34:50there is quite a extensive feature spec
- 34:53on on how to set up the Claude Code
- 34:55settings and so on but to be honest I
- 34:57don't use it because I I'm using cloud
- 34:59code as is I don't have any like custom
- 35:02flags or something so there was only one
- 35:03other person using completeness. Yeah, I
- 35:05wanted to mention like get um what is it
- 35:09called? Git hooks
- 35:10>> attribut hooks.
- 35:12>> What is have you heard of this new
- 35:14project called PR? Hold on. What is pre?
- 35:16Oh, pre-commit. Sorry.
- 35:17>> Yeah, of course. What do you mean new?
- 35:19>> Okay, whatever.
- 35:21>> Um
- 35:21>> I I've been using Precomit since 2019, I
- 35:24think seven years for all of my
- 35:26Terraform.
- 35:28>> Autofixers are like
- 35:29>> Yeah. Yeah. Yeah. But PRE is the new
- 35:31Rust one. Whatever. uh
- 35:34>> new wish. Okay,
- 35:35>> you just given me an idea uh Vincent
- 35:38like how about the vibe coding a tool
- 35:40like this a tool where you can go like
- 35:43um you know
- 35:46uh AI show guard rails or something like
- 35:49this and it would basically look through
- 35:51your your uh your settings your
- 35:54pre-commits
- 35:56um your your your I don't know your
- 35:59switches your flags and basically
- 36:03basically you know you know, give a
- 36:05score about about your your your
- 36:09session, how safe it is, you know what I
- 36:11mean? Cuz cuz a lot of people, including
- 36:13myself, to be honest, in a personal
- 36:15context, I go yolo in my little sandbox.
- 36:18But like from an org point of view, you
- 36:21you want people um well to to set up to
- 36:24to use AI safely. But in the in the case
- 36:27that they haven't for one reason or
- 36:29another, maybe it would be good to sort
- 36:31of gify it to say like, hey, you okay,
- 36:33you had a great session with AI, but you
- 36:36know what? um you know this could have
- 36:38gone wrong that could have gone wrong
- 36:40and you know your score is 58%
- 36:44you know next time um AI could have done
- 36:47this you could have improved and become
- 36:51you know 88%
- 36:54uh if you um had this guard rail in
- 36:56place or something like that you know
- 36:58what I mean
- 36:59>> yeah I would definitely ask clout or
- 37:01chat to do a explore if anything like
- 37:04that exists um it Sounds interesting,
- 37:07but it also sounds it also sounds like
- 37:09something that I would go like that's
- 37:11wrong. You don't trust me. I don't care
- 37:14cuz yes. I mean I mean these tools are
- 37:16popular and people use them and I think
- 37:18they're good for um non-technical user
- 37:22but like for me I find them offensive.
- 37:24>> I guess for us we would find it
- 37:25frustrating and dumb or something like
- 37:27that. But I do
- 37:28>> Yeah. It would it would say like you
- 37:30only have a 50% secure setup and I would
- 37:32be like f you. I know what I'm doing. Uh
- 37:35but but but um while we were on the
- 37:38topic actually earlier about
- 37:40settings.json and when I was talking
- 37:42about doing I mean I think the AI show
- 37:44guard wheels is cool but what I wanted
- 37:46to to highlight is something that I I
- 37:49learned and I saw a funny meme. So I
- 37:51think it was on Reddit and people and
- 37:52people are like when you work with AI
- 37:54and um you say like commit this then
- 37:58cloud goes like here's the commit and
- 38:00then it like writes the whole commit
- 38:01message and then at the bottom it says
- 38:03co-authored by um cloud opus 1M or
- 38:07whatever like the model and the context
- 38:09and so on. a lot of times because maybe
- 38:12it's something that you don't want
- 38:14people to see that it was generated with
- 38:16AI. you may you know either I I I
- 38:18usually I don't give it a permission to
- 38:20do the git commit sometimes and I just
- 38:22in those projects I don't give it the
- 38:23permission and I would go like no I
- 38:26would copy the command remove the
- 38:27attribution and then run the command
- 38:28myself and I would be like I already
- 38:30committed it uh I had to fix the
- 38:31pre-commit um go continue I would I
- 38:35would usually because actually it's in
- 38:36projects usually
- 38:38>> get commit gas amend right
- 38:40>> but the very funny thing is and it was a
- 38:42funny meme of a picture of of a of a guy
- 38:45uh I I forgot the picture. Okay, you got
- 38:47to find my picture for for
- 38:48>> I got to find it. I might I'm not sure
- 38:50if I saved the comment because there was
- 38:52a very interesting comment. Apparently,
- 38:54you can in the settings of cloud disable
- 38:56attribution. So, by default, yeah, by
- 38:58default, cloud will add its like
- 39:00co-authored by cloud in the commit
- 39:02message and also if you create a pull
- 39:03request, it will also say generated with
- 39:06cloud in the in the pull request. Uh you
- 39:08can disable both or one or the other.
- 39:10So, so you have all of that uh
- 39:12capability. So you can actually and then
- 39:14right after I read read that comment on
- 39:16on Reddit I went to cloud and I said can
- 39:18you disable attribution and it was like
- 39:20both PR or commit and I was like both
- 39:22and it was like okay done. I was like,
- 39:23"Holy shit." You know, so many times
- 39:25I've just like told it not to do that
- 39:27and then went in and and and and did it
- 39:29myself. And the funny thing is when I
- 39:31did that and it then shows the whole
- 39:32pre-commit like pass pass and then or
- 39:34maybe with an autofixer and then I go on
- 39:36stage and then do the commit again and
- 39:37then I have a reason, right? And I say,
- 39:38"Hey, I had to do it myself." And then
- 39:40cloud next time it's like here's the git
- 39:42command for you to run and I was like,
- 39:43"Okay, thank you." So it kind of
- 39:45remembers like this guy doesn't want me
- 39:46to commit.
- 39:48>> But but that's that's kind of a bad
- 39:50practice though. I mean we you want to
- 39:52show that you used AI, right?
- 39:54>> We depend on the project.
- 39:56>> For this for this AI show guardrails
- 39:59that
- 40:00>> I'm going to give you an example that
- 40:01somebody told me. Okay. Not me.
- 40:04>> It's a friend of a friend. Absolutely
- 40:06not me.
- 40:07>> Totally not you.
- 40:08>> Remember the whole thing I said about
- 40:09like AI routers, API uh AI router
- 40:12governance contracts in place. You
- 40:14cannot use like you even said it. You
- 40:16cannot use certain models. If I do a
- 40:18commit with Opus 4.71M, but it's not
- 40:21available on whatever the the plan that
- 40:24that that I'm supposed to use, that's a
- 40:26problem, right? I cannot have a commit
- 40:28that says Opus 4.71 did this commit.
- 40:31>> Yeah.
- 40:32>> I mean, not me, right? Somebody told me
- 40:34that.
- 40:34>> Yeah.
- 40:35>> Yeah. I mean, this I'm actually
- 40:38>> using the right.
- 40:39>> I want I want to write this program
- 40:40because I
- 40:42>> I know it's going to catch people like
- 40:44me.
- 40:45>> Catch people like me. catch people like
- 40:47you Vincent for example but this this is
- 40:49the problem I'm seeing all every day at
- 40:51work people are basically
- 40:54um maybe maybe token usage there's a lot
- 40:57of things that could go in here do you
- 40:58think this okay now do you think this
- 41:01makes sense to be a spec driven develop
- 41:04spec driven develop project yeah I mean
- 41:06I think this type of project is
- 41:08something I mean you could probably okay
- 41:10you could probably vibe code this with
- 41:12the going into plan mode and it will
- 41:14make a lot of assumptions
- 41:16Um, but if you want to have the real
- 41:17control of exactly what are the metrics
- 41:19that you want to capture, then doing it
- 41:21with spec driven development, it might
- 41:22actually help you more like spike on the
- 41:25different type of guard rails that you
- 41:26want to build.
- 41:27>> Okay, I'm I I just realized the time I
- 41:29need to take my kids to school in 10
- 41:31minutes, but okay, I I'm I'm going to
- 41:34record myself. I'm I'm gonna mark this
- 41:38the the places where I might be a bit
- 41:40confused. I'm going to record myself
- 41:42developing this in spec with spec uh the
- 41:46spectrum development on the specket and
- 41:48then and then maybe we can use that as a
- 41:51topic for the next pod, right?
- 41:53>> Yeah. Um it might be like if you're used
- 41:55to plan mode, it will be frustrating but
- 41:57it might also be rewarding because you
- 41:58might see all the assumptions that the
- 42:00AI gives you uh and then decide that yes
- 42:03this is a great assumption and actually
- 42:05no I want to go more in this direction.
- 42:07Um but you will it will definitely be
- 42:09frustrating in the token usage. Um you
- 42:12will definitely be like I have used 80
- 42:15like 30% of my session budget and I have
- 42:18not even written a line of code yet and
- 42:20I've only got these stupid spec
- 42:21documents. That will definitely be the
- 42:23first impression.
- 42:24>> Yeah, I I I like this. I mean this this
- 42:26seems like a
- 42:29I can't remember the name. Can can you
- 42:31can you dig up that talk from from
- 42:33Singapore Dev Days or whatever?
- 42:35>> Yeah, DevOps Day Singapore. um which I
- 42:37think this year is going to be by the
- 42:38end of the year. Um last year it was
- 42:40around May. So pretty much
- 42:42>> yeah the whole networking uh log VPC oh
- 42:47whatever capturing the the the the
- 42:50networking of um cuz what the lethal
- 42:52trifecta for for AI agents is private
- 42:55data access to the internet and
- 42:56untrusted content
- 42:59uh untrusted content if I remember
- 43:00correctly which is and untrusted content
- 43:02and internet access is almost the same
- 43:04thing. So I'm I'm thinking the network
- 43:07angle is something I want to investigate
- 43:08further. But in the meantime, I will
- 43:10specdriven development some sort of AI
- 43:12show guard rails. This is going to be my
- 43:14my my next vibe project. How do I I
- 43:17don't know how to use a cruel code
- 43:20anymore. What are you what are you
- 43:21doing? Thanks. Was there some other
- 43:22basic DevOps practices to add here that
- 43:25come to mind? I'm I'm drawing blanks
- 43:28here.
- 43:30or have having a a pipeline test gates
- 43:34can't hear you. You you muted yourself,
- 43:37Vincent.
- 43:38>> Ah, so earlier with my amazing jokes,
- 43:40you didn't hear any of them.
- 43:41>> Yeah, they were that good. Okay, thanks.
- 43:44I think that was a I think that was a
- 43:45productive session. I'm I'm I'm going to
- 43:47do some Spectre and development on a on
- 43:51a guardrails
- 43:53uh linting tool. Okay,
- 43:55>> I want to ramble off one more fun fact.
- 43:57Okay,
- 43:57>> there's a branch on the bun repository
- 44:00of a rewrite into Rust. Reddit and had
- 44:03like five or six threats going crazy
- 44:04about, oh my god, Antropic, they have so
- 44:06much money to have AI rewrite bun from
- 44:09Zigg into Rust. Haven't they ever heard
- 44:11of Dino? What's wrong with them? Um, and
- 44:14X I guess the same type of backlash. And
- 44:17the author of the branch came uh in one
- 44:19of those threads and said, "You guys are
- 44:21blowing this way out of proportion. I
- 44:22just want to know what a rust version of
- 44:25bun looks like. What's the memory
- 44:27profile? How does it act and so on. Uh
- 44:29but it's kind of interesting to that we
- 44:31are at a day and age that you can just
- 44:32go and let me rewrite this massive
- 44:34framework from zig into rust just to see
- 44:37what's the you know.
- 44:38>> Yeah.
- 44:39>> Yeah. But that those sort of experiments
- 44:40should be private. Why the hell is he
- 44:42publishing it for Christ
- 44:43>> sake? because um bun is an open source
- 44:46project and it's a branch on the
- 44:47opensource uh repository rewriting and
- 44:50he's doing and and I don't know I think
- 44:52I shared with you because he has this
- 44:54context document in the branch that says
- 44:56like this is how you rewrite um from
- 44:59zing
- 45:01>> super interesting because um that's one
- 45:04of my original AI that was my DevOps day
- 45:06talk last year by the way uh using AI to
- 45:09rewrite uh something from AWS CDK cloud
- 45:12form into CDK for Terraform. So to see
- 45:15that how the rules that he he defines
- 45:17are very very very cool. Um
- 45:20>> Right. Right. Right. Oh on the topic to
- 45:24have you just to rattle off a couple of
- 45:26things the
- 45:28for setting up um
- 45:30like a like a fresh AWS
- 45:34um
- 45:36landing zone like a whole organization,
- 45:38right? Would you say the Terraform
- 45:41tooling or the CDK uh tooling is about
- 45:44the same? It makes no difference like
- 45:46using AWS control tower, setting up your
- 45:49logging account and your cloud trail
- 45:52blah blah blah. Does like which IA
- 45:55solution would you go for? I think e
- 45:57either or would you say Terraform's
- 45:59better? Like especially if you had to
- 46:01like you know do do general things like
- 46:03uh you know link up with uh with octa
- 46:06and things like that. Does it make
- 46:08>> I think my my experience is dated when I
- 46:10use AWS control tower um I think four
- 46:13years ago it missed a lot of the
- 46:15features that I wanted. I have a mixed
- 46:18where I do like AWS cloud AWS
- 46:21organization and cloud formation stack
- 46:23set which allow you to target a child or
- 46:26member account based on the uh unit like
- 46:29organization unit ou. So you can apply a
- 46:32stack set basically you can define the
- 46:34cloud for stack at the organization
- 46:35level and then on these organization
- 46:38units automatically deploy them.
- 46:40>> Sure you're using cloud for I guess
- 46:41>> no bootstrapping. So I said I have a mix
- 46:43setup like I use AWS or I don't use
- 46:46control tower um because of the landing
- 46:49zone uh product was pretty bad
- 46:51>> as another project I can't remember.
- 46:53Sorry.
- 46:54>> What is AWS or?
- 46:56>> So AWS or is where you are able to
- 46:58manage multiple AWS account
- 47:00>> under Yeah. Yeah. Yeah. Sorry. I thought
- 47:02you were referring to some sort of
- 47:03framework or something. Sorry.
- 47:05>> No, no, no. But but that all of those
- 47:07services have evolved so much um that I
- 47:10think
- 47:10>> it's the kind of thing you don't do very
- 47:12often. um usually and also that's
- 47:14another very like an argument that that
- 47:17is very hard for me to argue against
- 47:19which is like yeah but we only have five
- 47:20accounts and we only on boarding them
- 47:22one one every year or one every quarter
- 47:25so why do we need to have this all
- 47:27automated so my my personal preference
- 47:29right now that I have that I use is I
- 47:32use stack set to bootstrap the terraform
- 47:35because I I don't use tacos uh hosted
- 47:38service I use Atlantis and Terraform
- 47:41with with my own setup you're using when
- 47:43you say stack set you're using like the
- 47:44AWS provided stuff I guess right
- 47:47>> so stack sets are an AWS orc cloud for
- 47:50feature you have to give the I think you
- 47:52have to give a service linked account uh
- 47:54linked role permission uh you have to
- 47:56enable cloud for service to run AC
- 47:59across your AWS org so that it can go in
- 48:01into different accounts and do things so
- 48:03I use that to bootstrap my accounts
- 48:05automatically they get bootstrapped with
- 48:08uh an IM role that has a trust
- 48:10relationship with the AWS account where
- 48:12my my Terraform automation lives. So I
- 48:15have one which usually is called like
- 48:16managed services or shared services
- 48:19account or they call it in in AWS CDK
- 48:21you have this as well. AWS CDK pipelines
- 48:24uses the DevOps account as as a as an
- 48:26idea. That's where your pipeline is
- 48:28defined and it runs across all of your
- 48:29other accounts. So I have the same
- 48:31setup. I have one account where where
- 48:33the um the pipeline lives and all of the
- 48:37other accounts when they're on boarded
- 48:38they trust they create a trust
- 48:40relationship with that account.
- 48:41Have you had any things that like like
- 48:44easily bootstrap Atlantis and things
- 48:46like that or is that just
- 48:48>> Yeah, I do. And I I so part of my terra
- 48:50constructs uh project was to basically
- 48:52come to the point that I publish a a
- 48:55terraform mod terf or a CDK terrain
- 48:58construct that just you just run it and
- 49:00it just bootstraps your whole um account
- 49:03and terraform automation.
- 49:06>> That would be cool. I mean like people
- 49:07ask me about this and I'm like yeah use
- 49:09control tower. How do you do Atlantis?
- 49:11Uh do it manually?
- 49:13>> I feel Atlantis is lagging behind in a
- 49:16lot of features and it's designed in a
- 49:18very rigid way. Like it's very hard to
- 49:20to make changes like even just making a
- 49:22drift detection with the API endpoint is
- 49:24kind of really is broken. So I use
- 49:26Atlantis but I don't think it's a very
- 49:28good solution. I think there might be
- 49:29other like I don't know maybe state
- 49:31graph if there but there should be more
- 49:33like a better automation solution for
- 49:35that. But
- 49:36>> yeah, agreed. But as you said, like you
- 49:38you generally only do this like once.
- 49:40How often do you need to do it? Okay,
- 49:41cool. Um, I thought that was a
- 49:43productive session. I will I will pledge
- 49:45to do some some sedd for you to review
- 49:49in a bit. Have a great day. See you.
- 49:52>> You would have a lot better experience
- 49:53if you use spec ledger, but maybe you
- 49:55should use specket first to know.
- 49:57>> Yeah, I'll use packet first and then
- 49:58then we can exchange notes. Okay. See?