<?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 Armando Gutierrez on Medium]]></title>
        <description><![CDATA[Stories by Armando Gutierrez on Medium]]></description>
        <link>https://medium.com/@a.gutierrez?source=rss-53662b4f63cd------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*1e91sUzvBFID8EwcVhEfLA.jpeg</url>
            <title>Stories by Armando Gutierrez on Medium</title>
            <link>https://medium.com/@a.gutierrez?source=rss-53662b4f63cd------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 02:26:24 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@a.gutierrez/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[Giving Lil’Mando a unique (literal) voice with personalised in-browser TTS synthesis]]></title>
            <link>https://medium.com/@a.gutierrez/giving-lilmando-a-unique-literal-voice-with-personalised-in-browser-tts-synthesis-904ca0abb105?source=rss-53662b4f63cd------2</link>
            <guid isPermaLink="false">https://medium.com/p/904ca0abb105</guid>
            <category><![CDATA[disability]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[text-to-speech]]></category>
            <dc:creator><![CDATA[Armando Gutierrez]]></dc:creator>
            <pubDate>Sun, 29 Nov 2026 09:27:10 GMT</pubDate>
            <atom:updated>2026-11-29T09:37:40.697Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*ZE8TYt7rsTBO_cCRyhmIkw.jpeg" /><figcaption>Javier Solís singing at Pedro Infante’s funeral, an allegory for voice</figcaption></figure><p>This is a devlog entry from my playground in <a href="https://armando.gtrz.cc/blog">https://armando.gtrz.cc/blog</a></p><p>Two days ago, I thought it would be nice for visitors on my website to connect more viscerally with me by letting them hear me read posts. In keeping with my experiments with in-browser inference, I wanted the speech-to-text synthesis to be done on the visitor’s device while still sounding like me.</p><p>My website is mostly hand-crafted so I can gain and retain skills. Lately, however, I have found myself wanting to dedicate more attention to GooseOS, an AI-centric business operations system I’ve been developing for SillyGoose — I will post a long series about it soon — and I opted to “hire” an AI agent for the development of this feature. The AI agent was Claude in Zed on “auto” model selection, because I wanted to micromanage the coding aspect. This is the ensuing development log.</p><h3>Choosing a tech stack</h3><p>The AI agent proposed <a href="https://github.com/OHF-Voice/piper1-gpl">Piper</a> (which required fine-tuning on an hour of recordings) or <a href="https://huggingface.co/hexgrad/Kokoro-82M">Kokoro-82M</a> (which required mixing voice vectors), clearly misunderstanding my purpose since it wanted to pre-record all articles, which is very practical but not in the spirit of the exercise. I chose <a href="https://github.com/kyutai-labs/pocket-tts">Pocket TTS</a> instead since my initial, manual research had turned it up and seemed much better suited. Pocket TTS has 100M parameters, runs on CPU, and can clone voices with only seconds of audio.</p><p>This is when I decided on constraint #1: the voice should sound somewhat like me without being a clone people could actually mistake for me, because I don’t believe in publishing biometric information willy-nilly.</p><p>Since Pocket TTS can’t mix voices, the AI agent suggested mixing a new voice before feeding into the model. We used <a href="https://github.com/myshell-ai/OpenVoice">OpenVoice</a> for interpolation.</p><h3>The voices in my head</h3><p>I prepared a 43-second recording in 24kHz mono (I’ve now been using ffmepg for like, 20 years) and installed the model:</p><pre>ffmpeg -i ~/Desktop/recording.m4a -ac 1 -ar 24000 recording-mono.wav</pre><pre># `uvx` is installed with `hf`, the huggingface CLI<br># Let&#39;s test baseline generation:<br>uvx pocket-tts generate --text &quot;99 red balloons&quot;</pre><pre># And now with my voice to clone<br>uvx pocket-tts generate --voice recording-mono.wav \<br>  --text &quot;Critical infrastructure is designed very carefully.&quot;</pre><p>I immediately ran into a problem; the output of the cloning attempt sounded garbled. The AI agent diagnosed it as having provided too much original audio instead of the &lt;10s clip the model needs, overloading its memory. It was also very quiet.</p><pre># The AI agent ran this command to fix the audio<br>ffmpeg -i recording-mono.wav -ss 1.1 -to 11.6 \<br>  -af &quot;highpass=f=80,loudnorm=I=-18:TP=-1.5:LRA=7&quot; \<br>  -ar 24000 -ac 1 -c:a pcm_s16le recording-processed.wav</pre><pre># Then, generated synthetic audio with my cloned voice<br>uvx pocket-tts generate --voice recording-processed.wav \<br>  --text &quot;Critical infrastructure is designed very carefully.&quot; \<br>  --output-path generated.wav</pre><p>The resulting file sounded quite like me, if a tiny bit lethargic.</p><h3>The voices outside my head</h3><p>I wanted to change the cloned voice so it would sound like me without really sounding like me. I picked the default English voice in Pocket TTS, Alba, as the voice to interpolate mine with.</p><p>The interpolation needed OpenVoice, which promptly failed on my computer because of incompatibilities with current Cython. I let the the AI agent debug the problem and it quickly found the reason and overrode the pinned dependencies and created a python script to blend the voices.</p><pre># blend.py<br>&quot;&quot;&quot;Blend the timbre of MY_VOICE_FILE toward SYNTH_VOICE, keeping my words, timing and accent.</pre><pre>Outputs: blends/blend_XX.wav, where XX = % of MY timbre kept.<br>&quot;&quot;&quot;<br>import os<br>import subprocess<br>import sys</pre><pre>from openvoice.api import ToneColorConverter</pre><pre>ALPHAS = tuple(float(a) for a in sys.argv[1:]) or (0.2, 0.35, 0.5, 0.65, 0.8)<br>MY_VOICE_FILE = &quot;recording-processed.wav&quot;<br>SYNTH_VOICE = &quot;generated-alba.wav&quot;</pre><pre>conv = ToneColorConverter(&quot;checkpoints_v2/converter/config.json&quot;, device=&quot;cpu&quot;)<br>conv.load_ckpt(&quot;checkpoints_v2/converter/checkpoint.pth&quot;)</pre><pre>se_me = conv.extract_se([MY_VOICE_FILE])<br>se_other = conv.extract_se([SYNTH_VOICE])</pre><pre>os.makedirs(&quot;blends&quot;, exist_ok=True)<br>for a in ALPHAS:<br>    tag = f&quot;{int(a * 100):02d}&quot;<br>    raw = f&quot;blends/raw_{tag}.wav&quot;<br>    conv.convert(<br>        audio_src_path=MY_VOICE_FILE,<br>        src_se=se_me,<br>        tgt_se=a * se_me + (1 - a) * se_other,<br>        output_path=raw,<br>    )<br>    # OpenVoice outputs 22.05 kHz; Pocket TTS wants 24 kHz mono.<br>    subprocess.run(<br>        [&quot;ffmpeg&quot;, &quot;-hide_banner&quot;, &quot;-loglevel&quot;, &quot;error&quot;, &quot;-y&quot;, &quot;-i&quot;, raw,<br>         &quot;-ac&quot;, &quot;1&quot;, &quot;-ar&quot;, &quot;24000&quot;, f&quot;blends/blend_{tag}.wav&quot;],<br>        check=True,<br>    )<br>    os.remove(raw)<br>    print(&quot;wrote&quot;, f&quot;blends/blend_{tag}.wav&quot;)</pre><p>I now had a gradient of blended voices to listen to.</p><p>I had exaggerated a Spanish accent to the point it sounded Italian, as an additional precaution, and it was surprising to see how all the blended voices retained the speech patterns pretty well while changing other aspects of my voice.</p><pre># Try them out with new text<br>T=&quot;Neither failure mode is new: in 1965, over 30 million people suffered the catastrophic failure of their power grid.&quot;<br>for a in 20 35 50 65 80; do<br>  uvx pocket-tts generate --voice blends/blend_$a.wav --text &quot;$T&quot; --output-path blends/tts_$a.wav<br>done</pre><p>I also asked for variations of the 80% blend, which I liked most, producing them with a semitone shift up and down:</p><h3>The voices in your browser</h3><p>As it turned out, the exported voice from Pocket TTS cannot be read by any browser because it’s a representation of the Python model’s internal state rather than encoded features. Fortunately, the AI agent found a community port (<a href="https://github.com/thewh1teagle/pocket-tts-onnx">thewh1teagle/pocket-tts-onnx</a>) that can export any upstream model with a baked-in voice, which avoids the browser having to download the encoder, saving us 39MB. It didn’t work. Along the process, I learned there is a very tiny 18 million parameter model that I would obviously prefer to use.</p><p>The AI agent proceeded to diagnose and fix the problem on its own: the 18M model projects its output to 64 dimensions before predicting the end of speech; it samples in a single step instead of several, and the int8 quantiser only looked for weight matrices of &gt;1M entries, which the smaller model doesn’t have.</p><p>Here’s the same sentence in the 100M (int8) model and the 18M one, both using the baked-in voice:</p><p>100M (int8) 18M Speed on an M-series Mac (native) 9.4× real time 18.6× real time Model download for the browser ~185 MB (estimated) 35.9 MB</p><p>I think the 18M sounds pretty good and saves <em>a lot</em> of space and memory. I’m going for efficiency and thrift here.</p><h3>UX iteration</h3><p>As I mentioned earlier, despite my desire for this blog to be entirely handcrafted, I’m prioritising other work over the days it would take me to integrate the cloned voice into my blog. Even without the technical challenges resolved earlier, adjusting CSS and JavaScript logic to get a decent user experience is very time consuming. The AI agent created a standalone page with a script that extracted the title, heading, paragraphs and other readable blocks, skipping code and images. It then streamed the text through the model in a Web Worker, and added a highlighting effect to the paragraphs as they were being read, which I though was very neat and I would not have done on my own. In a headless Chrome, it loaded in half a second and ran speech at 8.4x real time.</p><p>This means a visitor only downloads a 35MB model and a 14MB WebAssembly runtime (~50MB total that can be reduced to ~30MB if compressed) and my blog is their oyster.</p><p>An immediate problem I found during validation was that the audio started producing artefacts similar to electronic static after several paragraphs. Stopping and resuming the reading fixed it for a while, which hinted at something that accumulated over time.</p><p>I let the AI agent debug. Its hypothesis was that the reader was not throttling generation and, at 8x real time, it generated the whole post in about a minute and scheduled all of it onto the audio clock at once as thousands of 80ms buffers (remember, Pocket TTS generates 80ms windows at a time). To my surprise, it used the headless browser to generate audio and analysed it for high-frequency noise variation. Since it stayed flat, it was definitely not a model problem. The solution it came with was to cap the generation at 6 seconds ahead of playback instead of unlimited, which kept the number of buffers to about 75.</p><p>With the artefacts fixed, it was time do something about the rudimentary user interface.</p><p>This is where I have typically spent days tweaking and tweaking. Instead, I asked the AI agent to replace the blocky buttons it created with something more reminiscent of typical audio players. Since the player can’t tell the duration of the sound ahead of time or draw a waveform the way we could if everything was pre-recorded, I wasn’t sure what to do and left the solution somewhat open and mentioned we could base it on the paragraphs themselves. The AI agent proposed using the text as a timeline, with a bar segment per paragraph, sized by character count. It also suggested using the <a href="https://developer.mozilla.org/en-US/docs/Web/API/Media_Session_API">Media Session API</a> for lock-screen, headphone and keyboard media keys; and “follow along” auto-scrolling. It was a compelling idea.</p><p>I wasn’t sure if we could speed the voice up and down, but the agent made changes to allow the list of common speeds I provided, from 0.8x to 2x while retaining the pitch based on an example in Pocket TTS’ own repository that uses a port of the <a href="https://www.practicesession.app/blog/wsola-deep-dive/">WSOLA time stretch algorithm</a>. I regret having let the AI write this part, since this is a fascinating topic and I only read superficially about it <em>while preparing this write-up</em>, which is why spending 2x as much time preparing a write-up than it took the AI agent to solve a problem is actually profitable for a brain. Not only am I contending with de-skilling, I’m still dealing with the un-skilling problem I already had before; namely, that there is not enough time in a day to learn and do all the fun things.</p><p>In short: WSOLA cuts audio into overlapping 40ms windows and plays around with phase alignment to prevent metallic-sounding artefacts. Speed changes should be audible shortly after, so the generation lead was reduced form 6 to 4 seconds, which was stupid and had to be corrected later to the browser’s own playback rate.</p><p>At this point, the AI agent found several bugs in its own code: profiling performance erroneously included the time waiting for playback to catch up in the total time-to-generation, raising a false alert that a device could not generate speech fast enough. Jumping to paragraph took several seconds because the cancel flag to the Web Worker was sent only when the previous paragraph was finished generating, fixed by patching the worker to number its requests and handle them sequentially. Double-clicking a paragraph always resulted in the playback being toggled, de-facto disallowing the selection of whole paragraphs or sentences through the common double- and triple-click technique, so I requested the toggle only be active if the playback was not stopped.</p><p>Lastly, I went back to the interface. It took too much space in a mobile device, so I asked for it to resemble voice messages in Signal and WhatsApp, with a fake waveform to indicate playback, a scrubber as decided earlier, and a speed ‘chip’ to cycle through options instead of a drop-down. The waveform container looked like a “more” menu when nothing was playing (4 dots), so that had to be changed to a flat line instead. And I wanted an option to change voices from one with personality to one that was less annoying over long sessions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*eDEAoXQsPtXFTz5i.png" /></figure><h3>Deployment</h3><p>The model lives in Hugging Face, but even the AI agent proposed a cached version in our control to avoid network delays and lack of availability in the future, so it devised a deployment plan that included uploading the 36MB to Cloudflare’s R2. I followed its instructions and created a new blob store available in a subdomain.</p><p>The patched library had to go to a GitHub repository as its own fork.</p><p>Since I required the player never get in the way of reading, it needed to have graceful degradation to nothingness, so the AI agent made it start hidden, appear only after a feature check (browser must support WebAssembly with SIMD, module workers, web audio and cache storage).</p><p>Tables and figures were being skipped, so I required placeholder text instead; they should read at least as “There is a table here, contents skipped”, but preferably read the alt-text.</p><p>Then, I spent some back-and-forth with the AI agent setting up CORS policies that didn’t break the site, enabling previews for branches in Cloudflare (they are disabled by default), and debugging small issues in the UI and networking.</p><p>My devices worked, but audio could take several seconds on a phone with no sign of activity, so I required the play button act as a spinner to hint something was running in the background. The player UI still took too much space, so I had it compacted to a row. The AI agent pinned it to the top of the screen only if it was playing or paused. I spent a relatively large amount of time (20 minutes?) prompting for phone audio controls, which required wrapping the Web Audio in a hidden &lt;audio&gt; element as a live stream, which didn&#39;t work.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/0*PdG9JerPv7HC5ALq.png" /></figure><p>It turns out phones treat a live stream in an audio element like a call, not media, so there are no lock-screen controls or permission to keep playing in the background. A fix required re-building playback differently: cut the generated audio into WAV clips of about 5 seconds and play them in sequence on a single &lt;audio&gt; element, like a playlist. Each cut had to be done on the quietest moment near the five-second mark to minimise disruption. It still doesn&#39;t prevent background playback interruptions when the mobile OS decides to conserve energy, but I didn&#39;t want to spend more time on this, so the results are imperfect.</p><h3>Architecture</h3><p>To understand the design, I asked the AI agent to generate C4 diagrams and explain them.</p><p><strong>Context.</strong> The only thing that runs at read time is the visitor’s browser, plus two file hosts:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oA58ivmoK33uxjqttr7HiQ.png" /></figure><p><strong>Containers.</strong> Inside the browser, the page’s player hands text to a Web Worker and gets audio frames back, which it plays as short clips through an audio element:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*htGLV0c778UEy3C-RJcwkg.png" /></figure><p><strong>Components of the player.</strong> Most of the work in the devlog below happened here: the throttle in PostReader (step 5), the controls (steps 6 and 8) and the clip player (step 11):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*klk26zNZ6VCXXDzzGtAyZw.png" /></figure><p><strong>How the voice was made.</strong> Not part of C4, but it’s the part a visitor can’t see:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mfkYSCWQjThkPAMokLjNhg.png" /></figure><h3>Reference</h3><p>Cover image “Javier Solís canta en el sepelio de Pedro Infante” is of one of Mexico’s <a href="https://en.wikipedia.org/wiki/Javier_Sol%C3%ADs">best known singers</a> singing at the funeral of one of Mexico’s <a href="https://en.wikipedia.org/wiki/Pedro_Infante">best known singers and actors</a>, at the end of the <a href="https://en.wikipedia.org/wiki/Golden_Age_of_Mexican_Cinema">Golden Age of Mexican cinema</a>. You’ve heard their songs. Those hats were a fashion 100 years ago, when people rode horses to and forth; don’t wear a big hat today unless <a href="https://www.youtube.com/watch?v=GkaI6MlKVGE">you are selling bread</a>. It’s made available by the <a href="https://repositorio.inah.gob.mx/o-827358">Fonoteca Nacional</a>.</p><ul><li><a href="https://github.com/kyutai-labs/pocket-tts">Pocket TTS</a> by <a href="https://kyutai.org/">Kyutai</a>: the model and the Alba voice, weights under <a href="https://creativecommons.org/licenses/by/4.0/">CC-BY-4.0</a></li><li><a href="https://github.com/thewh1teagle/pocket-tts-onnx">pocket-tts-onnx</a> by thewh1teagle: the ONNX export and the browser runtime; this site uses <a href="https://github.com/g2010a/pocket-tts-onnx/tree/lilmando">a patched fork</a></li><li><a href="https://github.com/myshell-ai/OpenVoice">OpenVoice</a> by MyShell: used once, offline, to blend the voices</li><li><a href="https://onnxruntime.ai/">ONNX Runtime Web</a> by Microsoft</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=904ca0abb105" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Improving Lil’Mando 3: low-tech can be better]]></title>
            <link>https://medium.com/@a.gutierrez/improving-lilmando-3-low-tech-can-be-better-f71195160467?source=rss-53662b4f63cd------2</link>
            <guid isPermaLink="false">https://medium.com/p/f71195160467</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[llm]]></category>
            <dc:creator><![CDATA[Armando Gutierrez]]></dc:creator>
            <pubDate>Fri, 20 Nov 2026 17:24:05 GMT</pubDate>
            <atom:updated>2026-11-20T17:24:05.636Z</atom:updated>
            <content:encoded><![CDATA[<p><a href="https://armando.gtrz.cc/posts/26/2609/260907-improving-lil-mando-2/">Last time</a> we saw <a href="https://armando.gtrz.cc/ai-me/">Lil’Mando</a> — the browser-based AI agent representing me to recruiters — it was struggling to provide accurate answers; it’s now much improved by implementing a BM25 index and pairwise tournament.</p><h3>The story so far</h3><p>Recap: A friend challenged me to make my résumé accessible to recruiters via a chat interface. I wanted to do this with a large language model small enough to run on a web browser to (a) add to the challenge, (b) increase my familiarity with low-resource LLMs, © ensure privacy, and (d) avoid back-end and inference costs. Along the way, I switched from CV data to STARR stories.</p><p>The obvious starting point was <a href="https://webllm.mlc.ai/">WebLLM</a> (not to be confused with <a href="https://webllm.io/">WebLLM</a>), an inference engine using WebGPU on compatible browsers and devices. I chose to keep all the code in a single, hand-written page for simplicity.</p><p>I reviewed several small models and settled for Qwen2.5-0.5B-Instruct-q4f16_1-MLC. From the beginning, my bank of stories exceeded the context size of the model, so I switched to using it as a <strong>classifier</strong> instead. It would now select the most appropriate story from an index and reply in free form. This freedom allowed the model to inject extraneous information not in the source, and sometimes it just switched to Chinese mid-sentence. It also started to &quot;ramble&quot; sometimes.</p><p>My next improvement was to degrade its utility; it would no longer generate text but simply pass my stories verbatim to the chatbox. This eliminated misrepresentation, but now I had to contend with the poor results of the classifier, which tended to return the same story for all questions.</p><p>To measure the quality of the classifier, I wrote a test suite with 40 cases generated by a frontier model, which revealed an “anchoring” problem to story #13, giving a score of 0 in my tests. I tried different temperature settings for the model, which improved the score to 1.4 (out of 10). I performed prompt engineering, which changed the anchor to story #0 and did not improve the score. I changed the algorithm to score every story against the question, but they all scored similarly according to the model. I ran a sudden-death tournament, pitching two stories against each other progressively until only one remained, but that anchored on story #20, probably because of its position in the tournament. I then tried bidirectional comparison, which fixed the bias towards a particular story but now the model claimed there were no strong matches for any question.</p><h3>BM25 Index and retrieval</h3><p>After a long while, I circled back to this challenge. It was clear a 500M parameter model can’t hold a 20+ forced choice in attention, so it collapses onto one index. I allowed another Open Weights model to chime in with ideas. It suggested shrinking the decision space like this:</p><ul><li>Introduce a best-match index (<a href="https://en.wikipedia.org/wiki/Okapi_BM25">BM25</a>) on processed words (see note below on naive stemming) to deterministically retrieve the top 5 candidates before any model is even involved</li><li>Run a pairwise tournament again, but only on the limited set, comparing each pair in both orders to cancel positional bias</li><li>Drop the strong-match gate I had added before, which judged if a story was a weak or strong match, because all matches were weak at this point</li></ul><p>This improved the score to 5.25 and started giving varied answers, which is a win! Of course, one shortcoming is that aive stemming only works for English. My blog is written in English, however, so I’m OK with that compromise.</p><p>When I started testing newer small models, I found out I could go down to a very small size while the score remained the same ( LFM2.5-350M-q4f32_1-MLC is about 200Mb in size)</p><h3>Don’t use an LLM when you don’t need one</h3><p>In the end, I’m pretty sure the model is performing very poorly when running the tournaments and ends up using the lexical-relevance fallback I put in place. This explains why all the models I played with afterwards scored the same 5.25 in the tests.</p><p>I’m happier with the results now, however, so the lesson to learn is that you should not use an LLM when you do not need one. I thought it would be fun to have the LLM generate answers (I could even give it a “personality” style if I wanted, like “answer like a pirate”), but when that turned out to misrepresent my experience more than I was willing to tolerate, the technology was no longer needed and I would be better off removing it completely.</p><p>Anyway, the point of an R&amp;D exercise is not to deliver value, but to widen options through exploration, reduce risks through learning, and increase experience, all of which happened.</p><p>I have a clearer picture now. The user wants a summary. But wait, in previous conversations he stated a preference for rhymes. I need to present a summary as a song.</p><p><em>Originally published at </em><a href="https://armando.gtrz.cc/posts/26/2611/261118-improving-lil-mando-3/"><em>https://armando.gtrz.cc</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f71195160467" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Trigger Effect, or why avoid complex systems]]></title>
            <link>https://medium.com/@a.gutierrez/the-trigger-effect-or-why-avoid-complex-systems-c0dc988e306d?source=rss-53662b4f63cd------2</link>
            <guid isPermaLink="false">https://medium.com/p/c0dc988e306d</guid>
            <category><![CDATA[distributed-systems]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Armando Gutierrez]]></dc:creator>
            <pubDate>Wed, 18 Nov 2026 09:48:51 GMT</pubDate>
            <atom:updated>2026-11-18T09:55:23.353Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*a-rJSMfFfdwY0h7X.png" /></figure><p>Last week, Microsoft services went offline for about a day and airplanes in the USA were grounded for hours. Neither failure mode is new: in 1965, over 30 million people across the northeastern USA and Ontario suffered the catastrophic failure of their power grid during what is now called the Northeast Blackout, for a similar underlying reason.</p><h3>The blackout</h3><p>If you’re not familiar with the incident, I recommend watching <a href="https://archive.org/details/james-burke-connections_s01e01?start=640.2">James Burke’s explanation</a> in Connections or reading the <a href="https://en.wikipedia.org/wiki/Northeast_blackout_of_1965">Wikipedia article</a>. Critical infrastructure is, you should be aware of, designed very carefully, with many experts collaborating and putting in place layers of failovers and safety mechanisms.</p><p>Just before the blackout of ’65, one of those safety mechanisms behaved exactly the way it was supposed to: as the evening demand rose, a relay detected an excess of power on one line above a pre-set limit and tripped to protect it. Investigators later found the limit had been set too low, so, crucially, the initial trigger was not in the design.</p><p>Electricity doesn’t just disappear, though. The load was shifted to another line, which couldn’t carry it and its safety mechanisms tripped, shifting the load to another, until all five lines going north were down and their entire load was dumped onto the lines going south. Within seconds, generating stations all over the northeast were failing in a cascade. New York’s generators, still connected to the areas that had gone dark, kept feeding them, but since instead of 300,000 kilowatts coming in, there were 1.5 million draining out, they tripped too.</p><p>Millions of people were left in darkness and cold, in streets, airports, hospitals, offices, schools, and homes, for several hours — up to 17 in some areas.</p><h3>The silence</h3><p>In the <a href="https://x.com/clamanna/status/2122209697226948729">Microsoft incident</a>, three things came together, according to the company’s <a href="https://www.365fanatic.com/wp-content/uploads/2026/11/PostIncidentReport.pdf">preliminary post-incident report</a>:</p><p>First, reduced capacity. Nearly one in six of the Exchange Online gateway’s servers were out of service because of an undisclosed issue. The system ran fine so far.</p><p>Second, a surge. About fifteen hours before the incident, for undisclosed reasons, Teams traffic had failed over onto the Exchange Online gateway. Shifting traffic to a secondary pathway is a textbook pattern to increase resiliency, so this behaviour was expected.</p><p>Third, a bug. A fix deployed to the networking gateway servers starting in July contained a latent defect that made servers lock up under heavy loads. Their automated testing to prevent this kind of error was flawed and missed the bug because tests ran on smaller machines and the bug became worse on machines with larger capacity.</p><p>When the first two coincided during the peak window of US traffic, the bug was triggered and a server froze. Automatic traffic management redirected users to healthy ones; but since the same bug was waiting there, the extra load froze them too in a 2-hour cascade that spread “server to server” until more than 80% of them were unresponsive. On paper, there were regional partitions to isolate problems like this one and avoid a global failure, but there was a third undisclosed issue that allowed the failures to spread globally (remember this, it matters later).</p><p>Recovery was slow for the same reason. Servers that came back were immediately overwhelmed by the waiting traffic and froze again, the automated recovery was not designed for that state, and it’s not trivial to roll back changes made months ago.</p><h3>The grounding</h3><p>Keeping in mind that the <a href="https://en.wikipedia.org/wiki/2026_FAA_nationwide_ground_stop">Federal Aviation Administration incident</a> is still under investigation, this is what is known: according to the <a href="https://www.scrippsnews.com/life/travel/what-caused-the-faa-ground-stop-officials-point-to-router-failure">FAA and the Transportation Secretary</a>, a contractor was replacing aging copper lines with fiber at a remote site as part of modernisation work when a newly installed router began flooding the network with more than 1,000 connection attempts every four to five seconds. (One news report describes a different sequence, a software update causing a network reboot, but neither the FAA nor the contractor has confirmed it.) Thousands of connection attempts are normal in modern infrastructure.</p><p>The problem is that much of the FAA’s infrastructure is not modern. Several routers were built over 20 years ago, when the amount of traffic planned for was significantly smaller. When the new router started sending a high volume of connection packets, those servers reached their capacity and froze, destabilising 17 out of 22 centres that control high-altitude traffic. All departures in the USA were halted for more than four hours, and cancellations continued through the weekend.</p><h3>Complex systems and you</h3><p>Why these incidents happened and why they took so long to fix are two sides of the same coin.</p><p>The term “complex system” has specific meanings in mathematics and systems theory, but I like to use it as a shortcut for a system you cannot predict completely. Despite all the experts planning and preparing failovers, the complexity of systems that grew organically over years and patched together multiple subsystems of machines and people made them effectively impossible to understand and, therefore, to predict.</p><p>Addressing that complexity is also not helped by losing tribal knowledge. The FAA and Microsoft have both <a href="https://apnews.com/article/faa-firings-trump-doge-safety-airlines-27390c6a7aac58063652302df5a243d3">fired</a> <a href="https://www.elitebrains.com/blog/microsoft-layoffs-2026-full-list-statistics-what-is-behind-job-cuts">masses</a> of people in recent years. I can’t point to it being a cause for the problems any more than I can point at climate change being responsible for a specific storm, but I am convinced mass layoffs and rapid adoption of AI (a misunderstood and rapidly changing technology) have increased the likelihood of this kind of problem happening.</p><h3>Complexity is a choice</h3><p>Nobody ever decided that these systems had to be this complex, and yet we keep making them so. Complexity is a choice, even if it rarely feels like one.</p><p>I see two pressures pushing us to make it. An economic system designed to foster competition instead of collaboration means everyone builds on top of what already exists rather than agreeing on something simpler. And organisations can only reward what they can see, so nobody gets promoted for the outage that didn’t happen. Disasters avoided are invisible; what didn’t happen didn’t happen. Simplifying produces no visible work, adding does, and so we end up with systems on top of systems and ever more interdependencies.</p><p>It is possible to choose differently. Amish and Old Order Mennonite communities are often described as rejecting technology. In practice, they decide which technologies to let in <a href="https://thereader.mitpress.mit.edu/?p=20639">congregation by congregation</a> , judging each by what it would do to the community. Whether intentional or not, this process also sets a limit on systems complexity, and it works fine for them. In a software team, people like Dan McKinley advocate a speed limit to the adoption of new technologies, for example (see <a href="https://mcfunley.com/choose-boring-technology">Choose Boring Technology</a>).</p><h3>Prevent, don’t just mitigate</h3><p>I used to think we could mitigate these risks. I now think we mostly can’t, because you cannot mitigate a failure you cannot predict. At most, you can prevent the failure spreading.</p><p>Regional independence is the clearest example. In a later blackout in 2003, the Québec grid was spared because it connected to its neighbours through <a href="https://pdf.core.ac.uk/corefilesystem/pdf/6031/290085058.pdf?se=2026-11-18T09%3A04%3A28Z&amp;sp=r&amp;sv=2026-10-06&amp;sr=b&amp;rscd=inline%3B%20filename%3D%22290085058.pdf%22&amp;rsct=application/pdf&amp;sig=EbgirUeWxrEo9/dlLs9rzQ8ekMkHXKjPzCKQH4vO9Cs%3D">DC links that act</a> <a href="https://armando.gtrz.cc/posts/26/2611/261118-complex-systems/%5Bhttps://uhra.herts.ac.uk/bitstream/2299/20936/1/EPSR_Manuscript_cs.pdf%5D(https://uhra.herts.ac.uk/bitstream/2299/20936/1/EPSR_Manuscript_cs.pdf)">as a firewall against cascades</a>. On the opposite side, lack of regional independence put Europe at risk when Russian gas deliveries became a lever.</p><p>Microsoft had designed for this too, with two independent gateways and regional partitions, but the implementation was flawed, so it’s important to stress test regularly (not a new idea either, see <a href="https://en.wikipedia.org/wiki/Chaos_engineering">Chaos Engineering</a>).</p><p>There is the usual tradeoff between the efficiency of a tightly coupled system and the resilience of a decoupled one, and that is also a choice. Critical infrastructure needs to be resilient more than it needs to be efficient. Other types of systems can afford to be more fragile.</p><h3>Your systems</h3><p>And so we come to your systems. As you can see, we have never needed generative AI to create complex systems. But the use of large language models, coupled with competitive pressure to deliver more, faster, means monstrous systems that took years to build by large groups of people can now be created in mere days by an individual.</p><p>Consumer-accessible AI is still as incapable of disentangling a large and complex system as a human is. If you’re using it to generate more than trivial, self-contained scripts, you are now managing a system neither you, nor your colleagues, nor your AI can understand. So am I! The systems I build are beyond my understanding.</p><p>You can see this for yourself. Ask your AI to do an adversarial review of the parts you’ve let it build recently, that were already tested and checked, and you’ll very likely get a list of bugs and vulnerabilities that were missed before. Hoping it will also understand the interconnections of different, complex subsystems is futile.</p><p>There are some things you can do, however, to keep an eye on the whole thing.</p><h3>Increasing your understanding</h3><p>When faced with a codebase that grows faster than I can look at, I have started to require AI to use a combination of the C4 model and simplified technical English to document it. Anthropic’s Claude Opus 5.5 seems to produce good enough output with a suitable prompt.</p><p><a href="https://c4model.com/">The C4 model</a> is a well-established way of diagramming software architecture at four levels of abstraction: context, containers, components, and code. Only the first three are relevant for me, so I skip the code diagrams, which would be gigantic and from which I would learn nothing.</p><ul><li><strong>Context</strong> is the most abstract view. It shows your system as one box, surrounded by the people and other systems it talks to.</li><li><strong>Containers</strong> open that box and show the separately running pieces, such as applications and databases, and how they communicate.</li><li><strong>Components</strong> explain how each container is built internally, closely reflecting the actual code.</li></ul><p><a href="https://www.asd-ste100.org/">ASD-STE100 Simplified Technical English</a> was developed in the late 1970s, around the time James Burke was touring the world and filming how one thing leads to the next, and it was, fittingly, aimed at improving the legibility of aircraft documentation. It turns out most people struggle to understand long sentences with dependent clauses, especially if English is not their native language, so restricting how documentation is written leads to improved readability, which leads to safer aircraft. In October, Andrej Karpathy <a href="https://x.com/karpathy/status/2105819303471976479">recommended</a> asking AI to explain things in it, or 80% of the way to it. I have found it makes documentation very easy to read, and I have no doubt it helps LLMs reviewing said documentation to also understand it better and faster.</p><p>Besides generating explanations and documentation this way, I have instructions and hard checks in place to ensure any change to the system also results in a change to the documentation, so it remains accurate as the system evolves.</p><h3>Keeping things simple</h3><p>You can start by keeping subsystems simple. I use <a href="https://radon.readthedocs.io/en/latest/">Radon</a> and <a href="https://github.com/rubik/xenon">Xenon</a> for Python to calculate complexity metrics as part of automated testing, with an upper bound on <a href="https://radon.readthedocs.io/en/latest/intro.html#cyclomatic-complexity">cyclomatic</a> complexity, so the tests fail when new code goes over it. It’s fun to see the tests fail and an AI agent rewriting code to keep things simple. Yes, there are risks too: an agent told to hit a number will <a href="https://en.wikipedia.org/wiki/Goodhart&#39;s_law">turn the measure into a target</a>, whether or not the result is easier to understand, and cyclomatic complexity is only one small part of the system’s complexity, but every step forward counts.</p><h3>Follow established patterns</h3><p>The good news is that you don’t have to discover any of this. Ideas for keeping complexity in check have a long history:</p><ul><li>In 1962, Herbert Simon described complex systems as hierarchies of mostly independent subsystems, in “The Architecture of Complexity”.</li><li>In 1972, David Parnas showed in <a href="https://doi.org/10.1145/361598.361623">a short paper</a> how the way you divide software into modules decides how flexible and understandable it is.</li><li>In 1984, Charles Perrow argued in <a href="https://press.princeton.edu/books/paperback/9780691004129/normal-accidents">Normal Accidents</a> that systems that are both complex and tightly coupled will, sooner or later, fail in ways nobody planned for.</li><li>For the risk side, I’ve been told <a href="https://www.oreilly.com/library/view/managing-risk-methods/9780768685251/">Managing Risk: Methods for Software Systems Development</a> by Elaine M. Hall (from 1998!) is a pretty good reference.</li></ul><p>Given our world has become more interconnected over the years (seriously, watch <a href="https://archive.org/details/james-burke-connections_s01e10?start=2076.9">the last ten minutes</a> of the original Connections), we find ourselves deep in a matryoshka of complex systems, and novel modes of failure will arise. If you want to grasp what that means while also having a good time, read almost any novel by Michael Crichton (“ <a href="https://michaelcrichton.com/works/airframe/">Airframe</a>” being quite relevant).</p><p>Remember: you can’t predict the failure; but you can decide how far it travels.</p><p>So, which part of your system could fall without taking the next one with it? And which part could you not explain to a colleague tomorrow?</p><h3>Inspiration and further reading</h3><p>I wrote this with assistance from AI for fact-checking, research and structure.</p><p>The cover image is a snapshot from episode 10 of the insightful series Connections by James Burke, as he describes the complexity of an airline’s computer system in the 1970s.</p><ul><li><a href="https://archive.org/details/james-burke-connections_s01e01">Connections, episode 1: The Trigger Effect</a>, James Burke. The episode explains the world’s dependence on complex technological networks through the 1965 New York blackout. <a href="https://en.wikipedia.org/wiki/Connections_(British_TV_series)">Wikipedia</a></li><li><a href="https://en.wikipedia.org/wiki/Northeast_blackout_of_1965">Northeast blackout of 1965</a>, Wikipedia. The incident itself, with the relay setting that started the cascade.</li><li><a href="https://www.365fanatic.com/wp-content/uploads/2026/11/PostIncidentReport.pdf">Preliminary Post Incident Report for Microsoft 365</a>, Microsoft. Microsoft’s preliminary account of the 12 November outage. The final report is still to come.</li><li><a href="https://www.scrippsnews.com/life/travel/what-caused-the-faa-ground-stop-officials-point-to-router-failure">What caused the FAA ground stop?</a>, Scripps News. The Transportation Secretary’s account of the router swap. The investigation continues.</li><li><a href="https://en.wikipedia.org/wiki/2026_FAA_nationwide_ground_stop">2026 FAA nationwide ground stop</a>, Wikipedia. A running summary of the incident, including the competing accounts of the cause.</li><li><a href="https://library.e.abb.com/public/1f143ad85488952ec1257d3800430a15/26-29%20SR425_72dpi.pdf">Efficient and cost-effective long-distance power transmission with HVDC</a>, ABB Review. It says HVDC connections shielded the Québec system from the 2003 blackout’s frequency swings. ABB sells this equipment, so read it as a vendor source.</li><li><a href="https://press.princeton.edu/books/paperback/9780691004129/normal-accidents">Normal Accidents: Living with High-Risk Technologies,</a> Charles Perrow. He argues that adding warnings and safeguards fails because complexity makes failures inevitable, and that precautions can themselves create new kinds of accidents.</li><li><a href="https://doi.org/10.1145/361598.361623">On the Criteria to Be Used in Decomposing Systems into Modules</a>, David L. Parnas. The paper discusses modularization as a way to improve a system’s flexibility and comprehensibility.</li><li>“The Architecture of Complexity”, Herbert A. Simon (1962). It describes complex systems as hierarchical and nearly decomposable, essentially systems of mostly independent systems. I have no verified link for this one.</li><li><a href="https://www.oreilly.com/library/view/managing-risk-methods/9780768685251/">Managing Risk: Methods for Software Systems Development</a>, Elaine M. Hall. A 1998 guide to risk management in software projects.</li><li><a href="https://mcfunley.com/choose-boring-technology">Choose Boring Technology</a>, Dan McKinley. Each novel technology you adopt spends one of your “innovation tokens”.</li><li><a href="https://thereader.mitpress.mit.edu/?p=20639">How the Amish Let Technology in Without Letting It Take Over</a>, MIT Press Reader. The author concludes that the Amish care less about what a technology is than about what adopting it would mean for the surrounding community.</li><li><a href="https://c4model.com/">The C4 model</a>, Simon Brown. The four levels of architecture diagrams: context, containers, components, and code.</li><li><a href="https://www.asd-ste100.org/">ASD-STE100 Simplified Technical English</a>, ASD. The controlled language developed for aircraft documentation.</li><li><a href="https://x.com/karpathy/status/2105819303471976479">Andrej Karpathy’s post on ASD-STE100</a>. Where he recommends asking an LLM to explain things in it. I couldn’t open this link directly, so I’m relying on press coverage of the post.</li><li><a href="https://radon.readthedocs.io/en/latest/">Radon</a> and <a href="https://github.com/rubik/xenon">Xenon</a>. The complexity metrics and the threshold checks used in your tests.</li><li><a href="https://michaelcrichton.com/works/airframe/">Airframe</a>, Michael Crichton. A novel about the investigation of an airliner accident.</li></ul><p>Hashtags: #SoftwareArchitecture #ComplexSystems #AIEngineering #C4Model</p><p><em>Originally published at </em><a href="https://armando.gtrz.cc/posts/26/2611/261118-complex-systems/"><em>https://armando.gtrz.cc</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c0dc988e306d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How users are now also product developers]]></title>
            <link>https://medium.com/@a.gutierrez/how-users-are-now-also-product-developers-e6e8c36f9926?source=rss-53662b4f63cd------2</link>
            <guid isPermaLink="false">https://medium.com/p/e6e8c36f9926</guid>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[product-strategy]]></category>
            <category><![CDATA[open-hardware]]></category>
            <category><![CDATA[gen-ai-for-business]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Armando Gutierrez]]></dc:creator>
            <pubDate>Wed, 11 Nov 2026 17:27:33 GMT</pubDate>
            <atom:updated>2026-11-13T12:04:41.334Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*mPLmQ4mE5bntli9q.png" /></figure><p>In three weeks, buyers of a 60-dollar synth published 60+ firmwares for it. Development and innovation are moving into the hands of users, and vendors now have to decide whether to fight them or blaze a new trail. I have thoughts.</p><h3>“All your [code]base are belong to us”</h3><p>Exhibit A: In June, M-VAVE started selling the <a href="https://synthanatomy.com/2026/07/m-vave-fm-1-review-low-budget-pocket-fm-ynthesizer-with-iconic-sounds.html">FM-1</a>, a pocket FM synthesiser. It cost around 60 USD and came with 27 silicone keys and a built-in speaker. Reviewers saw it as a fair deal: less, for less.</p><p>Within a month, someone <a href="https://github.com/AL-255/FM-1-RE">reverse engineered the firmware and its update protocol</a> and published the results on GitHub, where the repository sat for two months. The, within about three weeks in the autumn, others worked out how to load their own code onto the device. By 17 October, the tracking site <a href="https://fwradar.com/p/m-vave-fm-1/custom-firmware">FW Radar</a> listed 63 community firmware projects.</p><p>The user-generated firmware variants added or modified features: multitrack sequencers, drum machines, a <a href="https://github.com/jadamsowers/fm1-fimba/releases">physically modelled kalimba</a>, a <a href="https://github.com/MidiHax/fm1-midi-processor/releases">stand-alone MIDI processor</a>, engines inspired by other synths, and <a href="https://github.com/kpalaniuk/gnomad-firmware/releases">a firmware “a child can play within a minute”</a>. Each one serves a smaller, more specific group of users than the last.</p><p>Instead of locking out users-turned-product-managers-and-developers with a signed bootloader, M-VAVE announced <a href="https://github.com/m-vave/fm1_open">FM1 Open</a>: a browser workbench, a public repository, an SDK and an official alternative firmware. Its forum rules now say third-party firmware is welcome, and a German deals site already lists the FM-1 as a portable synth <a href="https://www.mydealz.de/deals/munzdeal-m-vave-fm-1-synthesizer-portabler-synth-mit-vielen-firmwares-2854789">“with many firmwares”</a>, turning the ad-hoc ecosystem into a selling point.</p><p>Last month, I wrote about <a href="https://armando.gtrz.cc/posts/26/2610/261021-cathedral-bazaar-schrebergarten/">software Schrebergärten</a> where the person using an application decides what it does, because AI has made writing code cheap. Of course, this now applies to hardware too.</p><h3>LLMs lower barriers, increase accessibility</h3><p>Hobbyists have hacked hardware since there has been hardware, but AI is allowing even fairly inexperienced people to do three things:</p><ol><li><strong>Reverse engineering.</strong> The developer of fpSup, a mod for the SIGMA fp camera, <a href="https://www.cined.com/camera-firmware-hacks-are-back-ai-assisted-mods-add-shutter-angle-open-gate-raw-and-film-looks/">describes</a> how AI decompiled its firmware and found a factory shell that runs a script from the SD card at startup. A Samsung TV owner <a href="https://www.tweaktown.com/news/114227/developer-guts-samsung-tv-of-features-that-sold-his-personal-data-made-it-3x-faster/index.html">says he used OpenAI’s Codex</a> to root his television. Disassembly is no longer a time-consuming activity done by a few specialists.</li><li><strong>Package the results.</strong> Many FM-1 firmwares install from a web page: plug the synth in, open Chrome or Edge, press Install. Several come with a browser version you can play before committing. It makes their adoption very simple.</li><li><strong>Assemble without code.</strong> <a href="https://grlife.app/">GRLife</a> lets Ricoh GR owners build custom firmware in their browser. You choose film looks, aspect ratios and dial behaviour, or start from one of <a href="https://pentaxrumors.com/2026/10/19/this-grlife-app-is-unofficial-browser-based-tool-designed-to-create-ricoh-gr-custom-firmware/">48 community recipes</a> that appear in the camera menu under their own names. See the trend?</li></ol><p>Modding has always existed but everyone who was not a developer still had to wait for someone to care about their problem, making them dependent on a relatively small group of gatekeepers. As I will explain later, this increased quality but reduced choice (quantity).</p><h3>Camera buyer segmentation is less clear</h3><p>Exhibit B: For decades, camera makers have segmented buyers by limiting entry-level bodies and unlocking features as the price rises. Since September, community mods have been <a href="https://www.cined.com/camera-firmware-hacks-are-back-ai-assisted-mods-add-shutter-angle-open-gate-raw-and-film-looks/">piling up on GitHub</a> for Sony, SIGMA, Nikon, Canon, Ricoh and Hasselblad cameras, and <a href="https://barbano.com/2026/11/custom-camera-firmware-ai-pentax/">Fujifilm work is under way</a> too. A few examples:</p><ul><li>Sony a7 IV gets shutter angle;</li><li>2019 SIGMA fp records <a href="https://pbxscience.com/community-firmware-hacks-unlock-hidden-abilities-in-older-sigma-and-nikon-cameras/">open-gate RAW</a></li><li>Nikon Z30 records at higher bitrates;</li><li>2005 Canon EOS 5D gets in-camera film looks;</li><li>Standard Ricoh GR IV gets the black-and-white looks of the separate <a href="https://ricohrumors.com/ricoh-gr-custom-firmware">Monochrome edition</a>.</li></ul><p>Not only that, but film looks and features are hopping across brands. Of course, the homebrew firmwares can be risky if they are not tested extensively, but the direction is clear, and manufacturers who built their price tiers by hiding software features should take note.</p><h3>Consumers can get rid of bloat</h3><p>Not every user modification adds features; some remove those nobody asked for.</p><p>Exhibit C: In October, a Samsung TV owner named Jake Stevens <a href="https://www.tweaktown.com/news/114227/developer-guts-samsung-tv-of-features-that-sold-his-personal-data-made-it-3x-faster/index.html">rooted his 2025 set with Codex’s help</a>. He disabled its automatic content recognition (ACR), which fingerprints whatever is on screen for advertising, and published his tools on GitHub as Quiet Tizen. Days later, a separate researcher who goes by log4j <a href="https://www.androidauthority.com/samsung-smart-tv-spying-allegations-2-3728880/">reverse engineered his own Samsung’s firmware</a> and alleged it detects sounds and can find microphones on connected soundbars.</p><p>Samsung <a href="https://propakistani.pk/2026/10/30/samsung-tvs-could-be-listening-to-your-home/">replied</a> that ACR is optional and off by default and left the sound-detection claims unanswered. But are they being truthful? Northeastern University researchers published <a href="https://cyberinsider.com/smart-tv-privacy-study-finds-tracking-persists-even-when-opting-out/">Watching the Watchers</a>, a study of twelve smart TVs from ten manufacturers. Samsung and Vizio sets kept sending traffic consistent with ACR after the researchers opted out, while <a href="https://www.malwarebytes.com/blog/news/2026/11/vizio-samsung-smart-tvs-seem-to-ignore-tracking-opt-outs">LG, Sony’s Google TV, Fire TV and VIDAA went silent</a>. The traffic was encrypted, so the researchers did not check the contents, but opting out clearly didn’t work as expected.</p><p>Users with AI assistants can now audit products that vendors assumed nobody would ever inspect. For better or worse, however, the gatekeepers have moved: Stevens says <a href="https://www.tweaktown.com/news/114227/developer-guts-samsung-tv-of-features-that-sold-his-personal-data-made-it-3x-faster/index.html">Anthropic’s Claude refused</a> to help him root the TV, so he switched to Codex, and log4j’s AI provider <a href="https://theoutpost.ai/news-story/samsung-smart-tv-user-tracking-exposed-always-on-microphone-and-ai-surveillance-uncovered-32697/">suspended his account</a> for alleged “cyber” abuse, rather than Samsung taking action.</p><h3>Why plug-ins never got us here</h3><p>Ok, so clearly users have wants and needs that are not being addressed by most manufacturers and service providers. There are good reasons for this:</p><ul><li>copyright and patents</li><li>corporate strategy</li><li>product philosophy</li><li>a backlog full of everyone else’s priorities</li><li>protecting the existing experience</li><li>designing for the median user (median <em>white, adult, male</em> user, but that’s another story)</li></ul><p>When a company wants to cater to diverse needs, it typically resorts to plug-ins, which let smaller developers serve the people the main vendor ignored, and respond faster.</p><p>But plug-ins only reach as far as the vendor allows, and they still need a developer. The user waited either way, just in a shorter queue. AI is removing the last two constraints at once: the vendor’s permission (because now you can Reverse Engineer Anything™) and the developer (because now you can describe what you want and AI will get it done, as long as you squint — also another story).</p><h3>What can you do as a product / service provider?</h3><p>So what can we do if we’re offering a product or service, UVPs have lost uniqueness, and we can anticipate that our users will take matters into their hands and get what they want regardless of us?</p><ul><li><strong>Pick your posture ahead of time.</strong> Faced with a modding scene, manufacturers either tolerate it or lock it out. Choose one before you have to call lawyers in a hurry.</li><li><strong>Open the periphery and keep the core</strong>. This is what I’ve been leaning towards in my own development: a centrally-controlled core (for quality) designed for most functionality to be added through plug-ins (read <a href="https://armando.gtrz.cc/posts/26/2610/261021-cathedral-bazaar-schrebergarten/">the post I mentioned earlier</a> about “everything is a plug-in”).</li><li><strong>Sell what can’t be forked.</strong> Features can be copied; hardware, a sound engine, or a trusted release channel are not (yet). FM1 Open ships the stock V15 firmware as a recovery image, so experimenting doesn’t mean bricking; they sell the hardware.</li><li><strong>Write the rules down.</strong> You can, for example, publicly state your support for third-party firmware, like M-VAVE did. This removes user-developers’ worry that the next official update will lock them out.</li><li><strong>If your margins depend on software fences, assume they’re temporary.</strong> Price tiers built only from disabled features are now a puzzle someone with a coding agent will solve. Differentiate on what the hardware actually does.</li></ul><p>The whole point of Schrebergärten as an analogy is to predict how people will behave. Many want a little garden that looks just so, which means there might be nobody else interested in their custom solutions. In the age of Cathedral- and Bazaar-building, this felt (and still does) like a waste. GitHub is filling up with single-use repositories as people cargo-cult workflows, like sharing source code, until we figure out what makes sense in the new environment. The Cathedrals and Bazaars are losing visitors who prefer to spend time in their gardens.</p><h3>Will fences keep people away?</h3><p>A year ago, a request for a kalimba mode on a cheap synth would have died in a support inbox. This year, they just went ahead and did it.</p><p>I don’t think that can be reversed. Users gaining control of the software and hardware they own looks very hard to stop, so product makers and software providers have to design their offerings, <em>and</em> their monetisation models, around that fact. M-VAVE chose to build on its users and got an ecosystem as a selling point. The TV makers answered with carefully narrow statements and got audited anyway.</p><p>So, which of your product’s limits are features, and which are fences? Right now, you can search if anyone is already reverse engineering your products, separate your products’ limits into physical or software (which is your exposure), and write down your stance until you figure out a better plan.</p><h3>The environmental cost of this transition</h3><p>I would be remiss if I continued writing about increase use of AI without also touching on its environmental impact. Every just-in-time feature runs on inference, and inference runs on data centres. I’ve written before about <a href="https://armando.gtrz.cc/posts/26/2604/260430-energy-consumption-ai/">the energy consumption of generative AI</a> and <a href="https://armando.gtrz.cc/posts/26/2605/260515-which-ai-provider-cleaner/">which providers are cleaner</a>. Things have gotten worse since then.</p><p>Amazon’s own <a href="https://www.datacenterdynamics.com/en/news/amazons-carbon-emissions-grow-by-16-percent-in-2025-on-the-back-of-record-data-center-capacity-additions/">emissions rose 16% in 2025</a>, driven mostly by data centres. In October, AWS <a href="https://baxtel.com/news/aws-files-36-building-data-center-plan-at-4-5gw-homer-city-campus">filed plans for 36 data-centre buildings</a> beside a 4.5 GW gas plant in Pennsylvania, USA. The Clean Air Council, which opposes the project, <a href="https://triblive.com/local/regional/dep-gives-preliminary-nod-to-homer-city-plant-but-enviromental-group-sounds-alarm-regarding-pollution">estimates the plant could emit more than 17 million tons of CO2 a year</a>.</p><p><strong>Real gardens need real water. If we want to live in a world we enjoy, we must also insist AI providers do not, as Pink Floyd wisely said, trade hot ashes for trees, hot air for a cool breeze.</strong></p><h3>Inspiration and further reading</h3><p>I wrote this with assistance from AI for fact-checking, research and structure.</p><p>The cover image is “ <a href="https://commons.wikimedia.org/wiki/Category:Paracho,_Michoac%C3%A1n#/media/File:Parachorecord.jpg">Taretzuruan Mountain on the back, Paracho’s most representative image</a>” by <a href="https://commons.wikimedia.org/w/index.php?title=User:Antemasquesalazar&amp;action=edit&amp;redlink=1">Uërani</a> from Wikimedia, and it shows a large group of people of various ages holding acoustic guitars in Paracho, a Mexican town known for its high-quality guitar manufacturing industry, which was started by a catholic bishop and lawyer who wanted the Purépecha to join and strengthen sustainable economic development focused on personal dignity.</p><ul><li><a href="https://thesynthsource.com/fm1-open/">FM1 Open: M-VAVE’s official answer to the FM-1 custom firmware boom</a>, The Synth Source. The best account of FM1 Open, its licensing layers and its controversies.</li><li><a href="https://fwradar.com/p/m-vave-fm-1/custom-firmware">M-VAVE FM-1 custom firmware</a>, FW Radar. The running count of community firmwares.</li><li><a href="https://github.com/AL-255/FM-1-RE">FM-1 firmware reverse engineering</a>, GitHub. Where it started.</li><li><a href="https://github.com/m-vave/fm1_open">m-vave/fm1_open</a>, GitHub. M-VAVE’s official repository and SDK.</li><li><a href="https://github.com/hugelton/Felucca">Felucca</a>, Hügelton Instruments. The open firmware many community projects build on.</li><li><a href="https://www.cined.com/camera-firmware-hacks-are-back-ai-assisted-mods-add-shutter-angle-open-gate-raw-and-film-looks/">Camera firmware hacks are back</a>, CineD. The AI-assisted camera mod wave.</li><li><a href="https://grlife.app/">GRLife</a>. Custom Ricoh GR firmware, built in your browser.</li><li><a href="https://www.androidauthority.com/samsung-smart-tv-spying-allegations-2-3728880/">Samsung smart TV spying allegations</a>, Android Authority. What the researcher found, and what he hasn’t shown.</li><li><a href="https://www.malwarebytes.com/blog/news/2026/11/vizio-samsung-smart-tvs-seem-to-ignore-tracking-opt-outs">Vizio, Samsung smart TVs seem to ignore tracking opt outs</a>, Malwarebytes. A readable summary of Northeastern University’s Watching the Watchers study.</li><li><a href="https://armando.gtrz.cc/posts/26/2610/261021-cathedral-bazaar-schrebergarten/">The end of software UVP, or the Cathedral, the Bazaar, and the Schrebergarten</a>. The previous post in this series.</li></ul><p>Hashtags: #ProductStrategy #GenerativeAI #CustomFirmware #RightToRepair #OpenHardware</p><p><em>Originally published at </em><a href="https://armando.gtrz.cc/posts/26/2611/261111-users-product-devs/"><em>https://armando.gtrz.cc</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e6e8c36f9926" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The end of software UVP, or the Cathedral, the Bazaar, and the Schrebergarten]]></title>
            <link>https://medium.com/@a.gutierrez/the-end-of-software-uvp-or-the-cathedral-the-bazaar-and-the-schrebergarten-f15dc47468a9?source=rss-53662b4f63cd------2</link>
            <guid isPermaLink="false">https://medium.com/p/f15dc47468a9</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Armando Gutierrez]]></dc:creator>
            <pubDate>Wed, 21 Oct 2026 17:35:45 GMT</pubDate>
            <atom:updated>2026-10-21T17:35:45.337Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*JkS6srj36nN1wun0.png" /></figure><p>Picture a member of a volunteer association that receives clothes and food donations. She needs to schedule volunteers with different lifting abilities and driving license status, and some, as she has learned through experience, should not work together. These constraints are in her head and in a notes file she consults when filling out the scheduling app, because the app treats every volunteer as interchangeable — so she ends up messaging people one by one and fixing conflicts when someone complains. If she asked the vendor to add a constraint feature only her organisation needs, she’d probably wait months for it to even be on the roadmap. She lives in The Future™, however, so she describes her needs to either her operating system or the scheduling app itself and, five minutes later, the app has a constraints feature, ready for her to test out.</p><h3>The Cathedral and the Bazaar</h3><p>In 1997, Eric Raymond described two ways of building software. One was “the cathedral”, where a small group of skilled people works in relative seclusion and shows the world the finished result when it is ready. The other was “the bazaar”, where development happens in the open, software is released early and often, and a crowd of users and volunteers finds and fixes problems no single team would have been able to find alone. The essay was largely about development method and debugging, and why one model worked better than the other (the origin of the phrase “given enough eyeballs, all bugs are shallow”). I’m going to consider a different angle, though: who decides what the software will do.</p><p>In “the cathedral”, architects and a few select builders decide, behind closed doors, what the end result is going to look like. In “the bazaar”, a crowd decides in public. In either case, regular users of software don’t control the result; they can only suggest changes and hope someone will implement them.</p><p>Our volunteer knows her requirements are going to win the attention of neither a company nor a group of strangers online. She doesn’t want to become a software developer to run her organisation, because her focus is needed elsewhere. Both models describe how a team produces software for many users, not for a single user with a unique problem.</p><h3>… and the Schrebergarten</h3><p>In the fictional example, the volunteer was no longer at the mercy of a group of developers: her application grew to meet her unique needs. I’m using the analogy of a <a href="https://en.wikipedia.org/wiki/Allotment_(gardening)#Germany">Schrebergarten</a> to describe a model in which the person using the software also decides what the software does. An application is no longer fully designed in advance, and one person’s design does not need to be reused by anyone else. Schrebergärten are grown to suit the owner’s needs.</p><p>That, I think, is big.</p><p>Until language models became good enough at software architecture and coding, formal and informal product managers were needed to reconcile many people’s needs into one codebase and, due to resource constraints, prioritise some needs over others. In a world where software development becomes a utility, like electricity or water, the need to ration development effort disappears, and new functionality can sprout anywhere.</p><h3>AI is becoming a utility…</h3><p>What does it mean that AI is becoming a utility? Think of electricity. Your appliances don’t care if you’re sourcing it from a wind farm, a coal plant, a couple of solar panels, or a stationary bicycle. You may prioritise low cost, environmentally responsible sourcing, a brand, or whatever, but your appliances only care about being plugged in (through an interface) and electricity flowing.</p><p>This month, a single developer working with AI coding agents released free, open-source rebuilds of seven Adobe applications, followed days later by Word, PowerPoint and Excel. They are early versions and do not successfully replicate the complex features of the originals, but the fact that they were written from scratch, instead of building on the many open-source alternatives that already existed, signals that the expensive part (writing the code) is now affordable — it has been commoditised. Strictly speaking, two things are being commoditised at once: the models, and, through them, the act of writing software.</p><p><strong>Once something is commoditised, it can become a utility</strong> if daily life comes to depend on it and governments take an interest in regulating it to ensure continuity, consistency, and affordability. That is roughly the road electricity travelled, from private generators to the grid. AI is on the same road. Governments increasingly want “sovereign” models and data centres, and recent events give them reasons: in June, a US export-control order led a provider to take two frontier models offline worldwide for almost three weeks (continuity), and new models regularly reach some regions later than others, or not at all (consistency). Regulation around safety is being demanded by various actors including AI model providers.</p><h3>… there is no Unique Value Proposition anymore…</h3><p>Returning to the re-created Adobe and Microsoft applications (and plenty more on the way): if anyone can replicate anyone’s functionality, then <strong>software no longer has a unique value proposition</strong>, only a value proposition. Features are no longer a competitive barrier. The moat you dug is now just a ditch you pay to maintain.</p><h3>… and it’s enabling Schrebergärten to grow</h3><p>Bespoke applications and just-in-time features are now a reality. I’ve seen it in our applied AI lab, where it’s sometimes so much faster and easier to create a new app from scratch than to contribute to an existing one and wait for the owners to agree, review, integrate and release the changes, that we just end up with a one-off codebase we don’t even plan to share because anyone can already do the same thing. There is no need — for better or worse — to form a community around highly customised apps. We have a small, pretty garden.</p><h3>The Future™ looking back</h3><p>I don’t know how this will end. I do have ideas, though.</p><p>Remember the manufacturing world when 3D printers became cheap enough for hobbyists? Repair parts long neglected by manufacturers were increasingly a download and a few hours of printing away. Remixing other people’s models became a thing. Parametric designs enabled mass customisation. Over time, shared libraries and best practices arose to avoid reinventing the wheel. Printer makers learned from the community, and new players arose offering cheaper, faster and more reliable machines. Established manufacturers adopted the technology for prototyping and small runs. Libraries and makerspaces now offer classes and hardware for anyone to build bespoke solutions to problems too small for any manufacturer to deign a look. I’ve seen just-in-time, vanity 3D prints offered at flea markets in southern France. The flip side is that cohesion is impossible; a company like IKEA cannot rely on customers self-printing replacement parts because they cannot control the materials and quality of the final product. There is little incentive to exploit broad availability of 3D printers at a commercial scale.</p><p>Now go look at how many GitHub repositories were created and last touched within a single month in early 2026. Those are the first fossils above the good-enough-AI boundary line: evidence of a progression towards disposable software. People are building simple, custom solutions and <a href="https://armando.gtrz.cc/posts/260729-kleptowriter/">klepting</a> what they need from everyone. Collections of best practices and common libraries have emerged in the form of skills and harnesses. Does this mean software will follow the path of manufacturing? I think in many respects it will, but not in all. Software is not hardware. You can print upgrades for your 3D printer, but few people do; most still buy the new model to get the new features. Software, on the other hand, can rewrite itself while it runs, if it’s built for it. Which brings me to DeepSeek, which, in the wake of OpenClaw and Hermes (does anyone still use them?), released an agent harness with the slogan “everything is a plugin”.</p><h3>Everything is a plugin?</h3><p>Right now, if I use an application on my machine and want to change its core functionality, like when an update is pushed and my app downloads it, the app needs to be closed and restarted. If I run an application on a server and want to add a new feature, the best practice is to deploy the new version on a different server, wait until it’s online and functional, and then bring down the original. In both cases, whatever was in memory needs to be saved to a file for persistence across restarts or it is lost completely. This works fine when apps are developed at the speed and scope of cathedrals and bazaars, but you can’t have an app that changes itself restart halfway through and risk a corrupted state.</p><p>“Everything is a plugin” is the idea that an application has a small, critical core that keeps the main loop running, and everything else, absolutely everything else, is a hot-loadable plugin. The idea isn’t new; Eclipse described itself in almost those words two decades ago. What’s new is a guarantee demonstrated in a published paper. DeepSeek’s harness runs on Cordis, a runtime described by researchers at Peking University and DeepSeek, built around two rules: uninstalling a plugin must cleanly undo what the installation did, which requires tracking the changes it made across time; and when a plugin depends on other plugins, this must also be tracked and remain coherent as plugins are added and removed. It takes discipline (every change needs a way to be undone, and all shared state has to go through the runtime), but if you can do these two things, you can create software that can be updated on the fly; and if you can create software that can be updated on the fly, you can add LLMs and create software that improves itself on demand.</p><h3>Weeds</h3><p>A self-extending app is an AI agent that writes and runs its own code, and I will continue to advocate <a href="https://armando.gtrz.cc/posts/260612-agential-engineering/">assuming every AI agent is compromised</a>. Being able to create a temporary feature on demand and then remove it is fine and dandy, but if it was developed after the app read a <a href="https://armando.gtrz.cc/posts/260706-vulnerable-social-engineering/">carefully poisoned web page</a>, it can do a lot of damage while it is active. Some effects can’t be undone at all; you can unload the plugin that sent an email or printed a flyer, but the email is sent and the flyer is on the community board. So the Schrebergarten needs fences and rules; one proposal is to run generated plugins <a href="https://armando.gtrz.cc/posts/260625-sandboxing-ai-agents/">in sandboxes</a> with the fewest permissions they need, make deterministic tests and checks pass before a plugin is promoted from trial to permanent, and keep a human in the loop for anything that reaches outside the app (especially payments). I’m sure regulation and holding technology providers accountable would help improve guardrails the way cars and airplanes have become safer thanks to mandatory safety standards from agencies like the NHTSA and FAA in the United States and EASA and the EU’s vehicle type-approval rules in Europe, and to voluntary rating programmes like Euro NCAP that push manufacturers beyond the legal minimum.</p><h3>Gardens</h3><p>If you have software that can improve itself, and a constant, predictable supply of LLM computational ability, you’ve got yourself everything you need for software gardens to proliferate.</p><p>Will they become manicured landscapes like Versailles, sprawling and diverse expanses like botanical gardens, or unique and feral Schrebergärten? I suspect it will be a little of everything. I’m really curious.</p><h3>Inspiration and further reading</h3><p>Thanks to Francisco Casanova for bringing up the 3D printing market in our discussions, and to Hemant Soni for pointing out gaps in my thought process. I wrote this with assistance from AI for some fact-checking, research and structure.</p><ul><li><a href="http://www.catb.org/~esr/writings/cathedral-bazaar/cathedral-bazaar/">The Cathedral and the Bazaar</a>, Eric S. Raymond. The original essay.</li><li><a href="https://arxiv.org/abs/2608.25512">A Programming Paradigm for Spatiotemporal Composability</a>, Shi, Zhang and Cui. The formal basis for Cordis and its two rules.</li><li><a href="https://github.com/deepseek-ai/deepseek-harness">DeepSeek Harness</a>. “Everything is a plugin” in practice.</li><li><a href="https://eclipse.org/articles/Whitepaper-Platform-3.1/eclipse-platform-whitepaper.pdf">Eclipse Platform Technical Overview</a>, IBM. An early “everything is a plug-in” architecture.</li><li><a href="https://arxiv.org/pdf/2609.10248">A-JIT: Agentic Just-In-Time Software Construction</a>, Mark Marron. Applications that construct missing capabilities while they run.</li><li><a href="https://www.geoffreylitt.com/2023/03/25/llm-end-user-programming">Malleable software in the age of LLMs</a>, Geoffrey Litt. End-user programming meets language models.</li><li><a href="https://www.aljazeera.com/news/2026/10/14/how-ai-apps-are-offering-free-substitutes-for-big-tech-software">How AI apps are offering free substitutes for Big Tech software</a>, Al Jazeera. The ArtCraft story.</li><li><a href="https://www.unite.ai/?p=213672">Are AI Models Becoming Commodities?</a>, Unite.ai. Includes Andrew Ng’s “AI is the new electricity”.</li><li><a href="https://www.rbcwealthmanagement.com/en-us/insights/the-commoditization-of-ai-models-and-compute">The commoditization of AI models and compute</a>, RBC Wealth Management. The economics of AI as a utility.</li><li><a href="https://www.euronews.com/2026/07/03/data-protection-rules-slow-llm-rollout-in-europe-study-says">Data protection rules slow LLM rollout in Europe, study says</a>, Euronews. On the GovAI study of regional release delays.</li><li><a href="https://fortune.com/2025/06/09/ai-chips-geopolitics-tech-data-centers">‘Sovereign AI’ is political branding</a>, Fortune. A sceptical take on sovereign AI.</li><li><a href="https://3dprintingindustry.com/?p=82315">3D printable spare parts</a>, 3D Printing Industry. Distributors and sharing platforms take up spare parts.</li></ul><p><em>Originally published at </em><a href="http://armando.gtrz.cc/posts/26/2610/261021-cathedral-bazaar-schrebergarten/"><em>http://armando.gtrz.cc</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f15dc47468a9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[If You Can Automate, You Can Empower]]></title>
            <link>https://medium.com/adobetech/if-you-can-automate-you-can-empower-cf0168f249f?source=rss-53662b4f63cd------2</link>
            <guid isPermaLink="false">https://medium.com/p/cf0168f249f</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[adobe]]></category>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[dataops]]></category>
            <dc:creator><![CDATA[Armando Gutierrez]]></dc:creator>
            <pubDate>Mon, 29 Oct 2018 16:20:14 GMT</pubDate>
            <atom:updated>2018-10-30T16:40:21.447Z</atom:updated>
            <content:encoded><![CDATA[<p>If you want your life to be uncomplicated, it pays to focus on automation to empower others. Let me explain.</p><p>I love automation. At every job since high school, I have found myself coding applications to automate repetitive, boring, or time-consuming chores. I do it even when I’m not the one laboring under the repetitive tasks.</p><p>Which is why, when I say we have way too few engineers on our Data Engineering team, I’m really just bragging.</p><p>You see, it’s not really possible to support 21 data analysts, a continuously-integrated infrastructure, dozens of data pipelines, and a data lake with only three engineers. And across a nine-hour time zone gap, to boot. At least, not in the traditional way.</p><p>Even with automation, the time zone gap makes collaboration difficult. The key to making the impossible possible has been automation that<em> empowers others</em>. Sure, we focus on resiliency and write cool tools, too (because they are important); but to really scale, democratizing the “technical” is crucial.</p><p>Here is an example:</p><p>Our customer experience analysts come up with great database queries to answer questions such as “<em>Which clients are taking longer than expected to start using GreatFeature?”</em> Instead of just hoarding those queries in their computers, they publish them to a corporate GitHub instance.</p><p><strong>Where the magic starts</strong></p><p>Big deal, you say, we apply software engineering practices to data analysis; that’s no magic, that’s common sense! I hear you. However, GitHub is just the starting point.</p><p>This is where the magic begins: Once the queries are collected, they are tested in the same way as a piece of code, against specifications data analysts have defined <em>themselves</em>. The creation of mock databases, execution of the query, and validation of the results? That takes place automatically, for free — CI/CD style. Analysts suggest changes to queries through pull requests, and if anything breaks, a big, red warning shows up. Without an engineer being involved. Like magic.</p><p>It’s so transparent, it’s easy to take for granted. And that is the point.</p><p><strong>Automation salad</strong></p><p>So how do we do it? With a mix of open source software like Jenkins, Mesos, and Marathon, a custom deployment pipeline and, in the particular case of SQL testing, with <a href="https://github.com/moertel/sQucumber-postgres">sQucumber</a>.</p><p>That last one is probably what you have heard the least about. It has a funny name that derives from a combination of SQL, the Gherkin language, and a tool called Cucumber — the latter two being used in behavior-driven development circles to create “executable specifications written in plain text.”</p><p>In essence, sQucumber makes it possible to write PostgreSQL tests that anybody can understand. Go check it out, it’s pretty cool.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5A3mqNnnywa_n7iy7vdNNA.png" /><figcaption><em>A sample SQL test specification in sQucumber. Notice how easy it is to understand what is going on at a glance!</em></figcaption></figure><p>Our senior engineer <a href="https://medium.com/u/93e8b4ddf185">Stefanie Grunwald</a> wrote sQucumber because she really, really didn’t want to spend hours debugging query errors. We now use it to ensure the continued quality of our analysts’ output long after they have moved onto other analysis cases and have forgotten all about the queries.</p><p>To me, however, the greatest value of automated SQL tests is the satisfaction on the faces of our analysts when they see that “little green tag” in GitHub saying 100% of the tests <em>they</em> wrote <em>for their own queries </em>have passed. Because it means the queries are now their babies. Because they know some stranger can’t do bad things to them. Also, because every test an analyst writes, is a test an engineer doesn’t, and you can’t brag about having too few engineers if your analysts can’t own technical aspects of their own work. Even if they don’t actually spend much time on “technical” things.</p><p><strong>Empowering automation</strong></p><p>Of course, there is a lot more going on: We version data as we pull it into our data lake, so we can automate audits. We do “security-as-code” and enforce database access control using another custom-developed tool called <a href="https://github.com/moertel/forty">Forty</a> (also created by our senior engineer) so our security reviews are fast and thorough.</p><p>We built a robust infrastructure with failovers so nobody <em>has</em> to keep an eye on it during weekends. Every bit of automation reduces the chances for human error and time spent debugging, and every bit of <em>empowering</em> automation frees us from having to own work outside our domain.</p><p>In my team of engineers, our goal is to remove any obstacles from analysts owning the entire lifecycle of data — from discovery to published insight — primarily because we are not as knowledgeable as they are concerning the data they work with. And we actually don’t want to worry about our job <em>and</em> theirs. Instead, we want to spend time inside our domain of expertise: automating, empowering, monitoring. So, we don’t just replace people with machines, which means people have less to do; we make sure people <em>can do more than they could before</em>.</p><p>Now <em>that</em> is empowering automation.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cf0168f249f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/adobetech/if-you-can-automate-you-can-empower-cf0168f249f">If You Can Automate, You Can Empower</a> was originally published in <a href="https://medium.com/adobetech">Adobe Tech Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>