<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Tomasz Jędrzejewski</title>
    <description>The latest articles on DEV Community by Tomasz Jędrzejewski (@zyxist).</description>
    <link>https://dev.to/zyxist</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4224880%2F99fd93ed-ca96-409b-9e9e-de6f60c74d57.jpg</url>
      <title>DEV Community: Tomasz Jędrzejewski</title>
      <link>https://dev.to/zyxist</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/zyxist"/>
    <language>en</language>
    <item>
      <title>Toss A Coin To Your Feature 🎶 - Why I'm Donating Open-Source</title>
      <dc:creator>Tomasz Jędrzejewski</dc:creator>
      <pubDate>Fri, 04 Dec 2026 15:00:00 +0000</pubDate>
      <link>https://dev.to/zyxist/toss-a-coin-to-your-feature-why-im-donating-open-source-3im5</link>
      <guid>https://dev.to/zyxist/toss-a-coin-to-your-feature-why-im-donating-open-source-3im5</guid>
      <description>&lt;p&gt;In &lt;a href="https://kotlinlang.org/" rel="noopener noreferrer"&gt;Kotlin&lt;/a&gt; ecosystem, there is a well-known logging facade called &lt;a href="https://github.com/oshai/kotlin-logging" rel="noopener noreferrer"&gt;kotlin-logging&lt;/a&gt;. In my current company, it is used by hundreds of microservices. Several other prominent companies like JetBrains, YouTrack and Salesforce are using it, too.&lt;/p&gt;

&lt;p&gt;This library has only 1 maintainer. Do you know how many of those users support him financially on GitHub to help maintain the project? Also 1 person: me. 6 months ago, it was 0.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Cost of Maintenance
&lt;/h2&gt;

