Is Your AI Software Factory Actually Working?

Welcome to another episode of Cloud

Unplugged.

It's been a little while,

so obviously apologies for that,

but today we are

going to be talking about how you measure

your AI software factory before we were

speaking about what even is an AI software

factory.

So that's handing off to agents to help

improve the delivery of your software

around your team.

But if you're going to do that,

how do you know it's actually working?

What's the evidence you need to prove that

it's better than what you were doing

before without the agents and that it's

helping the team

properly.

So Salman is your software factory

working?

Is it working?

I don't know, John,

I'm burning a lot of tokens,

but it doesn't tell me if it's actually

working, you know,

like because just like everybody else,

we started with saying how many tokens you

can burn and we handed all of the

work that did come in up with the

requirements, the writing of the code,

the testing of the code.

Even I've got some SRA agents are checking

that things are being deployed correctly

and running correctly.

What people are finding is that you can

have a software factory where you have

thousands of agents that are running

properly.

But there is a new Harvard research.

Of course,

there's a bunch of research that's coming

out that shows that AI agents are adding

more code

than furnished software.

I think that is the key here that

yes, you can have these agents that,

you know,

like adding lines of code doesn't really

relate to something that the users will be

using at the end of the day, right?

So that the numbers that make factory look

good,

have got nothing to do with what value

you're delivering.

So the question is, I mean,

you can still use the same metrics as

before,

which we'll come back to in a second.

The numbers don't really tell you anything

that, oh, I'm publishing,

I'm pushing more code.

There's more pull requests that need to be

reviewed.

But it may be getting worse before it

gets better.

So at the moment,

there's more code and less extra software.

So last week, as you said,

John,

we were talking about how we need to

trust the agents with the right guardrails

and let it do what it needs to

do.

And software factory can automate that.

But the Harvard research they're referring

to,

which we can put in the show notes,

they tracked like

don't know seven hundred thousand workers

in uh like five six hundred firms that

are are using adopting ai agents to do

the code but the code rose faster than

the finished work that means basically the

main bottleneck that they found is the

code review we're in this transition

period which where the software factory is

quite new john so people still don't want

to trust the agents fully

So they're like, oh,

let this thing write the code,

but we still have to review it.

So is it working for just generally on

laying the picture?

Is it working?

But today we're going to talk about how

you can put some things in place that

you can be sure that it's working for

you.

But this is the picture.

This is the big picture.

Currently kind of feels a little bit like

me is in.

I do say a lot of words.

But are they valuable?

Are they interesting?

Do people want to actually listen to me?

And if you put it through that lens,

the proportion of probably things that

were actually valuable out of the amount

of words said by me as a human

being is probably very disproportionate.

So obviously,

the cost of me is just a bit

of food.

So I can keep going.

I can have a little glass of water.

I can have a sip.

So I'm cheap.

know i'm a cheap i'm a cheap person

i can i can talk a lot and

keep going for a cheap price but these

agents i suppose aren't cheap which is

kind of the problems what they're saying

isn't it so they basically are producing a

lot more um than there is value uh

fundamentally is kind of like what the

data is saying i think you were there

was something

in the data you were gathering around

actually the amount of Jira issues that

actually are resolved is something like

thirteen per cent.

But actually there's like pull requests

and COVID reasons like thirty five per

cent.

So it's basically more disproportionate

amounts of PR than there are actual

resolved issues in Jira.

um that's assuming it's using jira and not

bypassing it and merging those in a bit

of a big assumption there that the code

ain't going in anyway uh irrespective jira

um but yeah so it's so we'll be

doing a lot here on this because um

again if we're kind of learning through

what are the factors of measurement

there's

quite a lot to it,

but I think if you're just looking it

through the, just the pure, uh,

cost of using an LLM,

you've obviously got the request,

which is the initial prompt, you know,

how have you entered with the session?

So you obviously got the session overall.

It's going to be the thing you're working

within to get the outcome.

Um,

and that's the session that anything's

working within.

So that could be the agent in the

software factory.

It's got the first prompt from that agent

into the software factory.

So how good is that prompt at the

beginning?

How much context did it have?

How specific was it?

And then you've got the back and forth

of what's happening,

and they call them the turns.

So each thing is another turn.

The LLM responded with needing to know X.

The agent responded back to the LLM with

the information for X.

processes it again it comes back it's

