<?xml version="1.0" encoding="UTF-8" ?> <?xml-stylesheet type="text/xsl" href="rss.xsl"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/"> <channel> <title>Hugo Nascimento</title><description>Founder at HSN Labs, CPTO at Eva People. Essays and executive advisory on enterprise AI agent architecture, business ontologies, and production runtime failures.</description><link>https://hsnlabs.ai/blog/</link><atom:link href="https://hsnlabs.ai/blog/feed_rss_created.xml" rel="self" type="application/rss+xml" /> <atom:link href="https://pubsubhubbub.appspot.com/" rel="hub" type="application/rss+xml"/> <docs>https://github.com/hsnlabs-ai/blog</docs><language>en</language> <pubDate>Fri, 25 Sep 2026 18:00:24 -0000</pubDate> <lastBuildDate>Fri, 25 Sep 2026 18:00:24 -0000</lastBuildDate> <ttl>1440</ttl> <generator>MkDocs RSS plugin - v1.19.0</generator> <image> <url>https://avatars.githubusercontent.com/u/59654075?v=4</url> <title>Hugo Nascimento</title> <link>https://hsnlabs.ai/blog/</link> </image> <item> <title>LATAM Airlines: Deterministic Agents in a 3% Margin Business</title> <author>hugo</author> <category>Agentic-Engineering</category> <category>Case Study</category> <category>Engineering</category> <category>ROI</category> <description>&lt;h1 id=&#34;latam-airlines-deterministic-agents-in-a-3-margin-business&#34;&gt;LATAM Airlines: Deterministic Agents in a 3% Margin Business&lt;/h1&gt; &lt;p&gt;Airlines run on 3% margins. 31% of their operating cost is jet fuel. There is no slack.&lt;/p&gt; &lt;p&gt;If an AI agent does not create immediate value or cut costs, it dies.&lt;/p&gt; &lt;p&gt;I analyzed LATAM Airlines&#39; deployment of customer experience agents in production. They process millions of interactions. They learned three hard lessons about agentic engineering at scale.&lt;/p&gt; &lt;h2 id=&#34;1-semantic-decentralization-burns-money&#34;&gt;1. Semantic Decentralization Burns Money&lt;/h2&gt; &lt;p&gt;LATAM initially built specialist agents (flights, hotels, insurance). Each agent reasoned and generated final structured outputs.&lt;/p&gt; &lt;p&gt;Result: 15% overhead in token consumption and latency.&lt;/p&gt; &lt;p&gt;Fix: Strict Supervisor pattern. Specialist agents became blind tool executors. The Supervisor node handles all final semantic formatting.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Takeaway:&lt;/strong&gt; Do not ask every node in your graph to reason about output structure. Centralize formatting. Cut costs by 15% without losing quality.&lt;/p&gt; &lt;h2 id=&#34;2-telemetry-beats-prompt-hacking&#34;&gt;2. Telemetry Beats Prompt Hacking&lt;/h2&gt; &lt;p&gt;In production, 13% of user interactions failed routing. The system flagged them as &#34;out of scope.&#34;&lt;/p&gt; &lt;p&gt;Amateurs add prompt penalties to stop hallucinations. LATAM looked at LangSmith telemetry.&lt;/p&gt; &lt;p&gt;Data showed 95% of those failed queries were legitimate passenger needs (baggage, check-in). The model didn&#39;t fail. The architecture didn&#39;t fail. The business logic was simply incomplete.&lt;/p&gt; &lt;p&gt;Fix: Added a dedicated Customer Care node. Routing errors dropped to 1%.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Takeaway:&lt;/strong&gt; Observe production telemetry. Build deterministic nodes for reality, not for your happy path.&lt;/p&gt; &lt;h2 id=&#34;3-the-chatbot-is-not-the-product&#34;&gt;3. The Chatbot Is Not The Product&lt;/h2&gt; &lt;p&gt;This is my core thesis. &lt;/p&gt; &lt;p&gt;A B2C chatbot is just a data collection interface. Conversations are cheap. Structured signals are valuable.&lt;/p&gt; &lt;p&gt;LATAM realized this. They built Compass: an internal engine that takes unstructured chat logs, applies strict semantic ontologies, and outputs a Knowledge Graph directly into BigQuery. &lt;/p&gt; &lt;p&gt;When a passenger asks about &#34;Italian restaurants near the hotel,&#34; they aren&#39;t just chatting. They are feeding a deterministic pipeline with semantic preferences.&lt;/p&gt; &lt;p&gt;Stop building free-text wrappers. Use AI as a ruthless parser to turn noise into structured production data. &lt;/p&gt; &lt;p&gt;That is how you replace legacy IT. That is how you expand margins. That is how you prove ROI to a CFO.&lt;/p&gt; &lt;hr /&gt; &lt;p&gt;&lt;em&gt;Article originally published on &lt;a href=&#34;https://hsnlabs.ai/blog/writing/latam-airlines-case-study/&#34;&gt;HSN Labs&lt;/a&gt;. Author: &lt;a href=&#34;https://hsnlabs.ai&#34;&gt;Hugo Nascimento&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;</description> <link>https://hsnlabs.ai/blog/writing/latam-airlines-case-study/</link> <pubDate>Sun, 13 Sep 2026 00:00:00 +0000</pubDate> <source url="https://hsnlabs.ai/blog/feed_rss_created.xml">Hugo Nascimento</source><guid isPermaLink="true">https://hsnlabs.ai/blog/writing/latam-airlines-case-study/</guid> <enclosure url="https://hsnlabs.ai/blog/assets/images/social/writing/latam-airlines-case-study.png" type="image/png" length="65961" /> </item> <item> <title>The Cost of Non-Deterministic AI in Legacy IT</title> <author>hugo</author> <category>Engineering</category> <description>&lt;h1 id=&#34;the-cost-of-non-deterministic-ai-in-legacy-it&#34;&gt;The Cost of Non-Deterministic AI in Legacy IT&lt;/h1&gt; &lt;p&gt;Enterprises run on deterministic systems: SAP, Oracle, AS400 mainframes, and core transactional databases. These platforms were built with zero tolerance for probabilistic variance.&lt;/p&gt; &lt;p&gt;Introducing non-deterministic AI into these environments without a translation layer creates massive hidden expenses.&lt;/p&gt; &lt;h2 id=&#34;the-three-hidden-costs&#34;&gt;The Three Hidden Costs&lt;/h2&gt; &lt;h3 id=&#34;1-endless-manual-qa&#34;&gt;1. Endless Manual QA&lt;/h3&gt; &lt;p&gt;Teams spend more engineering hours monitoring model outputs and verifying database writes than the original manual workflow required. The software becomes a cost center rather than a leverage point.&lt;/p&gt; &lt;h3 id=&#34;2-unquantified-regulatory-and-audit-exposure&#34;&gt;2. Unquantified Regulatory and Audit Exposure&lt;/h3&gt; &lt;p&gt;In regulated industries such as banking and healthcare, every record modification must be defensible to external auditors. Probabilistic models cannot explain why a specific action was chosen unless deterministic reasoning paths are recorded.&lt;/p&gt; &lt;h3 id=&#34;3-permanent-sandbox-confinement&#34;&gt;3. Permanent Sandbox Confinement&lt;/h3&gt; &lt;p&gt;Initiatives remain stuck in proof-of-concept sandboxes for twelve months. Corporate IT security teams rightly refuse to grant write access to core systems because the risk of database corruption exceeds any productivity gain.&lt;/p&gt; &lt;h2 id=&#34;the-solution-architectural-decoupling&#34;&gt;The Solution: Architectural Decoupling&lt;/h2&gt; &lt;p&gt;To unlock production value, decoupling is mandatory: - The reasoning engine proposes actions based on context. - The deterministic ontology layer validates whether the proposal complies with corporate invariants. - The execution layer applies verified mutations through standard enterprise APIs.&lt;/p&gt; &lt;p&gt;Predictability is the prerequisite for enterprise production access.&lt;/p&gt; &lt;hr /&gt; &lt;p&gt;&lt;em&gt;Article originally published on &lt;a href=&#34;https://hsnlabs.ai/blog/writing/cost-legacy-it/&#34;&gt;HSN Labs&lt;/a&gt;. Author: &lt;a href=&#34;https://hsnlabs.ai&#34;&gt;Hugo Nascimento&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;</description> <link>https://hsnlabs.ai/blog/writing/cost-legacy-it/</link> <pubDate>Thu, 10 Sep 2026 00:00:00 +0000</pubDate> <source url="https://hsnlabs.ai/blog/feed_rss_created.xml">Hugo Nascimento</source><guid isPermaLink="true">https://hsnlabs.ai/blog/writing/cost-legacy-it/</guid> <enclosure url="https://hsnlabs.ai/blog/assets/images/social/writing/cost-legacy-it.png" type="image/png" length="64556" /> </item> <item> <title>Chatbot vs Agent: Why Replacing BPOs Requires Deterministic Guardrails</title> <author>hugo</author> <category>Engineering</category> <description>&lt;h1 id=&#34;chatbot-vs-agent-why-replacing-bpos-requires-deterministic-guardrails&#34;&gt;Chatbot vs Agent: Why Replacing BPOs Requires Deterministic Guardrails&lt;/h1&gt; &lt;p&gt;A chatbot answers text questions. An agent executes multi-step workflows and mutates state in core enterprise systems.&lt;/p&gt; &lt;p&gt;Treating conversational chatbots as enterprise agents is the most common reason corporate automation initiatives fail to generate financial returns.&lt;/p&gt; &lt;h2 id=&#34;the-bpo-replacement-challenge&#34;&gt;The BPO Replacement Challenge&lt;/h2&gt; &lt;p&gt;If your strategic objective is to terminate a multi-million dollar third-party BPO contract, conversational answers are useless. You need an autonomous digital workforce that can: - Reconcile incoming invoices against ERP purchase orders. - Validate inventory allocations across multiple warehouse databases. - Resolve customer billing disputes according to strict contract terms. - Commit financial ledger changes with verifiable audit trails.&lt;/p&gt; &lt;h2 id=&#34;the-human-in-the-loop-trap&#34;&gt;The Human in the Loop Trap&lt;/h2&gt; &lt;p&gt;When probabilistic models lack deterministic constraints, engineering teams get terrified of hallucinations. Their default reaction is adding human verification steps to every action.&lt;/p&gt; &lt;p&gt;This creates human-in-the-loop purgatory. If every AI decision requires human oversight, labor costs remain identical and latency skyrockets. The financial ROI of replacing the BPO evaporates completely.&lt;/p&gt; &lt;h2 id=&#34;the-deterministic-fix&#34;&gt;The Deterministic Fix&lt;/h2&gt; &lt;p&gt;To achieve true autonomy, agents must operate inside mathematically bounded guardrails: 1. Strict State Machines: The agent can only select actions allowed by current system state. 2. Hard Schema Validation: Payloads are validated against strict JSON schemas before reaching production APIs. 3. Automated Evaluation Gates: Decisions are tested against historical ground truth before write permissions are granted.&lt;/p&gt; &lt;p&gt;Autonomy is not created by better prompts. Autonomy is created by deterministic architecture.&lt;/p&gt; &lt;hr /&gt; &lt;p&gt;&lt;em&gt;Article originally published on &lt;a href=&#34;https://hsnlabs.ai/blog/writing/chatbot-vs-agent/&#34;&gt;HSN Labs&lt;/a&gt;. Author: &lt;a href=&#34;https://hsnlabs.ai&#34;&gt;Hugo Nascimento&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;</description> <link>https://hsnlabs.ai/blog/writing/chatbot-vs-agent/</link> <pubDate>Tue, 08 Sep 2026 00:00:00 +0000</pubDate> <source url="https://hsnlabs.ai/blog/feed_rss_created.xml">Hugo Nascimento</source><guid isPermaLink="true">https://hsnlabs.ai/blog/writing/chatbot-vs-agent/</guid> <enclosure url="https://hsnlabs.ai/blog/assets/images/social/writing/chatbot-vs-agent.png" type="image/png" length="76357" /> </item> <item> <title>The Integration Drift: When Prompts Break Production</title> <author>hugo</author> <category>Engineering</category> <description>&lt;h1 id=&#34;the-integration-drift-when-prompts-break-production&#34;&gt;The Integration Drift: When Prompts Break Production&lt;/h1&gt; &lt;p&gt;Large language models are stochastic reasoning engines. Enterprise APIs are rigid, deterministic protocols.&lt;/p&gt; &lt;p&gt;Connecting an unconstrained model directly to an enterprise database creates an architectural failure point known as integration drift.&lt;/p&gt; &lt;h2 id=&#34;how-integration-drift-occurs&#34;&gt;How Integration Drift Occurs&lt;/h2&gt; &lt;p&gt;A natural language prompt produces valid JSON payloads during initial development testing. Two weeks later, a minor change in user input phrasing or an upstream model weights update causes subtle structural changes: - An integer field returns as a string. - A mandatory database key is omitted. - An enum value is substituted with a near synonym.&lt;/p&gt; &lt;p&gt;The downstream ERP receives an unparseable payload. Transactions halt, batch jobs fail, and manual intervention is required to unlock databases.&lt;/p&gt; &lt;h2 id=&#34;architectural-remediation&#34;&gt;Architectural Remediation&lt;/h2&gt; &lt;p&gt;Eliminating integration drift requires removing schema responsibility from natural language prompts: 1. Pydantic and Schema Enforcement: Use strict schema validators to catch format discrepancies before execution. 2. Finite State Machines: Ensure multi-step agent actions follow rigid, verified paths. 3. Centralized Semantic Routing: Route user intent to specialized deterministic executor tools rather than relying on open-ended code generation.&lt;/p&gt; &lt;p&gt;Engineering deterministic stability means designing systems where model variation cannot corrupt core infrastructure.&lt;/p&gt; &lt;hr /&gt; &lt;p&gt;&lt;em&gt;Article originally published on &lt;a href=&#34;https://hsnlabs.ai/blog/writing/integration-drift/&#34;&gt;HSN Labs&lt;/a&gt;. Author: &lt;a href=&#34;https://hsnlabs.ai&#34;&gt;Hugo Nascimento&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;</description> <link>https://hsnlabs.ai/blog/writing/integration-drift/</link> <pubDate>Sat, 05 Sep 2026 00:00:00 +0000</pubDate> <source url="https://hsnlabs.ai/blog/feed_rss_created.xml">Hugo Nascimento</source><guid isPermaLink="true">https://hsnlabs.ai/blog/writing/integration-drift/</guid> <enclosure url="https://hsnlabs.ai/blog/assets/images/social/writing/integration-drift.png" type="image/png" length="70299" /> </item> <item> <title>The Solution: Deterministic Agentic Engineering</title> <author>hugo</author> <category>Engineering</category> <description>&lt;h1 id=&#34;the-solution-deterministic-agentic-engineering&#34;&gt;The Solution: Deterministic Agentic Engineering&lt;/h1&gt; &lt;p&gt;Over ninety percent of enterprise artificial intelligence proofs of concept fail when transitioning to production. &lt;/p&gt; &lt;p&gt;The failure is structural. Machine learning teams connect stochastic reasoning engines directly to rigid legacy infrastructure. When probabilistic models meet inflexible databases, integration drift and unhandled edge cases destroy operational trust.&lt;/p&gt; &lt;p&gt;At HSN Labs, we do not build shallow wrappers. We engineer deterministic infrastructure for mission-critical operations.&lt;/p&gt; &lt;h2 id=&#34;the-core-problem-why-agents-break-in-production&#34;&gt;The Core Problem: Why Agents Break in Production&lt;/h2&gt; &lt;ol&gt; &lt;li&gt;Missing Business Ontologies: Models do not understand corporate domain rules, transaction invariants, or relationship graphs. They guess schema logic and hallucinate parameters.&lt;/li&gt; &lt;li&gt;Fragile Execution: Natural language prompts cannot guarantee predictable JSON payloads or SQL statements across millions of executions.&lt;/li&gt; &lt;li&gt;Lack of Production Tracing: Teams deploy agents without automated evaluation pipelines, making runtime debugging impossible.&lt;/li&gt; &lt;/ol&gt; &lt;h2 id=&#34;the-hsn-labs-delivery-framework&#34;&gt;The HSN Labs Delivery Framework&lt;/h2&gt; &lt;h3 id=&#34;1-personalized-business-ontologies&#34;&gt;1. Personalized Business Ontologies&lt;/h3&gt; &lt;p&gt;We tailor domain schemas and operational constraints directly to live ERP, CRM, and database models. The model never guesses business logic because permissible state transitions are strictly governed by an executable graph.&lt;/p&gt; &lt;h3 id=&#34;2-deep-agent-infrastructure&#34;&gt;2. Deep Agent Infrastructure&lt;/h3&gt; &lt;p&gt;We build stateful multi-step execution graphs, isolated persistent memory, and standardized Model Context Protocol integrations. Agents operate with predictable tool access within audited enterprise perimeters.&lt;/p&gt; &lt;h3 id=&#34;3-deterministic-guardrails&#34;&gt;3. Deterministic Guardrails&lt;/h3&gt; &lt;p&gt;We isolate transactional writes behind formal finite state machines. In banking, agents never modify financial balances directly. In healthcare, patient data access is governed by strict schema boundaries with zero data exfiltration risk.&lt;/p&gt; &lt;h3 id=&#34;4-continuous-evaluation-and-observability&#34;&gt;4. Continuous Evaluation and Observability&lt;/h3&gt; &lt;p&gt;We govern the entire lifecycle using market standards such as LangGraph and LangSmith. Every run is traced, scored against regression test suites, and monitored for integration drift in production.&lt;/p&gt; &lt;h2 id=&#34;forward-deployed-engineering&#34;&gt;Forward Deployed Engineering&lt;/h2&gt; &lt;p&gt;Traditional enterprise software forces companies to adapt business processes to rigid third-party platforms. &lt;/p&gt; &lt;p&gt;We do the opposite. Our Senior Forward Deployed Engineers embed directly into client infrastructure, building bespoke agentic systems tailored to real production systems.&lt;/p&gt; &lt;hr /&gt; &lt;p&gt;&lt;em&gt;Article originally published on &lt;a href=&#34;https://hsnlabs.ai/blog/writing/manifesto/&#34;&gt;HSN Labs&lt;/a&gt;. Author: &lt;a href=&#34;https://hsnlabs.ai&#34;&gt;Hugo Nascimento&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;</description> <link>https://hsnlabs.ai/blog/writing/manifesto/</link> <pubDate>Tue, 01 Sep 2026 00:00:00 +0000</pubDate> <source url="https://hsnlabs.ai/blog/feed_rss_created.xml">Hugo Nascimento</source><guid isPermaLink="true">https://hsnlabs.ai/blog/writing/manifesto/</guid> <enclosure url="https://hsnlabs.ai/blog/assets/images/social/writing/manifesto.png" type="image/png" length="60436" /> </item> </channel> </rss>