&lt;p&gt;The open-source software comprises 70%-90% of modern codebases (2022 Linux Foundation &amp;amp; Harvard's Laboratory of Innovation Science study). These componens carry the majority of technical risks, and their maintenance can be as challenging, as proprietary software. Yet, the popular misconception is that "&lt;em&gt;it is free, it magically maintains itself with the vacuum energy&lt;/em&gt;" or we just say "&lt;em&gt;oh, others are already paying, so I can save a bit&lt;/em&gt;". The sad thing is that in most cases, &lt;strong&gt;nobody is paying&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;These 70-90% of components are mostly maintained by volunteers in their spare time who carry all the burden of keeping the project alive, including talking to toxic people, and stress related to expectations. This is usually something we don't consider when starting a new open-source project.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Frc4ylzj5cnj7m8ro89tc.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Frc4ylzj5cnj7m8ro89tc.jpg" alt="Open-source reality illustration: many expectations, little actual support" width="800" height="446"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Open-source reality: many expectations, little actual support (image generated by AI)&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;I see the amount of misunderstanding at work. I think that every company has a couple of internal projects/libraries it relies on, but - just like open-source - a group of employees maintains them in their "spare" time. I keep hearing the same "brilliant" idea over and over again:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;Hey, if we struggle maintaining this project, why don't we open-source it?&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Fun fact: open-sourcing an internal project does not solve &lt;strong&gt;your&lt;/strong&gt; maintenance problem. It only makes &lt;strong&gt;your&lt;/strong&gt; problem public.&lt;/p&gt;

&lt;p&gt;Moreover, if you're a company, you'll soon may have legal maintenance obligations to such projects with regard to security as an &lt;em&gt;open-source steward&lt;/em&gt; under European Cyber Resilience Act.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Is Not A Help
&lt;/h2&gt;

&lt;p&gt;Another popular misconception is that if we contribute to a project (report a bug, open a PR), we help it. I admit it is nice to get good quality contributions that move the project forward. But for me, it's not a real help. During the contribution process, you take maintainer's attention and time. My time is not infinite, and if I decide to review your PR, I can't do anything else during this time:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Earn a living.&lt;/li&gt;
&lt;li&gt;Spend time with family.&lt;/li&gt;
&lt;li&gt;Relax to recharge batteries.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If it were a commercial project, I'd charge you for this. If I merge your PR, your effort is over. Mine is not - I have to maintain your code from now on. I'm not charging you, but the work is real. So no, you are not helping.&lt;/p&gt;

&lt;p&gt;Almost 20 years ago, I was maintaining a quite popular PHP library for several years. I was at high school, then a student at university. I had time for open-source and freelancing, I didn't have to worry about living expenses. It was all over, when I got my first job and started earning a living on my own. The contributions, popularity, etc. did not matter. The reality was that I could not do it anymore for free, and the project got abandoned. This is what happens to many other promising projects that do not receive proper support, and the authors miscalculated their abilities.&lt;/p&gt;

&lt;h2&gt;
  
  
  Real Help
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;People can build great things, when their basic needs are satisfied.&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The costly part of open-source is the maintenance, so I think the &lt;strong&gt;only&lt;/strong&gt; real help is any action that addresses the maintenance cost. This can be either joining the project as an active maintainer, or... supporting the project financially. Money is the single factor that allows the maintainer to allocate more time to the project, but not at the cost of his/her own health and pesonal live. And the community has enough power to support all the maintainers of all popular projects out there. We just don't use this power, because... "&lt;em&gt;open-source is free, apparently someone else is helping, money is bad&lt;/em&gt;" etc.&lt;/p&gt;

&lt;p&gt;Simple math:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The project has 1000 users.&lt;/li&gt;
&lt;li&gt;If half of them donates &lt;strong&gt;$10&lt;/strong&gt; a month, it gives &lt;strong&gt;$5000&lt;/strong&gt; a month, and the maintainer gets &lt;strong&gt;$3500-$4000&lt;/strong&gt; after taxation and processing fees.&lt;/li&gt;
&lt;li&gt;This is enough money to switch to at least a part-time job and stop developing OSS in the free time.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Moreover, we only need 10 companies that donate &lt;strong&gt;$100&lt;/strong&gt; to quickly get &lt;strong&gt;$600-$800&lt;/strong&gt; more. That's why I started donating regularly. As an individual, it just a drop in the ocean, but as a community, we can make a difference.&lt;/p&gt;

&lt;h2&gt;
  
  
  European Union recognition
&lt;/h2&gt;

&lt;p&gt;The maintenance cost of OSS has been also recognized by European Union in the legal acts. The new (already mentioned) &lt;em&gt;Cyber Resilience Act&lt;/em&gt; puts several, quite demanding obligations to the manufacturers of software placed onto European market, regardless of the residence. Open-source software is explicitly excluded from them and the decisive factors are the license and monetization:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Using officially recognized OSS license.&lt;/li&gt;
&lt;li&gt;All essential parts of the software (code, binaries, documentation, issue trackers, etc.) must be offered for free.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Wait! Have I just contradicted myself? Absolutely not. CRA explicitly says that voluntary donations are allowed. Even offering &lt;em&gt;additional&lt;/em&gt; services such as optional support does not trigger CRA obligations. As long as you cover the project expenses and the cost of your work (living expenses, fair remuneration), you're fine. You can cover your expenses, living costs to build OSS without any extra obligations and the law recognizes that for the first time in history. That's a great news.&lt;/p&gt;

&lt;p&gt;CRA obligations apply only, if you collect significantly more than your cost is, if the OSS can't work without buying a commercial service, of if any part of the software is hidden behind a paywall. Moreover, if you have a community and enterprise edition, CRA applies only to the latter. More reading: &lt;a href="https://cra.orcwg.org/" rel="noopener noreferrer"&gt;CRA FAQ by Open Regulatory Compliance Group&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;(Disclaimer: this is not a legal advice, but a somewhat simplified illustration of how EU recognized the maintenance cost in OSS. Read the official EU Guidelines or consult the lawyer to assess your individual case)&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Action For You
&lt;/h2&gt;

&lt;p&gt;Do you like open-source? Hold on with giving yet another star. Hold on with opening yet another PR (especially fully authored with AI). Do this instead:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Look at the project you really depend on.&lt;/li&gt;
&lt;li&gt;Look for "&lt;em&gt;Donate&lt;/em&gt;" button.&lt;/li&gt;
&lt;li&gt;As an individual, start sending even small amounts, like $10-$30 every month.&lt;/li&gt;
&lt;li&gt;As a company, allocate some monthly budget, like $500, $1000, $2000, $5000 and distribute this money between several projects your business depends on.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;My strategy is also targeting underfunded projects in the first place. It will really make a difference, and maybe we'll avoid another history like &lt;strong&gt;xzutils&lt;/strong&gt; thanks to this. What's your opinion and experience on this topic?&lt;/p&gt;

</description>
      <category>opensource</category>
      <category>software</category>
      <category>discuss</category>
      <category>mentalhealth</category>
    </item>
    <item>
      <title>Stop Marrying Your Programming Language In You Next Project</title>
      <dc:creator>Tomasz Jędrzejewski</dc:creator>
      <pubDate>Tue, 01 Dec 2026 06:17:05 +0000</pubDate>
      <link>https://dev.to/zyxist/stop-marrying-your-programming-language-in-you-next-project-hi4</link>
      <guid>https://dev.to/zyxist/stop-marrying-your-programming-language-in-you-next-project-hi4</guid>
      <description>&lt;p&gt;Year 2022. The company is going to launch a new project. One of the very first choices the teams have to agree on is &lt;em&gt;which programming language should we use for this&lt;/em&gt;? They look at the availability of developers, and whether the technology will be able to support their use cases in the foreseeable future. Or maybe the only driver was "&lt;em&gt;nah, let's just use what we have&lt;/em&gt;"? Regardless of which group they were in, there was a common thing:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;You had to live with your choice and all of its consequences for years to come.&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;You have to pay 3x more for servers, because your language scales poorly? Deal with it 🕶️. The other language turns out to have better libraries? Deal with it 🕶️. Some time ago, my current company completed a total rewrite of its IT system from PHP to Java/Kotlin - it took only 10 years. It was like marrying your language... or paying excessive costs of a divorce.&lt;/p&gt;

&lt;p&gt;That was 2022, just before the AI revolution. Now, at the end of 2026, things look a bit different. The language is still relevant, but... in a different way, and definitely it's no longer a life decision. Let's learn why.&lt;/p&gt;

&lt;h2&gt;
  
  
  Programming Language Strategies Of 2022
&lt;/h2&gt;

&lt;p&gt;Over the years, I've been working with several companies with vastly different strategies of choosing a programming language. It's interesting to see, how it affected the lifes of developers and the company.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;YOLO&lt;/strong&gt;: use anything, no questions asked.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Curated Choice&lt;/strong&gt;: choice possible between a set of endorsed languages.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Monoculture&lt;/strong&gt;: one language, one framework. Deal with it.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In one of the projects (I've been working on) in the &lt;strong&gt;YOLO&lt;/strong&gt; company, the build system alone used 6 programming languages and 2 operating system. When the company closed down one of the offices, it turned out that they had to build an entire team of Erlang developers from scratch in another office, because one of the transferred projects was written in it. &lt;strong&gt;YOLO&lt;/strong&gt; gave you freedom, but you could also run into extreme mess.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Curated Choice&lt;/strong&gt; was a balanced alternative. Developers still had choice, but only from the curated list of supported technologies (e.g. defined with a &lt;em&gt;Tech Radar&lt;/em&gt;). Here, I used to work in a setup, where we could choose between Java and Kotlin, and between Spring and Micronaut frameworks. Same ecosystem (✅), but still... switching between projects might have required learning another framework or jumping into another programming language (❌).&lt;/p&gt;

&lt;p&gt;On the other extreme, we had &lt;strong&gt;Monoculture&lt;/strong&gt;: a single programming language, framework for everyone. A variant of this approach was selecting a single language for a specific type of projects (e.g. Kotlin for backend microservices, Python for data engineering, etc.). Here, we optimize against the ability to transfer components and developers between teams, and accept making suboptimal technology choices from time to time.&lt;/p&gt;

&lt;p&gt;What was common: the cost of changing the decision and rewriting the component/system was high. Everything revolved around it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Programming Language in 2026: A Tactical Choice
&lt;/h2&gt;

&lt;p&gt;The emergence of &lt;strong&gt;AI&lt;/strong&gt; and &lt;strong&gt;Spec-Driven Development&lt;/strong&gt; created an interesting opportunity. Previously, the source code was usually our only source of truth about the system behavior. I explored this topic deeply in my previous article "&lt;em&gt;&lt;a href="https://dev.to/zyxist/dont-let-your-specs-go-stale-in-sdd-56j4"&gt;Spec-Driven Development: My Way to Fight Stale Specs&lt;/a&gt;&lt;/em&gt;". For us, two observations are important:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;There is another entity, besides humans, capable of writing working source code at the high speed.&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;Specifications&lt;/em&gt; can now become the new source of truth.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The source code was so hard to replace because of &lt;em&gt;human speed&lt;/em&gt; and the amount of business knowledge encoded in the statements. Now these are all gone. Replacing a source code is much easier and cheaper... and so is the language.&lt;/p&gt;

&lt;p&gt;You can now treat &lt;strong&gt;Programming Language&lt;/strong&gt; as a tactical choice - something, which serves your &lt;em&gt;current&lt;/em&gt; needs, not necessarily your future ones. If circumstances change, rewrite.&lt;/p&gt;

&lt;h2&gt;
  
  
  Practical Example
&lt;/h2&gt;

&lt;p&gt;This year, I started a side project: an &lt;a href="https://apyhub.com/providers/modernsoftware-pro" rel="noopener noreferrer"&gt;API Collection&lt;/a&gt; with several utility API-s available over one of the API marketplaces. I write it in &lt;strong&gt;Spec-Driven Development&lt;/strong&gt; and use it as a test ground for various ideas. The &lt;strong&gt;Programming Language Choice&lt;/strong&gt; was one of them, and I basically had 3 options. I created a simple table with different factors rated from &lt;strong&gt;1 (worst)&lt;/strong&gt; to &lt;strong&gt;3 (best)&lt;/strong&gt;:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Factor&lt;/th&gt;
&lt;th&gt;PHP&lt;/th&gt;
&lt;th&gt;Python&lt;/th&gt;
&lt;th&gt;Kotlin&lt;/th&gt;
&lt;th&gt;Notes&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Do I know it?&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Library availability&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;For certain domains, Python has the most mature libraries&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Scalability&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;I have the most experience in scaling JVM apps&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Performance&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;JVM beats two other choices&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Server cost&lt;/td&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;I have an existing hosting for PHP&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Code maintainability&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;For long-term projects, statically typed languages win for me&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;That's my subjective rating. And look: the entry costs matter for a greenfield project, and I need to host the API somewhere. That's the cost that I need to pay with my own money without any guarantee to get it back. But in 2022, the choice would also limit my maintainability options for years to come. For PHP, I have an existing, quite performant hosting, but that's the least prospective choice. Eventually, I'd be choosing between JVM and Python, carefully balancing PaaS offers and evaluating free tiers. JVM is the most comfortable for me, but for Python, I have an extra option of Cloudflare Workers... very complex puzzle with planning ahead for the traffic that might never come.&lt;/p&gt;

&lt;p&gt;In 2026, I chose... PHP, and it was a quick choice. The AI generates the code for me, and &lt;strong&gt;I have an existing, quite performant PHP hosting&lt;/strong&gt;. I pay for it anyway, so I do not increase my infrastructure spendings - it's just good enough to start. I realized I can choose a solution just for now, and leave the future... to the future. My sources of truth are:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;the specifications,&lt;/li&gt;
&lt;li&gt;the API spec and language-agnostic test cases.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The rest of the software is fully disposable. If there is a justified reason to switch to another technology, I will just do it.&lt;/p&gt;

&lt;h2&gt;
  
  
  What's Still Relevant?
&lt;/h2&gt;

&lt;p&gt;The choice of a programming language still matters for a couple of reasons:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Availability of supported tools and libraries&lt;/strong&gt; - it's true that you can now just generate anything you need. For many utilities, you will just do it. But the question "&lt;em&gt;who's going to maintain it&lt;/em&gt;" remains valid. New legal acts, such as European &lt;em&gt;Cyber Resilience Act&lt;/em&gt;, put new responsibilities on software companies, increasing the cost of ownership. Careful choice of a programming language helps offload some of this cost elsewhere thanks to the access to mature libraries that other languages don't have.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Deployment&lt;/strong&gt; - this is important especially for backend services. Larger companies tend to have well-organized deployment environments, with dedicated infrastructure teams and solutions. These environments do a lot of hidden, but critical work, such as regular patching of servers and infrastructure components. Specialization in certain technology stacks (e.g. JVM) helps keeping the complexity of that part at reasonable level and may be a part of the security strategy.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Performance and scalability&lt;/strong&gt; - some programming languages are generally slower, some are faster. Some have lower memory footprint, some have higher. That's the fact. Nothing's changing here.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Security&lt;/strong&gt; - certain programming languages do better job than others in preventing trivial errors that someone might turn into a weapon against us.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Interoperability&lt;/strong&gt; - relevant in polyglot ecosystems, such as JVM, where different languages keep compatibility with Java, but not necessarily with each other (try to use a Kotlin library in Groovy - good luck 😉). Kotlin, Scala, etc. - are just fine for end applications. But if you write a library that should work across the entire ecosystem, you choose Java.&lt;/li&gt;
&lt;li&gt;🆕 &lt;strong&gt;Token cost&lt;/strong&gt; - an interesting new factor. I once spoke to a team who evaluated different programming languages against their verbosity, and in turn - token cost.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Syntax, DSL capabilities, etc. - these factors are not as relevant as they used to be.&lt;/p&gt;

&lt;h2&gt;
  
  
  Rewriting Software - Does It Work?
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;OK, but did you actually rewrite any software in another language with AI?&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Yes, I did it on a couple of occassions. In the previous article, &lt;a href="https://dev.to/zyxist/dont-let-your-specs-go-stale-in-sdd-56j4#granularity-of-changes"&gt;Spec-Driven Development: My Way to Fight Stale Specs&lt;/a&gt; I showed one of the recent projects, where we decided to do a full, agentic rewrite of an important, in-house library with years of accumulated technical/maintenance debt. What I did not mention is that this rewrite also involved &lt;strong&gt;changing the programming language&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Old stack: Kotlin (production) + Groovy/Spock (tests)&lt;/li&gt;
&lt;li&gt;New stack: Java&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Interoperability was the decisive factor. Other developers wanted to keep Kotlin - is more compact, quicker and more &lt;code&gt;fun&lt;/code&gt; 😉 to write, but I reminded them: "&lt;em&gt;dudes, you're not going to write this code in person&lt;/em&gt;". We already struggled with compatibility issues within our own codebase (test suite in Groovy), the users also maintained codebases in different JVM languages, and &lt;a href="https://kotlinlang.org/docs/java-to-kotlin-interop.html" rel="noopener noreferrer"&gt;Kotlin compatibility mode&lt;/a&gt; has its own quirks.&lt;/p&gt;

&lt;p&gt;So yes - although we kept the original technology stack, we drove the AI agents to rewrite a mature project into another language using specs as a source of truth. Fun fact: two years earlier, we already considered rewriting the library, and we rejected it exactly because the costs were too high back in 2024.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;AI is a game changer in many areas of IT industry. We can see, how it influences the &lt;strong&gt;choice of a programming language for your next project&lt;/strong&gt;. This choice is still relevant in 2026, and there are decision drivers that still hold strong. The difference is that this choice is not strategic anymore:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;You don't need to marry your programming language in 2026.&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;You can treat it as a tactical choice that you can amend later, if the circumstances change. You can even make your project &lt;em&gt;Rewrite-Friendly&lt;/em&gt;, e.g. by building a language-agnostic test suite (JSON files with inputs and expected outputs) that you will be able to import later into any test framework. For me, the ability to change the programming language is now a part of my project maintenance toolbox. It opens a whole new space of opportunities that were not feasible in the past. And what do you think? Do you include such ability in your projects?&lt;/p&gt;

</description>
      <category>ai</category>
      <category>softwaredevelopment</category>
      <category>architecture</category>
      <category>programming</category>
    </item>
    <item>
      <title>Spec-Driven Development: My Way to Fight Stale Specs</title>
      <dc:creator>Tomasz Jędrzejewski</dc:creator>
      <pubDate>Fri, 27 Nov 2026 09:31:28 +0000</pubDate>
      <link>https://dev.to/zyxist/dont-let-your-specs-go-stale-in-sdd-56j4</link>
      <guid>https://dev.to/zyxist/dont-let-your-specs-go-stale-in-sdd-56j4</guid>
      <description>&lt;p&gt;In my previous article, &lt;a href="https://dev.to/zyxist/spec-driven-development-the-new-waterfall-and-its-a-good-thing-4fm5"&gt;Spec-Driven Development: The New Waterfall, and It's a Good Thing&lt;/a&gt; I drafted a connection between &lt;strong&gt;Spec-Driven Development&lt;/strong&gt; and the &lt;strong&gt;Waterfall Model&lt;/strong&gt;. &lt;strong&gt;SDD&lt;/strong&gt;, just like &lt;strong&gt;Waterfall&lt;/strong&gt; brings the documentation back to the game - the thing agile methodologies IMHO never did right.&lt;/p&gt;

&lt;p&gt;In &lt;strong&gt;SDD&lt;/strong&gt;, the documentation now plays the role of the &lt;strong&gt;Single Source of Truth&lt;/strong&gt; about the system. This is different from how we wrote the software in the last 20+ years, where the code was the ultimate authority - often becase we did not have any other reliable artifact 😛. The coding agents just trust the spec contents and that also creates... a &lt;strong&gt;Single Point of Failure&lt;/strong&gt;, when the spec goes stale: the requirements are no longer valid or start contradicting each other.&lt;/p&gt;

&lt;p&gt;In this article, I will share a couple of general thoughts on this topic and a couple of observations from two of the SDD projects I'm involved in.&lt;/p&gt;

&lt;h2&gt;
  
  
  Staleness: It Just Happens
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;The problem with SDD is that the spec can go stale. The agents will code just whatever is there. That's what I'm worried about.&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Don't blame &lt;strong&gt;Spec-Driven Development&lt;/strong&gt; for this. Everything that is a &lt;strong&gt;Single Source of Truth&lt;/strong&gt;  is vulnerable to the staleness problem: be this the code, the documentation, the spec, the dataset... If we ever invent a completely novel source of truth about the software that would replace specs, code and everything - the staleness question will emerge there naturally, too. The mere fact that it occurs is just an observation of the natural process.&lt;/p&gt;

&lt;p&gt;Look at the code: one can say that the code can't go stale, because it needs to compile and give the working system. The deterministic nature of code is a really strong feature, no doubt. But have you ever seen a system originally designed for thing A that developers had to adapt in rush to do the thing B, then C? Have you every seen a codebase with business knowledge encoded in cryptic IF-s? That's where the staleness appears in the code. We like to call it &lt;em&gt;technical debt&lt;/em&gt;, &lt;em&gt;legacy&lt;/em&gt;, etc.:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The core is still for the obsolete thing A.&lt;/li&gt;
&lt;li&gt;We build things B and C as more and more layers of workarounds.&lt;/li&gt;
&lt;li&gt;At some point, the complexity makes us get stuck, if we do nothing about it.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That's why we do reworks, refactors, and we ask for time to do it.&lt;/p&gt;

&lt;p&gt;So here's how we should look at the &lt;em&gt;stale spec problem&lt;/em&gt;: it's not about looking for a "magic" approach, where staleness doesn't happen. It will. We should look for techniques specific to the given &lt;strong&gt;Source of Truth&lt;/strong&gt; that help us minimize the problem and bring it to the manageable level.&lt;/p&gt;

&lt;h2&gt;
  
  
  Validate, validate, validate
&lt;/h2&gt;

&lt;p&gt;The most basic and obvious technique is the &lt;em&gt;validation&lt;/em&gt; of the spec after we wrote it. We can also call it &lt;em&gt;review&lt;/em&gt;, because in essence, it's the same thing: we give the output to someone else, with fresh, unbiased perspective to spot issues. It works well in the AI world, too, because:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The AI can hallucinate and will hallucinate, introducing bugs, contradictions and issues.&lt;/li&gt;
&lt;li&gt;The same AI is extremely good at spotting the same bugs, contradictions, and issues, when tasked to do so.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In my projects, the first thing I look at is how the review process works: no matter what tools I use (e.g. OpenSpec, in-house instructions for the agents... ). We can see that a lot of today's attention goes into the optimization of the spec validation process. The recently open-sourced Google's &lt;a href="https://github.com/google/elephant-goldfish-model" rel="noopener noreferrer"&gt;Elephant-Goldfish Model&lt;/a&gt; is a good example. It introduces the following workflow:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Design&lt;/strong&gt; with a heavy "elephant" agent with the knowledge of the project, memory, etc.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Review&lt;/strong&gt; with independent, short-lived, stateless "goldfish" agents that aim to introduce a "fresh-eye" perspective.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Having a validation workflow is necessary to deal with the staleness problem. For small projects, it's also sufficient. The challenge beings, when things start going big - just &lt;em&gt;any&lt;/em&gt; review process may not be enough.&lt;/p&gt;

&lt;h2&gt;
  
  
  Requirement Hierarchy
&lt;/h2&gt;

&lt;p&gt;Long ago, I noticed that requirements are not born equal. There is certainly a difference between two (random, imagined) statements like this:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;em&gt;Three days before a deadline for signing a document, the system shall send a reminder via configured communication channels (e.g. e-mail, sms)&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;All documents must pass a mandatory stakeholder review before they become available for signing&lt;/em&gt;.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The first statement just clarifies a single, localized corner case. The second one establishes a whole business sub-process with many dependent requirements.&lt;/p&gt;

&lt;p&gt;I like the analogy to the building, where some requirements set up a baseline for others that build on top of it - in other words, they form a hierarchy:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F7hodbu9ek0j5b58101jp.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F7hodbu9ek0j5b58101jp.png" alt="Construction: larger bricks on the bottom, and smaller bricks on top of it. Axis top-bottom, bottom: &amp;quot;costly to change&amp;quot;, top: &amp;quot;cheap to change&amp;quot;" width="800" height="251"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The key observation is that the more general the requirement is, the more costly/disruptive it is to change it. The cost can represent anything: from code changes to the impact on other requirements. We often call the changes of those fundamental requirements "&lt;em&gt;pivots&lt;/em&gt;", especially if we already built sufficiently enough on them.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Worth noting&lt;/strong&gt;: this is just the nature of the requirements, unrelated to any particular software development methodology. Certain decisions need to follow in order even in agile. It's obvious if we recall situations, where we report &lt;em&gt;"I'm blocked, because I'm waiting for someone else's decision, and I don't know what to do"&lt;/em&gt;. It's obvious, if we recall situations, where a change of direction in the late sprint invalidated the work done in several previous sprints.&lt;/p&gt;

&lt;h2&gt;
  
  
  Divide and Conquer
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;A change of a single - but fundamental - requirement may make a large part of the spec obsolete. And that's just how the world works.&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;That's the conclusion coming from the observations in &lt;strong&gt;Requirements Hierarchy&lt;/strong&gt;. Unfortunately, it's also a challenge for the spec management. It's true that the AI agent can evaluate a lot of requirements against each other in short time. But &lt;em&gt;"a lot"&lt;/em&gt; ≠ &lt;em&gt;"infinite amount"&lt;/em&gt; - AI is not a magic oracle, and it also has resource limitations. They are just large enough that small projects may not run into them, creating an illusion of infinite precision.&lt;/p&gt;

&lt;p&gt;If the problem becomes too large as a whole, why not dividing it into smaller sub-problems, small but meaningful enough to solve independently? That's a well known &lt;strong&gt;Divide and Conquer&lt;/strong&gt; paradigm.&lt;/p&gt;

&lt;p&gt;One of my side projects that I develop with &lt;strong&gt;SDD&lt;/strong&gt; is a &lt;a href="https://apyhub.com/providers/modernsoftware-pro" rel="noopener noreferrer"&gt;my API collection&lt;/a&gt;. I use it also as a test ground for a couple of &lt;strong&gt;SDD&lt;/strong&gt; ideas. Here I combined my knowledge about the dependencies between different parts of the project with &lt;strong&gt;Divide and Conquer&lt;/strong&gt; to my advantage. This is how the project looks like:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fdvgobhh3wclp0thmdxkc.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fdvgobhh3wclp0thmdxkc.png" alt="API Collection Architecture: common core that provides 'billing', 'authorization', 'error handling', 'database access'. Then - a couple of independent API-s built on it" width="601" height="471"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Each API is an independent module, but all of them share a common core that provides common approach to things like authorization, error handling or billing. Let's take a look at the interplay between them:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Each API has its own business requirements.&lt;/li&gt;
&lt;li&gt;A change in one API does not affect other API-s, but it must follow the core principles from the core.&lt;/li&gt;
&lt;li&gt;A change in one of the core topics may affect multiple API-s, but only at the point of contact. It should never trigger a change in the key business logic of any API.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I built the entire review workflow around these principles with a couple of custom agent skills:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Drafting a spec change (by hand, or agent-assisted)&lt;/li&gt;
&lt;li&gt;For API specs: &lt;code&gt;/validate-api-spec&lt;/code&gt;: checks the internal consistency of a single API spec, and the compatibility with the used mechanisms of the core.&lt;/li&gt;
&lt;li&gt;For core specs:

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;/validate-core-spec&lt;/code&gt; - checks the internal consistency of the given core spec (phase 1).&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;/check-core-impact&lt;/code&gt; - analyzes, how the change in a core spec impacts API specs (phase 2).&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Combined with a discipline to change a single &lt;strong&gt;either&lt;/strong&gt; API &lt;strong&gt;or&lt;/strong&gt; architecture spec at a time, I got a neat workflow that scaled easily to the growing number of API-s. It focuses agent's attention on a single, relatively small &lt;code&gt;*.md&lt;/code&gt; file, which contains 10-30 related requirements. When I change the API, I need to validate only those 10-30 requirements, not the entire project, and the agent has very simple, clean rules to understand the scope. Even for &lt;code&gt;/check-core-impact&lt;/code&gt;, there's usually only 1 or 2 requirements in each spec that refer the given core mechanism, so again: the agent does not need to scan all of them. I've been working with this workflow for some time and it really did the job for me.&lt;/p&gt;

&lt;h2&gt;
  
  
  Granularity of Changes
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;Working in smaller increments helps agents stay focused on  important things.&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The challenge of working with AI agents is that you can give them a problem of literally any size. As long as you have enough time and tokens, the agent will do it for you. But the good, old &lt;strong&gt;Single Responsibility Principle&lt;/strong&gt; applies also here and helps the agents stay focused on the right thing.&lt;/p&gt;

&lt;p&gt;Not so long ago, we decided to do a full, agentic rewrite of an important, in-house library with years of accumulated technical/maintenance debt. The process comprised a couple of stages, and we quite intentionally decided to do it in a &lt;strong&gt;Big-bang&lt;/strong&gt; approach - not only to ensure discovering all features the teams might have used, but also to test the limits of the agents. That was the entire flow:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fomk3maj37iu9yiaju28f.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fomk3maj37iu9yiaju28f.png" alt="Reverse engineering process - 3 inputs: old library, unfinished feature, instructions for new architecture. Outcome: spec draft. Then: review. Outcome: spec. Then: implementation. Outcome: code + documentation" width="800" height="249"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The interesting part is that we included not 1 input, but 3. In addition to the old library, we also had a large, unfinished feature on a branch we really wanted to have from day 1. We also had guidelines for the new architecture and things from the old codebase that we knew they &lt;em&gt;didn't work&lt;/em&gt; (things to avoid). So, the agents had quite a lot of work to do!&lt;/p&gt;

&lt;p&gt;The rewrite succeded - we got a working product that we decided to continue with, but... our &lt;strong&gt;Big-Bang Approach&lt;/strong&gt; required us to deal with a couple of challenges on the way:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Long open-issue list&lt;/strong&gt;: The initial list of open issues contained about 60 items. Reviewing them without getting lost was a real challenge. We managed to do it just because I had large knowledge about both the old library and the domain.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Code does not follow specs&lt;/strong&gt;: The agents coded a couple of details differently than the spec stated.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Creative inventions&lt;/strong&gt;: The agents added two mechanisms that the spec never mentioned. The intent was good (improving the testability), but the additions broke the &lt;em&gt;Single Responsibility Principle&lt;/em&gt; and duplicated some of the logic.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Only the careful review of &lt;strong&gt;both&lt;/strong&gt; the code &lt;strong&gt;and&lt;/strong&gt; the spec allowed us to capture the problems and progressively remove them before releasing the library for the first time. The differences were &lt;em&gt;technically&lt;/em&gt; correct, but we knew we should not ship them in the finished product. For example, one of the agent innovations was choosing the &lt;em&gt;different&lt;/em&gt; default value for one of the main settings, than in the old library and that the spec wanted. But...&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The &lt;em&gt;expected&lt;/em&gt; default was neutral for 80% of users, and beneficial for the remaining 20%.&lt;/li&gt;
&lt;li&gt;The agent's default was also neutral for 80% of users, and negatively impacted the stability of the remaining 20%.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I knew it, because the old library also used to have &lt;em&gt;that&lt;/em&gt; default in the past. We intentionally changed it later, when we noticed that those 20% of users forgot to read the docs and harden their project until they experienced an outage. The agent basically reversed that change, and I even discovered why:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The old library was a monolith, the new library had modular architecture.&lt;/li&gt;
&lt;li&gt;In the old code, the setting was controlled in 1 place.&lt;/li&gt;
&lt;li&gt;In the new code, there were two layers that applied setting (core and framework integration) + the expected "default" value was dependent on the functionality provided by yet another module.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;When the agent faced the new requirements, it discovered the interplay between all these parts. It autonomously concluded that the least disruptive way to solve it would be to use a different default value. It did the best possible job to follow the instructions... just in this case, the instructions were the problem. The problem so subtle that the review process did not find it.&lt;/p&gt;

&lt;p&gt;The trivial lesson from this project is that &lt;em&gt;you should work in smaller increments&lt;/em&gt; to stay focused (both you and the agent). But let's try to go deeper and see why smaller increments actually work. The invariant thing is the &lt;strong&gt;Expert's Judgement&lt;/strong&gt;: our expertise, understanding of the project and our ability to make opinionated decisions. If we want to understand, what we ship - we need to apply it somewhere, and we can't just skip this part:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Big-Bang Approach&lt;/strong&gt; (a single, large coding task): we apply it once, as a single, large review.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Small increments&lt;/strong&gt; (multiple small, incremental coding tasks): we apply it in smaller, more digestible chunks.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;I think that the main challenge with staleness in &lt;strong&gt;SDD&lt;/strong&gt; is that it's so easy to say &lt;em&gt;"I don't care, just do it"&lt;/em&gt;. With hand-crafted software, you really had no option: you had to understand what you code, otherwise it was almost impossible to finish any bigger change. Agents can do anything and it's both a benefit and a trap that may get us into serious maintenance trouble. If you don't understand what you build, how can you say that you own it? In this article we discussed a couple of observations and tactics about the staleness:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Staleness Happens&lt;/strong&gt;: you can't magically escape from it, only manage and minimze&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Review Matters&lt;/strong&gt;: both by agents and by humans&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Divide and Conquer&lt;/strong&gt;: to reduce the number of requirements the agent needs to track in a single change.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Small Increments&lt;/strong&gt; and the relationship to &lt;strong&gt;Expert's Judgement&lt;/strong&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;And the last one - probably the hardest one for some of us - is our own &lt;strong&gt;discipline&lt;/strong&gt;. But to be honest, it was also important before the AI.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>softwaredevelopment</category>
      <category>software</category>
    </item>
    <item>
      <title>Spec-Driven Development: The New Waterfall, and It's a Good Thing</title>
      <dc:creator>Tomasz Jędrzejewski</dc:creator>
      <pubDate>Thu, 19 Nov 2026 18:32:10 +0000</pubDate>
      <link>https://dev.to/zyxist/spec-driven-development-the-new-waterfall-and-its-a-good-thing-4fm5</link>
      <guid>https://dev.to/zyxist/spec-driven-development-the-new-waterfall-and-its-a-good-thing-4fm5</guid>
      <description>&lt;p&gt;It's been almost a year now since I stepped into the world of agentic coding and &lt;strong&gt;Spec-Driven Development&lt;/strong&gt;. Before, I really hated it, because the quality of LLM-s was poor. I spent more time fixing the generated code than I saved on letting the agent write it. But this has changed. Writing specifications, refining them with the agents, validation against rules, system design and existing requirements - it became new routine in my projects.&lt;/p&gt;

&lt;p&gt;Agentic coding did not increase my speed in many places, but instead shifted the effort from writing code to the discovery and design phase. And there are some new extra benefits of it: things that previously happened in my head, are now documented. There are written artifacts: specifications, decision logs, architecture documentations, that previously we often did not have time to write.&lt;/p&gt;

&lt;p&gt;I have recently read a great article of Sylwia Laskowska on this topic: &lt;a href="https://dev.to/sylwia-lask/is-coding-with-ai-actually-faster-and-cheaper-2810"&gt;Is Coding with AI Actually Faster and Cheaper?&lt;/a&gt; I shared the thoughts above in the comments, and then I realized one thing: all that I do with the agents resembles me the long-gone software development methodology: &lt;strong&gt;The Waterfall Model&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  What's Waterfall?
&lt;/h2&gt;

&lt;p&gt;The &lt;strong&gt;Waterfall Model&lt;/strong&gt; in software development fell out of use many years ago, replaced with various agile methodologies. For those of you, who hadn't got a chance to work with it, here's a quick overview, what it is. It's the first software development model with the origins traced back to 1950s (presentation of Herbert D. Benington). It assumes developing the software into several sequential phases:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fjm0z0uuuhh1t8auxug6w.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fjm0z0uuuhh1t8auxug6w.png" alt="Waterfall phases: Requirement Analysis, System Design, Implementation, Testing &amp;amp; Integration, Acceptance &amp;amp; Deployment, Maintenance" width="800" height="390"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The key feature is that you advance to the next phase &lt;strong&gt;only&lt;/strong&gt; when you successfully complete, review and approve the current one.&lt;/p&gt;

&lt;p&gt;The intent behind &lt;strong&gt;Waterfall Model&lt;/strong&gt; was clearly good: capturing the issue in the early phases was cheaper than fixing the bug in the finished product. In theory, the extra time spent on requirement analysis should later pay off later, right? Right?!&lt;/p&gt;

&lt;p&gt;Rightn't. Left. Whatever. The &lt;strong&gt;Waterfall Model&lt;/strong&gt; missed one point about software development: usually, you don't actually know your requirements upfront. You don't even know what you're going to build. You keep learning the project, experimenting by trial-and-error, refining your understanding of the needs. The Waterfall phases are long: they can last weeks and months. The feedback loop is so long that you learn about a flawed initial assumption many months later. The &lt;strong&gt;Waterfall Model&lt;/strong&gt; could only work in a narrow niche of well-explored, mature domains with the access to Subject Matter Experts who know customer needs.&lt;/p&gt;

&lt;h2&gt;
  
  
  Spec-Driven Development
&lt;/h2&gt;

&lt;p&gt;I looked at how I work with the agents in the &lt;strong&gt;Spec-Driven Development&lt;/strong&gt;:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fkrrwe5cgdeptnxkh1u00.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fkrrwe5cgdeptnxkh1u00.png" alt="SDD Phases: Creating Specification, Creating Technical Plan, Breaking into Tasks, Implementation, Testing &amp;amp; Integration, Acceptance &amp;amp; Deployment" width="800" height="447"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;It's quite amazing, how this flow translates into &lt;strong&gt;Good, Old Waterfall Model&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Specification&lt;/strong&gt; corresponds to the &lt;strong&gt;Requirement Analysis&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Technical Plan&lt;/strong&gt; corresponds to the &lt;strong&gt;System Design&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Breaking into tasks&lt;/strong&gt; was usually also present in Waterfall, just not named explicitly&lt;/li&gt;
&lt;li&gt;In both, we produce structured, detailed documentation artifacts.&lt;/li&gt;
&lt;li&gt;Implementation, Testing, Acceptance - in these phases, we strictly follow the specifications and plans created earlier.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;But most of all: we move to the next phase &lt;strong&gt;only&lt;/strong&gt; when we successfully complete the current one. You can say anything, but &lt;strong&gt;SDD&lt;/strong&gt; is the &lt;strong&gt;Waterfall Model&lt;/strong&gt;, just with slighlty different names and added AI :).&lt;/p&gt;

&lt;h2&gt;
  
  
  Why It Actually Works Now?
&lt;/h2&gt;

&lt;p&gt;Is this analogy a bad thing? Let's look at what we just said earlier: the problem with the &lt;strong&gt;Waterfall Model&lt;/strong&gt; is the long feedback loop. Combined with unclear requirements (a normal thing in IT), we get a disastrous combination. But &lt;strong&gt;Spec-Driven Development&lt;/strong&gt; removes this factor from the equation:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Individual phases take minutes and hours, not weeks and months.&lt;/li&gt;
&lt;li&gt;AI can quickly rework large amount of paperwork, if we change  our minds about the direction.&lt;/li&gt;
&lt;li&gt;AI can quickly translate rough descriptions of intents into structured documents and plans.&lt;/li&gt;
&lt;li&gt;AI can quickly validate the consistency of the requirements and plans.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A single developer can now complete the full SDD cycle within hours. Morever, when cycles are so short, we don't need to design the entire system in one shot. We can iterate on smaller increments with the granularity that suits us. If the outcome does not satisfy us, we can easily revert to the earlier phase or even throw the entire cycle away. This is a game-changer.&lt;/p&gt;

&lt;h2&gt;
  
  
  Documentation: Revived Benefit
&lt;/h2&gt;

&lt;p&gt;One thing that the &lt;strong&gt;Waterfall Model&lt;/strong&gt; did right was the &lt;em&gt;documentation&lt;/em&gt;, because writing it was a part of the process. It needed detailed documentation, so that programmers knew what to write - their role was "just" translating the specification into the code. Guess what - this is exactly what we expect from the coding agent in &lt;strong&gt;SDD&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;In my opinion, agile methodologies never managed to get the documentation right. Developers &lt;em&gt;could&lt;/em&gt; write the documentation only if additional factors forced them:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The customer required it (no documentation = no customer = no money = you starve and die, pretty good motivator).&lt;/li&gt;
&lt;li&gt;Developers overwhelmed with support tickets: we write documentation to stop people asking the same basic questions thousands of times.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Otherwise, the projects rarely had even a basic README. We had to accept that in all-human development, certain things take time and all we could do is to pick our poison. &lt;strong&gt;Spec-Driven Development&lt;/strong&gt; as a revived &lt;strong&gt;Waterfall Model&lt;/strong&gt; brings the documentation back to the game, because it's cheap now, and we need it to drive the agents.&lt;/p&gt;

&lt;h2&gt;
  
  
  AI Development Speed
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;"Did AI speed you up?"&lt;/p&gt;

&lt;p&gt;"No, I started doing Waterfall."&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;In the introduction, I said that AI did not necessarily speed me up, but rather helped me shift the effort to the discovery &amp;amp; design. The way how I do it is basically &lt;strong&gt;Waterfall Model&lt;/strong&gt; but an order of magnitude faster. Because of that, it actually works.&lt;/p&gt;

&lt;p&gt;So I think it's fair to say the following and wait for reactions: &lt;em&gt;"No, AI did not make me faster. It made me entering into the Waterfall Model."&lt;/em&gt; :)&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;In the IT and engineering, things are rarely black and white. We have consequences, trade-offs and circumstances. Our role is to rate them and tell, which ones are relevant to us in the given project. An idea that did not work in the past, may work now after changing the circumstances. I think this is what is happening to the &lt;strong&gt;Waterfall Model&lt;/strong&gt;. AI removed the problematic factor, and the good parts emerged again as &lt;strong&gt;Spec-Driven Development&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Can this conclusion change our lifes?&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;If I were just interested in finishing a feature and moving on to the next one - probably not.&lt;/li&gt;
&lt;li&gt;But I want to understand &lt;em&gt;why&lt;/em&gt; certain things (don't) work. Maybe I won't see the benefits now, but I believe that every such discovery may pay off later.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The &lt;em&gt;why&lt;/em&gt; factor helps me make better project decisions... and explain them to the stakeholders. That's what they pay me for, and I think - that's what you should prepare for, as you are less and less engaged in pure coding.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>architecture</category>
      <category>softwaredevelopment</category>
    </item>
    <item>
      <title>Linux: Newest NVIDIA Driver Fail and Hard Lesson About DKMS</title>
      <dc:creator>Tomasz Jędrzejewski</dc:creator>
      <pubDate>Tue, 17 Nov 2026 06:08:09 +0000</pubDate>
      <link>https://dev.to/zyxist/linux-newest-nvidia-driver-fail-and-hard-lesson-about-dkms-4b47</link>
      <guid>https://dev.to/zyxist/linux-newest-nvidia-driver-fail-and-hard-lesson-about-dkms-4b47</guid>
      <description>&lt;p&gt;For 20 years, I've been a user of Linux (precisely: Arch Linux distribution) - for some time, it was the &lt;em&gt;only&lt;/em&gt; system installed on my computer. Currently, I'm using it primarily for development-related work, and I regularly update my system using the brilliant &lt;strong&gt;pacman&lt;/strong&gt; package manager available in Arch Linux. However, this devotion is sometimes hard, especially when the update goes wrong and you end up with a broken system.&lt;/p&gt;

&lt;p&gt;This is a short story of a yesterday's failed system update that brought - among others - a new kernel version and &lt;strong&gt;nvidia-open-620.76.06&lt;/strong&gt; drivers for NVIDIA graphics card. They showed me two things:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;The new driver version is broken.&lt;/li&gt;
&lt;li&gt;I need a fallback, and I did not have one.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  What Happened?
&lt;/h2&gt;

&lt;p&gt;Morning. I ran the computer, I typed &lt;code&gt;sudo pacman -Syu&lt;/code&gt; and I went to the kitchen to make coffee. Just an ordinary update. There was no &lt;em&gt;"manual action needed"&lt;/em&gt; news on the website - nothing to worry about. I came back with the black drink, I restarted the machine, logged into KDE and... oh. The mouse cursor is lagging. All animations are lagging. Typing on the keyboard is lagging. Terminal is almost unusable.&lt;/p&gt;

&lt;p&gt;I managed to find some information on the Internet. The main recommendation what to check was the video card driver - &lt;code&gt;nvidia-open&lt;/code&gt; in my case. However, the reports were related to the older versions - I tried some workarounds, but obviously they did not work, and sometimes they made the issue even worse.&lt;/p&gt;

&lt;p&gt;The challenge with debugging was that my desktop environment was unresponsive. I needed to log out, switch to the pure terminal, and look up all the information on the mobile phone.&lt;/p&gt;

&lt;h2&gt;
  
  
  Downgrade Fail
&lt;/h2&gt;

&lt;p&gt;Eventually, I decided to downgrade the driver. &lt;strong&gt;Pacman&lt;/strong&gt; has the downgrade ability, but you need to have an older version of the package on your disk. Fortunately, Pacman maintains a cache of previously installed packages in &lt;code&gt;/var/cache/pacman/pkg&lt;/code&gt;, so I crafted the following command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# CACHE_DIR=/var/cache/pacman/pkg&lt;/span&gt;
&lt;span class="c"&gt;# sudo pacman -U \&lt;/span&gt;
   &lt;span class="nv"&gt;$CACHE_DIR&lt;/span&gt;/nvidia-open-615.78.08-4-x86_64.pkg.tar.zst \
   &lt;span class="nv"&gt;$CACHE_DIR&lt;/span&gt;/nvidia-utils-615.78.08-1-x86_64.pkg.tar.zst \
   &lt;span class="nv"&gt;$CACHE_DIR&lt;/span&gt;/nvidia-settings-615.78.08-1-x86_64.pkg.tar.zst \
   &lt;span class="nv"&gt;$CACHE_DIR&lt;/span&gt;/lib32-nvidia-utils-615.78.08-1-x86_64.pkg.tar.zst
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It did not work. The first sign was that &lt;strong&gt;mkinitcpio&lt;/strong&gt; did not rebuild correctly. The second sign was that after restart, the desktop environment did not start at all.&lt;/p&gt;

&lt;h2&gt;
  
  
  Root Cause
&lt;/h2&gt;

&lt;p&gt;The root cause was again NVIDIA :). Precisely, the fact that &lt;code&gt;nvidia-open&lt;/code&gt; package I've been using was compiled against a &lt;em&gt;specific&lt;/em&gt; version of the kernel. This means I should also downgrade the kernel, which in turn could force me to downgrade more and more things, and the system could break completely meanwhile.&lt;/p&gt;

&lt;p&gt;I recalled that there are in fact two variants of this package:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;nvidia-open&lt;/code&gt;: precompiled against a specific kernel version&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;nvidia-open-dkms&lt;/code&gt;: dynamically compiled against &lt;em&gt;current&lt;/em&gt; kernel during installation with DKMS (Dynamic Kernel Module Support)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I installed &lt;code&gt;nvidia-open&lt;/code&gt; years earlier, because that was the recommendation many people gave: "&lt;em&gt;use &lt;code&gt;nvidia-open&lt;/code&gt; if you have a standard kernel, and &lt;code&gt;nvidia-open-dkms&lt;/code&gt; for non-standard kernels&lt;/em&gt;". What they did not say is that &lt;code&gt;nvidia-open&lt;/code&gt; also blocks the ability to downgrade the driver on the standard kernel :). Dynamic compilation has some cost: the system needs to compile all drivers during installation, but we do it once, that the process is not that long.&lt;/p&gt;

