Building Reliable Agentic Systems in Production

factory.ai · Tech · year n/a · source Agentic: yes · promotional bias: low · source-backed · extracted with prompt 0.5.5 (schema v2)

Generated from extraction.json — do not edit by hand. Every claim cites verbatim source evidence; stated means the quote directly asserts the claim, implied means it supports it indirectly.

Problem

Domain: Reliable production agents for software engineering

Factory.ai needed agentic systems that could handle real-world software-engineering workflows involving planning, decisions, external environment interaction, tools, feedback, and human intervention without drifting, looping, or losing reliability.

Constraints:

Architecture

Factory.ai frames reliable agents around three capabilities: planning, decision-making, and environmental grounding. Planning reliability uses intermediate context passing, subtask decomposition, model-predictive-control-style replanning, and explicit plan criteria. Decision reliability uses consensus mechanisms, explicit reasoning strategies, model-weight modification only for known distributions, and simulation-based decision search when tests or reward criteria can be executed. Environmental grounding relies on dedicated tool interfaces, explicit feedback processing, bounded exploration, and human guidance designed into the product UX.

Diagram confidence: reconstructed (reconstructed from prose).

flowchart LR
  software-engineer[Software engineer] --> factory-agent-platform[Factory agent platform]
  factory-agent-platform --> planning-module[Planning module]
  planning-module --> intermediate-context-passer[Intermediate context passer]
  planning-module --> subtask-decomposition[Subtask decomposition]
  planning-module --> mpc-replanning-loop[MPC replanning loop]
  planning-module --> plan-criteria-checker[Plan criteria checker]
  factory-agent-platform --> decision-module[Decision module]
  subtask-decomposition --> decision-module
  decision-module --> consensus-sampler[Consensus sampler]
  decision-module --> reasoning-strategy[Reasoning strategy]
  decision-module --> fine-tuned-model-option[Fine-tuned model option]
  decision-module --> simulation-engine[Simulation engine]
  factory-agent-platform --> grounding-module[Grounding module]
  grounding-module --> dedicated-tool-interfaces[Dedicated tool interfaces]
  grounding-module --> feedback-processor[Feedback processor]
  feedback-processor --> mpc-replanning-loop
  grounding-module --> bounded-exploration[Bounded exploration]
  grounding-module --> external-environment[External environment]
  dedicated-tool-interfaces --> external-environment
  simulation-engine --> external-environment
  bounded-exploration --> external-environment
  external-environment --> feedback-processor
  factory-agent-platform --> human-guidance-ux[Human guidance UX]
  human-guidance-ux --> software-engineer
Drag to pan · scroll or use +/− to zoom · reconstructed from the source's described component topology

Components

Component Role Interacts with
Software engineer Human collaborator who provides goals, reviews outputs, and intervenes where the UX calls for guidance. Factory agent platform, Human guidance UX
Factory agent platform Autonomous software-engineering platform that coordinates planning, decisions, and environment actions. Software engineer, Planning module, Decision module, Grounding module, Human guidance UX
Planning module Creates and updates plans that decide future actions, subtasks, and success criteria. Factory agent platform, Intermediate context passer, Subtask decomposition, MPC replanning loop, Plan criteria checker
Intermediate context passer Carries context through plan steps to improve focus, reliability, and convergence. Planning module
Subtask decomposition Breaks complex plans into smaller tasks for finer execution control. Planning module, Decision module
MPC replanning loop Reevaluates actions dynamically based on feedback, inspired by model predictive control. Planning module, Feedback processor
Plan criteria checker Uses success criteria, instruct prompting, few-shot examples, or type checks to keep plans on rails. Planning module
Decision module Selects next actions or states using consensus, reasoning, simulation, or model-specific strategies. Factory agent platform, Consensus sampler, Reasoning strategy, Fine-tuned model option, Simulation engine
Consensus sampler Samples multiple outputs through prompt ensembles, cluster sampling, or self-consistency. Decision module
Reasoning strategy Applies explicit reasoning patterns such as chain-of-thought, checklists, chain-of-density, or tree-of-thought. Decision module
Fine-tuned model option Optional model-weight modification for known task distributions such as classification or tool use. Decision module
Simulation engine Samples and simulates decision paths, using executable tests or reward criteria where possible. Decision module, External environment
Grounding module Manages interaction with external computer systems through tools, feedback, exploration, and human input. Factory agent platform, Dedicated tool interfaces, Feedback processor, Bounded exploration, External environment
Dedicated tool interfaces Custom APIs, calculators, platform wrappers, or sandboxed execution interfaces exposed to the agent. Grounding module, External environment
Feedback processor Filters large logs, stdout, and debug output into critical signals for the agent. Grounding module, MPC replanning loop, External environment
Bounded exploration Allows the agent to gather context about the problem space without unlimited wandering. Grounding module, External environment
Human guidance UX Designed intervention points where human input improves agent reliability. Software engineer, Factory agent platform
External environment Codebases, tools, logs, tests, documents, review systems, and organizational workflows the agent reads and writes. Grounding module, Dedicated tool interfaces, Feedback processor, Simulation engine, Bounded exploration