still not right the agent then responds

back to the llm back and forth and

each time that's happening obviously

that's tokens and cost and so and then

there's the overall cost of the session

how much did that session cost overall end

to end so you got that piece and

obviously

when you're thinking about an AI software

factory,

you might have multiple agents that will

then start a new prompt because it's going

to do a code review.

And then it find like, okay,

maybe it's not a

a Harness code review,

like Copilot or Claude's code review,

which is obviously using the Harness.

Maybe it's one that's looking at your own

standards and best practices,

how it should be architected,

how to structure the code.

So maybe you've created your own agent to

do that.

That isn't necessarily the standard just

code review agents.

and so then obviously you've got that like

how well structured was that did it have

the information how long has that taken

and then on and on and on it

goes in the chain of the software factory

until it shipped and then you're going to

get bugs and then you might get defects

and you might get other things which then

again another one comes in and then

there's another session that starts to

investigate the bug and that's more cost

um you know back for that feature so

The only real way you're going to track

is what is the overall cost of the

feature that was shipped,

but also post it being shipped too.

What was the overall cost of that feature?

How many bugs and defects did it get?

And then really, did anyone even use it?

What's the telemetry on the feature?

Did anyone even use that feature after it

was shipped?

So you know if it was even worth

the cost at the end.

But I don't think people are tracking that

very much.

I don't know what your views are.

My understanding is it seems quite a,

because it's new, like you're saying,

it's quite a light metric-driven area at

the moment.

People haven't got the data to hand.

And I think, yeah, I think, John,

if we were to think about it from

a very objective point of view,

even currently, well, imagine,

forget about AI for a second.

You know,

you're talking about the total cost of the

feature.

You're talking about how much rework I

have to do at the end of a

feature getting shipped, right?

We should have been measuring that even

before AI, right?

And I think... Just a minute.

Speak for yourself, Salman.

My features are pretty good,

so I don't think...

Don't start lumping all of us into this,

all right?

Some of us have got very solid features

out there.

I know, John,

you might not have a way with words,

but you have a way with code,

and your code is... Oh, wow.

Why do I have a way with code?

My way with code is that you just

don't write it.

That's my way.

So, you know, you might remember, I mean,

there is a bit of an overlap, right?

Because from like a non-AI to AI

previously,

you might remember people used to count

lines of codes or how many pull requests

somebody did.

And now people have added on top token

usage.

Or nowadays with AI factory,

what people are doing,

a percentage of code that was written by

AI

versus whatever the other effort was.

And the reason why everyone's doing this

is it's quite easy to measure these

metrics.

It's very easy.

Lines of codes written by AI,

you know which lines have been committed,

how many pull requests were raised,

tokens used by these agents, or yourself.

It's very easy to measure,

and it's very easy to game as well.

If you know what the target is,

you can start wasting tokens.

So and time saved is no better unless

you can show where the time actually went.

But this is where people are measuring

these metrics, John.

But there was a report from Lead Dev

AI Impact Report,

which got published recently.

And they're saying that only like,

thirty percent of the teams are measuring

productivity gains.

Right.

And people have started like,

sixty percent of the people said that

token metrics are ineffective.

People are starting to realize that I

can't be just measuring how many tokens I

waste.

We give this example of Uber,

where Uber were before everybody else.

because they started with token metrics

and they realized that actually it's not

going anywhere.

And they can, you know,

you were talking in the previous episode

about how they've got the software factory

and they're measuring all these costs.

But, you know, like tokens basically are

I think of it as electricity bill, right?

It's not our output.

And there's no point in measuring tokens.

So people are measuring stuff,

but this is where now we need to

think about what are the actual things

that we measure.

You talked about the cost of the whole

feature.

Then there's other things too.

Is the work getting out faster?

Which is what we call flow.

The time it takes for you to create

a ticket or an idea all the way

to production and time waiting for a

review and putting it forward.

Is it good enough?

Does it end up with a change failure

every time you put something in production

or you need to do rework?

Again,

these things are like things that we

should be doing before.

And as you talk about cost,

is it worth it, like the whole thing?

And what business value does it add?

And that's harder to measure unless you

can say, well, if I ship this feature,

the revenue should go up by,

And that's kind of hard to measure.

So these are the things that you need

to measure together.

Forget about token metrics.

Token metrics is just...

I mean,

you do need to keep an eye on

it because you will notice that there are