&lt;h2&gt;
  
  
  Second Downgrade
&lt;/h2&gt;

&lt;p&gt;In order to switch to the DKMS driver, I needed to find the &lt;code&gt;nvidia-open-dkms-615.78.08-2-x86_64.pkg.tar.gz&lt;/code&gt; package (older &lt;strong&gt;615&lt;/strong&gt; version) in some trusted source, because obviously I did not have it in my cache. Then I discovered &lt;a href="https://archive.archlinux.org/" rel="noopener noreferrer"&gt;Arch Linux Archive&lt;/a&gt;, an official repository of older packages that I did not know about :). Usually you learn about such things, when things go wrong, because otherwise there is no use for it. And I did not have to downgrade any package for years.&lt;/p&gt;

&lt;p&gt;I carefully retyped the full URI of the package from the mobile phone into the bare terminal, and I got the file. The downgrade with switching the driver was fairly easy:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# sudo pacman -U \&lt;/span&gt;
   ~/nvidia-open-dkms-615.78.08-2-x86_64.pkg.tar.gz \
   &lt;span class="nv"&gt;$CACHE_DIR&lt;/span&gt;/nvidia-utils-615.78.08-1-x86_64.pkg.tar.zst \
   &lt;span class="nv"&gt;$CACHE_DIR&lt;/span&gt;/nvidia-settings-615.78.08-1-x86_64.pkg.tar.zst \
   &lt;span class="nv"&gt;$CACHE_DIR&lt;/span&gt;/lib32-nvidia-utils-615.78.08-1-x86_64.pkg.tar.zst
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Pacman&lt;/strong&gt; automatically detected that &lt;code&gt;nvidia-open&lt;/code&gt; and &lt;code&gt;nvidia-open-dkms&lt;/code&gt; are in conflict, and asked for removing the old variant. The compilation of DKMS modules took about 1 minute, &lt;strong&gt;mkinitcpio&lt;/strong&gt; rebuilt normally, and after restart I had a working system again.&lt;/p&gt;

