AI Engineer World's Fair 2026
The Software Factory: From Bug Report to Production Code — Davis Palmie, Factory
Loading slides…
Read the talk
The Software Factory: From Bug Report to Production Code
Davis Palmie explains how agents can connect incident triage, planning, code, tests and deployment—and why the path to autonomy starts with shared context, narrow responsibilities and human judgment.
From a talk by Davis Palmie
At a glance
Ideas worth remembering
A software factory connects incident signals, planning, documentation, implementation, review, testing, deployment and monitoring; generating code is one step in that journey.
Start with a narrow, verifiable responsibility such as turning a Sentry alert and traces into a diagnosis for human review. Establish ownership and monitoring before connecting steps into a loop.
Model choice should balance task effectiveness, speed and cost, while deployment fits organizational policies and shared context connects the development lifecycle.
Documented builds, tests, reproducible environments, modularity, observability and security checks improve working conditions for both agents and engineers.
Humans retain architecture, strategy and validation responsibilities. Measure signal-to-production time, interventions, repair time, code shelf life and cost per PR rather than rewarding token consumption.
From completing code to governing agents
An autocomplete tool leaves the engineer responsible for nearly everything around the next token. A file generator moves more implementation into the model, but still leaves a human selecting and integrating its output. An agent changes that relationship: it can gather context, call tools and debug what it produces. Davis Palmie, a member of technical staff at Factory, opens with this progression to explain the next step: organizing agents into a system that takes bug reports and user feedback through to production code.
The abstraction ladder runs from tokens to files, then context and entire systems. Each step changes what the engineer controls. In the proposed software factory, engineers maintain guardrails, catch code drift and set priorities while agents execute work across the development process. The responsibility moves toward governing the machinery that produces software.
The first questions concern cost, model choice and responsibility
When agents produce a growing share of the code, model spending becomes an operating decision. The useful target is the least expensive model that meets the task’s effectiveness requirement. A routine task need not consume the same resources as a difficult one. Palmie preserves the point with an analogy attributed to Factory’s CEO: an algebra tutor can be cheaper than Albert Einstein.
Four questions frame the transition:
- Cost control. Access to multiple providers creates room to choose among different prices and capabilities rather than paying one rate for every kind of work.
- Access to capable models. Model selection can happen per task, potentially through dynamic routing, instead of requiring an organization to commit permanently to one provider.
- Engineering responsibility. Engineers build and maintain the system responsible for producing code, and set its direction. That brings product decisions closer to engineering work.
- Organizational responsibility. Context must cross team boundaries. Product, engineering and other teams share responsibility for the information and practices the factory depends on.
Connect the work around coding, starting with incident triage
“Coding was the easy part” is Palmie’s provocation. To test it in an organization, look at the time spent reviewing pull requests, reproducing bug reports, debugging, updating documentation and maintaining tests. His claim that the wait from written code to production can dwarf implementation time is a hypothesis to check against those engineering metrics, rather than a measured result presented here.
Those delays are connected. Documentation can fall behind code or strategy; tests can reflect assumptions that product plans have already changed; dead code can remain because nobody has enough context to remove it. An agent operating across these teams needs to bridge their services and understand the organization’s conventions. Otherwise, faster implementation feeds work into the same disconnected review, testing and deployment process.
A software factory therefore spans the journey from an input signal to production deployment. Its responsibilities include incident triage, planning, documentation, implementation, review, testing, rollout and release monitoring. That scope is also the reason to begin narrowly: automating everything at once gives teams little opportunity to understand individual steps or build trust in them.
Incident triage supplies a concrete starting point. A Sentry alert arrives. The agent reads it, gathers traces and other relevant context, develops a diagnosis and posts it in Slack. The observable change is that the engineer receives a contextual diagnosis rather than only the original alert. The engineer still reviews the diagnosis and decides what to do. This is a proposed rollout pattern, not a demonstrated incident with a reported repair result.
Where does this first automation stop? The diagram places the human decision after the agent’s diagnosis. That stopping point makes the agent’s contribution inspectable without immediately granting it permission to change production. Repeated correct diagnoses let the team learn how this step behaves. Each later step needs its own ownership and monitoring before the pipeline becomes a loop; eventually, connecting production results back to the original signal can support improvement across the organization.
An alert becomes a diagnosis before it becomes an action
Read the diagram as text
- Sentry alert. An incoming incident signal starts triage.
- Agent gathers context. Agent work — Read the alert and pull traces and other relevant context.
- Diagnosis in Slack. Agent work — Make the triage result available for engineering review.
- Engineer reviews and decides. Human judgment — Keep the next action under human judgment while trust develops.
- Sentry alert → Agent gathers context: Read and investigate.
- Agent gathers context → Diagnosis in Slack: Post the diagnosis.
- Diagnosis in Slack → Engineer reviews and decides: Review before further action.
Choose models by task, deployment by policy and tests by intent
Model independence creates a three-way choice among speed, task effectiveness and cost. The Pareto frontier is the set of useful tradeoffs: improving one dimension may require giving up something in another. Access to several models lets the factory choose the tradeoff for each task instead of accepting one provider’s position for every task.
Factory reports comparable code-review performance from models priced differently, including a comparison at half the price, and describes open-source alternatives as potentially 10 to 30 times cheaper. These are reported task-specific comparisons without an evaluation protocol or deployment-cost breakdown in the recording; they motivate evaluating cheaper options rather than establish equivalent performance or savings for every workload.
Two further principles determine how that flexibility fits an organization:
- Sovereign deployment. The factory should fit existing security architecture and policies. Palmie describes Factory’s supported deployment choices as fully managed, bring your own machine and entirely air-gapped.
- Integration across the software development lifecycle. Documentation changes should inform code, code changes should inform documentation, and planning goals should inform tests. The intended behavior must survive the trip through strategy, product, engineering and testing.
The lifecycle principle makes the factory more than a collection of independently useful automations. Each part depends on the others: well-executed code can still implement outdated documentation, and passing tests can still validate the wrong product goal. Weakness in one part becomes weakness in the system that carries a request to production.
Eight pillars make a repository usable by agents and engineers
Building a factory exposes tribal knowledge, manual processes and outdated information. Factory calls the preparation work agent readiness. Its eight pillars describe whether an agent can work in a repository, check its changes and understand failures without depending on knowledge trapped in someone’s head.
- Validation. Linters and formatters provide guardrails for changes.
- Build system. Documented build commands and CI make the build process understandable.
- Feedback loops. Unit and integration tests give changes a way to receive feedback.
- Documentation. READMEs and
AGENTS.mdfiles supply written project context. - Development environments. Reproducible environments let an agent enter and use the project reliably.
- Modularity. Clear code boundaries and rules against sprawl constrain how changes spread.
- Observability. The team can find out why something went wrong.
- Security scanning. Proactive checks look for leaked secrets and vulnerabilities.
These improvements help the people using the repository too. A documented build removes guesswork for a new engineer as well as an agent; useful tests and observability make failure easier to investigate for both. Palmie’s road analogy captures the shared investment: if humans and agents walk the same roads, paving them well is “doubly useful.”
Automate individual steps before closing the loop
Readiness supplies the working conditions; governance controls behavior once the agent starts. Engineers need visibility into performance and actions. Palmie describes Factory actions as auditable and governed through organizational standards, role-based access control and least privilege. Those controls answer different questions: what happened, who or what may act, and how much access the task requires.
The rollout sequence remains incremental. Automate individual responsibilities, build understanding of their behavior, then consider connecting them into a loop. Returning to incident triage, a correct diagnosis is evidence about that step. It does not by itself establish that planning, implementation, testing and rollout can all operate without intervention. Ownership and monitoring must extend along the chain.
“Precise execution does not prevent poor design.” An agent can carry out instructions accurately while the architecture or product direction remains wrong. Humans therefore retain strategy, architecture, prioritization and validation gates, including tightening guardrails and catching code drift. The intended division of work is for the team to set direction and risk parameters, then let agents execute within them.
Measure the trip to production, not the amount of generation
Token leaderboards reward consumption. Once token usage becomes a target, engineers have an incentive to increase it whether or not the additional spend produces better software. Palmie calls this Goodhart’s law in real time. Lines of code have the same problem: producing more code is an activity, while fixing a user’s problem is an outcome.
Factory’s preferred metrics examine different parts of the result:
- Signal-to-production time. Follow the journey from the incoming problem or request to deployed code.
- Human intervention count. Track how often the process requires a person to step in.
- Median time to repair. Track how quickly problems are repaired.
- Shelf life of code. Examine how long the produced code remains useful.
- Cost per PR. Relate spending to a unit of development work rather than rewarding raw token volume.
These measures bring the factory back to its purpose. Agent readiness, access controls, tooling and review systems support effective engineering regardless of who writes the code. The final instruction is deliberately blunt: “Don’t token max.” Users experience the resulting improvements in the product, so the factory should be judged by what its work changes for them.
Resources
Related talks
- Beating RL With Reflection: GEPA and Optimize Anything
Explains a concrete approach to improving agent prompts, programs and repository skills from execution feedback, extending this talk’s discussion of correcting agents so future attempts improve.
Full transcript
Loading transcript…