Systems & Infrastructure · Executive Essay

The Self-Hosted Software Factory Is an Operating Model

Owning the tools can reduce dependence on platforms, but it also makes the team responsible for the factory’s reliability and economics

Key Thesis

Self-hosting gives an organization more control, not automatic savings or better software. Treat the factory as an operating model, and measure accepted changes, review effort, reliability, and total cost.

A software factory can be built to reduce dependence on software vendors, yet doing so makes its builders responsible for more software. That is the productive paradox behind the self-hosted development factory described by Dmitry Kudmitry, and behind the Hacker News debate it prompted. The question is not whether agents can write code. It is whether an organization can reliably turn a request into a reviewed, recoverable change.

In my experience across software platforms, advertising systems, and machine learning, automation rarely removes work in a straight line. It moves work to the next constrained stage. When code generation gets faster, integration, testing, review, and operational ownership become more visible. A factory is therefore not a room full of agents. It is the whole path by which intent becomes software that people can trust.

The factory is a chain, not a model

“Self-hosted” can mean that source code, orchestration, models, and execution environments run under an organization’s control. But control is not the same as independence. A private system can still rely on external model providers, scarce hardware, open-source maintainers, and a small group of people who understand how its parts fit together.

The useful unit of design is the change, not the agent. A request needs a clear scope, access to the right repository and context, bounded permissions, a way to run tests, and a human decision at the point where judgment matters. If any link is missing, the system may produce more activity without increasing the supply of dependable changes.

The basic flow looks simple. Its complexity lives in the boundaries: what an agent may read or modify, what evidence qualifies a change, and who owns recovery when a step fails.

Intent scope Agent change Evidence tests + review Operations deploy + recover feedback, policy, and learning return to the next request

A team should be able to point to a control at each boundary. That does not require every action to receive manual approval. It does require a deliberate account of permissions, provenance, test coverage, and rollback, so speed does not depend on pretending that generated code is self-validating.

Autonomy has a cost curve

Self-hosting changes the economics from a mostly visible per-use charge toward a mix of fixed and variable costs. Compute, storage, engineering time, model operations, upgrades, and incident response all belong in the calculation. A system can lower an invoice while raising the less visible cost of maintaining a specialized internal platform.

The comparison below is a directional planning rubric, not measured industry data. Scores run from 1, less favorable, to 5, more favorable. The actual result depends on workload, staff, model access, and the value placed on control.

DimensionManaged serviceSelf-hosted stackHybrid design
Initial setup effort523
Control over data and runtime254
Operational burden for team413
Cost visibility at low usage423
Flexibility across workloads345

The central economic question is utilization. Dedicated infrastructure and a specialist team make more sense when usage is steady, requirements are specific, and the organization can support the platform over time. For a small or irregular workload, fixed costs can outweigh savings. A hybrid approach may keep sensitive execution local while using managed capacity where it is cheaper or more capable.

There is a second curve: the value of human attention. If agents generate changes faster than engineers can understand and evaluate them, the factory has merely moved the queue. Measure cost per accepted change, but pair it with review time, defect escape rate, rollback frequency, and the share of work that engineers must substantially rewrite.

Ownership requires boundaries

The appeal of self-hosting is not only economic. In advertising, healthcare, and enterprise software, data handling and auditability can shape what work is possible. Keeping more of the development process within an organization’s control can make those obligations easier to define, but only if access, retention, model use, and logging policies are explicit.

More machinery does not automatically create more trust. A team needs to know which model produced a change, what context it received, what tools it used, which checks ran, and who approved the result. These records are useful for governance and debugging, but they also need limits: indiscriminate retention can turn an internal factory into a new source of sensitive data exposure.

A durable factory is less an agent swarm than a workflow whose decisions, evidence, and recovery paths remain legible to its operators. That is why the most consequential design work often sits outside the model: defining task boundaries, separating environments, setting permission levels, and deciding how a failed or suspect change is contained.

Optimize for accepted change

A practical starting point is a narrow, repeated workflow with a clear definition of done. Choose work where the context is available, the checks are meaningful, and failure is easy to detect and reverse. Measure the baseline first, then compare the factory against it over enough changes to expose variation rather than celebrate a single successful demonstration.

That baseline should include the full cost of a change. Count infrastructure, model use, platform maintenance, review and rework, and incidents. Track lead time from request to accepted change, but do not let a shorter cycle time conceal lower quality or a growing burden on senior engineers.

The best architecture may combine self-hosted orchestration, managed models, isolated execution, and human review at selected gates. The right split can change as models, prices, policy, and internal capabilities change. Treating that split as a product decision, with an owner and an evaluation cycle, is more robust than treating it as a one-time infrastructure choice.

Factories earn their name through repeatability, not autonomy. If the system helps people deliver safe changes with less friction, while making costs and responsibilities easier to see, it is creating real leverage. If it only makes code appear faster, the organization has automated production while leaving the harder work untouched.

References

Discussion (3)

Marcus Chen Staff Storage & Kernel Engineer · Seattle, WA

Code generation speed just shifts bottleneck to review capacity. We measured pull request latency. AI-assisted PRs arrived 3x faster but wait times for senior engineer review grew 5x. The factory's throughput is still gated by human judgment bandwidth.

Chris Lindholm Embedded & Robotics Systems Lead · Pittsburgh, PA

This echoes the shift from mainframes to distributed systems in the 1980s: control didn’t mean autonomy. We moved from centralized, brittle infrastructures to decentralized, self-managed clusters, only to face new complexity in coordination, observability, and recovery. The self-hosted factory isn’t a step toward simplicity, it’s a reset of burden.

Like early Unix, the real win isn’t the tools, but how you measure whether a change sticks. Reliability, trust, and human oversight matter more than automation velocity. A system that produces 100 changes a day but breaks twice a week isn’t productive. It’s just noisy.

Samir Al-Mansoor LLVM & Runtime Engineer · Raleigh, NC

Your mainframe analogy is correct. Distributed systems didn't eliminate complexity; they redistributed it into the network stack, making failures partial and harder to reason about. The self-hosted factory does the same: it trades vendor lock-in for internal coordination overhead and hidden failure domains. Measuring what "sticks" means instrumenting the entire chain, not just the output.