&lt;h2&gt;
  
  
  Lessons Learned
&lt;/h2&gt;

&lt;p&gt;I don't know what &lt;em&gt;exactly&lt;/em&gt; is wrong with the &lt;strong&gt;620&lt;/strong&gt; version of NVIDIA driver. Later, I found reports of the problem on NVIDIA forums, so I wasn't the only person that ran into it. The lesson for me was that NVIDIA drivers were long known for causing issues on Linux for some users, but I did not prepare any fallback in case it happened to me.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;nvidia-open-dkms&lt;/code&gt; will stay with me. The ability to downgrade the driver without touching the kernel is something that I really want to have. Most system upgrades go smoothly, but if they don't, I want to have my system back quickly.&lt;/p&gt;

</description>
      <category>archlinux</category>
      <category>linux</category>
    </item>
    <item>
      <title>Two Bugs, Zero Clues: How AI Saved Me Days of Debugging My API</title>
      <dc:creator>Tomasz Jędrzejewski</dc:creator>
      <pubDate>Fri, 13 Nov 2026 09:15:42 +0000</pubDate>
      <link>https://dev.to/zyxist/two-bugs-zero-clues-how-ai-saved-me-days-of-debugging-my-api-58j</link>
      <guid>https://dev.to/zyxist/two-bugs-zero-clues-how-ai-saved-me-days-of-debugging-my-api-58j</guid>
      <description>&lt;p&gt;Until recently, I thought the worst type of bugs were the ones that happen only in production. Now I know that there's something worse: bugs that happen only in production &lt;strong&gt;and&lt;/strong&gt; the only clue you have is &lt;em&gt;"there's an error"&lt;/em&gt; message. This is exactly what happened to me recently. I've been working on a side project: an API for city information and reverse geocoding. Everything went fine locally: creating spec, implementation, testing, dataset preparation, refinement... the API is nice, but it's not a rocket science, so I did not expect any further issues. The deployment should be quick. But it wasn't. &lt;em&gt;"Internal Server Error, Happy Debugging, Good Luck"&lt;/em&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  How I use AI in this project
