<?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 WEX Tech Blog on Medium]]></title>
        <description><![CDATA[Stories by WEX Tech Blog on Medium]]></description>
        <link>https://medium.com/@wextechblogs?source=rss-d67ed5ce646f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*b9XBDqPP0OOFlH13DQZ8EQ@2x.png</url>
            <title>Stories by WEX Tech Blog on Medium</title>
            <link>https://medium.com/@wextechblogs?source=rss-d67ed5ce646f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 03:09:09 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@wextechblogs/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[Securing by Design, Part 3: from Agent Identity to Enforceable Authority]]></title>
            <link>https://medium.com/@wextechblogs/securing-by-design-part-3-from-agent-identity-to-enforceable-authority-02917487cfa0?source=rss-d67ed5ce646f------2</link>
            <guid isPermaLink="false">https://medium.com/p/02917487cfa0</guid>
            <category><![CDATA[cyber-security-awareness]]></category>
            <category><![CDATA[agentic-development]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[WEX Tech Blog]]></dc:creator>
            <pubDate>Wed, 21 Oct 2026 16:10:10 GMT</pubDate>
            <atom:updated>2026-10-21T16:10:10.767Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TnWju7ccrV5pVdPgcmYngA.jpeg" /></figure><p>Author: <a href="https://www.linkedin.com/in/krthom/">Kyle Thomas</a>, VP of Global Information Security at WEX</p><p>In the <a href="https://medium.com/@wextechblogs/securing-by-design-part-2-agents-as-first-class-identities-b394021796ed">previous article</a> in this series, I described why WEX treats fully autonomous agents as first-class identities. These agents can operate independently of a user interaction, access applications and tools as part of their defined mission, and continue working without relying on a user’s identity to provide their authority. If an agent has authority that exists independently of a user, we wanted that authority to be independently governed.</p><p>Giving an autonomous agent its own governed identity establishes ownership, makes its access visible, and allows that access to be reviewed throughout the agent’s lifecycle. It also gives us something equally important: an enforceable security boundary outside the agent itself.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/856/1*DjBfgSqY2-79bf95tyyVZw.png" /><figcaption>Identity connects ownership, permissions, actions, and evidence.</figcaption></figure><h3>Keeping authority outside the reasoning layer</h3><p>The identity also gives us an enforceable security boundary outside the agent itself. Agentic systems are non-deterministic. An agent may misunderstand context, encounter malicious instructions, select the wrong tool, or attempt an action we did not anticipate. Specifications, prompts, testing, and runtime monitoring can reduce those risks, but authorization cannot depend on the agent reasoning correctly.</p><p>If an agent only has read access to an application, reasoning should not be able to turn that into write access. If it is not authorized to invoke a particular service, deciding that the service would be useful should not make it available. The identity and access architecture determines what authority is actually available to the agent, independent of what the agent decides it wants to do.</p><p>That boundary becomes particularly important when something goes wrong. If an autonomous agent begins operating outside its expected behavior, containment cannot depend on asking the same reasoning layer to stop. Because the agent has its own governed identity, we can remove application access, revoke roles, allow temporary access to expire, or disable the identity entirely. If an agent has independent authority, we need an independent way to take that authority away.</p><h3>Carrying identity across application boundaries</h3><p>Giving an autonomous agent its own identity solves only part of the problem. That identity also has to be usable when the agent crosses application and tool boundaries. We should not have to fall back to shared API keys, embedded service credentials, or impersonating a human simply because an agent needs to access another system.</p><p>An emerging pattern is what we might think of as agentic SSO: allowing an agent to authenticate to downstream systems using its own governed identity, while carrying the authorization context necessary for those systems to make an appropriate access decision. Technologies such as Cross-App Access (XAA) are beginning to provide mechanisms for doing this across application boundaries.</p><p>The important distinction is between identity and authority. The agent’s identity tells us which agent is acting. The authorization context tells us what authority it is exercising for that particular action. For an autonomous agent, that authority may belong directly to the agent. For an on-behalf-of interaction, some authority may have been delegated by a user. In either case, the downstream system should be able to understand both rather than collapsing them into a shared credential.</p><p>That becomes even more important as agents invoke other agents. We need to preserve the chain of identity, delegation, and authority across those interactions so we can answer not only which agent acted, but under whose authority, through what delegation, and with what permissions at that moment.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/949/1*nsz_Y1gVelp0B9Q51Sg5rA.png" /></figure><h3>Establishing accountability</h3><p>First-class identity also gives us a clear way to establish accountability for an autonomous agent. When an agent takes an action, we need to be able to answer some basic questions: Which agent performed the action? Who owns it? What was it authorized to do? What access did it have at that moment? What application or tool did it invoke? Did the action remain within the boundaries established for it?</p><p>Those questions become difficult to answer when autonomous activity is hidden behind shared credentials or infrastructure identities. Giving the agent its own identity creates a consistent point of reference across access decisions, logging, monitoring, governance, and auditability. We can establish which agent acted and under what authority, while the surrounding telemetry tells us what happened and whether that behavior aligned with what we intended.</p><p>That level of attribution also helps support regulatory and compliance expectations beginning to form around AI. The EU AI Act establishes traceability and record-keeping requirements for high-risk AI systems, including logging designed to support traceability throughout the system’s lifecycle. In payment environments, the PCI Security Standards Council has been even more direct: its AI Principles guidance recommends that AI systems be deployed so their actions can be logged and monitored, traced back to the system performing the action, and associated with an accountable human. PCI SSC also reinforces that least privilege, access management, and logging requirements continue to apply when AI systems are introduced.</p><p>I think first-class identity gives us a practical foundation for supporting those expectations. It does not satisfy a regulatory or compliance requirement by itself, but it gives us a consistent way to connect an agent to its owner, its assigned authority, its activity, and the controls applied to it throughout its lifecycle. As autonomous activity grows, that chain of accountability becomes increasingly important.</p><h3>An emerging industry pattern</h3><p>The broader identity and AI ecosystem is beginning to move in this direction as well.</p><p><a href="https://learn.microsoft.com/en-us/entra/id-governance/agent-id-governance-overview">Microsoft has introduced identity and access management capabilities specifically for agents</a>, including accountable ownership, access governance, access reviews, time-bound access, and mechanisms to disable an agent identity. Google describes Agent Identity as a first-class principal type distinct from human identities and generic service accounts. OpenAI has publicly described first-class authorization for agents and workloads using scoped and time-bound permissions with attribution.</p><p><a href="https://www.anthropic.com/engineering/how-we-contain-claude#:~:text=doing%20the%20reasoning.-,Looking,-ahead">Anthropic’s work</a> is useful in a slightly different way. In addition to framing the distinction between an independent principal and an agent acting as an extension of a user, its containment work reinforces a principle that matters to me here: we have to consider not only what an agent is instructed to do, but what the surrounding system actually allows it to do.</p><p>The implementations differ, and I expect they will continue to evolve. What I find significant is the underlying direction. As agents become more autonomous, identity and authorization are becoming part of how we establish, govern, constrain, and attribute their authority.</p><h3>Applying what we already know</h3><p>There is a tendency with emerging technology to assume that every control needs to be reinvented. Agentic AI absolutely introduces security challenges that require new thinking, but it also makes many of our existing security fundamentals more important.</p><p>For autonomous agents, identity governance is one of them. We already have mature practices for establishing ownership, assigning access according to purpose, applying least privilege, providing temporary access, reviewing entitlements, maintaining accountability, and managing an identity from creation through retirement. None of those concepts are particularly novel, and that is the point. What has changed is that we are applying them to systems capable of operating with increasing levels of autonomy. Treating autonomous agents as first-class identities allows us to extend those established controls to them while maintaining security boundaries that do not depend on the agent itself.</p><h3>Securing by Design</h3><p>In the first article in this series, I described Securing by Design as continuously evaluating whether a system still operates within the boundaries and expectations defined for it. Managing autonomous agents as first-class identities puts that idea into practice.</p><p>The specification defines the agent’s intended purpose and boundaries. Its identity establishes the authority it has been granted to operate within them. Identity governance gives us a way to evaluate whether that authority remains appropriate as the agent evolves, while authorization gives us a way to enforce those boundaries outside the reasoning layer.</p><p>For me, that is what Securing by Design looks like when applied to identity. Security should not depend on asking an autonomous agent to behave securely. We should design the surrounding architecture so that its authority is explicit, governed, observable, and enforceable throughout its lifecycle.</p><p>Autonomous agents may represent something new in the enterprise, but the questions we need to ask about them are familiar: Who are you? Who owns you? What are you allowed to do? Do you still need that access? And how quickly can we take that authority away?</p><p>Treating autonomous agents as first-class identities gives us a way to answer those questions before we need the answers.</p><h3>About the author</h3><p>Kyle Thomas is Vice President, Global Information Security at WEX, where he leads Security Engineering and Architecture and works across security, technology, product, risk, fraud, and governance to integrate security into how technology is designed, built, and operated. His work focuses on enabling the secure adoption of emerging technologies while making security understandable, actionable, and scalable across the organization. As part of the cross-functional team shaping WEX’s approach to agentic AI, he brings that perspective to how WEX designs, secures, and governs increasingly autonomous systems.</p><p>Copyright © 2026 WEX Inc. All rights reserved.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=02917487cfa0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Securing by Design, Part 2: Agents as First-class Identities]]></title>
            <link>https://medium.com/@wextechblogs/securing-by-design-part-2-agents-as-first-class-identities-b394021796ed?source=rss-d67ed5ce646f------2</link>
            <guid isPermaLink="false">https://medium.com/p/b394021796ed</guid>
            <category><![CDATA[agentic-ai-security]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[ai-security-governance]]></category>
            <dc:creator><![CDATA[WEX Tech Blog]]></dc:creator>
            <pubDate>Thu, 01 Oct 2026 20:16:57 GMT</pubDate>
            <atom:updated>2026-10-21T16:38:38.559Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qQpc3Q0Az-Lc-IfMSrEeRw.jpeg" /></figure><p>Author: <a href="https://www.linkedin.com/in/krthom/">Kyle Thomas</a>, VP of Global Information Security at WEX</p><p>As organizations move from experimenting with agentic AI to allowing agents to perform meaningful work, identity becomes a critically important part of the associated security architecture. An agent that can reason, make decisions, access applications, invoke tools, and take action across the enterprise needs more than a way to authenticate. We need to understand where its authority comes from, what it is allowed to do, who is accountable for it, and how that authority is governed over time.</p><p>This is the second article in my Securing by Design series. In the first, I introduced<a href="https://medium.com/@wextechblogs/securing-by-design-spec-driven-development-for-agentic-ai-24e9e01e8d8d"> Spec-Driven Development (SDD)</a> and the idea that security is not a condition we establish once during design. Systems change, capabilities evolve, and new risks emerge. Securing by Design means continuously evaluating whether a system still operates within the boundaries and expectations defined for it.</p><p>Identity is a natural extension of that thinking. At WEX, we made an early decision to treat autonomous agents as first-class identities. These agents can operate independently of a user interaction, access applications and tools as part of their defined mission, and continue working without relying on a user’s identity to provide their authority. If an agent has authority that exists independently of a user, we wanted that authority to be independently governed.</p><p>That does not mean every agent needs its own identity. An on-behalf-of (OBO) agent is intentionally designed using authority delegated from a user and has no independent authority without that user context. I think OBO is a valid identity architecture for that use case.<a href="https://www.anthropic.com/engineering/how-we-contain-claude#:~:text=doing%20the%20reasoning.-,Looking,-ahead"> Anthropic has framed the distinction similarly</a>, asking whether an agent should have its own principal identity or operate as an extension of the user and inherit the user’s permissions. The answer depends on the architecture. My focus here is the other side of that distinction: fully autonomous agents with authority of their own.</p><p><strong>At WEX, we manage those agents as first-class identities.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1jZwXgtdoXMJo6wUzgLB2A.png" /><figcaption>The specification defines intended behavior; identity and access determine actual authority.</figcaption></figure><h3><strong>Applying the fundamentals</strong></h3><p>Treating autonomous agents as first-class identities does not mean inventing an entirely new identity model. In many ways, we are applying security practices we already know to systems that can now operate with a greater degree of independence.</p><p>At WEX, every autonomous agent identity has documented ownership. Access to applications is assigned directly to the agent and scoped to the role-based access control (RBAC) and principle of least privilege necessary for its intended purpose. Where technically possible, we use just-in-time (JIT) access rather than leaving permissions persistently available. Agent identities are also included in our User Access Review (UAR) processes, like other first-class identities.</p><p>The question behind that review is familiar: <strong>Does this identity still need this access to perform its intended function?</strong> The fact that the identity belongs to an agent does not change the importance of that question. Ownership is equally important. Someone needs to be accountable for the agent, understand why it requires access, and periodically attest that the access remains appropriate. An autonomous agent may be non-human, but accountability for its operation remains fundamentally aligned with human ownership.</p><p>This is one of the things I find interesting about agentic security. Agentic AI introduces risks that require new thinking, but not every problem requires a new security model. We already know how to establish ownership, apply least privilege, govern access, review entitlements, and manage identity lifecycles. The challenge is making sure we apply those fundamentals to autonomous agents with the same discipline.</p><h3>Connecting identity to intent</h3><p>This is where I see a direct connection between first-class identity and Spec-Driven Development. In our approach to SDD, the specification defines what an agent is intended to accomplish, the systems and tools it needs, the boundaries within which it must operate, and the conditions under which it must stop or request human intervention. The identity and access assigned to the agent should reflect that intent.</p><p><strong>The specification defines what the agent should be able to do. Its identity determines what it can do.</strong> Consider the pull-request review agent from my first article. If its specification says the agent can review source code but cannot merge changes into a protected branch, its access should reflect that boundary. If the specification says it can retrieve information from a system but cannot modify it, the permissions assigned to the identity should enforce that requirement. The agent should not simply be instructed not to perform those actions. Where possible, the surrounding architecture should make those actions unavailable.</p><p>The specification also gives us context for applying least privilege. Instead of looking at an agent’s access in isolation, we can evaluate it against the purpose the agent was designed to serve. Does it need access to this application to perform its mission? Does it need write access, or only read? Does it need persistent access, or can that access be provided just in time?</p><p>That gives us a connection between intended behavior and actual authority. The specification is not granting access, and the identity is not defining the agent’s mission. Each has a different role, but they should tell a consistent story about what the agent is expected and permitted to do.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/937/1*HHlJFr3Ko9tH5yMtUiwN2g.png" /></figure><h3>Securing the identity lifecycle</h3><p>That alignment has to be maintained as the agent evolves. New tools are added, business requirements change, and capabilities expand. An agent that was appropriately permissioned when it was created may not have the appropriate permissions six months later. Access that was once necessary may no longer be needed, while a new capability may introduce a legitimate need for access that did not previously exist.</p><p>This is where identity governance becomes part of Securing by Design. We establish ownership when the identity is created, scope access when it is provisioned, and use UAR to periodically validate whether that access remains appropriate. Changes to the agent’s mission, tools, or capabilities give us additional points at which to reevaluate its authority. When the agent is retired, its identity and access are retired with it.</p><p>I also think changes in access can serve as useful signals about changes in the agent itself. If an owner repeatedly approves new permissions, extends temporary access, or adds systems that were not part of the original design, that may indicate the agent’s mission has evolved beyond its specification. In that situation, the response should not be limited to approving another entitlement. We should revisit the specification, confirm the agent’s intended purpose, and determine whether its identity and control boundaries still reflect that purpose. In this way, identity governance becomes more than a periodic review of access; it becomes another mechanism for detecting when the agent and its intended design have begun to drift apart.</p><p>The specification gives us the intended state. The identity represents the authority we have actually granted. Securing by Design means continuously validating that the two remain aligned.</p><p>I think this is an important distinction in how we approach least privilege. Least privilege is not achieved simply because an agent had the correct permissions on the day it was deployed. It has to remain true as the agent and the environment around it change. Treating autonomous agents as first-class identities gives us a practical way to connect intent to authority and govern that authority over time. It does not, however, solve every part of the problem. Identity also has to provide an enforceable boundary outside the agent’s reasoning layer and remain usable as the agent crosses application and tool boundaries. That is the focus of the next article; <a href="https://medium.com/@wextechblogs/securing-by-design-part-3-from-agent-identity-to-enforceable-authority-02917487cfa0">check it out here</a>.</p><h3>About the author</h3><p>Kyle Thomas is Vice President, Global Information Security at WEX, where he leads Security Engineering and Architecture and works across security, technology, product, risk, fraud, and governance to integrate security into how technology is designed, built, and operated. His work focuses on enabling the secure adoption of emerging technologies while making security understandable, actionable, and scalable across the organization. As part of the cross-functional team shaping WEX’s approach to agentic AI, he brings that perspective to how WEX designs, secures, and governs increasingly autonomous systems.</p><p>Copyright © 2026 WEX Inc. All rights reserved.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b394021796ed" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From hackathon spark to production reality: building an agentic API assistant]]></title>
            <link>https://blog.stackademic.com/from-hackathon-spark-to-production-reality-building-an-agentic-api-assistant-5ff88f357673?source=rss-d67ed5ce646f------2</link>
            <guid isPermaLink="false">https://medium.com/p/5ff88f357673</guid>
            <category><![CDATA[langgraph]]></category>
            <category><![CDATA[odata]]></category>
            <category><![CDATA[agentic-ai]]></category>
            <category><![CDATA[api]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[WEX Tech Blog]]></dc:creator>
            <pubDate>Sat, 05 Sep 2026 13:31:37 GMT</pubDate>
            <atom:updated>2026-09-08T18:23:17.161Z</atom:updated>
            <content:encoded><![CDATA[<h3>Authors</h3><p><strong>The WEX Mobility APIs Team:</strong> <a href="https://www.linkedin.com/in/rafikbennacer/">Rafik Bennacer</a>, <a href="https://www.linkedin.com/in/ruihang-liu/">Ruihang Liu</a>, <a href="https://www.linkedin.com/in/brockmatt/">Matthew Brock</a>, and Jana Venkataramanan</p><h3>The TL;DR</h3><p>Integrating complex mobility (vehicle fleet management) services shouldn’t require a stack of static documentation and a mountain of manual validation. Our Mobility APIs team recently set out to change how external partners and developers onboard, interact with, and learn about our tools.</p><p>What started as an internal hackathon experiment is now an agentic API AI Assistant, live in beta inside our <a href="https://fleetapi.wexinc.com/fleet-management/fleet-management-api-beta/overview">developer portal</a>. It replaces rigid, language-specific static documentation and passive search indexers with a conversational interface that reasons through complex workflows, generates code in any language, and safely executes non-mutating data queries in real time.</p><h3>The problem: static documentation</h3><p>Mobility applications operate in a highly sophisticated data environment — managing a constant stream of real-time data around driver activities, fueling stations, transactions, and vehicle telemetry. Developers integrating with our systems have historically faced a steep learning curve, requiring deep familiarity with advanced REST APIs, intricate filter geometries, domains, and complex multi-step workflows. This complexity made it harder for developers at our partner and customer organizations to grow with us, build with us, and ultimately to see WEX as a place that made their job easier.</p><p>Previously, developers relied on static, off-the-shelf documentation platforms to parse endpoints and utility tools to manually test their calls. To clarify workflows, our team maintained static “recipes” — discrete sequences of stitched-together API calls showing how to accomplish multi-step workflows (such as creating an account, onboarding a driver, and assigning a card).</p><p>This static approach got the job done, but we knew we could do better for customers and developers by moving past:</p><ul><li><strong>Language lock-in.</strong> Documenting workflows across languages and clients (cURL, Python, .NET, Java, Go) required constant manual upkeep from technical writers and software engineers.</li><li><strong>Rigid edge cases.</strong> Writing documentation for every potential workflow permutation is logistically impossible. Static recipes frequently fell short of a partner’s exact structural edge case.</li><li><strong>Maintenance overhead.</strong> The minute an underlying API schema changed, the static documentation became obsolete — amplifying onboarding times and driving up engineering support load.</li></ul><h3>From hackathon to two-mode architecture</h3><p>During a December 2025 internal hackathon, we built a proof-of-concept centered on one question: <em>Why make developers translate documentation into code when an AI can dynamically reason through the developer’s intent in real time?</em></p><p>Our solution is an intelligent, agentic API AI Assistant integrated directly into our developer ecosystem. Unlike a search box that surfaces documentation, the assistant acts as an active, always-on integration consultant.</p><p>To deliver maximum developer value while maintaining tight operational security, we decoupled the assistant into two fundamental processing paths:</p><ul><li><strong>API Advisor Mode.</strong> Single-turn technical explainers, documentation deep-dives, and code generation across any target framework — including mutating actions like POST, PUT, and DELETE. This mode generates code but does not execute, supporting the developer while ensuring human-in-the-loop quality control.</li><li><strong>Plan-Execute Mode.</strong> Complex, multi-step read requests executed directly against our Mobility infrastructure using read-only Model Context Protocol (MCP) tool configurations.</li></ul><h3>What it looks like in practice</h3><p>Before we dive into the architecture, let’s explore a few examples of what a partner actually sees.</p><p><strong>API Advisor Mode — <em>“Give me the Python snippet to create a driver”</em></strong> The assistant returns a requests call with the correct endpoint, headers, body schema, and a note on which scopes the caller needs. Nothing hits the Mobility APIs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/841/1*PhPc4lOxKJ85MgSk8gxnLw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*4wtP1crwSEKBFXBQrS-O7Q.png" /></figure><p><strong>Plan-Execute Mode — <em>“Show me 5 drivers with first name John.”</em></strong> The Planner turns this somewhat complex API call with multiple filters into a single Task: fetch drivers filtered by first name. The Executor picks the appropriate MCP tool, generates the <a href="http://odata.org/">OData</a> arguments ($filter=first_name eq ‘John’, $top=5), runs the GET against Mobility API (read-only), and stores the response in the Artifact Store. The LLM sees a lightweight summary — artifact_id=drv_1a2b, count=5, preview=[…] — and the Synthesizer returns a clean, human-readable list of the five matching drivers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zGmsHWANWzYcwcCprerrCQ.png" /></figure><h3>Under the hood: a cyclical, multi-agent architecture</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*v2mo5m6s2Ew-NnMFPwuuCQ.png" /></figure><p>The assistant is built around a cyclic state machine using LangGraph, where specialized agents — a planner, executors, validators, and a synthesizer — loop together to plan, execute, and validate each step, sharing state and memory until the task is complete.</p><h3>1. Read-only “safety first” proxy architecture</h3><p>Security is foundational to our design. To protect the core state, the assistant cannot execute mutating calls directly inside its runtime environment. If a user says <em>“Create a new card for driver X,”</em> the router directs the request to the API Advisor node, which returns a structured code snippet that the developer can copy, audit, and run locally. True runtime actions are strictly gated to read-only GET transactions — mutating tools exist in the MCP server code but are filtered out before they are ever exposed to the LLM.</p><h3>2. Multi-agent orchestration via LangGraph</h3><p>Our engine handles reasoning and execution on separate layers. We use the Supervisor Pattern — a single coordinator that decides which specialist runs next — to control state across a unified global loop:</p><ul><li><strong>ModeRouter.</strong> Classifies intent and routes each message to either API Advisor or Plan-Execute.</li><li><strong>Planner.</strong> Decomposes complex user requests into discrete, trackable Task checklists mapped against target parameters.</li><li><strong>Executor.</strong> Selects the appropriate MCP tool for each Task, dynamically assembles argument payloads (including OData filters), and loops with the tool layer until the Task completes or retries are exhausted.</li><li><strong>Synthesizer.</strong> Aggregates the results of all Tasks — successful data pulls <em>and</em> fallback code snippets — into a single, coherent response.</li></ul><h3>3. The self-healing OData compiler loop</h3><p>One of the largest hurdles with LLMs is their tendency to hallucinate query options or introduce syntax malformations when confronting structured filter standards like OData. We use OData for filtering and search because it gives callers flexible, partial-match queries across complex mobility objects — without us hand-coding every permutation. But that flexibility comes with a cost: LLMs frequently hallucinate invalid options or malform the syntax. To mitigate this, we built a multi-layered self-healing loop.</p><p>If a pre-flight parser check catches a syntax bug, or if an in-flight execution raises an API error code, the graph catches the event, bumps a per-task retry counter, and passes the precise system error directly back into the LLM context. The Executor reads its own past failure and immediately re-generates a corrected call. If retries are exhausted, the task cleanly falls back to API Advisor Mode so the user still gets value.</p><h3>4. Split-state memory (artifacts)</h3><p>Passing a large JSON payload (for example, thousands of unique asset nodes) directly back into the LLM conversation context quickly exhausts token thresholds, degrades reasoning accuracy, and drives up cost.</p><p>We implemented a Split-State Memory architecture. Raw API responses are retained inside an isolated backend artifact store. The LLM is only exposed to brief, lightweight summary metadata referencing unique artifact IDs. Follow-up requests drill down into specific items by looking up IDs within our persistent application layer, keeping the model’s context clean and focused.</p><h3>Quantifying correctness as a team</h3><p>To ship prompt or model changes without regressions, we built an automated benchmarking pipeline that leverages the <strong>LLM-as-a-Judge</strong> pattern. It answers the one question every prompt adjustment needs to answer: <em>did this change make things better or worse?</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rdjqnqaPbOx8ZUSx5vZLvg.png" /></figure><p>The dataset is a hand-curated set of test cases spanning four categories — code_generation, factual_knowledge, reasoning, and safety — where each case carries not just a question but an explicit grading rubric, so the judge grades the <em>substance</em> of the response rather than matching a fragile expected string. The judge is always a <em>different</em> model than the one under test, grading on a 3-point scale (<strong>10 = correct, 5 = partial, 0 = wrong</strong>). Every run appends a row to history.csv tagged with git commit, model, judge model, OpenAPI hash, dataset hash, and prompt version — so every score is traceable back to the exact code, spec, and prompt that produced it.</p><p>Averaged across runs, the assistant lands around <strong>9.4/10</strong> on the curated rubric — a reliable baseline we hold the line on before any prompt or model change ships.</p><p>Accuracy is only one axis. We also track response latency and token usage on every run — latency to keep the experience snappy, and tokens because they translate directly to LLM cost. The goal is to maximize correctness while minimizing both latency and spend; any prompt or model change that regresses one of these metrics gets flagged before it ships.</p><h3>Guarding cost and capacity</h3><p>An always-on AI assistant hitting a production API needs guardrails that protect both our LLM budget and the upstream services. We approach this in three layers:</p><ul><li><strong>Per-user quotas.</strong> Demo accounts are capped at 10 messages per day. Curious partners can test without unbounded LLM spend, and the cap guides upgrading to a Partner account when they’re ready for real work.</li><li><strong>Scoped, attributable calls.</strong> Partner traffic runs under the partner’s <em>own</em> credentials, so every call counts against their own quota and shows up in their own audit trail. The assistant never masquerades as a shared service account — which is precisely what makes usage attribution and abuse detection traceable.</li><li><strong>Failure-aware retries.</strong> When API requests fail — including transient throttle responses — the self-healing loop feeds the error back into the LLM context, increments the retry counter, and re-plans up to max_retries. Exhausted retries fall back to the API Advisor so the user always gets something actionable.</li></ul><h3>The authentication hurdle: making access simple</h3><p>Developing the assistant was only half the challenge; ensuring secure, seamless access was equally critical.</p><p>Historically, our Mobility APIs relied on standard client credentials, necessitating a manual provisioning process for every new customer. For an AI-driven assistant intended for external partners, a workflow requiring users to “submit a request and wait for engineering approval” was not viable. Furthermore, requiring developers to manually input tokens into the chat was inefficient and prevented us from accurately distinguishing assistant-generated API calls from manual requests, thereby complicating usage attribution and security monitoring.</p><p>We needed an authentication strategy capable of supporting two distinct user journeys: partners seeking a low-friction experimentation environment, and those ready to integrate with live data — all while eliminating the need for manual, one-off setup tickets.</p><h3>A two-tier, self-serve access model</h3><p>We built a two-tier access model behind our standard developer login:</p><ul><li><strong>Demo mode</strong> is the default. New users can interact with the assistant against synthetic data immediately — no provisioning, no wait, no ticket.</li><li><strong>Partner mode</strong> unlocks when a developer is ready for live integration. Credentials are issued through a one-time, self-serve authorization flow tied to the developer’s own account and permissions. Once connected, every request is scoped to their identity and fully attributable — we know who is calling and through what path.</li></ul><p>This removed our biggest onboarding bottleneck. The path from <em>“I’m curious”</em> to <em>“I’m actively integrating”</em> no longer runs through an engineering queue or a support ticket.</p><h3>Where we’re headed next</h3><p>What began as an internal discovery experiment is now an active beta driving integration times down for corporate developer spaces. The application is live in our developer web portal and has successfully onboarded its first wave of beta partners.</p><p>Because our foundational orchestrator reads from standardized OpenAPI schemas, the entire assistant architecture is built for horizontal scaling. While our current focus remains anchored on deep validation inside the Mobility ecosystem, the core routing engine is deliberately generic. In upcoming cycles, we plan to:</p><ul><li>Partner across additional divisions, bringing this same conversational layer to our Corporate Payments and Benefits development platforms.</li><li>Expand richer, deterministic OData validation so more queries are caught before they ever leave the Assistant.</li><li>Explore human-in-the-loop confirmation flows for write operations, so the assistant can safely help with mutating workflows too.</li></ul><p>This work is all about making it easier to interact with and build alongside WEX, and we’re just getting started.</p><p>Copyright ©2026 WEX Inc. All rights reserved.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5ff88f357673" width="1" height="1" alt=""><hr><p><a href="https://blog.stackademic.com/from-hackathon-spark-to-production-reality-building-an-agentic-api-assistant-5ff88f357673">From hackathon spark to production reality: building an agentic API assistant</a> was originally published in <a href="https://blog.stackademic.com/">Stackademic</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Securing by Design: Spec-Driven Development for agentic AI]]></title>
            <link>https://medium.com/@wextechblogs/securing-by-design-spec-driven-development-for-agentic-ai-24e9e01e8d8d?source=rss-d67ed5ce646f------2</link>
            <guid isPermaLink="false">https://medium.com/p/24e9e01e8d8d</guid>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[information-security]]></category>
            <dc:creator><![CDATA[WEX Tech Blog]]></dc:creator>
            <pubDate>Fri, 21 Aug 2026 13:30:47 GMT</pubDate>
            <atom:updated>2026-10-21T16:37:52.853Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*tkCFwyS6JaAByssPAASi-w.png" /></figure><p>Author: <a href="https://www.linkedin.com/in/krthom/">Kyle Thomas</a>, VP of Global Information Security at WEX</p><p>Over the past year, agentic AI has evolved from an emerging technology into something organizations are actively implementing for real business use cases. Systems that can reason, plan, and take action across multiple platforms present valuable opportunities, but they also introduce engineering and security challenges that traditional software development practices were never designed to address.</p><p>Before we started building agentic AI at WEX, our infrastructure, security, and product working group wanted to answer a more important question than which model to use or what framework to adopt. We wanted to know how we could build with confidence.</p><p>For us, confidence meant more than knowing an agent could complete a task. Every agent needed to operate within the security, governance, and compliance requirements of a highly regulated global environment. Its autonomous actions had to remain within clearly defined boundaries, its decisions had to be observable and verifiable, and the surrounding system needed the runtime protections required to maintain trust over time. Those expectations became design requirements, not features to be bolted on later. Those requirements ultimately led us to adopt <strong>Spec-Driven Development (SDD).</strong></p><h3>Starting with the specification</h3><p><strong>Spec-Driven Development</strong> begins by defining what an agent is expected to accomplish, the constraints under which it must operate, the security boundaries it cannot cross, and the criteria used to determine whether it is behaving as intended. Those expectations become the blueprint for the development lifecycle, informing architecture, implementation, prompts, tool integrations, security controls, testing, runtime validation, and governance. By anchoring each stage to the same requirements, <strong>SDD</strong> helps prevent implementation, security, and governance from drifting apart.</p><p>At WEX, every agent begins with a set of specifications that live alongside the code in the project repository. We maintain them as version-controlled Markdown files, reviewed and updated through the same engineering process as the implementation. Each specification addresses a different concern, but together they describe how the system is expected to behave.</p><p>project/</p><p>├── product.md</p><p>├── architecture.md</p><p>├── security.md</p><p>└── testing.md</p><p>Consider an agent that reviews pull requests. Long before implementation begins, someone has to decide whether it can approve code, merge into protected branches, access internal repositories, or remediate vulnerabilities automatically. Someone also has to define when the agent must stop and request human approval. Those expectations deserve a single source of truth rather than being scattered across prompts, documentation, workflow definitions, and security reviews. A simplified security.md might look something like the markdown below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*p3A91b7_SauFHTafKbGsRA.png" /></figure><p>This specification doesn’t replace vulnerability scanners, secret detection, or branch protection rules. Those controls continue performing the validation. The specification defines what must be validated and how the agent is expected to respond when those validations succeed or fail. It also provides an abstraction between specialized security tooling and the people and agents consuming its results, translating those results into clear, actionable expectations without requiring every engineer or AI agent to understand the underlying tools or interpret output designed for security specialists.</p><p>Crucially, the specification is not just documentation or another prompt provided to the model. Prompting an agent to “be secure” is insufficient when dealing with non-deterministic model behavior. Instead, the specification drives deterministic controls around the agent, including API gateway scopes, identity and access policies, network boundaries, and restrictions on the tools the agent can execute. Those controls ensure the agent cannot readily exceed its designated blast radius even when it encounters prompt injection or its reasoning fails.<strong><br> </strong><br>Writing the specification is only the beginning. Once the mission, constraints, security policies, and success criteria have been established, implementation begins. Prompts, workflows, permissions, and tool integrations are derived from the specification. Functional testing, security validation, human review, and runtime monitoring all measure the implementation against the same expectations. Since the specification evolves with the system, every stage of the lifecycle stays aligned.</p><p><strong>Securing by design<br> </strong><br>We made an early decision that security could not become another milestone in the development process. Modern software engineering has done an excellent job of shifting quality and security left, yet many organizations still depend on pull request approvals, deployment gates, or centralized security reviews to interpret policy and decide whether work can move forward. Those checkpoints remain valuable, but they often become bottlenecks because specialized expertise does not scale as quickly as software delivery.</p><p>Our objective was to move validation closer to where the work was happening. Existing security policies often lived in documentation and institutional knowledge that required manual interpretation. <strong>SDD</strong> gives us a way to express those expectations in a form that can be evaluated whenever the agent, its dependencies, its permissions, or the surrounding environment changes. <strong>SDD does not make security easier. It makes security executable.</strong></p><p>As a member of the cross-functional team behind this work and an information security executive at WEX, I’ve come to describe this approach as “<strong>Securing by Design</strong>” rather than “Secure by Design.” Security is not a condition established once during design. Vulnerabilities are disclosed, policies change, business requirements evolve, and agents gain new capabilities. Securing by Design means continuously evaluating whether the system still operates within the boundaries and expectations defined for it. That validation continues across every state of the agent’s lifecycle:</p><ul><li><strong>At build:</strong> CI/CD pipelines validate the agent’s tools, code, prompts, and configuration against the specification.</li><li><strong>At runtime:</strong> Deterministic guardrails enforce machine identity and permission scopes, restrict egress, and prevent unauthorized tool execution.</li><li><strong>In audit:</strong> Execution traces are evaluated against the specification to identify behavioral drift and maintain the provenance needed to support security, audit, and compliance requirements.</li></ul><p>The specification provides continuity across those states. The controls may change, the implementation may evolve, and new risks may emerge, but the expectations against which the system is evaluated remain explicit and versioned.</p><p><strong>Treating inputs as untrusted</strong></p><p>Agentic systems introduce a different kind of trust boundary because the information an agent consumes can influence what it decides to do. Consider the pull-request review agent. It may consume source code, comments, documentation, tickets, dependency metadata, repository content, and responses from other tools. Any of those inputs could contain malicious, misleading, or simply incorrect instructions intended to influence the agent’s reasoning or behavior.</p><p>This is where the specification becomes especially important. We define not only what information an agent can access, but also how that information should be treated and what authority it is allowed to have. Retrieved content, repository content, external information, user-supplied inputs, and tool responses are treated as untrusted unless the specification explicitly establishes otherwise. Just because information is available to the model does not mean it has the authority to change how the system operates.</p><p>The specification can explicitly establish that untrusted content cannot redefine security policy, grant additional permissions, change authorization rules, or override system-level controls. Those requirements then inform the prompts, permissions, tool integrations, validation, and deterministic controls surrounding the agent.</p><p>This is another reason SDD is so important to how we secure agentic systems. It allows us to define the trust boundary before implementation and carry that boundary through development, testing, and runtime enforcement. We have to assume that an agent may encounter content capable of influencing its reasoning or attempting to change its behavior. <strong>The agent may be persuaded by malicious content; the security architecture surrounding it should not be.</strong></p><p><strong>Reinforcing best practice</strong></p><p>There is another benefit we are beginning to see in this model. When agents operate against clearly defined specifications, they can help reinforce practices that are not always applied consistently through human review alone.</p><p>An agent does not experience the same competing priorities or delivery pressures that can influence human review. If the specification says a control must be present or a condition must be met, the agent can consistently validate against that expectation and surface when it is not. That consistency can help reinforce security requirements that might otherwise be overlooked, interpreted differently, or addressed later in the development process.</p><p>Human judgment remains essential, particularly when exceptions or tradeoffs are necessary. The difference is that SDD gives agents a way to hold the line on defined requirements and make those decisions explicit rather than allowing them to happen implicitly. The agent can surface the exception; the appropriate human can decide whether that exception is justified.</p><h3>Democratizing security</h3><p>As we adopted <strong>Spec-Driven Development</strong>, we saw an additional benefit: security has become more accessible across the organization. In practice, we are democratizing it.<em> </em>To me, democratizing security means that every person across the organization becomes a stakeholder in the cybersecurity program and feels empowered to manage risk. That does not mean every engineer becomes a security specialist. It means security should be understandable, actionable, and available at the point where work is happening.</p><p>Specifications change that dynamic. Instead of exposing developers and AI systems to raw findings, logs, and tool-specific output, the specification expresses organizational expectations in a way that can be validated continuously. Developers and AI systems can understand whether an implementation aligns with policy, why it does or does not, and what needs to change without navigating raw logs or individual security consoles.</p><p>We never set out to remove the security team from the process. We wanted to change where they add value. Security teams define policy, improve controls, and strengthen specifications, while developers and AI systems validate against those expectations throughout development.</p><p><em>Security expertise remains centralized, while the ability to apply that expertise scales across the organization.</em></p><h3>A shared foundation</h3><p>As we continue adopting this approach, we are finding that specifications solve more than the original problem of governing agent behavior. They define intent before development begins, guide implementation, inform validation, and continue governing behavior after deployment. That makes them <strong>a</strong> <strong>common language between engineering, security, governance, and AI.</strong></p><p>Engineering designs and builds from them. Security articulates policy and validates controls through them. Governance relies on them to establish accountability. AI agents use them to understand the boundaries within which they are expected to operate. That shared foundation allows us to build agentic AI with confidence, maintain security as systems evolve, and empower people across WEX to become active stakeholders in managing risk.</p><p><em>Check out </em><a href="https://medium.com/@wextechblogs/securing-by-design-part-2-agents-as-first-class-identities-b394021796ed"><em>Securing by Design, Part 2, here</em></a><em>!</em></p><p><strong>About the Author</strong></p><p>Kyle Thomas is Vice President, Global Information Security at WEX, where he leads Security Architecture and Engineering and works across security, technology, product, risk, fraud, and governance to integrate security into how technology is designed, built, and operated. His work focuses on enabling the secure adoption of emerging technologies while making security understandable, actionable, and scalable across the organization. As part of the cross-functional team shaping WEX’s approach to agentic AI, he brings that perspective to how WEX designs, secures, and governs increasingly autonomous systems.</p><p>Copyright ©2026 WEX Inc. All rights reserved.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=24e9e01e8d8d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Harness Lives With the Code: A Practical Pattern for Agent-Assisted Software Delivery]]></title>
            <link>https://blog.stackademic.com/the-harness-lives-with-the-code-a-practical-pattern-for-agent-assisted-software-delivery-081ef945555e?source=rss-d67ed5ce646f------2</link>
            <guid isPermaLink="false">https://medium.com/p/081ef945555e</guid>
            <category><![CDATA[software-architecture]]></category>
            <category><![CDATA[harness-engineering]]></category>
            <category><![CDATA[generative-ai]]></category>
            <category><![CDATA[agent-harness]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[WEX Tech Blog]]></dc:creator>
            <pubDate>Thu, 30 Jul 2026 20:55:56 GMT</pubDate>
            <atom:updated>2026-08-07T06:59:34.542Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DNXm5yFyWUMA0zM25FSKeQ.png" /></figure><p>Author: <a href="https://www.linkedin.com/in/ryanwhitwell/">Ryan Whitwell</a></p><p>Many of us are experimenting with AI coding tools in some form. Some results are useful; some are inconsistent. Some even look impressive at first, then become expensive to review, unwind, or explain. My take is that those differences don’t live solely in the model, the IDE, or the prompt: they come from the system <em>around </em>the agent.</p><p>If we want better agent-assisted software delivery, we probably need to stop treating AI coding tools as magic autocomplete or autonomous engineers, because they’re neither. They are much more useful when we build a disciplined delivery system around them, and that is the pattern I’ve been working with:</p><p><strong>Conversation-led planning + repository-owned harness + bounded agent execution + human-guided learning loop.</strong></p><p>In an enterprise environment, the challenge isn’t just whether an AI tool can produce code. The harder question is whether the work is <em>understandable, reviewable, testable, and aligned</em> with the way the team actually delivers software. That matters because <strong>most meaningful code changes don’t happen in isolation:</strong> they touch architecture, data semantics, operational expectations, security posture, and the shared habits of the team that owns the system.</p><p><strong>The goal isn’t autonomous coding, but rather, repeatable, reviewable, high-feedback software delivery <em>with </em>AI assistance.</strong></p><h3>From Prompting to Harness Engineering</h3><p>Prompting matters, but prompting alone isn’t enough. A prompt can help an agent understand the immediate task. It can clarify tone, constraints, and desired output, but if the prompt is the only source of guidance, the workflow is fragile. The next session may not have the same context. Another developer may prompt differently. A different tool may behave differently, and the agent may infer architectural intent from the codebase in ways that are plausible but wrong.</p><p>A more useful framing is to think about the system we build around the agent. One helpful term for that is <strong>harness engineering</strong>.</p><p>I first came across this framing through <a href="https://martinfowler.com/articles/harness-engineering.html">Birgitta Boeckeler’s recent writing</a> and talks on harness engineering for coding-agent users. Her work gave me a useful vocabulary for something I was already starting to see in practice: <strong>the agent is only part of the system</strong>. The guides, sensors, feedback loops, and human review around the agent are what make the work more repeatable and easier to trust.</p><p><em>I would be careful not to overstate this as a universally settled industry term — I’m using it as a practical lens.</em></p><p>A harness is the set of <strong>guides </strong>and <strong>sensors </strong>that help an agent work inside a real software delivery environment. Guides steer the agent before it acts. Sensors tell us whether the result is good enough.</p><p><strong>Guides can include:</strong></p><ul><li>Markdown instructions</li><li>Architecture notes</li><li>Coding conventions</li><li>Testing guidance</li><li>Examples</li><li>Task templates</li><li>Review checklists</li><li>Repository workflow rules</li></ul><p><strong>Sensors can include:</strong></p><ul><li>Unit tests</li><li>Integration tests</li><li>Build checks</li><li>Linters</li><li>Validation scripts</li><li>CI feedback</li><li>Manual review</li><li>Human judgment</li></ul><p>The point isn’t to download someone else’s harness and blindly use it. A <strong>good harness</strong> reflects the codebase it serves, and it should encode the architecture, quality expectations, delivery constraints, and team norms that already matter.</p><h3>Why the Repository Should Own the Harness</h3><p>The repository should be the durable source of truth, <strong>not </strong>the chat session.</p><p>Chat sessions are useful for exploration, and they’re good places to bring together rough notes, stakeholder context, transcripts, architecture questions, data model details, and implementation trade-offs, but chat history isn’t a durable operating model for a team.</p><p>The repository is different. When the harness lives with the code, it becomes part of the system the team already knows how to manage. It can be versioned, reviewed, and improved deliberately alongside the software itself. It is shared across the team, available to future contributors, and less dependent on any one AI tool or chat session. Most importantly, keeping the harness in the repository makes it more likely to stay aligned with the architecture, practices, and constraints of the system it is meant to support.</p><p>Tool-specific configuration can still be useful. A team may have IDE instructions, coding-agent settings, or model-specific conventions. Those can be helpful, but the durable operating model should live in the repository.</p><p>That distinction matters in a large engineering organization. Teams may use different stacks, IDEs, testing approaches, and delivery constraints, which are all okay. A repository-owned harness gives each team a way to make its own context explicit while still creating a more consistent pattern for responsible agent-assisted work<em>.</em></p><p><strong>The team should own the harness the same way they own build scripts, tests, and architecture decisions.</strong></p><h3>The Pattern: Conversation-Led, Repo-Centered Agentic Delivery</h3><p>The pattern I’ve found useful separates planning from execution.</p><p>At a high level, it looks like this:</p><pre>stakeholder context / idea<br>  -&gt; conversational AI planning<br>  -&gt; repository-ready spec package<br>  -&gt; coding agent reads repo harness<br>  -&gt; bounded task execution<br>  -&gt; validation and review<br>  -&gt; learning-loop improvements</pre><p>The planning surface is a conversational AI tool. That might be ChatGPT, Gemini, Claude, or another approved chat tool, and the purpose of that surface isn’t to “go build it.” The purpose is to clarify the work before implementation begins.</p><p>That planning conversation can help clarify the problem, define the desired outcome, and make the acceptance criteria explicit. It can also surface out-of-scope boundaries, risks, affected areas, and testability concerns before implementation begins. From there, the conversation can help shape a practical implementation approach and establish how the result will be validated.</p><p>The execution surface is the repo-aware coding agent, such as GitHub Copilot in VS Code or Visual Studio. That agent should work from repository-owned guidance, not just the developer’s latest prompt.</p><p>The durable contract is the spec package and harness that live in the repository.</p><p>The review surface is human judgment. Humans still decide whether the plan is right, whether the diff is acceptable, whether the tests are meaningful, and whether the operating model needs to change.</p><p>Planning is <strong>conversational</strong>; execution is <strong>bounded</strong>; learning is <strong>deliberate</strong>.</p><figure><img alt="A description of execution surface, durable contract and review surface regarding Agent-Assisted Software Delivery" src="https://cdn-images-1.medium.com/max/1024/1*XaAOnYmHaTgFga9D4RA4Ug.png" /></figure><h3>What Goes Into a Repository-Owned Harness</h3><p>There is no single mandatory structure because the structure should fit the repository and the team.</p><p>A simple starting point might look like this:</p><pre>AGENTS.md<br><br>/agent<br>  workflow.md<br>  tdd-workflow.md<br>  task-template.md<br>  review-checklist.md<br><br>/docs<br>  /architecture<br>    system-overview.md<br>    application-map.md<br>    local-development.md<br>    test-strategy.md<br><br>  /specs<br>    /features<br>    /refactorings<br><br>  /decisions</pre><p>The important part isn’t the exact folder names but more so that the repository gives the agent enough durable context to work responsibly.</p><p><strong>AGENTS.md</strong> can act as the agent contract. It tells the agent how to behave in this repository, what to read first, how to approach changes, and when to stop.</p><p><strong>/agent</strong> can hold workflow guidance. This is where task templates, TDD expectations, review checklists, and stop conditions can live.</p><p><strong>/docs/architecture</strong> can explain how the system is shaped. This does not need to be exhaustive. Even a short system overview, application map, local development guide, and test strategy can reduce a lot of guesswork.</p><p><strong>/docs/specs</strong> can hold durable change intent. These are not meant to become heavy ceremonies. They are a way to make the planning conversation stable enough for implementation.</p><p><strong>/docs/decisions</strong> can capture important decisions that should not be rediscovered repeatedly.</p><p>The harness does not need to be large to be useful. In many cases, a small amount of high-quality guidance is better than a large folder of generic instructions.</p><h3>A Minimum Viable Harness</h3><p><em>A team doesn’t need to build a complete harness before trying this pattern.</em></p><p>A lightweight first experiment might include only three artifacts:</p><pre>AGENTS.md<br>docs/architecture/system-overview.md<br>docs/specs/features/&lt;small-change&gt;/spec.md</pre><p>A starter AGENTS.md might look something like this:</p><pre># Agent Instructions<br><br>Before making changes:<br><br>1. Read this file.<br>2. Read the relevant spec under /docs/specs.<br>3. Read any referenced architecture or test strategy notes.<br>4. Identify the smallest safe task.<br>5. Prefer a failing test first when practical.<br>6. Don&#39;t change unrelated behavior.<br>7. Run the validation command before reporting completion.<br>8. If repository guidance is missing or unclear, record an improvement observation instead of rewriting the guidance.<br><br>Stop and ask for human review when:<br><br>- The requested change conflicts with existing architecture guidance.<br>- The task requires a broader refactoring than the spec describes.<br>- The expected validation path is unclear.<br>- The implementation would require changing repository-wide operating rules.</pre><p>That isn’t a complete system; it’s just enough structure to make the next task more bounded, reviewable, and learnable.</p><p>Again, the goal is to start where the cost of learning is low. Pick one repo, one low-risk change, and one validation signal. Then improve the harness based on what the work teaches you.</p><h3>Specs as the Handoff Between Planning and Implementation</h3><p>A planning conversation shouldn’t end with “go build it.”</p><p>It should end with a repository-ready spec package.</p><p>That package might include:</p><ul><li>Problem statement</li><li>Desired outcome</li><li>Acceptance criteria</li><li>Non-functional requirements</li><li>Affected areas</li><li>Testability notes</li><li>Out-of-scope boundaries</li><li>Implementation tasks</li><li>Validation plan</li><li>Decision log</li></ul><p>Specs are not big design up front. They are a way to make intent <em>durable enough for implementation</em>.</p><p>For example, a small behavioral requirement might look like this:</p><pre>Given an archived work item exists in the source system<br>When the delivery summary is calculated for the selected period<br>Then the archived work item is excluded from the completed count<br>And the result can be verified by an automated test</pre><p>That isn’t a giant design document. It’s a compact statement of expected behavior, and it gives the coding agent a target. It gives the human reviewer something to inspect against, and it gives future maintainers a record of why the change exists.</p><p>The spec becomes the handoff between a messy human planning conversation and a bounded implementation task.</p><h3>Bounded Tasks and Small Steps</h3><p>Agentic work is easier to steer when the task is small.</p><p>A vague task invites broad inference whereas a bounded task creates a tighter feedback loop.</p><p>A good agent task should include:</p><ul><li>A clear goal</li><li>Explicit scope</li><li>Explicit out-of-scope boundaries</li><li>Required reading</li><li>The expected first failing test, where practical</li><li>The validation command</li><li>Stop conditions</li></ul><p>For example, this isn’t a good task:</p><pre>Implement the dashboard.</pre><p>It is too broad. It asks the agent to infer product behavior, data semantics, visual design, architecture, and testing strategy all at once.</p><p>A better task would be:</p><pre>Read AGENTS.md and the delivery-summary spec.<br><br>Add a failing test proving the delivery summary excludes archived work items.<br><br>Then implement the smallest query change needed to make the test pass.<br><br>Don&#39;t change unrelated dashboard layout, labels, or filtering behavior.<br><br>Run the focused test suite and stop after reporting the result.</pre><p>That task is smaller, more inspectable, and easier to reverse if needed. It also makes the agent’s work easier to evaluate and is reasonably scoped to a single commit in the repository.</p><h3>TDD and Validation as Sensors</h3><p>TDD isn’t just a testing practice in this workflow; It’s a control mechanism for agentic work.</p><p>The red, green, refactor loop gives fast feedback and limits speculative changes. It helps separate expected behavior from implementation detail and also gives the agent a concrete signal to optimize against.</p><p>Now, that doesn’t mean every task needs a perfect test-first workflow as some work may require exploration. Some behavior may be difficult to automate at first, and some UI changes still need human validation.</p><ul><li>The practical question isn’t “Did we maximize code coverage?” The question is “Do we have a <strong>stable </strong>enough <strong>quality signal</strong> to trust this change?”</li></ul><p>The goal isn’t code coverage for its own sake. The goal is a stable quality signal that helps humans and agents make better decisions.</p><h3>The Learning Loop: Improving the Harness Over Time</h3><p>The harness should not be static. As agents work in a repository, they will expose gaps in the operating model, and that is a useful signal.</p><p>For example, an agent may repeatedly stop because it cannot determine which validation command proves a change is safe. That is not just friction in the current task. It may indicate that the repository’s test strategy or workflow guidance is incomplete.</p><p>In another case, the agent may need repeated human clarification about a data-semantic rule or architectural boundary. Rather than solving that ambiguity in the prompt each time, the team can treat the pattern as evidence that the repository is missing durable context. The right response is not for the agent to rewrite the operating model on its own, but to surface the gap so the team can decide whether the harness should be improved.</p><p>The wrong response is to let the agent silently rewrite repo-wide guidance during feature work. That makes the <em>operating model drift</em> without review.</p><p>A better pattern is:</p><pre>agent observes a guidance gap<br>  -&gt; records an improvement observation<br>  -&gt; human reviews the pattern<br>  -&gt; human creates a repository operating system upgrade spec<br>  -&gt; agent implements the bounded upgrade</pre><p>Agents should not silently change the operating model. They should surface improvement opportunities for humans to review.</p><p>This creates a human-guided improvement flywheel. Better guidance leads to better agent output. Better output and review generate better learning. That learning can then improve the harness.</p><p>The goal isn’t autonomous self-modification. The goal is disciplined <strong>continuous improvement</strong>.</p><figure><img alt="A connected circle of human-guided improvement, starting with guidance and ending with harness improvement." src="https://cdn-images-1.medium.com/max/1024/1*vAC11uEUww-g6Y5bQDAlMQ.png" /></figure><h3>How to Start Small</h3><p>A team does not need a complete harness to begin. The goal is to start with one repository, one small task, and just enough structure to make the work bounded, reviewable, and learnable.</p><figure><img alt="A table of things to do and things to avoid when engaging in utilizing a harness for AI-Assisted Software Delivery." src="https://cdn-images-1.medium.com/max/699/1*xP-NLZa-bLlVyLIuyFIxXw.png" /></figure><p>The point is to let the harness grow out of real work, real review, and real gaps. That approach is usually more useful than trying to design a complete system before you have learned anything from using it.</p><p>Most of the anti-patterns above come from the same mistake: they treat the agent as the system. The agent is not the system. The delivery system is the combination of human intent, repository guidance, bounded execution, validation feedback, and review.</p><h3>Conclusion</h3><p>Remember, the value isn’t that an agent can write code. The value is that we can build a delivery system where humans clarify intent, the repository carries the operating model, agents execute bounded work, and the whole system improves through feedback.</p><p>That’s the practical opportunity I see.</p><p>The repository should become the durable source of truth for how agent-assisted work happens in that codebase, and the harness should live with the code. The team should own it, review it, and improve it over time. We don’t need to overstate the pattern. We don’t need to treat it as finished. We can start small.</p><p>One repo. One guide. One sensor. One bounded task.</p><p>That’s enough to begin learning.</p><p>Copyright ©2026 WEX Inc. All rights reserved. The information in this document is subject to change without notice.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=081ef945555e" width="1" height="1" alt=""><hr><p><a href="https://blog.stackademic.com/the-harness-lives-with-the-code-a-practical-pattern-for-agent-assisted-software-delivery-081ef945555e">The Harness Lives With the Code: A Practical Pattern for Agent-Assisted Software Delivery</a> was originally published in <a href="https://blog.stackademic.com/">Stackademic</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Leveraging Inner Sourcing to Accelerate Collaboration & Eliminate Redundancies]]></title>
            <link>https://medium.com/@wextechblogs/leveraging-inner-sourcing-to-accelerate-collaboration-eliminate-redundancies-149cfaedb9ec?source=rss-d67ed5ce646f------2</link>
            <guid isPermaLink="false">https://medium.com/p/149cfaedb9ec</guid>
            <category><![CDATA[microservices]]></category>
            <category><![CDATA[innersource]]></category>
            <dc:creator><![CDATA[WEX Tech Blog]]></dc:creator>
            <pubDate>Mon, 27 Jul 2026 13:03:58 GMT</pubDate>
            <atom:updated>2026-07-27T13:03:58.163Z</atom:updated>
            <content:encoded><![CDATA[<p>Author: <a href="https://linkedin.com/in/ramviswanadha">Ram Viswanadha</a></p><p>In the modern fintech landscape, the “plumbing” of microservices — handling connections, retries, and security compliance — can swallow more engineering time than actual business logic. To solve this, WEX is leveraging <strong>Inner Sourcing</strong>: applying open-source best practices (transparency, reusability, and community contribution) within our own company walls.</p><h3>What is Inner Sourcing?</h3><p>Inner sourcing is the practice of taking the best parts of the Open Source world — transparency, reusability, community, and contribution — and applying them internally. Instead of teams building in isolated silos, code is hosted in shared repositories where any developer at WEX can view, use, and contribute to it. This turns a private utility built by one team into a <strong>shared asset</strong> for the entire organization. This gets us away from the trap of customization, redundant builds, and abandonware; we all start to be invested in and benefiting from a collaborative set of resources.</p><h3>The Inner Source Advantage</h3><p>Adopting an open-source model internally acts as a force multiplier by turning private utilities into shared assets.</p><ul><li><strong>Accelerated Development:</strong> By utilizing a developer pool as large as WEX’s entire staff, we cut the “request-to-remedy” cycle for bugs from weeks to hours.</li><li><strong>Standardized Compliance:</strong> Security protocols, such as PII tokenization, are baked into core services, ensuring every adopting team is compliant by default.</li><li><strong>Reduced Redundancy:</strong> Teams no longer build in silos; they consume documented APIs and shared images, ending the cycle of “reinventing the wheel.”</li><li><strong>When to Use:</strong> This approach is ideal for <strong>standardizing infrastructure</strong> (e.g., Kafka access, logging) and <strong>abstracting complexity</strong> in polyglot environments. It is less suited for bespoke logic unique to a single business case.</li></ul><h3>Case Study: MockAuth</h3><p>Our teams at WEX faced significant bottlenecks in the testing lifecycle due to the complexity of integrating with disparate external and internal authorization systems. To address this, one team developed <strong>MockAuth</strong>, an internal service virtualization tool designed to “fake” complex network behaviors. By adopting <strong>inner sourcing</strong> principles, MockAuth evolved from a team-specific utility into a robust, org-wide shared dependency used in <strong>Fraud Detection Gateway (FDG)</strong> for development and testing.</p><h3>The Challenge: The Cost of Integration Testing</h3><p>Integration tests were historically expensive and slow. Teams faced high dependencies on external test environments, data synchronization hurdles, and a lack of tools capable of simulating bespoke protocols like ISO-8583 or TCP-based transactions.</p><h3>The Solution: Specialized Virtualization</h3><p>MockAuth reimagined tools like Mountebank, reimplementing them in Java specifically for the WEX ecosystem.</p><ul><li><strong>Messaging Formats:</strong> Simulates TCP and HTTP connections for ISO 8583, PriorPost, and UAF.</li><li><strong>Security Modules:</strong> Simulates HSM (Hardware Security Module) functions like PIN and chip verification.</li><li><strong>Performance Synergy:</strong> Integrates with Locust for high-stress load tests without incurring third-party API costs.</li></ul><h3>The Impact:</h3><p>By moving to an Inner Source model where the team acts as “Maintainers” and any WEX engineer can be a “Contributor,” MockAuth has:</p><ul><li><strong>Enabled “Shift Left” Testing:</strong> Developers find defects earlier by testing negative scenarios (timeouts/edge cases) locally.</li><li><strong>Stabilized CI Pipelines:</strong> Decoupling from external networks ensured pipelines no longer fail due to flaky third-party systems.</li></ul><p>Our engineering teams that focus on “risk” are incredibly excited to be early adopters of this capability to further improve stability and defect prevention.</p><h3>Case Study: Kafka Producer Sidecar</h3><p>As WEX transitioned toward an event-driven architecture, teams faced fragmented implementations of Kafka producers, leading to inconsistent error handling and observability gaps.</p><h3>The Challenge: Fragmented Producers</h3><p>Before the Sidecar, persisting data for offline analysis was manual and inconsistent. Multiple teams were writing redundant logic for retries and logging, and updating Kafka libraries required full redeployments of core business applications.</p><h3>The Solution: The Sidecar Pattern</h3><p>The Kafka Producer was designed as a lightweight Java microservice that runs in the same Kubernetes pod as the main application. This architecture offers:</p><ul><li><strong>gRPC Communication:</strong> High-performance, low-overhead communication with strong API contracts.</li><li><strong>Built-in Resilience:</strong> Manages the “heavy lifting” of messaging, including 3-attempt retry cycles and Dead Letter Queues (DLQ).</li><li><strong>Standardized Observability:</strong> Automatic tracing via OpenTelemetry and centralized logging via Splunk.</li></ul><h3>Impact</h3><p>The Credit Adjudication team used this sidecar to capture every request exchanged with third-party providers like Plaid.</p><ul><li><strong>Data flow: </strong>Messaging logic was delegated to the sidecar, moving data seamlessly into Snowflake.</li><li><strong>Data retention:</strong> Data is now preserved for 180 days, providing a massive repository for model training and validation at scale.</li></ul><h3>Trade-off Analysis</h3><p>While the sidecar approach brought immense value, the team documented the trade-offs to help future inner-source adopters:</p><p><strong>Pros</strong></p><ul><li><strong>Decoupling:</strong> Business logic remains clean; Kafka concerns are isolated.</li><li><strong>Simplified Upgrades:</strong> Update Kafka libraries without touching the main app code.</li><li><strong>Global Standards:</strong> Uniform observability across all services.</li></ul><p><strong>Cons</strong></p><ul><li><strong>Resource Overhead:</strong> Each pod requires a second container (CPU/RAM).</li><li><strong>Complexity:</strong> Managing two containers per pod increases operational overhead.</li><li><strong>Latency:</strong> Negligible network hop via inter-container gRPC.</li></ul><p>The Kafka Producer sidecar stands as another major inner-sourced success. It proved that by treating infrastructure components as shared, community-driven products, WEX can reduce engineering toil, standardize critical data pipelines, and accelerate the delivery of data-driven products.</p><h3>Expanding the Approach: To Inner Source or Not to Inner Source</h3><p>Both at WEX and elsewhere, inner sourcing is a strategic choice, not a one-size-fits-all solution. Here’s the quick gut check we’re making at WEX when we’re considering a capability for inner sourcing.</p><p><strong>It is appropriate when:</strong></p><ul><li><strong>Standardizing Infrastructure:</strong> You need a uniform way to handle common tasks like Kafka access or logging across different teams.</li><li><strong>Polyglot Environments:</strong> Your main applications are written in different languages but all require the same high-fidelity infrastructure capabilities.</li><li><strong>Abstracting Complexity:</strong> You want to keep core business logic clean and free of low-level configuration details.</li></ul><p><strong>It is NOT appropriate when:</strong></p><ul><li><strong>Bespoke Logic:</strong> When a solution is highly unique to a single business case and has no potential for reuse elsewhere.</li><li><strong>High Latency Sensitivity:</strong> In rare cases where the minor latency of inter-container communication (localhost) is unacceptable for the specific transaction.</li></ul><h3>Next Steps</h3><p>The next steps for Inner Sourcing at WEX include further build out of the technical foundation and cultivating a cultural shift toward shared ownership. Establishing the technical foundation involves identifying foundational, cross-cutting services and defining clear governance and contribution standards for shared assets. To get the organizational buy-in, we plan to create a community of practice through communication channels and meetups, and empower “Inner Source Champions” to mentor new contributors. The cultural shift will be driven by communicating the value proposition of faster development and higher code quality, and by integrating Inner Sourcing principles and rewards into engineering standards. The more people that are bought in and contributing to our Inner Source catalog, the more we will see exponential impact and acceleration of our productivity.</p><h3>Acknowledgement</h3><p>[1] The Gateways Team</p><p>[2] The Risk Engineering Team</p><p>[3] <a href="/service/mailto:matheus.lima@wexinc.com">Matheus Lima</a> for implementing Kafka Sidecar</p><p>[4] <a href="/service/mailto:alex.charles@wexinc.com">Alex Charles</a> for implementing the MockAuth service</p><p>[5] <a href="/service/mailto:nick.sanft@wexinc.com">Nick Sanft</a>, <a href="/service/mailto:mateus.matos@wexinc.com">Mateus de Matos (he | him)</a> for their collaboration</p><p>Copyright ©2026 WEX Inc. All rights reserved. The information in this document is subject to change without notice.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=149cfaedb9ec" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Modernizing the WEX Partner Journey: Beyond SOAP and Manual Docs]]></title>
            <link>https://medium.com/@wextechblogs/modernizing-the-wex-partner-journey-beyond-soap-and-manual-docs-ebaccf2be9be?source=rss-d67ed5ce646f------2</link>
            <guid isPermaLink="false">https://medium.com/p/ebaccf2be9be</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[developer-portal]]></category>
            <category><![CDATA[webhooks]]></category>
            <category><![CDATA[rest-api]]></category>
            <dc:creator><![CDATA[WEX Tech Blog]]></dc:creator>
            <pubDate>Fri, 17 Jul 2026 18:18:35 GMT</pubDate>
            <atom:updated>2026-07-17T18:18:35.244Z</atom:updated>
            <content:encoded><![CDATA[<p>Author: <a href="http://linkedin.com/in/scpepper">Scott Pepper</a>, WEX Health &amp; Benefits Product Manager</p><h3>The Complexity of the Status Quo</h3><p>In healthcare fintech, complexity isn’t just a challenge — it is the primary barrier to getting code into production. For years, the industry relied on robust but rigid legacy architectures. At WEX, we recognize that while these systems provided the stability needed for massive scale, they often created a labor-intensive environment for the modern partner developer.</p><p>Consider the day-to-day experience of a developer just a few years ago: to retrieve simple plan data, they had to construct heavy SOAP envelopes, manage complex XML parsing, and navigate deep WSDL files. This wasn’t just a technical requirement — it was an anchor on innovation that slowed time-to-value. We built the <a href="https://developers.wexhealth.com/">WEX Developer Center</a> to bridge this gap, prioritizing <strong>clear documentation, predictable endpoints, </strong>and a<strong> fast time-to-first-call.</strong></p><h3>The Shift: Modernized REST Architecture</h3><p>While we continue to support the <strong>SOAP WS </strong>model for long-term stability, our shift to a modernized REST architecture represents a fundamental change in how we partner with your technical teams. SOAP is inherently contract-driven and structured, which suits specific banking protocols but becomes cumbersome for agile, lightweight applications like mobile-first portals or automated CI/CD workflows.</p><p>By moving toward a JSON-based, stateless communication model, we are redefining the technical contract between our platform and your code. JSON’s lower verbosity compared to XML means your applications benefit from faster parsing and reduced payload sizes — critical for the responsive interfaces your users expect. This shift also removes the language barrier.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AByk04P_W-ur89UWUHC9Yg.png" /></figure><p>Whether your stack is built on <strong>Python, Go, Node.js, .NET, or Java</strong>, REST serves as the universal standard, allowing your team to work in the environment they know best. Perhaps most importantly, we’ve moved away from static definitions. Developers can now explore the WEX Developer Center to <strong>test endpoints live</strong>, discovering functionality in real-time without the need to download and parse massive definition files first.</p><p>As of this writing, our API suite includes more than <strong>two dozen</strong> <strong>endpoints</strong> centered on identity management and bank account information. While this represents our foundational phase, we are rapidly expanding the platform to surpass our previous partner offerings and automate workflows that were once manual or labor-intensive.</p><h3>The Developer Suite: Autonomy and Safety</h3><p>A developer’s journey is iterative. To support that, we’ve built the <strong>Developer Center</strong> as a sandbox for high-velocity experimentation.</p><h4>The Risk-Free Sandbox</h4><p>Fintech integrations often carry the realistic fear of breaking things. Our Sandbox environment mirrors production logic, allowing you to test how our APIs handle edge cases or specific consumer data structures with <strong>zero risk</strong> to actual accounts. It is a space designed for rapid technical validation, allowing you to identify integration errors or schema mismatches in minutes rather than during a production rollout.</p><h4>Security via OAuth</h4><p>Security shouldn’t be a hurdle in the integration process; it should be a foundational constant. We utilize <strong>OAuth 2.0</strong> Client Credentials grant type for all modernized endpoints, ensuring secure, scoped connections. By coordinating with your Partner Account Executive (PAE) for client credentials, you ensure every request is authenticated via industry-standard protocols, keeping consumer data protected without adding unnecessary friction to the handshake.</p><h4>Distilling Documentation with AI</h4><p>Navigating hundreds of pages of documentation often results in information overload for developers. To help you identify the specific endpoints and parameters your project requires, we have integrated an AI assistant grounded in <a href="https://swagger.io/specification/">OpenAPI specifications</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BMVhBqC_v4EQYHdJx9e2cA.png" /></figure><p>If you need to retrieve plan years for a specific consumer, you no longer need to hunt for the exact endpoint requirements. You can ask the assistant, and it will generate a context-aware code snippet for your review. This isn’t about the AI writing your app; it’s about removing the manual labor of documentation lookup so you can focus on high-level logic and solving your users’ problems.</p><h3>Roadmap: Webhooks and Beyond</h3><p>The <strong>WEX Developer Center</strong> is a growing ecosystem. Our roadmap prioritizes <strong>architectural scalability</strong>, helping to ensure our infrastructure remains performant as your request volume increases.</p><p>We are currently moving away from the inefficiency of constant polling. Our upcoming <strong>Webhooks</strong> release will allow the WEX platform to push real-time updates directly to your listeners. This transforms the partner experience from one of constant checking to one of immediate response, enabling much more dynamic consumer applications.</p><p>Looking further ahead, we are preparing for a future where systems are even <em>more</em> interconnected. Later this year, we will launch <strong>MCP (Model Context Protocol) servers</strong>. This will facilitate deeper, automated connections between our core systems and your own AI Agents.</p><h3>The Human Connection</h3><p>Technologists often talk about self-service as if it means doing it alone — we believe the opposite. By providing you with the tools to handle the <em>how </em>of integration via the Sandbox and AI, our support teams are freed up to help you with the <em>why </em>and the <em>what’s next</em>.</p><p>This synergy benefits both sides: you get to develop at your own pace, and we get to partner with you on high-value strategic growth rather than troubleshooting basic connections. Whether you are looking to build an internal chatbot to help your support staff or a brand-new consumer application, the <strong>WEX Developer Center</strong> is your starting point.</p><p>Explore our <a href="https://developers.wexhealth.com/">documentation</a> if you want to begin building the next generation of health tech.</p><p><em>Ready to see how these tools fit into our larger ecosystem? Take a look at the official </em><a href="https://www.wexinc.com/resources/blog/wex-launches-new-developer-center/"><em>WEX Newsroom post</em></a><em> regarding the Developer Center launch.</em></p><p>Copyright ©2026 WEX®, Inc. All rights reserved. The information in this document is subject to change without notice.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ebaccf2be9be" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Efficiency Trap: Rethinking Connection Pooling for WEX’s Fraud Detection Gateway]]></title>
            <link>https://blog.stackademic.com/the-efficiency-trap-rethinking-connection-pooling-for-wexs-fraud-detection-gateway-28f126bc949d?source=rss-d67ed5ce646f------2</link>
            <guid isPermaLink="false">https://medium.com/p/28f126bc949d</guid>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[concurrency]]></category>
            <category><![CDATA[performance-engineering]]></category>
            <category><![CDATA[design-systems]]></category>
            <dc:creator><![CDATA[WEX Tech Blog]]></dc:creator>
            <pubDate>Tue, 03 Mar 2026 18:47:23 GMT</pubDate>
            <atom:updated>2026-03-06T07:46:40.401Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="A high-tech digital illustration showing glowing blue data streams converging into a central illuminated portal. Floating holographic interfaces display various system metrics and graphs against a dark background of server racks." src="https://cdn-images-1.medium.com/max/854/1*TYqCbxUhGAXgHb5MdtHTXg.png" /><figcaption>Visualizing the high-throughput data flow and real-time monitoring required for enterprise-grade fraud detection gateways.</figcaption></figure><p>Author: <a href="https://linkedin.com/in/ramviswanadha">Ram Viswanadha</a></p><p>We often treat connection pooling as a “set it and forget it” optimization. Whether it’s a database connection, a <strong>Transmission Control Protocol</strong> (TCP) client, or an HTTP Client, the standard playbook has been clear: reach for libraries like <a href="https://github.com/brettwooldridge/HikariCP">HikariCP</a> or standard BlockingQueue implementations, and assume that if the system slows down, we just need a larger pool.</p><p>However, we recently encountered a scenario where that traditional pooling logic actually became the bottleneck itself. While working on our Fraud Detection Gateway, we were tasked with delivering <strong>enterprise-grade throughput</strong> while maintaining the <strong>sub-second latency</strong> required for real-time fraud decisioning. At our peak, we were handling <strong>thousands of concurrent checks per minute</strong>, where even a minor delay could impact the customer experience. We quickly found that the “lease and return” model — something we’ve relied on for years — was becoming a point of contention rather than an optimization. Because we were operating within fixed resource constraints, we couldn’t just “scale out” our way through the problem. We were forced to develop a creative alternative to ensure we met our performance and stability targets without hitting a wall.</p><h3>The “Pool Full” Exception</h3><p>To understand why our standard approach failed, we have to look at how a typical pool manages a persistent TCP client. Standard pools are designed to track which connections are “in-use” to prevent thread interference. It’s a safety-first mindset that works well — until the system hits a heavy load.</p><p>In our case, we saw a cascading failure:</p><ol><li>Every connection in the pool would be leased out to handle incoming fraud checks.</li><li>The very next thread to request a connection would be forced to block (wait) or fail immediately.</li><li>If the downstream service experienced even minor latency, the pool would saturate. Threads would back up, and the application would eventually surrender, throwing “Could not acquire connection” errors.</li></ol><p>We were staring at these errors, but the metrics told a strange story: <em>our resources weren’t actually exhausted</em>. That’s when we found the catch: <strong>our TCP clients were already designed to be thread-safe. </strong>They utilized internal virtual threads for reading and writing, meaning they could technically handle multiple concurrent requests over the same physical pipe without any data corruption.</p><p>By adhering to a traditional pool that tracked inUse status, we were artificially limiting our throughput. We were essentially closing lanes on a highway because we thought only one car could be on the road at a time. We realized we didn’t need a “Pool” to gatekeep access; we needed a “Dispatcher” to manage the flow.</p><h3>The Shift: From Exclusivity to Distribution</h3><p>Once we realized that our TCP clients were already built for concurrent traffic, our entire philosophy shifted. If your resource is thread-safe, the goal is to ensure an even distribution of load across your available pipes. We needed to maximize throughput and minimize latency by trusting the underlying architecture of our client.</p><p>We made the decision to abandon the “Lease/Release” pattern entirely. In its place, we built a <strong>Non-Blocking Round-Robin Dispatcher</strong>. This wasn’t just a technical change; it was a move toward a more optimistic concurrency model.</p><figure><img alt="A technical architectural diagram comparing a traditional blocking pool to a round-robin dispatcher. The dispatcher side features a circular “Non-Blocking” icon that routes incoming requests (R1-R6) in a rotation to three separate TCP-client-backed WebClients labeled WC1, WC2, and WC3" src="https://cdn-images-1.medium.com/max/858/1*Hj8nXOXxKAcHru39-3cLdw.png" /><figcaption>The “macro-distribution” strategy: Distributing traffic across multiple persistent TCP clients to maximize pipe utilization and resilience.</figcaption></figure><h4>Comparison: Traditional Blocking Pool vs. Round-Robin Dispatcher</h4><figure><img alt="A comparison table between a “Traditional Blocking Connection Pool” and a “Non-Blocking Round-Robin Dispatcher.” It details differences in goals, concurrency models, acquisition patterns, and risks, specifically noting that the dispatcher is best used for thread-safe resources like HTTP/2 or TCP clients." src="https://cdn-images-1.medium.com/max/707/1*gRZencGBTJVcfPiXIm692Q.png" /><figcaption>Key architectural differences between pessimistic “lease/release” models and the optimistic “dispatch/acquire” model implemented at WEX.</figcaption></figure><h3>The Implementation: Simplicity as a Feature</h3><p>The code for the dispatcher is intentionally lean. When we were designing it, we followed a core principle at <strong>WEX</strong>: don’t add complexity where simplicity will suffice. The dispatcher doesn’t waste any CPU cycles tracking whether a connection is “busy” or “available.” It simply acts as a high-speed traffic controller, handing out the next connection in line to whoever asks.</p><pre>public class RoundRobinDispatcher&lt;T&gt; implements AutoCloseable {<br><br>    private final List&lt;T&gt; items;<br>    private final int size;<br>    private final AtomicInteger nextIndex = new AtomicInteger(0);<br><br>    public RoundRobinDispatcher(int size, Supplier&lt;T&gt; factory) {<br>        this.size = size;<br>        this.items = new ArrayList&lt;&gt;(size);<br><br>        for (int i = 0; i &lt; size; i++) {<br>            this.items.add(factory.get());<br>        }<br>    }<br><br>    public T acquire() {<br>        // Non-blocking, never fails, constant time O(1)<br>        int index = Math.abs(nextIndex.getAndIncrement() % size);<br>        return items.get(index);<br>    }<br><br>    @Override<br>    public void close() {<br>        for (T item : items) {<br>            if (item instanceof AutoCloseable c) {<br>                try { <br>                    c.close(); <br>                } catch (Exception e) { <br>                    /* log error */ <br>                }<br>            }<br>        }<br>    }<br>}</pre><h3>Wider Applicability: Would it work for HTTP 2.0 Client?</h3><p>Experimenting with the HTTP 2.0 multiplexing client, we realized that the client exhibited the same properties as the TCP client — multithread safe, multiplexed, and persistent. We used the following code to showcase the adaptation of the non-blocking round-robin dispatching strategy to manage instances of a PersistentH2Client.</p><p>The PersistentH2Client encapsulates a sophisticated, connection-pooled HTTP/2 client built using Project Reactor’s WebClient and HttpClient. Crucially, this client is configured to leverage HTTP/2’s native multiplexing capabilities by setting the protocol preference to HttpProtocol.H2.</p><p>While the ConnectionProvider tracks a pool of underlying TCP connections, the RoundRobinWebClient wraps the entire setup by creating <em>multiple</em> distinct PersistentH2Client instances, each with its own internal connection pool/provider. The overarching RoundRobinDispatcher then ensures that incoming requests are distributed across these multiple, logically-separated HTTP/2 clients in a non-blocking, O(1) fashion.</p><figure><img alt="A comparison diagram titled “Blocking Connection Pool” versus “Round-Robin Dispatcher.” The left side shows a “Pool Exhausted” state where requests R4 and R5 are blocked at a bottleneck. The right side shows a non-blocking dispatcher distributing 6 requests (R1-R6) evenly across three WebClients using H2 connections to reach a server." src="https://cdn-images-1.medium.com/max/856/1*zpDKHVvPs3stj1LvFZeJbA.png" /><figcaption>A visual comparison of traditional blocking pools versus the round-robin dispatcher, highlighting how HTTP/2 (H2) multiplexing prevents request blocking.</figcaption></figure><p>This design effectively creates a layer of “macro-distribution” above the client’s internal “micro-multiplexing,” maximizing both throughput and connection resilience by preventing a single HTTP/2 pipe from becoming a bottleneck.</p><pre>@Slf4j<br>@Getter<br>public class PersistentH2Client {<br><br>    private final ConnectionProvider provider;<br>    private final WebClient webClient;<br><br>    public PersistentH2Client(<br>            String poolName,<br>            int maxConnections,<br>            int connectionTimeoutMillis,<br>            long responseTimeoutMillis,<br>            long idleTimeoutSec,<br>            long maxLifeTimeMin,<br>            String baseUrl) {<br><br>        // 1. Define a Connection Provider <br>        this.provider = ConnectionProvider.builder(poolName)<br>                .maxConnections(maxConnections)<br>                .pendingAcquireTimeout(Duration.ofMillis(100))<br>                .maxIdleTime(Duration.ofSeconds(idleTimeoutSec))<br>                .maxLifeTime(Duration.ofMinutes(maxLifeTimeMin))<br>                .evictInBackground(Duration.ofSeconds(30))<br>                .build();<br><br>        // 2. Configure the HttpClient<br>        HttpClient httpClient = HttpClient.create(provider)<br>                .protocol(HttpProtocol.H2, HttpProtocol.HTTP11)<br>                .option(ChannelOption.CONNECT_TIMEOUT_MILLIS, connectionTimeoutMillis)<br>                .responseTimeout(Duration.ofMillis(responseTimeoutMillis))<br>                .doOnConnected(conn -&gt; conn<br>                        .addHandlerLast(new ReadTimeoutHandler(responseTimeoutMillis, TimeUnit.MILLISECONDS))<br>                        .addHandlerLast(new WriteTimeoutHandler(responseTimeoutMillis, TimeUnit.MILLISECONDS)))<br>                .compress(true)<br>                .keepAlive(true);<br><br>        // 3. Build the WebClient<br>        this.webClient = WebClient.builder()<br>                .clientConnector(new ReactorClientHttpConnector(httpClient))<br>                .baseUrl(baseUrl)<br>                .build();<br>        log.debug(httpClient.configuration().toString());<br>    }<br><br>    public void close() {<br>        provider.dispose();<br>    }<br>}</pre><p>The RoundRobinWebClient class implements the “macro-distribution” layer for HTTP/2 traffic described in the document. This class uses the non-blocking round-robin strategy to distribute incoming HTTP/2 requests across multiple, separate multiplexing clients, maximizing overall throughput and resilience by preventing any single client or underlying TCP pipe from becoming a saturation point.</p><pre>@Service<br>@Slf4j<br>public class RoundRobinWebClient {<br>    private final RoundRobinDispatcher&lt;PersistentH2Client&gt; dispatcher;<br><br>    /**<br>     * Provides WebClient instances backed by a round-robin pool of persistent H2 clients.<br>     */<br>    public RoundRobinWebClient(String poolName,<br>                               int maxConnections,<br>                               int connectionTimeoutMillis,<br>                               long responseTimeoutMillis,<br>                               long idleTimeoutSeconds,<br>                               long maxLifeTimeMinutes,<br>                               String baseUrl) {<br>    <br>        this.dispatcher = new RoundRobinDispatcher&lt;&gt;(maxConnections, () -&gt;<br>                new PersistentH2Client(<br>                        poolName + &quot;-&quot; + UUID.randomUUID(), // Unique name per provider<br>                        maxConnections,     // maxConnections<br>                        connectionTimeoutMillis,   // connectTimeoutMs in ms<br>                        responseTimeoutMillis,    // responseTimeoutSec in ms<br>                        idleTimeoutSeconds,    // idleTimeoutSeconds  in seconds<br>                        maxLifeTimeMinutes,     // maxLifeTimeMinutes in minutes<br>                        baseUrl<br>                )<br>        );<br>    }<br><br>    public WebClient getClient() {<br>        // Returns one of the persistent clients in a round-robin fashion<br>        return dispatcher.acquire().getWebClient();<br>    }<br><br>    @PreDestroy<br>    public void shutdown() {<br>        dispatcher.shutdown(PersistentH2Client::close);<br>    }<br>}</pre><h3>Why This Works: The Power of Atomicity</h3><p>The beauty of this approach lies in what <em>doesn’t</em> happen.</p><ol><li><strong>Zero Blocking:</strong> The nextIndex.getAndIncrement() call is an atomic operation. In the Java memory model, this means there are no synchronized blocks or locks. Even under extreme contention, threads move through the acquire() method in nanoseconds.</li><li><strong>No Acquisition Failure: </strong>Since we don’t check if a connection is “full,” acquire() never returns null or throws an exception. We simply leverage the thread-safety of the underlying client.</li><li><strong>Predictable Load:</strong> Round-robin ensures that if we have five persistent connections, each one handles exactly 20% of the traffic. This prevents “hot spots” where one connection is overloaded while others sit idle.</li></ol><h3>Navigating the Risks: When Not to Use This</h3><p>The term “Unsafe” is appropriate here if you aren’t careful. You should not use this pattern if:</p><ul><li><strong>The resource is not thread-safe:</strong> This pattern requires the underlying resource to handle its own concurrency. (e.g., a standard JDBC Connection)</li><li><strong>State is tied to the connection:</strong> If you use SET commands or start transactions that change the session state, multiple threads will interfere with each other.</li></ul><h3>Graceful Shutdown with Virtual Threads</h3><p>When moving to this high-concurrency model using Java’s <a href="https://docs.oracle.com/en/java/javase/21/core/virtual-threads.html">Virtual Threads</a>, managing the lifecycle becomes vital. To ensure we don’t leak resources, we implemented a robust shutdown sequence:</p><p>We focused on a “clean break” strategy:</p><ul><li><strong>Volatile Flags:</strong> We flip a running volatile flag to stop loop iterations immediately.</li><li><strong>Socket Closure:</strong> We close the underlying Socket to unblock any socket-level IO. This is the “emergency brake” that ensures threads aren’t left hanging.</li><li><strong>Interruption:</strong> We explicitly interrupt the Virtual Threads to wake them from any queue-waiting states.</li></ul><p>This ensures that when the gateway scales down or restarts, we aren’t leaving “ghost” connections open to the upstream service.</p><h3>Trust the Network, Not the Pool</h3><p>Sometimes the standard “best practice” of connection pooling is the very thing holding your performance back. If your underlying protocol or client supports concurrency, stop leasing and start dispatching. By removing usage tracking, we eliminated “Pool Full” errors and moved the bottleneck back where it belongs: the network limit. At <strong>WEX</strong>, we’re constantly looking for these opportunities to challenge the status quo, ensuring our systems are as fast and resilient as the merchants we serve.</p><h3>Conclusion</h3><p>Throughout this project, we learned that when faced with unique, high-scale constraints, conventional wisdom is often the first casualty. We found that standard architectural patterns, while safe for typical applications, became active bottlenecks in our bespoke use case.</p><p>Interestingly, our attempts to leverage AI to solve these bottlenecks only reinforced the problem. Coding-focused LLMs consistently pushed us back toward the “safe,” tried-and-tested solutions we already knew were failing. They could provide the standard implementation perfectly, but they lacked the contextual awareness to understand <em>why</em> the standard implementation was the wrong tool for the job.</p><p>Ultimately, bridging the gap between standard theory and a high-performance reality relied on human insight. This experience served as a powerful reminder that complex systems engineering is not merely about retrieving knowledge; it is an act of synthesis and creation. The eventual success of our custom round-robin multiplexing solution proved that when the map provided by convention leads to a dead end, you need reliance on engineering intuition, the experience to question defaults, the observation to diagnose subtle failures, and the skill to architect a new path forward.</p><p><strong><em>See it in action: </em></strong><em>This round-robin strategy provided the throughput needed for our next-gen fraud engine. To see how we convert batch ingestion to real-time and harness the power of the system, catch up on our previous post: </em><a href="https://medium.com/@wextechblogs/the-art-of-subtraction-evolving-a-batch-ingestion-architecture-39859bc3d7d8"><em>The Art of Subtraction</em></a><em>.</em></p><h3>About the Author</h3><p><a href="https://linkedin.com/in/ramviswanadha"><strong>Ram Viswanadha</strong> </a>is a Principal Engineer and a systems architect at WEX, dedicated to evolving how complex software is built. He is currently leading the charge on the next-generation fraud detection engine within the Risk Platform Team. A strong advocate for engineering excellence, Ram focuses on implementing Spec-Driven-Development and accelerating developer capabilities through AI integration.</p><p><strong>The Risk Engineering Team</strong> built the Fraud Detection Gateway. Over the past year, this team has engineered and delivered the critical infrastructure project that demanded navigating a complex landscape of technical disparity. They overcame numerous, significant challenges, effectively bridging the gap between entrenched technological eras. We were required to maintain flawless reliability for sensitive legacy interactions while simultaneously architecting high-performance, next-generation API experiences.</p><p><strong>The Gateways Team </strong>provided the implementation of the thread safe, multiplexing, and persistent TCP client. The Gateways Team is responsible for building the high performance authorizers that support the OTR (Over the Road) and TAG (Transact Global) business lines.</p><p>Copyright ©2026 WEX®, Inc. All rights reserved. The information in this document is subject to change without notice.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=28f126bc949d" width="1" height="1" alt=""><hr><p><a href="https://blog.stackademic.com/the-efficiency-trap-rethinking-connection-pooling-for-wexs-fraud-detection-gateway-28f126bc949d">The Efficiency Trap: Rethinking Connection Pooling for WEX’s Fraud Detection Gateway</a> was originally published in <a href="https://blog.stackademic.com/">Stackademic</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Art of Subtraction: Evolving a Batch Ingestion Architecture]]></title>
            <link>https://medium.com/@wextechblogs/the-art-of-subtraction-evolving-a-batch-ingestion-architecture-39859bc3d7d8?source=rss-d67ed5ce646f------2</link>
            <guid isPermaLink="false">https://medium.com/p/39859bc3d7d8</guid>
            <category><![CDATA[cost-optimization]]></category>
            <category><![CDATA[cloud-native]]></category>
            <category><![CDATA[serverless]]></category>
            <category><![CDATA[idempotency]]></category>
            <category><![CDATA[data-engineering]]></category>
            <dc:creator><![CDATA[WEX Tech Blog]]></dc:creator>
            <pubDate>Tue, 17 Feb 2026 16:27:11 GMT</pubDate>
            <atom:updated>2026-02-17T16:27:11.147Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*2ff1Tfp8NR4K3u0Xt7goUA.png" /></figure><p>Author: <a href="https://linkedin.com/in/ramviswanadha">Ram Viswanadha</a></p><p>“Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.” — Antoine de Saint-Exupéry</p><p>As architects, we often fall into the trap of over-engineering — adding layers, queues, and components “just in case.” This case study documents the evolution of a batch ingestion system, demonstrating how we aggressively simplified the design to achieve a more robust, maintainable, and cost-effective solution.</p><h4>Phase 1: The “Kitchen Sink” Approach (Spark on Kubernetes)</h4><p>Our initial requirement was straightforward: <strong>read XML files from S3, send them to a data persistence API, and save the results.</strong></p><p>However, our first architectural draft was anything but straightforward. We reached for the “standard” big data toolkit:</p><ol><li><strong>Compute</strong>: Spark Structured Streaming running on <strong>Kubernetes</strong>.</li><li><strong>Orchestration</strong>: Custom scripts, spark-submit, and Docker builds.</li><li><strong>Resource Manager</strong>: Spark on EMR</li><li><strong>Workflow</strong>:</li></ol><ul><li><strong>Splitter</strong>: Read XML -&gt; Write JSON to <strong>Intermediate S3</strong>.</li><li><strong>Processor</strong>: Read JSON -&gt; Call API -&gt; Write to <strong>Kafka</strong>.</li><li><strong>Connector</strong>: <strong>Kafka Connect S3 Sink</strong> -&gt; Write Kafka topic to <strong>Final S3</strong>.</li></ul><p>The initial implementation looked like this:</p><pre># Phase 1: The &quot;Splitter&quot; logic (apps/splitter/main.py)<br># Note the explicit write to intermediate storage<br>df.writeStream \<br>    .format(&quot;json&quot;) \<br>    .partitionBy(&quot;batch_id&quot;) \<br>    .option(&quot;path&quot;, f&quot;s3://{intermediate_bucket}/&quot;) \<br>    .start()<br><br># Phase 1: The &quot;Processor&quot; logic (apps/processor/main.py)<br># Note the JSON -&gt; Kafka translation<br>def process_batch(batch_df, batch_id):<br>    result_rdd = batch_df.rdd.mapPartitions(call_api)<br>    processed_df = spark.createDataFrame(result_rdd, schema=res_schema)<br>    processed_df.write.format(&quot;kafka&quot;).save()</pre><h4>The Problem</h4><p>We built a <a href="https://en.wikipedia.org/wiki/Rube_Goldberg_machine">Rube Goldberg machine</a>.</p><ul><li><strong>Operational Overhead</strong>: Managing a Kubernetes cluster and building Docker images for simple batch logic.</li><li><strong>Latency</strong>: Data landed in S3 three times (Input -&gt; Intermediate -&gt; Final).</li><li><strong>Cost</strong>: Running always-on pods and Kafka clusters for batch workloads.</li></ul><h4>Phase 2: Embracing Serverless (The Shift to AWS Glue)</h4><p>We realized we were spending more time managing the <strong>container for the logic</strong> than the <strong>logic itself</strong>. The Phase 1 stack required RBAC configurations, Docker multi-stage builds, and custom pod lifecycle management just to run a Python script.</p><p>Spark already abstracts the <strong>distribution</strong> of data. Kubernetes was abstracting the <strong>compute infrastructure</strong>. By moving to AWS Glue, we could let AWS handle the infrastructure scaling while we focused entirely on the Spark transformations. We deleted hundreds of lines of YAML and Dockerfile boilerplate that never added a single feature to the business.</p><p><strong>Changes:</strong></p><ul><li><strong>Removed</strong>: Kubernetes, Dockerfiles, and the separate “Splitter” app.</li><li><strong>Consolidated</strong>: A single Glue job reading directly from Input S3 and parsing XML on the fly.</li></ul><pre># Phase 2: Consolidated Glue Job (Simplified Compute)<br># We moved to Glue, but still held onto the Kafka output pattern<br>def process_partition(iterator):<br>    for row in iterator:<br>        response = session.post(fdg_url, data=row.value)<br>        yield Row(response=response.text)<br><br>result_rdd = df.repartition(num_partitions).rdd.mapPartitions(process_partition)<br>result_df = result_rdd.toDF([&quot;value&quot;])<br><br># Still piping results to Kafka... why?<br>result_df.write.format(&quot;kafka&quot;).save()</pre><p>Strictly better, but… we were still holding onto old habits. We kept the Kafka output loop. The Glue job was simplified, but the data path was still: Glue -&gt; API -&gt; Kafka -&gt; Sink -&gt; S3. Why were we writing to Kafka if our only goal was S3 persistence?</p><h4>Phase 3: The Radical Simplification (Direct S3 Write)</h4><p>We asked the critical question: <em>“What is the minimum viable path for the data?”</em></p><p>The answer was immediate: if the Glue job has the API response, it should just write it down.</p><p>This happened during a Sequence Diagram review. We saw the data move from the Glue job to the API, then into Kafka, then through a Sink Connector, finally arriving in S3. We realized we had architected a “loop to nowhere.” If the Glue job, which is already a highly durable compute environment, has the API response in memory, it should just write it down.</p><p><strong>Changes:</strong></p><ul><li><strong>Removed</strong>: Kafka, Kafka Connect, and the S3 Sink Connector.</li><li><strong>Logic</strong>: The Glue job captures the synchronous API response and writes it directly to the Output S3 bucket using Spark’s native write capabilities.</li></ul><pre># Phase 3: Direct S3 Write <br># We realized we could bypass the entire messaging layer<br>result_rdd = df_repartitioned.rdd.mapPartitions(process_partition)<br><br>if not result_rdd.isEmpty():<br>    result_df = result_rdd.toDF([&quot;value&quot;])<br>    <br>    # Write directly to the final destination<br>    result_df.write.mode(&quot;append&quot;).text(output_path)</pre><p><strong>The result</strong>: We removed an entire external managed service (Kafka) and a potentially brittle connector layer. The system became significantly more robust because there were simply fewer things that could fail.</p><h4>The Problem of Notification</h4><p>Originally, the Glue job explicitly called the Simple Notification Service (SNS) <strong>(boto3.publish</strong>) to notify the client when done. This meant our<strong> <em>business logic</em></strong> contained <strong><em>infrastructure logic</em></strong>. If the SNS topic <strong>Amazon Resource Name</strong> (ARN) changed, we had to redeploy code.</p><h4>Phase 4: Final Polish (Infrastructure as Code &amp; Observability)</h4><p>In our final iteration, we removed the last pieces of “glue” code (pun intended) that didn’t belong.</p><pre># Phase 4: Observability &amp; Infrastructure Logic Separation<br># No SNS calls here! S3 handles notifications.<br># Instead, we focus on rich instrumentation.<br>meter = metrics.get_meter(&quot;glue.processor&quot;)<br>success_counter = meter.create_counter(&quot;fdg_responses_success_total&quot;)<br><br>def process_partition(iterator):<br>    for row in iterator:<br>        response = session.post(fdg_url, data=row.value)<br>        if response.status_code == 200:<br>            success_counter.add(1)<br>            yield Row(response=response.text)<br><br># The code only cares about the business outcome (S3 Write)<br>result_df.write.mode(&quot;append&quot;).text(output_path)</pre><p><strong>Changes:</strong></p><ul><li><strong>Removed</strong>: Explicit SNS calls. We leveraged <strong>S3 Event Notifications</strong> at the infrastructure layer. When the result file lands, S3 triggers SNS. The code knows nothing about it.</li><li><strong>Added</strong>: <strong>OpenTelemetry</strong> for Observability. Instead of parsing logs, we pushed business metrics (<strong>records_read, success_count</strong>) directly to Grafana.</li><li><strong>Dashboard</strong>: We implemented a centralized view to monitor batch health and performance.</li></ul><p>This allowed us to track records ingested versus failed, alongside the total number of API requests made, succeeded, and failed. By visualizing these trendlines, we established automated alerts to notify the responsible parties of any failures or unexpected shifts in the data.</p><h4>Challenges &amp; Trade-offs</h4><ul><li><strong>API Performance &amp; Bottlenecks:</strong> The final strategy relies on the Glue job capturing a synchronous response from the Data Persistence API. This creates a tight coupling where the API’s latency and throughput limit our processing speed. Since we had a budget of 30 requests per second (RPS), and the files ingested had fewer than 100K records, we were able to make this tradeoff.</li><li><strong>Loss of Buffering: </strong>By removing Kafka, the system loses a “shock absorber”. In Phase 1, Kafka could have queued data if downstream systems were slow or down. In the final design, if the API or S3 fails during the “Direct Write,” the Glue job needs to be retried from the beginning. We are relying on the API to be idempotent.</li><li><strong>Infrastructure Logic in Infrastructure: </strong>While removing notification code from the app is a “clean” move, it shifts logic to S3 Event Notifications. This means a change in the notification flow (e.g., adding a second subscriber) now requires a change to AWS infrastructure (Terraform/CloudFormation) rather than just a code update.</li><li><strong>Observability Shift:</strong> Moving from log parsing to OpenTelemetry metrics is more efficient, but requires the team to maintain a separate observability pipeline (Grafana/OpenTelemetry collectors). This ensures we don’t lose visibility into the “Direct Write” process.</li></ul><h4>The Final Result</h4><p>A system defined by what isn’t there.</p><ul><li>No Kubernetes.</li><li>No Intermediate Storage.</li><li>No Kafka.</li><li>No Connectors.</li><li>No Custom Notification Code.</li></ul><h4>Conclusion</h4><p>We went from <strong>7 major components</strong> to <strong>3</strong>. The final architecture is cheaper, faster, and infinitely easier to debug.</p><p><strong>The Lesson</strong>: The most important tool in an architect’s belt is the delete key.</p><h4>About the Author</h4><p><a href="https://linkedin.com/in/ramviswanadha">Ram Viswanadha</a> is a Principal Engineer and a systems architect at WEX®, dedicated to evolving how complex software is built. He is currently leading the charge on the next-generation fraud detection engine within the Risk Platform Team. A strong advocate for engineering excellence, Ram focuses on implementing Spec-Driven-Development and accelerating developer capabilities through AI integration.</p><p>Copyright ©2026 WEX Inc. All rights reserved. The information in this document is subject to change without notice.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=39859bc3d7d8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[In an AI World, Code is Cheap. Judgement is Invaluable.]]></title>
            <link>https://medium.com/@wextechblogs/in-an-ai-world-code-is-cheap-judgement-is-invaluable-1b60d5c1075f?source=rss-d67ed5ce646f------2</link>
            <guid isPermaLink="false">https://medium.com/p/1b60d5c1075f</guid>
            <category><![CDATA[developer-experience]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[senior-developer]]></category>
            <category><![CDATA[junior-developer]]></category>
            <dc:creator><![CDATA[WEX Tech Blog]]></dc:creator>
            <pubDate>Mon, 09 Feb 2026 21:13:38 GMT</pubDate>
            <atom:updated>2026-02-09T21:13:38.727Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QWkhqshxIE0415qxVWq6gg.jpeg" /></figure><p>Author: <a href="https://www.linkedin.com/in/nyssaturner/">Nyssa Turner</a></p><h3>Software engineering is in the middle of a visible identity shift</h3><p>Over the last year, AI tooling has moved from autocomplete, chatbots, and suggestion engines into something far more ambitious: autonomous agents that can scaffold projects, write tests, refactor code, deploy infrastructure, and even attempt to reason about architectural decisions. The rise of “vibe coding” — prompting an AI, accepting its output, and moving on — has sparked a real debate about what it even means to be an engineer anymore.</p><p>Some developers proudly claim they no longer write code at all. Others report being rejected for submitting fully AI-generated solutions, frustrated that companies “don’t get it.” And in the middle are teams trying to figure out how to balance speed, quality, and long-term sustainability.</p><p>The question isn’t whether AI belongs in engineering; It clearly does. The real question is: in a world of vibe coders and agentic AI, what actually defines a senior engineer?</p><h3>AI Has Grown Up and That Changes the Conversation</h3><p>AI tools have become more autonomous. Today’s systems don’t just suggest a function or fix a syntax error. They can plan multi-step changes, generate entire services, and operate with minimal human intervention. That evolution makes this discussion more urgent, not less.</p><p>Autonomy, however, doesn’t equal accountability.</p><p>AI can generate <em>a</em> solution. It cannot validate whether it’s the <em>right</em> solution for your users, your data, your regulatory environment, or your long-term roadmap. That gap is where engineering judgment still reigns supreme and where seniority truly shows up.</p><h3>A Tale of Two Builds</h3><p>Imagine two developers tasked with building a simple internal reporting service.</p><p>The first leans fully into vibe coding. They prompt an AI to “build a scalable reporting API,” accept the generated architecture, wire it up, and deploy. The demo looks great. Metrics load. Charts render. Everyone’s impressed.</p><p>Then reality hits.</p><p>The service struggles under real data volume. Logging is inconsistent. Error handling is vague. No one can explain why certain libraries were chosen, how caching works, or what happens when requirements change. When a production issue appears, debugging turns into re-prompting instead of reasoning.</p><p>Now imagine an experienced engineer approaching the same task.</p><p>They still use AI but more intentionally. They prompt for options, not answers. They question patterns. They validate assumptions. They manually shape the architecture based on existing systems, data sensitivity, and operational constraints. AI accelerates the process, but the engineer owns the outcome.</p><p>The difference isn’t intelligence or ambition. It’s context and accountability.</p><h3>Speed vs. Understanding</h3><p>Industry incentives currently reward speed. Faster delivery, quicker demos, shorter timelines.</p><p>But speed without understanding creates a hidden tax: rework, tech debt, brittle systems, and teams that can’t confidently evolve what they’ve built. AI makes it easier than ever to move fast and easier than ever to lose depth along the way.</p><p>Senior engineers recognize this trade-off instinctively. They know when speed is appropriate and when it’s dangerous. They understand that code is not the product, systems are.</p><h3>What Happens to Junior Engineers?</h3><p>One of the most important questions in this shift is what happens to entry-level and junior developers.</p><p>Historically, juniors learned by doing: small tasks, repeated patterns, mentorship, and plenty of mistakes. Those experiences built intuition over time. If AI now handles much of that foundational work, where does that intuition come from?</p><p>The answer isn’t removing AI, it’s reframing how it’s used. AI can become a modern mentor.</p><p>Junior engineers can ask it <em>why</em> a pattern was chosen, <em>what</em> alternatives exist, and <em>how</em> a change might ripple through the system. Used intentionally, AI can compress learning cycles but only if curiosity and critical thinking are encouraged.</p><p>The danger is when AI replaces learning instead of enabling it.</p><p>Every senior engineer knows that real learning didn’t come from getting things right the first time. It came from breaking things, cleaning them up, and slowly building intuition through repetition and failure. Many of us were fortunate enough to have mentors who were teammates who answered “dumb” questions, reviewed our code with patience, and helped us understand not just what to change, but why it mattered.</p><p>AI can’t replace a great mentor. It doesn’t understand team context, business pressure, or the nuance of trade-offs the way a human does. But it can serve as a stand-in for the simpler moments: the quick pattern explanation, the “why is this approach frowned upon,” or the first pass at understanding unfamiliar code. When used that way, AI doesn’t shortcut growth but rather supports it, freeing senior engineers to focus on the higher-order guidance that truly requires human experience.</p><h3>Redefining Seniority</h3><p>For years, senior engineers earned their title by surviving the trenches: writing tests by hand, fixing late-night production issues, and building systems piece by piece. That path may evolve, but the core traits of seniority don’t disappear.</p><p>Modern senior engineers are defined by:</p><ul><li><strong>Judgment</strong>: Knowing which tools to use and when not to.</li><li><strong>Context</strong>: Understanding systems beyond isolated code.</li><li><strong>Ownership</strong>: Standing behind decisions, not deflecting them to a model.</li><li><strong>Guidance</strong>: Helping others think, not just produce.</li></ul><p>Prompting skill alone doesn’t create seniority. Thinking skill does.</p><h3>The Future Isn’t AI vs. Engineers</h3><p>This isn’t a fight between humans and machines.</p><p>The future belongs to engineers who can collaborate with AI while retaining responsibility for outcomes. Those who treat AI as an accelerator, not a replacement, will build systems that last.</p><p>AI will continue to evolve. Titles will shift. Tooling will change. But the value of understanding what you’re building and why will not.</p><p>That has always been the difference between writing code and engineering systems.</p><p>Copyright ©2026 WEX Inc. All rights reserved. The information in this document is subject to change without notice.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1b60d5c1075f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>