anomalies,

that some agents might be wasting a lot

more tokens because they're not following

the processes that you put in place.

But that's what we're seeing, John.

The people are starting to realize that

token metrics don't really count for much.

I'm going to challenge that a bit.

Do you know what?

Because I think they are true as well,

as in there are way more things you

should be focused on that are higher value

in the value chain.

um like did anyone even use the feature

you know or what's the traction model on

that feature after it's after you've paid

for it because it can't just end there

maybe we need to market the feature you

know etc etc so you obviously want to

have um usage metrics you know and funnel

metrics on that feature and understand the

user journey and did people find it well

was the ux good and did it meet

the customer expectation so you got all

those things but

when you are doing the software factory

itself and you're thinking about

outsourcing as much as you can in the

chain,

then the cost of which that agent can

be as effective as it possibly can for

the cheapest value does matter at that

point.

And that does mean

If I'm going to reduce the cost of

that chain,

then maybe from an eval perspective,

I'm going to evaluate that model

deterministically of like,

is the quality of the outcome as efficient

as it could be?

And how do I evidence that?

And if I've got historical things like the

PRs, historical PRs,

then I can run an eval to say,

does it get to the same result as

the PRs historically that we've done?

that were good and can I,

based on the skills that I'm using,

based on the model that I'm using,

is there any shift here for me to

reduce the cost of that phase?

So if it's a code review phase,

How much cheaper can I get a code

review phase if it's assessing the

documentation?

How much more efficient can it be

assessing docs or looking for security

vulnerabilities?

So when you're then passing it through the

pipeline of the production line,

so to speak, because it's a factory,

then you do want each point from an

economical perspective of the factory to

be as cheap as possible.

And the only way you can do that

is by thinking about the tokens,

because obviously you've delegated it out.

So you do have to think about them,

I think.

But you are right.

You can't just look at that as a

value that isn't a value overall.

That's totally spot on too.

No, no, no.

Yeah, I agree.

Just like everything else, right?

You are monitoring your usage of CPU and

and memory of the machines,

making sure they're utilizing it

correctly.

You're a hundred percent right.

I think there's still a lot of work

that needs to be done in this area

to know that you are using the right

type of a model and you're not wasting

credits and there's you know you talked

about context graphs last time around john

uh how how uber using context graph in

which agent can find information quickly

without wasting all those tokens um but

yeah i i agree we definitely need to

keep you know any any cost that's

associated with you pushing out a piece of

code to production needs to be accounted

for yeah hundred percent because that is

the cost that you have just like you

have cloud spend cost

That's the cost that you have for the

agents.

That goes in to your budget.

You can't do it without that.

And if people,

if everybody keeps just using Opus five

point five for even the menial task that

needs to be done,

then it is a bit of a problem.

But I completely agree.

But so Dora, you know,

our good friend Dora, Dora the Explorer,

not that one.

Yeah, I like Dora.

She's pretty, she knows a lot.

She knows a lot.

So Dora... She begets a lot,

but she also knows a lot.

She's very...

So Dora,

I do keep an eye on their reports

when they come out.

So I think this is like in the

middle of summer.

Now we're almost, say,

twenty twenty six is almost over, John.

Crazy.

So the report from twenty twenty six,

they said that, you know,

Dora recommends pairing the delivery

metrics with cost per accepted change and

code rework rates.

So they're saying, don't just look at,

yes, look at the cost itself,

but also the cost of what happens after

you deliver the feature.

Now,

how do you chain this and pair this

all together?

I'm yet to figure out.

Everything has to be, like in cloud,

you can tag all the resources correctly so

you can know, oh,

this department is using this much.

But I think, John,

I don't know how you do this in

this current day and age.

Perhaps there's some tricks that people

might know of.

Maybe you know of tracking all of this,

that this feature is costed this much or

rather than this team is using this much.

Right.

And also,

I do want to go back to the

point that you made earlier,

which does grind my gears a little bit,

saying that a feature you also want to

monitor in production if a feature is

being used that you did deliver.

Well, if you're asking that question,

it's a bit too late, right?

You should only be pushing features that

you know, based on your research,

based on your discussions with whoever the

product owners are,

based on your business users,

that you know this is definitely required,

right?

This is what people are asking for.

But then I do also see the point

where people, what people ask,

what people actually need is two different

things.

Yeah, you've got to be,