&lt;/h2&gt;

&lt;p&gt;I'm using agentic coding and Spec-Driven Development (SDD) to build my API-s. That's my personal goal for it - I know how to write a code, I've been doing this for the last 20 years. What I'm exploring is how specs translate to the final product, how it affects engineering and engineering decisions.&lt;/p&gt;

&lt;p&gt;Until approx. a year ago, I hated agentic coding. The quality of the generated code was so poor that I spent more time on fixing the code than I saved. If something wastes my time, I don't like it. Simple. But this has changed, when a new generation of models arrived. Actually, before I gave the agentic coding another try (this time successfully), I firstly noticed the change in the code reviews. One day, the agent found an actual issue in my PR. Then another one, and another. This matters for me - code review is a skill, and many experienced developers suffer, because they often work with people who don't have it, so in turn - nobody does &lt;em&gt;proper&lt;/em&gt; code reviews for them :). And I also make bugs.&lt;/p&gt;

&lt;p&gt;I mention code reviews on purpose, because they have a lot in common with debugging the actual production issues. That's why I decided to engage the agent into solving my production bugs. Let's get into them!&lt;/p&gt;

&lt;h2&gt;
  
  
  Bug 1: A problem with production database
&lt;/h2&gt;

&lt;p&gt;I deployed the API to the production server and started testing. One endpoint worked as expected. The two others - did not:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
   &lt;span class="nl"&gt;"error"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Internal Server Error"&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I did not panic, because the endpoint was intentionally configured not to reveal error details. I obtained it from the detailed logs, and then I got really confused:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;SQLSTATE[25000]: Invalid transaction state:
