Software Factory
Software factory architecture and pattern, stage by stage
July 8, 2026 - 5 minute read
Software Factory
July 8, 2026 - 5 minute read
A software factory architecture connects intake, context, planning, execution, review, delivery, and observability, so that a report becomes a tested patch, a controlled release, and production feedback. Consider a bug report that an API returns a server error when an optional field is omitted. The system must find the relevant contract, reproduce the failure, constrain the change, and carry the result through review and release. Production monitoring then checks whether the original problem has stopped.
For the definition of the model itself, and how it differs from Factory the company, see Inside the software factory.
An editor, a coding agent, and a CI runner can all participate in the same change. Their connection determines which repository revision is tested, what credentials the agent receives, and who can authorize release. Listing the products alone leaves those decisions unanswered.
A software factory diagram for this example would show intake, context, planning, execution, review, delivery, and observability as separate areas, and it is useful to examine them separately. These seven areas are an explanatory breakdown of responsibilities. A team may combine several in one service or distribute one across multiple systems. They are not a universal definition or a requirement to buy seven products.
For the API bug, the execution environment needs the repository and an isolated test service. It does not need a production database credential. The model endpoint must be approved for any code context it receives, and the release identity should remain separate from the identity preparing the patch.
Factory's software factory announcement describes the same stages as one loop. Signals from outside the system, such as bug reports, internal conversations, customer feedback, and business requirements, are triaged into planned changes. Those changes are built, tested, reviewed, secured, shipped, and monitored. Monitoring the deployed software produces the next signals.
The bug report in this example enters that loop at intake and leaves it as production evidence.
The same announcement names three properties a robust software factory needs. Model independence lets an organization choose different models for different tasks or route between them. Sovereign intelligence keeps control of where the system runs and what it learns. Continual learning instruments every stage, so a security finding can inform code review and an incident can be traced to the pull request that caused it.
Autonomy also varies by stage. Factory describes a spectrum in which Droids or skills handle well-defined, measurable tasks, Automations coordinate recurring workflows, Droid Computers run long-running or persistent work, and Missions handle complex work over hours or days. The omitted-field bug sits at the simple end of that spectrum. A migration that touches many services sits at the other.
Intake preserves the reported failure and the requested outcome. In this example, the task should include a synthetic request with the field omitted, the expected response, and the affected API version. Factory's remote delegations let a team start work from tools such as Slack or Linear, but the request still needs enough detail to investigate safely.
Context resolution connects that request to the route handler, schema, generated client, and existing tests. Factory's AutoWiki provides repository documentation that can help locate the relevant design. Droid still needs to inspect the current files and applicable project instructions before treating that documentation as the current contract.
The first useful result is a failing test that reproduces the report. If the schema says the field is optional but the handler dereferences it unconditionally, the mismatch is specific enough to plan a patch. If the expected behavior is unclear, the maintainer must settle the contract before the agent expands the change.
Planning identifies the smallest change that restores the contract. The API example may need only a handler fix and regression test. If the investigation uncovers dependent client changes, the plan also needs a safe compatibility order. Factory's Missions make planning and milestone validation explicit for larger, multi-feature work. A small bug fix can stay in a normal session.
Execution applies the patch and runs the required commands. The Droid CLI works with the repository and its toolchain. Factory's custom-model configuration changes the inference path independently of the working copy, so local file access should never be taken as proof of local inference.
For the omitted-field bug, test the absent field, a valid supplied value, and any invalid value the API promises to reject. Preserve the response shape expected by existing callers. A passing handler test should be followed by the integration check that exercises routing and serialization, because either can change the response the client receives.
Wipro's case study describes a solution architect starting application planning, implementation, and testing from a single prompt.
Review inspects the contract, patch, and test result together. Factory's Automated Code Review can apply repository-specific review guidance. Deterministic tests, security checks, and branch protections remain separate controls. An AI review finding can help a maintainer investigate, but its absence cannot prove that every policy or failure path was checked.
Permission boundaries also apply before review. Factory's agent controls describe command restrictions, sandboxing, and secret-detection mechanisms. Configure them alongside repository and infrastructure permissions. A prompt requesting a harmless patch does not remove the consequences of an overprivileged execution identity.
Delivery takes the reviewed revision through the existing build and deployment process. Droid Exec can participate in CI, with mutations opt-in, without granting the job authority to ship production changes. The release record should identify the artifact actually deployed and the checks performed after deployment.
Observability closes the example by checking the affected API behavior after release. Monitor the relevant error signal and exercise a synthetic request with the optional field omitted. A reduced aggregate error count alone could hide a remaining failure on one route or client version.
Retain the report, starting revision, patch, environment definition, test output, review decision, and release artifact. Factory's compliance and audit documentation separates administrative audit events from operational telemetry. Customer OpenTelemetry metrics do not automatically contain a complete transcript or enough information to replay every action. Content export has separate privacy and retention decisions.
If production reveals a missing case, connect it to a new regression test and update the relevant instructions. That is the feedback that changes future work, rather than merely accumulating more logs.
CI/CD and monitoring already automated parts of delivery before coding agents. Droids add investigation and implementation capabilities within those systems. People still decide the required behavior, permissible access, and release conditions. Ownership follows the actual workflow, and no stage moves to an agent by default.
When selecting tools, follow one representative task across these boundaries. Check whether the same revision, compatibility decision, and validation result survive each handoff. The architecture works when the next person can explain what changed, why it was released, and what production taught the team.
It connects intake, context, planning, execution, review, delivery, and observability so a report such as a bug becomes a tested patch, a controlled release, and production feedback.
Signals such as bug reports, conversations, customer feedback, and requirements are triaged into planned changes. Those changes are built, tested, reviewed, secured, shipped, and monitored, and monitoring produces new signals.
No. Factory describes a spectrum: Droids or skills for well-defined tasks, Automations for recurring workflows, Droid Computers for long-running or persistent work, and Missions for complex work over hours or days.
No. The Droid CLI works with the repository on the local machine, while custom-model configuration changes the inference path independently of the working copy.
A failing test that reproduces the report. If the expected behavior is unclear, the maintainer settles the contract before the agent expands the change.
No. The release identity should remain separate from the identity preparing the patch, and the execution environment should not receive production database credentials.
Self-improving software needs evidence that a change removed a recurring failure. Factory’s published Signals research shows that loop with human approval before merge.
Luke Alvoeiro explains the multi-agent architecture behind Factory Missions. Explore planning, independent validation, structured handoffs, and selective parallelism.
C++ modernization starts with clang-tidy modernize checks and a compilation database. Coccinelle handles C API changes, c2rust produces a first unsafe Rust pass, and Droids fix the residue while compilers, sanitizers, and tests decide what ships.
Discuss your team’s software development, privacy, or deployment requirements.
Start building