I don't know about that, because I think,

most people you don't always know that's

the difference with innovation you won't

know otherwise you're not innovating you

know i mean at that point you're

delivering based on what someone's asked

that's not necessarily the same as

thinking about what no one's asked for um

you don't even know the need and then

innovating but i do yeah you kind of

have to measure both i think but um

but yeah one of the one one thing

i have noticed uh a lot at the

moment is

I guess the requirement for a factory

overall,

I think it's becoming quite important.

So we've been working with a lot of

companies,

the amount of people with sessions,

like basically everybody's got their

MacBook,

they've got the cloud session going or the

codec session or whatever they're using as

the harness and whatever model they might

be using underneath because whatever.

And everyone's kind of going off and just

doing their own thing with their own agent

on their own machines.

And there's no real transparency because

everything's flattened out now, right?

So...

the accessibility to do other things

beyond writing code has flattened because

it's got an MCP.

So it's so easy for me to just

raise a JIRA issue, right?

Oh,

there's no JIRA issue for this piece of

work.

Raise it in JIRA.

Am I looking at JIRA?

No, I'm not looking at JIRA.

Could there have been fifty issues of the

same type?

Absolutely,

because everyone could have just created

the same issue many times over.

I don't even check.

And so, you know,

I'm just doing it because I think I

need it.

I need that issue because maybe I've got

a rule that says check that there is

a Jira issue for that PR or something

like that.

So I've got to reference it.

So I just create.

So anyway, that's just one example.

But then we all could be working on

the same features.

We all could be scope creeping beyond all

kinds of different areas.

We all could be doing a bit of

UX based on the feature that overlaps with

some other person's UX.

So

I think now because the accessibility of

doing a lot more has kind of converged

in itself,

we're all pretty much equal to a degree

on the velocity we can achieve.

it's then created this absolute chaos of

no one really knowing what each other are

properly doing because so much is going

on.

And then like you're saying, I mean,

the stats are in with that PR number,

right?

So there's like way more code being

written,

way more PRs because literally that same

reason,

And I reckon most is duplicative or most

is absolute nonsense and bullshit that you

just thought I'm never merging that piece

of shit.

Like what even is this?

Um, there's no UX thinking about it.

There was no design thinking about it.

You just smashed in some PR with a

bit of clunky front end over the top

of it that no one's ever going to

figure out how to use.

Um,

So this is what's basically going on,

I think, at the moment.

And you need the quality gates.

So you need to know the design's happened.

You need to know the prototyping has

happened.

You need to know the UX thinking has

actually happened before getting into the

build.

And unless you're gating,

in the right way and unless you can

evidence that those things have happened

before the prs start then you're basically

just starting the prs irrespective which

is where all the cost and nonsense is

going so the i think it's process becomes

the most critical um to the problem i

think now because you need process to

start to manage and create order um

even if you're automating the process you

still need it um to automate within you

can't bypass it otherwise it's absolute

you know craziness going on which is

basically how things in all honesty that's

basically how things are it's just a load

of

shit that's getting produced because the

process isn't there to stop it happening.

Yeah.

And the evidence is that, well,

going back to our friend,

good old friend Dora,

they're saying that most organizations

will see a temporary dip in productivity

before you start to see the returns

because

everyone's trying to learn these new ways

of working right uh you know how much

time you have to spend checking the ai

apple and then updating the tests and the

approvals and those evals um so and it's

happening with me as well i'm trying to

learn how much do i rely on because

nowadays you can create so much code but

at the same time you have the review

agents

the review agents also need a baseline to

check against the review right so you're

always in this loop of okay i do

i just do i just rely on the

review agent but then again that's still

an agent so people will see this dip

before they see this improvement but so i

think i think like

I don't think that is going to happen.

I think that's an oversimplification of

the industry saying that because when you

think about ways of working,

ways of working is not about what an

agent could do.

Some things are very rules driven.

Right?

Quality gates are very rules orientated.

They're not prompts.

They are actual decisions that need to be

made.

And that's very different.

And I know that there's been Jev and

you've got OpenAI's done the decision API

endpoint or another model that's way more

decision based.

So I think there are coming out because

people are realizing some things are just

pure logic and decision making that you

still need.

Some is more creativity and content or

code writing.

But one doesn't do the other very well.

Right.

So you end up in this void where

actually you can't really delegate the