Data flow

A software engineer gives the Factory platform a goal. The planning module creates or updates a plan using criteria, subtask decomposition, context passing, and feedback-driven replanning. The decision module samples or reasons over possible actions, optionally using consensus or simulation when the domain has executable tests or reward criteria. The grounding module executes through dedicated tools, reads logs and other environment feedback, filters noisy outputs, gathers bounded context, and routes human intervention through designed UX points when autonomous reliability is insufficient.

5 supporting quotes
“agentic system uh and so that is planning uh you know agentic systems make plans which decide one or more future actions of the system Um this can be simple like just outputting a single action um or it can be complex like a multi-state you know multitask plan with potentially coordinating even”transcript, stated
“agentic systems also make decisions uh that means they evaluate multiple pieces of data and select their next action or state”transcript, stated
“agent agentic systems read and write information to an external environment and this enables them to achieve goals within that environment”transcript, stated
“you want to sample and then simulate forward multiple decision paths and then determine the optimal Choice based on some reward criteria”transcript, stated
“if you're operating in a domain like software development where you have tests which can be executed and the success criteria of that test is you know does it pass or does it compile”transcript, stated

Why this architecture

The design treats reliability as a product of the whole agent system, not only the model. Plans need convergence criteria and adaptation; decisions need sampling or reasoning support; and environment interaction depends on tool interfaces and feedback processing. Factory.ai specifically argues that AI-computer interfaces are the differentiator because advanced models already provide much planning and reasoning capability, but they do not come with domain-specific tool integrations.

4 supporting quotes
“bringing autonomy to software engineering for us means we need to build systems that can handle the complexity of real world environments”transcript, stated
“most of the model providers are building really really capable systems 01 is really great at planning backtracking reasoning”transcript, stated
“what 01 does not have out of the box is an integration and a tool and a definition of that tool that works with some other system that you've built”transcript, stated
“here um your your ability to build a system the and in particular I'd go as far as to say the AI computer interfaces are the differentiating factor um most of the model providers are building really really capable systems 01 is really great at planning backtracking reasoning”transcript, stated

Models used: LLMs · Base models · Open-source models for possible fine-tuning · o1-style planning/reasoning models · LLM-based Monte Carlo tree search style simulations

Scale

Alternatives considered (roads not taken)

Use static up-front plans

Rejected because: Complex tasks require reevaluation as execution produces feedback and issues.

“a plan is dynamic when in most complex tasks you need to constantly reevaluate what am I doing and what is the next step that needs to be taken”transcript, stated
“adaptive plan based on real-time feedback can be a super helpful way to ensure that your agent is able to dynamically adjust to problems”transcript, stated

Fine-tune model weights for every reliability problem

Rejected because: Fine-tuning is expensive, locks in quality, and base models often perform better across broader distributions.

“otherwise kind of impacting the actual end model weights um the kind of huge obvious downside is this is expensive and locks in quality and so um you know if you have a known distribution and you want to improve your quality on that distribution this is a”transcript, stated
“for us we found that rarely is fine-tuning the actual solution oftentimes uh base models are not just good but actually better at a lot of problems”transcript, stated

Give agents broad arbitrary tools by default

Rejected because: Broader tools increase capability but decrease accuracy and make abstraction-layer design more important.

“if you give your agent access to a sandboxed python script that allows it to execute potentially arbitrary code to achieve its goals um it's obviously going to be able to do way more”transcript, stated
“potentially arbitrary code to achieve its goals um it's obviously going to be able to do way more but with that breadth comes uh decreases in accuracy so you know as you kind of move up and down that layer of abstraction you should think about where you want your agent to”transcript, stated

Let the agent consume raw environmental feedback

Rejected because: Agents lack human-like sensory filtering and need explicit signal processing over noisy logs and outputs.

“agents don't have a complex biological architecture so you actually have to Define that signal processing that feedback processing”transcript, stated
“if you can parse through the noise and give your agent more of like the critical data it will be significantly better at solving problems”transcript, stated

