<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: Dhruv Aggarwal</title>
    <description>The latest articles on Forem by Dhruv Aggarwal (@dhruvagg).</description>
    <link>https://forem.com/dhruvagg</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F665229%2F19138766-8534-43c9-b0f2-ffc8fdb222df.jpeg</url>
      <title>Forem: Dhruv Aggarwal</title>
      <link>https://forem.com/dhruvagg</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/dhruvagg"/>
    <language>en</language>
    <item>
      <title>Architecting the Agent OS</title>
      <dc:creator>Dhruv Aggarwal</dc:creator>
      <pubDate>Sat, 16 May 2026 05:53:31 +0000</pubDate>
      <link>https://forem.com/dhruvagg/architecting-the-agent-os-5d78</link>
      <guid>https://forem.com/dhruvagg/architecting-the-agent-os-5d78</guid>
      <description>&lt;p&gt;Deploying autonomous agents without a management layer is a significant reliability risk. While an LLM provides the "intelligence," it lacks the operational constraints required for production. Without an orchestration layer—an "Agent OS"—you are essentially running unconstrained code with access to your critical infrastructure.&lt;/p&gt;

&lt;p&gt;To move beyond unpredictable prototypes, we need to treat Agent orchestration as a systems design problem. A robust Agent OS must implement these six primitives:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Scheduler &amp;amp; Orchestrator: Manages task prioritization and resource allocation to prevent race conditions and ensure high-priority tasks aren't pre-empted by recursive loops.&lt;/li&gt;
&lt;li&gt;Memory Manager: Solves the context window limitation by bridging Short-Term Memory (current session state) with Long-Term Memory (vector databases/RAG) to prevent repetitive loops and state loss.&lt;/li&gt;
&lt;li&gt;Tool Manager: Implements a secure execution layer. Instead of granting direct API access, it provides a sandboxed environment (e.g., isolated containers) to prevent catastrophic failures like accidental database drops.&lt;/li&gt;
&lt;li&gt;Identity Manager: Enforces the Principle of Least Privilege (PoLP) using ephemeral tokens and certificates. This ensures that an agent's identity is scoped to a specific task and expires immediately after execution.&lt;/li&gt;
&lt;li&gt;Observability: Provides deterministic tracing for non-deterministic outputs. Every decision, tool call, and state change must be logged to allow for post-mortem debugging and auditing.&lt;/li&gt;
&lt;li&gt;Guardrails &amp;amp; Governance: A dual-layer defense. Technical guardrails filter malicious injections and profane outputs, while governance frameworks enforce "Human-in-the-Loop" (HITL) triggers for high-stakes mutations.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The goal is to shift the paradigm from "hope it works" to a system defined by predictability, security, and trust.&lt;/p&gt;

&lt;p&gt;For those of you moving agents into production: Which of these layers is currently your biggest point of failure—memory persistence or secure tool execution?&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fuctsbx5qhdfw00bc3wtj.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fuctsbx5qhdfw00bc3wtj.png" alt="Agent OS" width="680" height="2614"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>agents</category>
      <category>agentskills</category>
      <category>infrastructure</category>
    </item>
    <item>
      <title>Why your infra is the silent bottleneck in your AI systems?</title>
      <dc:creator>Dhruv Aggarwal</dc:creator>
      <pubDate>Fri, 08 May 2026 11:00:40 +0000</pubDate>
      <link>https://forem.com/dhruvagg/why-your-infra-is-the-silent-bottleneck-in-your-ai-systems-5f4f</link>
      <guid>https://forem.com/dhruvagg/why-your-infra-is-the-silent-bottleneck-in-your-ai-systems-5f4f</guid>
      <description>&lt;p&gt;Getting high-quality responses from an LLM is rarely a model problem; it is almost always an infrastructure problem. &lt;/p&gt;

&lt;p&gt;Frontier models have the reasoning capabilities, but they are limited by the quality and accessibility of the context they are given. This is where &lt;strong&gt;Context Engineering&lt;/strong&gt;—the intersection of RAG and Prompt Engineering—becomes the critical path.&lt;/p&gt;

&lt;p&gt;The challenge is that enterprise context is fragmented. It's spread across DBs, SaaS platforms, and on-prem systems, varying between structured and unstructured, and heavily guarded by RBAC. &lt;/p&gt;

&lt;p&gt;To solve the context bottleneck, I view the architecture through four pillars:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Connected Access: Use zero-copy federation. Access data where it lives rather than creating unfederated copies. This provides the LLM with immediate visibility.&lt;/li&gt;
&lt;li&gt;Knowledge Layer: Implement entity resolution and institutional knowledge mapping on top of raw data to provide actual meaning.&lt;/li&gt;
&lt;li&gt;Precision Retrieval: Prioritize data by intent, role, and policy. More context does not equal more knowledge; precision ensures relevancy.&lt;/li&gt;
&lt;li&gt;Runtime Governance: Apply dynamic checks to determine if a specific data source should be queried based on the user's permissions. This makes the system defensible.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Ultimately, an AI system is only as effective as the context it can retrieve.&lt;/p&gt;

&lt;p&gt;How are you handling context retrieval and RBAC in your current AI pipelines?&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fpq2h2xiodxv617qpeclh.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fpq2h2xiodxv617qpeclh.png" alt="ContextEngg" width="800" height="787"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>programming</category>
      <category>security</category>
      <category>architecture</category>
    </item>
  </channel>
</rss>