decision making to a model because you

can't trust it to make a decision.

It isn't very good being absolute rule

driven.

So you then need something else.

that you would trust could never go wrong,

which is like a rule.

And that isn't a policy because a policy

is more about what things do.

This is more about what the acceptance is

to the next phase,

whether the quality of those things have

been met and their thresholds and

standards and expectations.

And so I think most people are falling

short because that isn't very well

defined.

And until it is,

then you're going to crack on and agents

are going to be writing all kinds of

nonsense still until something's getting

it right.

So what you're saying is that you can

only rely on these agents if you have

some deterministic rules,

which do live in

developers and the the tech leads in their

head day to day that they are using

those rules when they're looking at the

project in general and and the company uh

guidelines and standards and that they're

applying those what you're saying is that

those deterministic rules should be put in

as gates so the agents always have to

follow them and review against them and

only then you can accept

that I can rely on the AI agent

to do what it's supposed to be doing

in the right place.

Absolutely.

I think the only challenge is it's still

a bit different because the price of a

human being is fixed.

So when you've obviously got your team

doing code reviews or checking things is

like obviously to expect that and it's

manual and it's just people driven and

it's when they've got the capacity to do

it.

When you're doing it automatically,

it's about how efficient that agent can be

cost-wise and time-wise to then do the

action,

which then makes it a little bit trickier

because there are many things that could

diverge, i.e.

has this PR that's just come in already

been reviewed?

In which case,

what am I doing when it's a second

or third review?

Do I do exactly the same review again,

like full-blown review?

Or am I actually only going to check

whether the things that were reviewed

before actually have been fixed?

And how do you tell an agent that?

How do you infer to the agent, oh,

if it's already had a review,

you don't need to do the full review.

You just need to do a review on

the things and where's it getting that

data from and how does it know that,

et cetera, et cetera.

So it gets quite tricky when you start

thinking about it, you know,

programmatically, that how do you,

And that's decision again.

It's about the decisions getting to yes or

no and decision treeing on top of then

the agents.

You need decision trees and agents to be

working together around the data to get to

the outcome.

I think this is what people call agent

orchestration nowadays, right, John?

Like you have something that orchestrates

these agents, which is your decision tree.

Yeah, like something that says, okay,

this part is done.

Now the next thing goes to an agent.

orchestrator.

So in summary, then john,

what are two things?

What are two things people should be

keeping in mind?

So they can answer the question is my

AI software factory actually working?

Two questions people should be asking the

team?

I think the first

would be to define the ways of working

around the agents first and then having an

objective of what quality means in terms

of what is good in relation to us

as a team and then in relation to

us as a business for the things we're

doing as a team.

And then the second would be then I'd

work backwards then on, okay,

If the quality bar is like you're saying,

maybe it is the flow.

We care more today about shipping features

than when we do necessarily about the

bugs, right?

This is all about traction.

We don't care too much about the bugs

or security,

maybe as much as whatever it is,

whatever the objective is.

And then you then work out how are

we all going to work to know that's

true?

And then what metrics do we put in

just for the first pass to understand

whether that bar has been met?

Um, that'd be the,

that'd be the things that I would do.

Um, what about you?

Do you agree with those?

I do agree.

And I think if we put it in

the factory terms,

I'm not talking about software factory,

just normal software factory.

You judge a software factory not on how

busy the machines are, right?

You judge on what leaves that building and

what the quality of the output is and

how many returns you get based on what

you just what you just produced and how

much does each of them cost?

I think that is probably a summary of

a summary of what you just provided.

Yeah.

That's right.

Cool.

But obviously,

if you've got any questions or you

disagree, just literally blame Salman.

That's what I do.

Just ask Salman, be like,

what are you even talking about, dude?

I'm just going to let my agent respond

to that.

Exactly.

And his agent will respond with seven

thousand lines of response back to you

about why you're wrong.

But anyway, cool.

I guess we'll be...

Still talking about these things in other

episodes, so stay tuned.

And then also bringing a bit of news

from time to time back into the equation

just so we're keeping track of the

industry.

But have a good week, everyone.

Speak to you soon.

Creators and Guests

Salman Iqbal
Host
Salman Iqbal
Salman is an experienced Cloud, Data and AI leader, lover of all things AI, Cloud, Platform Engineering and Development tooling.
Is Your AI Software Factory Actually Working?
Broadcast by