<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
    <title>Liudas Sodonis — Principal Cloud &amp; AI Architect</title>
    <subtitle>Production AI systems, sovereign cloud blueprints, and architecture notes by Liudas Sodonis (Vancouver, Canada).</subtitle>
    <link rel="self" type="application/atom+xml" href="https://sodonis.ca/atom.xml"/>
    <link rel="alternate" type="text/html" href="https://sodonis.ca"/>
    <generator uri="https://www.getzola.org/">Zola</generator>
    <updated>2026-12-01T00:00:00+00:00</updated>
    <id>https://sodonis.ca/atom.xml</id>
    <entry xml:lang="en">
        <title>Same Model, Different Agent Harness: When RL Harness Adapters Are Actually Worth It</title>
        <published>2026-12-01T00:00:00+00:00</published>
        <updated>2026-12-01T00:00:00+00:00</updated>
        
        <author>
          <name>Liudas Sodonis</name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://sodonis.ca/writing/agent-harnesses-and-harness-adapters/"/>
        <id>https://sodonis.ca/writing/agent-harnesses-and-harness-adapters/</id>
        
        <content type="html" xml:base="https://sodonis.ca/writing/agent-harnesses-and-harness-adapters/">&lt;p&gt;An LLM on its own is just stateless text prediction. Everything that turns it into a working agent (the control loop, tool schemas, context compaction, memory, and guardrails) lives in the harness around it.&lt;/p&gt;
