Before the software factory: the parts it is made of ==================================================== Page address: https://yotamfromm.dev/developer/blog/software-factory-foundations/ Updated: 2026-11-26 Markdown version: https://yotamfromm.dev/developer/blog/software-factory-foundations.md Site map for agents: https://yotamfromm.dev/llms.txt Software factory is a buzzword for all the components of a development flow running together. Twenty components in six groups, and where more than a hundred sources disagree on each one, from Stripe and Uber to research papers and the Defense Department. שולחן עבודה ועליו עשרה חלקי מכונה מסודרים בשורה, כל אחד מסומן בתווית, ולצידם מסגרת הרכבה ריקה שמחכה להם (https://yotamfromm.dev/media/software-factory-foundations/cover.webp) Software factories are everywhere in what I read and hear right now. There are levels of autonomy to climb, dark factories where nobody reads the code, and diagrams of agents handing work to other agents. Software factory is a buzzword. In the end it means one thing: all the components of a development flow running continuously, in sync, from the task to the lesson learned after release. That is why the work starts with each component on its own; once each one is set up properly, you have the infrastructure for a good software factory, and if they are not ready, there is no point in talking about a software factory at all. This post opens a short series. Over the last weeks I gathered more than a hundred and twenty sources on how people build these factories: engineering blogs from Stripe, Uber, Spotify and Ramp, OpenAI's account of building a product with no hand-written code, research papers on verification and agent quality, Defense Department guidance, vendor guides, and the setups of people who run a factory alone. Two Hebrew sources walk through a whole flow from end to end: a talk by Sahar Carmel (https://www.linkedin.com/in/saharcarmel/), co-founder and CTO of Trove, and the episode of the podcast סוכני הבינה (https://habina.ai/) (AI Agents) with Oren Shir and Nir Ben David, פרק 34 - איך בונים AI SDLC בדרך ליצירת Software Factory (https://podcasts.apple.com/il/podcast/id1827765376?i=1000799503279). They are two voices among many here, and on almost every component the other sources disagree with them and with each other. Even the people who build them call it hype The term does not name one thing. Incident.io counts three meanings (https://incident.io/blog/what-is-a-software-factory): a Japanese process discipline from the late sixties, the Defense Department's pipeline platforms, and the new factory run by agents, and it tells buyers to ask which one a vendor means. There is even an IBM patent (https://patents.google.com/patent/US8359566B2/en) for a software factory that assembles semi-custom software from stored work packets, with no AI anywhere in it. The Agentic AI Foundation would split today's version into three separate factories (https://aaif.io/blog/the-infrastructure-factory-a-foundation-for-agentic-ai), software, AI and infrastructure, and its author admits the whole thing could just be called the platform. The people who build them lower the volume too. Sahar says he does not think there is a clear definition, and that most companies claiming one are there only at the margins. Sonar, which sells code verification, defines a factory as an operating model (https://www.sonarsource.com/resources/library/what-is-an-agentic-software-factory/) rather than an architecture, with one rule worth keeping: give a loop only as much autonomy as you can cheaply and reliably verify. The podcast settles on a modest name for the engine itself, a coding factory that turns intakes into pull requests. Why it matters is the same in most of them. A paper from Microsoft, Madison and GitHub researchers on an AI software factory for data systems (https://arxiv.org/abs/2609.36323) applies Amdahl's law: speed up only the coding, and the whole delivery barely moves. The slow part moved to the requirements, the context, the review, the testing and the release. A factory is the attempt to speed all of them up together, and that is exactly why it falls apart when one of them is weak. Twenty components in six groups To compare what all these sources do, I sorted their practices into twenty components, grouped by where they sit in the flow. This is the same breakdown I use in the artifact I built from the research: PLAN intake triage and priority spec and requirements planning and decisions FOUNDATION context and knowledge workflow orchestration execution environment security and governance human roles BUILD agent topology, routing implementation loop VERIFY verification and tests code review SHIP merge gates deploy and release monitoring after release LEARN run records the learning loop metrics and cost model upgrades, evals Plan, build, verify and ship run in order for every task; the foundation runs under all of them, and the learn group feeds what happened back into the plan. Each component has several real options. This post shows, group by group, where the sources split; the next posts open each component with all the options I found and the one I would pick. Plan: who answers the open questions Every factory needs a door through which work comes in. At Stripe, tasks arrive from Slack threads, bug reports and feature requests and run through fixed blueprints; InfoQ reports (https://www.infoq.com/news/2026/03/stripe-autonomous-coding-agents/) that Stripe's Minions produce over 1,300 pull requests per week, all reviewed by humans. The data-systems paper goes further and gives targeting to an agent, which picks work by a metric it can measure, such as query latency. The sharpest split in planning is who resolves an open product question. A community spec-first guide (https://github.com/FlorianBruniaux/claude-code-ultimate-guide/blob/main/guide/workflows/spec-first.md) chains three documents, intent, spec and plan, each approved before the next, and has the agent interview you first. Callstack went the other way after two overnight runs stalled (https://www.callstack.com/blog/building-a-software-factory-the-night-my-agents-waited-for-me) waiting for a human: the orchestrator now makes a reversible product choice, records it as a decision taken, and keeps going. Sahar sits between them: the ticket holds only the problem and a direction, and the agent asks him its questions during planning. The podcast adds a step before any human is woken: a gap analysis against the existing repositories, questions with three ranked answers, and advocate agents that attack the plan for a few capped rounds. Foundation: the layer under every station The foundation decides what the agents know and where they run. OpenAI's harness engineering (https://openai.com/index/harness-engineering/) post is the clearest voice on context: give the agent a map, not a manual, a short AGENTS.md of about a hundred lines that points into a docs folder kept fresh by a doc-gardening agent. The podcast hosts want a fixed set of files in every repository plus one central context repository, and they disagree with each other about how exhaustive the architecture file should be. Uber went to scale: it puts all its tool servers behind one gateway and grounds agents in a context graph (https://www.uber.com/us/en/blog/efficient-software-factory/) that spans dozens of systems. Orchestration splits on how much the model is allowed to decide. Stripe's blueprints mix agent steps with deterministic steps the model cannot override, and Dotzlaw's analysis (https://dotzlaw.com/insights/ai-04-stripe-minions-deterministic-rails/) gives the reason in plain arithmetic: small error rates multiply across a long chain of steps, so every step that can be checked objectively should be code. The execution environment splits the same way, from a laptop to Ramp's sandboxes (https://www.zenml.io/llmops-database/building-a-full-context-background-coding-agent-with-sandboxed-development-environments), where each agent session gets the full application stack and a browser for screenshots. Security is where the older meaning of the term comes back. The Defense Department's AI-in-the-SDLC play (https://code.mil/AI4SDLC/plays/ai_sdlc_workflows-play/) grades autonomy per task, from suggesting code up to merging and deploying alone, says the top level is not recommended for most environments, and treats agent instruction files as security artifacts under version control. GEICO's engineers argue that gate-based security (https://www.geico.com/techblog/the-agentic-sdlc/) breaks when agents iterate hundreds of times a day, so checks have to run inside the loop. Build: one agent or many Most people start here, and it is the least settled group. Sahar fans a plan out to parallel lanes, each planned by a strong model and built by cheaper ones, with one agent integrating at the end. Stripe goes the other way: each Minion gets a curated slice of tools and at most two CI rounds (https://www.anup.io/stripes-coding-agents-the-walls-matter-more-than-the-model/), then stops at a pull request, and the point, in Anup Jadhav's reading, is that the walls matter more than the model. The podcast describes medium tasks that run for hours in a loop of implementation, tests and reviewer agents, and argues for judging the factory by throughput rather than by the latency of one task. Model routing has its own split. Uber cut cost partly by giving subagents weaker default models; Factory's droids, as Developers Digest describes them (https://www.developersdigest.tech/blog/factory-ai-droid-model-routing-costs), let you set different models for the worker and the validator. METR adds a warning from outside the vendors: agent swarms (https://metr.org/blog/2026-11-20-q4-2026-capability-update/) help on tasks that can be verified and split, and elsewhere add coordination overhead and spread wrong assumptions. Verify: does a human read the code This is where the sources disagree most openly. A pre-registered study, Who Verifies the Builder? (https://arxiv.org/abs/2610.28667v1), shows why tests written by the same agent that wrote the code are not independent evidence: a verifier in a fresh context caught more of 46 seeded faults, and the final release decision stays with a human. A spec-first proposal for verification agents (https://arxiv.org/abs/2611.02285v1) goes the other way, to zero code review, where humans read only the specifications and the telemetry and a small proof kernel checks the code against them. Practice is split in the same way. Uber, in an interview with The Pragmatic Engineer (https://www.youtube.com/watch?v=MDUYSMJmi8A), still has an engineer review every pull request, and plans a green lane for low-risk changes only once risk scores are back-tested on years of data. Sahar does no human code review at all and calls QA the biggest enabler of a factory: a preview environment per pull request and small agents that test the user flows and post screenshots. The cost of skipping that work shows up in the data. Ideatives, compiling Faros telemetry (https://ideatives.com/briefs/ai-written-code/) from twenty-two thousand developers, reports that median time in PR review rose 441.5% between each team's lowest and highest AI-use quarters, a vendor figure and a correlation, not a proven cause. Ship: how much gate is right OpenAI keeps merge gates minimal in its harness, because corrections are cheap and waiting is expensive. The Defense Department play sits at the other end: an agent may open a pull request but not merge it. Between them, Firecrawl's survey (https://www.firecrawl.dev/blog/ai-software-factory) of other teams' factories tiers merge policy by blast radius, from automatic merges for mechanical changes up to two human reviews, and the podcast suggests a risk router: let changes to internals pass, and look in person at anything touching the database, tokens or endpoints. Deploy and monitoring are the thinnest groups in almost every source. GS Consulting (https://gsconsultingllc.com/insights/dod-devsecops-reference-design), writing about the Defense Department's reference design, wants release, delivery and deployment kept as separate records, so an approval is bound to an exact artifact. Callstack's agents may not merge, force-push or release at all; a script checks readiness instead. Sahar tries the feature himself before telling the agent to merge, and keeps the session watching production for an agreed time. The podcast hosts admit this part is still immature and leave it for a later episode. Learn: the loop that improves the line The learning loop is the component I think matters most, and the one most companies miss. The podcast's version runs when a human approves a pull request: a retrospective agent compares what the human corrected with the context the agents had, and opens pull requests against the documentation for the owning team to approve. Entelligence, a vendor, reports a loop that turns review comments into lessons (https://entelligence.ai/research/self-improving-coding-agents) and fewer comments per session afterwards. The principle behind both is that every human intervention is a bug report on the factory. Measuring it is harder than it looks. Siddhant Khare points out that the headline numbers from Stripe, Ramp and Spotify (https://siddhantkhare.com/writing/building-an-internal-platform-for-ai-agents) are not comparable, because each counts a pull request differently. Uber's own figures show it: the official post says more than 70% of PRs are attributed to local or cloud agents, while the interview says about 15% of production PRs go through the background agent Minion. They measure different things. A large study of agent pull requests in the wild (https://arxiv.org/abs/2609.17598) found Codex PRs were reverted 6.1% of the time versus 11.5% for humans, and some other agents did worse than humans, so quality depends on the agent, not on AI in general. And when a factory upgrades its models, METR warns that model judges overrate output from similar or stronger models, which is a reason not to let a model grade its own replacement. Why each component comes first Put all these sources side by side and the buzzword dissolves into a list of components, each with real choices: who answers the open questions, how much context, one agent or many, whether a human reads the code, how much gate before a merge, and how the line learns. None of these choices is about the factory as a whole. Each is about one component, and each component can be weak on its own. If you connected all of them today and let the line run, the weak ones would not disappear; they would run faster, with no one there to catch what they miss. So before building a factory, look at each component in your own flow and ask whether it would hold if everything around it got faster. The next posts go deeper and more technical, one group at a time, with the options for each component and what I recommend. To follow them, subscribe to the newsletter on the home page (/) or add the developer feed (/rss/developer.xml) to your reader. At the end of the series I will share the artifact I built from this research, the tool I use to customise a factory for my personal projects and for my work. The same question has a side that is not about code at all: what do you do with the part of a system, or of a person, that does not work? I wrote about it in a more philosophical post in Hebrew, מפעל של נפש: לעקור, לשלוט או להעלות (/together/posts/factory-of-the-soul/), which runs the same question through the Stoics, Plato, Aristotle, Kant, Chazal and Hasidut.