1207 Update locks cannot be acquired during
a READ UNCOMMITTED transaction
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This is a read-only API. All queries are &lt;code&gt;SELECT&lt;/code&gt; queries, so where did this "update" and "transactions" come from? And why only in production? The same code worked well locally. Obviously there was something wrong with the production database setup, but what?&lt;/p&gt;

&lt;p&gt;I started with asking my coding agent:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Cities API - I deployed the Cities API to the production server, and the &lt;code&gt;reverse&lt;/code&gt; + &lt;code&gt;nearby&lt;/code&gt; endpoints respond with the following SQL error: (error here) The &lt;code&gt;search&lt;/code&gt; endpoint works as expected. The error does not occur locally. What can be wrong there?&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The agent responded:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;No isolation level is set here — it inherits whatever the server's default &lt;code&gt;transaction_isolation&lt;/code&gt; is. That's the smoking gun. What's happening: &lt;code&gt;candidatesInBoundingBox()&lt;/code&gt; runs &lt;code&gt;MBRContains(ST_GeomFromText(:envelope, 4326), c.location)&lt;/code&gt; — this is the only query path used by &lt;code&gt;reverse&lt;/code&gt;/&lt;code&gt;nearby&lt;/code&gt; that touches the &lt;code&gt;location&lt;/code&gt; column's &lt;strong&gt;SPATIAL INDEX&lt;/strong&gt;. &lt;code&gt;search&lt;/code&gt; never touches it, which is exactly why &lt;code&gt;search&lt;/code&gt; works and &lt;code&gt;reverse&lt;/code&gt;/&lt;code&gt;nearby&lt;/code&gt; don't. InnoDB's spatial (R-tree) indexes can't do a plain MVCC consistent read — a lookup against them needs to take predicate/page locks to keep the R-tree structurally consistent. Under &lt;code&gt;READ UNCOMMITTED&lt;/code&gt;, InnoDB refuses to take any locks for a read, so it can't satisfy that requirement and MariaDB raises error &lt;code&gt;1207 ("Update locks cannot be acquired during a READ UNCOMMITTED transaction")&lt;/code&gt;. This is a documented MariaDB/InnoDB limitation: spatial indexes are only usable above &lt;code&gt;READ UNCOMMITTED&lt;/code&gt;.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The agent suggested setting the transaction isolation level manually. It did not solve the issue, but the direction was good, so I kept grilling. The agent then focused on the server deployment. It knew the vendor behind the production server and came back with a story about MariaDB and Galera setup that - supposedly - broke the spatial index functionality. But I challenged that, knowing that other spatial queries work, including &lt;em&gt;other&lt;/em&gt; bounding box queries:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Can you provide sources about Galera cluster and the issue details? The problem is that I successfully ran the bounding box query via phpMyAdmin in the production server.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;I got the answer:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;I was wrong about Galera — no verified source backs that, and I should have said so rather than asserting it. Retracting it. The real cause is a confirmed MariaDB bug. &lt;code&gt;MDEV-26123 — Using Spatial Indexes results in "Update locks cannot be acquired during a READ UNCOMMITTED transaction"&lt;/code&gt;. Affected versions: 10.2.39, 10.3.30, 10.4.20, 10.5.11, 10.6.1 — fix targeted for 10.11. (...) This maps onto our code: (...)&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;I cross-checked the verdict by pasting the error message in the Google, and I found references to the same bug on StackOverflow. The only thing that did not match was MariaDB actually did not fix it in version 10.11. But that was enough to spot the problem. The bug reference contained the list of workarounds to try out, until one works. The combination of upgrading MariaDB + adding &lt;code&gt;SQL_NO_CACHE&lt;/code&gt; to the query did the job and the problem was gone.&lt;/p&gt;