&lt;p&gt;Because every serious harness makes different design choices, dropping a generic model cold into a harness wastes tokens and burns turns on avoidable mistakes. Recent research from Hugging Face shows you can keep base weights frozen and train a small LoRA harness adapter directly inside your live harness, making an open-weights model more accurate and roughly twice as token-efficient.&lt;/p&gt;
&lt;p&gt;Before you jump to RL training, though, you have to understand what production harnesses actually do and where the real cost sits.&lt;/p&gt;
&lt;h2 id=&quot;production-teams-hand-write-their-harnesses&quot;&gt;Production Teams Hand-Write Their Harnesses&lt;/h2&gt;
&lt;p&gt;A recent source-code study, &lt;a rel=&quot;noopener noreferrer external&quot; target=&quot;_blank&quot; href=&quot;https://arxiv.org/pdf/2609.00006&quot;&gt;Harness Engineering: Anatomy, Architecture, and Evolution of Coding Agents (arXiv:2609.00006)&lt;/a&gt; by Barbaste et al., inspected roughly 4 million lines of code across 11 production coding agents: Claude Code, Codex CLI, Gemini CLI, OpenHands, Aider, Pi, OpenCode, Hermes, OpenClaw, Mistral Vibe, and Mini-SWE-Agent.&lt;/p&gt;
&lt;p&gt;Two findings stand out right away:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;0 of 11&lt;/strong&gt; import general-purpose agent frameworks like LangChain, LangGraph, or AutoGen. Every team wrote its own execution loop and control layer.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;0 of 11&lt;/strong&gt; rely on vector databases for code search. They use deterministic file traversal, grep, and explicit context controls instead.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Across those 11 codebases, the authors found seven recurring subsystems: the execution loop, the LLM provider layer, tool definitions, memory and context management, safety and permissions, sub-agent orchestration, and extension surfaces. Standards like &lt;code&gt;SKILL.md&lt;/code&gt; (in 9 of 11 systems) and MCP (in 8 of 11) are converging at the edges, while the core execution loops stay strongly opinionated.&lt;/p&gt;
&lt;p&gt;That matches what I have seen on smaller production builds. In our &lt;a href=&quot;/work/agentic-3d-proposal-engine/&quot;&gt;3D construction proposal engine&lt;/a&gt;, asking the model to write Blender Python code directly failed on consistency, so I moved the team to a small bounded loop (JSON floor plans, a Python math validator, and a 10-iteration cap). And in my &lt;a href=&quot;/work/offline-gcp-iam-rag/&quot;&gt;offline GCP IAM RAG lab&lt;/a&gt;, pure vector search blurred exact permission strings like &lt;code&gt;storage.objects.get&lt;/code&gt; and &lt;code&gt;storage.objects.list&lt;/code&gt;, so exact-match search (SQLite FTS5) had to run first. Production coding agents hit the exact same walls.&lt;/p&gt;
&lt;h2 id=&quot;same-model-weights-four-different-harnesses&quot;&gt;Same Model Weights, Four Different Harnesses&lt;/h2&gt;
&lt;p&gt;Maarten Grootendorst&#39;s &lt;a rel=&quot;noopener noreferrer external&quot; target=&quot;_blank&quot; href=&quot;https://newsletter.maartengrootendorst.com/p/a-visual-guide-to-agent-harnesses&quot;&gt;A Visual Guide to Agent Harnesses&lt;/a&gt; starts from a ~600-line minimal loop (&lt;code&gt;TinyAgent&lt;/code&gt;) and compares four open-source harnesses running on the same underlying model weights.&lt;/p&gt;
&lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th style=&quot;text-align: left&quot;&gt;Harness&lt;/th&gt;&lt;th style=&quot;text-align: left&quot;&gt;Tool Surface &amp;amp; Execution&lt;/th&gt;&lt;th style=&quot;text-align: left&quot;&gt;Context &amp;amp; Memory Strategy&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: left&quot;&gt;&lt;strong&gt;Pi&lt;/strong&gt;&lt;/td&gt;&lt;td style=&quot;text-align: left&quot;&gt;Minimalist (~4 default tools); the agent can edit its own harness and skills; JSONL branching sessions.&lt;/td&gt;&lt;td style=&quot;text-align: left&quot;&gt;Compacts history at 184k tokens while keeping the most recent 20k tokens verbatim.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: left&quot;&gt;&lt;strong&gt;OpenCode&lt;/strong&gt;&lt;/td&gt;&lt;td style=&quot;text-align: left&quot;&gt;Shared server backed by SQLite sessions for multiple clients; &quot;Code Mode&quot; chains tool calls in one script; blocks file-edit tools until a &lt;code&gt;plan.md&lt;/code&gt; exists.&lt;/td&gt;&lt;td style=&quot;text-align: left&quot;&gt;Enforces planning before edits and manages multi-client state cleanly in SQLite.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: left&quot;&gt;&lt;strong&gt;Hermes&lt;/strong&gt;&lt;/td&gt;&lt;td style=&quot;text-align: left&quot;&gt;Exposes rich tool schemas upfront (20+ default tools); runs a review agent after heavy tool runs to save working patterns into markdown skills.&lt;/td&gt;&lt;td style=&quot;text-align: left&quot;&gt;Compacts context early to keep per-turn token overhead and tool bloat in check.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: left&quot;&gt;&lt;strong&gt;OpenClaw&lt;/strong&gt;&lt;/td&gt;&lt;td style=&quot;text-align: left&quot;&gt;Multi-channel gateway (30+ messaging channels) with leaner default tools paired with workspace markdown files (&lt;code&gt;SOUL.md&lt;/code&gt;, &lt;code&gt;MEMORY.md&lt;/code&gt;).&lt;/td&gt;&lt;td style=&quot;text-align: left&quot;&gt;Runs a 30-minute heartbeat plus overnight multi-pass &quot;Scheduled Dreaming&quot; to promote daily logs into long-term memory.&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;p&gt;These differences show up before the user types a single word. One harness spends opening context tokens on 20+ tool schemas, while another spends them on workspace identity and memory files. One expects one tool call per turn, while another expects batched scripts or a &lt;code&gt;plan.md&lt;/code&gt; file first. Even file-edit formats differ down to whitespace parsing and fuzzy matching (see the &lt;a href=&quot;https://sodonis.ca/writing/agent-harnesses-and-harness-adapters/#appendix-under-the-hood-mechanics-that-separate-harnesses&quot;&gt;appendix&lt;/a&gt; for the small mechanics). When a generic model ignores those conventions, it burns extra turns recovering from tool errors and re-reading files it already saw.&lt;/p&gt;
&lt;h2 id=&quot;training-models-to-fit-the-harness-harness-adapters&quot;&gt;Training Models to Fit the Harness: Harness Adapters&lt;/h2&gt;
&lt;p&gt;Hugging Face&#39;s &lt;a rel=&quot;noopener noreferrer external&quot; target=&quot;_blank&quot; href=&quot;https://huggingface.co/blog/harness-adapters-at-scale&quot;&gt;Introducing Harness Adapters&lt;/a&gt; turns that observation into a training recipe. Instead of changing the agent loop or fine-tuning all base weights, they froze &lt;code&gt;Qwen3.8-27B&lt;/code&gt;, attached a lightweight &lt;strong&gt;rank-32 LoRA adapter&lt;/strong&gt; to linear projections, and trained it with reinforcement learning (&lt;code&gt;AsyncGRPOTrainer&lt;/code&gt; in TRL, running inside &lt;code&gt;OpenEnv&lt;/code&gt; and &lt;code&gt;Harbor&lt;/code&gt; sandboxes) directly inside unmodified live harnesses (Pi, OpenCode, and Hermes) on verifiable tasks from Terminal-Bench 2.1 and SWE-bench Pro.&lt;/p&gt;
&lt;pre&gt;&lt;code data-lang=&quot;text&quot;&gt;                [Frozen Base Model: Qwen3.8-27B]
                                │
        ┌───────────────────────┼───────────────────────┐
        ▼                       ▼                       ▼
 [Rank-32 LoRA: Pi]     [Rank-32 LoRA: OpenCode] [Rank-32 LoRA: Hermes]
        │                       │                       │
        ▼                       ▼                       ▼
 [Live Pi Harness]      [Live OpenCode Harness]  [Live Hermes Harness]
  (RL Sandbox)           (RL Sandbox)             (RL Sandbox)
        └───────────────────────┴───────────────────────┘
                                │
                                ▼
             [Verifiable Pass/Fail Reward Signal]
                                │
        (Cosine Similarity: 0.01–0.02 → Near-Orthogonal Updates)
                                │
                                ▼
             [Optional Merge Without Retraining]
             [Single Rank-96 &amp;quot;Super-Adapter&amp;quot;]
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Under &lt;strong&gt;Pi&lt;/strong&gt;, Terminal-Bench 2.1 &lt;code&gt;pass@1&lt;/code&gt; jumped from &lt;strong&gt;39% to 55%&lt;/strong&gt;, and scores on the hardest 51 SWE-bench Pro tasks rose from &lt;strong&gt;39.2% to 64.7%&lt;/strong&gt;. Average token usage dropped roughly in half, from ~2.9K down to ~1.5K tokens per task, because the adapted model stopped wasting turns on redundant file reads and dead-end loops.&lt;/p&gt;
&lt;p&gt;What showed up in the weights is just as telling. Layer-by-layer cosine similarity between the Pi, OpenCode, and Hermes adapters was only &lt;strong&gt;0.01 to 0.02&lt;/strong&gt;. Each harness pushed the model in a nearly orthogonal direction, which is a direct measurement of how differently these runtimes behave. Because the updates barely collided, Hugging Face concatenated and scaled them without retraining into a single rank-96 &lt;strong&gt;super-adapter&lt;/strong&gt;. With thinking mode on, that merged adapter lifted cross-harness mean &lt;code&gt;pass@1&lt;/code&gt; from &lt;strong&gt;55.5% to 63.5%&lt;/strong&gt; while cutting tool calls by &lt;strong&gt;19% to 48%&lt;/strong&gt; (and by &lt;strong&gt;53% to 73%&lt;/strong&gt; with thinking off).&lt;/p&gt;
&lt;p&gt;This reinforces the boundary from my &lt;a href=&quot;/work/offline-gcp-iam-rag/&quot;&gt;offline IAM lab&lt;/a&gt;: &lt;strong&gt;fine-tune for behavior, retrieve facts.&lt;/strong&gt; A harness adapter never memorizes your repository or policy manuals. It teaches the model the reflexes of a specific runtime.&lt;/p&gt;
&lt;h2 id=&quot;what-this-means-for-enterprise-and-sovereign-ai-costs&quot;&gt;What This Means for Enterprise and Sovereign AI Costs&lt;/h2&gt;
&lt;p&gt;Multi-turn agent loops multiply token costs fast. A 20-step coding or triage run calling a hosted frontier API pays for your system prompt and accumulated tool output on every single turn. For regulated Canadian or mid-market workloads, sending internal schemas and logs to external APIs is often off the table anyway due to &lt;code&gt;PIPEDA&lt;/code&gt;, &lt;code&gt;Quebec Law 25&lt;/code&gt;, or &lt;code&gt;CLOUD Act&lt;/code&gt; constraints.&lt;/p&gt;
&lt;p&gt;Hosting one frozen open-weights model on regional cloud GPUs or local hardware and swapping small LoRA harness adapters attacks both accuracy and unit economics at the same time. Each adapter is tens of megabytes rather than a full checkpoint, so one shared base model can serve multiple internal workflows. Cutting token consumption roughly in half per task translates directly into lower latency and roughly half the GPU burn per run.&lt;/p&gt;
&lt;aside class=&quot;callout&quot;&gt;
&lt;div class=&quot;callout-title&quot;&gt;Fix Your Harness Before You Spend a Dollar on RL&lt;/div&gt;
&lt;p&gt;I will not approve GPU or RL pipeline budget for harness adapters until three things are already true:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Verifiable rewards already exist.&lt;/strong&gt; Coding and terminal benchmarks have cheap deterministic graders like exit codes and unit tests. Enterprise workflows like proposal generation, ticket triage, or compliance review rarely have crisp pass/fail signals. Without trustworthy evals, RL optimizes for a broken proxy.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;The harness contract is stable.&lt;/strong&gt; Changing your system prompt, tool schemas, or compaction threshold can silently break a harness-tuned LoRA. You now own adapter versioning, regression eval suites, and scheduled retraining in CI/CD.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Token burn actually hurts your monthly bill.&lt;/strong&gt; If your loop is unbounded, your tools dump 50KB of raw JSON into context, and you lack basic validators, fix the harness first. You will get bigger savings for a fraction of the maintenance cost.&lt;/li&gt;
&lt;/ol&gt;
&lt;/aside&gt;
&lt;h2 id=&quot;when-to-use-what&quot;&gt;When to Use What&lt;/h2&gt;
&lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th style=&quot;text-align: left&quot;&gt;Approach&lt;/th&gt;&lt;th style=&quot;text-align: left&quot;&gt;Best For&lt;/th&gt;&lt;th style=&quot;text-align: left&quot;&gt;Token &amp;amp; Hosting Economics&lt;/th&gt;&lt;th style=&quot;text-align: left&quot;&gt;Operational Overhead&lt;/th&gt;&lt;th style=&quot;text-align: left&quot;&gt;Where It Breaks&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: left&quot;&gt;&lt;strong&gt;Frontier API + Off-the-Shelf Harness&lt;/strong&gt;&lt;/td&gt;&lt;td style=&quot;text-align: left&quot;&gt;Fast pilots, general coding, low-volume internal tools&lt;/td&gt;&lt;td style=&quot;text-align: left&quot;&gt;High per-token cost; zero GPU ops&lt;/td&gt;&lt;td style=&quot;text-align: left&quot;&gt;Minimal&lt;/td&gt;&lt;td style=&quot;text-align: left&quot;&gt;Data residency limits and compounding multi-turn API spend&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: left&quot;&gt;&lt;strong&gt;Lean Custom Harness + Deterministic Validators&lt;/strong&gt;&lt;/td&gt;&lt;td style=&quot;text-align: left&quot;&gt;Domain workflows with strict rules and fixed schemas&lt;/td&gt;&lt;td style=&quot;text-align: left&quot;&gt;Moderate API or self-hosted cost&lt;/td&gt;&lt;td style=&quot;text-align: left&quot;&gt;Code, CI/CD, and validator maintenance&lt;/td&gt;&lt;td style=&quot;text-align: left&quot;&gt;Models still waste turns fighting harness-specific quirks&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: left&quot;&gt;&lt;strong&gt;Custom Harness + RL LoRA Harness Adapter&lt;/strong&gt;&lt;/td&gt;&lt;td style=&quot;text-align: left&quot;&gt;High-volume or sovereign open-weights deployments with stable tool contracts&lt;/td&gt;&lt;td style=&quot;text-align: left&quot;&gt;Best unit economics (~50% fewer tokens on one shared base model)&lt;/td&gt;&lt;td style=&quot;text-align: left&quot;&gt;Requires RL pipeline, verifiable evals, and adapter versioning&lt;/td&gt;&lt;td style=&quot;text-align: left&quot;&gt;Prompt/schema drift or weak reward signals&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;p&gt;Start with a small, explicit harness and plain validators you can debug. What changes my mind and justifies RL harness adapters is high-volume or sovereign open-weights traffic where the tool contract has settled, your evals are solid, and cutting multi-turn token burn in half materially moves your monthly GPU bill.&lt;/p&gt;
&lt;h2 id=&quot;appendix-under-the-hood-mechanics-that-separate-harnesses&quot;&gt;Appendix: Under-the-Hood Mechanics That Separate Harnesses&lt;/h2&gt;
&lt;p&gt;You do not strictly need to know how an edit tool counts leading spaces to make a platform decision, but I love reading these small mechanics—they are a great exercise for the brain, and they show exactly why two harnesses running the same model weights behave so differently in practice. Across the three sources, five small details stand out:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Relative indentation with &lt;code&gt;←&lt;/code&gt; arrows (Aider&#39;s &lt;code&gt;RelativeIndenter&lt;/code&gt;):&lt;/strong&gt; LLMs frequently miscount leading spaces in deeply nested files. Instead of matching raw absolute whitespace, Aider strips leading whitespace shared with the preceding line and inserts a Unicode left-arrow (&lt;code&gt;←&lt;/code&gt;) whenever indentation steps back relative to the line above. That lets search-and-replace blocks match even when the model gets the outer nesting depth wrong.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Unicode and smart-quote cleanup with byte-preserving overlay (Pi):&lt;/strong&gt; Models regularly slip curly quotes, non-ASCII Unicode variants, or trailing spaces into code edits. Pi applies NFKC Unicode normalization, strips trailing whitespace, and converts smart quotes to plain ASCII while computing the match, then overlays only the changed lines back onto the original raw file bytes so untouched lines keep their exact original spaces, tabs, and line endings.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;A 9-stage cascading fuzzy matcher (OpenCode):&lt;/strong&gt; Rather than failing immediately on a whitespace mismatch and burning another LLM turn, OpenCode&#39;s &lt;code&gt;edit&lt;/code&gt; tool runs up to nine sequential replacer passes from strictest to loosest (&lt;code&gt;Simple&lt;/code&gt; exact match, &lt;code&gt;LineTrimmed&lt;/code&gt;, &lt;code&gt;BlockAnchor&lt;/code&gt; using first and last line anchors with Levenshtein similarity on the interior, &lt;code&gt;WhitespaceNormalized&lt;/code&gt;, &lt;code&gt;IndentationFlexible&lt;/code&gt;, &lt;code&gt;EscapeNormalized&lt;/code&gt;, &lt;code&gt;TrimmedBoundary&lt;/code&gt;, &lt;code&gt;ContextAware&lt;/code&gt;, and &lt;code&gt;MultiOccurrence&lt;/code&gt;). The first pass that finds a clean match applies the edit and exits.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Why harnesses avoid line-number edits and enforce read-before-edit (&lt;code&gt;arXiv:2609.00006&lt;/code&gt;):&lt;/strong&gt; The 11-system study explicitly warns against line-number-based edit contracts because models drift on line counts far more often than on contextual text matches. To stop hallucinated patches, harnesses like Claude Code and Mistral Vibe enforce a read-before-edit rule (refusing to edit a file until the model has explicitly read it in the session), while Codex CLI relies on a custom &lt;code&gt;*** Begin Patch&lt;/code&gt; grammar that its models are trained to emit.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Disk-backed log truncation, mid-flight steering, and overnight &quot;Dreaming&quot; (Pi and OpenClaw):&lt;/strong&gt; When a command like &lt;code&gt;pytest&lt;/code&gt; produces 15,000 lines of output, Pi writes all 15,000 lines to disk and returns only the last 2,000 lines plus the file path, giving the model the failure trace without blowing the context window. Pi also runs independent tool calls in parallel, lets users inject a steering prompt right before tool outputs return to the model, and stores turns in an append-only &lt;code&gt;session.jsonl&lt;/code&gt; with &lt;code&gt;id&lt;/code&gt; and &lt;code&gt;parent&lt;/code&gt; pointers so conversations can branch like Git commits. OpenClaw takes a long-horizon approach with a 30-minute &lt;code&gt;HEARTBEAT.md&lt;/code&gt; check and overnight Light, Deep, and REM &quot;Scheduled Dreaming&quot; passes that promote durable facts from daily logs into &lt;code&gt;MEMORY.md&lt;/code&gt;.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id=&quot;sources&quot;&gt;Sources&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Maarten Grootendorst, &lt;a rel=&quot;noopener noreferrer external&quot; target=&quot;_blank&quot; href=&quot;https://newsletter.maartengrootendorst.com/p/a-visual-guide-to-agent-harnesses&quot;&gt;A Visual Guide to Agent Harnesses&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Hugging Face, &lt;a rel=&quot;noopener noreferrer external&quot; target=&quot;_blank&quot; href=&quot;https://huggingface.co/blog/harness-adapters-at-scale&quot;&gt;Introducing Harness Adapters&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Paul Barbaste, Tristan Darrigol, Germain Vu, Tom Wiltberger, &lt;a rel=&quot;noopener noreferrer external&quot; target=&quot;_blank&quot; href=&quot;https://arxiv.org/pdf/2609.00006&quot;&gt;Harness Engineering: Anatomy, Architecture, and Evolution of Coding Agents (arXiv:2609.00006)&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
</content>
        
    </entry>
    <entry xml:lang="en">
        <title>How We Replaced a $10k/mo Managed ETL Pipeline With Under $1k/mo in Native GCP Primitives</title>
        <published>2026-11-27T00:00:00+00:00</published>
        <updated>2026-11-27T00:00:00+00:00</updated>
        
        <author>
          <name>Liudas Sodonis</name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://sodonis.ca/writing/cloud-primitives-vs-managed-etl/"/>
        <id>https://sodonis.ca/writing/cloud-primitives-vs-managed-etl/</id>
        
        <content type="html" xml:base="https://sodonis.ca/writing/cloud-primitives-vs-managed-etl/">&lt;p&gt;My worst managed-tool call was choosing GCP Cloud Data Fusion for a legacy SQL Server to BigQuery migration. It was well-marketed and looked like the fastest path, so I signed off on it.&lt;/p&gt;
&lt;p&gt;Over the next three months, while the team was still building downstream data models and dashboards, the managed service billed around &lt;strong&gt;$10,000 a month&lt;/strong&gt; without proper monitoring or automated checks against the source databases. When we finally audited the numbers, they were not matching production. I got on daily calls with the client CTO, escalated with Google engineering to confirm whether Data Fusion could hit our cost and accuracy targets, and owned the rebuild.&lt;/p&gt;
&lt;p&gt;We replaced it with a &lt;strong&gt;Debezium server feeding native GCP primitives&lt;/strong&gt; (Pub/Sub, Cloud Storage staging, and BigQuery). Monthly ingestion spend dropped from &lt;strong&gt;$10,000 to under $1,000&lt;/strong&gt;, and the permanent rule I installed afterward is simple: no managed data tool gets past week two without a hard billing cap and automated row-count parity checks against source tables.&lt;/p&gt;
&lt;h2 id=&quot;why-the-native-primitives-worked-better&quot;&gt;Why the Native Primitives Worked Better&lt;/h2&gt;
&lt;p&gt;For a multi-year pipeline, managed visual ETL platforms stop acting like a shortcut and start acting like a tax. You pay for always-on cluster capacity and instance licensing even when your daily data delta is fairly modest.&lt;/p&gt;
&lt;p&gt;Debugging inside a black-box UI is also miserable. When a legacy SQL Server schema changes silently or a retry loop locks a table, you spend hours digging through proprietary abstractions instead of reading a normal stack trace. Moving to Debezium and plain GCP primitives cut the cloud bill by roughly 10x and gave us normal code, normal logs, and normal tests.&lt;/p&gt;
&lt;h2 id=&quot;building-is-cheap-now-maintaining-for-five-years-is-not&quot;&gt;Building Is Cheap Now. Maintaining for Five Years Is Not.&lt;/h2&gt;
&lt;p&gt;This is where build-vs-buy conversations usually go wrong, especially now that LLMs let people spin up working tools left and right.&lt;/p&gt;
&lt;p&gt;The biggest cost of an internal tool is never building version one. It is owning it for three to five years: updating libraries, applying security patches, handling schema drift, and adding new features when business needs change.&lt;/p&gt;
&lt;p&gt;In too many companies, one strong engineer (&quot;Bob&quot;) builds a clever internal service and becomes its only owner. Six months later, Bob switches teams, runs out of time, or leaves the company, and nobody else wants to touch the code.&lt;/p&gt;
&lt;aside class=&quot;callout&quot;&gt;
&lt;div class=&quot;callout-title&quot;&gt;Cloud Bills Are Half the Cost. Maintenance Is the Other Half.&lt;/div&gt;
&lt;p&gt;Cutting $9k/month off a cloud invoice is only a win if you do not spend $12k/month of senior engineering time babysitting fragile scripts. I will not approve a custom internal tool built by one lone engineer. Either a real team owns it with a roadmap and on-call coverage, or we buy it so another vendor owns the patching and security team.&lt;/p&gt;
&lt;/aside&gt;
&lt;p&gt;Buying also has an underrated people benefit: users accept boundaries. Nobody expects Excel to rewrite itself around one department&#39;s whim, whereas an internal tool attracts endless custom feature requests the day it ships.&lt;/p&gt;
&lt;h2 id=&quot;when-to-buy-vs-when-to-build-on-primitives&quot;&gt;When to Buy vs. When to Build on Primitives&lt;/h2&gt;
&lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th style=&quot;text-align: left&quot;&gt;Dimension&lt;/th&gt;&lt;th style=&quot;text-align: left&quot;&gt;Heavy Managed ETL&lt;/th&gt;&lt;th style=&quot;text-align: left&quot;&gt;Debezium + Native Cloud Primitives&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: left&quot;&gt;&lt;strong&gt;Time to first demo&lt;/strong&gt;&lt;/td&gt;&lt;td style=&quot;text-align: left&quot;&gt;Days&lt;/td&gt;&lt;td style=&quot;text-align: left&quot;&gt;1–2 weeks&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: left&quot;&gt;&lt;strong&gt;Monthly cloud bill&lt;/strong&gt;&lt;/td&gt;&lt;td style=&quot;text-align: left&quot;&gt;High (~$8k–$15k/mo)&lt;/td&gt;&lt;td style=&quot;text-align: left&quot;&gt;Low (under $1k/mo)&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: left&quot;&gt;&lt;strong&gt;Engineering overhead&lt;/strong&gt;&lt;/td&gt;&lt;td style=&quot;text-align: left&quot;&gt;Low at first; painful on weird edge cases&lt;/td&gt;&lt;td style=&quot;text-align: left&quot;&gt;Requires CI/CD, alerting, and schema-drift ownership&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: left&quot;&gt;&lt;strong&gt;Debugging&lt;/strong&gt;&lt;/td&gt;&lt;td style=&quot;text-align: left&quot;&gt;Vendor UI and opaque logs&lt;/td&gt;&lt;td style=&quot;text-align: left&quot;&gt;Normal code, unit tests, and cloud logging&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: left&quot;&gt;&lt;strong&gt;When to pick it&lt;/strong&gt;&lt;/td&gt;&lt;td style=&quot;text-align: left&quot;&gt;Short pilots or teams without dedicated platform engineers&lt;/td&gt;&lt;td style=&quot;text-align: left&quot;&gt;Multi-year pipelines backed by a team that owns operations&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;p&gt;Use managed tools when you need to prove business value quickly or when you have no dedicated platform team to own security and upgrades—paying $8k–$10k/month to a vendor is still cheaper than hiring a senior engineer from scratch. What flips the call is longevity and ownership: once a high-frequency workload is staying for three to five years and you have a team to maintain it, plain cloud primitives win on both cost and control.&lt;/p&gt;
</content>
        
    </entry>
</feed>
