<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Divya Anne Selvaraj on Medium]]></title>
        <description><![CDATA[Stories by Divya Anne Selvaraj on Medium]]></description>
        <link>https://medium.com/@Divya_from_Packt?source=rss-1b02211ff62b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*cLOiic4Q-q6IxjcmXQw45A.jpeg</url>
            <title>Stories by Divya Anne Selvaraj on Medium</title>
            <link>https://medium.com/@Divya_from_Packt?source=rss-1b02211ff62b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 15:58:13 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@Divya_from_Packt/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Deep Engineering #28: Sam Keen on Making AI Agents Remember]]></title>
            <link>https://medium.com/deep-engineering/deep-engineering-28-sam-keen-on-making-ai-agents-remember-7734a05c43c9?source=rss-1b02211ff62b------2</link>
            <guid isPermaLink="false">https://medium.com/p/7734a05c43c9</guid>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[ai-agent]]></category>
            <dc:creator><![CDATA[Divya Anne Selvaraj]]></dc:creator>
            <pubDate>Tue, 16 Dec 2025 07:50:47 GMT</pubDate>
            <atom:updated>2025-12-16T07:50:47.626Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0jCLdT474-OPVJBDV1YR1w.png" /></figure><h4>How AI agents remember, forget, and relearn: from enterprise memory trilemmas to hybrid architectures and real-world tools.</h4><p><strong>✍️From the editor’s desk,</strong></p><p>According to McKinsey’s November 2025 <a href="https://www.mckinsey.com/~/media/mckinsey/business%20functions/quantumblack/our%20insights/the%20state%20of%20ai/november%202025/the-state-of-ai-2025-agents-innovation_cmyk-v1.pdf"><em>State of AI</em></a> survey, 23% of enterprises say they’re already scaling at least one agentic AI system and another 39% are experimenting — yet in any given function fewer than 10% have agents at scale. At the same time, <a href="https://arxiv.org/abs/2509.26506">Salesforce’s SCUBA</a> (<em>Salesforce Computer-Use Benchmark for Agents</em>) — a 900-plus-task benchmark built from real CRM workflows — finds that leading open-source computer-use agents currently solve under <strong>5%</strong> of realistic enterprise tasks end-to-end, while even the best closed-source systems only reach around <strong>39%</strong> success, climbing to roughly 50% only when heavily augmented with human demonstrations.</p><p>If frontier models are already capable of solving 30–50% of complex workflows end-to-end in controlled benchmarks, <strong>why are so few enterprises able to get agents beyond narrow, local successes in production?</strong> One hypothesis, which we delve into in today’s issue is that <strong>the bottleneck is less about raw model capability and more about how we structure control and memory around these systems.</strong></p><p>We have collaborated again with <a href="https://open.substack.com/users/11641009-sam-keen?utm_source=mentions"><strong>Sam Keen</strong></a> of <strong>Altered Craft</strong> (AI Architect | ex: AWS, Lululemon, Nike | Author of <a href="https://www.packtpub.com/en-in/product/clean-architecture-with-python-9781836642886"><em>Clean Architecture with Python</em></a>) to take us through moving from <strong>explicit, command-driven memory</strong> (!remember) to <a href="https://deepengineering.substack.com/p/implicit-memory-systems-for-llms"><strong>implicit, LLM-managed memory</strong></a>, with the host application reduced to infrastructure hooks and hard security guardrails. It’s a concrete <strong>design pattern</strong> for delegated control — and a useful lens on what we want our next generation of agents to be allowed to decide on their own.</p><h3>🧠Expert Insight</h3><h3>The Irony of Explicit Memory Controls by Sam Keen</h3><p>In my previous post, <a href="https://alteredcraft.com/p/the-memory-illusion-teaching-your">The Memory Illusion</a>, I demonstrated that LLM memory doesn’t require vector databases or sophisticated architectures. It’s fundamentally just text management. We built a proof-of-concept in ~150 lines of Python that stored memories in a simple markdown file. It worked. But it had an amusing limitation: <strong>The user had to remember to tell the AI to remember</strong>.</p><p>The system required explicit commands. Want the LLM to store your name? Type !remember “My name is Alex”. Want it to know your project preferences? Another !remember command. The irony was sharp: we’d outsourced memory to technology, only to burden ourselves with managing that memory manually.</p><p>This wasn’t an oversight. It was a conscious design decision. Our application code controlled every memory operation through explicit if/else logic. The host app was the memory manager, and the LLM was simply our text processor.</p><p>But what if we handed that authority to the LLM itself?</p><p>This isn’t an incremental improvement or “v2” of the same approach. It’s a fundamentally different philosophy: <strong>trusting the LLM to autonomously manage its own memory</strong>. The technical implications are profound. We move from programming specific behaviors to setting high-level intentions. We shift from writing parsing logic to defining trust boundaries.</p><p>This approach enables the system to handle its own errors, organize information without explicit rules, and maintain its own memory hygiene. All without writing a single if/else statement.</p><h3>The Explicit Approach: When Code Defines Every Decision</h3><p>In my original POC, every memory operation required explicit user commands. Here’s what a typical session looked like:</p><pre>[You]: Hello, I’m working on a React app<br>[Claude]: Hi! What kind of React app are you building?<br>[You]: !remember I am building a React e-commerce application<br>[Claude]: [Memory saved]</pre><p>Here we see that required use of !remember. Adding to the user’s cognitive load alongside their actual work.</p><p>Behind the scenes, our code intercepted every message, parsed for commands, managed file operations, and reconstructed the prompt with memories for each interaction. We were the brain; the LLM was just processing text within our constraints.</p><p>This gave us complete control. We defined in code the exact format of the memory file. Want memories timestamped? We coded it. Want them categorized? More code. Every behavior was explicit, predictable, testable.</p><p>This is how we’ve built software applications since the inception of the craft. We write the logic, we define the control flow, we handle the edge cases. It’s comfortable, familiar territory. But when working with LLMs, this traditional approach means we’re not fully leveraging what makes them truly powerful: their ability to understand context and make intelligent decisions autonomously.</p><p>The LLM’s contextual intelligence sits idle while our code makes every decision. This intelligence was trained on billions of examples of how humans organize and retrieve information.</p><p>Most importantly, users had to remember the commands, creating friction in your app’s usability. Edge cases multiplied. The code grew ever larger as we handled more scenarios, more commands, more special cases. We were swimming upstream against the fundamental capabilities of modern LLMs.</p><h3>The Implicit Approach: LLM as Autonomous Manager</h3><p>The paradigm shift is what matters. We’re implementing a harness that grants the LLM autonomous authority. While this example uses the Claude Agent SDK, the pattern can be implemented with other SDKs or custom code. The key is delegation of decision-making, not specific tooling.</p><p>Let’s look at the skeleton of our memory tool implementation:<br>Full code found in the <a href="https://github.com/AlteredCraft/implicit-memory-system-poc-article/tree/main"><strong>companion app</strong></a>:</p><pre># memory_tool.py <br>class LocalFilesystemMemoryTool(BetaAbstractMemoryTool):<br>    “”“<br>    The LLM calls these methods autonomously based on context.<br>    We provide the infrastructure; Claude makes the decisions.<br>    “”“</pre><pre>    # The hook methods (memory tools) Claude is made aware of:</pre><pre>    @override<br>    def view(self, command):<br>        “”“Claude calls this to read memories or list files”“”<br>        # Validate path, read file/directory, return contents</pre><pre>    @override<br>    def create(self, command):<br>        “”“Claude calls this to create new memory files”“”<br>        # Validate path, write file, log operation</pre><pre>    @override<br>    def str_replace(self, command):<br>        “”“Claude calls this to update existing memories”“”<br>        # Find text, replace it, handle errors</pre><pre>    @override<br>    def insert(self, command):<br>        “”“Claude calls this to add lines to memories”“”<br>        # Insert at specific line number</pre><pre>    @override<br>    def delete(self, command):<br>        “”“Claude calls this to remove memories”“”<br>        # Delete files or directories</pre><pre>    @override<br>    def rename(self, command):<br>        “”“Claude calls this to reorganize memories”“”<br>        # Move or rename files</pre><p>The SDK provides these hook methods as the interface contract. We implement the file operations; Claude decides when to invoke them. No command parsing required from us.</p><p>The system prompt grants authority. Instead of telling Claude what to remember, we grant it authority:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*kPyQh_N4waMdORKY.png" /></figure><p>Concise system prompt</p><p>This shift is profound. We’re not programming behaviors anymore. We’re setting intentions and trusting Claude to execute them. The orchestration that once consumed lines of code now happens autonomously, guided by our system prompt.</p><p>This hands-off approach of providing just the infrastructure hooks while delegating all decision-making to the LLM may seem minimal. That’s precisely the point.</p><p>If you’ve spent years writing deterministic code, this delegation feels uncomfortable. You’re trusting the LLM to make architectural decisions you once controlled. That discomfort is valid. Let’s add some clarity to the real world implications of this approach.</p><h3>Under the Hood: Autonomous Decisions in Action</h3><p>Let’s trace what actually happens during a conversation. These examples come from real sessions the <a href="https://github.com/AlteredCraft/implicit-memory-system-poc/">companion app</a>’s trace and render diagram features.</p><h4>Creating New Memory</h4><pre>[You]: “I’m starting a new project. I’d like to build a web app for solo entrepreneurs<br>       to track their time and projects”</pre><pre>~Claude internally~: Creates new memory at path `project_solo_entrepreneur_app.txt`</pre><pre>[Claude]: “That’s an exciting project! A time and project tracker specifically for solo entrepreneurs ...”</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*QuIRWBpHkz8tzkpm.png" /></figure><p>The sequence of actions resulting in the creation of a new memory</p><p>You didn’t ask Claude to remember anything. Claude autonomously decided this information was worth preserving. It even made an architectural decision. It created a new project file rather than appending to a general profile. These are judgment calls the LLM now makes without any explicit rules from us beyond guidance in the system prompt.</p><h4>Self-Correction</h4><p>What happens when the LLM makes a mistake? In traditional systems, errors bubble up to users. Here’s how autonomous authority changes that dynamic:</p><pre>[You]: “Let’s add these MVP features: client profiles, task tracking, time logging”</pre><pre>~Claude internally~: Tries to update `solo_entrepreneur.txt`,<br>gets FileNotFoundError, checks memory folder, finds correct<br>filename `project_solo_entrepreneur_app.txt`, successfully updates</pre><pre>[Claude]: “Got it! I’ve noted those MVP features for your project.”</pre><p>Claude made a mistake with the filename, detected the error, diagnosed the issue, and self-corrected. All autonomously. No error messages to the user, no manual intervention required.</p><p>Our code deliberately re-raises exceptions to Claude rather than hiding them. This design turns errors into recovery opportunities. Claude receives the FileNotFoundError, understands what went wrong, and adapts its strategy. This resilience emerges naturally from giving the LLM authority rather than rigid rules.</p><h4>Context-Aware Retrieval</h4><p>The LLM decides <em>when</em> to check memories. No rules tell it to look for context on greetings, it just understands that’s useful:</p><pre>[You]: “hello”</pre><pre>~Claude internally~: Checks memory folder, finds and reads<br>`user_preferences.txt` containing “Vacationing at the beach<br>as of 2025-11-03”</pre><pre>[Claude]: “Hi! How are things going at the beach today?”</pre><p>Claude found relevant information and used it naturally in conversation.</p><p>These autonomous behaviors all emerge without us programming them explicitly. They include deciding on storage structure, recovering from errors, and retrieving contextual information.</p><p><strong><em>We implement the hooks; Claude provides the intelligence.</em></strong></p><h3>Code vs. Prompts: Where Control Lives</h3><p>The shift to implicit memory doesn’t mean abandoning all control. It means being strategic about where that control resides. By examining what stays in code versus what moves to prompts, we can understand the architecture of trust in AI systems.</p><h4>Hard Boundaries in Code</h4><p>The memory_tool.py file shows what explicit choices we’re still making in code:</p><p><strong>Security Boundaries</strong>: The _validate_path() method explicitly ensures all operations stay within the /memories directory. This is hard-coded protection against path traversal attacks. It’s a security boundary we enforce in code, not through prompts.</p><p><strong>Logging &amp; Tracing</strong>: Every operation is explicitly logged for debugging and audit trails. We know every tool call Claude made to the memory system and what was read or written.</p><p>These coded constraints are examples of the guardrails we build to create a safe sandbox within which Claude operates autonomously. They’re guarantees enforced by our infrastructure, not suggestions in a prompt. In a production system you will expand on these guardrails until you have an acceptable risk level for your line of business.</p><h4>The Power of Hooks: Beyond File Persistence</h4><p>The SDK’s hook-based architecture (<a href="https://github.com/anthropics/anthropic-sdk-python/blob/main/src/anthropic/lib/tools/_beta_builtin_memory_tool.py"><strong>BetaAbstractMemoryTool</strong></a>) enables remarkable flexibility. While our implementation uses a filesystem backend, you could implement these same hooks to:</p><ul><li>Store memories in a PostgreSQL database for multi-user applications</li><li>Use Redis for high-performance, distributed memory systems</li><li>Implement vector embeddings for semantic memory retrieval</li><li>Create hybrid systems that combine multiple storage backends</li></ul><p>The LLM doesn’t care about the backend. It just calls the hooks and trusts the implementation to handle the details. This separation of concerns enables powerful architectural flexibility while maintaining the same autonomous decision-making paradigm.</p><h4>Guidance Through Prompts</h4><p>Between the hard constraints of code and the full autonomy of the LLM lies prompt-based guidance. These are strong suggestions that shape behavior without guarantees:</p><pre>Keep your memory folder organized. Update existing files rather<br>than creating duplicates. Include metadata like dates when relevant.</pre><pre>When the memory folder exceeds 20 files, consolidate related<br>memories into broader topic files. Archive outdated information<br>with clear labels.</pre><p>This achieves implicit memory maintenance without explicit commands such as !compact. The LLM monitors its own memory health and performs housekeeping autonomously.</p><p>For more structure in the memory files, we could specify a frontmatter format for all new memories. This creates a sort of pseudo-schema to be leveraged by the LLM and our instrumentation code:</p><pre>All memory files should start with:<br>---<br>created: YYYY-MM-DD<br>relevance: current|archive<br>---</pre><p>This gives Claude a framework without removing its autonomy. It can still make contextual decisions within these guidelines.</p><h4>Making the Implicit Explicit: Explanatory Mode</h4><p>For demonstration purposes in the companion chat app, I added <strong>explanatory versions of the prompts</strong>. These make the implicit decision-making visible for learning:</p><pre># Directive in the system prompt</pre><pre>IMPORTANT: You are a teaching tool to help the user understand how you<br>process and utilize memories. After each natural conversational response,<br>add a concise summary of the memory actions you took and why.</pre><p>This produces illuminating results:</p><pre>[You]: “ok, I think I’ll set a goal to finish the outline today, by noon”</pre><pre>[Claude]: “Excellent goal! Finishing the outline by noon today (2025-11-10) gives ...”</pre><pre>---<br>Memory Actions Taken:<br>- Updated article status to reflect current goal: completing the outline by noon today (2025-11-10)<br>- This helps track progress and provides context if we discuss the article later today or in future sessions</pre><p>This explanatory mode becomes a powerful tool for understanding the LLM’s approach to memory and tuning your system prompts. It transforms the black box into a glass box, revealing the autonomous reasoning. Use it to validate that your prompt guidance is achieving the intended behaviors, then switch back to normal operation once satisfied.</p><p>The beauty of this division is that higher risk critical decisions stay in code where they’re guaranteed, while contextual decisions that benefit from intelligence and flexibility live in prompts. As models improve, the prompt-based behaviors get smarter automatically, while our security boundaries remain firm.</p><h3>Conclusion: Learning from Scale</h3><p>There’s a principle in AI research that keeps proving itself true. Systems built on general methods and scaled computation consistently outperform those with hand-crafted rules. Rich Sutton calls this <a href="http://www.incompleteideas.net/IncIdeas/BitterLesson.html"><strong>“The Bitter Lesson”</strong></a>. Bitter because it means our clever, specialized solutions inevitably lose to simpler approaches that leverage raw intelligence.</p><p>The shift from explicit to implicit memory perfectly illustrates this principle. And it reveals what becomes possible when we stop fighting it.</p><h4>The Power of Delegated Intelligence</h4><p>We’ve seen the behaviors that emerge: autonomous memory creation, contextual reorganization, self-healing from errors. These weren’t programmed. They emerged from granting the LLM authority within safe boundaries.</p><p>This pattern extends beyond memory. It extends to complex decision-making in your application. Routing requests, organizing data, managing workflows. All can potentially be delegated to intelligence rather than encoded in logic. The infrastructure you build becomes a framework for capabilities you haven’t even imagined yet.</p><p><strong>Hybrid model</strong>: Codify workflows that need precise control as tools, then let the LLM autonomously decide when and how to use them. This gives you explicit control over critical operations while still leveraging the LLM’s decision-making for orchestration.</p><p><strong>As models improve, your system automatically gets better</strong>. When the next generation releases, you update one parameter. Your existing infrastructure suddenly makes smarter decisions. No refactoring. No new edge cases. The same hooks you implement today become more capable tomorrow.</p><h4>Trust but Verify: Your Implementation Philosophy</h4><p>This shift changes how we architect AI systems. Instead of writing decision trees, we adopt a “trust but verify” philosophy:</p><ul><li><strong>Trust</strong>: Grant the AI authority through system prompts</li><li><strong>Verify</strong>: Monitor the behaviors that emerge</li><li><strong>Guide</strong>: Adjust prompts based on observed patterns</li><li><strong>Iterate</strong>: Refine boundaries as models improve</li></ul><p>We’re reallocating the effort once spent on explicit control logic to validation and evaluation. Same total engineering effort, fundamentally better product. The interesting work moves from implementing specific behaviors to designing systems that exhibit emergent intelligence while maintaining appropriate guardrails.</p><h4>The Path Forward</h4><p>But here’s my challenge to you: <strong>run an experiment</strong>. The gap between what models can do and what we think they can do is often surprising. Many teams discover their explicit controls were solving problems the LLM could handle autonomously (and often better).</p><p><strong>You can test this today.</strong> The <a href="https://github.com/AlteredCraft/implicit-memory-system-poc-article/tree/main"><strong>companion app</strong></a> provides a complete learning laboratory:</p><ul><li>Multiple prompting strategies for testing delegation</li><li>Full session tracing of every memory decision</li><li>Visual sequence diagrams exported from conversations</li><li>Real-time observation of memory folder organization</li></ul><p>Clone it. Run it. Watch what emerges. Add your own prompts. Test your assumptions. Even if the model isn’t ready for your use case today, you’ll have the framework when the next version drops.</p><p>The original memory post showed that LLM memory is just text management. This exploration reveals a deeper pattern: <strong>we’re moving from programming behaviors to orchestrating capabilities</strong>. The question isn’t whether to trust AI with decisions. It’s understanding which decisions, with what boundaries, and how to monitor the results.</p><p>The tools are ready. The models are capable. The only thing standing between you and implicit memory is running that first experiment.</p><h3>Want to explore further?</h3><ul><li>Original approach: <a href="https://github.com/AlteredCraft/simple_llm_memory_poc">simple_llm_memory_poc</a></li><li>Implicit approach: <a href="https://github.com/AlteredCraft/implicit-memory-system-poc-article/tree/main">implicit-memory-system-poc</a></li><li>Claude Agent SDK: <a href="https://docs.claude.com/en/api/agent-sdk/overview">Documentation</a></li><li>Memory Tool: <a href="https://docs.claude.com/en/docs/agents-and-tools/tool-use/memory-tool">Official docs</a></li><li>Anthropic on Agents: <a href="https://www.anthropic.com/engineering/building-effective-agents">Building Effective Agents</a></li></ul><h3>🛠️Tool of the Week</h3><p><a href="https://mem0.ai/"><strong>Mem0 — Universal memory layer for AI agents</strong></a></p><p><strong>Mem0</strong> is an open-source “memory layer” that sits between your agents and their storage, turning unstructured conversation logs into structured, updatable memories that can be shared across tools, sessions, and even multiple agents.</p><p><strong>Highlights:</strong></p><ul><li><strong>Structured, editable memories instead of raw chat logs</strong> — Stores facts as atomic memory objects (with metadata like user, tags, timestamps) and supports explicit ADD / UPDATE / DELETE / NOOP operations..</li><li><strong>Backend-agnostic long-term storage</strong> — Works with multiple storage types (vector DBs, relational DBs, and other backends) behind a single API, so you can evolve from “just a vector store” to richer hybrid memory without changing your agent code.</li><li><strong>Designed for real agent ecosystems</strong> — Supports per-user / per-agent memories, shared memories across agents, and integrations into orchestration frameworks like AG2.</li></ul><p><a href="https://mem0.ai/">Learn more about Mem0</a></p><h3>📎Tech Briefs</h3><ul><li><a href="https://www.leoniemonigatti.com/blog/memory-in-ai-agents.html"><strong>Making Sense of Memory in AI Agents</strong></a><strong>: </strong>Explains how AI agents handle memory — what it is, the main types and design patterns, how it’s implemented and managed across context and external storage, and why deciding what to remember, update, and forget is so challenging.</li><li><a href="https://www.ibm.com/think/news/ai-inches-toward-more-human-kind-of-memory"><strong>AI inches toward a more human kind of memory</strong></a><strong>:</strong> Describes new research on making AI memory more human-like, focusing on Google’s “Nested Learning” and its prototype model Hope, which spread learning across fast and slow layers so models can update over time, improve long-context recall, and reduce forgetting — though challenges around stability, security, and consistency remain.</li><li><a href="https://www.salesforce.com/blog/agentic-memory-agents/"><strong>Breaking the Memory Trilemma: How to Build AI Agents That Actually Remember</strong></a><strong>:</strong> Introduces the “<strong>memory trilemma</strong>” of accuracy, cost, and latency in AI agent memory, showing that naive long-context works best only for early interactions and then becomes too slow and expensive, and proposes a hybrid block-based extraction approach.</li><li><a href="https://www.youtube.com/watch?v=qU83GzN4Q7c"><strong>AI has a memory problem, just like you do</strong></a><strong>: </strong>This podcast episode uses a Trackmania speedrunning AI as a jumping-off point to unpack what “learning” vs “context” really mean in modern AI — covering LLM training vs RAG, short-term vs long-term memory, personalization, security and the dream (and risk) of deeply contextual AI assistants.</li><li><a href="https://arxiv.org/abs/2509.26506"><strong>SCUBA: Salesforce Computer Use Benchmark</strong></a><strong>:</strong> SCUBA is a realistic benchmark from Salesforce that tests AI “computer-use” agents on 300 real-world Salesforce CRM. Experiments show that current agents, especially open-source and zero-shot ones, struggle badly on these enterprise workflows (often &lt;5% success), while browser-based agents with strong closed models and demonstrations can reach around 40–50% task success, highlighting both how hard real business software is and how much demos can boost agent performance.</li></ul><p>That’s all for today. Thank you for reading this issue of <em>Deep Engineering</em>. We’re just getting started, and your feedback will help shape what comes next. Do take a moment to <a href="https://forms.microsoft.com/Pages/ResponsePage.aspx?id=Dmauk5VIE0SnXsWk3kKcDhvEtilalEBEqs_8ZEM_u5xUNFAzU0pOSUQxTUhJS0U2NTJVOVczV05GNy4u"><strong>fill out this short survey</strong></a> we run monthly — as a thank-you, we’ll add <strong>one Packt credit</strong> to your account, redeemable for any book of your choice.</p><p>We’ll be back next week with more expert-led content.</p><p>Stay awesome,<br>Divya Anne Selvaraj<br><em>Editor-in-Chief, Deep Engineering</em></p><p>If your company is interested in reaching an audience of developers, software engineers, and tech decision makers, you may want to <a href="https://packt.omeclk.com/portal/wts/uc%5EcnN2dfNaqmD-kB-mo66%7C7g%5Ef%7Cb"><strong>advertise with us</strong></a>.</p><p><a href="https://deepengineering.substack.com/leaderboard?&amp;referrer_token=2bqw9h&amp;utm_source=post">Refer a friend</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7734a05c43c9" width="1" height="1" alt=""><hr><p><a href="https://medium.com/deep-engineering/deep-engineering-28-sam-keen-on-making-ai-agents-remember-7734a05c43c9">Deep Engineering #28: Sam Keen on Making AI Agents Remember</a> was originally published in <a href="https://medium.com/deep-engineering">Deep Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Deep Engineering #27: Amar Akshat on Agentic Architecture and Trustworthy AI]]></title>
            <link>https://medium.com/deep-engineering/deep-engineering-27-amar-akshat-on-agentic-architecture-and-trustworthy-ai-e416bc5a0e17?source=rss-1b02211ff62b------2</link>
            <guid isPermaLink="false">https://medium.com/p/e416bc5a0e17</guid>
            <category><![CDATA[agentic-ai-architecture]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[software-architecture]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[payment-systems]]></category>
            <dc:creator><![CDATA[Divya Anne Selvaraj]]></dc:creator>
            <pubDate>Thu, 27 Nov 2025 09:36:39 GMT</pubDate>
            <atom:updated>2025-11-27T09:36:39.318Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hr04cqTV3IAR_FuKbweWhw.png" /></figure><h4>How Paysafe’s SVP of Architecture puts AI in the payments path — using cells, prompts-as-code, and confidence routing.</h4><h3><a href="https://www.eventbrite.com/e/ai-agent-frontiers-innovation-and-practical-applications-tickets-1972989383357?aff=deepeng">Agentic AI Frontier Summit 2025 (Online): From Single Models to Autonomous Systems</a></h3><figure><a href="https://www.eventbrite.com/e/ai-agent-frontiers-innovation-and-practical-applications-tickets-1972989383357?aff=deepeng"><img alt="" src="https://cdn-images-1.medium.com/max/800/0*z6LfY7zMAdThnr3w.png" /></a></figure><p>Join us on <strong>Dec 13, 2025 · 9am–2pm ET / 6am–11am PT </strong>to discover how AG2, autonomous research agents, and real-world multi-agent systems are reshaping science, engineering, and AI-native companies. Get <strong>40%</strong> off with code <strong>DEEPENG40</strong> and secure your spot at the frontier of agentic AI.</p><p><a href="https://www.eventbrite.com/e/ai-agent-frontiers-innovation-and-practical-applications-tickets-1972989383357?aff=deepeng"><strong>Unlock 40% off — Register with DEEPENG40</strong></a></p><p><strong>✍️From the editor’s desk,</strong></p><blockquote><em>“</em>You don’t need to train models; you need to design systems that can survive their uncertainty.”<em> — </em><a href="https://www.linkedin.com/in/akshatam/"><strong><em>Amar Akshat</em></strong></a><strong><em>, SVP of Architecture</em></strong><em> at </em><strong><em>Paysafe Group</em></strong></blockquote><p>Last Friday, Bank of America told investors it will channel <a href="https://www.reuters.com/business/finance/bofa-says-ai-is-boosting-bankers-productivity-revenue-2025-11-17/"><strong>$4 billion</strong> of its <strong>$13 billion</strong> tech budget into AI</a>, with its “Erica” assistant already logging <strong>3 billion</strong> client interactions — work the bank says would otherwise require about <strong>11,000 employees</strong>. And nearly <a href="https://www.emarketer.com/content/nearly-half-of-us-banks-have-rolled-genai-2025"><strong>47% of US banking decision-makers</strong></a> now say their institutions have fully rolled out generative AI — up from just 10% in 2023</p><p>Against that backdrop, today’s issue narrows in on <strong>two core questions</strong> engineers and architects working in fintech and critical systems are grappling with:</p><ol><li><strong>How do you put AI in the critical path of payments and wallet flows <em>without</em> giving up determinism, auditability, and regulatory control?</strong></li><li><strong>What architectural patterns — cells, prompts-as-code, confidence routing, and vendor-neutral orchestration — can scale in production, instead of becoming yet another fragile AI sidecar?</strong></li></ol><p>To help answer these, we’ve collaborated with <strong>Amar Akshat</strong>, <strong>SVP of Architecture</strong> at <strong>Paysafe Group</strong> and author of the forthcoming book <strong><em>Decode the Compiler</em></strong> (Packt, 2026). At Paysafe, Amar leads AI-native modernization across payments, wallets, and compliance platforms. Earlier in his career, he helped shape the architectural foundations of <strong>Apple Pay</strong> and contributed to wallet and tokenization frameworks at Apple. Before that, at <strong>Morgan Stanley</strong>, he worked deep in build and integration systems and compiler workflows. His work sits exactly at the intersection our readers care about most: compiler-level thinking, distributed systems, and architecture as a living, observable system.</p><p>In today’s issue:</p><ul><li><strong>Feature Article — “Agentic Architecture: Designing AI Systems with Guardrails for Trust”: </strong>A focused synthesis of Amar’s approach to agentic architecture, including:</li><li><strong>Cell-based boundaries</strong></li><li>Treating <strong>prompts as code</strong> in CI/CD</li><li><strong>Confidence-based routing</strong> and “trust deltas”</li><li>Prompt manifests as “<strong>Dockerfiles for AI</strong>”</li><li><a href="https://deepengineering.substack.com/p/architecting-ai-native-platforms"><strong>Our complete interview with Amar Akshat</strong></a><strong>: </strong>You can watch the complete conversation below or read the refined Q&amp;A article <a href="https://deepengineering.substack.com/p/architecting-ai-native-platforms"><strong>here</strong></a>.</li></ul><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FR8xSq42-iOM%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DR8xSq42-iOM&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FR8xSq42-iOM%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/704495bb60c2905a0e82a0d7cf5c69a2/href">https://medium.com/media/704495bb60c2905a0e82a0d7cf5c69a2/href</a></iframe><p>Today’s issue is about making AI <em>structural</em> to your architecture while staying inside the constraints that regulators, customers, and your own risk teams will require.</p><p>Let’s get started.</p><h3><a href="https://www.eventbrite.com/e/ai-powered-development-with-cursor-workshop-tickets-1701001233479">AI-Powered Development with Cursor Online Workshop: Ship Production Apps Fast</a></h3><figure><a href="https://www.eventbrite.com/e/ai-powered-development-with-cursor-workshop-tickets-1701001233479"><img alt="" src="https://cdn-images-1.medium.com/max/800/0*1OxAXHO7pUed8YJw.png" /></a></figure><p><strong>Nov 29, 2025</strong> · <strong>8:30am–12:30pm ET / 5:30am–9:30am PT</strong> · <strong>Online</strong>. Learn battle-tested Cursor workflows to ship production-grade full-stack apps faster. Get <strong>40%</strong> off with code <strong>CURSOR40</strong> and unlock <strong>2 free eBooks</strong> via this <a href="https://forms.office.com/pages/responsepage.aspx?id=Dmauk5VIE0SnXsWk3kKcDoSlb0TbVbZDlnp1qAGce19UQkk0Mzk3RTNTRU1CVjUwOTc5VUVDRDJRVi4u&amp;route=shorturl"><strong>follow-up form</strong></a> <strong>after purchase</strong>.</p><p><a href="https://www.eventbrite.com/e/ai-powered-development-with-cursor-workshop-tickets-1701001233479"><strong>Use CURSOR40 — Save 40%</strong></a></p><h3>Architecting AI-Native Systems: Agentic Platforms, Guardrails, and Practical Patterns with Amar Akshat</h3><p>According to <strong>Cloudera’s</strong> <a href="https://www.cloudera.com/blog/business/enterprise-ai-and-data-architecture-in-2025-from-experimentation-to-integration.html">The Evolution of AI: The State of Enterprise AI and Data Architecture</a> report, 96% of enterprises have at least some AI integrated into core processes (and 54% report “significant” integration). In domains like finance and payments, however, turning AI’s newfound capabilities into <strong>resilient, auditable, production-grade systems</strong> remains a formidable challenge. Architects must reconcile the <strong>non-deterministic</strong> nature of large models with the <strong>deterministic guarantees</strong> required for correctness, security, and compliance.</p><h3>AI in the Architectural Loop: Agentic Systems and Human Judgment</h3><p>Akshat’s current focus is what he calls:</p><blockquote>“agentic architecture” — “designing systems that can reason about themselves.”</blockquote><p>At Paysafe, this materializes in internal AI assistants (MCPX and ArchX) embedded into the development lifecycle. These agents codify architectural know-how:</p><blockquote>“We have trained internal AI agents to analyze architectural decision records (ADRs) and suggest reusable design patterns, effectively learning from the scars of every project before it,”<em> Akshat says.</em></blockquote><p>Human judgment, however, remains non-negotiable.</p><blockquote>“Human judgment still owns context, risk appetite, regulatory nuance, and product trade-offs… The AI can propose, but humans prioritize.”</blockquote><p>He offers a rule of thumb:</p><blockquote>“If a task mainly benefits from pattern recognition, that’s where putting AI in the loop makes sense. If it instead requires legal, financial, or compliance certainty, we keep it deterministic,”<em> Akshat notes.</em></blockquote><h3>Patterns for AI-Infused Architecture: Data, Guardrails, and “Cell” Boundaries</h3><p>Designing a reliable AI-heavy system starts with clear architectural boundaries and contracts. Akshat outlines three baseline elements his teams define up front:</p><ul><li><strong>Data Postulate:</strong> What is the current state of data that the AI can access?</li><li><strong>Guardrail Postulate:</strong> What is allowed or not allowed for the AI to do? “Do you want to completely ground the system? Do you want purely deterministic responses or use an existing LLM?,” he says.</li><li><strong>System Prompt Package:</strong> The system’s initial prompts and configuration — how the AI is instructed and what output format is expected. “For example, do you want more deterministic performance or do you want more accuracy? More transparency or more speed? These are the kinds of trade-offs that we encode into that system prompt package,” Akshat explains. His team creates a “prompt manifest” for each AI service — “like a Dockerfile for AI,” as Akshat describes it.</li></ul><p>With these elements in place, Akshat’s architecture uses a “cell-based” structure to isolate AI components.</p><blockquote>“All of our AI deployments are [like] cells — the tiniest unit of life — with their own regulatory nuances within themselves,” <em>he says.</em> “The critical path of analysis never leaves the cell boundary, and it only leaves the cell for audit and storage purposes. That keeps us safe — first of all — fast, and then deterministic.”</blockquote><h3>Guardrails and Reliability: Building Trust in Non-Deterministic Systems</h3><p>Even with good design patterns, AI systems can fail in unpredictable ways. Akshat’s approach is to engineer for reliability upfront, with multiple layers of guardrails and fallbacks:</p><ul><li><strong>Confidence-Based Routing:</strong> “<em>We route by confidence, really,</em>” Akshat says. If the model’s confidence is below a threshold, the system escalates to a deterministic path or human approval.</li><li><strong>Guardrails and Schema Validation:</strong> “<em>Prompt validation and schema enforcement… we use Pydantic plus semantics and sanity checks</em>,” he notes. “<em>A human only steps in for logic failures, not syntax,</em>” Akshat says.</li><li><strong>Continuous Testing for Drift:</strong> “<em>Basically, you have to look at AI prompts as code. That’s it</em>,” Akshat says.</li></ul><h3>Auditability and Traceability</h3><blockquote>“We log every inference as an ‘architectural replay,’ which includes things like model ID, prompt version, and data snapshot,” <em>says Akshat.</em> <em>Auditability is</em> “incredibly important” <em>in payments because </em>“this is real data you’re dealing with… sometimes real transactions.”</blockquote><h3>Operationalizing AI Systems: Cost, Vendor Neutrality, and Skills</h3><ul><li><strong>Cost Control — “Cache, Batch, Distill”:</strong> Akshat’s mantra for cost-efficiency is: <em>“cache, batch, distill.”</em> Caching stores and reuses AI results wherever possible. Batching aggregates requests to process many at once. Distilling means using smaller, cheaper models for simpler tasks.</li><li><strong>Multi-Provider Strategy — Avoiding Lock-In:</strong> <em>“We try to stick to the protocols the market is standardizing on — for example, the chat completions APIs and MCP,”</em> Akshat says. His team built MCPX, an internal orchestrator that routes requests to different AI backends — OpenAI, Azure’s hosted models, Anthropic, or their own on-prem LLMs — all through the same interface.</li><li><strong>Skills and Process for the AI Era:</strong> In Akshat’s words, <em>“You don’t need to train models; you need to design systems that can survive their uncertainty.”</em> His organization introduced “<strong>AI Behavior Reviews</strong>” in their design reviews and has identified an “<strong>AI SRE</strong>” role — someone who can discern if an incident was caused by model drift versus a code bug.</li></ul><p>“<em>First principles still apply</em>,” Akshat reminds us. CAP theorem trade-offs, Twelve-Factor app practices, least privilege security — these remain the north star. AI can help augment the architect — even act as a junior designer or reviewer — but it doesn’t replace the need for sound architectural thinking.</p><h3>🧠Expert Insight</h3><p>In the full Q&amp;A that follows Akshat walks through MCPX and ArchX, cell-based boundaries, prompts-as-code, confidence routing, and concrete payments and wallet scenarios, showing exactly how his teams operationalize these principles under real regulatory and reliability constraints.</p><h3><a href="https://deepengineering.substack.com/p/architecting-ai-native-platforms">Architecting AI-Native Platforms in the Real World: A Conversation with Amar Akshat</a></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/0*O6kJZIL4o4hz2liV" /></figure><p>AI is already in the loop for writing code, reviewing changes, and even drafting architecture diagrams — but turning those capabilities into resilient, auditable, production-grade systems in regulated domains is still hard. In payments and financial services especially, architects have to reconcile non-deterministic models with deterministic guarantees ar…</p><p><a href="https://deepengineering.substack.com/p/architecting-ai-native-platforms"><strong>Read full story</strong></a></p><h3>🛠️Tool of the Week</h3><p><a href="https://www.guardrailsai.com/"><strong>Guardrails: Open-source guardrails for production LLM applications</strong></a></p><p>Guardrails is an open source Python framework for building reliable LLM applications by running configurable input/output guards around models and enforcing structured, validated outputs.</p><p><strong>Highlights:</strong></p><ul><li><strong>Production-focused architecture:</strong> Ships both a Python library and a standalone Guardrails Server, with first-class docs on deploying the client/server model to production environments (including AWS), so teams can centralize safety policies without redesigning their apps.</li><li><strong>Typed, structured outputs:</strong> Uses JSON/Pydantic-style schemas plus a library of reusable “validators” in Guardrails Hub to turn free-form LLM responses into strongly-typed, semantically validated outputs, with automatic correction and redaction when checks fail.</li><li><strong>Actively maintained and ecosystem-friendly:</strong> Apache-2.0 licensed, with multiple releases in 2025 (latest v0.6.7) and integrations for LangChain, LlamaIndex, and the OpenAI SDK, making it straightforward to drop into existing LLM stacks.</li></ul><p><a href="https://www.guardrailsai.com/"><strong>Learn more about Guardrails</strong></a></p><h3>📎Tech Briefs</h3><ul><li><a href="https://ignite.microsoft.com/en-US/sessions/062de450-4fe4-417d-b7ad-98a94ca8c554"><strong>Innovation Session | Introducing Microsoft Agent 365: the Control Plane for AI Agents</strong></a><strong>:</strong> Focuses on how to onboard, train, and run autonomous AI agents securely at scale, with a strong emphasis on <a href="https://www.microsoft.com/en-us/microsoft-365/blog/2025/11/18/microsoft-agent-365-the-control-plane-for-ai-agents/"><strong>Agent 365</strong></a> and Microsoft’s emerging “agent estate” model. It walks you through patterns for making agents adaptive to changing business needs while keeping them inside guardrails for data access, regulatory compliance, and threat protection, effectively positioning security/governance as part of the agent development lifecycle.</li><li><a href="https://antigravity.google/blog/introducing-google-antigravity"><strong>Introducing Google Antigravity, a New Era in AI-Assisted Software Development</strong></a><strong>:</strong> Google has launched <strong>Antigravity</strong>, an AI-first IDE where multiple agents can directly operate the editor, terminal, and an embedded browser to write, test, and verify code autonomously. It’s built around Gemini 3 Pro but also supports other models like Claude Sonnet 4.5 and GPT-OSS, and introduces “Artifacts” (task lists, plans, screenshots, browser recordings) as first-class objects to audit and review what agents did.</li><li><a href="https://github.blog/enterprise-software/collaboration/level-up-design-to-code-collaboration-with-githubs-open-source-annotation-toolkit/"><strong>GitHub Annotation Toolkit: open-source Figma library for accessible design handoff</strong></a><strong>: </strong>GitHub has open-sourced its <strong>Annotation Toolkit</strong>, a Figma library of structured annotations that lets designers embed intent and accessibility behavior directly into their design files, instead of scattering it across comments and Slack threads. Built by GitHub’s accessibility design team after they found that nearly half of their audit issues could have been prevented with better upfront documentation, the toolkit gives teams reusable “stamps” to describe interactivity, responsive behavior, and WCAG-aligned requirements, and ships with checklists, tutorials, and a GitHub repo for contributions.</li><li><a href="https://www.salesforce.com/news/stories/everse-announcement/"><strong>Salesforce eVerse: Simulation environments for enterprise agents</strong></a><strong>:</strong><br>Salesforce AI Research has launched <strong>eVerse</strong>, a simulation environment for training voice and text agents using <strong>synthetic data generation, stress-testing, and reinforcement learning</strong> before they ever see real customers. The goal is to fix “jagged intelligence” in enterprise agents — brilliant on benchmark tasks but brittle with messy, real-world inputs like noisy calls, frustrated tone, or off-script requests — by running them through lifelike, high-variance scenarios at scale.</li><li><a href="https://www.forbes.com/councils/forbestechcouncil/2025/11/20/how-mcp-gateways-can-mitigate-hidden-mcp-security-risks/"><strong>Forbes Tech Council — “How MCP Gateways Can Mitigate Hidden MCP Security Risks”</strong></a><strong>:</strong> Suman Sharma, Head of PAM Engineering at Ping Identity argues that <strong>MCP gateways</strong> (sitting between agents and servers) are becoming essential to defend against malicious or misconfigured MCP servers, focusing on policy enforcement, monitoring, and isolation to contain prompt injection and data-exfiltration risks.</li></ul><p>That’s all for today. Thank you for reading this issue of <em>Deep Engineering</em>. We’re just getting started, and your feedback will help shape what comes next. Do take a moment to <a href="https://forms.microsoft.com/Pages/ResponsePage.aspx?id=Dmauk5VIE0SnXsWk3kKcDhvEtilalEBEqs_8ZEM_u5xUNFAzU0pOSUQxTUhJS0U2NTJVOVczV05GNy4u"><strong>fill out this short survey</strong></a> we run monthly — as a thank-you, we’ll add <strong>one Packt credit</strong> to your account, redeemable for any book of your choice.</p><p>We’ll be back next week with more expert-led content.</p><p>Stay awesome,<br>Divya Anne Selvaraj<br><em>Editor-in-Chief, Deep Engineering</em></p><p>If your company is interested in reaching an audience of developers, software engineers, and tech decision makers, you may want to <a href="https://packt.omeclk.com/portal/wts/uc%5EcnN2dfNaqmD-kB-mo66%7C7g%5Ef%7Cb"><strong>advertise with us</strong></a>.</p><p><a href="https://deepengineering.substack.com/leaderboard?&amp;referrer_token=2bqw9h&amp;utm_source=post"><strong>Refer a friend</strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e416bc5a0e17" width="1" height="1" alt=""><hr><p><a href="https://medium.com/deep-engineering/deep-engineering-27-amar-akshat-on-agentic-architecture-and-trustworthy-ai-e416bc5a0e17">Deep Engineering #27: Amar Akshat on Agentic Architecture and Trustworthy AI</a> was originally published in <a href="https://medium.com/deep-engineering">Deep Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Deep Engineering #26: Pushing More Work into the Compiler with Ivo Balbaert]]></title>
            <link>https://medium.com/deep-engineering/deep-engineering-26-pushing-more-work-into-the-compiler-with-ivo-balbaert-8b328fc6f9b6?source=rss-1b02211ff62b------2</link>
            <guid isPermaLink="false">https://medium.com/p/8b328fc6f9b6</guid>
            <category><![CDATA[programming-languages]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[compilers]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Divya Anne Selvaraj]]></dc:creator>
            <pubDate>Thu, 13 Nov 2025 14:32:03 GMT</pubDate>
            <atom:updated>2025-11-13T14:32:03.508Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*j0tV7oM9codeBD7O3zBfXA.png" /></figure><h4>Mojo, metaprogramming, and squeezing more from your existing compute</h4><h3><a href="https://www.eventbrite.com/e/quantum-computing-for-leaders-tickets-1785432238889?aff=deepengineering">Quantum Computing for Leaders: 3-Part Masterclass</a></h3><figure><a href="https://www.eventbrite.com/e/quantum-computing-for-leaders-tickets-1785432238889?aff=deepengineering"><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Yddzapo7VVSzR211.jpeg" /></a></figure><p>Build your team’s quantum readiness in just three sessions. Join <strong>Robert Loredo</strong> and <strong>IBM </strong>guest experts <strong>Travis Scholten </strong>and<strong> John Buselli </strong>to learn how to evaluate quantum bets, design quantum-ready architecture, and secure your org against future quantum threats. Use code <strong>QUANTUM30</strong> for 30% off.</p><p><a href="https://www.eventbrite.com/e/quantum-computing-for-leaders-tickets-1785432238889?aff=deepengineering">Get you pass</a></p><p><strong>✍️From the editor’s desk,</strong></p><p>Anthropic just announced it plans to spend <a href="https://www.reuters.com/technology/anthropic-invest-50-billion-build-data-centers-us-2025-11-12/"><strong>$50 billion</strong> <strong>on custom AI data centers</strong></a> in Texas and New York, aiming to bring them online from 2026 onwards. That sits on top of a <a href="https://www.datacenterdynamics.com/en/news/us-data-center-capacity-leasing-in-q3-exceeds-entirety-of-2024/">Q3 report from TD Cowen</a> showing US hyperscalers leased <strong>7.4 GW</strong> of data center capacity in a single quarter — more than in all of 2024, with another ~10.2 GW in the pipeline. But, that much steel and silicon only pays off if the software running on it is fast, predictable, and safe to operate at scale.</p><p><strong>So, what does it look like in practice to push more work into the compiler so our systems run faster and fail less often in production?</strong> Our feature, <em>Compile-Time Code: Writing Faster, Safer Software Before It Runs</em>, looks at how C++26, Rust, Swift, Zig, and Mojo are each moving computation, code generation, and safety checks into the compile step — using metaprogramming, static analysis, and hardware-aware specialization to trade a bit more build time for significantly better runtime behavior.</p><p>We then turn to <strong>Ivo Balbaert’s </strong><a href="https://deepengineering.substack.com/p/building-with-mojo-part-4-compile"><strong>fourth article</strong></a><strong> </strong>in our ongoing<strong> </strong><a href="https://deepengineering.substack.com/s/mojo"><strong>Building with Mojo</strong></a><strong> </strong>series, which walks you through Mojo’s compile-time metaprogramming toolkit — aliases, @parameter loops and conditionals, constrained functions, parametric closures, and parameterized structs—and shows how to use these features.</p><p><strong>Balbaert</strong> is a lecturer in web programming and databases at CVO Antwerpen and a long-time Packt author of introductions to new languages — including Dart, Julia, Rust, and Red.</p><p>Rounding out today’s theme, our <strong>Tool of the Week</strong>, <a href="https://pyrefly.org/">Pyrefly</a>, shows the same “do more before it runs” philosophy applied to large Python codebases, and this issue’s <strong>Tech Briefs</strong> track the surrounding ecosystem shifts — from <a href="https://visualstudiomagazine.com/articles/2025/11/12/vs-code-1-106-adds-agent-hq-new-security-controls.aspx">VS Code’s new Agent HQ</a>, <a href="https://discourse.llvm.org/t/llvm-21-1-5-released/88776">LLVM 21.1.5</a>, and <a href="https://www.youtube.com/watch?v=lQHK61IDFH4">NVIDIA’s GTC DC keynote on AI factories and extreme co-design</a>, to <a href="https://www.kubernetes.dev/resources/release/">Kubernetes 1.35’s</a> release cycle and a recent Pragmatic Engineer <a href="https://newsletter.pragmaticengineer.com/p/from-swift-to-mojo-and-high-performance">conversation with Chris Lattner</a> on Swift, Mojo, and high-performance AI engineering.</p><p>Let’s get started!</p><h3><a href="https://www.eventbrite.com/e/c-memory-management-masterclass-cohort-2-tickets-1962865917799?aff=deepeng">C++ Memory Management Masterclass (Cohort 2)</a></h3><figure><a href="https://www.eventbrite.com/e/c-memory-management-masterclass-cohort-2-tickets-1962865917799?aff=deepeng"><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*7qDu5RFVbwVLvBar.png" /></a></figure><p>Stop chasing C++ memory leaks. In this 2-day live masterclass, <strong>Patrice Roy</strong> (<strong>ISO C++ committee member</strong> and author of <strong><em>C++ Memory Management</em></strong>) walks you through RAII, smart pointers, and modern techniques to write fast, safe, leak-free C++ code.</p><p><a href="https://www.eventbrite.com/e/c-memory-management-masterclass-cohort-2-tickets-1962865917799?aff=deepeng"><strong>Reserve your seat</strong></a></p><h3>Compile-Time Code: Writing Faster, Safer Software Before It Runs with Ivo Balbaert</h3><p>In the last year, mainstream and emerging languages have pushed more work into the compiler, letting us “write code that writes code” before programs ever run. <a href="https://www.infoq.com/news/2025/06/cpp-26-feature-complete/">C++26 has frozen its feature set</a> with static reflection, so C++ code can inspect types at compile time and generate helpers such as enum-to-string mappers or bindings to other languages.</p><p><a href="https://blog.duolingo.com/ios-mvvm-swift-macros/">Swift’s macro system</a> lets engineers attach tags to existing code that generate new code at compile time by operating on the abstract syntax tree, and the generated code is fully integrated into the compiler so it is treated exactly like manually written Swift and benefits from the same optimizations. <strong>Mojo</strong>, a new language for AI systems, goes further by allowing many functions and loops to run at compile time via aliases and @parameter decorators, in <a href="https://verdagon.dev/blog/impossible-optimization">a style similar to Zig’s </a>comptime. Across these ecosystems, the goal is the same: shift work into the compiler so the resulting binaries are faster, safer, and more predictable.</p><h3>Performance Wins: Code Generation Ahead of Time</h3><p>The most visible payoff is raw speed. In Mojo, any expression bound to an alias is evaluated at compile time, so the final binary just reads a constant instead of recomputing a value. For example, the following Mojo snippet from Balbaert’s article shows how an alias precomputes a sum at compile time, while the same function can still be called at runtime:</p><pre>alias SUM = sum(10, 20, 2)<br><br>fn sum(lb: Int, ub: Int, step: Int) -&gt; Int:<br>    var total = 0<br>    for i in range(lb, ub, step):<br>        total += i<br>    return total<br>fn main():<br>    print(SUM)           # =&gt; 70<br>    print(sum(10, 20, 2))  # =&gt; 70</pre><p>In his recent “impossible optimization,” <a href="https://verdagon.dev/blog/impossible-optimization">Evan Ovadia</a> who is part of the Mojo Compiler Team shows a regex engine that parses a pattern and unrolls it entirely during compilation, generating a specialized matcher for each regex node. The compiler emits roughly twenty-eight times more inlined code, but the resulting email-matching regex runs about ten times faster than a conventional implementation and within roughly three percent of a hand-tuned C version . Metaprogramming effectively turns a generic algorithm into bespoke machine code.</p><p>Rust and Swift are converging on similar patterns. Rust and Swift are converging on similar patterns. Recent <a href="https://www.opensourceforu.com/2025/07/macros-in-rust-vs-lisp-a-comparison-of-their-metaprogramming-power/">overviews</a> describe Rust’s macro system as “structural” metaprogramming that operates on the abstract syntax tree rather than on raw text, integrating closely with the compiler’s hygiene and type-checking so that <a href="https://calmops.com/rust/procedural-macros-in-rust/">macros</a> transform code safely at compile time. Swift macros, meanwhile, are described by <a href="https://blog.duolingo.com/ios-mvvm-swift-macros/">Duolingo’s iOS architecture team</a> as tags attached to declarations that operate on the Swift AST and generate additional code during compilation, with the expanded code treated exactly like handwritten Swift and benefiting from the same type checking and optimizations. In all three languages, the compiler effectively becomes a code generator that specializes logic ahead of time instead of relying on runtime indirection.</p><p>The trade-off is build cost. In the regex case study, the Mojo compiler had to generate around five times more code and spent noticeably longer compiling to achieve the speed-up. Rust developers report similar pain: the <a href="https://blog.rust-lang.org/2025/09/10/rust-compiler-performance-survey-2025-results/">2025 Rust compiler performance survey</a> highlights procedural macros, deep generic code, and large dependency graphs as key reasons builds feel slow, and the compiler team has prioritized changes to reduce this overhead. Practically, aggressive metaprogramming needs to be reserved for performance-critical hotspots where the runtime gains justify extra compile time.</p><h3>Safety by Static Analysis: Fewer Bugs at Runtime</h3><p>Compile-time mechanisms are also being used to strengthen correctness. Rust’s borrow checker uses static analysis to enforce ownership and borrowing rules before the program runs. As Sunil Kumar, Principle Solution Architect at ailoitte <a href="https://www.ailoitte.com/blog/rust-memory-safety/">explains</a>, each value has a single owner and, when the owner goes out of scope, Rust frees the memory automatically, eliminating classes of bugs such as dangling pointers and double frees. The compiler also enforces that code can have many readers or exactly one writer, but never both at the same time, which prevents data races at compile time. These checks are purely static, so once the code passes, it runs at native speed with no runtime overhead.</p><p>Mojo adopts a similar philosophy, combining high-level syntax with Rust-like safety and systems-level control, and leaning on compile-time analysis to drive memory management rather than relying on a garbage collector. Tooling follows the same pattern. <a href="https://engineering.fb.com/2025/05/15/developer-tools/open-sourcing-pyrefly-a-faster-python-type-checker-written-in-rust/">Meta’s Pyrefly</a>, a new open-source Python type checker written in Rust, is designed to provide fast, incremental analysis so very large Python codebases can catch errors before runtime while still giving near-instant feedback in the editor. Together, these trends show static analysis moving into the compilation and tooling pipeline, improving safety without sacrificing performance.</p><h3>One Language, Many Targets</h3><p>Modern systems increasingly span CPUs, GPUs, and accelerators, and compile-time metaprogramming is becoming a key technique for targeting all of them efficiently. <a href="https://www.linkedin.com/pulse/automated-equality-checks-c-reflection-c26-daniel-lemire-pwjie/">C++26’s static reflection</a> is explicitly described as a building block for generating bindings to other languages and synthesizing code that adapts to platform-specific details at build time. Zig’s comptime, as Aleksey Kladov <a href="https://matklad.github.io/2025/04/19/things-zig-comptime-wont-do.html">shows</a>, supports partial evaluation and specialisation: marking a parameter as comptime forces the compiler to evaluate that dimension up front, leaving only the truly dynamic parts for runtime and enabling patterns like specialised serializers without separate code-generation steps. Mojo, built on MLIR and LLVM, is designed so that the same high-level kernel can be compiled into different low-level representations depending on the target CPU or accelerator, with loop unrolling and layout choices made at compile time rather than in hand-written device code. In each case, compile-time facilities let one codebase stretch across architectures while still producing optimized binaries.</p><h3>Metaprogramming as a Design Tool</h3><p>Compile-time metaprogramming is moving from niche trick to first-class design tool. Teams no longer have to choose strictly between productivity and performance; with the right language support, they can write generic, high-level code and let the compiler specialize it.</p><p>The <strong>emerging best practice</strong> is to treat compile-time facilities as a scarce, high-leverage resource: use them to pre-compute expensive decisions, encode invariants, and adapt to hardware, while keeping a close eye on build-time cost and complexity. <strong>For teams evaluating Mojo alongside Rust, Swift, C++, and Zig:</strong> structured macros, strong static analysis, and disciplined compile-time execution can deliver faster, safer systems without degenerating into unmaintainable metaprogramming hacks.</p><h3>🧠Expert Insight</h3><p>If you want to move from the architectural view back down into concrete syntax, the following article by Ivo Balbaert walks you through Mojo’s compile-time model step by step — from aliases and comptime execution to parametric functions, decorators like @parameter for and @parameter if, constraints, and closures. It’s a focused tour of the language features behind the trends discussed above, illustrated with small, targeted examples.</p><h3><a href="https://deepengineering.substack.com/p/building-with-mojo-part-4-compile">Building with Mojo (Part 4): Compile-Time Metaprogramming in Mojo</a></h3><p><a href="https://substack.com/profile/121154596-ivo-balbaert">Ivo Balbaert</a></p><p>Nov 12</p><figure><a href="https://deepengineering.substack.com/p/building-with-mojo-part-4-compile"><img alt="" src="https://cdn-images-1.medium.com/max/280/0*K7iFlB7txjTURkBo.png" /></a></figure><p>This article is Part 4 of our ongoing series on the Mojo programming language. Part 1 introduced Mojo’s origins, design goals, and its promise to unify Pythonic ergonomics with systems-level performance.</p><p><a href="https://deepengineering.substack.com/p/building-with-mojo-part-4-compile"><strong>Read full story</strong></a></p><h3>🛠️Tool of the Week</h3><p><a href="https://pyrefly.org/"><strong>Pyrefly: Meta’s high-performance Python type checker</strong></a></p><p>Pyrefly is an open source, Rust-based type checker and language server for Python. It powers lightning-fast IDE feedback and static typing over very large codebases and is intended to replace their previous internal checker in production.</p><p><strong>Highlights:</strong></p><ul><li><strong>Scale + speed:</strong> Pyrefly can type-check over <strong>1.85 million lines of code per second</strong> on Meta’s infra, and the entire Instagram codebase in <strong>13.4 seconds</strong> vs 100+ seconds with the previous checker.</li><li><strong>“Invisible” safety:</strong> Designed for instant IDE feedback, so teams can push more correctness checks earlier without slowing down developers.</li><li><strong>Gradual adoption:</strong> It supports large, partially-typed Python codebases and can infer many types automatically, making it realistic for real-world migration rather than greenfield only.</li></ul><p><a href="https://pyrefly.org/"><strong>Learn more about Pyrefly</strong></a></p><h3>📎Tech Briefs</h3><ul><li><a href="https://visualstudiomagazine.com/articles/2025/11/12/vs-code-1-106-adds-agent-hq-new-security-controls.aspx"><strong>VS Code 1.106 — Agent HQ and MCP Security Controls for AI-Heavy Workflows</strong></a><strong>:</strong> The October 2025 Visual Studio Code release doubles down on AI-assisted development with a new “Agent HQ” experience that centralizes Copilot and other agents into a single dashboard, plus improved Model Context Protocol (MCP) authentication and governance. Teams can define custom agents, control which MCP servers are allowed in a workspace, and require pre-/post-approval for tools, which matters if you’re letting agents run commands or touch internal systems.</li><li><a href="https://discourse.llvm.org/t/llvm-21-1-5-released/88776"><strong>LLVM 21.1.5 — Toolchain Stability for Compilers, Runtimes, and Browsers</strong></a><strong>: </strong>This is a point update but relevant for anyone shipping code on top of LLVM (including Clang, lld, libc++, MLIR, and a long tail of language runtimes and tools). The release bundles targeted fixes across x86 codegen, sanitizers, linkers, and build infrastructure, and is already being packaged by major distros like Arch Linux.</li><li><a href="https://www.youtube.com/watch?v=lQHK61IDFH4"><strong>NVIDIA GTC Washington, D.C. Keynote with CEO Jensen Huang</strong></a><strong>:</strong> NVIDIA’s GTC DC keynote frames AI and accelerated computing as <strong>America’s “next Apollo moment,”</strong> arguing that <strong>GPUs</strong>, <strong>AI factories</strong>, and <strong>extreme co-design</strong> across chips, systems, software, and data centers are the new essential infrastructure for science, industry, and national competitiveness. Jensen Huang walks through how this model underpins everything from 6G networks and quantum error correction to humanoid robots, autonomous vehicles, and U.S. re-industrialization via NVIDIA’s expanding hardware, software, and partner ecosystem.</li></ul><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FlQHK61IDFH4%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DlQHK61IDFH4&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FlQHK61IDFH4%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/43123e735003ed966d38af88eb4a52f5/href">https://medium.com/media/43123e735003ed966d38af88eb4a52f5/href</a></iframe><ul><li><a href="https://www.kubernetes.dev/resources/release/"><strong>Kubernetes v1.35 Release Cycle — Alpha Builds Landing Ahead of December GA</strong></a><strong>:</strong> Kubernetes v1.35 is now deep into its release cycle, with alpha.3 tagged in late October and code freeze scheduled for early November ahead of a planned GA on 17 December 2025. The release team’s schedule highlights ongoing work on enhancements, production-readiness reviews, and test freezes, while the alpha builds are already available via the main kubernetes/kubernetes <a href="https://github.com/kubernetes/kubernetes/releases">GitHub releases page</a>.</li><li><a href="https://newsletter.pragmaticengineer.com/p/from-swift-to-mojo-and-high-performance"><strong>From Swift to Mojo and High-Performance AI Engineering (podcast)</strong></a><strong>: </strong>Gergely Orosz sits down with Chris Lattner (LLVM, Swift, Mojo) to unpack how language and compiler design can lower the barrier to AI development while still hitting systems-level performance. The episode covers why Lattner thinks readability matters more than “AI-native” languages in an LLM world, how Mojo layers Python-like ergonomics on top of features like compressed floating-point formats and compile-time metaprogramming.</li></ul><p>That’s all for today. Thank you for reading this issue of <em>Deep Engineering</em>. We’re just getting started, and your feedback will help shape what comes next. Do take a moment to <a href="https://forms.microsoft.com/Pages/ResponsePage.aspx?id=Dmauk5VIE0SnXsWk3kKcDhvEtilalEBEqs_8ZEM_u5xUNFAzU0pOSUQxTUhJS0U2NTJVOVczV05GNy4u"><strong>fill out this short survey</strong></a> we run monthly — as a thank-you, we’ll add <strong>one Packt credit</strong> to your account, redeemable for any book of your choice.</p><p>We’ll be back next week with more expert-led content.</p><p>Stay awesome,<br>Divya Anne Selvaraj<br><em>Editor-in-Chief, Deep Engineering</em></p><p>If your company is interested in reaching an audience of developers, software engineers, and tech decision makers, you may want to <a href="https://packt.omeclk.com/portal/wts/uc%5EcnN2dfNaqmD-kB-mo66%7C7g%5Ef%7Cb"><strong>advertise with us</strong></a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8b328fc6f9b6" width="1" height="1" alt=""><hr><p><a href="https://medium.com/deep-engineering/deep-engineering-26-pushing-more-work-into-the-compiler-with-ivo-balbaert-8b328fc6f9b6">Deep Engineering #26: Pushing More Work into the Compiler with Ivo Balbaert</a> was originally published in <a href="https://medium.com/deep-engineering">Deep Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Deep Engineering #25: Ayodeji Ayodele on Leading with GitHub — Collaboration, CI/CD, and AI]]></title>
            <link>https://medium.com/deep-engineering/deep-engineering-25-ayodeji-ayodele-on-leading-with-github-collaboration-ci-cd-and-ai-e4809b88a08e?source=rss-1b02211ff62b------2</link>
            <guid isPermaLink="false">https://medium.com/p/e4809b88a08e</guid>
            <category><![CDATA[github-copilot]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[github]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[supply-chain-security]]></category>
            <dc:creator><![CDATA[Divya Anne Selvaraj]]></dc:creator>
            <pubDate>Thu, 13 Nov 2025 10:39:10 GMT</pubDate>
            <atom:updated>2025-11-13T10:42:16.246Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*F2BzJ3mqmmS3PWyc7oHlwg.png" /></figure><h3>Deep Engineering #25: Ayodeji Ayodele on Leading with GitHub — Collaboration, CI/CD, and AI</h3><h4>From branch protections to dependable AI: practical steps to ship faster, safer, and smarter with GitHub.</h4><p><strong>✍️<em>From the editor’s desk,</em></strong></p><p><a href="https://www.linkedin.com/pulse/octoverse-2025-typescript-takes-1-ai-reshapes-stack-p3hac/"><strong>Octoverse 2025</strong></a> just set a new baseline for how fast teams can move: developers merged <strong>~43.2 million pull requests per month</strong> this year (up ~23% year over year), closed a record <strong>5.5 million issues in July</strong>, and, for the first time, <strong>TypeScript</strong> became the most-used language on GitHub — clear signals of tighter feedback loops, heavier automation, and a shift toward typed, AI-assisted workflows.</p><p><strong>This issue asks — and answers — four core questions:</strong></p><ol><li>How do you convert that velocity into <strong>governed, repeatable delivery</strong>?</li><li>What are the <strong>least-regret guardrails</strong> for CI/CD and software supply chain security on GitHub right now?</li><li>How do you use <strong>Copilot and emerging agents responsibly</strong> — accelerating output while maintaining review rigor and code quality?</li><li>Which collaboration patterns — <strong>inner source, docs-first habits, rule sets</strong> — have the most impact in busy repos?</li></ol><p>To find the answers, we sat down with <a href="https://www.linkedin.com/in/ayodeji-ayodele/"><strong>Ayodeji (“Ayo”) Ayodele</strong></a> — <strong>Senior Customer Success Architect at GitHub</strong>, DevOps evangelist, and Agile coach with <strong>18+ years</strong> across Financial Services, Tech, FMCG, Manufacturing, and the Public Sector. Ayo partners with CIOs and engineering leaders across <strong>Asia, Oceania, and Africa</strong> to translate platform capabilities into outcomes: <strong>developer velocity, stronger security posture, and healthier cross-team collaboration</strong>. He’s also the author of the <a href="https://www.packtpub.com/en-us/product/github-foundations-certification-guide-9781836206040"><strong><em>GitHub Foundations Certification Guide</em></strong></a> (Packt, 2025).</p><p>In this issue:</p><ul><li>Our complete interview with Ayo on moving from “using Git” to <strong>leading with GitHub. </strong>You can <strong>watch</strong> the complete interview below, <a href="https://deepengineering.substack.com/p/mastering-github-in-the-real-world"><strong>read the complete Q&amp;A</strong></a>, or listen to/download the audio only version <a href="https://deepengineering.substack.com/p/mastering-github-at-scale-ayodeji"><strong>here</strong></a>.</li></ul><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FqfZWQg4AnV4%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DqfZWQg4AnV4&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FqfZWQg4AnV4%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/f6d73958949b73e2d7cdb483bdb061f3/href">https://medium.com/media/f6d73958949b73e2d7cdb483bdb061f3/href</a></iframe><ul><li>The complete <a href="https://deepengineering.substack.com/p/security-practices-and-user-management"><strong>Chapter 15: “Security Practices and User Management”</strong></a> from Ayodele’s book as an immediately applicable checklist (2FA, roles/teams, scanning, audit logs, incident playbooks).</li><li>Feature Article: <strong>Leading with GitHub: Scalable Collaboration, CI/CD, and AI with Ayodeji Ayodele </strong>distilling insights from our conversation.</li><li>Tool of the Week: <a href="https://trivy.dev/latest/"><strong>Trivy</strong></a></li><li>A breakdown of <a href="https://www.linkedin.com/pulse/octoverse-2025-typescript-takes-1-ai-reshapes-stack-p3hac/"><strong>Octoverse 2025: TypeScript takes #1 as AI reshapes the stack</strong></a></li></ul><h3>Leading with GitHub: Scalable Collaboration, CI/CD, and AI with Ayodeji Ayodele</h3><p>GitHub now sits at the center of modern software delivery. In a conversation with Deep Engineering, Ayodeji Ayodele — a Senior Customer Success Architect at GitHub with nearly two decades in DevOps — shared how to move from simply <em>using Git</em> to truly <em>leading with GitHub</em>. He outlines ways to scale collaboration, automation, and security practices without slowing down delivery.</p><h3>Open Ways of Working, Inside the Firewall</h3><p>According to <a href="https://www.blackduck.com/content/dam/black-duck/en-us/reports/rep-ossra.pdf"><strong>Black Duck’s 2025 Open Source Security and Risk Analysis Report</strong></a>, <strong>97% of applications contain open-source components (averaging 70% of the codebase)</strong>.</p><p>Ayodele emphasizes using GitHub’s collaboration features to break down silos, both in open source and within enterprises.</p><blockquote>“Open source is the backbone of modern software,”<em> he notes.</em></blockquote><p>With an estimated 50–60% of all software now built on open-source components, he encourages engineers to contribute to public projects to sharpen their skills. Equally, Ayodele advocates bringing open practices inside companies through <strong>inner source</strong>.</p><blockquote>“Bringing open-source practices inside companies — what we call inner source — breaks down silos and accelerates innovation,”<em> he says.</em></blockquote><blockquote>“Transparency, forking and pulling workflows, and opening discussions all drive better code and teamwork,”</blockquote><blockquote>Ayodele explains, adding that a blame-free, well-communicated rollout and strong executive buy-in can overcome cultural resistance. At <strong>Microsoft</strong>, the <a href="https://innersourcecommons.org/stories/microsoft/"><strong>DevOps Dojo’s InnerSource program</strong></a> created a single source of truth and drove “IP reuse,” cutting redundancy and enabling collaboration across 36 countries. At <strong>IBM</strong>, the enterprise <a href="https://innersourcecommons.org/events/isc-2025/#Micaela_D_Eller:~:text=At%20IBM%2C%20we,and%20reuse%20easy."><strong>InnerSource program</strong></a> — led by IBM Research — explicitly targets open collaboration and <strong>reuse at scale</strong> across teams.</blockquote><p>To make inner source work, teams need clear contribution guidelines, leadership support, and a documentation-first culture. Because any change can face resistance, Ayodele suggests over-communicating plans and having leadership visibly back the inner source initiative. GitHub’s features (Issues, Discussions, project boards, etc.) enable asynchronous teamwork across time zones, but only if context is well documented so colleagues can work without a meeting. By embracing open collaboration patterns internally, organizations unlock their developers’ collective potential.</p><h3>CI/CD: Shipping Fast Without Pipeline Overload</h3><p>Ayodele defines CI/CD as:</p><blockquote>“a practice and a set of standards that helps you automate all of the very tedious, boring, repetitive tasks that you would ordinarily have to do by hand.”</blockquote><p>Done right, pipelines eliminate human error, enforce consistency, and allow teams to “build with confidence” while shipping updates far more frequently. In Ayodele’s view, CI/CD is <strong>integral</strong> to modern software development — but it must be implemented wisely.</p><p>He cautions against letting “pipeline bloat” slow engineers down. Instead, teams should keep pipelines lean and purposeful: break large processes into smaller parallel steps, cache dependencies to avoid needless rebuilds, and introduce automated quality gates at key points.</p><p>For example, a GitHub Actions workflow can block a pull request from merging if tests fail or a code scan finds critical vulnerabilities. Automating early and often — while cutting superfluous steps — lets organizations accelerate delivery. With reusable workflows and built-in checks, the release process becomes repeatable and reliable. The payoff is not just speed but confidence that every change is vetted before production. This design prevents one long serial pipeline from blocking everyone’s work.</p><h3>Security by Design: Protecting the Software Supply Chain</h3><p>Even as teams move faster and adopt open collaboration practices, Ayodele underscores that <strong>security is everyone’s job</strong>. Modern software relies on myriad open-source dependencies and automated workflows, so guarding the software supply chain is critical. Fortunately, GitHub provides multiple layers of defense that teams can enable.</p><blockquote>“Use the built-in tools you have on GitHub to protect your code at every stage,”<em> he urges.</em></blockquote><p>For example, <strong>secret scanning</strong> can catch credentials before they leak, while branch protection rules and required reviews prevent risky merges. Enabling Dependabot alerts keeps dependencies up to date, and turning on code scanning flags flaws in the codebase. Ayodele also advises verifying builds: using GitHub Actions to generate SLSA provenance attestations ensures artifacts haven’t been tampered with. He recommends enforcing two-factor authentication for all contributors and mandating signed commits, so every change is traceable to a verified identity. By weaving security into every step, teams can move quickly <strong>without compromising on safety</strong>.</p><h3>AI as the New Pair Programmer</h3><p>Perhaps the most game-changing trend in the GitHub ecosystem is the integration of AI assistance directly into the developer workflow. Ayodele, with 20 years in the industry, says</p><blockquote>“I’ve never seen anything like this before”<em>.</em></blockquote><p>Tools like <strong>GitHub Copilot</strong> have evolved from autocomplete-style helpers to capable “co-developers” that can generate code, explain it, write tests, and even autonomously create pull requests.</p><p>The impact on productivity is tangible: <a href="https://github.blog/news-insights/octoverse/octoverse-a-new-developer-joins-github-every-second-as-ai-leads-typescript-to-1/"><strong>GitHub’s Octoverse 2025 report</strong></a> shows that the preview of Copilot’s new coding agent in early 2025 coincided with a significant jump in output — <em>“developers closed 1.4 million more issues [in March] than the prior month”</em>, reaching an all-time high of 5.5 million issues closed in a single month by mid-2025.</p><p>And it’s not just quantity of work; quality is getting a boost as well. AI-powered features are catching and fixing common bugs and security issues at scale. For example, <strong>Copilot’s “Autofix”</strong> feature is now automatically resolving thousands of OWASP Top 10 security flaws in code each month, contributing to that drop in critical alerts. These advances support Ayodele’s observation that teams using AI are seeing higher test coverage and fewer vulnerabilities.</p><p>That said, Ayodele and industry surveys alike urge a balanced, responsible adoption of AI. Developers are rapidly embracing these tools. According to <a href="https://survey.stackoverflow.co/2025/ai#sentiment-and-usage"><strong>StackOverflow’s 2025 Developer Survey</strong></a>, <strong>46% of developers don’t trust the accuracy of AI outputs</strong>, and only a tiny fraction (around 3%) “highly trust” the answers from AI. The vast majority prefer to double-check with a human colleague when unsure, and about <strong>75% say they would turn to a co-worker if they don’t fully trust an AI’s answer</strong>. Ayodele acknowledges this skepticism:</p><blockquote>“It’s difficult to trust what you don’t know… you may need to understand what’s going on under the hood.”</blockquote><p>He advocates using AI as a learning tool and accelerant, not a crutch or replacement for human insight. For junior engineers especially, Copilot can help explain code and suggest solutions, but it’s vital that they still <strong>practice critical thinking and code review</strong>.</p><h3>Leading into the Future</h3><p>The role of a software engineer is evolving. Mastering GitHub in 2025 means mastering a blend of <strong>technical tools and human skills</strong>. On the technical side, that’s proficiency in collaborative workflows, automation pipelines, security practices, and AI-augmented coding. On the human side, it’s creativity, problem-solving, communication, and adaptability. Ayodele says that creativity and empathy remain uniquely human strengths:</p><blockquote>AI can help with complex tasks, but AI can’t replace creativity. AI cannot replace empathy. It cannot replace problem-solving. These are innate skills for humans. …So I don’t think AI will replace human beings, you know. So you want to <strong>focus on creativity, on communication, on design thinking, and, … adaptability as well.</strong></blockquote><p>Engineers should focus on the skills that never go out of style: <strong>learning how to learn, and learning how to work with others (including our AI tools)</strong>. In the next 5–10 years, successful developers and tech leaders will be those who continuously adopt new technologies like Copilot <strong>while upholding high standards and mentoring others</strong>. As Ayodele puts it,</p><p>Armed with a learning mindset and the platform knowledge to take advantage of GitHub’s capabilities, today’s developers can confidently navigate a world where software delivery is faster, more open, and more intelligent than ever.</p><h3>🧠Expert Insight</h3><ol><li><strong>The complete “</strong><a href="https://deepengineering.substack.com/p/security-practices-and-user-management"><strong>Chapter 15: Security Practices and User Management</strong></a><strong>” from the book, <em>GitHub Foundations Certification Guide</em> (Packt, 2025), by Ayodeji Ayodele</strong></li><li><a href="https://deepengineering.substack.com/p/mastering-github-in-the-real-world"><strong>Deep Engineering’s complete conversation with Ayodeji Ayodele</strong></a></li></ol><h3><a href="https://deepengineering.substack.com/p/mastering-github-in-the-real-world">Mastering GitHub in the Real World: A Conversation with Ayodeji Ayodele</a></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/0*-HelHjrD-yeKeBFv" /></figure><p>From secure collaboration and branch protections to reusable workflows and AI-assisted development, GitHub now sits at the center of how software gets built — and scaled — inside modern organizations. In this conversation, we speak with Ayodeji Ayodele — author of the</p><p><a href="https://deepengineering.substack.com/p/mastering-github-in-the-real-world"><strong>Read full story</strong></a></p><h3>🛠️Tool of the Week</h3><p><a href="https://trivy.dev/latest/"><strong>Trivy (Aqua Security)</strong></a></p><p>A fast, all-in-one open-source scanner that finds vulnerabilities, misconfigurations (IaC), exposed secrets, and generates SBOMs across containers, OS packages, repos, and Kubernetes. Apache-2.0 licensed.</p><p>Highlights:</p><ul><li><strong>Coverage in one tool</strong> reduces pipeline sprawl (CVE scan, IaC misconfig, secrets, SBOM).</li><li><strong>Low friction</strong> to adopt org-wide via reusable workflows in GitHub Actions.</li><li><strong>Proven at scale</strong> in a commercial artifact platform, signaling maturity for enterprise use.</li></ul><p><a href="https://trivy.dev/latest/"><strong>Learn more about Trivy</strong></a></p><h3>📎Tech Briefs</h3><ul><li><a href="https://www.linkedin.com/pulse/octoverse-2025-typescript-takes-1-ai-reshapes-stack-p3hac/"><strong>Octoverse 2025 lands with fresh benchmarks for engineering leaders</strong></a><strong>: </strong>GitHub’s annual report highlights growth (e.g., developer sign-ups, pull requests merged, issues closed) and trends like typed languages and AI — use it to calibrate team throughput and tooling choices. Here is a <a href="https://www.linkedin.com/pulse/octoverse-2025-typescript-takes-1-ai-reshapes-stack-p3hac/"><strong>concise breakdown.</strong></a></li><li><a href="https://nodejs.org/en/blog/release/v24.11.0"><strong>Node.js 24 enters LTS (“Krypton”)</strong></a><strong>:</strong> The project promoted v24.x to Long-Term Support on Oct 28, 2025 (v24.11.0), making this the recommended production line through April 2028 — plan upgrades and CI matrices accordingly.</li><li><a href="https://github.blog/changelog/2025-10-28-assign-code-scanning-alerts-to-copilot-for-automated-fixes-in-public-preview/"><strong>You can now assign code-scanning alerts to Copilot for automated fixes (public preview)</strong></a><strong>:</strong> From the alert or via security campaigns, Copilot creates a remediation plan and opens a draft PR — tightening MTTR and turning findings into actionable changes.</li><li><a href="https://www.imperva.com/blog/cve-2025-62725-from-docker-compose-ps-to-system-compromise/"><strong>Docker Compose patched a high-severity path traversal (CVE-2025–62725)</strong></a><strong>:</strong> The flaw could allow arbitrary writes on the host when resolving malicious OCI Compose artifacts; upgrade to Docker Compose v2.40.2 or later.</li><li><a href="https://react.dev/blog/2025/10/01/react-19-2"><strong>React 19.2 ships with new primitives and SSR improvements</strong></a><strong>:</strong> The Oct 1 release introduces features like &lt;Activity /&gt;, useEffectEvent, and cacheSignal, plus partial pre-rendering enhancements—worth evaluating for performance and DX wins.</li></ul><p>That’s all for today. Thank you for reading this issue of <em>Deep Engineering</em>. We’re just getting started, and your feedback will help shape what comes next. Do take a moment to <a href="https://forms.microsoft.com/Pages/ResponsePage.aspx?id=Dmauk5VIE0SnXsWk3kKcDhvEtilalEBEqs_8ZEM_u5xUNFAzU0pOSUQxTUhJS0U2NTJVOVczV05GNy4u"><strong>fill out this short survey</strong></a> we run monthly — as a thank-you, we’ll add <strong>one Packt credit</strong> to your account, redeemable for any book of your choice.</p><p>We’ll be back next week with more expert-led content.</p><p>Stay awesome,<br>Divya Anne Selvaraj<br><em>Editor-in-Chief, Deep Engineering</em></p><p>If your company is interested in reaching an audience of developers, software engineers, and tech decision makers, you may want to <a href="https://packt.omeclk.com/portal/wts/uc%5EcnN2dfNaqmD-kB-mo66%7C7g%5Ef%7Cb"><strong>advertise with us</strong></a>.</p><p><a href="https://deepengineering.substack.com/leaderboard?&amp;referrer_token=2bqw9h&amp;utm_source=post"><strong>Refer a friend</strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e4809b88a08e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/deep-engineering/deep-engineering-25-ayodeji-ayodele-on-leading-with-github-collaboration-ci-cd-and-ai-e4809b88a08e">Deep Engineering #25: Ayodeji Ayodele on Leading with GitHub — Collaboration, CI/CD, and AI</a> was originally published in <a href="https://medium.com/deep-engineering">Deep Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Deep Engineering #24: Scott Millett on why IT strategy is business strategy]]></title>
            <link>https://medium.com/deep-engineering/deep-engineering-24-scott-millett-on-why-it-strategy-is-business-strategy-108cbe264bf9?source=rss-1b02211ff62b------2</link>
            <guid isPermaLink="false">https://medium.com/p/108cbe264bf9</guid>
            <category><![CDATA[digital-transformation]]></category>
            <category><![CDATA[technology-strategy]]></category>
            <category><![CDATA[enterprise-architecture]]></category>
            <category><![CDATA[ai-strategy]]></category>
            <category><![CDATA[data-strategy]]></category>
            <dc:creator><![CDATA[Divya Anne Selvaraj]]></dc:creator>
            <pubDate>Thu, 30 Oct 2025 14:31:54 GMT</pubDate>
            <atom:updated>2025-10-30T14:31:54.876Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*j93pQUmD68SxHC5GsJiiiw.png" /></figure><h4>Forrester flags CIO rescue missions; BCG shows only 5% capture AI value — see how Define → Shape → Deliver links intent, architecture, and outcomes.</h4><h3><a href="https://www.vpdae.com/redirect/pp46o2dnwlesl086bxvh5cyyo9p">Build your next app on HubSpot with the flexibility of an all-new Developer Platform</a></h3><figure><a href="https://www.vpdae.com/redirect/pp46o2dnwlesl086bxvh5cyyo9p"><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*WLkV7qHhPoKIWNQI.jpeg" /></a></figure><blockquote><em>The HubSpot Developer Platform gives you the tools to build, extend, and scale with confidence. Create AI-ready apps, integrations, and workflows faster with a unified platform designed to grow alongside your business.</em></blockquote><p><a href="https://www.vpdae.com/redirect/pp46o2dnwlesl086bxvh5cyyo9p"><strong>Start Building Today</strong></a></p><p><strong>✍️From the editor’s desk,</strong></p><p>According to <a href="https://investor.forrester.com/news-releases/news-release-details/forresters-2026-technology-security-predictions-ais-hype-fades"><strong>Forrester’s 2026 Technology &amp; Security Predictions</strong></a>, <strong>one-quarter of CIOs will be asked to bail out business-led AI failures in 2026 and two-thirds will need to justify spend explicitly in business-value terms</strong>. <a href="http://The Widening AI Value Gap"><strong>BCG’s</strong> <strong>The Widening AI Value Gap report</strong></a><strong>,</strong> on the other hand, finds that <strong>only 5% of companies — the “future-built” — are reliably capturing AI value, with agents already delivering ~17% of 2025 AI impact</strong>.</p><p><strong>So what gaps are the remaining 95% failing to fill? And how can senior technologists bridge these gaps to align IT strategy with business outcomes?</strong></p><p>To answer these questions, today we are kicking off the much anticipated <a href="https://deepengineering.substack.com/s/it-strategy-scott-millett"><strong>IT Strategy Playbook series</strong></a> in collaboration with <a href="https://www.linkedin.com/in/scottmillett/"><strong>Scott Millett</strong></a><strong>.</strong> He starts the series with a strong claim: “<strong>IT strategy is business strategy</strong>.” Millett is an IT leader, strategist, and author with 25+ years as CIO, CTO, and architect across large-scale transformations. Articles in the series are adapted from his forthcoming book, <a href="https://www.packtpub.com/en-us/product/the-it-strategy-playbook-9781806109623"><strong><em>The IT Strategy Playbook</em></strong></a> (Packt, May 2026) and <a href="https://deepengineering.substack.com/p/the-it-strategy-playbook-part-1-define"><strong>Part 1</strong></a> introduces his <strong>Define → Shape → Deliver</strong> loop for closing the gaps between strategy, architecture, and execution. Deep Engineering readers are going to get an exclusive preview of the book’s content in development over the next few months and we invite you to leave constructive feedback as you follow along in the comments.</p><p>In today’s issue:</p><ul><li>Editorial Feature: <strong>From Outputs to Outcomes: Closing the IT Strategy–Business Gap with Scott Millett</strong></li><li><a href="https://deepengineering.substack.com/p/the-it-strategy-playbook-part-1-define"><strong>The IT Strategy Playbook (Part 1): Define, Shape, Deliver by Scott Millett</strong></a></li><li>Tech Briefs including <a href="https://investor.forrester.com/news-releases/news-release-details/forresters-2026-technology-security-predictions-ais-hype-fades">Forrester’s 2026 predictions</a>, <a href="https://media-publications.bcg.com/The-Widening-AI-Value-Gap-October-2025.pdf">BCG’s report</a>, the 32nd edition of the <a href="https://www.ibm.com/downloads/documents/us-en/12f5a711174dc2ac"><strong>IBM CEO study</strong></a>, and more</li><li>Tool of the Week: <a href="https://huggingface.co/docs/text-generation-inference/index"><strong>Hugging Face Text Generation Inference (TGI)</strong></a></li></ul><p>Let’s get started.</p><h4><a href="https://www.eventbrite.com/e/quantum-computing-for-leaders-tickets-1785432238889?aff=deepengineering">Quantum Readiness, Now: Executive Masterclass (Nov 29–30)</a></h4><figure><a href="https://www.eventbrite.com/e/quantum-computing-for-leaders-tickets-1785432238889?aff=deepengineering"><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*TYVJwasp2RwYIrxg.png" /></a></figure><blockquote><em>Quantum Computing for Leaders — 2-day executive masterclass, Nov 29–30 (US ET). Build quantum-ready roadmaps, pilot hybrid workflows, and plan quantum-safe security. Live online with </em><strong><em>Robert Loredo</em></strong><em>. Early bird 30% off with code </em><strong><em>QUANTUM30</em></strong><em> (ends today).</em></blockquote><p><a href="https://www.eventbrite.com/e/quantum-computing-for-leaders-tickets-1785432238889?aff=deepengineering"><strong>Reserve your spot →</strong></a></p><h3>From Outputs to Outcomes: Closing the IT Strategy–Business Gap with Scott Millett</h3><p>If you’re a senior technology leader, you’ve likely heard the refrain: <em>“be more strategic”</em> and <em>“align IT with the business.”</em> Yet moving from technological activity to business outcomes is easier said than done. In <a href="https://deepengineering.substack.com/p/the-it-strategy-playbook-part-1-define"><strong>part 1</strong></a> of the series adapted from Scott Millett’s upcoming book, <strong><em>The IT Strategy Playbook</em></strong>, a simple boardroom question — <strong><em>“What problem are we trying to solve?”</em></strong> — exposes how even a polished IT plan can fall flat when it’s all outputs and no outcomes.</p><h4>Four Gaps Between Tech Effort and Business Impact</h4><p>In his first article in the series, Millett identifies four recurring “gaps” that hinder IT leaders from delivering strategic value. These are not technical failures, but <strong>disconnects in understanding and execution</strong>:</p><ul><li><strong>The Understanding Gap:</strong> When IT initiatives aren’t clearly tied to business goals. This gap is apparent if IT cannot articulate <em>why</em> a tech project matters for competitive advantage. It’s no surprise that when the <strong>IBM Institute for Business Value</strong> and <strong>Oxford Economics</strong> surveyed 2,000 CEOs from 33 countries and 24 industries for the <a href="https://www.ibm.com/downloads/documents/us-en/12f5a711174dc2ac"><strong>IBM CEO study</strong></a> they found that only <strong>25% of AI initiatives have delivered their expected ROI</strong>.</li><li><strong>The Translation Gap:</strong> The disconnect between high-level strategy and the enabling architecture. It’s one thing to declare a cloud or AI strategy, and another to design coherent systems and data architectures for it. Rushed investments often lead to fragmented systems. In the same study, it was found that <strong>half of CEOs admit tech adoptions have left them with disconnected, “piecemeal” technology</strong>.</li><li><strong>The Focus Gap:</strong> Failing to prioritize for impact. When everything is a priority, nothing delivers value. Too often the IT project portfolio becomes a sprawl of low-value initiatives lacking clear prioritization. This gap leads to IT organizations that are <em>busy</em> but not <em>effective</em> in moving the business needle. In an <a href="https://hbr.org/2025/08/your-company-needs-to-focus-on-fewer-projects-heres-how">HBR article</a>, Antonio Nieto-Rodriguez, CEO of Projects &amp; Company, writes: <em>“</em><strong><em>Many organizations are aware that they are suffering from project overload, slowing execution and obscuring strategic priorities. Yet even with this knowledge they struggle to kill projects to release resources and energy to focus on their most important priorities.</em></strong><em>”</em></li><li><strong>The Communication Gap:</strong> Inability to communicate strategy in clear, business terms. This amplifies all the other gaps — if executives don’t understand the <em>why</em> and <em>what</em> of IT’s plans, buy-in evaporates. According to <a href="https://investor.forrester.com/news-releases/news-release-details/forresters-2026-technology-security-predictions-ais-hype-fades"><strong>Forrester’s 2026 Technology &amp; Security Predictions</strong></a>, CIOs must <em>“speak fluent ‘business value’”</em> to win executive buy-in. IT plans must be explained in terms of tangible business outcomes rather than technical outputs.</li></ul><figure><a href="https://deepengineering.substack.com/p/the-it-strategy-playbook-part-1-define"><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*4mYIKeu1C2JHeZmE.jpeg" /></a><figcaption>Figure 0.2 — The four gaps that lead to a lack of business impact | Source: <strong>The IT Strategy Playbook (Part 1): Define, Shape, Deliver by Scott Millett</strong></figcaption></figure><p>These gaps are showing up quite starkly when it comes to enterprise AI adoption. In fact here is what Forrester has predicted regarding AI spend in the coming year:</p><blockquote><strong>“With fewer than one-third of decision-makers able to tie the value of AI to their organization’s financial growth, CEOs will lean more on their CFOs to approve AI investments based on their ROI in 2026. As financial rigor slows production deployments and wipes out proofs of concept, enterprises will defer a quarter of their planned AI spend into 2027.”</strong></blockquote><p>Additionally , according to <a href="http://The Widening AI Value Gap"><strong>BCG’s The Widening AI Value Gap report</strong></a><strong>:</strong></p><blockquote><strong>“Future built companies <em>(which make up only 5% of the sample)</em> prioritize AI opportunities through a clear, sequenced roadmap rather than switching on all enterprise applications at once <em>(like the remaining 95%)</em>.”</strong></blockquote><h4>Define → Shape → Deliver: A Playbook for Strategic IT</h4><p><strong>How can IT leaders close these gaps?</strong> Millett proposes a simple but powerful mental model called the <strong>DSD Loop — Define, Shape, Deliver</strong>. Its philosophy: <em>intent first, design second, implementation last</em>. By <strong>defining</strong> the business objectives clearly, <strong>shaping</strong> the architecture accordingly, and then <strong>delivering</strong> focused initiatives, CTOs/CIOs can ensure every technical choice ties back to a business outcome.</p><p>This approach turns the typical “technology-first” mindset on its head. Too often, organizations chase shiny objects — implementing technology for its own sake without a defined problem to solve. The DSD playbook instead begins with the outcome in mind. Each phase informs the next: Define the <strong>why</strong> and <strong>what</strong>, Shape the <strong>how</strong> (technology, teams, architecture), and then Deliver the <strong>when</strong> through a concrete roadmap.</p><p>Interestingly, <em>delivery comes last</em> in this loop. Starting with coding or tool selection before nailing the “why” guarantees a disconnect. The DSD framework provides discipline to link every project (“output”) to a strategic outcome.</p><h4>Keeping Technology Tied to Business Value</h4><p>Boards and CEOs now demand clear returns on technology — CIOs are expected to be innovation enablers driving growth, not just IT operators. Technology leadership must translate into tangible business results.</p><p>Yet rising scrutiny comes with challenges. Forrester has predicted that in 2026:</p><blockquote><strong>“One-quarter of CIOs will be asked to bail out business-led AI failures in their organization</strong>.<em>”</em></blockquote><p>When business units bypass IT, CIOs often end up fixing the mess. Avoiding that scenario means jointly defining initiatives from the start and enforcing good governance. As <a href="https://cfotech.asia/story/forrester-ai-spending-slows-as-tech-leaders-face-scrutiny-in-2026">Frederic Giron, VP and senior research director at Forrester said</a>:</p><blockquote><em>In 2026</em><strong> “Success will be defined not by the sophistication of their (CIOs’) AI models, but by how seamlessly those models are integrated into end-to-end processes to drive both efficiency and growth. The CIOs who thrive will be those who can balance these complex priorities, acting as strategic partners who connect technology investment directly to business outcomes.”</strong></blockquote><p>At the moment, According to <a href="http://The Widening AI Value Gap">BCG’s report</a>, <strong>only about 5% of companies are “future-built”</strong> to fully capture AI’s benefits, while the rest lag behind. Those top performers succeed by tightly aligning tech initiatives to business strategy and continuously refining that alignment.</p><p>Bridging the gap from IT output to business outcome isn’t a trivial endeavor — but it’s a core part of the CTO/CIO role. By addressing the understanding, translation, focus, and communication gaps, technology leaders can reorient their teams from doing things right to doing the right things. The DSD loop offers a pragmatic way to ensure that the main thing (business value) indeed stays the main thing. <strong>In the end, an IT strategy only matters if it delivers tangible business results.</strong></p><p>From here, it’s about turning alignment into action. Scott Millett’s first article kicks off the <a href="https://deepengineering.substack.com/s/it-strategy-scott-millett"><strong>IT Strategy Playbook series</strong></a> with the Define → Shape → Deliver loop and the concrete artifacts and checkpoints to carry strategy into delivery.</p><h3>🧠Expert Insight</h3><h4><a href="https://deepengineering.substack.com/p/the-it-strategy-playbook-part-1-define">The IT Strategy Playbook (Part 1): Define, Shape, Deliver</a></h4><figure><a href="https://deepengineering.substack.com/p/the-it-strategy-playbook-part-1-define"><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*hFPs1d0LwY0FYnPO.jpeg" /></a></figure><p>This article is Part 1 of Deep Engineering’s exclusive ongoing series adapted from The IT Strategy Playbook: How CIOs and CTOs can drive business growth through focused action, architecture, and execution by Scott Millett (Packt; publishing May 2026). Millett is an IT leader, strategist, and author with 25+ years’ experience, having served as a CIO, CTO, and archite…</p><p><a href="https://deepengineering.substack.com/p/the-it-strategy-playbook-part-1-define"><strong>Read full story</strong></a></p><h3>🛠️Tool of the Week</h3><p><a href="https://huggingface.co/docs/text-generation-inference/index"><strong>Hugging Face Text Generation Inference (TGI)</strong></a></p><p>TGI is an open-source, production-grade LLM serving stack (Rust + Python + gRPC) that powers Hugging Face’s own Inference API, Inference Endpoints, and HuggingChat. If you want a battle-tested way to serve open-source LLMs with streaming, batching, tracing, and metrics — without building your own server — it’s a strong default.</p><p><strong>Key capabilities:</strong></p><ul><li><strong>Throughput &amp; latency features:</strong> continuous batching, tensor parallelism, SSE streaming, FlashAttention, and PagedAttention.</li><li><strong>Ops hooks:</strong> OpenTelemetry tracing and Prometheus metrics out of the box.</li><li><strong>Structured outputs &amp; tool use:</strong> “Guidance”/JSON-style constrained generation for function calling.</li><li><strong>Multi-backend support:</strong> NVIDIA, AMD ROCm, Intel Gaudi, AWS Trainium/Inferentia, and even TensorRT-LLM.</li></ul><p><a href="https://github.com/huggingface/text-generation-inference"><strong>Learn more about Hugging Face TGI</strong></a></p><h3>📎Tech Briefs</h3><ul><li><a href="https://investor.forrester.com/news-releases/news-release-details/forresters-2026-technology-security-predictions-ais-hype-fades"><strong>Forrester’s 2026 Technology &amp; Security Predictions</strong></a><strong>:</strong> Forrester flags five pressure points for tech leaders: <strong>a quarter of CIOs will be asked to bail out business-led AI failures; enterprises will push 25% of planned AI spending into 2027; “neoclouds” will seize $20B in genAI revenue, chipping away at hyperscaler dominance; the time to fill developer roles will double amid shifting talent dynamics; and quantum security will command &gt;5% of the overall IT security budget</strong> — together signaling bigger budgets, tighter scrutiny, and a premium on translating strategy into measurable business outcomes.</li><li><a href="https://www.ibm.com/downloads/documents/us-en/12f5a711174dc2ac"><strong>IBM Institute for Business Value’s “2025 CEO Study: 5 mindshifts to supercharge business growth”</strong></a>: Based on a Q1–2025 survey of 2,000 CEOs across 33 geographies and 24 industries, IBM outlines five leadership “mindshifts” — <strong>Make courage your core; Embrace AI-fueled creative destruction; Cultivate a vibrant data environment; Ignore the FOMO, lean into ROI; Borrow the talent you can’t buy</strong> — as a roadmap to move from productivity to performance with agentic AI. The study reports that <strong>61% of CEOs say their organizations are actively adopting AI agents and preparing to implement them at scale</strong>, and leading CEOs expect AI to have significant to transformational impact on objectives from decision-making and customer experience to productivity and growth.</li><li><a href="https://media-publications.bcg.com/The-Widening-AI-Value-Gap-October-2025.pdf"><strong>BCG’s “The Widening AI Value Gap: Build for the Future 2025” report</strong></a>: BCG’s October-2025 study (n=1,250) finds only <strong>5%</strong> of companies — “future-built” firms — are achieving AI value at scale, while <strong>60%</strong> report minimal value despite substantial spend; these leaders are widening the gap, delivering <strong>1.7× revenue growth</strong> and <strong>1.6× higher EBIT margins</strong> than laggards and expecting faster gains as <strong>agentic AI</strong> rises from <strong>17% of total AI value in 2025</strong> to <strong>29% by 2028</strong>; BCG attributes lagging performance to diffuse efforts and weak top-management commitment, urging end-to-end workflow reinvention over scattered pilots and disconnected initiatives.</li><li><a href="https://www.cio.com/article/4070513/why-cios-need-to-master-the-art-of-adaptation.html"><strong>CIO.com | “Why CIOs need to master the art of adaptation” by Andrada Fiscutean</strong></a><strong>:</strong> With gen-AI reshaping work, the article recommends CIOs should <strong>couple adaptability with structured decision criteria</strong> (security, ROI, scalability, compliance), <strong>favor modular systems,</strong> and <strong>pilot-then-scale approaches over “fail fast” fads</strong>, and <strong>build cultures that support experimentation and learning</strong>; the piece also cites <a href="https://foundryco.com/research/state-of-the-cio/"><strong>Foundry’s 2025 State of the CIO</strong></a> showing the role’s shift toward innovation and transformation.</li><li><strong>🎥</strong><a href="https://www.ibm.com/think/videos/think-keynotes/ai-agents-enterprise"><strong>IBM Think 2025 Keynote “Usher in the future of work with AI agents built for the enterprise”</strong></a><strong>:</strong> Ritika Gunnar, General Manager, Data &amp; AI, Software, IBM, frames AI agents as the next enterprise step — autonomous, proactive, and adaptive “systems of intelligence” — and cites <strong>early adoption (agents in &gt;85% of environments this year; &gt;50% expanding into essential production next year) alongside real gains</strong> (HR handling 94% of requests, sales reclaiming a quarter of the week, procurement cycle times down ~70%) <strong>and real challenges (silos, weak integration, agent sprawl, enterprise “-ilities”</strong>).</li></ul><p>That’s all for today. Thank you for reading this issue of <em>Deep Engineering</em>. We’re just getting started, and your feedback will help shape what comes next. Do take a moment to <a href="https://forms.microsoft.com/Pages/ResponsePage.aspx?id=Dmauk5VIE0SnXsWk3kKcDhvEtilalEBEqs_8ZEM_u5xUQ0pSU1dNTUw3RDdDS0NHRlpNT0MwRVhNRS4u"><strong>fill out this short survey</strong></a> we run monthly — as a thank-you, we’ll add <strong>one Packt credit</strong> to your account, redeemable for any book of your choice.</p><p>We’ll be back next week with more expert-led content.</p><p>Stay awesome,<br>Divya Anne Selvaraj<br><em>Editor-in-Chief, Deep Engineering</em></p><p>If your company is interested in reaching an audience of developers, software engineers, and tech decision makers, you may want to <a href="https://packt.omeclk.com/portal/wts/uc%5EcnN2dfNaqmD-kB-mo66%7C7g%5Ef%7Cb"><strong>advertise with us</strong></a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=108cbe264bf9" width="1" height="1" alt=""><hr><p><a href="https://medium.com/deep-engineering/deep-engineering-24-scott-millett-on-why-it-strategy-is-business-strategy-108cbe264bf9">Deep Engineering #24: Scott Millett on why IT strategy is business strategy</a> was originally published in <a href="https://medium.com/deep-engineering">Deep Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Deep Engineering #23: Frameworks as Flow Control with Ivan Padabed and Roman Voronin]]></title>
            <link>https://medium.com/deep-engineering/deep-engineering-23-frameworks-as-flow-control-with-ivan-padabed-and-roman-voronin-262c9238ef7e?source=rss-1b02211ff62b------2</link>
            <guid isPermaLink="false">https://medium.com/p/262c9238ef7e</guid>
            <category><![CDATA[application-development]]></category>
            <category><![CDATA[software-architecture]]></category>
            <category><![CDATA[devsecops]]></category>
            <category><![CDATA[low-code]]></category>
            <category><![CDATA[sdlc]]></category>
            <dc:creator><![CDATA[Divya Anne Selvaraj]]></dc:creator>
            <pubDate>Wed, 29 Oct 2025 05:12:21 GMT</pubDate>
            <atom:updated>2025-10-29T05:12:21.943Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YYLslqr5Bo3qQutnzUDuJg.png" /></figure><h4>What leaders should ask before picking an ADF — and how IBM’s 2025–26 trends light the path forward</h4><h3><a href="https://www.vpdae.com/redirect/pp46o2dnwlesl086bxvh5cyyo9p">Build your next app on HubSpot with the flexibility of an all-new Developer Platform</a></h3><figure><a href="https://www.vpdae.com/redirect/pp46o2dnwlesl086bxvh5cyyo9p"><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*FARLZhRXxWP84qGg.jpeg" /></a></figure><blockquote><em>The HubSpot Developer Platform gives you the tools to build, extend, and scale with confidence. Create AI-ready apps, integrations, and workflows faster with a unified platform designed to grow alongside your business.</em></blockquote><p><a href="https://www.vpdae.com/redirect/pp46o2dnwlesl086bxvh5cyyo9p">Start Building Today</a></p><p>✍️From the editor’s desk,</p><p><a href="https://www.ibm.com/think/insights/application-development-trends">IBM Think’s trend brief</a> published at the start of this month puts application development at the center of digital transformation in 2025–26: AI/ML is being woven through the lifecycle; low/no-code is accelerating toward a projected <strong>USD 264B by 2032</strong>; cloud-native DevOps is shifting to <strong>DevSecOps</strong> by default; and IoT and <strong>PWAs</strong> are reshaping delivery and UX across sectors.</p><p><strong>In this context, how should engineering leaders choose and operationalize an Application Development Framework (ADF) to increase team throughput without fragmenting architecture?</strong></p><p>To find the answer in this issue, we’ve collaborating with the <a href="https://www.linkedin.com/in/ivanpadabed/"><strong>Ivan Padabed</strong></a> and <a href="https://www.linkedin.com/in/random1st/"><strong>Roman Voronin</strong></a>, authors of <a href="https://www.packtpub.com/en-us/product/building-an-application-development-framework-9781836208563"><strong><em>Building an Application Development Framework</em></strong></a><strong><em> </em></strong>(Packt, 2025). <strong>Padabed</strong> is co-founder and CEO at System5Dev, a startup focused on applying AI to systems architecture; Cloud Platform Architect at Intapp (a B2B SaaS platform); an Expert at Primary Venture Mastermind Network: a 25+-year systems-architecture leader, educator, and community organizer. He’s also an active researcher in systems architecture and AI. <strong>Voronin</strong> is the co-founder and CTO of System5Dev, where he shapes AI-ready system designs, and a Senior MLOps Engineer at Intapp. With more than twenty years in technology, he champions AWS-driven DevOps, shares insights as a long-standing AWS Community Builder, and authors practical articles on cloud architecture.</p><p>Highlights from today’s issue:</p><ul><li>Feature Article: <strong>Frameworks as Flow Control with Ivan Padabed and Roman Voronin</strong></li><li>The complete “<a href="https://deepengineering.substack.com/p/introduction-to-application-development"><strong>Chapter 1: Introduction to Application Development Frameworks</strong></a>” from the book, Building an Application Development Framework (Packt, 2025), by Ivan Padabed and Roman Voronin</li><li><a href="https://www.ibm.com/think/insights/application-development-trends"><strong>5 application development trends to watch in 2025 and 2026 by Mesh Flinders | IBM Think</strong></a></li><li><a href="https://www.youtube.com/watch?v=sZUn6p5qVfk"><strong>LLM-first Web Framework — Minko Gechev | Google</strong></a></li></ul><p>Let’s get started!</p><p><em>Sponsored:</em></p><h3><a href="https://www.vpdae.com/redirect/e2f5pnzif14w3a82dau18yz5vz2">Ship Faster with DevStats</a>: <a href="https://www.vpdae.com/redirect/e2f5pnzif14w3a82dau18yz5vz2">Spot bottlenecks early, keep engineers in flow, and deliver up to 30% faster.</a></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/0*GP2MbnIX8vR0QVql.png" /></figure><p><a href="https://www.vpdae.com/redirect/e2f5pnzif14w3a82dau18yz5vz2">Get a demo</a></p><h3>Frameworks as Flow Control with Ivan Padabed and Roman Voronin</h3><p>In <a href="https://www.packtpub.com/en-us/product/building-an-application-development-framework-9781836208563"><em>Building an Application Development Framework</em></a>, Ivan Padabed and Roman Voronin define an ADF as:</p><blockquote><em>“a collection of pre-written code and tools that provide a structured approach to building applications,”</em></blockquote><p>distinguishing it from libraries and SDKs by its architectural enforcement and inversion of control.</p><p>Unlike libraries, which you call, frameworks call you. This inversion of control is what allows ADFs to impose a consistent structure and flow — ensuring teams follow standardized development practices.</p><h3>The Productivity Pattern: Less Repetition, More Signal</h3><p>Padabed and Voronin note that ADFs encode reusable architectural blueprints — from MVC to event-driven and middleware pipelines — so teams don’t waste energy rewriting infrastructure. This thesis is echoed in industry data. According to the <a href="https://survey.stackoverflow.co/2025/technology/#1-web-frameworks-and-technologies">2025 Stack Overflow Developer Survey</a>, React (used by 44.7% of respondents) and Node.js (48.7%) dominate because they abstract away boilerplate and enforce repeatable project structures across teams.</p><p>These frameworks don’t just save time — they reduce variability. In distributed systems or polyglot teams, structure becomes an asset. For example, Django enforces MVT, Spring Boot applies layered architecture, and FastAPI adopts declarative schema-first design with OpenAPI by default. These design choices encode architectural conventions directly into tooling.</p><h3>ADF as a Subsystem of SDLC</h3><p>Padabed and Voronin frame the ADF not as a standalone artifact, but as a subsystem of the broader software development lifecycle (SDLC). This is key. Frameworks operate most effectively when they’re tightly integrated into iterative delivery models: testing, linting, CI/CD, and observability hooks are all structured around framework conventions. For example, Next.js’s file-system routing pairs naturally with Vercel’s deployment pipeline, and Angular’s CLI scaffolds modules aligned with end-to-end testing via Protractor or Cypress.</p><p>This integration is what makes ADFs strategic. They not only reduce developer cognitive load but improve <strong>team-level throughput</strong>. When every project in an org shares the same conventions — controller locations, dependency injection syntax, build pipelines — handoffs get faster, onboarding is easier, and architectural drift is minimized.</p><h3>Trends: The Framework Extends</h3><p>In past few months we have seen three key trends emerge in how frameworks are extending beyond their traditional domains:</p><ol><li><strong>FastAPI Gains Ground: </strong>The 2025 Stack Overflow survey shows FastAPI gaining <a href="https://survey.stackoverflow.co/2025/technology/#1-web-frameworks-and-technologies">+5 percentage points</a> in web framework usage — the largest jump across any backend tech. Its combination of speed, type hints, and auto-generated docs has made it the preferred choice for Python API services</li><li><strong>AI Frameworks Enter the ADF Space: </strong>Frameworks like <a href="https://survey.stackoverflow.co/2025/ai/#3-ai-agent-orchestration-tools">LangChain (33% adoption among AI developers) and Ollama (51%)</a> are increasingly used to build agentic systems. These aren’t just wrappers — they impose lifecycle patterns (e.g. chains, memory, retrieval-augmented generation) that formalize how AI apps interact with models and data.</li><li><strong>Low-Code Frameworks Mature: </strong>The low-code space has moved well beyond internal tooling. Microsoft’s Power Platform and Mendix are now being embedded in enterprise SDLCs as sanctioned ADFs for line-of-business automation. According to IBM, the global market for low-code development is projected to reach <a href="https://www.ibm.com/think/insights/application-development-trends">$264 billion by 2032</a>, with frameworks driving the shift from form builders to orchestrated, policy-aware app stacks.</li></ol><h3>Choosing an ADF Is Choosing a Direction</h3><p>Engineers often focus on syntax, speed, or community when selecting a framework. However, for leaders, the more critical question is: what kind of <strong>system behavior</strong> does this framework enforce?</p><p>Frameworks impose boundaries. They encode opinions. They make certain mistakes harder and certain workflows inevitable. This is why Elixir’s Phoenix framework — used by a small fraction of developers — was rated the “<a href="https://survey.stackoverflow.co/2025/technology#2-web-frameworks-and-technologies">most admired” framework of 2025</a> (79% satisfaction), despite its niche market.</p><p>The following is a checklist your team can use as a starting point:</p><blockquote><strong><em>ADF selection &amp; rollout checklist:</em></strong></blockquote><ul><li><strong>Architecture &amp; control flow fit:</strong> Does the framework’s execution model (routing, DI, background jobs, testing) match how you build and ship today (or want to)? e.g., Next.js <a href="https://vercel.com/docs/frameworks/full-stack/nextjs">documents</a> zero-config, first-class deployment on Vercel that aligns routing/build with CI/CD out of the box.</li><li><strong>CI/CD &amp; operations alignment:</strong> Prefer frameworks with opinionated tooling (CLIs, schematics, deploy adapters) that reduce bespoke pipeline glue; <a href="https://angular.dev/tools/cli/schematics">Angular’s CLI scaffolding</a> and <a href="https://www.npmjs.com/package/%40cypress/schematic">Cypress schematic</a> are examples that shorten e2e setup and keep tests on the happy path.</li><li><strong>Security posture &amp; patch cadence:</strong> Check LTS lines, security advisories, and ease of minor/major upgrades — teams that stay current realize measurable perf/cost wins (see this <a href="https://blogs.vmware.com/tanzu/how-netflix-increased-application-performance-with-spring-boot-3-and-java-17/">Netflix</a> example).</li><li><strong>Onboarding &amp; consistency:</strong> Favor frameworks that enforce conventions (project layout, testing patterns) to speed new-hire time-to-first-PR and reduce variance across services; measure with <a href="https://dora.dev/research/2021/dora-report/">DORA</a> lead time/change failure rate.</li><li><strong>Ecosystem &amp; runway:</strong> Confirm a healthy plugin/library ecosystem and provider backing (docs, adapters, migration guides) so you’re not boxed in when requirements evolve.</li><li><strong>Business alignment to trends:</strong> Map choices to near-term forces — AI/ML in the lifecycle, rising low/no-code, cloud-native DevSecOps, IoT/PWAs — as flagged by IBM Think’s 2025–26 outlook.</li></ul><p>If you are ready to dive deeper into ADFs, we’ve included the complete <a href="https://deepengineering.substack.com/p/introduction-to-application-development"><strong>Chapter 1: Introduction to Application Development Framework</strong></a> from Padabed and Voronin’s book, <a href="https://www.packtpub.com/en-us/product/building-an-application-development-framework-9781836208563"><em>Building an Application Development Framework</em></a>. The chapter defines an Application Development Framework (ADF) as a convention-driven, inversion-of-control “skeleton” for building software; distinguishes it from APIs, libraries, SDKs, platforms, and DSLs; situates it historically and across major categories (web, enterprise, low-code, AI/ML, etc.); and positions the ADF as a subsystem of the SDLC — valued for standardizing architecture and flow to reduce cognitive load, improve maintainability, and boost team throughput.</p><h3>🧠Expert Insight</h3><h3><a href="https://deepengineering.substack.com/p/introduction-to-application-development">Introduction to Application Development Frameworks</a></h3><p><a href="https://substack.com/profile/108035877-roman-voronin">Roman Voronin</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*21UrmKOrFJPTfnHy" /></figure><p>The complete “Chapter 1: Introduction to Application Development Frameworks” from the book, Building an Application Development Framework (Packt, 2025), by Ivan Padabed and Roman Voronin</p><p><a href="https://deepengineering.substack.com/p/introduction-to-application-development">Read full story</a></p><h3>🛠️Tool of the Week</h3><p><a href="https://github.com/honojs/hono/releases"><strong>Hono (v4.10.x)</strong></a> — a tiny, blister-fast, open-source web framework that runs the same app across Workers/edge (Cloudflare, Fastly), Node.js, Deno, Bun, and Vercel with first-class TypeScript.</p><p><strong>Highlights:</strong></p><ul><li><strong>Proven at the edge &amp; in prod:</strong> Official Cloudflare docs recommend Hono for Workers/Pages, and Cloudflare’s own blog lists companies (e.g., Unkey, Nodecraft) using it in production.</li><li><strong>Modern, portable stack:</strong> One codebase deploys to multiple runtimes with “batteries-included” middleware and a clean TS API; released under <strong>MIT</strong>.</li></ul><p><a href="https://hono.dev/">Learn more about Hono</a></p><h3>📎Tech Briefs</h3><ul><li><a href="https://www.ibm.com/think/insights/application-development-trends"><strong>5 application development trends to watch in 2025 and 2026 by Mesh Flinders | IBM Think</strong></a><strong>:</strong> Says 2025–26 app development will be defined by AI/ML integration, the rise of low/no-code, cloud-native DevOps with DevSecOps, expanding IoT/edge and PWAs — improving UX, automation, security, and sector outcomes — with 2026 bringing more mobile-first strategies, deeper automation, gen-AI/IoT leadership, and teams oriented around DevSecOps, all driven by business needs rather than tech novelty.</li><li><a href="https://www.infoworld.com/article/4077449/pytorch-team-unveils-framework-for-programming-clusters.html"><strong>PyTorch team unveils framework for programming clusters</strong></a><strong>: </strong>On October 22, 2025, Meta’s PyTorch team announced <strong>Monarch</strong>, an experimental actor-based distributed programming framework — with a Python front end and Rust back end — that integrates with PyTorch to let developers program entire GPU clusters “like one machine,” handling sharding, vectorization, and GPU-to-GPU transfers while currently warning of bugs and evolving APIs.</li><li><a href="https://www.youtube.com/watch?v=sZUn6p5qVfk"><strong>LLM-first Web Framework — Minko Gechev | Google</strong></a><strong>: </strong>Outlines an “LLM-first” approach to web frameworks and tooling, sharing experiments with a tiny framework (<a href="https://github.com/mgechev/revolt">Revolt</a>) and sketches a vision of agentic, browser-native workflows using MCP tools and runtime introspection to automate routine tasks.</li><li><a href="https://nextjs.org/blog/next-16-beta"><strong>Next.js 16 (beta) announced</strong></a><strong>:</strong> Turbopack becomes the default bundler (promising major dev-loop speedups), with React Compiler support, smarter routing/prefetching, and new caching APIs.</li><li><a href="https://www.securityweek.com/highest-ever-severity-score-assigned-by-microsoft-to-asp-net-core-vulnerability/"><strong>ASP.NET Core (Kestrel) critical vuln patched</strong></a><strong>:</strong> Microsoft addressed CVE-2025–55315 (CVSS 9.9) in Patch Tuesday; coverage notes it as the framework’s “highest-ever” severity to date and urges prompt updates.</li></ul><p>That’s all for today. Thank you for reading this issue of <em>Deep Engineering</em>. We’re just getting started, and your feedback will help shape what comes next. Do take a moment to <a href="https://forms.microsoft.com/Pages/ResponsePage.aspx?id=Dmauk5VIE0SnXsWk3kKcDhvEtilalEBEqs_8ZEM_u5xUQ0pSU1dNTUw3RDdDS0NHRlpNT0MwRVhNRS4u"><strong>fill out this short survey</strong></a> we run monthly — as a thank-you, we’ll add <strong>one Packt credit</strong> to your account, redeemable for any book of your choice.</p><p>We’ll be back next week with more expert-led content.</p><p>Stay awesome,<br>Divya Anne Selvaraj<br><em>Editor-in-Chief, Deep Engineering</em></p><p>If your company is interested in reaching an audience of developers, software engineers, and tech decision makers, you may want to <a href="https://packt.omeclk.com/portal/wts/uc%5EcnN2dfNaqmD-kB-mo66%7C7g%5Ef%7Cb"><strong>advertise with us</strong></a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=262c9238ef7e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/deep-engineering/deep-engineering-23-frameworks-as-flow-control-with-ivan-padabed-and-roman-voronin-262c9238ef7e">Deep Engineering #23: Frameworks as Flow Control with Ivan Padabed and Roman Voronin</a> was originally published in <a href="https://medium.com/deep-engineering">Deep Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Deep Engineering #22: Richard D Avila on Why AI Systems Need Architecture]]></title>
            <link>https://medium.com/deep-engineering/deep-engineering-22-richard-d-avila-on-why-ai-systems-need-architecture-2cc285c6f13e?source=rss-1b02211ff62b------2</link>
            <guid isPermaLink="false">https://medium.com/p/2cc285c6f13e</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[mlops]]></category>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[software-architecture]]></category>
            <dc:creator><![CDATA[Divya Anne Selvaraj]]></dc:creator>
            <pubDate>Thu, 16 Oct 2025 15:32:20 GMT</pubDate>
            <atom:updated>2025-10-16T15:32:20.498Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*r9DQHsc7tiezkSL7e3SZMA.png" /></figure><h4>The prototype–production gap in AI — and the architectural discipline to close it.</h4><h3><a href="https://sysengineeringclass.eventbrite.com/">SysML 2 in a Day: Hands-On MBSE Masterclass</a></h3><figure><a href="https://www.eventbrite.com/e/systems-engineering-masterclass-tickets-1699878515399?aff=oddtdtcreator"><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*zugG1dW1tueEYSwI.png" /></a></figure><p>Upgrade to SysML 2 in one focused, <a href="https://sysengineeringclass.eventbrite.com/"><strong>live online masterclass</strong></a>. Learn migration pitfalls, hands-on modeling, and scalable MBSE toolchains with <strong>Dr. Bruce Douglass</strong> &amp; <strong>Dr. Brian Moberley</strong>.</p><p><strong>When:</strong> Sat, Nov 8, 11:30 AM–2:30 PM ET (8:00–11:30 AM PT).</p><p><strong>Early bird 30% off — code SYSTEM30.</strong></p><p><a href="https://sysengineeringclass.eventbrite.com/"><strong>Get tickets</strong></a></p><p>✍️From the editor’s desk,</p><p><strong>Welcome to the twenty-second issue of Deep Engineering.</strong></p><p>You may already be familiar with the <a href="https://mlq.ai/media/quarterly_decks/v0.1_State_of_AI_in_Business_2025_Report.pdf"><strong>MIT NANDA study</strong></a> which found that despite $30–40 billion poured into enterprise AI, roughly <strong>95% of organizations have seen no measurable financial impact</strong> from these projects. That means only one in twenty AI initiatives is delivering real business value. Just this week, a new <a href="https://investor.cisco.com/news/news-details/2025/Cisco-AI-Research-The-Most-AI-ready-Companies-Outpace-Peers-in-the-Race-to-Value/"><strong>Cisco study</strong></a> of 8,000 AI leaders similarly found that the small set of “AI Pacesetters” (about 13% of companies) are <strong>4× more likely to turn pilots into production deployments</strong>, and <strong>50% more likely to see measurable value</strong> from AI, compared to everyone else. Bridging this gap from a promising prototype to a reliable production AI system remains one of the biggest challenges in tech today.</p><p><strong>So why do so many impressive AI demos fail to translate into lasting impact?</strong> <strong>How can teams bridge the gap from prototype to production to deliver lasting business value?</strong> To answer these questions, we turned to <strong>Richard D. Avila</strong> who has over two decades of experience building complex software and AI systems. He has led architecture for everything from large-scale simulations and autonomous platforms to data analytics systems, and he’s published in areas like command-and-control theory, assurance architectures, multi-agent modeling, and machine learning. Avila, along with <strong>Imran Ahmad</strong> has also co-authored the upcoming book, <a href="https://www.packtpub.com/en-us/product/architecting-ai-software-systems-9781804619469"><strong><em>Architecting AI Software Systems</em></strong></a> (Packt, 2025), which will delve even deeper into how to integrate AI into traditional software architectures — complete with patterns, heuristics, and real-world case studies for making AI systems scalable, high-performance, and trustworthy.</p><blockquote><em>Over the next few weeks, look out for a second feature from Avila, plus our conversation with his coauthor Imran Ahmad — two issues that dig into patterns, gates, and failure-mode thinking for AI in production. And when </em><a href="https://www.packtpub.com/en-us/product/architecting-ai-software-systems-9781804619469"><strong>Architecting AI Software Systems</strong></a><em> is out, we plan to share an </em><strong><em>exclusive excerpt</em></strong><em> from the book for Deep Engineering readers.</em></blockquote><h3><a href="https://www.vpdae.com/redirect/e2f5pnzif14w3a82dau18yz5vz2">Ship Faster with DevStats</a>: <a href="https://www.vpdae.com/redirect/e2f5pnzif14w3a82dau18yz5vz2">Spot bottlenecks early, keep engineers in flow, and deliver up to 30% faster.</a></h3><figure><a href="https://www.vpdae.com/redirect/e2f5pnzif14w3a82dau18yz5vz2"><img alt="" src="https://cdn-images-1.medium.com/max/300/0*ykdfFCzYA3KlibFP.png" /></a></figure><p><a href="https://www.vpdae.com/redirect/e2f5pnzif14w3a82dau18yz5vz2">Get a demo</a></p><h3>🧠Expert Insight</h3><h3>From Prototype to Production: Why AI Systems Need Architecture Discipline by Richard D Avila</h3><h4>How architecture makes model- and data-driven systems production-ready</h4><p><a href="https://mlq.ai/media/quarterly_decks/v0.1_State_of_AI_in_Business_2025_Report.pdf">The GenAI Divide: STATE OF AI IN BUSINESS 2025</a> study by MIT NANDA surveyed several hundred executives on AI initiatives and found that only <strong>5%</strong> of AI projects demonstrated lasting value. AI initiatives fail to make it to production because teams don’t define how the AI will deliver value or account for the complex realities of a production environment. In this article, we discuss specific gates and actions that, if followed, will mitigate the risk of a failed prototype-to-production deployment. A very short exemplar or mini-case study is included.</p><blockquote><strong><em>Why call out AI systems?</em></strong><em> Unlike traditional software, </em><strong><em>AI systems are model- and data-driven</em></strong><em>: behavior depends on training data, live inputs, and evaluation metrics. Architecture is how we make that behavior predictable and operable in production.</em></blockquote><h3>Why architecture work matters</h3><p>Architecture makes prototypes survivable in production by forcing end-to-end thinking about data reality, key non-functional constraints, stakeholder trust, and the documentation that turns design into testable behavior.</p><ul><li><strong>Data reality:</strong> The key driver in any AI system is the quality of the data used for training and inference. Data engineering is often not done well or not done with a large enough aperture to appreciate the full end-to-end system. For example: does the prototype assume well-formatted or highly structured data that is not possible in production? Did the prototype suppose that data into the system was ordered but, in a production environment, that is not the case? Was the system overly reliant on a technology that cannot scale to expected production data rates? And so on.</li><li><strong>Partitioning and organization:</strong> Software architecture involves design decisions about partitioning and organization. An analysis of the software components of the prototype can identify where choke points may occur, how interfaces into and out of the prototype were handled, and where a component may require more design work in a production environment.</li><li><strong>Non-functional requirements:</strong> A robust architecture captures and understands the key non-functional requirements at play in the production environment. For example, will the new AI functionality impact availability requirements that, if not met, would result in a critical error? Does the new model with higher production data rates impact performance requirements that have cascading effects?</li><li><strong>Trust tolerance:</strong> Robust architecting should illuminate the trust tolerance and decision making of key stakeholders. For example, does a single off-nominal inference or decision result in a loss of confidence or outright hostility to the new AI functionality? As part of a conceptual design, guard rails or off ramps can be put into the design so there is a sort of “no-harm” guarantee that may cause consternation but not a loss of confidence.</li><li><strong>Documentation to test:</strong> The documentation of a conceptual design can aid in defining and illuminating test cases and scenarios that the prototype must satisfy in a production environment.</li></ul><h3>A fair criticism — and the response</h3><blockquote><em>It’s reasonable to say that architecting adds “document-centric” work that slows delivery. But the MIT statistic exists for a reason: </em><strong><em>no amount of heroic coding fixes a flawed architecture</em></strong><em>. Water doesn’t flow uphill; a bad architecture produces a bad system. Agile methods work best when a </em><strong><em>stable architectural frame</em></strong><em> guides rapid prototyping, integration, and demos. Productive engineering isn’t only writing code — it’s also designing systems that can survive production.</em></blockquote><p><strong>Architecting</strong> is critical in guiding engineering decisions and priorities. This is done by laying out the conceptual design of the end system. One of the first drivers of architecture is to have a solid conceptual design that informs prototyping. That same design later anchors the pass/fail criteria that we can categorize into gates.</p><h3>Five production-readiness gates (with actions)</h3><p>There are five gates or decision buckets — pass/fail outcomes we must clear before go-live.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*q4T6rUnBaAHZICgn.jpeg" /></figure><blockquote><em>Note: the following actions are not exhaustive.</em></blockquote><h3>1) Data Engineering (AI inputs and contracts)</h3><ul><li><strong>Analysis:</strong> Confirm that production inputs and interfaces match what the model expects — data rates, formats, fields, identifiers, consistency, and summary statistics.</li><li><strong>Ingest testing:</strong> Exercise the pipeline with <em>current</em> production data and verify ingest correctness and throughput.</li><li><strong>Resilience checks:</strong> Prove the prototype tolerates malformed records, off-nominal flows, and misformatted streams without cascading failures.</li></ul><h3>2) Model Correctness (does the model still earn its keep?)</h3><ul><li><strong>Ongoing relevance:</strong> Verify the model still solves a real user problem; retire it if it no longer does.</li><li><strong>Performance on live data:</strong> Re-evaluate with current production samples; confirm metrics such as AUC, accuracy, and false positive rate meet or exceed targets.</li><li><strong>Execution time:</strong> Show end-to-end model latency remains within bounds required by downstream consumers and users.</li></ul><h3>3) Observability (for data pipelines and model behavior)</h3><ul><li><strong>Data flow telemetry:</strong> Logging and monitors for inputs, transformations, and handoffs.</li><li><strong>Model execution telemetry:</strong> Traces, metrics, and logs for inference paths and failure modes.</li><li><strong>Acceptance bounds:</strong> Document thresholds, alert rules, and expected distributions for observability metrics.</li></ul><h3>4) Operations (release and recovery for AI pipelines)</h3><ul><li><strong>Canaries:</strong> Implement canary or shadow releases to surface pipeline issues before full rollout.</li><li><strong>Time budgets:</strong> Define and monitor time bounds for the full pipeline and each critical stage.</li><li><strong>Update paths:</strong> Document steps for model refresh, rollback, and disentanglement from production if needed.</li></ul><h3>5) Data Governance (quality, compliance, ethics)</h3><ul><li><strong>Quality audit:</strong> Run a data quality review on the latest production datasets.</li><li><strong>Compliance docs:</strong> Prepare artifacts to satisfy regulatory, security, and privacy requirements.</li><li><strong>Ethical filters:</strong> Enforce policy-aligned filtering and access controls.</li></ul><blockquote><em>In addition to these gates, the key non-functional requirements for the system need to be monitored, with action plans to ensure they are met — for example, time budgets across the system via specialized logging and canary deployments.</em></blockquote><p>The gates define what must be true to go live; let us go a step further and look at the rubric that translates the actions into concrete checks and artifacts that prove each gate is passed.</p><h3>Rubric for pre-deployment checks</h3><p>Here is a rubric you can use as a go/no-go gate: confirm business relevance, data contracts, operational readiness (including rollback), on-call coverage and monitoring, and model quality against explicit SLOs before promoting any prototype to production.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*S5kCEykaiMnSUWhC.jpeg" /></figure><p>This rubric is the evidence and checks that prove each gate is passed and that you can go live.</p><p><strong>Business Checks</strong></p><ul><li>Is the model output still relevant to intended users?</li><li>Is the prototype operating at time scales relevant to users?</li><li>Is the prototype still within budget and resource limits?</li></ul><p><strong>Data Engineering</strong></p><ul><li>Verify data sources.</li><li>Verify interfaces still meet service-level agreements (format, content, time budgets).</li><li>Confirm computational resources for scale are in place.</li></ul><p><strong>Operations</strong></p><ul><li>Verify the prototype in a pre-production environment or a simulation that mimics true production.</li><li>Confirm datastore schemas and queries execute correctly and produce expected results.</li><li>Ensure error logging exists at multiple points with sufficient detail for troubleshooting.</li><li>Identify a rollback procedure to take the model offline if needed.</li></ul><p><strong>Pre-deployment</strong></p><ul><li>Identify a developer or staff resource to support rollout and address issues promptly.</li><li>Ensure monitoring is in place to capture operations.</li></ul><p><strong>Model</strong></p><ul><li>Monitor non-functional requirements, SLAs, and errors.</li><li>Track correctness metrics (AUC, accuracy) and model drift.</li><li>Provide a user interface (or tools) to visualize execution.</li><li>Supply guides/documentation for troubleshooting, architecture diagrams, expected outputs at each stage, and accessible source code.</li><li>Use canaries with injected known datasets for monitoring.</li></ul><h3>Mini case study</h3><p>To understand how the 5 gates and the rubric work in cohesion, let us take the example of a new application that recommends technical articles to an engineering audience. Before launch, the team decides to apply actions under each of the <strong>5 gates</strong> and the <strong>Pre-deployment checks </strong>reveal the following:</p><ul><li><strong>Data &amp; Schema</strong></li><li>Since training began, an extra tag field was added; the <strong>date format also changed</strong>, breaking metadata parsing.</li><li>The <strong>datastore schema drifted</strong>: a key field changed, requiring interface updates.</li><li><strong>Model Correctness: </strong>On current production data, <strong>AUC dropped below training thresholds</strong>; investigation showed an <strong>over-represented training subset</strong>.</li><li><strong>Observability: Logging failed</strong>; output and processed-file logs couldn’t be written due to <strong>permission issues</strong>.</li><li><strong>Operations &amp; Release: </strong>The team planned to launch at <strong>peak traffic</strong> with <strong>no rollback procedure</strong>.</li><li><strong>Governance: </strong>A compliance check found <strong>personal information</strong> was being collected and <strong>shouldn’t have been</strong>.</li></ul><p>As a result, a failed release is prevented.</p><p>For AI systems, some architecting during prototyping helps cross the chasm from an impressive demonstration to a production system that delivers true value and positive business outcomes.</p><p>If you found this article insightful, <strong>Richard D Avila</strong> and <strong>Imran Ahmad’s</strong> forthcoming book, <a href="https://www.packtpub.com/en-us/product/architecting-ai-software-systems-9781804619469"><strong>Architecting AI Software Systems</strong></a> extends the same ideas with a structured approach to integrating AI into traditional architectures — covering how inference and decision-making shape design, using architectural models to ensure cohesion, mitigating risks like underperformance and cost overruns, and applying patterns and heuristics for scalable, high-performance systems — anchored by real-world case studies, hands-on exercises, and a complete example of an AI-enabled system for architects, engineering leaders, and AI/ML practitioners.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*XkIaStJZ0d471q_G" /></figure><h4><a href="https://www.vpdae.com/redirect/q4fjmrp5x5y0subvbwva7w5dh3x">Join Snyk on October 22, 2025 at DevSecCon25 — Securing the Shift to AI Native</a></h4><blockquote><em>Join this </em><a href="https://www.vpdae.com/redirect/q4fjmrp5x5y0subvbwva7w5dh3x"><strong><em>one-day event</em></strong></a><em> to hear from leading AI and security experts from </em><strong><em>Qodo</em></strong><em>, </em><strong><em>Ragie.ai</em></strong><em>, </em><strong><em>Casco</em></strong><em>, </em><strong><em>Arcade.dev</em></strong><em>, and more!</em></blockquote><p><a href="https://www.vpdae.com/redirect/q4fjmrp5x5y0subvbwva7w5dh3x"><strong>Register for free</strong></a></p><h3>🛠️Tool of the Week</h3><p><a href="https://github.com/evidentlyai/evidently"><strong>Evidently (open-source ML/LLM observability)</strong></a></p><p>Evidently is an open-source Python framework to <strong>evaluate, test, and monitor</strong> AI systems — covering classical ML and LLM/RAG — from offline experiments to live, <strong>production</strong> monitoring; it ships frequent releases (latest v0.7.15 on Oct 14, 2025) and is used to monitor models in production across industries.</p><ul><li><strong>Evaluation &amp; testing:</strong> 100+ metrics for data and model quality, LLM/RAG evals (e.g., context relevance, generation quality), and reproducible reports you can version and review before go-live.</li><li><strong>Production monitoring:</strong> Batch jobs and pipelines to track data drift, model performance, latency/SLOs, and acceptance bounds with dashboards and alerts for <strong>running systems</strong>.</li><li><strong>Easy integration:</strong> Python-first; works with existing logging/metrics stacks and CI/CD so you can add canaries, regression checks, and rollbacks into release workflows.</li></ul><p><a href="https://github.com/evidentlyai/evidently"><strong>Learn more about Evidently</strong></a></p><h3>📎Tech Briefs</h3><ul><li><a href="https://mlq.ai/media/quarterly_decks/v0.1_State_of_AI_in_Business_2025_Report.pdf"><strong>The GenAI Divide STATE OF AI IN BUSINESS 2025 by MIT NANDA</strong></a><strong>: “</strong>Despite $30–40 billion in enterprise investment into GenAI, this report uncovers a surprising result in that 95% of organizations are getting zero return. The outcomes are so starkly divided across both buyers (enterprises, mid-market, SMBs) and builders (startups, vendors, consultancies) that we call it the GenAI Divide. Just 5% of integrated AI pilots are extracting millions in value, while the vast majority remain stuck with no measurable P&amp;L impact. This divide does not seem to be driven by model quality or regulation, but seems to be determined by approach. … From our interviews, surveys, and analysis of 300 public implementations, four patterns emerged that define the GenAI Divide: • Limited disruption: Only 2 of 8 major sectors show meaningful structural change • Enterprise paradox: Big firms lead in pilot volume but lag in scale-up • Investment bias: Budgets favor visible, top-line functions over high-ROI back office • Implementation advantage: External partnerships see twice the success rate of internal builds</li><li><a href="https://www.cisco.com/c/dam/m/en_us/solutions/ai/readiness-index/2025-m10/documents/cisco-ai-readiness-index-2025-realizing-the-value-of-ai.pdf"><strong>Cisco AI Readiness Index 2025</strong></a><strong>: </strong>Cisco identifies a small cohort of “Pacesetters” (~13% of firms) consistently turning pilots into measurable value across strategy, data, infrastructure, talent, governance, and culture.</li><li><a href="https://www.stateof.ai/"><strong>Air Street Capital <em>State of AI Report 2025</em></strong></a><strong>: </strong>A<strong> </strong>comprehensive annual review (research, industry, safety, policy) with a downloadable deck and key takeaways on the rise of reasoning models, infrastructure constraints, and commercial traction. Here are the key insights:</li></ul><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FUb-7bY4b3Hs%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DUb-7bY4b3Hs&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FUb-7bY4b3Hs%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/91a7bf7136244fcef820accc19ca1f2f/href">https://medium.com/media/91a7bf7136244fcef820accc19ca1f2f/href</a></iframe><ul><li><a href="https://openai.com/index/openai-and-broadcom-announce-strategic-collaboration/"><strong>OpenAI and Broadcom announce strategic collaboration to deploy 10 gigawatts of OpenAI-designed AI accelerators</strong></a><strong>: </strong>This will lock in and massively scale dedicated compute — via custom, non-Nvidia accelerators at ~10 GW — so OpenAI can cut cost/latency, improve energy efficiency, and secure a reliable supply chain for training and serving next-gen models.</li><li><a href="https://www.ft.com/content/74224d84-8a7a-4d0d-a30d-1716e2d43b7a"><strong>AI investment boom shielding US from sharp slowdown, says IMF:</strong></a> The IMF nudged its global growth outlook up slightly while still flagging a 2025–26 slowdown; it says more of the tariff costs will pass through to U.S. consumers, even as <strong>AI-driven capex props up near-term U.S. growth</strong>; it pegs <strong>U.S. GDP at ~2.0% in 2025 and 2.1% in 2026</strong>; and it warns an <strong>AI investment boom could see a dot-com-style shakeout</strong>.</li></ul><p>That’s all for today. Thank you for reading this issue of <em>Deep Engineering</em>. We’re just getting started, and your feedback will help shape what comes next. Do take a moment to <a href="https://forms.microsoft.com/Pages/ResponsePage.aspx?id=Dmauk5VIE0SnXsWk3kKcDhvEtilalEBEqs_8ZEM_u5xUQ0pSU1dNTUw3RDdDS0NHRlpNT0MwRVhNRS4u"><strong>fill out this short survey</strong></a> we run monthly — as a thank-you, we’ll add <strong>one Packt credit</strong> to your account, redeemable for any book of your choice.</p><p>We’ll be back next week with more expert-led content.</p><p>Stay awesome,<br>Divya Anne Selvaraj<br><em>Editor-in-Chief, Deep Engineering</em></p><p>If your company is interested in reaching an audience of developers, software engineers, and tech decision makers, you may want to <a href="https://packt.omeclk.com/portal/wts/uc%5EcnN2dfNaqmD-kB-mo66%7C7g%5Ef%7Cb"><strong>advertise with us</strong></a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2cc285c6f13e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/deep-engineering/deep-engineering-22-richard-d-avila-on-why-ai-systems-need-architecture-2cc285c6f13e">Deep Engineering #22: Richard D Avila on Why AI Systems Need Architecture</a> was originally published in <a href="https://medium.com/deep-engineering">Deep Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Deep Engineering #21: Mojo–Python Interop in Late 2025 with Ivo Balbaert]]></title>
            <link>https://medium.com/deep-engineering/deep-engineering-21-mojo-python-interop-in-late-2025-with-ivo-balbaert-76b654f9e806?source=rss-1b02211ff62b------2</link>
            <guid isPermaLink="false">https://medium.com/p/76b654f9e806</guid>
            <category><![CDATA[cpython]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[mojo]]></category>
            <category><![CDATA[interoperability]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[Divya Anne Selvaraj]]></dc:creator>
            <pubDate>Thu, 09 Oct 2025 14:32:28 GMT</pubDate>
            <atom:updated>2025-10-09T14:32:28.184Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LvhiWUW8pMVeMtKoGJ083w.jpeg" /></figure><h4>Free-threaded CPython meets Mojo 0.25.6 — practical patterns for calling across the Python↔Mojo boundary.</h4><h3><a href="https://www.vpdae.com/redirect/q4fjmrp5x5y0subvbwva7w5dh3x">Join Snyk on October 22, 2025 at DevSecCon25 — Securing the Shift to AI Native</a></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*pAFEdMYTBdyafekh.jpeg" /></figure><blockquote><em>Join Snyk </em><strong><em>October 22, 2025</em></strong><em> for this </em><a href="https://www.vpdae.com/redirect/q4fjmrp5x5y0subvbwva7w5dh3x"><strong><em>one-day event</em></strong></a><em> to hear from leading AI and security experts from </em><strong><em>Qodo</em></strong><em>, </em><strong><em>Ragie.ai</em></strong><em>, </em><strong><em>Casco</em></strong><em>, </em><strong><em>Arcade.dev</em></strong><em>, and more!</em></blockquote><blockquote><em>The agenda includes inspiring </em><strong><em>Mainstage keynotes</em></strong><em>, a </em><strong><em>hands-on AI Demos track</em></strong><em> on building secure AI, </em><strong><em>Snyk’s very FIRST AI Developer Challenge</em></strong><em> and more!</em></blockquote><p><a href="https://www.vpdae.com/redirect/q4fjmrp5x5y0subvbwva7w5dh3x">Save your spot now</a></p><p>✍️From the editor’s desk,</p><p><strong>Welcome to the twenty-first issue of Deep Engineering.</strong></p><p><a href="https://docs.python.org/3.14/whatsnew/3.14.html"><strong>Python 3.14</strong></a> shipped earlier this week and it makes free-threaded CPython officially supported, keeps the JIT experimental, and retires PGP signatures in favor of Sigstore for release verification — material shifts for anyone embedding Python or managing supply-chain policy.</p><p>Mojo’s latest stable release is <a href="https://pypi.org/project/mojo/"><strong>0.25.6.0</strong></a>, published on September 22, 2025 (via PyPI). This drop also coincides with Modular’s 25.6 cycle, which highlights that the PyPI package now bundles the compiler, LSP server, and debugger — making pip install mojo a complete setup for most dev environments.</p><p><strong>But what is the state of Python–Mojo interoperability today?</strong> This issue answers that question in today’s feature and goes further with Ivo Balbaert’s latest <a href="https://deepengineering.substack.com/p/building-with-mojo-part-3-python"><strong>article</strong></a><strong> </strong>within our Expert Insight section — a practical walkthrough of Mojo↔Python interop: comparing Python and Mojo, showing how Mojo calls Python via Python.import_module/PythonObject, using local and ecosystem libraries from Mojo, compiling/running Mojo code, and previewing how Python can call Mojo.</p><p><strong>Balbaert</strong> is a lecturer in web programming and databases at CVO Antwerpen and a long-time Packt author of introductions to new languages — including Dart, Julia, Rust, and Red.</p><p>Let’s get started!</p><h3>Mojo and Python: State of Interoperability in Late 2025 with Ivo Balbaert</h3><p>From day one, Mojo has embraced Python’s syntax and ecosystem. Mojo can directly import and call Python modules via its built-in python module, letting developers reuse the Python library stack. Example: Python.import_module(”compute”) → compute.mul(42, 7); or var np = Python.import_module(”numpy”) → np.arange(7). Calls return PythonObject, a handle to Python data.</p><p>PythonObject is the core bridge. Mojo executes Python through CPython, and any Python value seen by Mojo is a PythonObject (numbers, strings, lists, NumPy arrays, etc.). Mojo provides conveniences for constructing and handling these—e.g., var py_list: PythonObject = [42, “cat”, 3.14159] evaluates to a Python list. Certain Mojo values convert to PythonObject automatically.</p><p>This lets Mojo use Python types and libraries where Mojo is not yet feature-complete. For example, Python’s arbitrary-precision int avoids overflow where Mojo’s fixed-size integers would. The same applies to advanced Python APIs—from dataframes to ML toolkits—usable today without waiting for Mojo-native equivalents.</p><p>Mojo’s integration invokes the Python interpreter at compile time to resolve imports and execute needed Python code, wiring in the hooks for runtime interop. Any Mojo function that calls Python must be marked raises, since Python operations can throw; you structure code accordingly (error handling, raises) and accept that interop isn’t “free.”</p><p>Using Python from Mojo requires a Python runtime environment. Mojo executables do not bundle Python or its libraries; the target must provide them. In practice, teams add Python to the project (e.g., with Pixi) and install required packages (NumPy, Pandas, etc.). Missing modules cause import-time failures. Interop works best in controlled environments (containers or Pixi-managed) where dependencies are guaranteed — for example, calling matplotlib from Mojo is powerful, but it still relies on Python’s plotting stack being present.</p><h3>Two-Way Bridge (Preview): Python Calling Mojo</h3><p>Up to now, Mojo’s focus has been on calling into Python. <strong>What about Python code calling Mojo?</strong> This is important for using Mojo as a performance accelerator inside existing Python applications. The good news is that in 2025 this <em>reverse</em> interoperability has begun to emerge. In fact, by mid-2025 <strong>the Mojo team introduced preview support for Python-to-Mojo calls</strong>, allowing developers to import Mojo functions into a Python program. The Mojo v0.25.5 release notes highlight that <em>“</em><a href="https://docs.modular.com/mojo/changelog/#:~:text=The%20Python%2DMojo%20bindings%20are%20available%20as%20a%20preview%20release!%20This%20is%20the%20ability%20to%20call%20into%20Mojo%20functions%20from%20existing%20Python%20codebases.%20The%20use%20case%20is%20to%20speed%20up%20hot%20spots/slow%20Python%20code%20by%20rewriting%20certain%20portions%20of%20your%20code%20in%20Mojo%20to%20achieve%20performance."><em>the Python–Mojo bindings are available as a preview release</em></a><em>,”</em> enabling one to call Mojo functions from a normal Python codebase. The typical use case is to speed up hotspots in Python: write those parts in Mojo, then call them from Python without needing to switch the entire project to Mojo. Chris Lattner (Mojo’s co-founder) has <a href="https://www.reddit.com/r/ProgrammingLanguages/comments/1lfz9jc/comment/myua6nq/?utm_source=share&amp;utm_medium=web3x&amp;utm_name=web3xcss&amp;utm_term=1&amp;utm_content=share_button">noted</a> that many people like this approach because it lets them make <em>“slow Python code go faster”</em> without writing C++ or dealing with a foreign API — Mojo feels like Python, so the integration is relatively seamless.</p><p><strong>How does Python call Mojo in practice?</strong> The current approach (still in beta) is to compile Mojo code as a Python module. Mojo provides a PythonModuleBuilder<a href="https://koaning.io/posts/giving-mojo-a-spin/"><strong> API</strong></a> to expose Mojo functions to Python. Developers annotate a special initializer (conventionally PyInit_modulename) and export functions they want accessible in Python. Once compiled, Python can import this Mojo module (using a provided max.mojo.importer mechanism) and call Mojo functions as if they were regular Python functions.</p><p>The Mojo team has been smoothing this process: for example, <strong>as of August 2025, Mojo functions can accept Python keyword arguments directly</strong>, so Python callers can use foo(x=3) syntax without extra wrapper code. They also added conveniences like allowing Mojo methods to use a raw pointer to self instead of a PythonObject, reducing boilerplate when binding class methods.</p><p>In September 2025, Modular even made Mojo installable via pip in a Python environment, <em>“enhancing interoperability with the Python ecosystem”</em> and making it easier to drop Mojo code into Python projects. All these developments signal that <strong>Mojo is evolving toward a two-way street with Python</strong>. While Mojo→Python calls are stable and heavily used, Python→Mojo calls are in preview with some manual steps – but they reflect a clear direction in Mojo’s roadmap. Ultimately, the goal is that a Python developer can use Mojo modules as if they were any other C extension or library, but with far less friction since Mojo shares Python’s DNA.</p><h3>Why Interop Matters for Mojo’s Adoption</h3><p>Interop is the practical bridge between a new language and production reality; for Mojo, it’s the difference between theoretical promise and immediate usefulness.</p><ul><li><strong>Leverage the ecosystem:</strong> Python’s libraries and tooling are decades ahead. Mojo can’t replace them overnight, so calling into Python lets teams use proven modules (from NumPy to Pandas to TF) while Mojo-native equivalents mature.</li><li><strong>Enable incremental migration:</strong> Port only hot paths to Mojo for speed, keep everything else in Python, and stitch at clear boundaries. This mix-and-match path delivers gains now without a risky rewrite-and-replace program.</li><li><strong>Match the audience:</strong> Most early Mojo users are Python developers. Familiar syntax and direct use of Python modules reduce cognitive load and adoption friction; Mojo complements existing workflows rather than displacing them.</li><li><strong>Hedge against youth:</strong> Where Mojo lacks features or libraries today, Python fills the gaps. Teams can ship sooner — Mojo for performance, Python for breadth — without waiting for Mojo to rebuild the world.</li></ul><p>Mojo is indeed an accelerant layered onto Python.</p><h3>Friction Points and Limitations</h3><p>Despite its promise, Mojo–Python interoperability comes with significant friction points that engineering teams should understand:</p><ul><li><strong>Language feature gaps:</strong> Mojo is still missing many dynamic features that Python developers take for granted. For example, user-defined classes and inheritance are not yet supported in Mojo, and top-level code must be wrapped in functions. Python’s dynamic typing and reflection capabilities have only limited analogs in Mojo at this stage. The Mojo roadmap explicitly defers “core dynamic features” like classes and untyped Python-style code to a later phase. Similarly, Mojo’s standard library is incomplete (by design in Phase 1), with “many missing APIs (e.g. potentially file system APIs).” Interoperability gives access to Python replacements, but a Mojo project can become dependent on Python for routine tasks. Mojo isn’t a full Python drop-in, and developers will hit “Not implemented yet” walls.</li><li><strong>Performance overhead and design constraints:</strong> Calling Python from Mojo carries the baggage of the Python interpreter. Each cross-language call can be expensive; Mojo loses its speed advantage when executing Python code (GIL and interpreter overhead). Frequent round-trips can bottleneck performance. The team encourages using PythonObject only when necessary and otherwise writing pure Mojo, noting that PythonObjects are heap-allocated and garbage-collected. Avoid Python calls inside tight loops or performance-critical paths. Compile-time invocation of Python can slow builds and couples the compiler to Python. If Mojo calls Python from multiple threads, the GIL will serialize those calls.</li><li><strong>Deployment and distribution complexity:</strong> A Mojo program that uses Python is not self-contained. You need to ensure the target environment has the exact Python version and packages your Mojo code expects; mismatches will fail at import. This often means shipping a Python runtime or containerizing the environment. Tools like Pixi help during development, but production still means two dependency graphs (Mojo and Python). pip install mojo streamlines setup, but production packaging needs planning.</li><li><strong>Debugging and tooling limitations:</strong> Debugging a mixed Mojo/Python project is challenging. Mojo has an LLDB-based debugger and LSP; Python has its own. There is no integrated solution to step through both together. Interface bugs (e.g., unexpected Python objects causing Mojo type errors) can be cumbersome to trace. The roadmap lists “Debugger/LSP support for mixed Python/Mojo applications” as an open task. Today, teams often debug each side separately, and testing across the seam can be awkward.</li><li><strong>Ecosystem maturity and “beta” concerns:</strong> Mojo is evolving rapidly, and breaking changes can happen. Interop surfaces may change as designs are refined. Messaging has shifted from “full Python superset now” toward performance-focused coexistence. Outside interop, general-purpose conveniences (I/O, networking) are still nascent, so some projects involve other languages or FFI.</li></ul><p>Missing features, boundary costs, operational overhead, and evolving tooling don’t negate Mojo’s potential; rather, they define where interop helps and where architectural care is needed.</p><h3>Recent Developments (Jul–Oct 2025) and Roadmap Signals</h3><p>The past few months (Q3 2025) have seen significant improvements in the Mojo ecosystem that strengthen Python interoperability or clarify Mojo’s direction:</p><ul><li><strong>Mojo available via pip:</strong> In late September 2025, Modular released Mojo v0.25.6 which for the first time allowed installing Mojo through Python’s package manager (pip). The team noted this enhances Mojo’s integration with the Python ecosystem, “making it easier to extend your Python code with Mojo”. In practical terms, a Python developer can now do pip install mojo and get the Mojo compiler and libraries in a virtual environment. This lowers setup friction for trying Mojo alongside Python; you no longer have to use Pixi if you prefer not to.</li><li><strong>Preview of Python calling Mojo (bindings):</strong> Python→Mojo bindings were introduced as a preview in summer 2025. The v25.5 (August 2025) changelog framed this as a way to “speed up hot spots/slow Python code by rewriting certain portions… in Mojo”. Supporting features landed alongside: accepting keyword arguments in Mojo functions when called from Python; easier method binding. For example, a Mojo function can have fn do_something(x: Int, kwargs: OwnedKwargsDict[PythonObject]) and Python can call do_something(5, y=10) with kwargs capturing y. A PythonModuleBuilder API and related utilities also appeared. These preview features point to a concrete path toward fully supported two-way interop.</li><li><strong>Community engagement and content:</strong> The community has published more guidance on Mojo–Python interop. The open-source <strong>py2mojo</strong> tool appeared for early Python→Mojo translation, and Modular has stated plans for an official translator. Public discussions, including Chris Lattner’s July 2025 Reddit comments, acknowledged that “Python superset” was oversold and refocused expectations on performance and gradual evolution. Hearing from maintainers directly has helped teams set realistic production roadmaps.</li><li><strong>Roadmap clarity:</strong> Modular’s roadmap (updated in this period) reinforces the trajectory: Phase 1 prioritizes core language features and Python interop basics; “Debugger/LSP support for mixed Python/Mojo applications” is listed as a to-do. It also states that full Python library parity and dynamic language features are not Phase 1 goals; later phases (e.g., Phase 3) target classes, inheritance, and more dynamic behavior. The message: interop will keep improving through 2025 while the focus remains performance, safety, and foundations.</li></ul><p>Mojo’s stated goal is to become a superset of Python; it isn’t there yet, but the last quarter’s releases and previews show steady progress toward deeper, smoother interoperability.</p><h3>💡Key Takeaways</h3><ul><li><strong>Mojo leverages Python’s ecosystem:</strong> Mojo can import Python modules and work with Python objects, exposing libraries like NumPy and Matplotlib from Mojo code. This bridge offsets Mojo’s young standard library.</li><li><strong>Interoperability enables gradual adoption:</strong> In practice, teams move compute-heavy paths to Mojo while keeping surrounding code in Python, reusing existing libraries and minimizing disruption.</li><li><strong>Limits and costs remain:</strong> Mojo is not yet a full Python substitute; gaps (e.g., classes, some I/O, dynamic features) often route work back to Python. Cross-language calls add interpreter/GIL overhead and require a Python runtime. Mixed-language debugging and tooling are still maturing.</li><li><strong>Recent releases reduce friction:</strong> pip install mojo simplifies setup, and preview Python→Mojo bindings support Pythonic call patterns. Public roadmap updates indicate continued investment in interop and staged delivery of dynamic features.</li><li><strong>Current operating picture:</strong> In 2025, production usage commonly combines Python’s breadth with Mojo’s targeted performance, with architectural care around boundaries, dependencies, and tooling.</li></ul><h3>🧠Expert Insight</h3><p>Ivo Balbaert’s new article walks through a Python–Mojo comparison, the interop mechanics, Mojo→Python advantages, practical use of Python functions and PythonObject, working with local modules and ecosystem libraries, and even links to a preview of calling Mojo from Python.</p><h3><a href="https://deepengineering.substack.com/p/building-with-mojo-part-3-python">Building with Mojo (Part 3): Python and Mojo</a></h3><p><a href="https://substack.com/profile/121154596-ivo-balbaert">Ivo Balbaert</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*UmkcSgSQiliTLM_Z.png" /></figure><p>This article is Part 3 of our ongoing series on the Mojo programming language. Part 1 introduced Mojo’s origins, design goals, and its promise to unify Pythonic ergonomics with systems-level performance.</p><p><a href="https://deepengineering.substack.com/p/building-with-mojo-part-3-python">Read full story</a></p><p>In Case you missed it:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/140/0*EDWVCetT2dP91usD.png" /></figure><h4><a href="https://deepengineering.substack.com/p/building-with-mojo-part-1-a-language">Building with Mojo (Part 1): A Language Born for AI and Systems</a></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/140/0*06UkrqlgZw6f0SKs.png" /></figure><h4><a href="https://deepengineering.substack.com/p/building-with-mojo-part-2-using-simd">Building with Mojo (Part 2): Using SIMD in Mojo</a></h4><h3>🛠️Tool of the Week</h3><p><a href="https://www.maturin.rs/"><strong>maturin — the production-grade way to ship Rust in Python.</strong></a></p><p>It’s the build backend behind pydantic-core, and it keeps shipping fast (new releases in the past week). If you’re chasing Python performance without leaving the ecosystem, this is the tool.</p><p><a href="https://www.maturin.rs/">Learn more about maturin</a></p><h3>📎Tech Briefs</h3><ul><li><a href="https://www.infoworld.com/article/3975624/the-best-new-features-and-fixes-in-python-3-14.html"><strong>Python 3.14 is GA</strong></a><strong>:</strong> Ships official free-threaded builds, an experimental JIT (off by default), template strings (PEP 750), deferred annotations (PEP 649), and more; the docs and release page are live.</li><li><a href="https://www.infoworld.com/article/4063326/pycrucible-an-easy-way-to-redistribute-your-python-apps.html"><strong>PyCrucible aims for “one-click” Python app redistribution</strong></a><strong>:</strong> A new packaging tool intended to create redistributable builds with minimal setup, complementing PyApp/uv in the “ship Python apps” space.</li><li><a href="https://github.com/pola-rs/polars/releases/tag/py-1.34.0"><strong>Polars 1.34.0 released</strong></a><strong>:</strong> A substantial update with query-engine speedups, deterministic Python package variant import order, unsigned 128-bit integer support, and numerous streaming/Parquet fixes.</li><li><a href="https://www.infoq.com/news/2025/10/microsoft-agent-framework/"><strong>Microsoft previews open-source Agent Framework</strong></a><strong>:</strong> A .NET/Python SDK and runtime for building graph-orchestrated multi-agent apps, with MCP/A2A support and Azure AI Foundry integration.</li><li><a href="https://sdtimes.com/ai/this-week-in-ai-updates-amazon-bedrock-agentcore-mcp-server-digitaloceans-gradient-ai-updates-and-more-october-3-2025/"><strong>AI infra roundup: Amazon Bedrock’s AgentCore MCP server and more</strong></a><strong>: </strong>SD Times’ weekly digest highlights an MCP-compatible agent server for Bedrock plus other platform updates, signaling rapid standardization around tool/server protocols for agents.</li></ul><p>That’s all for today. Thank you for reading this issue of <em>Deep Engineering</em>. We’re just getting started, and your feedback will help shape what comes next. Do take a moment to <a href="https://forms.microsoft.com/Pages/ResponsePage.aspx?id=Dmauk5VIE0SnXsWk3kKcDhvEtilalEBEqs_8ZEM_u5xUQ0pSU1dNTUw3RDdDS0NHRlpNT0MwRVhNRS4u"><strong>fill out this short survey</strong></a> we run monthly — as a thank-you, we’ll add <strong>one Packt credit</strong> to your account, redeemable for any book of your choice.</p><p>We’ll be back next week with more expert-led content.</p><p>Stay awesome,<br>Divya Anne Selvaraj<br><em>Editor-in-Chief, Deep Engineering</em></p><p>If your company is interested in reaching an audience of developers, software engineers, and tech decision makers, you may want to <a href="https://packt.omeclk.com/portal/wts/uc%5EcnN2dfNaqmD-kB-mo66%7C7g%5Ef%7Cb"><strong>advertise with us</strong></a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=76b654f9e806" width="1" height="1" alt=""><hr><p><a href="https://medium.com/deep-engineering/deep-engineering-21-mojo-python-interop-in-late-2025-with-ivo-balbaert-76b654f9e806">Deep Engineering #21: Mojo–Python Interop in Late 2025 with Ivo Balbaert</a> was originally published in <a href="https://medium.com/deep-engineering">Deep Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Deep Engineering #20: When Mapping Becomes the Algorithm with Elías F.]]></title>
            <link>https://medium.com/deep-engineering/deep-engineering-20-when-mapping-becomes-the-algorithm-with-el%C3%ADas-f-1c0555d5bfbc?source=rss-1b02211ff62b------2</link>
            <guid isPermaLink="false">https://medium.com/p/1c0555d5bfbc</guid>
            <category><![CDATA[quantum-computing]]></category>
            <category><![CDATA[quantum-error-correction]]></category>
            <category><![CDATA[quantum-software]]></category>
            <category><![CDATA[qiskit]]></category>
            <category><![CDATA[quantum]]></category>
            <dc:creator><![CDATA[Divya Anne Selvaraj]]></dc:creator>
            <pubDate>Thu, 02 Oct 2025 15:31:54 GMT</pubDate>
            <atom:updated>2025-10-02T15:31:54.048Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bObifAOCWz9Ulu6w3jGb-g.png" /></figure><h3>Deep Engineering #20: When Mapping Becomes the Algorithm with Elías F. Combarro &amp; Samuel González-Castillo</h3><h4>Think quantum is still theoretical? Now see this (on real hardware).</h4><h3><a href="https://www.vpdae.com/redirect/ef14yo0mqjfdngbawbpbd6dul7o">Join us on October 22, 2025 at DevSecCon25 — Securing the Shift to AI Native</a></h3><figure><a href="https://www.vpdae.com/redirect/ef14yo0mqjfdngbawbpbd6dul7o"><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*aGY_4kK2KO8TrTGQ.jpeg" /></a></figure><blockquote><em>This one-day event brings together AI, App, &amp; Security pros to discuss securing the shift to AI Native SDLCs via DevSecOps.</em></blockquote><blockquote><em>The </em><a href="https://www.vpdae.com/redirect/ef14yo0mqjfdngbawbpbd6dul7o"><strong><em>summit</em></strong></a><em> features speakers like </em><strong><em>Nnenna Ndukwe</em></strong><em> &amp; </em><strong><em>Bob Remeika</em></strong><em>, plus an </em><strong><em>AI Lab with hands-on workshops</em></strong><em>, </em><strong><em>AI Security Research</em></strong><em>, and a </em><strong><em>Product Track</em></strong><em>!</em></blockquote><p><a href="https://www.vpdae.com/redirect/ef14yo0mqjfdngbawbpbd6dul7o">Save your spot now</a></p><p>✍️From the editor’s desk,</p><p><strong>Welcome to the twentieth issue of Deep Engineering.</strong></p><p>IBM says <a href="https://www.ibm.com/quantum/blog/hsbc-algorithmic-bond-trading">HSBC used a hybrid quantum–classical workflow on its Heron hardware and achieved <strong>up to 34%</strong> better accuracy</a> at predicting whether a corporate-bond trade would fill. If you are still on the fence about taking quantum computing seriously: this outcome means a real bank ran a bounded experiment (one prediction task, one metric) where a small quantum circuit — compiled to a specific device and run alongside classical code — moved the needle on a business outcome.</p><p>And we feel, this is a really good time to return to our very extensive <a href="https://deepengineering.substack.com/p/foundations-of-quantum-programming"><strong>interview</strong></a> with Prof. Elías F. Combarro for today’s feature. In <a href="https://deepengineering.substack.com/p/deep-engineering-10-prof-elias-f"><strong>Issue #10</strong></a> we focused on how quantum programs are designed and debugged on unfinished machines; this time we use different parts of the same conversation to explain the mechanics that make a result like HSBC’s possible: mapping and transpilation that alter circuit behavior, measurements that yield <strong>distributions</strong> (not single answers), and the role of <strong>logical</strong> vs <strong>physical</strong> qubits when circuits get long.</p><p>Combarro is a full professor of Computer Science at the University of Oviedo, former advisor to CERN’s Quantum Technology Initiative, and co-author of <em>A </em><a href="https://www.packtpub.com/en-us/product/a-practical-guide-to-quantum-computing-9781835885956"><strong><em>Practical Guide to Quantum Computing</em></strong></a> (Packt, 2025). If you want the deeper mechanics, we’ve included the complete <a href="https://open.substack.com/pub/deepengineering/p/quantum-error-correction-and-fault?r=2bqw9h&amp;utm_campaign=post&amp;utm_medium=web&amp;showWelcomeOnShare=false"><strong>Chapter 14 — Quantum Error Correction and Fault Tolerance</strong></a> from <strong><em>A Practical Guide to Quantum Computing</em> </strong>by Combarro and Samuel González-Castillo.</p><p>Let’s get started!</p><p>Packt Deep Engineering is proud to partner with <a href="https://pretix.eu/pyconse/2025/"><strong>PyCon Sweden 2025 Oct. 30th — 31st, 2025</strong></a></p><p><a href="https://pretix.eu/pyconse/2025/">Get tickets</a></p><h3>What the Transpiler Can’t Hide with Prof. Elias F. Combarro</h3><h4>Hardware-aware code, probabilistic outcomes, and why reproducibility is different in quantum software.</h4><p>Quantum transpilers are essential, but they cannot abstract away device topology, calibration drift, or the fact that measurement changes the system you’re trying to observe. In the parts of our conversation with Prof. Elías F. Combarro that didn’t make <a href="https://deepengineering.substack.com/p/deep-engineering-10-prof-elias-f"><strong>Issue #10</strong></a>, a consistent message was: <strong>trustworthy quantum results depend on knowing how circuits map to devices, how measurement changes what you can observe, and how to prove intent on simulators before touching hardware.</strong></p><p><em>If you missed it:</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/140/0*FFLDFJVPyoDzQP5P.png" /></figure><h4><a href="https://deepengineering.substack.com/p/deep-engineering-10-prof-elias-f">Deep Engineering #10: Prof. Elías F. Combarro on Programming Quantum Systems in Flux</a></h4><p>As Combarro says:</p><blockquote>“The concept of transpiling or compiling is quite similar to classical programming. In classical computing, you write code in a high-level language like C or Java, and then it gets compiled into machine code. In quantum computing, it’s the same idea: your code — written, say, in Qiskit — is translated into a sequence of low-level quantum operations that can be executed on hardware.</blockquote><blockquote>However, there are important differences.”</blockquote><p>Those differences show up the moment a source circuit meets a real backend.</p><ul><li><em>First, quantum “high-level” languages are still very low-level by classical standards. You don’t have loops, branches, or complex data structures. So the abstraction gap is smaller.</em></li><li><em>Second, unlike classical compilers, quantum transpilers can’t completely shield you from hardware details. In classical computing, you usually don’t have to think about the processor’s internal wiring. But in quantum computing, that kind of detail really matters. Not all qubits in a quantum computer are connected to each other. So if you want to apply a gate to two distant qubits, the transpiler has to insert extra operations to move data around — introducing noise and increasing circuit depth.</em></li></ul><p>Topology and calibration matter day to day, not just in benchmarks.</p><blockquote>“As a quantum developer, you need to know something about the machine you’re targeting… The transpiler will find a way to bring them together using swap gates — but that adds overhead and error risk… even the quality of individual qubits varies.”</blockquote><p>That reality shapes workflow. You set intent where the math is exact, then approach hardware in controlled steps.</p><blockquote>“To untangle that, you start by running your code on a classical simulator. These simulators are deterministic and noise-free — they give you the exact mathematical result of the circuit, assuming perfect qubits.”</blockquote><p>Simulators set the target distribution; they also set scale limits.</p><blockquote>“For example, to simulate 38 qubits, we needed 8 terabytes of RAM. To simulate 39, we’d need 16 terabytes.”</blockquote><p>Between a perfect statevector and a noisy device, developers still need observability without destroying state. During development, classical techniques are still available — up to a point.</p><blockquote>“Since quantum programs are often run on classical simulators during development, you can use standard debugging tools — like breakpoints, inspection, or logging… One of the most useful techniques is inspecting the state vector at different points in the circuit.”</blockquote><p>On hardware, “reproducible” means something narrower than in classical systems.</p><blockquote>“Quantum computations are inherently probabilistic, so you can’t reproduce the exact same measurement result every time. What you can do is ensure a high probability of success.”</blockquote><p>The measurement model is part of the design space. Even when mid-circuit measurement is possible, theory keeps you honest about what it buys you.</p><blockquote>“There’s a theorem in quantum computing that says if you want to measure something in the middle of a circuit, you can simulate that effect by deferring the measurement to the end and adjusting the circuit accordingly.”</blockquote><p>Error correction reframes resources and observability. The unit you program toward becomes an encoded abstraction.</p><blockquote>“Instead of storing information in a single qubit, you spread it across many qubits… The individual ones are called physical qubits, and the combined, encoded unit is a logical qubit.”</blockquote><p>You still don’t get to peek at the data itself.</p><blockquote>“You can’t measure a qubit without collapsing its state. So quantum error correction uses partial measurements — what we call syndrome measurements — that only reveal limited information about what kind of error may have occurred, without disturbing the actual quantum information.”</blockquote><p>Until those encodings are routine, depth and connectivity set practical limits — even for canonical algorithms.</p><blockquote>“These algorithms were designed for ideal quantum computers — machines with no noise and perfect gates… The longer the circuit, the more likely it is that errors will accumulate… [and] connectivity… makes it more error-prone.”</blockquote><p>At cryptographic scales, the gap is concrete.</p><blockquote>“To get 2,000 or more reliable logical qubits, you’d need many times that number in physical qubits — perhaps hundreds of thousands. That’s far beyond current capabilities.”</blockquote><p>Toolchains are improving, but sharp edges remain.</p><blockquote>“Quantum software libraries evolve very quickly… That situation has improved a lot… When Qiskit 2.0 came out, we only had to make a few changes.”</blockquote><p>And sometimes the rough edge is small but consequential.</p><blockquote>“While writing this book, we discovered that the name of the result variable in Qiskit changes depending on whether you declare measurements at the beginning or at the end of a circuit. That wasn’t documented, and it took us a while to figure it out. So we included a clear explanation in the book to save others the trouble.”</blockquote><p>Putting these pieces together, a working picture emerges from Combarro’s remarks.</p><h3>💡Key takeaways</h3><ul><li><strong>Mapping shapes behavior:</strong> Layout, inserted swaps, and two-qubit counts change the circuit you thought you wrote and the error surface it traverses.</li><li><strong>Simulation establishes intent:</strong> Prove the ideal distribution first; then introduce noise models; then touch devices.</li><li><strong>Results are distributions:</strong> Outcomes are probabilistic by design; reporting means histograms, shots, and success probabilities, not single runs.</li><li><strong>Encodings change the unit of work:</strong> Logical qubits, built from many physical qubits and syndrome measurements, define how long circuits become viable.</li></ul><p>None of this is a reason to pause. It’s a reason to describe work in terms that match the physics and the compilers we have. As Combarro says about compilation:</p><blockquote>“It’s the same idea… but the abstraction gap is smaller.”</blockquote><p>That smaller gap is where serious quantum software lives today: close to the device graph, explicit about measurement, anchored by simulation, and clear about what changed after transpilation.</p><p>To see how these constraints become engineering practice, download and take a look at <a href="https://open.substack.com/pub/deepengineering/p/quantum-error-correction-and-fault?r=2bqw9h&amp;utm_campaign=post&amp;utm_medium=web&amp;showWelcomeOnShare=false"><strong>Chapter 14 — Quantum Error Correction and Fault Tolerance</strong></a><strong> </strong>in Combarro’s book, where logical qubits, syndrome measurements, and fault-tolerant gates formalize the path to running long circuits reliably.</p><h3>🧠Expert Insight</h3><ol><li><a href="https://open.substack.com/pub/deepengineering/p/quantum-error-correction-and-fault?r=2bqw9h&amp;utm_campaign=post&amp;utm_medium=web&amp;showWelcomeOnShare=false"><strong>The complete “Chapter 14: Quantum Error Correction and Fault Tolerance” from the book <em>A Practical Guide to Quantum Computing</em> by Elías F. Combarro and Samuel González-Castillo (Packt, 2025)</strong></a></li></ol><p>4.55MB ∙ PDF file</p><p><a href="https://deepengineering.substack.com/api/v1/file/adef3bb7-2c9c-4998-b4f5-029c2d9b33e4.pdf">Download</a></p><ol><li><a href="https://deepengineering.substack.com/p/foundations-of-quantum-programming"><strong>Our complete conversation with Elias F. Combarro</strong></a><strong>: </strong><a href="https://deepengineering.substack.com/p/foundations-of-quantum-programming">Foundations of Quantum Programming: A Conversation with Prof. Elías F. Combarro</a></li></ol><figure><a href="https://deepengineering.substack.com/p/foundations-of-quantum-programming"><img alt="" src="https://cdn-images-1.medium.com/max/728/0*yEaF-30qwHbTcHzT" /></a></figure><p><em>Sponsored:</em></p><p><a href="https://www.vpdae.com/redirect/cl389qnayg5125mzsoucxm7916y"><strong>Advance your technical career with actionable, practical solutions at AWS re:Invent 2025 | Las Vegas</strong></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/0*MWogn0e5entexY-2.jpeg" /></figure><p>Transform your skills at AWS re:Invent 2025. Master new AWS services, join immersive workshops, and network with top cloud innovators at AWS re:Invent 2025. As a re:Invent attendee, you’ll receive 50% discount code towards any AWS Certification exam. Our 2025 event catalog is now available!</p><p><a href="https://www.vpdae.com/redirect/cl389qnayg5125mzsoucxm7916y">Explore the Event</a></p><h3>🛠️Tool of the Week</h3><p><a href="https://pennylane.ai/blog/2025/07/pennylane-release-0.42"><strong>PennyLane (Xanadu, open-source)</strong></a></p><p>A cross-platform Python framework for quantum computing and hybrid ML with differentiable programming and multi-backend support — well-suited to circuit mapping, depth control, and measurement workflows.</p><ul><li><strong>Current usage:</strong> Integrates directly with <strong>Amazon Braket</strong> via the official PennyLane–Braket plugin, allowing runs on managed QPUs and simulators. Also used in recent academic collaborations (e.g., Yale Quantum Institute) surfaced by the maintainers.</li><li><strong>Actively updated:</strong> <strong>v0.42</strong> released July 15, 2025; maintenance updates <strong>v0.42.2</strong> on Aug 11, 2025 (and ongoing 0.42.x notes).</li><li><strong>Project status:</strong> Mature, widely used research tool maintained by <strong>Xanadu</strong>; open source under permissive licensing.</li></ul><p><a href="https://pennylane.ai/">Learn more about PennyLane</a></p><h3>📎Tech Briefs</h3><ul><li><a href="https://www.ibm.com/quantum/blog/hsbc-algorithmic-bond-trading"><strong>IBM × HSBC: early signal in quantum finance</strong></a><strong>: </strong>HSBC reports up to <strong>34% improvement</strong> in predicting bond-trade completion using hybrid quantum-classical methods on IBM Heron processors.</li><li><a href="https://www.ibm.com/quantum/blog/qcsc-software"><strong>IBM outlines software for quantum-centric supercomputing</strong></a><strong>: </strong>Details open-source <strong>Slurm plugins</strong> and a <strong>Quantum Resource Management Interface (QRMI)</strong>, and notes the first university QCSC environment at RPI.</li><li><a href="https://aws.amazon.com/blogs/quantum-computing/aws-collaborates-with-chugai-pharmaceutical-co-on-quantum-inspired-and-constraint-programming-methods-for-cyclic-peptide-protein-docking/"><strong>AWS × Chugai: quantum-inspired docking</strong></a><strong>: </strong>Describes <strong>constraint programming and QUBO-based</strong> approaches for cyclic peptide–protein docking.</li><li><a href="https://ionq.com/news/ionq-achieves-significant-quantum-internet-milestone-demonstrates-quantum"><strong>IonQ advances quantum networking</strong></a><strong>: </strong>Demonstrates <strong>frequency conversion</strong> from trapped-ion photon wavelengths to <strong>telecom</strong> bands, a step toward long-distance quantum interconnects.</li><li><a href="https://www.nature.com/articles/s41586-025-09596-6"><strong>Nature: neutral-atom ‘conveyor belt’</strong></a><strong>: </strong>A <strong>neutral-atom conveyor-belt array</strong> reported in <em>Nature</em> points to scalable qubit transport and layout for larger systems.</li></ul><p>That’s all for today. Thank you for reading this issue of <em>Deep Engineering</em>. We’re just getting started, and your feedback will help shape what comes next. Do take a moment to <a href="https://forms.microsoft.com/Pages/ResponsePage.aspx?id=Dmauk5VIE0SnXsWk3kKcDhvEtilalEBEqs_8ZEM_u5xUQ0pSU1dNTUw3RDdDS0NHRlpNT0MwRVhNRS4u"><strong>fill out this short survey</strong></a> we run monthly — as a thank-you, we’ll add <strong>one Packt credit</strong> to your account, redeemable for any book of your choice.</p><p>We’ll be back next week with more expert-led content.</p><p>Stay awesome,<br>Divya Anne Selvaraj<br><em>Editor-in-Chief, Deep Engineering</em></p><p>If your company is interested in reaching an audience of developers, software engineers, and tech decision makers, you may want to <a href="https://packt.omeclk.com/portal/wts/uc%5EcnN2dfNaqmD-kB-mo66%7C7g%5Ef%7Cb"><strong>advertise with us</strong></a>.</p><p><a href="https://deepengineering.substack.com/leaderboard?&amp;referrer_token=2bqw9h&amp;utm_source=post">Refer a friend</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1c0555d5bfbc" width="1" height="1" alt=""><hr><p><a href="https://medium.com/deep-engineering/deep-engineering-20-when-mapping-becomes-the-algorithm-with-el%C3%ADas-f-1c0555d5bfbc">Deep Engineering #20: When Mapping Becomes the Algorithm with Elías F.</a> was originally published in <a href="https://medium.com/deep-engineering">Deep Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Deep Engineering #18: Sam Keen on Clean Architecture with Python]]></title>
            <link>https://medium.com/deep-engineering/deep-engineering-18-sam-keen-on-clean-architecture-with-python-6fa0be99804c?source=rss-1b02211ff62b------2</link>
            <guid isPermaLink="false">https://medium.com/p/6fa0be99804c</guid>
            <category><![CDATA[solid-principles]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[python-programming]]></category>
            <category><![CDATA[software-architecture]]></category>
            <category><![CDATA[clean-architecture]]></category>
            <dc:creator><![CDATA[Divya Anne Selvaraj]]></dc:creator>
            <pubDate>Thu, 02 Oct 2025 07:13:21 GMT</pubDate>
            <atom:updated>2025-10-02T07:13:21.886Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*nxQaMfE5B752SI4Q.png" /></figure><h4>Pragmatic boundaries for Python at scale — the dependency rule in practice, a compact example, and a full chapter extract.</h4><p><a href="https://www.vpdae.com/redirect/ef14yo0mqjfdngbawbpbd6dul7o"><strong>Join us on October 22, 2025 at DevSecCon25 — Securing the Shift to AI Native</strong></a></p><figure><a href="https://www.vpdae.com/redirect/ef14yo0mqjfdngbawbpbd6dul7o"><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*01rb5iVDIbKtKuEk.jpeg" /></a></figure><blockquote><em>This one-day event brings together AI, App, &amp; Security pros to discuss securing the shift to AI Native SDLCs via DevSecOps.</em></blockquote><blockquote><em>The </em><a href="https://www.vpdae.com/redirect/ef14yo0mqjfdngbawbpbd6dul7o"><strong><em>summit</em></strong></a><em> features speakers like </em><strong><em>Nnenna Ndukwe</em></strong><em> &amp; </em><strong><em>Bob Remeika</em></strong><em>, plus an </em><strong><em>AI Lab with hands-on workshops</em></strong><em>, </em><strong><em>AI Security Research</em></strong><em>, and a </em><strong><em>Product Track</em></strong><em>!</em></blockquote><p><a href="https://www.vpdae.com/redirect/ef14yo0mqjfdngbawbpbd6dul7o">Save your spot now</a></p><p>✍️ <em>From the editor’s desk,</em></p><p><strong>Welcome to the eighteenth issue of Deep Engineering.</strong></p><p>Python’s flexibility is a gift; at scale, it’s also how coupling sneaks in and change gets expensive. What does it take to keep business rules independent of tools, so you can move fast without fragility?</p><p>To answer this question, we spoke to -a software engineering leader with 25+ years’ experience and author or <a href="https://www.packtpub.com/en-us/product/clean-architecture-with-python-9781836642886"><strong><em>Clean Architecture with Python</em></strong></a> (Packt, 2025). He’s a polyglot who’s used Python from early-stage startups to large-scale systems at AWS, Lululemon, and Nike. At Lululemon, he led the company’s first cloud-native development team, setting foundational standards for distributed architecture. Today, as a <strong>Principal Engineer</strong> at <strong>Pluralsight</strong>, he focuses on generative-AI enablement for software teams-building tools that amplify developer productivity while preserving architectural integrity. He also writes <a href="https://alteredcraft.com/"><strong>AlteredCraft</strong></a>, where his weekly <em>Delta Notes</em> distills what’s shifting in AI and software for practitioners.</p><p>If you’re navigating legacy refactors or standing up a new service, this issue is about strategies for reducing risk per change.</p><p>In this issue:</p><ul><li><strong>Feature Article:</strong> Clean Architecture in Python: Keeping the Core Clean in a Dynamic Language with Sam Keen</li><li><a href="https://deepengineering.substack.com/p/clean-architecture-essentials-transforming"><strong>Clean Architecture Essentials: Transforming Python Development</strong></a><strong>: </strong>The complete “Chapter 1” from the book Clean Architecture with Python by Sam Keen</li><li><a href="https://deepengineering.substack.com/p/pragmatic-clean-architecture-in-python"><strong>Pragmatic Clean Architecture in Python: A Conversation with Sam Keen</strong></a><strong>: </strong>Q&amp;A covering<strong> </strong>applying DDD and the dependency rule in real-world Python — keeping frameworks at the edge, modeling with dataclasses/Pydantic, and using AI without breaking clean boundaries.</li></ul><h3>Clean Architecture in Python: Keeping the Core Clean in a Dynamic Language with Sam Keen</h3><p>Python’s greatest strength-its flexibility-can become its biggest liability as systems grow. A simple CRUD API can turn into a sprawling mesh of dependencies almost overnight. Without a clear structure, change becomes perilous, and testing collapses under the weight of hidden couplings. Clean Architecture, the layered design style popularized by Robert C. Martin, offers a way to prevent that entropy. It promises to keep business rules insulated from frameworks, databases, and delivery mechanisms-the volatile parts of our systems.</p><p>But Python poses a unique challenge. The language’s dynamism makes rigid architectures feel alien. Many Python teams have historically dismissed Clean Architecture as “too Java-esque.” Sam Keen has spent years proving otherwise.</p><blockquote>“I wanted to take an approach and see: can we take from clean architecture the aspects that help us maintain larger Python codebases-without trying to turn it into Java?”</blockquote><p>Keen argues that Clean Architecture can work precisely because of Python’s ethos of explicitness. Clean Architecture is operating discipline for Python: a few explicit boundaries that keep business logic independent of frameworks, making change safer and cheaper.</p><p>At the heart of Clean Architecture lies the <strong>Dependency Rule</strong>:</p><blockquote>“The principle is that <strong>dependencies all face inward</strong>. The domain layer shouldn’t be aware of anything above it. The application layer shouldn’t be aware of anything above it. They should only depend on what’s inside. In Python, just like in other languages, you can check this. One way is pragmatic-make sure the team understands the principle and why it matters. Another way is structural-use a folder structure: a folder for domain objects, a folder for application objects, and so on. That way, each file is bound by the rules of its layer.<em> </em>You can also get precise with automation. For example, in the book we give a simple fitness function test. It runs linting across import statements and checks them against the known directory structure of the layers. If it finds that a use case in the application layer is importing from, say, a driver, it fails the build. That shifts knowledge of violations left, so developers can correct them quickly.”</blockquote><p>Keen recommends enforcing this through a hierarchy of guardrails: start with shared understanding, reinforce it with folder structure, and finally automate it. He often structures projects into domain, application, interfaces, and frameworks directories. That hierarchy acts as a map. If a developer tries to import a FastAPI router from within a domain entity, the linter blocks it.</p><p>This separation brings testability almost for free. Unit tests can target the domain layer in isolation. Application-layer tests can swap real implementations for mocks that conform to the same interface. End-to-end tests are left for validating the glue-not compensating for weak internal boundaries.</p><p>Domain-driven design underpins Keen’s approach. Python’s dataclasses make it straightforward to model entities and value objects idiomatically.</p><blockquote>“For entities, which have an identity, I use a thin base entity class that every entity extends. A Task, a User, any entity extends this base entity class. That gives you a primary ID field-a reserved field for all entities. Anything in the system that knows it’s dealing with an entity knows that ID field is there and that it’s universally unique.<em> </em>In Python specifically, in that entity class you’d also implement the A value object is different. It doesn’t have an ID field; it’s defined solely by its properties. Again, a dataclass works well, but here you’d set <em>frozen=True</em> to make it immutable.&quot;<em> </em><em>__hash__</em> and <em>__eq__</em> methods. That keeps you in line with the concept of an entity having identity. You can change all the attributes of that class, but it will always represent the same person or the same task-it&#39;s just that its attributes have changed.</blockquote><p>This clarity matters. An entity represents identity that persists as attributes change; a value object represents a snapshot of values that must never mutate. These simple conventions help keep the domain layer conceptually coherent.</p><p>Keen warns against letting frameworks leak into these core layers. An anti-pattern is mixing SQLAlchemy models directly into domain entities. Instead, he advocates the <strong>repository pattern</strong>: the domain depends on an abstract interface like UserRepository, and the actual SQLAlchemy implementation lives in the outer frameworks layer.</p><p>Chapter 1 of Keen’s book ( <a href="https://www.packtpub.com/en-us/product/clean-architecture-with-python-9781836642886"><strong><em>Clean Architecture with Python</em></strong></a>) illustrates these principles with a simple notification system. At the core is an abstract base class; the outer layer provides concrete implementations:</p><pre>from abc import ABC, abstractmethod<br><br>class Notifier(ABC):<br>    @abstractmethod<br>    def send_notification(self, message: str) -&gt; None:<br>        pass<br><br>class EmailNotifier(Notifier):<br>    def send_notification(self, message: str) -&gt; None:<br>        print(f&quot;Sending email: {message}&quot;)<br><br>class NotificationService:<br>    def __init__(self, notifier: Notifier):<br>        self.notifier = notifier<br><br>    def notify(self, message: str) -&gt; None:<br>        self.notifier.send_notification(message)<br><br>email_service = NotificationService(EmailNotifier())<br>email_service.notify(&quot;Hello via email&quot;)</pre><p>The inner Notifier abstraction knows nothing about EmailNotifier or NotificationService. Dependencies point inward, preserving flexibility. Swapping EmailNotifier for SMSNotifier doesn&#39;t touch the service or the domain logicChapter.</p><h3>Tooling and Practice in 2025</h3><p>Recent projects have shown how to operationalize these ideas. At AddWeb Solutions, engineers refactored a legacy Python monolith into a cleanly layered system. By isolating business logic from frameworks and introducing repository interfaces, they cut deployment times from 45 minutes to under 10 and saved an estimated <a href="https://www.addwebsolution.com/blog/python-technical-debt-savings"><strong>$3 million in technical debt</strong></a> within a year.</p><p>Static analysis is making enforcement tractable. <a href="https://roman.pt/posts/python-architecture-linter/"><strong>import-linter</strong></a> lets teams define “contracts” (e.g. no imports from frameworks into domain) and fail builds on violations. Newer tools like add structural checks beyond imports, detecting couplings through class hierarchies and decorators.</p><p>Meanwhile, <strong>mypy</strong> has become standard for enforcing interface contracts in dynamic code, giving Python a hint of compiler-like safety. Dependency injection frameworks such as <a href="https://medium.com/the-pythonworld/the-clean-architecture-i-use-for-every-python-project-9585545ce7dc"><strong>Dependency Injector</strong></a> help keep wiring logic outside the domain, enabling test doubles to slot in cleanly.</p><h3>AI and the Case for Structure</h3><p>Even AI-driven development strengthens the case for Clean Architecture. As Keen says:</p><blockquote>“AI is the definition of disruptive…<em> </em>There are a couple of dimensions:</blockquote><ol><li><em>If you’re thinking of AI as a feature you would add to an application-integrating an LLM into an application-nothing really changes. That’s a driver-a framework driver. So the knowledge of, say, </em><strong><em>LangChain</em></strong><em> or </em><strong><em>LlamaIndex</em></strong><em>-really common frameworks-that’s all going to stay in the outer layers. Same playbook, and then you integrate that down to your pure domain objects. So that part doesn’t change.</em></li><li><em>The other part is using AI to build with-coding tools and these sorts of things. It helps. We talked about writing tests-AIs are great at writing unit tests, so you can definitely leverage it there. That’s where you mitigate hallucination-you’re writing tests to validate, so you can know the AI is doing the right thing. Another example: we have that User that needs to be saved to a database, and it has an interface contract. You can use AI to build the concrete class against that interface-at least get a start on it. Some might think of that as boilerplate, but it can do that.</em></li></ol><blockquote>Overall, the advantage is this idea of <strong>“context engineering.”</strong> The AI’s ability to help is only as good as the context you give it. If you let it index legacy, tightly coupled systems, it’s not really sure what the plan was-there kind of wasn’t one-so the AI will continue to build against that codebase without much of a plan. Whereas, if you’re explicit about your approach and you have these four folders with easily defined rationale of what goes into each folder, all that context goes to the LLM-since it’s helping a human. <strong>Using clean architecture and having that playbook for how to build out your application helps AIs do the right thing and not go off the rails. It’s exciting.”</strong></blockquote><p>In Keen’s view, clean boundaries are a form of <strong>context engineering</strong>. They make systems more comprehensible not just to humans but to AI tooling tasked with generating tests, scaffolding classes, or suggesting refactors.</p><p>To wrap up, Clean Architecture isn’t about heavyweight ceremony. As Keen puts it, you don’t want to build a skyscraper if all you need is a cottage. It’s about protecting what matters-the core business rules-from the churn of frameworks and infrastructure.</p><p>Python’s flexibility makes it easy to blur boundaries. Clean Architecture makes it easy to draw them again.</p><h3>💡Key Takeaways</h3><ul><li><strong>Protect the core.</strong> Keep business logic independent of frameworks and I/O. Enforce the Dependency Rule so dependencies face inward; swap details at the edge without touching the domain.</li><li><strong>Make boundaries visible.</strong> Use a clear folder layout ( domain, application, interfaces, frameworks) plus interfaces/repositories to prevent leakage. Let structure guide behavior.</li><li><strong>Operationalise with tooling.</strong> Encode rules in CI: import-linter/Deply for layer contracts, mypy for interface guarantees, DI for wiring, and fast unit tests that don’t boot infrastructure.</li><li><strong>Be pragmatic.</strong> Start simple for CRUD; evolve to fuller layering as complexity grows. Document intentional deviations in ADRs; avoid big-bang rewrites-strangle and slice.</li><li><strong>Design for leverage (humans and AI).</strong> Clean seams and types improve comprehension and enable AI assistance to generate and refactor safely-raising delivery speed without raising risk.</li></ul><h3>🧠Expert Insight</h3><p><a href="https://deepengineering.substack.com/p/clean-architecture-essentials-transforming">Practical Deep-Dives</a></p><h3><a href="https://deepengineering.substack.com/p/clean-architecture-essentials-transforming">Clean Architecture Essentials: Transforming Python Development</a></h3><p><a href="https://substack.com/profile/11641009-sam-keen">Sam Keen</a></p><figure><a href="https://deepengineering.substack.com/p/clean-architecture-essentials-transforming"><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*1aI9RGDbpnJ3OT1I" /></a></figure><p>The complete “<a href="https://deepengineering.substack.com/p/clean-architecture-essentials-transforming">Chapter 1: Clean Architecture Essentials: Transforming Python Development</a>” from the book Clean Architecture with Python by Sam Keen (Packt, June 2025).</p><h3>🛠️Tool of the Week</h3><p><a href="https://mypy.readthedocs.io/en/stable/changelog.html"><strong>mypy 1.18.1 (Sept 11, 2025)</strong></a></p><p>Production-proven static typing for Python. The 1.18/1.18.1 line lands major performance work-~40% faster than 1.17 when type-checking mypy itself (with extreme cases up to 10×)-making CI/type gates far cheaper on large codebases.</p><p><a href="https://mypy.readthedocs.io/en/stable/changelog.html">Learn more about mypy</a></p><h3>📎Tech Briefs</h3><ul><li><a href="https://github.com/pydantic/pydantic/releases"><strong>Pydantic 2.11.8 &amp; 2.11.9 — compatibility fix for mypy 1.18</strong></a><strong>:</strong> Fresh releases fix the mypy plugin for 1.18 and backport stability changes; helps teams keep strict models/DTOs without breaking type checks.</li><li><a href="https://import-linter.readthedocs.io/en/stable/changelog.html"><strong>Import Linter 2.5 — new “protected” contract type<br>Architecture linting gets sharper</strong></a><strong>:</strong> Define protected modules/layers to prevent inward leaks; ideal for enforcing domain→application→interfaces→frameworks seams.</li><li><a href="https://python-poetry.org/history/#220---2025-09-14"><strong>Poetry 2.2.0 — PEP 735 dependency groups, Python 3.14 support<br>Cleaner environment and dependency boundaries</strong></a><strong>:</strong> Nested groups and PEP 735 help encode service/module scopes; good hygiene for modular monoliths and services.</li><li><a href="https://pypi.org/project/opentelemetry-sdk/"><strong>OpenTelemetry Python SDK 1.37.0 (Sept 11, 2025) — fresh SDK release<br>Observability keeps pace</strong></a><strong>:</strong> Up-to-date telemetry SDK for tracing/metrics/logs supports boundary-aware instrumentation across layers.</li><li><a href="https://github.com/microsoft/pyright/releases"><strong>Pyright 1.1.405 (released yesterday)</strong></a>: precision fixes for static typing<br>Bug fixes and diagnostics tweaks (e.g., “possibly unbound” false positives) improve reliability of strict typing gates in large Python repos — useful for enforcing clean interfaces at layer boundaries.</li></ul><p>That’s all for today. Thank you for reading this issue of <em>Deep Engineering</em>. We’re just getting started, and your feedback will help shape what comes next. Do take a moment to <a href="https://forms.cloud.microsoft/Pages/ResponsePage.aspx?id=Dmauk5VIE0SnXsWk3kKcDhvEtilalEBEqs_8ZEM_u5xUMEM0TzFZR0ZYQzBFMzQwWEZTVFBUMFVGQS4u"><strong>fill out this short survey</strong></a> we run monthly — as a thank-you, we’ll add <strong>one Packt credit</strong> to your account, redeemable for any book of your choice.</p><p>We’ll be back next week with more expert-led content.</p><p>Stay awesome,<br>Divya Anne Selvaraj<br><em>Editor-in-Chief, Deep Engineering</em></p><p>If your company is interested in reaching an audience of developers, software engineers, and tech decision makers, you may want to <a href="https://packt.omeclk.com/portal/wts/uc%5EcnN2dfNaqmD-kB-mo66%7C7g%5Ef%7Cb"><strong>advertise with us</strong></a>.</p><p><a href="https://deepengineering.substack.com/leaderboard?&amp;referrer_token=2bqw9h&amp;utm_source=post">Refer a friend</a></p><p><em>Originally published at </em><a href="https://deepengineering.substack.com/p/deep-engineering-18-sam-keen-on-clean"><em>https://deepengineering.substack.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6fa0be99804c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/deep-engineering/deep-engineering-18-sam-keen-on-clean-architecture-with-python-6fa0be99804c">Deep Engineering #18: Sam Keen on Clean Architecture with Python</a> was originally published in <a href="https://medium.com/deep-engineering">Deep Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>