back to the episode
concise episode summary2026

How to Build a Governed Agent Stack

Alexander Polomodov and Mikhail Trifonov examine what makes an agent stack governable and why the build-versus-buy debate starts from the wrong abstraction. Instead of choosing one product, the episode treats the harness, model, tools, identity, and enforced boundaries as independent decisions connected by two paths: data and authority.

July 20, 2026Research Insights Made Simple #226 min read

This concise editorial summary was prepared from automatic captions, the slides, and the full longread. It is not a verbatim transcript: repetition and technical noise were removed, while the architecture patterns were checked against the episode materials.

The main thread
01

Choose a configuration, not a product

The conversation begins by separating two decision levels. Company leadership is accountable for ecosystem-wide risk: leakage, personal data, secrets, and the cost of a harmful action. A developer chooses a tool for a concrete task and cares about quality, usability, and continued access. Build versus buy is therefore too coarse. An organization is really drawing a division of labor between itself and suppliers, retaining the controls that define its risk and competitive advantage.

The episode's working formula contains five parts. A harness runs the agent loop and supplies context; a model reasons and proposes tool calls; tools create the actual effect; identity determines on whose behalf an action runs; enforced boundaries constrain processes, network, filesystem, and capabilities. Open source does not guarantee local inference, a self-hosted model does not make actions safe, and an internal MCP server without narrow permissions may expose far more than intended.

02

Eight patterns and two gateways

The eight configurations form a trade-off map rather than a ranking. One end contains an autonomous air-gapped stack with an owned harness, model, and operations, alongside a ready-made client using a local model. Other patterns combine an owned harness with an external API, a vendor agent with internal tools, full SaaS, a multi-model router, an external planner with an internal executor, or a personal collection of a client, SaaS services, and MCP tools. Each arrangement distributes TCO, lock-in, model freshness, and operational responsibility differently.

Two controlled choke points provide a practical center of gravity for an enterprise platform. A model gateway classifies context, selects an approved provider, region, and model, filters secrets, applies budgets, and enforces safe fallback. A tool gateway validates identity, policy, scopes, dry-run output, and the actual effect while retaining an audit trail. A frontier model can therefore plan without receiving credentials: sanitized context or a typed plan leaves the perimeter, while an on-behalf-of executor stays inside and checks business invariants.

03

Governance is tested across the chain

A threat model starts from attack surface and data value, not from a fashionable demand for maximum isolation. An untrusted README, issue, email, or tool result can turn a legitimate task into prompt injection. Risk crosses every boundary in the workspace, harness, model, tool-gateway, and target-system chain. A distinct problem appears when an agent inherits a person's complete identity and can not only read a table for a dashboard but also modify or delete it.

Policy must therefore be enforced outside the model through an OS sandbox, deny-by-default egress, least privilege, short-lived credentials, a tool allowlist, separation of read, propose, write, and commit, independent effect verification, and a kill switch. Selection begins with three questions: may data leave the trust zone, must the agent act inside corporate systems, and are sufficient scale and mature evaluations present? The answers narrow the configurations before any client logo enters the decision.

Takeaways

What to take away

  1. 01Governance belongs to the entire intent, context, model, tool, and change chain, not to one model or client.
  2. 02A model gateway governs the data path while a tool gateway governs the authority path; either route must be independently revocable.
  3. 03An external frontier model can plan without external credentials when an internal executor validates typed plans and business invariants.
  4. 04Multi-model routing is justified by scale and evaluation evidence; introduced earlier, it adds a platform, cost, and new failure points.
Share