Remove human interaction once reliability improves

Rejected because: At scale, residual failure rates still produce too many failed tasks, so interaction design remains necessary.

“once the reliability increases we won't even need it to interact with humans I would recommend kind of rethinking how how you're building this this system”transcript, stated
“even if you disengage and you're aren't you aren't able to accomplish a task let's say 10% of the time 20% of the time uh at scale that's actually a ton”transcript, stated

Patterns

tool-use-orchestration (agent-architecture)

Factory.ai emphasizes custom AI-computer interfaces and dedicated tools as the main differentiator for production agents.

“you really do need to be building dedicated tools for your agentic systems”transcript, stated
“if you are building agents highly recommend the interfaces as a place to start”transcript, stated

eval-driven-development (quality)

Simulation-based decisions use executable tests or compile checks as reward criteria for choosing among paths.

“you have tests which can be executed and the success criteria of that test is you know does it pass or does it compile”transcript, stated
“basic outline of the problem is uh you want to sample and then simulate forward multiple decision paths and then determine the optimal Choice based on some reward criteria um this doesn't need be like a full RL experiment language agent research which I mentioned earlier is a pretty Advanced”transcript, stated

human-in-the-loop-gate (governance)

The product should include designed human intervention points instead of assuming autonomy eliminates interaction.

“you should involve the human's input to improve your agent's reliability”transcript, stated
“this requires really careful ux design thinking about where it makes sense to intervene or interact with an agent”transcript, stated

context-compaction (context-engineering)

Noisy environmental feedback is filtered so the agent receives critical data rather than raw logs and debug output.

“you might encounter log data quite frequently and and this could be truly hundreds of thousands of lines of standard out outputs debug logs”transcript, stated
“parse through the noise and give your agent more of like the critical data”transcript, stated

multi-agent-orchestration (agent-architecture)

The talk allows for multi-state, multi-task plans coordinating multiple actors across software-development workflows.

“it can be complex like a multi-state you know multitask plan with potentially coordinating even multiple actors”transcript, stated
“World of tasks um there is oftentimes a need for not just kind of a uh simple one-off AI interaction but rather a broader uh you know multi-step complex workflow uh and and so bringing autonomy to software engineering for us means we need to build systems that can handle the complexity of real world”transcript, stated

confidence-thresholding (control)

Consensus mechanisms sample multiple outputs and select the most consistent or aggregated answer to improve decision quality.

“there's kind of a need to sample from multiple different outputs in order to get a better sense of what the correct answer might be”transcript, stated
“self-consistency which is probably one of the easier ones which just says look output a bunch of times and take the most consistent answer”transcript, stated

Tradeoffs

Use consensus mechanisms

Chose Prompt ensembles, cluster sampling, or self-consistency over Trusting a single sampled model output.

Rationale: Multiple samples improve decision accuracy, but they increase inference cost.

“we call these consensus mechanisms um that can be a lot of different things people have tried things like uh prompt ensembles”transcript, stated
“all of these methods tend to improve the accuracy of your decision-making uh but ultimately require greater inference cost”transcript, stated

Use model predictive control style replanning

Chose Dynamic plans that adapt to real-time feedback over A fixed initial plan.

Rationale: Adaptation helps agents respond to problems but raises the risk of straying from the intended trajectory.

“your initial plan at the beginning of a task really should probably look a little different from your final plan once it's you know executed”transcript, stated
“you really are introducing a significantly higher risk of straying from that initial correct trajectory”transcript, stated

Simulate decision paths

Chose Forward simulation with reward criteria where the domain supports it over Pure reasoning without executable path checks.

Rationale: Simulation can improve quality in software domains with tests, but it is slow, expensive, and hard to model.

“sample and then simulate forward multiple decision paths and then determine the optimal Choice based on some reward criteria”transcript, stated
“this can be slow this can be expensive but what we found actually the biggest downside here is that this is really difficult to model and debug”transcript, stated

Invest in AI-computer interfaces

Chose Dedicated integrations and tools around strong base models over Competing primarily through model-level planning/reasoning.

Rationale: Model providers already supply strong reasoning; domain tools and integrations are where product builders differentiate.

“your your ability to build a system the and in particular I'd go as far as to say the AI computer interfaces are the differentiating factor”transcript, stated
“what 01 does not have out of the box is an integration and a tool and a definition of that tool that works with some other system that you've built”transcript, stated

Use human guidance as product design

Chose Designed intervention and interaction points over Assuming reliability improvements remove the human.

