# Versioning Agentic Software Factories for Enterprise Trust

**Podcast:** The AI Native Dev - from Copilot today to AI Native Software Development tomorrow
**Published:** 2026-11-19

## Transcript

We are not going to be writing code anymore.
So what are we going to write?
We are going to write pros.
We are going to write skills.
How on earth do we go about a good versioning system where we can recognize that this is a major change to the skill?
We haven't figured that out yet.
The customers I'm talking to, I still don't see them rigorously and systematically evaluating their skills.
And so when bad things happen...
You need to have a way to backtrack and say the problem was here.
The problem was in this skill.
The AI Native Dev is a podcast for developers and engineering leads at the cutting edge of AI and agentic coding.
Join your hosts, Guy Pagiani, and me, Simon Maple, every week as we chat with the most exciting voices in AI and tackle the biggest questions facing developers today.
This is the AI Native Dev.
AI DevCon is coming back to London.
Our first London event sold out in June.
After our second New York event this November, we're heading back to the brewery Moorgate in 2027 with a bigger lineup and two full days of talks from the people actually building with agents.
You'll hear honest takes on where the industry's at, real stories from teams adopting AI, the wins as well as the messy bits, and where they think things are heading next.
It's on June 7th and 8th, and don't tell anyone, but we've got a really great deal for you.
Scan this QR code to grab an early bird ticket for just £100.
See you in London.
literally live as an existing session is going on across there.
I'm kind of keeping my volume down just a touch because I'm worried that we're going to noise bleed into the other room.
But it's literally through the glass doors just there.
And joining me is one of the speakers at AI DevCon, Daniel Mepiel, who's a director of dev and agent platforms at Microsoft in the coolest department I've ever heard, the global black belt team.
Tell us a little bit about that, Daniel.
And first of all, Great pleasure to have you here.
Thank you.
Thank you for bringing me here.
So, yeah, the Global Black Belt team at Microsoft acts as a...
reference solution architecture team in the commercial business of Microsoft on the field.
So myself, I'm focusing on everything, agentic SDLC, AI applied to software engineering and helping our largest customers around the globe transform by using AI, their software practices, right?
So everything about, you know, agentic software factories, everything we're discussing.
in the conference.
Amazing, amazing.
And your session that you're giving at the conference is version your factory, not just your code.
And it talks about, I guess, the prompt skills, workflows behind the agents, treating them more as software that we can test or upgrade.
Super cool.
We're so aligned on that.
So tell us a little bit about what you go through.
Yeah, so, you know, at the core of that phrase is the realization that we are not going to be writing code anymore.
That's something I think we agree with.
So what are we going to write?
We are going to write prose.
We are going to write skills, prompts, as a way to try and automate and get some reliability out of agents.
And that prose that we start writing, we are starting to put it into modules like skills and other type of files.
And at the end, we can see that That's what allows us to put together what we are calling a factory, which is an automation, automated process.
And so it brings up to life a kind of, sort of a new programming paradigm itself.
So there are many practices that we applied in classic software engineering with the programming languages we are all used to that can be applied directly to this new way of coding, which is about...
basically writing natural language.
Yeah, and it's interesting because I guess from the role of a developer there, there's probably two key things that are important for a developer to do.
One is decide what are the actual things that are needed to be built.
And the second one is actually focusing on the factory or the infrastructure itself.
So essentially recognizing and understanding how to improve.
and make the underlying agents most effective.
So there's almost like two pieces that the development teams need to focus on there.
You know, more and more developers are starting to shift to build what allows agents to actually ship code that can be put in production, right?
And that's what we've...
called skills and you know it can be understood that all the infrastructure when you say all the infrastructure I think it goes beyond skills right?
There are MCP servers, there are hooks, there are all these what I call agentic primitives that we hook onto the harness and allow us to basically get some reliability from agents so that we can get outputs that we trust much better that they are going to be doing the job.
that we want it to do in production, right?
So there has to be, obviously, a lot of rigor that needs to shift towards building that infrastructure or, you know, those agentic primitives in the form of skills, hooks, MCPs, and all, yeah.
And I guess there's two different types, I guess, of types of skills that people will build.
The types of skills that are currently today parts of the model that is lacking, whereby, actually, this is a useful skill that everyone, will want to use.
And then there's this type of skill which is more a flavour and more of a style where it's like actually I as an organisation will prefer to do it this way, others will prefer to do it a different way.
So a whole ton of different engineering teams will be building their own skills and sharing and using their own skills.
What would you say today are some of the biggest problems that people are continuously falling into?
when creating prompts or needing skills?
Right.
Well, the main problem is that teams aren't federating efforts, let's say.
They are rebuilding the same skills once and once again on their own sites, on their own laptops, on their own teams, right?
So think about organizations with thousands of developers, like the ones I...
typically work with.
They are recognizing that putting down their unique knowledge and processes to get The job done in a skill is really delivering a lot more productivity and ROI out of agents.
But this is being realized in the team in, I don't know, the team who sits in Europe, the team which sits in the US, the team which sits in Asia, right?
And so the first error, or let's say the first hurdle to overcome is how do we bring all this together in one place?
so that we don't rebuild the wheel each time, so that we can seize the economy of the scale of that.
Right.
And obviously, when we think about factories, a large part of building a factory and doing it in a robust way is probably going to be skills-driven, like using skills and using methodologies that are repeatable to do things a similar way.
Your session is titled Version Your Factory, Not Just Your Code.
If we look under the covers of a factory, what are the types of things that today developers, in your opinion, are not versioning?
Right.
So I want to step back a little bit from the versioning part because it's an opening.
And when you look at a factory and what needs to be versioned, It's obviously we are looking at the skills, but there is something else that is not being versioned today and I think will be versioned very soon, which is, you know, we saw in the keynote from Guy what you are calling loops, agentic loops, right?
You get a skill or a bunch of skills.
But you also need a trigger, like what's going to launch this automation.
And you also need verification, like what allows us and the agent to say, okay, I've met the bar.
I've delivered what was expected from me, right?
Like the deterministic checks, the guardrails, right?
And all these different components today, they are spread around, right?
We have the checks on one side, the skills on the other.
We have the intent on another, all of this, right?
So at the end, I think, One of the other things that we will need to start versioning are those loops, which in my talk I'm calling agent contracts.
And I think that has the potential to become another standardized unit for harnesses.
Yeah, very interesting.
And when we talk about tests and a test suite for that, to make sure our loops and our skills and everything are working well.
What does a test look like?
What does a suite look like?
Right, so we are already in a world where we have two types of tests already, right?
The same way we have two ways of programming now with deterministic programming languages or with pros, which is non-deterministic.
We have the two types of tests as well, which is, you know, on one side very important.
classic unit integration tests that I think we cannot, you know, take away from an agentic software factory because that's what will give us trust and confidence that we can ship it.
And on the other, we also have tests and reviews that are agentic now, right?
Because they deliver a lot of value.
And for sure, we cannot confer the same trust as for deterministic checks, but they are really, really helpful.
They help detect vulnerabilities where some deterministic engines cannot detect them.
They can detect things in the code that aren't compliant based on some regulatory frameworks that we basically have no deterministic checks for that.
So those are the two families of tests that we need in clouding when we evaluate the skills, when we evaluate factories.
And it's really interesting when our skills, well, sorry, when our tests...
essentially become natural language that an LLM as a judge effectively looks over.
You obviously now have context, which is text, and you have tests that are text.
When we start to version these, I'll give a tricky question now.
When we think about code versioning and we do semantic versioning, it's super easy to identify we need a major semantic versioning bump here or we need a minor bump based on...
Okay, is this a breaking change?
Is this a change that's, you know, the method signature's changing and it's actually going to break other things.
So it's clear.
Yeah.
Often abused, but clear when we should jump to a major or when we should jump a minor.
How on earth do we go about a good versioning system where we can recognize that this is a major change to the skill and what constitutes a major change?
How on earth do we even think about that?
We haven't figured that out yet as an industry, in my opinion.
But I think, you know, if we go to the core of the problem, it's about identifying what makes a change that's, you know, an incremental change in the same direction versus a change that, you know, creates a breaking point, that the direction is switched to another one, that the output that you make it is different or that there are consequences that...
require users of that module to do something else, right?
And so in order for us to have a consistent way of versioning, we need to come to the point where our evals potentially allow us to detect what changes that we are putting into our skill are creating a deviation in the standard behavior or, you know, the direction of the behavior that we had originally.
So a major behavioral change.
Exactly.
But since we aren't still evaluating skill changes at a scale, like I still don't see the users, the customers I'm talking to, I still don't see them rigorously and systematically evaluating their skills and the changes they put into their skills.
we don't have an easy way yet to say, oh, this change I'm adding to the skill is completely changing the behavior, and so I should version it in a different way, right?
I think as we get to the point where that becomes commonplace, and that whenever we change the skill, there are evals that prove that that change is good, because it takes us where we want to go, then we have a more deterministic way and more, you know, solid way to say, this is version 2.0 and not...
1.1.
So in your session, you show APM, which when I first looked at it, I'm like, oh, you've been building a whole bunch on APMs.
And actually, it's an agent package manager.
Talk us through a little bit about the APM.
Agent package manager is basically taking the idea of a package manager, like NPM, like node package manager, to the AI-nated development world.
And it's doing that.
Basically not to reinvent the wheel and solve some problems that we have found in a native development that we already solved in classic software engineering.
And I'm thinking about first, reproducibility of setups.
Like if you have some cool skills and you use them to develop our shared project, why should I ask you to send those to me over email?
So I can't just basically install them from a manifest and done.
But the other could be traceability as well.
Like reproducibility and traceability, it almost come together.
Remember when you install with NPM, you get a log file generated, which contains all the cryptographic signatures, hashes from the dependencies that you install so that you can basically identify them as real, as the ones you asked for.
And so here with APM, you get a log file as well.
Yeah, and with my...
Kind of like security background, hat on, I'm thinking auditability is very interesting as well.
So like, okay, what was used, what versions of what context was used when we built this?
But also supply chains.
When we think about the supply chain problems that, you know, when we go back to the dependency world, supply chains become a big problem.
So what are the supply chain issues that we should think about when using context from a...
Yeah, and this is at the core of the trust gap that we need to close for enterprises to adopt, you know, agentic software factories.
And, you know, in terms of supply chain.
So, first of all, agentic software factories are going to be built by skills.
We said that before.
So, if we have a manifest and we have a log file of what skills are...
bringing the behavior we want to the agents we have working in our software factory, then we have trustability.
If we have the log file, we have trustability.
We can track from the output that's generated from your factory back to the skills that play that role in building that.
And this is essentially like a context bill of materials, right?
Do you ever think that will be something that...
people will care about or need as part of the audit?
Yeah, I'm very bullish on that one.
So with APM today you can generate what I call an agent bill of materials, an A-BOM instead of S-BOM, which is basically you take the log file and you look at all the dependencies and transitive dependencies.
In APM you can have a skill depending on other skills and yada yada.
You can have this transitive dependency tree.
And so from the log file it's very easy to say, here you have, here you have the bill of materials, here you have what went into my agent, which played a critical role in, you know, everything that happened when that agent ran, whether it was positive or not so great.
And so when bad things happen, you need to have a way to backtrack and say, the problem was here.
The problem was in this skill.
think about skills essentially acting as a guide to an agent.
There are certain times when an agent will do things very well and adhere to those skills.
And actually, maybe it will know that, but statistically, there will be times when it actually will not ignore per se, but maybe do things slightly differently to how the skill was asking.
How do we, when we think about, you know, security being a key thing where We have policies, we need to do things in a certain way.
How do we think about the difference between guidance and a true control that must be followed?
Is this down to the validation level versus enforcing something at agent time to build in a certain way?
Yeah.
All right, so skills are always guidance, right?
Even if you write...
encapsulators or you know you repeat it 10 times that you cannot do this right um in capitals very likely i mean you can always have a model because we say agent at the end underneath it's it's the model as well right um doing something that you said in your skill you didn't want to yeah right with uh with unwanted consequences so we need to distinguish from What's absolutely a no-go and that goes into the controls the security controls that we put around that agent from what's the behavior?
Let's say What is the direction of travel for that agent?
Like what is the kind of process and the way and the tools and the taste that we want that agent to have?
Yeah, the role that we want that agent to follow it's a little bit like when you when you hire somebody in the company.
When you hire somebody in the company, you are going to interview this person, right?
Because they already come with those skills.
You don't have to install the skills on them, right?
But at the same time, you'll give them a badge, and the badge allows them to enter the building, right?
And that's the security control, right?
And you'll give them a laptop that has some other security measures.
this is the same for agents, right?
On one side we have the skills, but on the other side we have the security controls which are like runtime governance of checks of blocking at runtime what the agent is doing, sandboxes and permissions and all of that.
And very retriable and deterministic in terms of their...
Exactly, totally deterministic.
Totally deterministic.
Our team is working really hard behind the scenes to bring you the best guests so we can have the most informative conversations about agentic development.
Whether that's talking about the latest tools, the most efficient workflows, or defining best practices.
But for whatever reason, many of you have yet to subscribe to the channel.
If you're enjoying the podcast and want us to continue to bring you the very best content, please do us a favor and hit that subscribe button.
It really does make a difference and lets us continue to improve the quality of our guests and build an even better product for you.
All right, back to the episode.
One more question and then we'll jump into your talk.
For our audience listening, they most likely have an existing agentic setup.
They probably have a bunch of, you know, maybe some skills, but definitely a bunch of prompts that may be shared and that they use probably quite regularly.
What would you...
what would you recommend the first change they make next week to improve their general setup?
And how should they measure it?
How can they identify that?
Actually, yes, this has made a tangible improvement to my day-to-day work.
Right.
Okay, so assuming that we are in a scenario where the team already has some shared skills and that they are using them and so on, I think...
one step, if they haven't done it yet, will be to centralize those in a catalog.
In a shared catalog where everybody can go, can read them, can see them, can work in improving them, and can source them from there.
And that creates already this inner sourcing kind of motion around those skills and that practice.
The second one after that will be, let's put some governance around that.
And I'm thinking particularly about large regulated industries.
Once you have that, then let's define a policy of what skills need to absolutely be there depending on the task, on the project, on the team, which ones you don't allow, which ones you allow in, right?
So that they can work towards some level of standardization.
And who owns that?
Maybe that's probably determined by the scope.
of that skill whether it's org level, team level, department level.
Do you see the platform team maybe stepping in and owning those kind of things more as a, hey, we're providing this as a service to agentic developers?
I totally see the platform team as the one spurheading the effort around a skill catalog, around some level of governance at the enterprise level.
But then you are right.
Then it depends on the department, on the team, even at the project level.
Or individually even.
Or individually.
And in APM, you can do this with the policy engine.
You can have a cascading inheritance of policies at repository, team, organizational level, and so on.
And this mimics very well what we were doing with platform engineering so far.
Yeah, amazing.
And how does someone recognize whether that change will actually have a positive impact day to day, obviously?
We have a lot of anecdotal, oh, this worked this one time, it's going to work every time.
How do we actually genuinely know?
So once you have built that standardization, that first platform, then observation becomes the next unlock.
You unlock observability as well, right?
Because you can start acting on it.
At the moment, that requires ingesting a lot of logs from the coding agents to see, okay, which skills are being used where and what happens when they are being used.
So the same as we were measuring under DORA before, you know, before the AI era, here we are going the next level.
We are measuring the skills that are, we are looking at the skills that are being used and we need to connect those to the same DORA outcomes or whatever framework that's being used, right?
And when we see that the metrics that are important to us, like whether that's throughput of PRs merged by week, by developer, or whatever that is, then we can say, okay, this brought a positive impact.
Okay, so Daniel, let's project ourselves into the future slightly and say, we've got a team now, they've got their factory, it's built, it's working nicely, it's effective, it's performant.
What does that leave then?
What do we do as developers beyond that?
Right.
So there are two things that I see clearly today.
One is there is going to be an operations team taking care of that factory.
Same as we had DevOps teams taking care about the DevOps practices and the DevOps infrastructure, we're going to have that.
And that's not per project.
That's across an organization, across departments.
It can be.
I can see a place where we may have...
tens of different factories working at the same time in an organization.
The same way we have different DevOps pipelines operating per project, right?
So there are going to be differences there or variations.
But the second thing is, okay, so then where does the developer then focus on?
I think we're going to move to a place where we're going to be focusing on, first of all, intent and decisions.
intent and decisions, which is what should we develop and why?
What should we ask our factory to develop and to ship and why?
And so the focus is going to be much more put into humans talking to each other, exchanging ideas of what should we build and how will this help our users?
And I think that's an exciting place.
I do agree.
Have you not just described a DevOps platform role?
And a product manager role, though?
Kind of, right?
I think I like to stay yet at a place where we deconstruct those labels from the past and wait to see what are the new labels of the future.
Because when we stay with the core ideas, I think we are freer to invent what's next.
Amazing.
Now, Daniel, you haven't given your session yet at AI DevCon, so I'm going to ask...
present Daniel here to introduce future Daniel who's going to present on stage.
What are the topics that you're going to be talking about?
And please introduce your session.
Right.
So, you know, the session is titled version your factory, not just your code.
That's the opening, right?
And the idea behind that is that there is one element that's missing today from the plethora of agent primitives like skills, MCPs, and hooks, and so on.
And that's something that I call agent contracts.
Like, what's the single unit of work that helps you build a factory?
And that's what you are calling loops in TESA, right?
But from there, I will go into what is missing for enterprises to close the trust gap and start operating agent software factories in production.
And that's going to be all related to things like, you know, the security, the traceability, the integrity, the provenance checks, and the supply chain, basically, of an agentic software factory.
Daniel, massive thank you.
Really, really appreciate you joining us.
And over to future Daniel.
Thank you, Simon, and thank you for bringing me here.
Excited to present very soon.
Thank you.
All right, so...
Hello.
So I just wanted to say that from, you know, what my role is, I'm not in engineering or product.
I'm in solution sales, in technical solution architecture.
So my organization is all about advising large enterprise organizations on adopting AI calling agents and transforming towards agentic SDLC, right?
And that's been the core of my work throughout GitHub, now Microsoft.
And I'm going to talk a little bit about...
why we need to version factories, and where does that lead us?
And that's going to be coming from experience in the field with large enterprise, often regulated organizations.
All right, so let's think that we are in a bank, right?
We are developing software for a bank, which runs maybe its own core banking system, and we are tasked with creating a change in code to change how payments work.
So I'm reading here, hey, we need to hold wires of more than $10K for internal approval for whatever reason, right?
And let's say our factory generates this pull request.
So the question is, will you auto-merge it?
And I'm pretty sure every bank today will say no, right?
And we can have risk classifiers.
We can have verifiers.
We can have a lot of these things.
The answer to that question will very likely be no for some time.
And what I'm going to focus on is what do we need so that this can be auto-merged one way, one day, confidently.
All right, so recapping, I think by now we all know what an agentic software factory ideal or concept is.
We get the intent in.
Our agentic software factory runs an automated agentic process to basically transform this into Code changes.
Now, the problem with that is that we create new bottlenecks, and this has been repeated over and over yesterday.
One of those bottlenecks is CI.
We get so many pull requests.
CI runs everything again, and this becomes a bottleneck.
And the other one is us, humans.
And we just heard in the keynote that we need to remove all humans, right?
And if we don't do this, agentic software factories cannot scale in large organizations either.
So that's another piece of the problem that we need to solve.
Today, we seem to be converging on the idea of a risk classifier, which is basically, hey, we identify what the code change is changing and then route it to a human only when the risk is justifying that.
But this is, as I said before, this is not enough for large regulated enterprise organizations, right?
Even when we auto-merge in this scenario, then there are a lot of questions about which Genentech software factory created that change, and do we trust it?
There is no trust yet, just based on a risk classifier.
Every single time I talk with large enterprises going through this journey, there are four elements that come up in conversations all the time about what's needed.
The first is verification.
How can we be sure that what the agent-is-over-factory produced as code meets the intent we have and does it well?
The second one is about, hey, did that code change, was that code change authored following our standards, our platform engineering standards, our compliance frameworks?
Did it follow our coding styles and so on, right?
which are often already in place.
The third one is traceability.
Like, you know, if I have a code change that I have merged that came from an agentic software factory that used I don't know how many skills, how can I trace that back?
If something goes growing in production, how can I trace that back to the skill that I need to improve or the factory that was compromised?
And the last one is security.
And it's a little bit related to the rest, which is, you know, agentics over factories become a new surface of attack.
And it becomes a very lucrative and a very interesting surface of attack.
Because now these agentics over factories are going to generate all the code, right?
They will remove all humans from coding.
So the security aspect is super important.
Now I want us to think about how we built trust for classic software before the AI era.
And how did we build that, technically speaking, right?
To me, software runs on a fabric of trust, kind of, if I can use that metaphor.
There are several elements that brought us to where we are today, where software runs a lot of mission-critical applications.
It all starts with versioning.
It starts with versioning, because versioning is about giving an identity to software artifacts.
The fingerprint.
Sure, we see version 1.0, 2.0, but behind that we have a digest and we have a fingerprint.
Once we have that, we can start creating the rest of the elements that compose this fabric of trust, like inventories, provenance, the evidence, right?
And we have created a lot of standards so far.
to standardize this and speak the same language when we check what should we run and what do we trust, what software do we trust to be run in our environments, right?
Like C-Clone, DX, SLSA, Intoto, and so on.
We invented signatures, and finally, ultimately, with all of the above, we could create admission checks, basically.
a policy that's unique to each enterprise, which says, all right, I'm going to check the inventory of the bill of materials of this software.
I'm going to check which organization created it and signed it, right?
And based on all those things, I'm going to validate that this software can run in my bank.
All right?
And so the question is, when a Gentic software factory generates software, where do we leave all of this?
Where is the fabric of trust?
Right?
I don't think we have a lot about that today yet.
So we need to build that.
And to build that, I like to think about a factory as an agentic program, as software.
Because we saw yesterday, for example, how short out of Tesla with the loops concept.
and some other vendors like ourselves with GitHub, automations, we call them automations.
At the end of the day, it's a bunch of skills, a bunch of prompts running a process that we have written in natural language, right?
And a factory is a collection of those that are chained together.
That looks to me like a program, like a software program chaining functions.
And so if it's a program, we should version it.
Because identity is the first thread of the trust fabric.
The other problem we have to solve today is that in the proto-factories we are starting to create, we are gluing together a lot of loose parts, right?
We saw skills, prompts, scripts, maybe some proxies and elements on the networking layer, on the sandbox layer, environment layer, infrastructure layer.
It's a lot of loose parts, right?
So we have...
all those loose parts with which we can compose a factory and build that ourselves.
And the other alternative is just go with a vendor, right, which are starting now to propose a way to create factories, right, in the case of GitHub, it's automations, in the case of Tesla, it's loops, in the case of Codex, no, our cursor, it's also automations, right, but that's getting us locked in, right?
It's a nice UI, UX, and so on.
But once we build our factory there, it's very hard to take it somewhere else and run it in another hardness one day, right?
So what's missing in between, in my opinion, is a single, unique way, standard way, to define the smallest element that defines a unit of work, of agent work.
What do I mean with this?
This metaphor, I think, is going to make us converge.
So I call it agent contracts.
I don't call it automations.
I don't call it loops.
I call it agent contracts.
In the same way that when we sign up for a job with a company, we sign a contract, I do think that what can help us standardize and make software factories portable are agent contracts.
A simple markdown file where...
We define the assignment, or we admit, we basically have as input, external input, the assignment.
The assignment can change.
One day, the agent can be asked to perform one software change in one piece of software.
The next day, another one.
But what doesn't change is the role.
The role in which the agent sends itself for in this contract.
The dependencies, what's made available for the agent to perform this job.
And the budget, like how much are we happy to pay for, right, for this job to get done.
It resembles a lot the kind of work contracts that we sign in real life, right?
And what we get back are the results of the checks, the verification, and the deliverables, like software changes or change dips of pull requests, right?
So once we are able to define agent contracts, in a simple markdown file with frontmatter.yaml or, you know, that's a possible format for it, then we can version it.
This contract can link the skills and everything that's required for the agent to do the job.
And it becomes a program, an agentic program.
It becomes a program that is versioned, that allows composition.
We can start composing contracts between themselves.
It allows portability.
if more harnesses and vendors accept it.
And it's identifiable, and it allows us to start building the fabric of trust.
All right.
So a factory can be thought of as a graph of contracts.
Like if we have an agent contract that's for planning, another one for specification, then another one for building and implementing the actual code for documentation, for reviewing, for...
a lot of different tasks, we chain them together, and we have our factory.
We give it a version, we get the fingerprint, and we have the identity of the factory.
And so if a factory is a program, then once we have that definition, what runs it?
And so I want to get it to run right now.
So let's imagine we have basically the the pull request example that I showed at the beginning, the intent here defined in Markdown.
Whole large wires to new payees, right?
This is intent.
It can come in the form of an issue, of a Markdown file, of a message from a colleague on Slack, of whatever it is, right?
I have defined here.
I have defined it here in a Markdown file.
So here we have that, right?
And this is our core banking.
software, Contoso payments, whatever.
Okay?
Great.
And then we have our factory.
These are all public repositories.
You will get access to that later.
And so in our factory, we have a contracts folder.
And these contract folders, we have a bunch of contracts from the graph that you've seen before.
And for example, the build contract, which specifies, hey, As input, I need the intent, the request.
Then the specification from the previous contract.
I will produce a diff, and I will import this specific skill.
And I have this budget, and so on.
And this is the role, the role of the agent contract.
All right.
So those are our program files.
And then we have this APM YAML file.
which can be thought of as a package.json file in the NPM world.
This is from Agent Package Manager, and it's defining our dependencies.
Like, what are the skills that are required for me to run this factory?
And once we have this manifest here defining the dependencies and they get installed, then our contracts can link them, import them as modules, as we do in usual programming languages, right?
And so with that, I'll use APMX, and you can see the analogy here to the NPM world or UV or whatever, right?
We have NPM, NPX.
We have UV, UVX.
You can see the analogies, and I will use that to run the factory.
And I will run it, and I hope you can see that in two terminals.
One is going to basically run the factory on Copilot as a harness.
I'm going to launch that right now.
And on the right-hand side, it's going to run it on open code.
All right?
And you can see that the first thing that's happening is that agent package marrier, which is akin to NPM, is reading the manifest, installing the dependencies, locking them in a log file, and then the factory can run as a program.
And we can see here the chaining of the DTHRM contracts.
The first one is called planning being run on the hardness of choice.
So this is a demonstration of how we can have a portable open format that can eventually run on any harness.
I will leave that running, okay?
And let's come back to the presentation.
Okay, so APM, I have introduced that briefly.
It's a package manager for agents.
It's an open source project.
I started that independently, and then as I am employed by Microsoft, I transfer it to the Microsoft Open Source Organization.
The intent here is to move it to a neutral foundation, working on that, and the idea is pretty simple.
We have a manifest with the dependencies, we have a log file that's generated when we install, and then we can create a policy in the enterprise which says what are the dependencies we want to allow in and what are the dependencies that we want to deny and many other cool things.
And so APMX is about running these...
modules as programs, the contracts as programs, right, which depend on scales, MCP, hooks, and whatever it is, right?
So we can run it on any coding agent, and as a result, we are going to get our pull request, our diff, but we are also going to get a receipt.
We are going to get a receipt, and that's the second important element here.
One is the contracts, and the other is the receipt of the run.
And so why is the receipt important?
All right.
Let's go back to how this works.
We get intent in.
We have the factory as a chain of contracts or loops or automations or whatever it is.
It generates the diff, of course, but also the receipt.
And the receipt is signed.
The receipt is signed by whichever machine which runs our factory, which we choose to trust as the runner of our factory.
Then we have our rules, our policies.
which define, hey, which factors do we trust?
Which skills do we allow in?
Which ones do we deny?
Oh, we heard about a skill that was compromised.
We're going to deny it there, right?
It's our set of rules.
And then we have a gate, and that's typically implemented in CICD in the pull request targeting main, right?
Those are the checks that can run in CICD.
And I've chosen to implement that as a demonstrator with a command that's APMX audit.
It's just going to read the receipt, read the policy, check whether there is alignment between those, and block the pull request or auto-merge it.
All right, so let's look at the receipt.
The receipt is based on open standards that we all know about in the software supply chain world.
So if we look at the first block, that's based on SLSA provenance, and it gives us traceability.
It allows us to understand that the output, the div that was generated, comes from this factory.
Because they are chained through their fingerprints, through the digest, right?
The versions, right?
Then we have the results of the checks, the checks that have been defined in each contract and are immutable by the agents.
The agents cannot change those checks.
Remember that agents cannot be trusted, right?
They can change the rules of the game.
So we need to also cryptographically change the results of the checks and the checks themselves in the receipt, in the evidence.
And that's based on in total.
And then we have our agent bill of materials.
It's akin to the software bill of materials.
It's about what's the composition of the factory, right?
And finally, we sign it.
We sign it with a trusted signer that cannot be the same machine that run the factory because we cannot trust the agents, right?
So it has to be something else, and that gives us security, right?
And ultimately, it's this receipt which allows us to build that fabric of trust, right?
So we get the identity as the factory version and fingerprint.
We get the inventory as the agent bill of materials out of the APM log file.
We get the provenance with SLSA.
We get the evidence within total thanks to the check results and the checks themselves, change to the receipt, change to the output, and we get attested provenance with the signature, and ultimately we can create a gate to auto-merge based on actual evidence, not just risk classification.
With a simple command, For example, APMX audit.
My goal here is not to position this tool or that tool, but what's needed, what we need as an industry to create trust.
So what happens then?
All right, so the model is pretty simple.
We have the receive, we have the gate, we have the rules.
We have a command, APMX audit, that we can run on pull requests as a check.
which is going to look at the evidence, look at the diff as the output, make sure that there is the integrity, the provenance, the checks passed, that there was no tampering, that we trust the signer, that the policy that we have defined is respected, and then we're going to have a result, either valid or invalid, right?
And that's the verification of, you know, that fabric of trust that we have chosen to basically accept, right?
All right.
So I'm going to move faster here.
Okay.
What this allows us to do is to basically forego human review, forego a lot of CI processes that are creating bottlenecks, and auto-merge, but not just based on risk classification and our personal confidence or various smart engineers we have hired who say, yes, I trust my factory, but actual evidence that we can trace back.
And then when an auditor comes in, because we are a regulated organization like a bank or a pharma company, if something goes wrong, we can point exactly at our controls that follow a certain regulatory framework.
We can point back to the skill or the factory that we decided to trust.
We can point back to what went wrong, and we can take action.
And we can place the responsibility where it has to be.
All right, so there are several questions that this, Approach help us answer, right?
So for example, production broke.
And so if production broke and everything in production was built by a factory, then the question is, which factory is responsible and which step precisely?
Well, because we have this receipt that changed the outputs to the evidence, then we can trace back from the source code back to the receipt and back to the factory.
Thanks to the versioning, which starts everything because it assigns an identity.
Another question we can answer is, hey, a skill in the open source world that we are using was compromised.
So who's exposed?
Just look at the agent bill of materials of every single receipt that you stored, right?
And then find which factories are using those and patch it.
Revoke it in the rules.
The gate will start.
forbidding any output from those factories from going to production until you fix that.
All right?
Okay.
So then next question.
The checks passed.
The checks that we have defined in the contracts, which are exactly our quality bar now, they passed.
But did the agent change them?
Right?
We have seen agents gaming the checks consistently.
So, hey, checks lives in the contracts.
They don't...
They are not expected to be created by the same agent who work in the factory.
So they cannot be changed.
They are cryptographically tied into the receipt.
So if somebody tampers those, you are going to find out.
And they are enforced in the gate with the audit command.
So it's not possible to tamper those.
All right, and so let's imagine, hey, we want to add new checks because, of course, the checks at the end become here our bar for automerge, for trust, right?
So how can we ensure that they become mandatory?
Well, if we create new checks, this changes the factory, and so we can basically release a new factory version, right?
If we change the checks, which are tied in the contracts, then we have a new version of our factory.
If we create a new version of our factory, then we can go to our policy file and say, now we are only going to accept divs coming from factories above version 2.1, for example.
And so our APMX audit command, the gate, will forbid any output coming from older factory versions.
All right.
And so...
Well, there is another question that we can answer.
In the policy, we can also define, hey, what are the skills that the factories can use, are allowed to use?
Again, we have that policy in the rules.
The dependencies are tied in the manifest, in the log file.
We can check with the audit command, and we can gate based on that.
Those are just some examples of what this approach can help us with.
So now if I go back to the factory runs, I can see on the copilot run that the different contracts were run, planning, specification, build, documentation, review.
What allows the state to flow through the contracts is basically files.
So it's markdown files, it's divs, it's whatever files that go into disk.
So a contract generates files, another contract will consume those files.
We see it completed, and we can see the outputs it generated.
the receipt that was generated in an intoto file, and I can run the audit command quickly to show, hey, now, eventually, if we run this audit command, which should run in CICD, can we check that the integrity is there, that the provenance is the one that we decided to trust, that the text ran, that they were valid, et cetera.
So we can see that happening there locally.
Of course, here, We didn't sign the receipt, so the check doesn't pass.
Eventually, what we need to do is to add that command as a check to a pull request.
So I have here a pull request generated by the factory, and as a check, I have a single one, the audit command.
Eventually, we should have also code scanning and stuff like that, which runs the APMX audit command, and...
basically all the checks pass, the receipt is signed, it was signed by the environment which ran the factory.
You know, it can be CICD, it can be a Kubernetes cluster, it can be wherever you decide to run your factories, and that becomes a valid statement that allows us to say, okay, can we auto-merge this now, right?
And we have traceability and all those properties I spoke about.
All right, so I'm going to close.
by saying we seem to be all converging into something like some sort of definition of the smallest unit of what a factory is.
You know, Tesla was speaking yesterday about loops.
We have a lot of vendors speaking about automations and speaking about contracts.
What I do think is that we need a shared format.
If we do want portability of agentic software factories, we need a shared format, a shared standard.
And we need not to reinvent the wheel.
We created a lot of this fabric of trust in the past for classic software.
Let's not reinvent the wheel and use the lessons learned to build the same fabric of trust for agentic software factories.
And let's do that in the open.
So we need to define factories as code in an open format.
We need to version them because it all starts with versioning, which is identity.
And we need then, we can then gate on evidence, on actual evidence, and we get the trustability, the provenance, the portability.
We skip CI.
We skip PR reviews.
And I think this is how agentics overfactories can scale to large regulated enterprises.
All right.
So this is a proposition for an open format that I have published.
It's a draft.
I think this is the perfect conference to invite you to participate in the conversation.
I hope that from there, we'll be able one day to say, hey, we're going to change the payment systems in the bank, and we can even auto-merge.
All right.
Thank you very much.
With that, I leave you with the QR code for all the content.
Thank you.
And any questions, I think we have one minute.
All right.
Thanks.
Thank you.
I need to talk to you about the content.
Thank you, Daniel.
That was an amazing session.
Thanks.
Are you going to be doing questions now or do you want to take them off the stage?
If we have time, then I can pick a couple of questions.
Has anybody got any questions you want to ask Daniel now?
Oh, there we go.
I'll come down.
Let me come down.
I can do the exercise.
So as part of the checks that you're defining as part of these agents, first off, I love the kind of OPA design of all of this.
I think that makes a ton of sense.
But in regards to the checks, Are you kind of alluding to them almost being a replacement more for unit and integration tests in that, or is it more specific kind of like eval assertions of the specific code that you're producing as part of that individual agent execution?
Yeah.
Yeah, so the checks have to be deterministic, in my view.
The checks that you define in a contract ought to be deterministic, because that's...
That's basically the harness around the model that you can basically trust, that elevates trust.
So a check could be, hey, what is, if we have a contract for writing specifications, then maybe there is a specific format in which you want to make sure that the specifications are written, right?
So that could be one check.
If you have a contract for performing pull request reviews, then maybe it's about the format, maybe if you have one for building divs.
actual code, then maybe it's about, hey, you can attach this piece of code, or you have to follow this style, so linting, and stuff like that.
Your CI passed into staging and so on and so forth.
So I just confirmed what we were kind of saying, like, it helps reduce the load on CI.
Exactly.
How that kind of intersects with main key to this change.
It's like one of the problems that we suffer with is that, like, CI ends up in a curve because main changes.
The idea is that you skip running the checks again in CI because you have the evidence that they have run.
You have trusted evidence sign that they have run and they have passed.
So the idea is that you don't need to run them again in CI centrally.
So shifting left, testing as much as possible in a trusted way.
Cool.
You got one more?
Sure.
Hello.
Waterfall was a bad idea for humans.
Why would waterfall be a good idea for AI?
Sorry, can you, because there's a lot of echo.
I didn't hear you well.
So waterfall was a bad idea for humans.
Yeah.
Why would waterfall be a good idea for AI?
So, you know.
I think Waterfall did very well in some situations, still does well in some situations, and I agree with you that it's not a solution for everything.
I think your question comes from the graph that you've seen, which seems to be a Waterfall approach.
I do think we are going to see forms in which there has nothing to do with Waterfall.
Even when you do Scrum and all this, you follow a certain approach to something.
We are speaking about automation here.
I agree with you that Waterfall is not the answer for everything, and this was just one example.
I think we can very likely be able to model another sort of process in the form of contracts as well.
Great session, Daniel.
Thank you so much for presenting that at AI DevCon.
And of course, by the time that you're watching this at home, DevCon has officially finished.
but every single session has been recorded.
And you can click on the QR code on screen or in the show notes if you're listening on audio only.
That'll take you directly to all the recordings at AI DevCon in New York.
Thanks for listening.
Bye for now.
The AI Native Dev is brought to you by TESOL, the package manager for skills and context.
Your hosts are Guy Pajani and me, Simon Maple.
Our producer is Tom Dowler.
The AI Native Dev is not just a podcast, it's a community, and we host monthly meetups at the TESL offices in central London.
Visit tesl.io forward slash community to learn more, and I hope to see you there.