&lt;h3&gt;
  
  
  Verdict
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Hopeless without agent?&lt;/strong&gt; Actually, no. If you paste the same error into Google, you quickly get the bug ID.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Added value&lt;/strong&gt;: The agent combined the bug ID with the actual queries in the code, and correctly identified why one endpoint works, and two others do not. This is the place where I saved a lot of time.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Agent performance&lt;/strong&gt;: The agent hallucinated a bit, but it was due to my actions. I intentionally did not give the agent the access to the production server, but I never explained the limitations and the rules.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Lesson learned&lt;/strong&gt;:

&lt;ul&gt;
&lt;li&gt;In such issues, understanding the production setup is important. Even if the agent does not have the access to the server, I &lt;em&gt;do have&lt;/em&gt; such access and I can check/test something - I just need to know what, and I could have told the agent to ask me to do it. In human-to-human communication, we should avoid forcing others to guess our intents, the same applies to the agents.&lt;/li&gt;
&lt;li&gt;If some explanation sounds suspicious, ask for sources.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Bug 2: error while publishing the API
&lt;/h2&gt;

&lt;p&gt;I list my API-s in one of the API marketplaces. The publishing process involves importing my OpenAPI Definition and generating:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;An editable description of the API and endpoints in Markdown format.&lt;/li&gt;
&lt;li&gt;The schemas of input and output request/response JSON-s, which look like JSON Schema with some custom extensions.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;After a successful import and fixing some descriptions, I proceeded to testing the integration. And again: two endpoints worked, the third one did not:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Validation failed.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Yes, that was the whole error. No more clues, no access to the server or the source code. I made a mistake here: I tried to solve the problem on my own. Obviously I failed. There was certainly a bug on the gateway side, but without access to the source code, all I could do was writing to the support team. The next day, a weird idea came to my mind: why not asking the agent to solve it? What do am I losing? Nothing.&lt;/p&gt;