Rationale: Residual failure rates are still operationally significant at scale.

“you should involve the human's input to improve your agent's reliability”transcript, stated
“own % of the time and so even if you disengage and you're aren't you aren't able to accomplish a task let's say 10% of the time 20% of the time uh at scale that's actually a ton and so you do need to think about the design of these interactions um yeah so that is uh pretty much it uh hopefully”transcript, stated

Gotchas (what bit them)

Plans drift away from their original responsibility.

Root cause: Long multi-step plans can propagate incorrect predictions or misleading reasoning from earlier steps.

Resolution: Pass intermediate context, decompose tasks, use dynamic replanning, and define explicit plan criteria.

“the biggest issues uh with uh with building kind of you know long-term plans with an agent is that they tend to drift away from their core responsibility”transcript, stated
“if you are off in your initial prediction of what for example The Next Step should be or an individual step of reasoning that can propagate”transcript, stated

Explicit reasoning strategies can improve consistency but reduce adaptability.

Root cause: Forcing a reasoning strategy constrains the model's natural problem-solving path and can be wrong for a given task.

Resolution: Use reasoning patterns when they match the problem, but avoid assuming one strategy is universally correct.

“with that reduced complexity you're able to get significantly more consistent um responses and consistency though doesn't always mean accuracy”transcript, stated
“if your reasoning strategy is not sufficiently general or uh or or just downright incorrect for a given problem it's G to significantly reduce your uh agent's ability”transcript, stated

Simulation-based decision systems are hard to debug.

Root cause: Simulations encode assumptions about the environment, reward, and scope that may be hard to validate.

Resolution: Use simulation selectively where executable reward criteria exist and treat modeling assumptions as a first-class risk.

“downsides one this can be slow this can be expensive but what we found actually the biggest downside here is that this is really difficult to model and debug um so you are putting a ton of assumptions in into your system when you build these simulations and you rely on simulations for”transcript, stated
“you are putting a ton of assumptions in into your system when you build these simulations and you rely on simulations for decisionmaking”transcript, stated

Tool abstraction level creates a capability-versus-accuracy tradeoff.

Root cause: More general tools let agents do more, but the broad action space lowers accuracy and increases maintenance needs.

Resolution: Design dedicated tools and choose the abstraction layer where the agent can be most effective.

“you should think about where you want your agent to be operating and where it can be most effective at kind of taking the reign of the tool”transcript, stated
“it's difficult to design and maintain these tools if they are like agent or llm specific”transcript, stated

Bounded exploration can overload context or pull the agent off path.

Root cause: Retrieval and information gathering are difficult in open environments.

Resolution: Allow exploration, but keep it bounded and focused on the current problem space.

“you really do need to allow your agent to gather more information or context about the problem space”transcript, stated
“you have also have the potential to overload context or stray from like the key path uh because retrieval is difficult”transcript, stated

Evaluation

The talk does not report formal quantitative results for Factory.ai. Evaluation concepts appear as design guidance: convergence to plan criteria, self-consistency/consensus, executable software tests or compile checks as simulation rewards, and feedback processing over logs and environment outputs.

Metrics: Plan convergence · Decision consistency · Executable test pass/fail · Compile pass/fail · Inference cost · Simulation runtime and expense · Failure rate requiring human intervention · Log/feedback signal quality

4 supporting quotes
“if that system doesn't end with a like comment in your GitHub that system failed”transcript, stated
“software development where you have tests which can be executed and the success criteria of that test is you know does it pass or does it compile um you're actually able to kind of model through these decision- making processes and end uh with a with a path that leads you at at the least”transcript, stated
“all of these methods tend to improve the accuracy of your decision-making uh but ultimately require greater inference cost”transcript, stated
“the benefit here is just is is quality generally um the cost here is this uh there's a couple of downsides one this can be slow this can be expensive but what we found actually the biggest downside here is that this is really difficult to model and debug um so you are putting a ton of assumptions”transcript, stated

Outcomes

The source is sparse on measured outcomes. Concrete scale references include organizations small and large, hundreds of thousands of lines of log/stdout/debug feedback, and the warning that 10-20% failures are large at scale.

3 supporting quotes
“there's three characteristics that we think um or you know we like to think of as being characteristic of an agentic system”transcript, stated
“this slide right here um your your ability to build a system the and in particular I'd go as far as to say the AI computer interfaces are the differentiating factor um most of the model providers are building really really capable systems 01 is really great at planning backtracking reasoning a”transcript, stated
“this could be truly hundreds of thousands of lines of standard out outputs debug logs”transcript, stated