More The Agentic Review episodes

Why Agent Failures Start with Missing Context thumbnail

Why Agent Failures Start with Missing Context

Published 24 Nov 2026

Duration: 00:45:27

Software factories automate development by transforming specs into code, requiring robust observability to detect silent cognitive failures and dynamic guardrails for autonomous production.

Episode Description

In this episode of The Agentic Review podcast, Ashish Bagri, Co-founder and CTO of GlassFlow, joins Itamar Friedman and Nnenna Ndukwe to explain why m...

Overview

Glassflow, an AI-first company that evolved from a large-scale data processing platform handling 80, 90 terabytes a day, now builds two products: Taurus, an open-source platform that organizes data and context for agents, and Rios, an agent observability tool. The company's co-founder and CTO Ashish Bagri describes a "software factory" as a system that takes in a spec and produces software, analogous to a traditional factory taking a blueprint and producing a finished product. At Glassflow, nearly all code except some infrastructure is written by agents, and the factory orchestrates builder sessions, a common reviewer, and an orchestrator that surfaces only critical decisions to a human on a single terminal.

Rios addresses three categories of agent failure: context failures (where the agent lacks the right data, often mistaken for hallucinations), harness failures (tool or MCP server unavailability, which fail loudly), and silent or cognitive failures (probabilistic reasoning mistakes with no well-defined error signal). The team uses successful runs as evidence of correct flow to detect deviations, and is building an agent steering framework to prevent mistakes from surfacing. Industry efforts, including working groups at the Agent Con in Amsterdam, aim to standardize a taxonomy of cognitive failures within roughly 18 months.

The software factory is designed to be modular, allowing enterprises to plug in existing tools like Kodo for review or Jenkins for CI without abandoning established workflows. A "second brain" component ingests architecture decision records, project documents, and external signals so the factory can translate user-level specifications into technical specifications, enabling non-technical stakeholders to describe features from a user perspective.

What If

  • What if you treat a long-deferred personal side project as your first software factory trial?

    • Move: Pick a project you have wanted to build for months - something that would take you several days in a manual coding session - spike out a complete spec in a focused session, and hand that spec to an agent-based factory (such as Taurus) configured at L3 autonomy so the output stops at a testable PR.
    • Why Now?: The source explicitly warns that a 10-minute task is "not a good task for a factory" and that the factory "actually shines" for longer, higher-cost work; a personal project lets you evaluate the factory's benefit without disrupting your real workflow.
    • Expected Upside: You get a finished, usable product (the speaker built a family calendar app this way) and concrete evidence of whether the factory model saves you time before you commit to scaling it across production work.
  • What if you instrument your existing agent workflows with a successful-run baseline before building any custom evals?

    • Move: Log every tool call, span, and output from your current agent sessions for a period, then use the majority of runs that complete without error as your "correct flow" reference; flag any run that skips a tool call the other runs consistently made (e.g., an MCP lookup that produced a number in prior sessions but was hallucinated in the latest).
    • Why Now?: Rios's approach uses successful runs as evidence and studies cited in the source found 10 to 12% of agent runs had sudden failures, meaning the signal is present but invisible without structured logging; building this baseline now avoids waiting for a standardized cognitive-failure taxonomy that is still an open industry effort.
    • Expected Upside: You surface silent reasoning errors - like a missing tool call or a two-loop repetition - before they reach users, reducing the need to develop bespoke benchmarks from scratch.
  • What if you codify recurring builder-reviewer disagreements into standing rules within a week?

    • Move: Track every instance where your reviewer agent sends work back to the builder for the same reason; once a pattern repeats roughly five times in a few days, approve it as a permanent rule (for example, "the builder must always run a specific type of test") so the factory enforces it automatically going forward.
    • Why Now?: The source describes this feedback loop as the "basic steps of improving" the factory, and delaying it means you keep paying the same review-rework cost repeatedly instead of letting the system learn from its own telemetry.
    • Expected Upside: Over time the factory's rework rate drops, the human-in-the-loop interruptions decrease, and the quality of shipped code rises without you manually re-prompting the builder each cycle.

Takeaway

  • Pick a multi-day side project you have been postponing, write a complete spec in one focused session, and feed it to an agent-based factory at L3 autonomy (output stops at a testable PR) to evaluate whether the model saves you real time before scaling to production work.
  • Log every tool call, span, and output from your current agent runs; use the majority of error-free sessions as your "correct flow" baseline and flag any run that omits a tool call the others consistently made, surfacing silent reasoning errors without building custom benchmarks.
  • Track repeated builder-to-reviewer rejections; once the same reason recurs roughly five times in a few days, approve it as a permanent standing rule so the factory enforces it automatically and you stop paying the same rework cost.
  • Configure autonomy per project or milestone rather than globally: set internal tools to L4 (merge to main) or L5 (deploy to a staging environment) while keeping customer-facing work gated at L3, so you gain speed where risk is low without removing human judgment where it matters.
  • Enforce separation of duties in your agent pipeline - the builder must not push or review its own code, and the reviewer must not merge - so the system functions as a governed factory rather than a single agent grading its own homework.

Recent Episodes of The Agentic Review

30 Sept 2026 Is AI Making You an Average Engineer?

"AI accelerates software development but risks degrading code quality and stability, requiring organizations to prioritize recovery, enforce safeguards, and balance productivity with systematic improvements in reliability and observability."

19 Aug 2026 Deterministic Governance for Enterprise AI Systems

"AI is revolutionizing software development by speeding up coding, improving diagnostics, and enhancing problem-solving, but its success depends on modernizing outdated systems, implementing strong governance, and preserving human expertise to ensure reliable, effective integration."

5 Aug 2026 Building the AI Software Factory

"Examining the evolution of developer experience, AI's impact on coding quality, and the balance between speed, customization, and governance in modern software development."

22 Jul 2026 Why AI Control is the New Security Standard

"Managing AI in organizations requires addressing shadow AI risks, aligning security with policies, and implementing guardrails to prevent misuse, while balancing model customization, synthetic data validation, and scalable infrastructure for controlled, human-supervised AI adoption."

More The Agentic Review episodes