&lt;p&gt;Just like before, the agent did not have the access to the server. But this time, I prepared the data samples and explained the limitations to the agent:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;example.json&lt;/code&gt; - example response from my API&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;input-schema.json&lt;/code&gt; and &lt;code&gt;output-schema.json&lt;/code&gt; - schemas copy-pasted from the publishing tool&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Prompt:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;I need help examining the bug on the API gateway. How it works: it uses custom input and output schema definitions for requests and responses, converted from our OpenAPI Definition. When I run the test for &lt;code&gt;nearby&lt;/code&gt; endpoint, I constantly get &lt;code&gt;validation failed&lt;/code&gt; error with no further details (tried out multiple times on multiple fix attempts). In &lt;code&gt;/{directory}/&lt;/code&gt; you can find input and output schema definitions and an example response. You have no details about the error and the schema structure is custom. Please analyze them - maybe you will spot some issue that I miss? I suspect that this is a bug on the gateway side, but if we could create a workaround, this would be great. Outcome: suggestions of possible issues to review. If I see that it may be the cause, I will ask you to create an updated schema, so that I can try it out.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The agent replied:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Confirmed: &lt;code&gt;openapi/cities-v1.yaml&lt;/code&gt; defines &lt;code&gt;Radius&lt;/code&gt; using the OpenAPI 3.0 / JSON Schema draft-4 &lt;strong&gt;boolean&lt;/strong&gt; form — &lt;code&gt;exclusiveMinimum: true&lt;/code&gt; paired with &lt;code&gt;minimum: 0&lt;/code&gt; — and that's copied verbatim into &lt;code&gt;{directory}/input-schema.json&lt;/code&gt;. This is the only parameter across all three endpoints (&lt;code&gt;nearby&lt;/code&gt;, &lt;code&gt;reverse&lt;/code&gt;, &lt;code&gt;search&lt;/code&gt;) that uses &lt;code&gt;exclusiveMinimum&lt;/code&gt; at all; &lt;code&gt;reverse&lt;/code&gt; and &lt;code&gt;search&lt;/code&gt; have no equivalent field and don't exhibit this pattern.&lt;/p&gt;

&lt;p&gt;That matters because JSON Schema 2019-09+/2020-12 (what most "custom" schema validators, including the one on the marketplace, actually implement) requires &lt;code&gt;exclusiveMinimum&lt;/code&gt; to be a &lt;strong&gt;number&lt;/strong&gt; (e.g. &lt;code&gt;exclusiveMinimum: 0&lt;/code&gt;, with no separate &lt;code&gt;minimum&lt;/code&gt;), not a boolean flag. A boolean &lt;code&gt;exclusiveMinimum&lt;/code&gt; is structurally invalid there — depending on the validator, this either gets silently ignored (wrong behavior but not a failure) or trips the validator into a degenerate "can't satisfy this constraint" / fail-closed state, which matches your symptom exactly: &lt;em&gt;every&lt;/em&gt; call to &lt;code&gt;nearby&lt;/code&gt; fails validation with no detail, regardless of what &lt;code&gt;radius&lt;/code&gt; value you send.&lt;/p&gt;

&lt;p&gt;My top suspect, in order of confidence:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;radius&lt;/code&gt;'s &lt;code&gt;exclusiveMinimum: true&lt;/code&gt; + &lt;code&gt;minimum: 0&lt;/code&gt;&lt;/strong&gt; (draft-4/OpenAPI-3.0 boolean form) — the one schema quirk unique to &lt;code&gt;nearby&lt;/code&gt;'s input among the three endpoints, and a very plausible reason the gateway's validator chokes consistently.&lt;/li&gt;
&lt;li&gt;Lower-confidence secondary suspect: the &lt;code&gt;type&lt;/code&gt;/&lt;code&gt;officialNames&lt;/code&gt;/&lt;code&gt;translations&lt;/code&gt; nested objects use &lt;code&gt;"nullable": true&lt;/code&gt; sitting alongside &lt;code&gt;"type": "object"&lt;/code&gt; plus &lt;code&gt;allOf&lt;/code&gt; — also an OpenAPI 3.0-ism that a strict JSON Schema validator won't interpret as "allow null." But this pattern is identical across &lt;code&gt;nearby&lt;/code&gt;, &lt;code&gt;search&lt;/code&gt;, and &lt;code&gt;reverse&lt;/code&gt; output schemas, so it wouldn't explain why only &lt;code&gt;nearby&lt;/code&gt; fails — unless the other two endpoints simply haven't been exercised yet or happen not to hit a null in your test data.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;Workaround to try first, cheaply:&lt;/strong&gt; rewrite &lt;code&gt;radius&lt;/code&gt; in the input schema to the modern numeric form. If that alone makes &lt;code&gt;nearby&lt;/code&gt; pass, it confirms the gateway's validator is draft 2019-09+/2020-12-only and doesn't back-translate OpenAPI 3.0 boolean exclusiveMinimum — which would also mean you should audit the OpenAPI source for other boolean-style &lt;code&gt;exclusiveMinimum&lt;/code&gt;/&lt;code&gt;exclusiveMaximum&lt;/code&gt; usages before they bite another endpoint.&lt;/p&gt;

&lt;p&gt;Want me to produce the corrected &lt;code&gt;input-schema.json&lt;/code&gt; (and the matching OpenAPI fix) for you to try?&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Nailed it! Indeed, that was the issue. The fix worked, I sent my API for review, and I also notified the support team that they don't need to debug anything, because I found the root cause.&lt;/p&gt;

&lt;h3&gt;
  
  
  Verdict
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Hopeless without agent?&lt;/strong&gt; Yes - I tried, I failed.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Added value&lt;/strong&gt;: Very few people have the patience to compare every attribute by hand against multiple versions of JSON Schema spec, looking for the needle in the haystack. The agent can do this in minutes.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Agent performance&lt;/strong&gt;: The very first response found the root cause.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Lesson learned&lt;/strong&gt;: Making manual, random changes to the schemas without clues was not a good idea.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Lessons learned &amp;amp; summary
&lt;/h2&gt;

&lt;p&gt;AI agents are good at analyzing large amount of information in short time, looking for patterns and anomalies. This is essential in the debugging process. I turned the findings into a skill, so that I don't have to remember explaining restrictions every time I debug a production issue. And here's exactly what I learned:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The more the problem is a "needle in the haystack", the more the agent can outperform human.&lt;/li&gt;
&lt;li&gt;Provide clear information, which parts of the system work, and which do not. In both cases, this helped the agent to triage the issue to the right parts of the code much quicker than humans could do.&lt;/li&gt;
&lt;li&gt;Be clear about what we know, and what we don't know about the issue.&lt;/li&gt;
&lt;li&gt;If you don't want to give the access to a certain resource (e.g. production server) as a safety measure, say it explicitly and explain, how the agent can ask you for additional information or test something.&lt;/li&gt;
&lt;li&gt;Asking to back the explanations with sources helps.&lt;/li&gt;
&lt;li&gt;Engineering skills still matter to assess the responses, and when we need to make the final decision: which of the fixes to apply, especially if we deal with a production system?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I hope that you will find the two stories useful also for you!&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Used AI model and harness&lt;/strong&gt;: Claude Sonnet 5.5 (medium), Claude Code &lt;/p&gt;

</description>
      <category>ai</category>
      <category>debugging</category>
      <category>api</category>
      <category>database</category>
    </item>
  </channel>
</rss>
