<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Flude Blog (English)</title><description>Build in public: architecture notes, engineering decisions, and progress updates.</description><link>https://blog.flude.guide/</link><atom:link href="https://blog.flude.guide/rss-en.xml" rel="self" type="application/rss+xml"/><item><title>The Watchdog Needs a Watchdog: How a Rescue Script Hung Inside Itself</title><link>https://blog.flude.guide/blog/the-watchdog-needs-a-watchdog/</link><guid isPermaLink="true">https://blog.flude.guide/blog/the-watchdog-needs-a-watchdog/</guid><description>What to do when a system written to rescue you from hangs freezes dead itself? A story about recursive infrastructure paranoia.</description><pubDate>Mon, 16 Nov 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;After colliding with network ghosts on our self-hosted runners, we learned one rule: networks and virtual machines are extremely unreliable entities.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.flude.guide/images/the_watchdog_needs_a_watchdog.jpg&quot; alt=&quot;The Watchdog Needs A Watchdog&quot; /&gt;&lt;/p&gt;
&lt;p&gt;To avoid running to the server every time the pipeline &quot;stuck fast,&quot; we wrote a Supervisor script (to manage the process) and a completely independent Watchdog script. Its logic was primitive and reliable: if the Supervisor doesn&apos;t respond, kill it, send us a nice Telegram alert, and restart the process.&lt;/p&gt;
&lt;p&gt;This was a perfect, self-healing system. Or so we thought.&lt;/p&gt;
&lt;h2&gt;First Blood: Telegram&apos;s Betrayal&lt;/h2&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.flude.guide/images/the_watchdog_needs_a_watchdog_part2.jpg&quot; alt=&quot;Frozen Telegram connection&quot; /&gt;&lt;/p&gt;
&lt;p&gt;One day, the Watchdog correctly caught a Supervisor hang and initiated the rescue procedure. As a first step, it attempted to execute the &lt;code&gt;Alert()&lt;/code&gt; function to send us a Telegram message via standard &lt;code&gt;Invoke-RestMethod&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;And then the system froze forever.&lt;/p&gt;
&lt;p&gt;It turned out that after the host woke from sleep mode, the TCP connection to the Telegram API had &quot;frozen&quot; at the operating system level. At the same time, the built-in PowerShell timeout was completely ignored by the underlying platform.&lt;/p&gt;
&lt;p&gt;The Watchdog hung dead trying to send a message about a hang, never reaching the life-saving restart function.&lt;/p&gt;
&lt;p&gt;We learned our first lesson: &lt;strong&gt;never block recovery with a network call&lt;/strong&gt;. We moved the alert dispatch into an isolated background process (&lt;code&gt;Start-Job&lt;/code&gt;) with a brutal 20-second timeout. If the network was silent—we simply dropped the alert and proceeded to recovery.&lt;/p&gt;
&lt;h2&gt;Trench Warfare&lt;/h2&gt;
&lt;p&gt;We thought that after the Telegram patch, we were safe. But the infrastructure began striking from all sides. Over the following weeks, we methodically closed new holes, taking hit after hit:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The Supervisor crashed, leaving behind a locked system mutex, preventing its own restart. We had to write logic to intercept abandoned mutexes.&lt;/li&gt;
&lt;li&gt;The GitHub API periodically lagged, and the script lost its retry logic. We had to patch the state machine.&lt;/li&gt;
&lt;li&gt;The virtual machine started throwing new, previously unseen connection drop signatures (&lt;code&gt;VERR_TIMEOUT&lt;/code&gt;). We populated our crash dictionaries.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;We surrounded the code with so many checks and &lt;code&gt;try/catch&lt;/code&gt; layers that the script looked bulletproof. The system was supposed to silently and efficiently heal itself under any circumstances.&lt;/p&gt;
&lt;h2&gt;Deep Windows Coma (The Final Boss)&lt;/h2&gt;
&lt;p&gt;Two more weeks passed. The system worked stably, until the CI suddenly stuck fast again.&lt;/p&gt;
&lt;p&gt;We logged into the server and opened the Watchdog logs. The last entry read: &lt;code&gt;&quot;Hang confirmation 1/2&quot;&lt;/code&gt;. After this line in the logs, there was a yawning void &lt;strong&gt;14 hours long&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;There were no exceptions, no script crashes, no records of killed processes in the operating system&apos;s Event Logs. An absolute freeze.&lt;/p&gt;
&lt;p&gt;We started disassembling the Watchdog code line by line. Right after the log entry came the only call without our own custom timeout: a local system query &lt;code&gt;Get-CimInstance Win32_Process&lt;/code&gt;. With this query, the Watchdog was asking Windows itself: &quot;Is the Supervisor process alive?&quot;.&lt;/p&gt;
&lt;p&gt;The truth turned out to be terrifying. Due to a failure deep in the bowels of the OS, the WMI (Windows Management Instrumentation) service had also gone into a coma. The Watchdog asked the system a question, and the operating system simply never answered it, freezing the rescue script forever. The very tool we used to check for hangs had hung itself.&lt;/p&gt;
&lt;h2&gt;Conclusion: Recursive Paranoia&lt;/h2&gt;
&lt;p&gt;The Watchdog needed its own timer even for trivial built-in OS commands. We had to wrap the basic local &lt;code&gt;Get-CimInstance&lt;/code&gt; call in the same strict background process with a timeout as the network requests.&lt;/p&gt;
&lt;p&gt;This became our main lesson in self-hosted infrastructure: &lt;strong&gt;you cannot trust anything&lt;/strong&gt;. Not the network, not someone else&apos;s API, not the built-in timeouts of the programming language, not even the local system APIs of your own OS. If you write code that must save a system from hanging, every single line of it must have external, paranoid time control. &lt;em&gt;Quis custodiet ipsos custodes?&lt;/em&gt; (Who will watch the watchmen?).&lt;/p&gt;
&lt;p&gt;But infrastructure calls are only half the problems of a complex project. Sometimes the programming language itself starts hiding basic things from us. How the classic &lt;code&gt;size_t&lt;/code&gt; type managed to escape our C++ parser on Linux three times, breaking Continuous Integration—read about it in the next episode.&lt;/p&gt;
&lt;hr /&gt;&lt;p&gt;&lt;strong&gt;Also read us:&lt;/strong&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;https://blog.flude.guide/&quot;&gt;Flude Blog&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://t.me/ude_blog_en&quot;&gt;Telegram channel&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://dev.to/flude_team&quot;&gt;Dev.to&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;</content:encoded><category>powershell</category><category>devops</category><category>watchdog</category><category>ci</category><category>flude</category></item><item><title>Beyond GitHub: Universal Clients, Code Quality, and Bitbucket Traps</title><link>https://blog.flude.guide/blog/ci-thin-clients-gitlab-bitbucket/</link><guid isPermaLink="true">https://blog.flude.guide/blog/ci-thin-clients-gitlab-bitbucket/</guid><description>How we moved logic to a thin client and learned to be friends with GitLab and Bitbucket.</description><pubDate>Thu, 12 Nov 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;Our core was working perfectly, and the SaaS cloud was ready to accept requests. But for third-party developers to easily start using Flude, they needed convenient entry points—integrations with their CI/CD pipelines.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.flude.guide/images/ci_thin_clients_gitlab_bitbucket.jpg&quot; alt=&quot;CI Thin Clients&quot; /&gt;&lt;/p&gt;
&lt;p&gt;Initially, we wrote a plugin exclusively for GitHub Actions. However, a huge number of projects and commercial teams prefer GitLab and Bitbucket. It became obvious that we needed to extract the logic into a universal &quot;thin client&quot; that would work equally well on the &quot;big three&quot; platforms.&lt;/p&gt;
&lt;h2&gt;The Thin Client Philosophy&lt;/h2&gt;
&lt;p&gt;We moved all the base logic into clean, independent JavaScript files (&lt;code&gt;control-plane-client.js&lt;/code&gt;, &lt;code&gt;poll.js&lt;/code&gt;, &lt;code&gt;download.js&lt;/code&gt;). No heavy builds or &lt;code&gt;node_modules&lt;/code&gt; folders.&lt;/p&gt;
&lt;p&gt;Our CI client became as dumb as possible: it simply zips the source code, sends it via API to our SaaS cloud, pings the task status at a set interval, and downloads the final ZIP archive with the generated documentation. All the computational magic, parsing, and rendering happen exclusively on the backend.&lt;/p&gt;
&lt;h2&gt;GitLab and Reporting Architecture (Code Quality)&lt;/h2&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.flude.guide/images/ci_thin_clients_gitlab_bitbucket_part2.jpg&quot; alt=&quot;Ci Thin Clients Gitlab Bitbucket Part 2&quot; /&gt;&lt;/p&gt;
&lt;p&gt;Integrating with GitLab brought an interesting architectural challenge.&lt;/p&gt;
&lt;p&gt;In GitHub Actions, parser warnings (e.g., about undocumented methods) are easily output to the UI via &lt;code&gt;GITHUB_STEP_SUMMARY&lt;/code&gt; and magic strings like &lt;code&gt;::notice::&lt;/code&gt;. GitLab doesn&apos;t understand this—it requires providing a special JSON artifact in the CodeClimate format.&lt;/p&gt;
&lt;p&gt;An important architectural point: we fundamentally decided not to overload our lightweight client with format conversion logic. All this work is baked into the very heart of the core (&lt;code&gt;engine/ude/reporting.py&lt;/code&gt;).&lt;/p&gt;
&lt;p&gt;During the build, the engine collects all errors into a unified internal representation (&lt;code&gt;Finding&lt;/code&gt;), and then translates it itself into all the necessary external formats: both SARIF (for GitHub) and CodeClimate (for GitLab). The client script in GitLab only has to extract the already generated &lt;code&gt;codequality.json&lt;/code&gt; from the downloaded archive and hand it to the runner. Thanks to this, a native, convenient widget &quot;Code Quality scans found N new findings&quot; appears in the Merge Request.&lt;/p&gt;
&lt;h2&gt;Bitbucket Pipe and the Docker Trap&lt;/h2&gt;
&lt;p&gt;Integrations in the Bitbucket ecosystem work via so-called &quot;Pipes,&quot; which are executed strictly inside isolated Docker containers. To support this platform, we wrapped our JS scripts in a &lt;code&gt;Dockerfile&lt;/code&gt; and added a &lt;code&gt;pipe.yml&lt;/code&gt; manifest.&lt;/p&gt;
&lt;p&gt;And this is exactly where we fell into a classic networking trap. When writing E2E tests locally, our containerized client naturally tried to reach the local mock server at &lt;code&gt;localhost:29418&lt;/code&gt;. But we forgot the basics: inside Docker, &lt;code&gt;localhost&lt;/code&gt; is the container itself, not the host machine! The requests went into the void, and the tests failed on timeout.&lt;/p&gt;
&lt;p&gt;We had to tinker quite a bit with Docker&apos;s bridge network settings and port forwarding to make the Pipe see the host machine and successfully pass local testing.&lt;/p&gt;
&lt;h2&gt;Conclusion&lt;/h2&gt;
&lt;p&gt;We successfully covered the &quot;big three&quot; CI/CD platforms. The ecosystem closed the loop: C++ code flies from any popular CI runner to our cloud and returns as gold-standard documentation and quality reports.&lt;/p&gt;
&lt;p&gt;But having opened the gates to the SaaS for everyone, we faced a new threat. Hung Doxygen and &lt;code&gt;git clone&lt;/code&gt; processes began to uncontrollably devour cloud resources. How we built a system of watchdog timers and why the Watchdog itself needed a Watchdog—read about it in the next episode.&lt;/p&gt;
&lt;hr /&gt;&lt;p&gt;&lt;strong&gt;Also read us:&lt;/strong&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;https://blog.flude.guide/&quot;&gt;Flude Blog&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://t.me/ude_blog_en&quot;&gt;Telegram channel&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://dev.to/flude_team&quot;&gt;Dev.to&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;</content:encoded><category>ci</category><category>gitlab</category><category>bitbucket</category><category>flude</category><category>docker</category></item><item><title>Legacy in Pictures: How We Drew PNG Diagrams on the Backend</title><link>https://blog.flude.guide/blog/legacy-png-diagrams-pillow/</link><guid isPermaLink="true">https://blog.flude.guide/blog/legacy-png-diagrams-pillow/</guid><description>Why we generated graphics on the backend and how we tested RGBA matrices pixel by pixel in CI.</description><pubDate>Mon, 09 Nov 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;Configuring the file structure via &lt;code&gt;sidebar.toml&lt;/code&gt; was only half the battle. The second strict requirement for a successful migration at work was the presence of visual Class Hierarchy diagrams.&lt;/p&gt;
&lt;p&gt;The problem was that the old generator output these diagrams not as a trendy interactive web component, but as ordinary, static PNG images embedded directly into the HTML code.&lt;/p&gt;
&lt;h2&gt;Why Not Modern JS?&lt;/h2&gt;
&lt;p&gt;In the modern world, the logical solution would be to pass a JSON tree structure to the frontend and render a beautiful interactive graph using Mermaid.js or React Flow.&lt;/p&gt;
&lt;p&gt;But we had strict limitations. The generated documentation had to be able to work offline, load instantly without heavy JS bundles, and most importantly, visually match the old corporate style. There was only one solution left: draw real PNG files right during the build process on the backend.&lt;/p&gt;
&lt;h2&gt;Pixel Art with Pillow&lt;/h2&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.flude.guide/images/legacy_png_diagrams_pillow.jpg&quot; alt=&quot;Legacy PNG Diagrams Pillow&quot; /&gt;&lt;/p&gt;
&lt;p&gt;We brought the &lt;code&gt;Pillow&lt;/code&gt; library into the pipeline.&lt;/p&gt;
&lt;p&gt;Generating graphics on the server side is quite a quest. We had to write AST traversal logic that took a class&apos;s list of ancestors and programmatically drew them on a virtual canvas. We manually calculated font sizes, the coordinates of each rectangle, margins, and drew connecting lines with arrows. It was painstaking work with graphic primitives inside a harsh documentation generation engine.&lt;/p&gt;
&lt;h2&gt;Regression Testing Hell&lt;/h2&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.flude.guide/images/legacy_png_diagrams_pillow_part2.jpg&quot; alt=&quot;Legacy Png Diagrams Pillow Part 2&quot; /&gt;&lt;/p&gt;
&lt;p&gt;The real fun began when we covered this functionality with regression tests. In our CI pipeline, the image tests started failing unpredictably.&lt;/p&gt;
&lt;p&gt;Initially, we compared the generated PNG files with reference images byte-for-byte (&lt;code&gt;raw bytes&lt;/code&gt;). But an unpleasant detail emerged: the PNG compression byte stream differed slightly depending on the operating system (Windows on a local machine vs Linux in CI). Different versions of the system &lt;code&gt;zlib&lt;/code&gt; library compressed the exact same pixels into different binary code.&lt;/p&gt;
&lt;p&gt;Visually, the images were absolutely identical, but the file hashes diverged. We had to completely rewrite the tests: now we loaded both the reference and the result through Pillow, decoded them, and compared the RGBA matrices in memory pixel by pixel. Only then did the tests turn green.&lt;/p&gt;
&lt;h2&gt;Moving to the Core&lt;/h2&gt;
&lt;p&gt;Just like with &lt;code&gt;sidebar.toml&lt;/code&gt;, we initially wrote the image generation exclusively as a crutch for the working plugin.&lt;/p&gt;
&lt;p&gt;But when the algorithm was debugged, we realized we had built a cool feature. Lightweight, static inheritance diagrams without JS dependencies are an objective plus for any project. Following the established pattern, we pulled the graphics rendering logic out of the closed plugin and moved it into the main Flude core.&lt;/p&gt;
&lt;h2&gt;Conclusion&lt;/h2&gt;
&lt;p&gt;All work requirements were met: both for links and for images. The core proved its flexibility and readiness to operate in harsh Enterprise conditions.&lt;/p&gt;
&lt;p&gt;Ahead of us lay stepping outside our cozy local environment. It was time to integrate our CLI clients with popular CI/CD platforms. How we lost environment variables in GitLab and battled proxies in Bitbucket—read about it in the next episode.&lt;/p&gt;
&lt;hr /&gt;&lt;p&gt;&lt;strong&gt;Also read us:&lt;/strong&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;https://blog.flude.guide/&quot;&gt;Flude Blog&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://t.me/ude_blog_en&quot;&gt;Telegram channel&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://dev.to/flude_team&quot;&gt;Dev.to&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;</content:encoded><category>python</category><category>graphics</category><category>architecture</category><category>testing</category><category>flude</category></item><item><title>The Battle with the Gold Standard: How sidebar.toml Saved Us from Hardcoded Structure</title><link>https://blog.flude.guide/blog/sidebar-toml-legacy-routing/</link><guid isPermaLink="true">https://blog.flude.guide/blog/sidebar-toml-legacy-routing/</guid><description>How we forced a modern generator to output a legacy file structure and why routing configuration moved to the core.</description><pubDate>Thu, 05 Nov 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;While we were designing future native parsers, nobody canceled the task of migrating to Flude at work. And that had its own corporate challenges.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.flude.guide/images/sidebar_toml_legacy_routing.jpg&quot; alt=&quot;Sidebar Toml Legacy Routing&quot; /&gt;&lt;/p&gt;
&lt;p&gt;The business had one ironclad condition: the migration to Flude had to be absolutely transparent. Our output (still running on Doxygen at the time) had to match the output of the old documentation generator one-to-one, both in completeness and in page structure, including the exact names of the generated HTML files.&lt;/p&gt;
&lt;h2&gt;A Different Philosophy of Structure&lt;/h2&gt;
&lt;p&gt;The problem lay in the fundamental difference in renderer philosophies. The modern approach to documentation generation implies that an entire class (with all its properties and methods) is rendered on a single, continuous page. Navigation within the class happens via standard HTML anchors (e.g., &lt;code&gt;class.html#MethodName&lt;/code&gt;).&lt;/p&gt;
&lt;p&gt;The old generator worked completely differently: for every single method, property, and class member, it created its own tiny, separate HTML page.&lt;/p&gt;
&lt;p&gt;If we had applied the modern approach, we would have instantly broken a ton of old links, bookmarks, and internal integrations that the company&apos;s engineers had grown accustomed to over the years. We had to emulate this legacy structure at all costs.&lt;/p&gt;
&lt;h2&gt;Declarative sidebar.toml&lt;/h2&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.flude.guide/images/sidebar_toml_legacy_routing_part2.jpg&quot; alt=&quot;Sidebar Toml Legacy Routing Part 2&quot; /&gt;&lt;/p&gt;
&lt;p&gt;For the company&apos;s specific needs, we had a dedicated private plugin. But I categorically did not want to hardcode the &quot;page splitting&quot; logic even there. The initial plan was: move the logic into flexible settings, and if it works well—transfer the feature to the main core.&lt;/p&gt;
&lt;p&gt;The solution was a configuration file: &lt;code&gt;sidebar.toml&lt;/code&gt;. It allowed us to manually configure the rules for forming the navigation menu and flexibly control how the logical structure of the code would map onto the physical file system and the structure of the documentation itself. This manifest allowed us not to hardcode the output, but to keep it entirely in the configuration.&lt;/p&gt;
&lt;h2&gt;Moving to the Main Core&lt;/h2&gt;
&lt;p&gt;The experiment turned out to be incredibly successful. Untying the physical output structure from the parser&apos;s internal architecture is a very powerful pattern.&lt;/p&gt;
&lt;p&gt;As planned, we moved the &lt;code&gt;sidebar.toml&lt;/code&gt; mechanics from the working plugin into the main Flude core, making it the absolute standard for generating any projects.&lt;/p&gt;
&lt;h2&gt;SaaS Limitations&lt;/h2&gt;
&lt;p&gt;True, there is one nuance. Even though the core now supports generating any custom structure via &lt;code&gt;sidebar.toml&lt;/code&gt;, we do not yet give users this freedom in our cloud SaaS version.&lt;/p&gt;
&lt;p&gt;Our cloud workers use a static &lt;code&gt;sidebar.toml&lt;/code&gt; file that we place on the server ourselves. The user simply has no access to it and cannot pass their config from the outside. In the current SaaS version, the ability to change the structural configuration is locked. But the main thing is that the architectural foundation for it is already reliably laid in the core.&lt;/p&gt;
&lt;h2&gt;Conclusion&lt;/h2&gt;
&lt;p&gt;With the help of configuration, we successfully untied the output structure from the parser structure and completely satisfied the work requirements for links.&lt;/p&gt;
&lt;p&gt;But to successfully deliver the project, one more visual problem remained. The old generator knew how to draw class inheritance diagrams in PNG format, and we needed to replicate this functionality. How we implemented image generation and why this feature also moved to the core—read about it in the next episode.&lt;/p&gt;
&lt;hr /&gt;&lt;p&gt;&lt;strong&gt;Also read us:&lt;/strong&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;https://blog.flude.guide/&quot;&gt;Flude Blog&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://t.me/ude_blog_en&quot;&gt;Telegram channel&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://dev.to/flude_team&quot;&gt;Dev.to&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;</content:encoded><category>architecture</category><category>routing</category><category>flude</category><category>rendering</category></item><item><title>AST Reconstruction: How We Manually Stitched Out-Of-Line Methods in libclang</title><link>https://blog.flude.guide/blog/libclang-ast-reconstruction-out-of-line/</link><guid isPermaLink="true">https://blog.flude.guide/blog/libclang-ast-reconstruction-out-of-line/</guid><description>Why a strict native parser loses methods, and how we assembled broken C++ code piece by piece.</description><pubDate>Mon, 02 Nov 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;In the previous episode, we taught our native parser based on &lt;code&gt;libclang&lt;/code&gt; to find system headers. It stopped panicking and finally read all the code without errors.&lt;/p&gt;
&lt;p&gt;But when we ran the documentation generation and started verifying completeness metrics, we discovered a disaster. Hundreds of methods were missing from our generated classes. The parser had simply &quot;lost&quot; them along the way.&lt;/p&gt;
&lt;h2&gt;The Core Problem: Out-Of-Line Methods&lt;/h2&gt;
&lt;p&gt;In C++, it is considered good practice to move the implementation of methods outside the class declaration. Usually, the implementation goes into separate &lt;code&gt;.cpp&lt;/code&gt; files, and in the case of template classes, it remains in the header file but is written below the class itself. Both variants are called &lt;em&gt;Out-Of-Line&lt;/em&gt; definitions:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-cpp&quot;&gt;template&amp;lt;class T&amp;gt; class MyClass {
    void foo();
};

template&amp;lt;class T&amp;gt; void MyClass&amp;lt;T&amp;gt;::foo() { ... }
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Good old Doxygen forgave such things: it parsed the code as text and, by the &lt;code&gt;MyClass::&lt;/code&gt; prefix, easily guessed where to put the method.&lt;/p&gt;
&lt;h2&gt;How libclang &quot;Loses&quot; Children&lt;/h2&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.flude.guide/images/libclang_ast_reconstruction_out_of_line_part2.jpg&quot; alt=&quot;Libclang Ast Reconstruction Out Of Line Part 2&quot; /&gt;&lt;/p&gt;
&lt;p&gt;But &lt;code&gt;libclang&lt;/code&gt; builds a strict semantic Abstract Syntax Tree (AST). In its architecture, a class declaration is a single node. And an Out-Of-Line method is a completely independent top-level node (Top-level declaration), hanging somewhere in the global scope of the translation unit.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.flude.guide/images/libclang_ast_reconstruction_out_of_line.jpg&quot; alt=&quot;Libclang AST Reconstruction&quot; /&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;libclang&lt;/code&gt; fundamentally does not nest this method inside the class cursor during tree traversal. As a result, our AST traversal script saw the class, saw that there were no method nodes inside it, and happily generated an empty documentation page.&lt;/p&gt;
&lt;h2&gt;Surgical Splicing&lt;/h2&gt;
&lt;p&gt;To restore justice, we had to write our own tree reconstruction algorithm.&lt;/p&gt;
&lt;p&gt;We introduced a separate parser pass: we traversed all &quot;free-hanging&quot; functions in the global scope and asked Clang for their semantic parent (&lt;code&gt;semantic_parent&lt;/code&gt;). If it turned out that a function semantically belonged to some class, we took that node and &quot;manually&quot; stitched it inside the appropriate class in our Intermediate Representation (&lt;code&gt;ProjectCatalog&lt;/code&gt;).&lt;/p&gt;
&lt;p&gt;We literally assembled the fragmented code like a puzzle.&lt;/p&gt;
&lt;h2&gt;Nameless Conversions&lt;/h2&gt;
&lt;p&gt;But the surprises didn&apos;t end there. The second pain point was type casting operators for dependent templates (for example, &lt;code&gt;cv::Ptr&amp;lt;T&amp;gt;::operator T*()&lt;/code&gt;).&lt;/p&gt;
&lt;p&gt;We discovered that for such nodes (with the &lt;code&gt;CONVERSION_FUNCTION&lt;/code&gt; type), &lt;code&gt;libclang&lt;/code&gt; outputs an empty string as a name—&lt;code&gt;cursor.spelling&lt;/code&gt; returned &lt;code&gt;&quot;&quot;&lt;/code&gt;. Meaning the method is there, but it has no name!&lt;/p&gt;
&lt;p&gt;We had to write a dirty but working hack: we parsed the node&apos;s return type and manually synthesized the string name of the operator from it so that the documentation would look adequate.&lt;/p&gt;
&lt;h2&gt;Conclusion&lt;/h2&gt;
&lt;p&gt;This &quot;garbage collection&quot; and manual AST tree splicing restored our method completeness (Recall) to 97.4%.&lt;/p&gt;
&lt;p&gt;We achieved almost perfect data extraction. It was time to apply this parser in real combat for a large corporate client. From the very beginning, we knew about the business&apos;s main strict requirement: the output of our modern parser had to completely match their old documentation generator. Now it was time to put this into practice. How we aligned the file structure and routing—read about it in the next episode.&lt;/p&gt;
&lt;hr /&gt;&lt;p&gt;&lt;strong&gt;Also read us:&lt;/strong&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;https://blog.flude.guide/&quot;&gt;Flude Blog&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://t.me/ude_blog_en&quot;&gt;Telegram channel&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://dev.to/flude_team&quot;&gt;Dev.to&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;</content:encoded><category>cpp</category><category>libclang</category><category>ast</category><category>flude</category></item><item><title>System Header Hell: Teaching libclang to Understand GCC and Survive MSVC</title><link>https://blog.flude.guide/blog/libclang-system-headers-gcc-msvc/</link><guid isPermaLink="true">https://blog.flude.guide/blog/libclang-system-headers-gcc-msvc/</guid><description>Why our native C++ parser couldn&apos;t parse &apos;Hello World&apos;, and how we built an automatic header discovery system.</description><pubDate>Thu, 29 Oct 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;After migrating the C++ parser to &lt;code&gt;libclang&lt;/code&gt;, we expected to see a perfectly accurate Abstract Syntax Tree (AST). But when we unleashed it on our first real project, instead of a beautiful hierarchy of classes, we got a tree consisting entirely of &lt;code&gt;CXCursor_UnexposedDecl&lt;/code&gt; and fatal syntax errors.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.flude.guide/images/libclang_system_headers_gcc_msvc.jpg&quot; alt=&quot;Libclang System Headers Gcc Msvc&quot; /&gt;&lt;/p&gt;
&lt;p&gt;The parser stumbled on the very first line: &lt;code&gt;#include &amp;lt;vector&amp;gt;&lt;/code&gt;.&lt;/p&gt;
&lt;h2&gt;A Deaf Compiler&lt;/h2&gt;
&lt;p&gt;It turned out that &lt;code&gt;libclang&lt;/code&gt; (being merely a linkable library, not a full CLI compiler) by default has no idea where standard header files are located in the operating system.&lt;/p&gt;
&lt;p&gt;If the parser doesn&apos;t see system headers, it doesn&apos;t understand what &lt;code&gt;std::string&lt;/code&gt; or &lt;code&gt;std::vector&lt;/code&gt; is. And since everything in modern C++ relies on standard library templates, parsing fails in a cascade.&lt;/p&gt;
&lt;p&gt;In the Enterprise world, developers usually pass giant strings of &lt;code&gt;-I/usr/include/...&lt;/code&gt; flags to the parsers themselves. But we were building a SaaS and a user-friendly CLI utility. We couldn&apos;t force users to manually search for compiler paths on their machines. The parser had to become smart.&lt;/p&gt;
&lt;h2&gt;The GCC Discovery Quest&lt;/h2&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.flude.guide/images/libclang_system_headers_gcc_msvc_part2.jpg&quot; alt=&quot;Libclang System Headers Gcc Msvc Part 2&quot; /&gt;&lt;/p&gt;
&lt;p&gt;On Linux systems, we had to write our own Auto-Discovery mechanism.&lt;/p&gt;
&lt;p&gt;We implemented a heuristic that ran the system compiler in the background with clever flags: &lt;code&gt;gcc -print-file-name=include&lt;/code&gt; (falling back to &lt;code&gt;cc&lt;/code&gt;). This trick forces GCC (or the system Clang) to spit out the path to the internal directory it uses to search for system headers by default into the console.&lt;/p&gt;
&lt;p&gt;Our Python code intercepted this output, parsed it, filtered out non-existent directories, and dynamically converted it into an array of &lt;code&gt;-I&lt;/code&gt; flags, which were then fed into &lt;code&gt;libclang&lt;/code&gt;. The parser gained its &quot;sight&quot;—it began to perfectly understand Linux projects.&lt;/p&gt;
&lt;h2&gt;The MSVC-STL Nightmare on Windows&lt;/h2&gt;
&lt;p&gt;But if Linux was solved with an elegant hack, a real hell awaited us on Windows.&lt;/p&gt;
&lt;p&gt;Windows developers use the Microsoft Visual C++ (MSVC) compiler and its proprietary standard library implementation—MSVC-STL. Integrating Clang with the intricacies of Windows code (including the monstrous &lt;code&gt;windows.h&lt;/code&gt;) is pure pain.&lt;/p&gt;
&lt;p&gt;MSVC historically forgives many syntax liberties and uses specific macros, pragmas, and extensions. Strict &lt;code&gt;libclang&lt;/code&gt; looked at MSVC-STL code and simply refused to parse it, generating hundreds of errors.&lt;/p&gt;
&lt;p&gt;To reconcile them, we had to dig deep into the LLVM documentation. We selected a specific set of compatibility flags (&lt;code&gt;-fms-compatibility&lt;/code&gt;, &lt;code&gt;-fms-extensions&lt;/code&gt;, and also spoofing macros like &lt;code&gt;-U__clang_major__ -D__clang_major__=19&lt;/code&gt; to bypass version checks in the MSVC STL) that forced &lt;code&gt;libclang&lt;/code&gt; to pretend to be a Microsoft compiler. Only after fine-tuning this virtual environment did the parser stop panicking at the sight of Windows source code.&lt;/p&gt;
&lt;h2&gt;Conclusion&lt;/h2&gt;
&lt;p&gt;We spent a ton of time not on parsing the client code itself, but on configuring the environment in which that code lives. But the result was worth it: our parser learned to read developers&apos; real code &quot;out of the box&quot; on any operating system, without requiring complex configurations from them.&lt;/p&gt;
&lt;p&gt;But &quot;seeing&quot; the code doesn&apos;t mean understanding its structure. When the parser finally read all the headers, we discovered that it loses half the methods if a developer dared to define them outside the class (Out-Of-Line). How we manually stitched torn methods back to templates—read about it in the next episode.&lt;/p&gt;
&lt;hr /&gt;&lt;p&gt;&lt;strong&gt;Also read us:&lt;/strong&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;https://blog.flude.guide/&quot;&gt;Flude Blog&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://t.me/ude_blog_en&quot;&gt;Telegram channel&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://dev.to/flude_team&quot;&gt;Dev.to&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;</content:encoded><category>cpp</category><category>libclang</category><category>ast</category><category>flude</category></item><item><title>Firing Doxygen: Native Parser Architecture and Adopting libclang</title><link>https://blog.flude.guide/blog/firing-doxygen-native-cpp-parser/</link><guid isPermaLink="true">https://blog.flude.guide/blog/firing-doxygen-native-cpp-parser/</guid><description>How we abandoned a heavy dependency in the cloud and why the Intermediate Representation architecture saved us from rewriting half the project.</description><pubDate>Mon, 26 Oct 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;Doxygen had been with us since day one. At the MVP stage, it was a conscious and absolutely correct choice: it allowed us not to write a C++ parser from scratch, but to immediately focus on business logic and documentation rendering.&lt;/p&gt;
&lt;p&gt;But as we transitioned from local scripts to a cloud SaaS, Doxygen turned into a burden. It couldn&apos;t cache the AST, its binary was too bulky, and its internal parser broke from C++ templates (remember the SFINAE incident from the &lt;a href=&quot;https://blog.flude.guide/en/blog/crash-test-sfinae-doxygen&quot;&gt;previous episode&lt;/a&gt;, which forced us to write crutches via &lt;code&gt;INPUT_FILTER&lt;/code&gt;).&lt;/p&gt;
&lt;p&gt;It was time to do what we planned from the very beginning: fire Doxygen and migrate the system to native parsers.&lt;/p&gt;
&lt;h2&gt;Divide and Conquer&lt;/h2&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.flude.guide/images/firing_doxygen_native_cpp_parser_part2.jpg&quot; alt=&quot;Firing Doxygen Native Cpp Parser Part 2&quot; /&gt;&lt;/p&gt;
&lt;p&gt;We never harbored illusions about creating a &quot;universal parser&quot;. Just like with Doxygen dialects, we initially designed the system for separate parsers for each language. A tool that equally well understands hellish C++ templates with SFINAE and dynamic Python decorators simply doesn&apos;t exist.&lt;/p&gt;
&lt;p&gt;Therefore, we conducted research and selected the perfect, native tool for each language:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Python:&lt;/strong&gt; The built-in &lt;code&gt;ast&lt;/code&gt; module. No one will parse Python better than the interpreter itself (planned).&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;C# and Java:&lt;/strong&gt; &lt;code&gt;tree-sitter&lt;/code&gt;—an incredibly fast and modern incremental parser that has become an industry standard (planned).&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;C++:&lt;/strong&gt; Our most complex language and the first candidate for implementation.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Boss Fight: C++ and libclang&lt;/h2&gt;
&lt;p&gt;We started the implementation of native parsers specifically with C++, as it was the most critical vector. Trying to parse modern C++ with regexes or lightweight parsers is pure suicide. Preprocessors, macros, templates, and operator overloading will break any homegrown tool.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.flude.guide/images/firing_doxygen_native_cpp_parser.jpg&quot; alt=&quot;Libclang Native Parser Architecture&quot; /&gt;&lt;/p&gt;
&lt;p&gt;That&apos;s why we took &lt;code&gt;libclang&lt;/code&gt;. Only a true compiler frontend can output a 100% accurate AST for C++. Yes, integrating with a C++ API from Python is not an easy task, but it&apos;s the only guarantee that we will correctly understand all the client&apos;s code.&lt;/p&gt;
&lt;h2&gt;The Triumph of Planned Architecture (Intermediate Representation)&lt;/h2&gt;
&lt;p&gt;The most beautiful part about moving to &lt;code&gt;libclang&lt;/code&gt; was that we didn&apos;t have to rewrite the renderers (that same &lt;code&gt;hugo_markdown&lt;/code&gt; we talked about in the &lt;a href=&quot;https://blog.flude.guide/en/blog/crash-test-sfinae-doxygen&quot;&gt;previous article&lt;/a&gt;).&lt;/p&gt;
&lt;p&gt;This became possible because our architecture, from day one, was based on an Intermediate Representation (IR). All parsers are required to convert the result of their work into a unified &lt;code&gt;ProjectCatalog&lt;/code&gt; structure.&lt;/p&gt;
&lt;p&gt;The new parser based on &lt;code&gt;libclang&lt;/code&gt; simply started assembling the exact same &lt;code&gt;ProjectCatalog&lt;/code&gt; that Doxygen used to output. The rendering layer didn&apos;t even know that the engine under the hood had changed. The architecture laid down at the start of the project worked exactly as intended.&lt;/p&gt;
&lt;h2&gt;Conclusion&lt;/h2&gt;
&lt;p&gt;The core was freed from a heavy third-party dependency that prevented caching implementation. We closed a huge security hole (by removing &lt;code&gt;INPUT_FILTER&lt;/code&gt;) and significantly lightened our cloud workers.&lt;/p&gt;
&lt;p&gt;Transitioning to a native parser is the technical step that finally turned an MVP utility into a serious product.&lt;/p&gt;
&lt;p&gt;But as soon as we connected &lt;code&gt;libclang&lt;/code&gt; to real projects, a surprise awaited us. The native parser turned out to be blind: it flat-out refused to see the C++ standard libraries. How we searched for paths to GCC system headers on Linux and survived with MSVC-STL on Windows—read about it in the next episode.&lt;/p&gt;
&lt;hr /&gt;&lt;p&gt;&lt;strong&gt;Also read us:&lt;/strong&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;https://blog.flude.guide/&quot;&gt;Flude Blog&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://t.me/ude_blog_en&quot;&gt;Telegram channel&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://dev.to/flude_team&quot;&gt;Dev.to&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;</content:encoded><category>cpp</category><category>python</category><category>parsing</category><category>architecture</category><category>flude</category></item><item><title>C++ Crash Test: Hidden SFINAE Traps and Parser Silence</title><link>https://blog.flude.guide/blog/crash-test-sfinae-doxygen/</link><guid isPermaLink="true">https://blog.flude.guide/blog/crash-test-sfinae-doxygen/</guid><description>How a harmless std::enable_if template trick caused the documentation generator to silently delete classes from the project.</description><pubDate>Thu, 22 Oct 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;We were still trying to squeeze the maximum out of good old Doxygen in our cloud pipeline when we suddenly encountered a classic problem of harsh enterprise C++: the parser started silently &quot;eating&quot; entire chunks of the codebase.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.flude.guide/images/crash_test_sfinae_doxygen.jpg&quot; alt=&quot;Crash Test Sfinae Doxygen&quot; /&gt;&lt;/p&gt;
&lt;p&gt;It all began when we noticed an anomaly: important structures (like &lt;code&gt;BITMAPINFO&lt;/code&gt; and &lt;code&gt;RGBQUAD&lt;/code&gt;) had vanished without a trace in the generated documentation.&lt;/p&gt;
&lt;p&gt;The scariest part was that the pipeline passed successfully. Doxygen returned &lt;code&gt;exit code 0&lt;/code&gt;, didn&apos;t issue a single warning, but the XML output for these files was practically empty. It simply swallowed the code and stayed silent.&lt;/p&gt;
&lt;h2&gt;Investigation by Binary Search&lt;/h2&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.flude.guide/images/crash_test_sfinae_doxygen_part2.jpg&quot; alt=&quot;Crash Test Sfinae Doxygen Part 2&quot; /&gt;&lt;/p&gt;
&lt;p&gt;When a parser is silent, the only way to find the cause is the bisection method. We would take a problematic header file of several thousand lines, delete half of it, run the parser, and see if the necessary structures appeared.&lt;/p&gt;
&lt;p&gt;Narrowing the search down to 50 lines, we found the culprit. It turned out to be a classic C++ trick—SFINAE (Substitution Failure Is Not An Error). The codebase extensively used the construct:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-cpp&quot;&gt;typename std::enable_if&amp;lt;CONDITION, bool&amp;gt;::type = VALUE
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;To a C++ compiler, this is absolutely valid code. But the legacy Doxygen parser went crazy at the sight of such a pile of angle brackets (&lt;code&gt;&amp;lt; &amp;gt;&lt;/code&gt;). Its internal state machine broke, and it stopped understanding C++ syntax &lt;em&gt;until the very end of the file&lt;/em&gt;. This is exactly why structures declared below the ill-fated SFINAE template simply fell out of reality.&lt;/p&gt;
&lt;h2&gt;A UNIX-style Solution&lt;/h2&gt;
&lt;p&gt;We couldn&apos;t go to the product developers and say: &quot;Rewrite all your C++ code because our parser doesn&apos;t understand it.&quot; We needed a systemic solution that didn&apos;t touch the source files.&lt;/p&gt;
&lt;p&gt;Fortunately, Doxygen has the &lt;code&gt;INPUT_FILTER&lt;/code&gt; mechanism. This is a script through which every file is run before the parser sees it.&lt;/p&gt;
&lt;p&gt;We wrote a small Python script (&lt;code&gt;sfinae_filter.py&lt;/code&gt;) with a clever regular expression. The script caught all &lt;code&gt;std::enable_if&lt;/code&gt; constructs on the fly and replaced them with a syntax equivalent in the number of arguments: &lt;code&gt;bool = VALUE&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;At the same time, we strictly observed an important rule: the script calculated the number of line breaks in the removed block and added exactly the same number of blank lines to the replacement. Thanks to this, the line numbers in the source code did not shift, and all parser warnings continued to point to the correct lines in the developers&apos; IDEs.&lt;/p&gt;
&lt;h2&gt;Conclusion&lt;/h2&gt;
&lt;p&gt;A small Python filter solved the problem in dozens of files, returning the lost classes to the documentation. We won again.&lt;/p&gt;
&lt;p&gt;But this incident became the &quot;last straw.&quot; Crutches with regular expressions on top of C++ code is a road to nowhere. The language is too complex to parse as text, and the unsafe &lt;code&gt;INPUT_FILTER&lt;/code&gt; opened holes in cloud security.&lt;/p&gt;
&lt;p&gt;It was time to do what we had avoided for so long: fire Doxygen for good. How we migrated to the native &lt;code&gt;libclang&lt;/code&gt; compiler frontend and why we didn&apos;t have to rewrite half the project—read about it in the next episode.&lt;/p&gt;
&lt;hr /&gt;&lt;p&gt;&lt;strong&gt;Also read us:&lt;/strong&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;https://blog.flude.guide/&quot;&gt;Flude Blog&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://t.me/ude_blog_en&quot;&gt;Telegram channel&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://dev.to/flude_team&quot;&gt;Dev.to&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;</content:encoded><category>cpp</category><category>doxygen</category><category>parsing</category><category>sfinae</category><category>flude</category></item><item><title>The Butterfly Effect: How Renaming One String Broke Our Distributed System</title><link>https://blog.flude.guide/blog/butterfly-effect-microservices-rename/</link><guid isPermaLink="true">https://blog.flude.guide/blog/butterfly-effect-microservices-rename/</guid><description>A cautionary tale about why implicit string contracts turn microservices into a distributed monolith.</description><pubDate>Mon, 19 Oct 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;When we designed the SaaS version of Flude, we were very proud of our architecture. We split the logic into independent components: the parser core (&lt;code&gt;engine&lt;/code&gt;), the API gateway (&lt;code&gt;control-plane&lt;/code&gt;), the cloud workers (&lt;code&gt;job-runner&lt;/code&gt;), and the thin clients for CI integration (&lt;code&gt;flude-action&lt;/code&gt; and similar).&lt;/p&gt;
&lt;p&gt;All of this lived in different repositories and was deployed independently. We thought we had achieved perfect &quot;loose coupling&quot;. We were certain that changes in one module would never bring down the entire system.&lt;/p&gt;
&lt;p&gt;Until one harmless refactoring proved us wrong.&lt;/p&gt;
&lt;h2&gt;A Harmless Refactoring (The First Flap of a Wing)&lt;/h2&gt;
&lt;p&gt;It all started with perfectionism in the core repository. I noticed a technical inaccuracy: our parser generated not just classic Markdown, but a highly specific dialect with metadata (frontmatter) and shortcodes, tailored strictly for the Hugo static site generator.&lt;/p&gt;
&lt;p&gt;Leaving the output format under the generic name &lt;code&gt;markdown&lt;/code&gt; was incorrect—it would mislead future users if they tried to feed this code into a different generator (like Docusaurus).&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.flude.guide/images/butterfly_effect_microservices_rename.jpg&quot; alt=&quot;Microservices Butterfly Effect&quot; /&gt;&lt;/p&gt;
&lt;p&gt;I did the most logical thing in the world: I renamed the CLI argument and the internal format identifier from &lt;code&gt;markdown&lt;/code&gt; to &lt;code&gt;hugo_markdown&lt;/code&gt;. The core tests predictably turned green, and the commit flew into &lt;code&gt;main&lt;/code&gt;.&lt;/p&gt;
&lt;h2&gt;Chain Reaction&lt;/h2&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.flude.guide/images/butterfly_effect_microservices_rename_part2.jpg&quot; alt=&quot;Butterfly Effect Microservices Rename Part 2&quot; /&gt;&lt;/p&gt;
&lt;p&gt;In that very minute, our &quot;loosely coupled&quot; microservice architecture began to fold like a house of cards. It turned out that the word &lt;code&gt;&quot;markdown&quot;&lt;/code&gt; was not just a local variable, but an implicit hard contract wired into all layers of the system.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Strike #1: Control Plane&lt;/strong&gt;
The API gateway, which receives jobs from users, fell first. It suddenly started throwing &lt;code&gt;HTTP 422 Unprocessable Entity&lt;/code&gt; errors. Why? Because at the entrance stood a strict OpenAPI schema that validated the &lt;code&gt;format&lt;/code&gt; field. The schema allowed only two values: &lt;code&gt;[&quot;markdown&quot;, &quot;html&quot;]&lt;/code&gt;. Receiving the new parameter &lt;code&gt;hugo_markdown&lt;/code&gt; from the client, the API simply rejected the request as invalid. We had to urgently patch the validation schemas.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Strike #2: Cloud Workers&lt;/strong&gt;
As soon as the API was fixed and requests passed through, the workers themselves (Data Plane) crashed. A worker would successfully run the updated parser core, but upon completion, it tried to find the &lt;code&gt;out/markdown&lt;/code&gt; directory on the disk to pack it into a ZIP archive. Naturally, the folder wasn&apos;t there—the updated engine was now carefully putting the result in &lt;code&gt;out/hugo_markdown&lt;/code&gt;. The workers crashed with a &lt;code&gt;FileNotFoundError&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Strike #3: Thin Clients (CI Scripts)&lt;/strong&gt;
The workers were updated. Archives started forming. But the pipelines on the users&apos; side continued to burn red. Our thin clients (running in GitHub, GitLab, etc.) sent a request to download the artifact, expecting to receive the &lt;code&gt;markdown.zip&lt;/code&gt; file. The server, however, was now returning &lt;code&gt;hugo_markdown.zip&lt;/code&gt;. The scripts simply couldn&apos;t find the needed file and failed the build.&lt;/p&gt;
&lt;h2&gt;An Expensive Lesson&lt;/h2&gt;
&lt;p&gt;To roll out the renaming of &lt;em&gt;just one variable&lt;/em&gt;, we had to coordinate a synchronous release across four independent repositories.&lt;/p&gt;
&lt;p&gt;That day, we learned an important lesson. Microservices do not save you from tight coupling if your contracts are based on implicit Magic Strings smeared across the code. If one service changes a data format and another hardcodes paths to files—that&apos;s not a distributed system. It&apos;s a distributed monolith, which is much more painful to break than a regular one.&lt;/p&gt;
&lt;h2&gt;What&apos;s Next?&lt;/h2&gt;
&lt;p&gt;We stabilized the contracts, covered them with end-to-end tests, and finally brought the SaaS infrastructure to a working state. The system was ready for real loads.&lt;/p&gt;
&lt;p&gt;But one fundamental architectural problem of the core, which started it all, wouldn&apos;t let us go—Doxygen. We tolerated its flaws: the impossibility of proper AST caching, its slowness, and the huge size of its binary in containers. But one fine day, it simply capitulated to complex C++ code, and this became the beginning of the end.&lt;/p&gt;
&lt;p&gt;How a harmless SFINAE template trick forced Doxygen to silently delete classes from the project, and why we had to save ourselves with unsafe &lt;code&gt;INPUT_FILTER&lt;/code&gt; scripts—read about it in the next episode.&lt;/p&gt;
&lt;hr /&gt;&lt;p&gt;&lt;strong&gt;Also read us:&lt;/strong&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;https://blog.flude.guide/&quot;&gt;Flude Blog&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://t.me/ude_blog_en&quot;&gt;Telegram channel&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://dev.to/flude_team&quot;&gt;Dev.to&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;</content:encoded><category>backend</category><category>architecture</category><category>microservices</category><category>flude</category></item><item><title>Surviving the JS Ecosystem: Auth, Netlify, and the New Rules of Next.js 16</title><link>https://blog.flude.guide/blog/surviving-js-ecosystem-clerk-nextjs/</link><guid isPermaLink="true">https://blog.flude.guide/blog/surviving-js-ecosystem-clerk-nextjs/</guid><description>How a harmless Next.js frontend forced us to battle hosting providers, outdated documentation, and implicit conventions.</description><pubDate>Thu, 15 Oct 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;A Python backend is predictable and stable. Infrastructure on Google Cloud means strict rules and transparent logs. But as soon as we stepped into the territory of modern frontend to build an API key issuance portal for our SaaS, we found ourselves on the rollercoaster of the JavaScript ecosystem.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.flude.guide/images/surviving_js_ecosystem_clerk_nextjs.jpg&quot; alt=&quot;Surviving Js Ecosystem Clerk Nextjs&quot; /&gt;&lt;/p&gt;
&lt;p&gt;We just needed a single Next.js page where we could embed the &lt;code&gt;&amp;lt;UserProfile /&amp;gt;&lt;/code&gt; component from Clerk. On paper, it looked like a two-hour task. In reality, we spent a day fighting hosting providers, outdated documentation, and implicit conventions.&lt;/p&gt;
&lt;h2&gt;Choosing a Host: Cloudflare, Vercel, or Netlify?&lt;/h2&gt;
&lt;p&gt;The first task was to find a home for our frontend (&lt;code&gt;app.flude.guide&lt;/code&gt;). We were choosing between three options:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Cloudflare Pages:&lt;/strong&gt; This was our first candidate, as all our static sites (including the blog) were already running there successfully. But a SaaS app requires Server-Side Rendering (SSR). To run Next.js on Cloudflare, you need Workers and adapters like OpenNext. It turned out that the fresh Next.js 16 and the &lt;code&gt;@clerk/nextjs&lt;/code&gt; library are strictly tied to the Node-specific &lt;code&gt;async_hooks&lt;/code&gt; module, which simply doesn&apos;t exist in the Cloudflare Workers runtime. We couldn&apos;t do a static export (&lt;code&gt;output: &apos;export&apos;&lt;/code&gt;) because Clerk requires a live server. This option was out.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Vercel:&lt;/strong&gt; The native harbor of Next.js. We could have launched on the free Hobby tier, but their Fair Use Guidelines are categorical: commercial use is prohibited. Even if the project isn&apos;t making money yet, having paid developers on staff already violates the rules. The paid Pro tier for $20/month would be safe, but why pay for infrastructure for a page with near-zero traffic at launch?&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Netlify:&lt;/strong&gt; Unlike Vercel, their free tier officially allows commercial use (confirmed on support forums). Next.js SSR is natively supported, and the Clerk + Netlify combo is battle-tested. We chose them.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;The War with Netlify Scanners&lt;/h2&gt;
&lt;p&gt;Having chosen Netlify, we configured the pipeline and pushed the code to release. The build immediately crashed with a security error.&lt;/p&gt;
&lt;p&gt;It turned out that Netlify&apos;s built-in secrets scanner saw the string &lt;code&gt;NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY&lt;/code&gt; in the configuration and blocked the deploy, deciding that we had committed a private token. We had to spend time digging through the documentation to manually add the &lt;code&gt;SECRETS_SCAN_OMIT_KEYS&lt;/code&gt; exception to &lt;code&gt;netlify.toml&lt;/code&gt;. We were literally arguing with the host that a public key is, in fact, public.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.flude.guide/images/surviving_js_ecosystem_clerk_nextjs_part2.jpg&quot; alt=&quot;Surviving Js Ecosystem Clerk Nextjs Part 2&quot; /&gt;&lt;/p&gt;
&lt;h2&gt;The Silent Break: Next.js 16 and File Renaming&lt;/h2&gt;
&lt;p&gt;Having solved the deployment issue, we moved on to authorization. According to the official Clerk documentation, route protection is configured in the &lt;code&gt;middleware.ts&lt;/code&gt; file. We set everything up, pushed the code, but authorization simply didn&apos;t work—the page let everyone in. No errors in the logs, just silence.&lt;/p&gt;
&lt;p&gt;We killed several hours before we realized what was wrong. In Next.js 16, internal conventions had changed: the middleware file is now required to be named &lt;code&gt;proxy.ts&lt;/code&gt;. As soon as we renamed the file, authorization worked. Because of one changed word in the framework&apos;s convention, the security of the entire application silently disabled itself.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.flude.guide/images/surviving_js_ecosystem_clerk_nextjs_part3.jpg&quot; alt=&quot;Surviving Js Ecosystem Clerk Nextjs Part 3&quot; /&gt;&lt;/p&gt;
&lt;h2&gt;Sudden Deprecation: Chasing Standards&lt;/h2&gt;
&lt;p&gt;In that very &lt;code&gt;proxy.ts&lt;/code&gt; file, we had configured protection for our &lt;code&gt;/account&lt;/code&gt; page using a special Clerk function—&lt;code&gt;createRouteMatcher&lt;/code&gt;. This was the recommended approach.&lt;/p&gt;
&lt;p&gt;But the joy was short-lived. We accidentally discovered that this pattern of route protection at the middleware level was already being marked as deprecated. Clerk was shifting its philosophy towards &quot;Resource-based auth&quot;.&lt;/p&gt;
&lt;p&gt;We had to urgently rip out all routing logic from &lt;code&gt;proxy.ts&lt;/code&gt;, leaving only a &quot;bare&quot; context passthrough (&lt;code&gt;export default clerkMiddleware();&lt;/code&gt;), and move the protection inside the server components. Now the &lt;code&gt;/account/[[...rest]]/page.tsx&lt;/code&gt; page itself calls &lt;code&gt;await auth.protect()&lt;/code&gt; before rendering. Yesterday&apos;s &quot;Best Practices&quot; standard turned out to be legacy even before we could release the project.&lt;/p&gt;
&lt;h2&gt;What&apos;s Next?&lt;/h2&gt;
&lt;p&gt;With much grief, we pushed the frontend through. The SaaS acquired working billing, secure cloud workers, and a portal for getting API keys. The architecture was ready.&lt;/p&gt;
&lt;p&gt;But just as we relaxed, we decided to rename the base export format of our core from &lt;code&gt;markdown&lt;/code&gt; to &lt;code&gt;hugo_markdown&lt;/code&gt;. This harmless decision sent ripples across the entire distributed system, breaking contracts between the engine, workers, and clients. How we eliminated this &quot;butterfly effect&quot;—read about it in the next episode.&lt;/p&gt;
&lt;hr /&gt;&lt;p&gt;&lt;strong&gt;Also read us:&lt;/strong&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;https://blog.flude.guide/&quot;&gt;Flude Blog&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://t.me/ude_blog_en&quot;&gt;Telegram channel&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://dev.to/flude_team&quot;&gt;Dev.to&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;</content:encoded><category>frontend</category><category>saas</category><category>architecture</category><category>flude</category></item><item><title>SaaS Economics: Why We Overpaid 10x for Auth and How We Protected the Cloud from Spam</title><link>https://blog.flude.guide/blog/saas-economics-abuse-protection/</link><guid isPermaLink="true">https://blog.flude.guide/blog/saas-economics-abuse-protection/</guid><description>How we built a Free-Tier, protected against Abuse loads, and why we chose Clerk over cheap Supabase Auth.</description><pubDate>Mon, 12 Oct 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;Having developed the secure cloud worker architecture described in the &lt;a href=&quot;https://blog.flude.guide/en/blog/zero-trust-cloud-config-trap&quot;&gt;previous article&lt;/a&gt;, we solved the main engineering task—our parser&apos;s core was secure. But now we faced a product problem.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.flude.guide/images/saas_economics_abuse_protection.jpg&quot; alt=&quot;Saas Economics Abuse Protection&quot; /&gt;&lt;/p&gt;
&lt;p&gt;How could we allow developers to test Flude for free without letting them bankrupt us on GCP Cloud Run bills? Every second of parsing costs real money. We needed a Free-Tier, but with ironclad protection against Abuse loads. And the foundation for this protection became the authentication system.&lt;/p&gt;
&lt;h2&gt;The Foundation: Choosing an Auth Provider&lt;/h2&gt;
&lt;p&gt;We needed to manage users, quotas, and B2B organizations. We considered three options: Auth0, Supabase Auth, and Clerk.&lt;/p&gt;
&lt;p&gt;Auth0 dropped out first: it lacked a native integration with GitLab, and for our CI tool, GitHub, GitLab, and Bitbucket had to be absolutely equal platforms &quot;out of the box.&quot;&lt;/p&gt;
&lt;p&gt;That left Supabase Auth and Clerk. According to preliminary calculations for a scale of 100,000 monthly active users (MAU), Supabase would have cost us pennies, while the bill from Clerk would be roughly ten times larger.&lt;/p&gt;
&lt;p&gt;And yet, we chose the more expensive Clerk. Why?&lt;/p&gt;
&lt;p&gt;First, development savings were the deciding factor. Our future Team pricing plan implied multi-tenancy: the entity of an organization, roles (admin and member), and shared billing. Clerk provided the Organizations feature and ready-made UI components &quot;out of the box&quot;—this fit our model perfectly. With Supabase, we would have had to build a B2B role model from scratch.&lt;/p&gt;
&lt;p&gt;Second—architectural purity. Supabase is a full-fledged BaaS with its own PostgreSQL database. Our project was already firmly tied to the Google Cloud stack (specifically, Firestore). Dragging a second DBMS into the project just for cheap authentication would have been a mistake.&lt;/p&gt;
&lt;p&gt;In the context of projected revenue, the overpayment for Clerk would amount to only a couple of percent. We consciously traded money for months of saved engineering time.&lt;/p&gt;
&lt;h2&gt;Defense in Depth (Free-Gate)&lt;/h2&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.flude.guide/images/saas_economics_abuse_protection_part2.jpg&quot; alt=&quot;Saas Economics Abuse Protection Part 2&quot; /&gt;&lt;/p&gt;
&lt;p&gt;Equipped with a powerful identification tool, we started setting limits. Our philosophy during the beta phase was simple: we want to support indie developers and their small Open Source projects, while cutting off giant enterprise mono-repos.&lt;/p&gt;
&lt;p&gt;To do this, we built a three-level &quot;gate&quot; that cuts off excess load even before the heavy parsing process starts in the cloud:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Entity Limit:&lt;/strong&gt; The API token is checked by the server. If a request comes from an account linked to an organization—it is rejected. Free access is open only for personal projects, and support for corporate teams is reserved for future paid plans.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Privacy Limit:&lt;/strong&gt; We make a cheap preliminary request to the public API (e.g., GitHub) before starting a heavy repository clone. If the code is private—rejection (&lt;code&gt;rejected_private&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Greed Metric (5MB Limit):&lt;/strong&gt; The most important check happens inside the worker after a shallow clone (&lt;code&gt;git clone --depth 1&lt;/code&gt;). We don&apos;t trust the repository size from the API (it might contain gigabytes of garbage). We weigh only those files that actually match the &lt;code&gt;include_patterns&lt;/code&gt;. If the net volume of code exceeds 5 MB, the worker immediately aborts the job.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;Dynamic Rate-Limit and the Window of Loyalty&lt;/h2&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.flude.guide/images/saas_economics_abuse_protection_part3.jpg&quot; alt=&quot;Saas Economics Abuse Protection Part 3&quot; /&gt;&lt;/p&gt;
&lt;p&gt;Even small Open Source projects can trigger CI on every tiny commit 100 times a day. To avoid parsing all of this at our expense, we implemented a dynamic rate-limit based on Firestore.&lt;/p&gt;
&lt;p&gt;For new accounts, we open a &quot;window of loyalty&quot;: for the first 7 days, we allow up to 5 builds per day so the developer can calmly configure CI and play with the Flude configuration.
But a week later, harsh reality sets in—the limit drops strictly to 1 free build per day. If you want to parse documentation on every PR, you&apos;ll have to wait for the launch of paid plans, which we are currently only designing.&lt;/p&gt;
&lt;p&gt;As a final chord, we embedded a global &quot;kill switch&quot; in the database, which allows us to disable all free builds with a single button in case of any infrastructure attack.&lt;/p&gt;
&lt;h2&gt;What&apos;s Next?&lt;/h2&gt;
&lt;p&gt;We designed great business logic protecting our servers from spam and integrated a powerful authorization provider. But, as often happens in the JS ecosystem, third-party dependencies have a habit of suddenly breaking.&lt;/p&gt;
&lt;p&gt;The integration of Clerk and the transition to the new Next.js 16 standards turned our frontend development into a real quest with deprecated functions and broken routes. About this (and how a single renamed line broke contracts across the entire distributed system)—in the next episode.&lt;/p&gt;
&lt;hr /&gt;&lt;p&gt;&lt;strong&gt;Also read us:&lt;/strong&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;https://blog.flude.guide/&quot;&gt;Flude Blog&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://t.me/ude_blog_en&quot;&gt;Telegram channel&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://dev.to/flude_team&quot;&gt;Dev.to&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;</content:encoded><category>business</category><category>architecture</category><category>saas</category><category>flude</category></item><item><title>The Configuration Trap: How Enterprise Solutions Become SaaS Vulnerabilities</title><link>https://blog.flude.guide/blog/zero-trust-cloud-config-trap/</link><guid isPermaLink="true">https://blog.flude.guide/blog/zero-trust-cloud-config-trap/</guid><description>How a harmless configuration file almost became an RCE vector, and why we transitioned to a Zero-Trust architecture.</description><pubDate>Thu, 08 Oct 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;After deciding to split the product into Enterprise and SaaS, we started designing the cloud architecture. During the planning phase, the task seemed straightforward: spin up an API, configure container-workers in the cloud, and simply pass the code to them for processing.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.flude.guide/images/zero_trust_cloud_config_trap.jpg&quot; alt=&quot;Zero Trust Cloud Config Trap&quot; /&gt;&lt;/p&gt;
&lt;p&gt;However, during a detailed security audit, we discovered that architectural patterns which worked flawlessly in a trusted corporate environment turn a public SaaS into an open hacking sandbox.&lt;/p&gt;
&lt;h2&gt;Anatomy of a Vulnerability: RCE via Configuration&lt;/h2&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.flude.guide/images/zero_trust_cloud_config_trap_part2.jpg&quot; alt=&quot;RCE Vulnerability in Config&quot; /&gt;&lt;/p&gt;
&lt;p&gt;In the Enterprise version, the configuration logic was maximally flexible: the engine simply read the &lt;code&gt;flude_*_config.json&lt;/code&gt; configuration file directly from the client&apos;s repository.&lt;/p&gt;
&lt;p&gt;The problem lay in exactly &lt;em&gt;how&lt;/em&gt; these parameters were translated into parser settings under the hood. Our pipeline relied on Doxygen, which we extended with our own scripts to bypass C++ bugs. To make these filters work, the engine uses a standard Doxygen directive—&lt;code&gt;INPUT_FILTER&lt;/code&gt;, which allows executing arbitrary shell commands for processed files.&lt;/p&gt;
&lt;p&gt;In an isolated client perimeter, reading settings from the repository was absolutely safe. But when transferring this logic to a public cloud (GCP Cloud Run), a critical vector for Remote Code Execution (RCE) emerged. If a server blindly trusts a &lt;code&gt;flude_*_config.json&lt;/code&gt; file from a third-party repository, an attacker can pass through overrides for parser parameters. By injecting a command like &lt;code&gt;rm -rf /&lt;/code&gt; or a reverse-shell via &lt;code&gt;INPUT_FILTER&lt;/code&gt; substitution, an attacker would force our system to legitimately execute this code on our own servers.&lt;/p&gt;
&lt;h2&gt;Zero-Trust Architecture and Breaking the Trust&lt;/h2&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.flude.guide/images/zero_trust_cloud_config_trap_part3.jpg&quot; alt=&quot;Zero-Trust Architecture&quot; /&gt;&lt;/p&gt;
&lt;p&gt;Realizing this risk forced us to completely rethink our approach to configuration. In a public cloud, you cannot trust a single line coming from the outside. We implemented a strict Zero-Trust principle:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Abandoning Client Configurations:&lt;/strong&gt; The SaaS version will &lt;em&gt;never&lt;/em&gt; read &lt;code&gt;flude_*_config.json&lt;/code&gt; from a user&apos;s repository.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Server Templates:&lt;/strong&gt; Our cloud worker operates exclusively on hardcoded, versioned server templates for Doxyfiles and configurations.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Secure Parameter Passing:&lt;/strong&gt; A user can only pass a strictly limited set of safe data-parameters (e.g., directories to include or exclude) via the API, which are rigidly validated on the Control Plane side. Control over which tools and filters run in the container has been permanently handed over to the server.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;Fortifying the Perimeter: SSRF and Workload Identity&lt;/h2&gt;
&lt;p&gt;Having plugged the RCE hole, we turned our attention to network security. Cloning user repositories by a server is a classic Server-Side Request Forgery (SSRF) risk. To prevent attackers from forcing our workers to scan the internal GCP network under the guise of a git repository, we implemented a strict Allowlist: cloning is allowed only via HTTPS and strictly from the domains &lt;code&gt;github.com&lt;/code&gt;, &lt;code&gt;gitlab.com&lt;/code&gt;, and &lt;code&gt;bitbucket.org&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Additionally, to minimize damage in the hypothetical event of a container breach, we completely abandoned static keys (Service Account Keys), transitioning all workers to dynamic authentication via GCP Workload Identity Federation.&lt;/p&gt;
&lt;h2&gt;Deferred Threats: Attack via Source Code&lt;/h2&gt;
&lt;p&gt;Having secured the configuration and network, we asked the next question: what if the attack vector becomes the very source code we are parsing?&lt;/p&gt;
&lt;p&gt;We analyzed several highly specific scenarios:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Doxygen Tag Abuse:&lt;/strong&gt; An attacker could write standard tags like &lt;code&gt;\include&lt;/code&gt;, &lt;code&gt;\verbinclude&lt;/code&gt;, or &lt;code&gt;\htmlinclude&lt;/code&gt; into a code comment with a path like &lt;code&gt;../../../etc/passwd&lt;/code&gt;. These will force the parser to read a file outside the project directory and insert its contents into the final documentation, which is then returned to the client. Our strict directory validation is powerless here, as it only checks the declared input paths, not what Doxygen decides to read during the parsing process.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Malicious Symlinks:&lt;/strong&gt; If an attacker commits a symlink pointing to system files of the container, and the parser follows it while traversing directories—this is another way to extract data outside the repository sandbox.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Denial of Service (DoS):&lt;/strong&gt; In our system, the call to the Doxygen binary is limited to 60 seconds, but the parent &lt;code&gt;flude_engine compile&lt;/code&gt; process had no timeout. A specially crafted source file (with infinite template recursion or explosive macro expansion) could permanently hang the cloud worker process.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;After considering these vectors, we made a conscious decision to &lt;strong&gt;defer&lt;/strong&gt; fixing them.&lt;/p&gt;
&lt;p&gt;First, architecturally it was unclear at what level to implement these defenses—especially in light of the upcoming introduction of native parsers. We honestly recorded this debt in the project roadmap under the &quot;Input Validation &amp;amp; Sanitization&quot; section.&lt;/p&gt;
&lt;p&gt;Second, the actual risk was significantly reduced thanks to the Data Plane architecture. All workers in Cloud Run are isolated via gVisor, and the containers themselves are absolutely ephemeral. Even in the event of a successful exploit of a symlink or an &lt;code&gt;\include&lt;/code&gt; tag, an attacker would read files from a disposable, sterile environment without access to neighboring tasks or the host.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Update, November 2026:&lt;/strong&gt; all three deferred threats are now closed. A job whose comments use a Doxygen directive that reads a file outside the repository is refused, a repository with a symbolic link that points outside it is refused, and both the git step and the documentation build have their own time limits.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h2&gt;The Accumulating Dissatisfaction with Doxygen&lt;/h2&gt;
&lt;p&gt;that the incidents with potential RCE via &lt;code&gt;INPUT_FILTER&lt;/code&gt; and the vulnerability of standard tags like &lt;code&gt;\include&lt;/code&gt; became more than just cloud security issues. They were another wake-up call reminding us of Doxygen&apos;s fundamental architectural flaws. Its inflexibility, reliance on shell calls, and poor performance made it a burden for a scalable SaaS solution (and for the architecture as a whole).&lt;/p&gt;
&lt;p&gt;Running ahead, we can say: we did not put up with this technical debt. In a couple of weeks, as soon as we finish the series of articles on SaaS infrastructure, we will explain in detail why we finally fired Doxygen.&lt;/p&gt;
&lt;p&gt;But before that, we had to solve another pressing cloud problem. We had designed a secure Data Plane, protected from hackers, but now we needed to protect it from bankruptcy. How we built a Free-Tier, protected the API from abuse loads, and designed billing—read about it in the next episode.&lt;/p&gt;
&lt;hr /&gt;&lt;p&gt;&lt;strong&gt;Also read us:&lt;/strong&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;https://blog.flude.guide/&quot;&gt;Flude Blog&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://t.me/ude_blog_en&quot;&gt;Telegram channel&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://dev.to/flude_team&quot;&gt;Dev.to&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;</content:encoded><category>security</category><category>architecture</category><category>saas</category><category>flude</category></item><item><title>A Tale of Two Fludes: The Architectural Split of Enterprise and SaaS Models</title><link>https://blog.flude.guide/blog/tale-of-two-fludes/</link><guid isPermaLink="true">https://blog.flude.guide/blog/tale-of-two-fludes/</guid><description>How we realized that binary distribution would kill our public business, and why we had to fork the product into two branches.</description><pubDate>Mon, 05 Oct 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;Extracting specific code into an independent private submodule, as described in the &lt;a href=&quot;https://blog.flude.guide/en/blog/clean-room-private-plugin&quot;&gt;previous article&lt;/a&gt;, allowed us to stabilize the engine&apos;s core. The legal boundaries were drawn, and the base architecture—a smart parser and two-level caching—proved its effectiveness.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.flude.guide/images/tale_of_two_fludes.jpg&quot; alt=&quot;Tale Of Two Fludes&quot; /&gt;&lt;/p&gt;
&lt;p&gt;The next logical step was transitioning from an internal tool to a commercial product. However, at this stage, we faced a fundamental contradiction between the corporate operational model and the demands of the mass market.&lt;/p&gt;
&lt;h2&gt;The Illusion of Universal Distribution&lt;/h2&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.flude.guide/images/tale_of_two_fludes_part2.jpg&quot; alt=&quot;SaaS vs Enterprise Architecture&quot; /&gt;&lt;/p&gt;
&lt;p&gt;Initially, Flude&apos;s architecture was shaped by the needs of a large corporation. Security requirements in such environments are categorical: the tool must function within a closed perimeter, guaranteeing that the source code never leaves the company&apos;s servers.&lt;/p&gt;
&lt;p&gt;To solve this, we integrated directly. A package with scripts was handed over to the client and run locally in their CI pipeline, reading configuration files directly from the repository. Within a corporate environment, this delivery model (whether source or bytecode) is ideal: the closed perimeter and strict legal obligations reliably guarantee the safety of intellectual property.&lt;/p&gt;
&lt;p&gt;However, when planning to scale to the public market, it became obvious that directly copying the Enterprise distribution approach was technically and conceptually inapplicable.&lt;/p&gt;
&lt;h2&gt;Losing Control over Distribution&lt;/h2&gt;
&lt;p&gt;The closed-contract model works perfectly in the Enterprise sector, but to ensure stable product growth, we needed to enter the mass B2B/B2C market: small teams and independent developers.&lt;/p&gt;
&lt;p&gt;The obvious problem was that handing over source Python scripts or a ready-made Docker image to users outside of corporate agreements inevitably leads to losing control over product distribution. Without strict legal barriers, open distribution technically allows bypassing licensing mechanisms and uncontrollably replicating the system&apos;s core.&lt;/p&gt;
&lt;p&gt;Consequently, the approach that is standard for a trusted corporate environment turned out to be structurally incompatible with a public business model.&lt;/p&gt;
&lt;h2&gt;The Divergence&lt;/h2&gt;
&lt;p&gt;To protect the product&apos;s core, we had to rethink the delivery paradigm itself. Flude&apos;s architecture was physically divided into two independent models:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Enterprise Flude:&lt;/strong&gt; An autonomous, local solution. Delivered exclusively under targeted contracts. Functions offline, processes code locally, and integrates with the configuration directly in the client&apos;s repository.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;SaaS Flude (Public Market):&lt;/strong&gt; A cloud-oriented model. The parser&apos;s core is never handed over to end users. Instead, a &quot;thin client&quot; (lightweight CI scripts) is provided, whose sole task is packing source files and securely transmitting them via API. All computational load and parsing logic remain encapsulated on our servers.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;Moving to the Cloud and the Unexpected Benefit of Binaries&lt;/h2&gt;
&lt;p&gt;By adopting the SaaS model, we secured our algorithms, but significantly complicated the technical implementation. We had to design a distributed system from scratch capable of receiving and processing third-party code.&lt;/p&gt;
&lt;p&gt;Interestingly, it was at this stage that the concept of a &quot;single binary&quot;, which we had rejected for public distribution, turned out to be our own salvation. To avoid managing complex Python environments and dependencies on every cloud worker, we compiled our core. A standalone binary became the perfect solution for quick startups inside our own SaaS infrastructure (and later, a convenient delivery format for Enterprise clients).&lt;/p&gt;
&lt;p&gt;How we designed the cloud with the Zero-Trust concept in mind, and why configuration files that worked flawlessly locally turned into a critical attack vector (RCE) in SaaS, we&apos;ll tell you in the next episode.&lt;/p&gt;
&lt;hr /&gt;&lt;p&gt;&lt;strong&gt;Also read us:&lt;/strong&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;https://blog.flude.guide/&quot;&gt;Flude Blog&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://t.me/ude_blog_en&quot;&gt;Telegram channel&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://dev.to/flude_team&quot;&gt;Dev.to&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;</content:encoded><category>business</category><category>architecture</category><category>saas</category><category>flude</category></item><item><title>Clean Room: A Refactor That Answered a Legal Question, Not an Architectural One</title><link>https://blog.flude.guide/blog/clean-room-private-plugin/</link><guid isPermaLink="true">https://blog.flude.guide/blog/clean-room-private-plugin/</guid><description>Some code doesn&apos;t belong in the main engine forever. We look at why splitting one renderer family into its own private plugin was the answer to a legal question.</description><pubDate>Thu, 01 Oct 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;Code born inside the core engine rarely has to stay there forever. This specific move started with a question about legal boundaries. We needed a hard line between our own original logic and knowledge acquired from an external format. One of Flude&apos;s renderer families—the one built to precisely mirror an outside documentation tool—sat dangerously close to that line.&lt;/p&gt;
&lt;h2&gt;Two Risks a Refactor-in-Place Misses&lt;/h2&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.flude.guide/images/tangled_code_risks.jpg&quot; alt=&quot;Tangled data streams&quot; /&gt;&lt;/p&gt;
&lt;p&gt;Carving out a module inside the same repository does practically nothing here. A shared commit history leaves the biggest vulnerabilities wide open.&lt;/p&gt;
&lt;p&gt;Authorship is the first major headache. Code mirroring an external format gets thoroughly mixed up with the rest of the engine. Proving independent development after the fact becomes incredibly messy. You build a credible evidence trail through total separation—a dedicated repository and a fresh commit history.&lt;/p&gt;
&lt;p&gt;The logic itself carries its own risks. The way code bends to match an external format is highly specific knowledge. Tightly weaving it into the engine blurs the line between a general tool and client-specific insights.&lt;/p&gt;
&lt;p&gt;A physical split cleanly shuts down both risks. A simple folder rename just papers over the cracks.&lt;/p&gt;
&lt;h2&gt;How It Played Out in Practice&lt;/h2&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.flude.guide/images/clean_room_plugin.jpg&quot; alt=&quot;Clean Room plugin&quot; /&gt;&lt;/p&gt;
&lt;p&gt;We pulled the renderer family into a standalone git repository. It plugs into the main project as a private submodule. The engine interacts with it through the standard renderer interface. The class simply lives in a new zip code. The rest of the system barely noticed the change.&lt;/p&gt;
&lt;p&gt;Standing up the new repository brought plenty of friction. The test harness relies heavily on the engine&apos;s core models. We had to check out the main engine inside the new CI pipeline. Shared relative paths completely broke down. Nailing the dependency paths took a few frustrating attempts. We temporarily dropped the markdownlint gate before restoring it to maintain project standards. Turning the CI pipeline green took some serious trial and error.&lt;/p&gt;
&lt;p&gt;The quality checks moved right alongside the code. The entire infrastructure for comparing results against reference documents shifted over. Leaving it behind would have made it impossible to spot rendering drift.&lt;/p&gt;
&lt;h2&gt;The Result&lt;/h2&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.flude.guide/images/unified_core_and_module.jpg&quot; alt=&quot;Core and Module separated&quot; /&gt;&lt;/p&gt;
&lt;p&gt;The main engine feels much leaner now. The core and the remaining renderer family can evolve at their own natural pace. The extracted code operates completely independently. It boasts its own CI and a bulletproof line of provenance. We no longer have to worry about proving its origins retroactively.&lt;/p&gt;
&lt;hr /&gt;&lt;p&gt;&lt;strong&gt;Also read us:&lt;/strong&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;https://blog.flude.guide/&quot;&gt;Flude Blog&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://t.me/ude_blog_en&quot;&gt;Telegram channel&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://dev.to/flude_team&quot;&gt;Dev.to&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;</content:encoded><category>architecture</category><category>plugins</category><category>flude</category></item><item><title>Ghost in the Wire: Our Two-Day Hunt for a Network Bug That Didn&apos;t Exist</title><link>https://blog.flude.guide/blog/ghost-in-the-wire/</link><guid isPermaLink="true">https://blog.flude.guide/blog/ghost-in-the-wire/</guid><description>The runner was crashing every two and a half minutes, and one repo&apos;s job couldn&apos;t start for over a day. We were chasing a network bug—packet captures, WinDbg memory dumps, the works. The real cause turned out to be a single line in an API filter tangled up with the watchdog&apos;s own logic.</description><pubDate>Mon, 28 Sep 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;&lt;img src=&quot;https://blog.flude.guide/images/ghost_in_the_wire.jpg&quot; alt=&quot;Ghost in the wire&quot; /&gt;&lt;/p&gt;
&lt;p&gt;Our self-hosted runner serves CI for five repositories on one physical VM. It started acting completely crazy. The &lt;code&gt;engine&lt;/code&gt; job sat queued in GitHub Actions for over a day. It just hung there doing absolutely nothing. The supervisor meant to pick it up was restarting itself every two and a half to three minutes around the clock. We called this endless loop &quot;the carousel&quot; and wasted two days chasing ghosts.&lt;/p&gt;
&lt;h2&gt;The Symptom, and the First False Lead&lt;/h2&gt;
&lt;p&gt;We already had a documented network bug in this exact infrastructure. A classic VirtualBox NAT &quot;black hole&quot; used to kill TCP connections inside the guest VM silently. The guest OS would consider the connection alive forever. We tracked down and closed that issue a week and a half earlier.&lt;/p&gt;
&lt;p&gt;When the supervisor started hanging on the host side, our reflexes kicked in. We assumed it was the exact same disease in a fresh disguise. That feeling was convincing enough to steer the whole investigation sideways for a full day. The watchdog detected the hang, killed the process, and brought it back up. Every new instance hung reliably after 150-190 seconds. That unnatural precision should have made us suspicious way earlier.&lt;/p&gt;
&lt;h2&gt;Escalation: Packets, Memory Dumps, Power Settings&lt;/h2&gt;
&lt;p&gt;A thorough and completely useless sweep through network theories followed. We disabled a third-party VirtualBox NDIS filter attached to the Wi-Fi adapter. We reset the MIMO power-saving settings. Nothing made a dent in the problem.&lt;/p&gt;
&lt;p&gt;Running &lt;code&gt;pktmon&lt;/code&gt; during an actual hang showed a completely healthy network. New TCP connections to GitHub established in 60 milliseconds. The &quot;hung&quot; process supposedly couldn&apos;t send a single byte. We wrongly concluded the hang was happening before the packet got sent.&lt;/p&gt;
&lt;p&gt;A memory dump of the process via WinDbg showed twenty-two threads. None of them were sitting inside an HTTP call. We spotted suspicious modules like antivirus drivers and &lt;code&gt;crypt32&lt;/code&gt; certificate validators. Every single one of these plausible candidates turned out to be a dead end.&lt;/p&gt;
&lt;p&gt;We did notice one genuinely interesting detail. The host machine dropped into Modern Standby right when the hangs occurred. We disabled sleep and screen timeouts entirely. The restarts kept happening on the exact same schedule. The correlation was totally real—but completely unrelated.&lt;/p&gt;
&lt;h2&gt;A Second Pair of Eyes Solves Half the Problem&lt;/h2&gt;
&lt;p&gt;Another session looked at the logs and caught what we missed. The watchdog was treating plain silence as a fatal hang. The GitHub API poll writes nothing when the queue is empty. It simply sleeps for twenty seconds and tries again. A few quiet cycles looked exactly like a dead process to the watchdog.&lt;/p&gt;
&lt;p&gt;We verified this by pulling the I/O counters directly. The bytes were genuinely moving. The process was perfectly healthy with nothing to log. We updated the watchdog to check those exact counters before killing anything. The restarts stopped completely. The &lt;code&gt;engine&lt;/code&gt; job still refused to dispatch.&lt;/p&gt;
&lt;h2&gt;The Real Cause&lt;/h2&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.flude.guide/images/api_filter_bug.jpg&quot; alt=&quot;API filter bug&quot; /&gt;&lt;/p&gt;
&lt;p&gt;We ran a direct test using the exact token the supervisor uses. Querying &lt;code&gt;runs?status=queued&lt;/code&gt; for &lt;code&gt;engine&lt;/code&gt; returned zero results. Running the same query with a personal token showed the job instantly. Access rights were perfectly fine.&lt;/p&gt;
&lt;p&gt;The answer was buried in the API response itself. The run had a &lt;code&gt;&quot;pending&quot;&lt;/code&gt; status. The job inside that run was correctly marked as &lt;code&gt;&quot;queued&quot;&lt;/code&gt;. Our code filtered runs at the top level. GitHub had split the run&apos;s status from the job&apos;s status. One bad line of filtering made the code completely blind to a waiting job.&lt;/p&gt;
&lt;p&gt;We dropped the top-level filter completely. The nested check handled everything perfectly on its own. The very first poll picked up the stuck jobs and ran the full suite beautifully.&lt;/p&gt;
&lt;h2&gt;A Small Postscript: Fixing Our Own Fix&lt;/h2&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.flude.guide/images/ghost_in_the_wire_part3.jpg&quot; alt=&quot;Ghost In The Wire Part 3&quot; /&gt;&lt;/p&gt;
&lt;p&gt;Removing the filter spawned a new headache. The code started pulling dozens of recent runs and making separate job requests for each one. The call volume spiked massively. The carousel of restarts came back because I/O genuinely dropped to zero. We added client-side filtering to skip runs marked as &lt;code&gt;completed&lt;/code&gt;. Everything stabilized immediately.&lt;/p&gt;
&lt;h2&gt;What We&apos;re Taking Away From This&lt;/h2&gt;
&lt;p&gt;Solid diagnostic tools will gladly prove the wrong theory. WinDbg and packet sniffers correctly showed a healthy network. We just kept interpreting those results to fit our initial bias. A simple API call with the right token proved infinitely more useful than all the heavy debugging gear.&lt;/p&gt;
&lt;p&gt;Next time, we get into legal boundaries and clean room design. We ended up moving an entire renderer family into a private plugin. It was the only way to firmly separate our core engine from logic shaped by an external client format.&lt;/p&gt;
&lt;hr /&gt;&lt;p&gt;&lt;strong&gt;Also read us:&lt;/strong&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;https://blog.flude.guide/&quot;&gt;Flude Blog&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://t.me/ude_blog_en&quot;&gt;Telegram channel&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://dev.to/flude_team&quot;&gt;Dev.to&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;</content:encoded><category>post-mortem</category><category>ci-cd</category><category>debugging</category></item><item><title>Growing Pains with Five Repositories: Gitlinks and Dual CI</title><link>https://blog.flude.guide/blog/multi-repo-gitlinks-dual-ci/</link><guid isPermaLink="true">https://blog.flude.guide/blog/multi-repo-gitlinks-dual-ci/</guid><description>How a multi-repository architecture turned into `not our ref` Git traps and forced us to test our core engine in two parallel realities.</description><pubDate>Thu, 24 Sep 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;Usually, infrastructure stories start with the words: &quot;Our project got too big, and we decided to split it into parts.&quot; But with us, everything was different.&lt;/p&gt;
&lt;p&gt;From the very first minute of the project, we consciously chose an architecture consisting of a scatter of independent repositories. The &lt;code&gt;Pipeline&lt;/code&gt;, &lt;code&gt;engine&lt;/code&gt;, &lt;code&gt;design-docs&lt;/code&gt;, and &lt;code&gt;user-docs&lt;/code&gt; projects were created almost simultaneously, and the &lt;code&gt;.gitmodules&lt;/code&gt; configuration file sat in the very first commit of the parent repository.&lt;/p&gt;
&lt;p&gt;For the sake of code cleanliness, CI isolation, independent history, and separation of access rights, we built the system on Git Submodules from day one. The idea looked flawless on paper. But here is what we had to pay for it in practice.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.flude.guide/images/multi_repo_gitlinks_dual_ci.jpg&quot; alt=&quot;Git Submodule Trap&quot; /&gt;&lt;/p&gt;
&lt;h2&gt;The Gitlink Trap: The Ghost of a Local Commit&lt;/h2&gt;
&lt;p&gt;The first price we paid was the non-obvious mechanics of state synchronization. When you use submodules, the workflow demands strict discipline. If you edit code inside &lt;code&gt;engine/&lt;/code&gt; (while physically located in the folder of the parent repository &lt;code&gt;Pipeline&lt;/code&gt;), you need to make two pushes. First, a &lt;code&gt;git push&lt;/code&gt; from the folder of the submodule itself, and then, after moving up to the root of &lt;code&gt;Pipeline&lt;/code&gt;—you must commit the updated pointer (gitlink) to the new &lt;code&gt;engine&lt;/code&gt; commit and push &lt;code&gt;Pipeline&lt;/code&gt; itself.&lt;/p&gt;
&lt;p&gt;It is incredibly easy to forget the first push. On your local disk, the commit physically exists. Everything builds, the tests are green, and &lt;code&gt;Pipeline&lt;/code&gt; happily goes to the cloud. But this only surfaces on a fresh checkout in CI. The &lt;code&gt;git submodule update --init&lt;/code&gt; command fails with the text:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-ext&quot;&gt;fatal: remote error: upload-pack: not our ref &amp;lt;sha&amp;gt;
```    ext

GitHub honestly replies: &quot;This commit does not exist in the remote repository.&quot;

One day, three submodules fell into this trap simultaneously (`design-docs`, `engine`, `user-docs`). The cause was identical—small commits were made right inside the submodule folders, the gitlink in `Pipeline` was synchronized, but the local commits never left the developer&apos;s laptop.

There was also a colorful nuance: the fourth submodule, `ude_promotion` (which hosts the site), broke so badly that a normal push couldn&apos;t fix it—its local branch fell so far behind `upstream` that an interactive `rebase` was required before pushing.

## Dual CI: One Code in Two Personalities


![Multi Repo Gitlinks Dual Ci Part 2](/images/multi_repo_gitlinks_dual_ci_part2.jpg)

The second reckoning came from CI. The `engine` repository (our core) had two personalities. On the one hand, it was a standalone repository with its own build process, which checked out only this repository. On the other—it was a submodule inside `Pipeline`, which was tested in the context of the entire parent project.

These two personalities inevitably clashed, and this happened in two different stages.

**The First Strike: Missing Dependencies**
The simplest case. The `test_integration_scripts.py` test tried to reach the `verify_pages/check_links` modules, which existed only in the parent `Pipeline` repository. During a standalone checkout of `engine`, these files simply weren&apos;t on the disk. We fixed it roughly but effectively—we added a single line to the `ci.yml` configuration, strictly ignoring this test from the standalone run (`pytest --ignore=...`). But this was a one-off patch, not a systemic solution.

**The Fatal Directory Ascent**
Soon the bug returned in a new guise. One by one, tests started failing that used a classic trick to find parent artifacts:

```python
Path(__file__).resolve().parents[2]
```    ext

In a nested run, this code ascended exactly to the root of the parent repository. But in the standalone build of `engine`, it jumped **above** the root of the repository, straight into the system filesystem of the CI runner, and crashed with a hard `AssertionError`.

It was after the second occurrence of this bug that we realized point patches no longer worked. We needed a general convention.

We introduced an elegant marker hack: tests began checking for the presence of our system marker directory (let&apos;s call it `.workspace_config`) at the ascended level. If the directory is there—it means we are in a nested context, and the tests run. If it&apos;s not there (standalone)—we politely use `pytest.mark.skipif`, and the tests are quietly skipped without failing with a red status.

## Conclusion


![Multi Repo Gitlinks Dual Ci Part 3](/images/multi_repo_gitlinks_dual_ci_part3.jpg)

A Multi-repo architecture does not give you magical &quot;loose coupling&quot; for free on day one.

It demands flawless push synchronization discipline and forces you to design code so that it is ready to work in several different execution contexts simultaneously. These lessons cost us broken pipelines, but without them, the system would not have survived further growth.

But the problems with Git and dual CI turned out to be just a prelude. The real mysticism began when the network intervened, and our pipeline started crashing because of a &quot;ghost&quot; in the wires. How we investigated an elusive network bug—read about it in the next episode.
&lt;/code&gt;&lt;/pre&gt;
&lt;hr /&gt;&lt;p&gt;&lt;strong&gt;Also read us:&lt;/strong&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;https://blog.flude.guide/&quot;&gt;Flude Blog&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://t.me/ude_blog_en&quot;&gt;Telegram channel&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://dev.to/flude_team&quot;&gt;Dev.to&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;</content:encoded><category>git</category><category>submodules</category><category>ci</category><category>pytest</category><category>flude</category></item><item><title>Escaping the Cloud: How Five Repositories Stopped Sharing One Minute Limit</title><link>https://blog.flude.guide/blog/escaping-to-self-hosted-runners/</link><guid isPermaLink="true">https://blog.flude.guide/blog/escaping-to-self-hosted-runners/</guid><description>After decomposing the monorepo, each of the five repositories got its own CI. Architecturally beautiful, but brutally expensive in GitHub Actions minutes. We spun up our own Windows machine with a single runner for all five—and wrote a watchdog for it that would spectacularly fail less than 24 hours later.</description><pubDate>Mon, 21 Sep 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;Splitting the monorepo granted each of our five components an independent continuous integration pipeline. Architecturally, we achieved perfect component isolation. The problem hid in the strict limits of free GitHub Actions minutes. A unified build line used to efficiently compile everything in a single run. Five separate pipelines began burning through our starting two thousand minutes like wildfire by launching independent jobs for every tiny commit.&lt;/p&gt;
&lt;h2&gt;One Physical Machine for Five Clients&lt;/h2&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.flude.guide/images/escaping_to_self_hosted_runners.jpg&quot; alt=&quot;One VM, Five Repositories&quot; /&gt;&lt;/p&gt;
&lt;p&gt;We flatly refused to buy extra cloud minutes and deployed our own self-hosted runner on a standard Windows office laptop. Inside ran an Ubuntu virtual machine powered by VirtualBox. This single virtual machine methodically took turns servicing tasks for all five repositories.&lt;/p&gt;
&lt;p&gt;Official GitHub documentation heavily &lt;a href=&quot;https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners#self-hosted-runner-security&quot;&gt;advises against&lt;/a&gt; attaching local runners to public projects due to remote code execution risks via malicious pull requests. Our repositories are completely private, keeping us safe from outside attacks. We nevertheless implemented paranoid hygiene to guarantee build reproducibility. A single runner processes code from five different projects, and leftover file debris from a previous build could easily ruin the next one.&lt;/p&gt;
&lt;p&gt;We isolated the guest system through classic NAT (&lt;code&gt;nic1=nat&lt;/code&gt;), blocking its access to the host&apos;s local network. Before every new job, a script ruthlessly rolled the virtual machine back to a clean snapshot. The runner itself launched with the &lt;code&gt;--ephemeral&lt;/code&gt; flag for one-time registration, while an additional &lt;code&gt;Unregister-OrphanedRunner.ps1&lt;/code&gt; script scrubbed hanging records via the API.&lt;/p&gt;
&lt;h2&gt;The Price of Genuine Isolation with a Custom Supervisor&lt;/h2&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.flude.guide/images/supervisor_clean_vm_snapshot.jpg&quot; alt=&quot;Clean VM snapshot&quot; /&gt;&lt;/p&gt;
&lt;p&gt;Many wonder why we wrote a custom polling script when GitHub offers built-in &lt;em&gt;Organization Runners&lt;/em&gt;. The standard mechanism certainly allows sharing runner pools across multiple repositories. It completely fails at managing the lifecycle of the virtual environments themselves.&lt;/p&gt;
&lt;p&gt;The &lt;code&gt;--ephemeral&lt;/code&gt; flag successfully removes a runner from the pool after task completion. It does nothing to restore the filesystem to its original pristine state. To wrap every single task in a strict cycle of snapshot rollbacks and VM launches, we still needed an external controller. The custom REST API polling script became a mandatory tax for ensuring a clean environment for every build.&lt;/p&gt;
&lt;h2&gt;The Watchdog Monitoring Itself&lt;/h2&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.flude.guide/images/watchdog_self_monitor.jpg&quot; alt=&quot;Watchdog looking in mirror&quot; /&gt;&lt;/p&gt;
&lt;p&gt;The single server became a critical point of failure for the entire project. Any freeze in the supervisor instantly paralyzed code checks and documentation publishing. For the first few weeks the script ran unsupervised and regularly demanded manual restarts whenever VirtualBox spawned zombie processes. We wrote a separate watchdog script tasked with automatically restarting the frozen controller.&lt;/p&gt;
&lt;p&gt;The logic was primitive: if the &lt;code&gt;supervisor.log&lt;/code&gt; file stopped updating and the &lt;code&gt;VBoxHeadless&lt;/code&gt; process wasn&apos;t running, the watchdog pulled the plug. We shot ourselves in the foot on day one. The watchdog diligently wrote its own diagnostic logs into the very same &lt;code&gt;supervisor.log&lt;/code&gt; file. It constantly updated the file modification time, reliably blocking its own check condition.&lt;/p&gt;
&lt;p&gt;We quickly separated the logs into different files, and the system appeared to run smoothly. The following morning the watchdog lost its mind and began systematically killing a perfectly healthy supervisor for no apparent reason. This sent us down a two-day detective investigation into a network ghost in the machine, which we will cover in the next part.&lt;/p&gt;
&lt;hr /&gt;&lt;p&gt;&lt;strong&gt;Also read us:&lt;/strong&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;https://blog.flude.guide/&quot;&gt;Flude Blog&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://t.me/ude_blog_en&quot;&gt;Telegram channel&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://dev.to/flude_team&quot;&gt;Dev.to&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;</content:encoded><category>devops</category><category>ci-cd</category><category>self-hosted</category><category>story</category><category>flude</category></item><item><title>The Phantom That Wasn&apos;t There: How Unreliable grep Made Us Chase Ghosts</title><link>https://blog.flude.guide/blog/the-phantom-bug-grep/</link><guid isPermaLink="true">https://blog.flude.guide/blog/the-phantom-bug-grep/</guid><description>What do you do when your parser generates documentation for a class that a global text search across the entire repository can&apos;t find? The story of one false panic.</description><pubDate>Thu, 17 Sep 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;One of the hardest stages in developing a documentation generator is alignment with legacy tools. When you migrate from an old, decades-proven proprietary generator to your own custom pipeline, you are obligated to prove that you haven&apos;t lost a single class.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.flude.guide/images/the_phantom_bug_grep.jpg&quot; alt=&quot;The Phantom Bug Grep&quot; /&gt;&lt;/p&gt;
&lt;p&gt;We wrote an automated system that compared thousands of entities generated by the old tool with what our new Flude-based pipeline found. And one day, we stumbled upon a terrifying anomaly.&lt;/p&gt;
&lt;h2&gt;Anomaly in the Matrix&lt;/h2&gt;
&lt;p&gt;The alignment script happily reported: Flude found and generated documentation for a struct named &lt;code&gt;GraphicsAsset&lt;/code&gt; and its smart pointer &lt;code&gt;GraphicsAssetPtr&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;The problem was that in the old, reference documentation, these entities didn&apos;t exist. At all.&lt;/p&gt;
&lt;p&gt;According to our logic, if the legacy generator didn&apos;t find the class, it&apos;s highly likely this class simply doesn&apos;t exist, and our parser made a mistake somewhere, &quot;gluing&quot; someone else&apos;s names together. We had to check the source code.&lt;/p&gt;
&lt;h2&gt;Zero Results&lt;/h2&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.flude.guide/images/the_phantom_bug_grep_part2.jpg&quot; alt=&quot;Zero grep results&quot; /&gt;&lt;/p&gt;
&lt;p&gt;We did what any engineer would do—we opened a terminal and ran a quick global text search (&lt;code&gt;grep&lt;/code&gt; / &lt;code&gt;ripgrep&lt;/code&gt;) across the entire multi-gigabyte codebase of our enterprise C++ product:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;rg &quot;GraphicsAsset&quot; ./sdk_sources/
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Result: &lt;strong&gt;0 matches&lt;/strong&gt;. Absolute emptiness.&lt;/p&gt;
&lt;p&gt;We checked with case-insensitivity, we searched for the smart pointer. Nothing.&lt;/p&gt;
&lt;h2&gt;Panic: The Hallucinating Parser&lt;/h2&gt;
&lt;p&gt;It was a moment of genuine horror. The codebase didn&apos;t contain the string &lt;code&gt;GraphicsAsset&lt;/code&gt;. But somehow, our parser hadn&apos;t just found this name; it had built a beautiful HTML page for it, complete with a list of methods, properties, and inheritance!&lt;/p&gt;
&lt;p&gt;The conclusion seemed obvious: our parser had gone insane. It had started fabricating C++ classes out of thin air. Perhaps the logic for expanding complex macros had broken, or Doxygen&apos;s cache had become so corrupted that it started stitching pieces of different files into a single &quot;Frankenstein&quot;.&lt;/p&gt;
&lt;p&gt;We were already preparing to open the debugger and rewrite the token-linking logic in the core.&lt;/p&gt;
&lt;h2&gt;Autopsy of the Cache&lt;/h2&gt;
&lt;p&gt;Fortunately, before tearing apart the core codebase, we decided to look at the raw intermediate data. We went to the directory where Doxygen dumped its low-level XML, and searched there.&lt;/p&gt;
&lt;p&gt;Suddenly, sitting quietly on the disk, was a file named &lt;code&gt;struct_graphics_asset.xml&lt;/code&gt;. We opened it.&lt;/p&gt;
&lt;p&gt;Inside was perfectly formed XML. It didn&apos;t look like a hallucination. Moreover, in the &lt;code&gt;&amp;lt;location&amp;gt;&lt;/code&gt; tag, the parser pedantically pointed out exactly where it got this class:
&lt;code&gt;Core/Include/Graphics/MaterialConfig.h:3006-3061&lt;/code&gt;&lt;/p&gt;
&lt;h2&gt;The Phantom Takes Flesh&lt;/h2&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.flude.guide/images/the_phantom_bug_grep_part3.jpg&quot; alt=&quot;MaterialConfig.h macro&quot; /&gt;&lt;/p&gt;
&lt;p&gt;We opened the &lt;code&gt;MaterialConfig.h&lt;/code&gt; file and scrolled down to line 3006.&lt;/p&gt;
&lt;p&gt;And there, in the very heart of a massive legacy header, hid a completely real, living struct:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-cpp&quot;&gt;struct CORE_ABSTRACT GRAPHICS_EXPORT GraphicsAsset {
    // ... dozens of lines of valid C++ code
};
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;It had always been there. The legacy generator simply couldn&apos;t parse it because of complex macros, but our Flude could.&lt;/p&gt;
&lt;p&gt;So why did the global &lt;code&gt;rg&lt;/code&gt; yield zero matches? In enterprise monoliths, there are always plenty of reasons. Perhaps the &lt;code&gt;Core/Include&lt;/code&gt; path was listed in a tricky &lt;code&gt;.gitignore&lt;/code&gt;, and the smart &lt;code&gt;ripgrep&lt;/code&gt; ignored it. Perhaps the file had an exotic Windows encoding that broke the search. Perhaps it was a mounted submodule.&lt;/p&gt;
&lt;h2&gt;Conclusion&lt;/h2&gt;
&lt;p&gt;A global text search offered an absence of evidence as evidence of absence.&lt;/p&gt;
&lt;p&gt;This case taught us a crucial rule: &lt;strong&gt;a text search is not a C++ parser&lt;/strong&gt;. Trying to analyze the structure of a C++ monolith with regular expressions or &lt;code&gt;grep&lt;/code&gt; is a path to disaster and false conclusions.&lt;/p&gt;
&lt;p&gt;If you doubt your parser, never use text search as the arbiter. Trust only the raw dumps of the compiler itself or the Abstract Syntax Tree (AST). And most importantly: do not try to &quot;fix&quot; a bug in the core until you prove its existence in the actual source of truth.&lt;/p&gt;
&lt;p&gt;But parsing and cache problems paled in comparison to our infrastructural challenges. From day one, our project was built as an ecosystem of several independent repositories. How this architecture turned into Git traps and nearly broke our Continuous Integration—read about it in the next episode.&lt;/p&gt;
&lt;hr /&gt;&lt;p&gt;&lt;strong&gt;Also read us:&lt;/strong&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;https://blog.flude.guide/&quot;&gt;Flude Blog&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://t.me/ude_blog_en&quot;&gt;Telegram channel&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://dev.to/flude_team&quot;&gt;Dev.to&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;</content:encoded><category>c++</category><category>debugging</category><category>grep</category><category>parsing</category><category>flude</category></item><item><title>The Leak That Won&apos;t Die: How We Broke Python&apos;s tempfile</title><link>https://blog.flude.guide/blog/the-leak-that-wont-die/</link><guid isPermaLink="true">https://blog.flude.guide/blog/the-leak-that-wont-die/</guid><description>Victory over the old Doxygen parser turned into a new catastrophe. Temporary directories flooded the disk, and our &apos;fix&apos; using garbage collection just made things worse.</description><pubDate>Mon, 14 Sep 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;Production crashes always happen suddenly. This time, the alarm was raised by the core C++ SDK developers. Their scheduled nightly build failed on the CI runner with a classic diagnosis: &lt;code&gt;No space left on device&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.flude.guide/images/the_leak_that_wont_die.jpg&quot; alt=&quot;The Leak That Wont Die&quot; /&gt;&lt;/p&gt;
&lt;p&gt;We ran out of disk space. A quick post-mortem revealed that the &lt;code&gt;/tmp&lt;/code&gt; folder was bursting with thousands of temporary directories. Their names all started the same way: &lt;code&gt;ude_xml_&lt;/code&gt;. It was our code.&lt;/p&gt;
&lt;h2&gt;The Architecture of the Crash&lt;/h2&gt;
&lt;p&gt;As we&apos;ve mentioned before, our engine handles Doxygen in a tricky way. We feed it source code, it spits out a massive XML dump, and we parse that dump. For every run, the engine created a temporary folder using &lt;code&gt;tempfile.mkdtemp()&lt;/code&gt;. A dynamically generated &lt;code&gt;Doxyfile&lt;/code&gt; was placed there, and Doxygen would dump hundreds of megabytes of XML into it.&lt;/p&gt;
&lt;p&gt;The plan was simple: at the very end of the pipeline, a &lt;code&gt;cleanup()&lt;/code&gt; function would run, executing an honest &lt;code&gt;shutil.rmtree()&lt;/code&gt; on that folder. But the plan had a flaw. If the parsing failed with an exception, the pipeline aborted, &lt;code&gt;cleanup()&lt;/code&gt; was never called, and a folder filled with megabytes of garbage was left stranded in &lt;code&gt;/tmp&lt;/code&gt; forever.&lt;/p&gt;
&lt;p&gt;Complaints started pouring in from teams building massive projects. The error was flaky. We tried wrapping the call in a &lt;code&gt;try/finally&lt;/code&gt; block, but the engine&apos;s logic was smeared across dozens of classes. The leak persisted.&lt;/p&gt;
&lt;h2&gt;A False Sense of Security: Trusting the GC&lt;/h2&gt;
&lt;p&gt;How do you solve the problem of forgotten resource cleanup in Python? &quot;Delegate the cleanup to the Garbage Collector (GC)!&quot; we thought.&lt;/p&gt;
&lt;p&gt;Instead of &lt;code&gt;mkdtemp&lt;/code&gt;, we rewrote the logic to use the &lt;code&gt;tempfile.TemporaryDirectory&lt;/code&gt; object. Its main advantage is that when the object is deleted from memory, its finalizer (&lt;code&gt;__del__&lt;/code&gt;) automatically triggers the folder&apos;s deletion on disk.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.flude.guide/images/python_garbage_collector_overload.jpg&quot; alt=&quot;Python Garbage Collector Overload&quot; /&gt;&lt;/p&gt;
&lt;p&gt;To ensure the folder lived exactly as long as the engine needed it, we saved a reference to the object in a global list inside the manager class:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-python&quot;&gt;temp_dir_obj = tempfile.TemporaryDirectory(prefix=&quot;ude_xml_&quot;)
self._active_temp_dirs.append(temp_dir_obj)
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;It seemed like elegant, &quot;pythonic&quot; code. The object lives in the manager&apos;s memory and is automatically deleted when the script finishes.&lt;/p&gt;
&lt;h2&gt;The Fatal Mistake&lt;/h2&gt;
&lt;p&gt;We rolled out this &quot;fix&quot; to production. For a few days, the complaints stopped. We patted ourselves on the back and closed the issue. And then the CI runners started crashing again.&lt;/p&gt;
&lt;p&gt;We missed one &quot;tiny&quot; detail. Hoping that objects are &lt;em&gt;always&lt;/em&gt; deleted, and that the Garbage Collector works &lt;em&gt;immediately&lt;/em&gt;, is a ticking time bomb.&lt;/p&gt;
&lt;p&gt;In the case of giant C++ projects like Flude, the engine parsed dozens of modules sequentially. A new directory was created for each module. Because of a complex web of circular references in our parsers (e.g., an AST node referenced its parent class, and the class held a list of its children), the engine&apos;s objects weren&apos;t deleted immediately. They hung in memory, waiting for a full garbage collection cycle. And, of course, &lt;code&gt;_active_temp_dirs&lt;/code&gt; stayed in memory too.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;TemporaryDirectory&lt;/code&gt; objects piled up in RAM by the hundreds. But the worst part was this: when the GC finally got to them and called &lt;code&gt;cleanup()&lt;/code&gt;, it triggered a &lt;strong&gt;massive synchronous deletion of files from the disk&lt;/strong&gt;, blocking the main execution thread for several minutes. Because of this, other services on the server began failing due to timeouts.&lt;/p&gt;
&lt;h2&gt;The Real Fix&lt;/h2&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.flude.guide/images/the_leak_that_wont_die_part3.jpg&quot; alt=&quot;Context Manager containment&quot; /&gt;&lt;/p&gt;
&lt;p&gt;The conclusion of our investigation was grim: using finalizers to free heavy system resources is an anti-pattern. We couldn&apos;t control &lt;em&gt;when&lt;/em&gt; the GC would trigger, which meant we couldn&apos;t control the disk I/O load.&lt;/p&gt;
&lt;p&gt;we had to rewrite the pipeline&apos;s architecture so that the lifecycle of temporary folders was managed by strict &lt;code&gt;with&lt;/code&gt; context managers, not the GC.&lt;/p&gt;
&lt;p&gt;We introduced a strict rule: creating the folder and calling &lt;code&gt;cleanup()&lt;/code&gt; must happen in the same place. If any part of the engine needs these files, it accesses them inside a &lt;code&gt;with&lt;/code&gt; block, guaranteeing that upon exiting the block (even via an exception), the folder is deleted immediately.&lt;/p&gt;
&lt;p&gt;To protect against regressions, we also added a &quot;janitor&quot;—a mechanism that forcibly checks &lt;code&gt;/tmp&lt;/code&gt; before a build starts and cleans up any orphaned garbage.&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-python&quot;&gt;logger.warning(
    f&quot;Orphaned temporary directory found: {td.name}. &quot;
    &quot;Caller failed to invoke cleanup(). Force-cleaning now.&quot;
)
&lt;/code&gt;&lt;/pre&gt;
&lt;h2&gt;Conclusion&lt;/h2&gt;
&lt;p&gt;We learned a harsh lesson. Shifting the responsibility for system resources to Python&apos;s garbage collector is a direct path to disaster.&lt;/p&gt;
&lt;p&gt;But our victory over the garbage was just the beginning. While we were wrestling with Python, the real enemy was lurking in the very heart of our infrastructure. We thought we had tamed Doxygen, but it soon took its revenge, forcing us to rewrite the entire parser from scratch. How a simple C++ construct drove the documentation generator insane—read about it in the next episode.&lt;/p&gt;
&lt;hr /&gt;&lt;p&gt;&lt;strong&gt;Also read us:&lt;/strong&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;https://blog.flude.guide/&quot;&gt;Flude Blog&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://t.me/ude_blog_en&quot;&gt;Telegram channel&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://dev.to/flude_team&quot;&gt;Dev.to&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;</content:encoded><category>python</category><category>devops</category><category>memory-leak</category><category>garbage-collection</category><category>post-mortem</category><category>flude</category></item><item><title>The Illusion of Speed: A Two-Level Cache Can&apos;t Speed Up What Doxygen Can&apos;t Skip</title><link>https://blog.flude.guide/blog/illusion-of-speed-caching/</link><guid isPermaLink="true">https://blog.flude.guide/blog/illusion-of-speed-caching/</guid><description>Every rebuild used to run Doxygen and parse its XML from scratch, even when nothing had changed. Our two-level cache fixed that pain. But the title has a catch: the cache can&apos;t make things genuinely fast, because it only knows how to skip work that can be avoided altogether.</description><pubDate>Thu, 10 Sep 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;Every single full documentation rebuild ruthlessly executed &lt;code&gt;doxygen.exe&lt;/code&gt; and parsed its massive XML output. The tool simply didn&apos;t care if you fixed a single typo in the comments or rewrote half the SDK. On real projects this translated into minutes of agonizing waiting after every push, even though the vast majority of the work could have been safely skipped.&lt;/p&gt;
&lt;h2&gt;Two Fingerprints for Cache Control&lt;/h2&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.flude.guide/images/illusion_of_speed_caching.jpg&quot; alt=&quot;Two cache levels: XML and IR&quot; /&gt;&lt;/p&gt;
&lt;p&gt;We built the caching scheme around two independent fingerprints to strictly divide responsibilities. The &lt;code&gt;xml_fingerprint&lt;/code&gt; determines whether the Doxygen run can be skipped entirely. We compute it as a content hash spanning the binary, the effective &lt;code&gt;Doxyfile&lt;/code&gt;, and the source tree. Modification time checks were thrown out immediately to prevent fresh CI checkouts from falsely invalidating the cache. The &lt;code&gt;OUTPUT_DIRECTORY&lt;/code&gt; parameter also had to be excluded from the hash to avoid a circular dependency between the fingerprint and the generated files.&lt;/p&gt;
&lt;p&gt;The second fingerprint, &lt;code&gt;ir_fingerprint&lt;/code&gt;, decides the fate of parsing the generated XML into a &lt;code&gt;ProjectCatalog&lt;/code&gt; structure. It incorporates the first hash but adds parser configuration like &lt;code&gt;exclude_swig_internals&lt;/code&gt; and the logic hash. Any minor tweak to the parsing rules instantly invalidates the saved internal representation (IR). We managed to catch a potential state desync bug before writing any code thanks to a couple of independent AI review sessions.&lt;/p&gt;
&lt;h2&gt;Boundaries of Compute Optimization&lt;/h2&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.flude.guide/images/render_cache_invalidation.jpg&quot; alt=&quot;Cache invalidation risk&quot; /&gt;&lt;/p&gt;
&lt;p&gt;The compute time cache abruptly stops at the IR boundary. The actual transformation of the &lt;code&gt;ProjectCatalog&lt;/code&gt; object into final Markdown is calculated from scratch every time. Observant readers might spot a &lt;code&gt;BuildCacheManager&lt;/code&gt; class in &lt;code&gt;storage.py&lt;/code&gt; that handles a rendering cache. It operates purely on file I/O to protect local Hugo livereload from triggering falsely.&lt;/p&gt;
&lt;p&gt;We dropped the idea of caching the render computation for very pragmatic reasons. Rendering a single page is heavily tied to global state, such as the &lt;code&gt;sidebar.toml&lt;/code&gt; navigation tree and cross-links. Altering the taxonomy structure breaks the layout of dozens of files simultaneously, making invalidation tracking incredibly complex. Furthermore, Doxygen processing takes long minutes, while traversing the ready IR tree takes mere seconds.&lt;/p&gt;
&lt;h2&gt;Why the Speed Remains an Illusion&lt;/h2&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.flude.guide/images/monolithic_doxygen_rebuild.jpg&quot; alt=&quot;Monolithic rebuild&quot; /&gt;&lt;/p&gt;
&lt;p&gt;Our two-level cache only knows how to do one thing—completely skip a build step when fingerprints match. Doxygen physically lacks an incremental parsing mode and cannot run any faster. Any altered character in the sources forces us to endure a full parser run. True incrementality, where only the modified file gets recomputed, is fundamentally incompatible with a monolithic XML dump.&lt;/p&gt;
&lt;p&gt;In the architectural plans for the next major version we have already documented dropping Doxygen in favor of direct AST construction via &lt;code&gt;libclang&lt;/code&gt; or &lt;code&gt;tree-sitter&lt;/code&gt;—the choice between the two hasn&apos;t been made yet; the requirements treat them as equal candidates of the same technical direction. Incrementality becomes a natural property of the tool there, instead of something bolted on top with fingerprints—but that same shift will force us to throw away and rewrite the existing caching logic entirely. For now, we had to face the harsh limits of the free GitHub Actions cloud, which pushed us to build our own self-hosted runner. In the next episode we cover how we escaped to our own hardware.&lt;/p&gt;
&lt;hr /&gt;&lt;p&gt;&lt;strong&gt;Also read us:&lt;/strong&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;https://blog.flude.guide/&quot;&gt;Flude Blog&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://t.me/ude_blog_en&quot;&gt;Telegram channel&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://dev.to/flude_team&quot;&gt;Dev.to&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;</content:encoded><category>performance</category><category>caching</category><category>doxygen</category><category>flude</category></item><item><title>Flude.guide: The Name We Had to Find Between Udemy, a Debugger, and nude.com</title><link>https://blog.flude.guide/blog/flude-guide/</link><guid isPermaLink="true">https://blog.flude.guide/blog/flude-guide/</guid><description>The working title was blocked by a registered debugger trademark. We hunted down a short replacement containing the ude substring while simultaneously evaluating sound, SEO potential, and legal safety.</description><pubDate>Mon, 07 Sep 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;When the time finally arrived to launch this blog, an uncomfortable reality surfaced. The internal working title &quot;UDE&quot; was completely dead on arrival. We faced problems far beyond simple domain availability. Someone else already owned &lt;code&gt;ude.com&lt;/code&gt; and &lt;code&gt;ude.io&lt;/code&gt;, but the fatal blow came from trademark law. The abbreviation is already a registered ® trademark—Universal Debug Engine, a well-known microcontroller debugging tool from Germany&apos;s PLS. Launching another developer tool under the exact same name guarantees a swift cease-and-desist letter. We preferred shipping software over arguing with corporate lawyers.&lt;/p&gt;
&lt;h2&gt;Three filters running in parallel&lt;/h2&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.flude.guide/images/flude_guide_domain.jpg&quot; alt=&quot;Naming search: from UDE to Flude&quot; /&gt;&lt;/p&gt;
&lt;p&gt;We started hunting for a four- or five-letter replacement built around the &quot;ude&quot; substring. The evaluation process was brutal—and immediate. Sound, SEO potential, and legal safety were checked simultaneously. Any candidate could trip an alarm on any axis. One strike instantly eliminated the word from contention.&lt;/p&gt;
&lt;p&gt;Candidates like &quot;nude&quot;, &quot;dude&quot;, and &quot;jude&quot; crashed out on the sound check right away. Several variants barely registered as real English words. The archaic Scots term &quot;blude&quot; would confuse anyone outside of Edinburgh. Common words like &quot;nude&quot; or &quot;dude&quot; carry bizarre baggage that a strict technical reference manual desperately wants to avoid.&lt;/p&gt;
&lt;p&gt;The word &quot;Etude&quot; survived slightly longer. It sounds pleasant and bypasses direct trademark violations. The fatal flaw hides in its marketability. A massive global cosmetics brand already dominates search results for that term. Trying to build a presence under that banner means fighting through endless irrelevant noise. The original &quot;UDE&quot; title suffered from a similar chronic condition. Even ignoring the legal threat, the abbreviation looks far too much like the Udemy course platform.&lt;/p&gt;
&lt;p&gt;We eventually landed on &quot;Flude&quot;. It possessed no magical qualities or overwhelming strengths. It simply stood as the first candidate that survived all three filters without breaking apart.&lt;/p&gt;
&lt;h2&gt;Claiming the right zone&lt;/h2&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.flude.guide/images/tld_guide_choice.jpg&quot; alt=&quot;Choosing the TLD&quot; /&gt;&lt;/p&gt;
&lt;p&gt;With the name locked in, we needed a home on the internet. Premium extensions usually sit trapped in squatter portfolios. Buying a catchy short domain for thousands of dollars makes zero sense for a young project. We refused to negotiate with domain brokers.&lt;/p&gt;
&lt;p&gt;A quick search showed availability in the &lt;code&gt;.dev&lt;/code&gt; space at standard registrar pricing. It sounds reasonable, except that suffix heavily implies writing code and libraries. We needed a space dedicated to final technical documentation. The &lt;code&gt;.guide&lt;/code&gt; extension sat wide open, cost barely anything, and literally described our product. The choice made itself. We secured a flawless match between our brand name and its actual function.&lt;/p&gt;
&lt;h2&gt;Maturing alongside the infrastructure&lt;/h2&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.flude.guide/images/cloudflare_project_rename.jpg&quot; alt=&quot;Renaming Cloudflare Projects&quot; /&gt;&lt;/p&gt;
&lt;p&gt;We locked down the domain while the brand was still baking internally. The new identity eventually cemented itself deep inside our infrastructure. We purged the outdated &quot;ude-&quot; prefix from all Cloudflare Pages projects. A massive single-day rename swept through both the user documentation and the engine repository.&lt;/p&gt;
&lt;p&gt;Next time, we will dive into the illusion of speed. We will demonstrate why a clever two-layer cache of XML and syntax trees completely fails to accelerate a bottleneck baked deep inside Doxygen itself.&lt;/p&gt;
&lt;hr /&gt;&lt;p&gt;&lt;strong&gt;Also read us:&lt;/strong&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;https://blog.flude.guide/&quot;&gt;Flude Blog&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://t.me/ude_blog_en&quot;&gt;Telegram channel&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://dev.to/flude_team&quot;&gt;Dev.to&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;</content:encoded><category>branding</category><category>cloudflare</category><category>story</category><category>flude</category></item><item><title>Breaking Down Our Pipeline: From a Symlink Hack to Five Independent Deployments</title><link>https://blog.flude.guide/blog/decomposing-the-pipeline-monorepo/</link><guid isPermaLink="true">https://blog.flude.guide/blog/decomposing-the-pipeline-monorepo/</guid><description>How we untangled a five-project monorepo in one go, and the hard lesson a single Cloudflare token taught us.</description><pubDate>Thu, 03 Sep 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;Flude&apos;s documentation pipeline survived for years the same way most internal tooling does. It just worked. Nobody in their right mind wanted to touch it. The &lt;code&gt;engine&lt;/code&gt; package generated its API reference using a clunky symlink hack we mentioned in the &lt;a href=&quot;https://blog.flude.guide/en/blog/escaping-to-self-hosted-runners/&quot;&gt;escape-to-GitHub-Actions episode&lt;/a&gt;. Platform constraints forced our hand here. Free GitHub Pages limits site publishing to public repositories only. The engine&apos;s source code absolutely had to stay private. We bypassed this by running &lt;code&gt;ln -s ../engine ./user-docs/engine&lt;/code&gt; during the CI build. The public &lt;code&gt;user-docs&lt;/code&gt; repo quietly built a site out of someone else&apos;s code. Flude processed those files on the fly to push the final static result out the door.&lt;/p&gt;
&lt;p&gt;That duct-tape setup actually got the job done. It also created a concrete wall of architectural coupling. Publishing a single line of API documentation required the private engine to leak its source into a public neighbor. The &lt;code&gt;user-docs&lt;/code&gt; project got stuck carrying the weight of an external build process. We couldn&apos;t build or test the engine&apos;s docs in isolation. The entire toolchain only triggered from inside the documentation repo. Every single run pulled down megabytes of fresh code. The &lt;code&gt;design-docs&lt;/code&gt; project suffered from the exact same disease on a smaller scale. Its GitHub Pages deployment ran centrally out of the giant &lt;code&gt;Pipeline&lt;/code&gt; umbrella repo. It relied on an SSH deploy key to punch through into a completely different repository.&lt;/p&gt;
&lt;h2&gt;Finding a host that asks fewer questions&lt;/h2&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.flude.guide/images/decomposing_the_monorepo.jpg&quot; alt=&quot;Five repositories instead of one&quot; /&gt;&lt;/p&gt;
&lt;p&gt;We weighed two escape routes for the engine. One option involved shipping the parsed intermediate representation as a versioned artifact like a wheel or GitHub Release. Downstream projects could grab that package and render the docs locally. That sounds clean on paper. In reality, it introduces a nightmare of schema versioning we desperately wanted to avoid. The brute-force approach won out in the end. The engine now parses, renders, and deploys its own reference from its own CI pipeline. Zero intermediate contracts. Zero artifact publishing rituals.&lt;/p&gt;
&lt;p&gt;We still had to bypass the old GitHub Pages restriction. The platform demanded a public repo—so we ditched the platform. Cloudflare Pages offers a free tier that deploys finished build artifacts while completely ignoring repository visibility. The engine finally publishes its own reference while staying hidden from the world. The actual migration required nothing more than copying &lt;code&gt;Doxyfile&lt;/code&gt;, &lt;code&gt;hugo-site&lt;/code&gt;, and &lt;code&gt;sidebar.toml&lt;/code&gt; directly into the engine repository. The generated &lt;code&gt;content/&lt;/code&gt; and &lt;code&gt;public/&lt;/code&gt; directories went straight into &lt;code&gt;.gitignore&lt;/code&gt;. They no longer haunt our commit history as static fixtures.&lt;/p&gt;
&lt;p&gt;We rolled this exact logic down the rest of the chain. Both &lt;code&gt;design-docs&lt;/code&gt; and &lt;code&gt;user-docs&lt;/code&gt; migrated to Cloudflare Pages. Each project received a dedicated &lt;code&gt;deploy.yml&lt;/code&gt; workflow. GitHub Actions provides native read access to the runner&apos;s repository, making deploy keys obsolete. The old &lt;code&gt;cloudflare/pages-action@v1&lt;/code&gt; had already been archived by the community. We skipped the legacy tooling and moved all five repositories straight to the supported &lt;code&gt;wrangler-action&lt;/code&gt;.&lt;/p&gt;
&lt;h2&gt;One token to rule them all&lt;/h2&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.flude.guide/images/cloudflare_token_roll.jpg&quot; alt=&quot;Token Rotation&quot; /&gt;&lt;/p&gt;
&lt;p&gt;Our perfectly clean plan slammed into a brick wall of reality right about here. Every deployment requires a &lt;code&gt;CF_API_TOKEN&lt;/code&gt;. The textbook reaction is generating a narrowly scoped token with least privilege for each repository. Cloudflare violently disagrees with this approach. You cannot scope an API token to a single Pages project. They grant permissions across the entire account—or nothing at all. Any &quot;narrow&quot; token we issued would instantly gain full access to our entire infrastructure. Worse yet, Cloudflare displays the token value exactly once during creation. If you miss it, you have to roll the credential entirely.&lt;/p&gt;
&lt;p&gt;The rollout process turned into a timed sprint. We roll the token once. Then we distribute the new string across five repositories within a few frantic minutes. Everything happens through an interactive prompt. Secrets never touch a script, a file on disk, or a Slack message. Five independent repositories now share a single token—and a single rotation window.&lt;/p&gt;
&lt;h2&gt;Auditing the dead code&lt;/h2&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.flude.guide/images/ci_bill_audit.jpg&quot; alt=&quot;CI Bill Audit&quot; /&gt;&lt;/p&gt;
&lt;p&gt;Once the deployments turned green, we had to ask ourselves a tough question. How much of this machinery was actually doing anything useful? The audit unearthed a pile of historical garbage. A &lt;code&gt;repository_dispatch&lt;/code&gt; trigger from every submodule used to restart integration tests in the umbrella repo. It fired before the gitlink even bumped. The CI was aggressively testing a state that hadn&apos;t changed. We gutted that nonsense and replaced it with a simple six-hour schedule on the bump job itself. We lost absolutely nothing in speed because those PRs never auto-merged anyway.&lt;/p&gt;
&lt;p&gt;The language test matrix in the umbrella repo turned out to be a carbon copy of the engine&apos;s internal CI. The original version even enforced a stricter coverage threshold. A job designed to verify the built site was quietly testing an architecture that died months ago. It merged Hugo&apos;s output with a VitePress tree to check cross-links. We had long since split them into separate Cloudflare Pages projects on different domains. The only connection left is a standard external link. You never spot these ghosts reading a clean architecture diagram. They only surface when you dig through the raw runner logs.&lt;/p&gt;
&lt;h2&gt;Severing the final tie&lt;/h2&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.flude.guide/images/cut_last_thread.jpg&quot; alt=&quot;Cutting the Last Dependency&quot; /&gt;&lt;/p&gt;
&lt;p&gt;One tiny cross-repository hook remained. The failure-alert step in every workflow dynamically pulled a shared Telegram notifier from &lt;code&gt;Pipeline&lt;/code&gt; at runtime. That single step required another authentication token. A supposedly independent repository was still reaching back to daddy for help. We copy-pasted that action file into every single project. Maintaining five copies instead of one shared source is the real cost of independence.&lt;/p&gt;
&lt;p&gt;You are reading this blog on a site built with the exact same pattern. It uses self-deployment with zero external deploy keys. It runs its own copy of the notifier. It lives on that exact same Cloudflare architecture.&lt;/p&gt;
&lt;p&gt;Next time, we&apos;ll explain how we hunted down a public name for this documentation. The original working title turned out to be locked behind corporate lawyers, sending us down a rabbit hole of weird domain names.&lt;/p&gt;
&lt;hr /&gt;&lt;p&gt;&lt;strong&gt;Also read us:&lt;/strong&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;https://blog.flude.guide/&quot;&gt;Flude Blog&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://t.me/ude_blog_en&quot;&gt;Telegram channel&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://dev.to/flude_team&quot;&gt;Dev.to&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;</content:encoded><category>architecture</category><category>ci-cd</category><category>cloudflare</category><category>story</category><category>flude</category></item><item><title>The &apos;if not 0:&apos; Easter Egg: How Our AI Audit Found Dead Code in the Orchestrator</title><link>https://blog.flude.guide/blog/stale-conditional-easter-egg/</link><guid isPermaLink="true">https://blog.flude.guide/blog/stale-conditional-easter-egg/</guid><description>No production outages or late-night drama, just a funny and revealing discovery. We ran an autonomous AI audit on our core engine and found a condition that was always, guaranteed, true.</description><pubDate>Mon, 31 Aug 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;We keep exposing the internals of our project without embellishment. Recently, we launched an autonomous AI audit across the entire engine core. The agent was tasked with cleaning up type hints, fixing docstrings, and deleting dead code. Living humans rarely get around to this kind of mundane technical hygiene.&lt;/p&gt;
&lt;h2&gt;The Find&lt;/h2&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.flude.guide/images/stale_conditional_easter_egg.jpg&quot; alt=&quot;An Easter egg in the code&quot; /&gt;&lt;/p&gt;
&lt;p&gt;The agent systematically combed through the files and stumbled inside &lt;code&gt;ude/orchestrator.py&lt;/code&gt;. Inside the &lt;code&gt;load_sidebar_toml&lt;/code&gt; function, it unearthed a fascinating piece of logic. We stared at the screen and couldn&apos;t quite believe our eyes.&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-python&quot;&gt;toml_path = doc_dir / &quot;sidebar.toml&quot;
if not 0:
    if not toml_path.exists():
        raise UdeException(
            f&quot;Required sidebar.toml not found in {doc_dir}. &quot;
            &quot;Every document directory must contain a sidebar.toml file.&quot;
        )
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Zero in Python is interpreted as falsy. The expression &lt;code&gt;not 0&lt;/code&gt; always evaluates to true. The outer condition simply forced an extra indentation level and was guaranteed to execute every single time. It was a useless wrapper that stole a line in the stack trace from anyone trying to debug the application.&lt;/p&gt;
&lt;h2&gt;How It Got There&lt;/h2&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.flude.guide/images/git_blame_dead_code.jpg&quot; alt=&quot;Dead Code in Pull Request&quot; /&gt;&lt;/p&gt;
&lt;p&gt;A quick &lt;code&gt;git blame&lt;/code&gt; revealed the author and the creation time. The line sneaked in via PR #56 (&quot;Feature/section 2.1 orchestrator library api&quot;), part of a massive orchestrator refactoring. The developer temporarily disabled the block using &lt;code&gt;if 0:&lt;/code&gt; for a quick local debugging session. They flipped the logic back with a negation, committed the changes, and forgot to remove the wrapper before the merge. The test suite happily passed. The behavior of the code remained completely unchanged.&lt;/p&gt;
&lt;p&gt;This construct didn&apos;t break any functionality or open security vulnerabilities. It simply added pure cognitive noise. Everyone reading this file would freeze for a second, trying to decipher the sacred meaning behind the check. That extra second of confusion accumulates into hours of wasted time across thousands of lines of code.&lt;/p&gt;
&lt;h2&gt;The Fix&lt;/h2&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.flude.guide/images/clean_one_line_fix.jpg&quot; alt=&quot;A minimal fix with zero behavior change&quot; /&gt;&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-python&quot;&gt;toml_path = doc_dir / &quot;sidebar.toml&quot;
if not toml_path.exists():
    raise UdeException(
        f&quot;Required sidebar.toml not found in {doc_dir}. &quot;
        &quot;Every document directory must contain a sidebar.toml file.&quot;
    )
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;We deleted the wrapper and shifted the code to the left. The full test suite ran clean—731 passed, 0 failed, coverage holding at 98.12%. The system&apos;s behavior hasn&apos;t shifted a millimeter. Regular automated auditing pays off exactly through these tiny cleanups. It sweeps out harmless garbage in bulk while you focus on complex challenges. Speaking of complex challenges. Next time, we&apos;ll break down exactly how we sliced our massive pipeline monorepo into five fully independent deployments.&lt;/p&gt;
&lt;hr /&gt;&lt;p&gt;&lt;strong&gt;Also read us:&lt;/strong&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;https://blog.flude.guide/&quot;&gt;Flude Blog&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://t.me/ude_blog_en&quot;&gt;Telegram channel&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://dev.to/flude_team&quot;&gt;Dev.to&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;</content:encoded><category>post-mortem</category><category>ai-agents</category><category>code-quality</category><category>python</category><category>flude</category></item><item><title>Typed Models: How we stopped silently losing data</title><link>https://blog.flude.guide/blog/typed-entity-models/</link><guid isPermaLink="true">https://blog.flude.guide/blog/typed-entity-models/</guid><description>The old universal model stored data as shapeless strings, leading to silent information loss. We rewrote the core with strict types, replacing silent degradation with loud validation errors.</description><pubDate>Thu, 27 Aug 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;The first version of Flude&apos;s intermediate representation was built quick and dirty. We shoved classes, interfaces, enumerations, and variables into a single bottomless template. This universal model had a basic text field. It simply dictated what the object was pretending to be at any given moment.&lt;/p&gt;
&lt;h2&gt;The leak nobody knew about&lt;/h2&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.flude.guide/images/typed_entity_models.jpg&quot; alt=&quot;One class for all occasions&quot; /&gt;&lt;/p&gt;
&lt;p&gt;Class fields were stored as a flat list of strings. We lost types, documentation, and access specifiers, keeping only the bare variable names. The parsers honestly extracted all this rich information from the source code. Our supermodel grabbed the name and trashed the rest. There were no exceptions and absolutely zero warnings in the logs. The renderer downstream physically couldn&apos;t show the type in the documentation. It received a string and manipulated a string.&lt;/p&gt;
&lt;p&gt;Generation ran successfully, and files were created. Developers read the reference and tried to guess the data types. Silent degradation is the worst possible scenario when building developer tools. The system lies to your face, pretending everything is completely fine.&lt;/p&gt;
&lt;h2&gt;Strict models&lt;/h2&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.flude.guide/images/typed_entity_models_strict.jpg&quot; alt=&quot;Strict data architecture&quot; /&gt;&lt;/p&gt;
&lt;p&gt;We trashed the old code. Separate structures emerged for classes, methods, enumerations, and parameters. A class field became a fully typed object that guaranteed the presence of its name, specific type, and documentation. The transition hurt. Any legacy code that habitually accessed fields as text crashed immediately. The system finally started screaming about mismatches. We scrubbed out old string-based access patterns and rewrote the generation templates. In return, we got a solid guarantee: if the parser finds a complex type, it will absolutely make it to the final page intact.&lt;/p&gt;
&lt;p&gt;Typing kills an entire layer of silent bugs. Strict contracts force you to write predictable code and free up mental space since you stop memorizing custom formats. Speaking of cleaning up technical debt. In the next post, we&apos;ll show how our AI audit dug into the orchestrator code and found an absolute masterpiece—a stale &lt;code&gt;if not 0:&lt;/code&gt; condition left over from a local debugging session.&lt;/p&gt;
&lt;hr /&gt;&lt;p&gt;&lt;strong&gt;Also read us:&lt;/strong&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;https://blog.flude.guide/&quot;&gt;Flude Blog&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://t.me/ude_blog_en&quot;&gt;Telegram channel&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://dev.to/flude_team&quot;&gt;Dev.to&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;</content:encoded><category>architecture</category><category>pydantic</category><category>python</category><category>ai-agents</category><category>flude</category></item><item><title>Developer Guides: We didn&apos;t abandon the guides, just Flude—and then changed our minds</title><link>https://blog.flude.guide/blog/developer-guides-return/</link><guid isPermaLink="true">https://blog.flude.guide/blog/developer-guides-return/</guid><description>Dead cross-references between handwritten guides and auto-generated API pages quickly explained why managing guides away from Flude, as plain Markdown, was a mistake.</description><pubDate>Mon, 24 Aug 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;We promised to cover the integration of Developer Guides in the previous article. We changed our approach to building these guides twice. We initially moved them completely outside the Flude generator. Harsh reality eventually forced us to reconsider that decision.&lt;/p&gt;
&lt;h2&gt;The first attempt: monolithic HTML generator&lt;/h2&gt;
&lt;p&gt;A single clunky tool built both the API reference and the guides on the old HTML stack. The guides covered standard scenarios like quick starts and custom project development. They also included collections of articles detailing SDK-specific features. These topics relate to working with the platform as a whole and require dedicated text descriptions.&lt;/p&gt;
&lt;p&gt;We blindly carried this monolithic integration over into the first version of Flude. The old workflow seemed perfectly fine. The subject matter of the guides remained exactly the same, so nobody thought about decoupling the processes.&lt;/p&gt;
&lt;h2&gt;The second attempt: the illusion of plain Markdown&lt;/h2&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.flude.guide/images/developer_guides_return.jpg&quot; alt=&quot;Guides left on the side of the road&quot; /&gt;&lt;/p&gt;
&lt;p&gt;We decided to remove the guides from Flude&apos;s jurisdiction during the transition to a static site generator. The logic felt rock-solid. We wanted our parser to handle the complex API extraction. Handwritten guides are just standard Markdown text that the static generator can assemble on its own. The initial translation from HTML required minimal automation.&lt;/p&gt;
&lt;p&gt;The guides moved into a separate directory—the SSG picked them up directly without any preprocessing. Flude dropped out of this build step entirely. The separation looked great on paper since two independent content sources only met on the final page.&lt;/p&gt;
&lt;h2&gt;Returning to a unified process&lt;/h2&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.flude.guide/images/developer_guides_bridge.jpg&quot; alt=&quot;Broken links between systems&quot; /&gt;&lt;/p&gt;
&lt;p&gt;We eventually noticed a massive navigation problem. The guides knew absolutely nothing about the API reference pages. The reference had no idea the guides existed. Links to classes or methods led nowhere if the target page hadn&apos;t generated yet. They also died quietly when paths changed during a rebuild. Neither process could see the other to flag the broken connection.&lt;/p&gt;
&lt;p&gt;We brought Developer Guides back under Flude&apos;s control using a different approach. The engine no longer renders them directly. It now validates the file formatting and tracks the integrity of cross-references. The SSG still handles the final portal assembly. Flude integrates into this pipeline as a dedicated validation step. Both systems operate within a unified workflow that catches broken links before publication.&lt;/p&gt;
&lt;p&gt;Clean architectural separation often crashes against real-world requirements. Splitting systems apart inevitably requires building reliable bridges between them. The next article explores the Typed Models that helped us organize scattered data into a predictable structure.&lt;/p&gt;
&lt;hr /&gt;&lt;p&gt;&lt;strong&gt;Also read us:&lt;/strong&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;https://blog.flude.guide/&quot;&gt;Flude Blog&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://t.me/ude_blog_en&quot;&gt;Telegram channel&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://dev.to/flude_team&quot;&gt;Dev.to&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;</content:encoded><category>architecture</category><category>docs</category><category>ssg</category><category>story</category><category>flude</category></item><item><title>Regression Testing: Proving Your Code Doesn&apos;t Lose Data</title><link>https://blog.flude.guide/blog/regression-testing/</link><guid isPermaLink="true">https://blog.flude.guide/blog/regression-testing/</guid><description>Writing a fast documentation generator is fun. Legalizing it in a hardcore enterprise environment is another story. Here&apos;s how we proved Flude&apos;s reliability by putting it head-to-head with the old standard.</description><pubDate>Thu, 20 Aug 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;Building a working prototype for yourself is fairly easy. Pushing that rogue software into the official processes of a massive corporation is much harder. We finished developing the core logic and had to defend the project in front of management. People were used to the old generator. It spent hours building documentation while remaining predictable and providing strict control over code coverage.&lt;/p&gt;
&lt;h2&gt;The Wall of Distrust&lt;/h2&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.flude.guide/images/flude_vs_legacy_machine.jpg&quot; alt=&quot;Comparing architectures: the old combine vs the new engine&quot; /&gt;&lt;/p&gt;
&lt;p&gt;Our engine relied on a completely different architecture. We dreamed of writing our own lightweight parsers. Tight deadlines forced us to grab Doxygen instead. It runs slowly and barely caches anything, but it consistently produces stable XML. Our code ingests this format, processes it into a custom data model, and renders clean Markdown.&lt;/p&gt;
&lt;p&gt;Management looked at this layered setup with deep skepticism. They asked us directly for guarantees that the third-party parser wouldn&apos;t skip half the classes in our complex C++ codebase. Promises were useless. We needed hard numbers.&lt;/p&gt;
&lt;h2&gt;The Head-to-Head Collision&lt;/h2&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.flude.guide/images/dashboard_metrics_hologram.jpg&quot; alt=&quot;Dashboard with coverage metrics and match percentages&quot; /&gt;&lt;/p&gt;
&lt;p&gt;We wrote a regression testing script to directly compare the old corporate standard against our new Flude generator. We ran these tests across 36 combinations of SDKs and programming languages, including C++, C#, and Python.&lt;/p&gt;
&lt;p&gt;The approach involved extracting the exact count of classes, methods, and enumerations from the legacy documentation. We then cross-checked those numbers against the output of our engine. All the data flowed into a single dashboard. We monitored the baseline metrics, our findings, and the final match percentage. The dashboard also listed missing entities and accidentally included garbage.&lt;/p&gt;
&lt;h2&gt;Battling the Discrepancies&lt;/h2&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.flude.guide/images/code_junk_filter.jpg&quot; alt=&quot;Scrubbing utility junk from the code&quot; /&gt;&lt;/p&gt;
&lt;p&gt;The initial runs produced tons of inconsistencies. Doxygen choked on complex C++ template constructs and generated empty files instead of actual code. Internal autogenerator classes leaked out in the C# and Python wrappers—classes which the old tool had silently hidden.&lt;/p&gt;
&lt;p&gt;We started the tedious grind of writing on-the-fly preprocessors. We stripped out problematic code blocks before parsing even started. We invented merge rules for anonymous enumerations and scrubbed utility trails. Every tweak plugged another hole in the metrics. We methodically adjusted the results until the match percentage reached 99.9-100% across all 36 combinations.&lt;/p&gt;
&lt;p&gt;The final numbers proved that the Flude and Doxygen combination found the exact same tens of thousands of entities as the old standard. Nobody gave us the green light immediately. We simply validated the concept for ourselves. Our documentation includes detailed Developer Guides alongside the API references. The next article covers how we integrated those guides into the new generator.&lt;/p&gt;
&lt;hr /&gt;&lt;p&gt;&lt;strong&gt;Also read us:&lt;/strong&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;https://blog.flude.guide/&quot;&gt;Flude Blog&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://t.me/ude_blog_en&quot;&gt;Telegram channel&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://dev.to/flude_team&quot;&gt;Dev.to&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;</content:encoded><category>testing</category><category>enterprise</category><category>story</category><category>flude</category></item><item><title>Guerrilla DevOps: How We Escaped to GitHub Actions</title><link>https://blog.flude.guide/blog/devops-on-github/</link><guid isPermaLink="true">https://blog.flude.guide/blog/devops-on-github/</guid><description>Corporate infrastructure, colleagues on vacation, and slow tools forced us to build an independent CI/CD pipeline. Here&apos;s how AI helped me master YAML in a few evenings.</description><pubDate>Mon, 17 Aug 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;In large companies, processes eventually take on a life of their own and start calling the shots. For us, the stumbling block was documentation publishing. Previously, technical writers would spend the entire month agonizingly collecting edits, only to push a single manual release out the door. That routine drove me up the wall. I wanted a proper CI/CD setup where everything builds itself after every push. But simply wanting it wasn&apos;t enough—I had to clearly prove to my colleagues that automation actually works in practice.&lt;/p&gt;
&lt;p&gt;Transitioning to Static Site Generators (SSGs) required a Markdown parser. Our old internal tool could only spit out XML. Worse, on large codebases, it would grind to a complete halt for hours. Fortunately, while suffering through that, we had already put together a working &lt;code&gt;Python ➡️ HTML&lt;/code&gt; pipeline (which I talked about in the previous part). All we had to do was hack it into &lt;code&gt;Python ➡️ Markdown&lt;/code&gt; and start generating documentation for Flude itself. After all, the engine was also written in Python.&lt;/p&gt;
&lt;p&gt;Next, infrastructure became the bottleneck. And that&apos;s when the corporate gears started grinding. Our Infrastructure Lead (the very guy who pitched the SSG idea) was buried under a mountain of tasks and then went on vacation. Sit and wait for his return just to fight for resources on the internal server? That meant putting the project on ice for at least a couple of months. So, I decided to go rogue.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.flude.guide/images/corporate_gears.jpg&quot; alt=&quot;Corporate Gears&quot; /&gt;&lt;/p&gt;
&lt;h2&gt;The Escape Plan&lt;/h2&gt;
&lt;p&gt;If the internal network is off-limits, we take the experiment outside. GitHub fit the bill perfectly. I hid the engine&apos;s source code and the requirements list in private repositories. But the User Docs and the API Reference portals were quietly deployed in the cloud. At the end of the day, this was the open-source Flude. We weren&apos;t exposing a single line of proprietary corporate code.&lt;/p&gt;
&lt;p&gt;Since we were building the project from scratch and for ourselves, we decided to experiment a bit. We picked completely different SSG frameworks for different portals. This complicated things slightly, but it was a great way to cut our teeth on configuring a diverse tech stack.&lt;/p&gt;
&lt;p&gt;The pipeline architecture turned out exceptionally elegant. The User Docs portal automatically pulled fresh code from the closed repository. Then Flude woke up and parsed the source into Markdown on the fly. The SSG picked up the ready markup, built a static site out of it, and immediately pushed it to hosting (GitHub can serve HTML pages from public repos for free).&lt;/p&gt;
&lt;h2&gt;The Blind Architect&lt;/h2&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.flude.guide/images/ai_yaml_architect.jpg&quot; alt=&quot;The Blind Architect&quot; /&gt;&lt;/p&gt;
&lt;p&gt;In theory, I understood the mechanics of CI/CD perfectly. The problem was purely practical: I didn&apos;t know the first thing about YAML syntax and had never configured GitHub Actions in my life. Just like when I started with Python, I was flying blind as an architect once again.&lt;/p&gt;
&lt;p&gt;My AI teammate took over all the grunt work. I just described in plain English what should happen at each step. In return, the neural network spit out ready-made files for the &lt;code&gt;.github/workflows&lt;/code&gt; folder. Sometimes it even slapped my wrist and forced me to implement best practices (like setting up dependency caching or splitting monolithic tasks into separate jobs). We pushed configs, stared at the red logs of failed builds, swore, fixed bugs, and ran it all over again.&lt;/p&gt;
&lt;h2&gt;The Moment of Truth&lt;/h2&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.flude.guide/images/green_checkmark.jpg&quot; alt=&quot;Green Checkmark&quot; /&gt;&lt;/p&gt;
&lt;p&gt;After a few evenings of non-stop tinkering, I made another push. GitHub Actions kicked into gear. The repository downloaded. Dependencies installed. Flude ran through the code, spitting out Markdown. The SSG instantly compiled the HTML. Deployment passed.&lt;/p&gt;
&lt;p&gt;A green checkmark finally lit up on the screen. I clicked the site&apos;s URL and saw fresh documentation. It had updated itself, completely without my involvement.&lt;/p&gt;
&lt;p&gt;At that moment, I screamed &quot;Yes! Yes! Yes! It works!&quot; so loudly that I scared my family, the budgies, and a couple of neighbors. It&apos;s an amazing feeling. Your concept just came to life right on the monitor. A routine monthly release just shrank down to a two-minute automated process.&lt;/p&gt;
&lt;p&gt;We elegantly bypassed the corporate infrastructure, and the guerrilla pipeline was running like a well-oiled machine. But the final boss was looming ahead—legalizing the tool inside the company. We had to prove to the security department and management that our homegrown generator was just as good as the old standard. How do you run regression testing on closed data and make management believe in our parser? We&apos;ll cover that in the next episode.&lt;/p&gt;
&lt;hr /&gt;&lt;p&gt;&lt;strong&gt;Also read us:&lt;/strong&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;https://blog.flude.guide/&quot;&gt;Flude Blog&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://t.me/ude_blog_en&quot;&gt;Telegram channel&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://dev.to/flude_team&quot;&gt;Dev.to&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;</content:encoded><category>devops</category><category>github-actions</category><category>story</category><category>flude</category></item><item><title>The Markdown Singularity: Why Generating HTML is a Dead End</title><link>https://blog.flude.guide/blog/the-markdown-singularity/</link><guid isPermaLink="true">https://blog.flude.guide/blog/the-markdown-singularity/</guid><description>How a single question from our Infrastructure Lead forced us to rewrite our documentation pipeline, abandon HTML, and accidentally create Flude.</description><pubDate>Thu, 13 Aug 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;At the end of the previous part, we were sitting on a perfectly working, fully tested pipeline. Our converter successfully chewed through Doxygen XML and generated custom HTML pages for our API documentation. The team was already getting ready to pop the champagne and push everything to production when the Infrastructure Lead walked over. He asked one simple, yet absolutely devastating question: &quot;Why are you still messing around with HTML generation when off-the-shelf tools like Hugo, Docusaurus, or VitePress exist?&quot;&lt;/p&gt;
&lt;h2&gt;The Pure HTML Trap&lt;/h2&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.flude.guide/images/html_ssg_transition.jpg&quot; alt=&quot;HTML Trap&quot; /&gt;&lt;/p&gt;
&lt;p&gt;It took us exactly a minute to realize the sheer scale of our mistake. Generating pure HTML sounds great right up until you try to build a modern developer portal around it. It turned out we were about to reinvent the wheel for practically every standard web feature. Global search would require writing our own indexer. For navigation, we&apos;d have to manually maintain a consistent sidebar across hundreds of generated pages, and synchronizing our styles with the corporate CSS threatened to turn into an endless chore. Instead of a documentation system, we had somehow started writing our own web framework.&lt;/p&gt;
&lt;h2&gt;The SSG Awakening&lt;/h2&gt;
&lt;p&gt;Static Site Generators (SSGs) like Hugo or Docusaurus solve all these problems out of the box. They come with built-in search, routing, and plugin systems. The only catch was that they strictly eat Markdown as input. We had to make a sharp pivot and re-engineer our pipeline from &lt;code&gt;Doxygen XML ➡️ HTML&lt;/code&gt; to &lt;code&gt;Doxygen XML ➡️ Markdown&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Rewriting the output layer was surprisingly painless. Even during the HTML generation phase, we had strictly separated the parsing and rendering logic, introducing an intermediate data layer we called the Intermediate Representation (or simply IR). This guaranteed the parser&apos;s stability while we ripped out the HTML generator and bolted on Markdown instead. And the practice of TDD definitely played its part—thanks to our tests, the Markdown generator was written quickly and confidently. As we worked on the new exporter, the puzzle pieces suddenly clicked together.&lt;/p&gt;
&lt;h2&gt;The Engine Singularity&lt;/h2&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.flude.guide/images/flude_architecture.jpg&quot; alt=&quot;Flude Architecture&quot; /&gt;&lt;/p&gt;
&lt;p&gt;Our architecture now consisted of two isolated phases. First, the Parser reads the source code and builds an abstract tree (that same IR), and then the Renderer takes the finished tree and translates it into Markdown. That’s when it hit us: the renderer absolutely does not care where this data came from.&lt;/p&gt;
&lt;p&gt;We recalled the situation from the second article, when the AI tried to throw out Doxygen and started parsing the Python code directly via &lt;code&gt;tree-sitter&lt;/code&gt;. Back then, we panicked about losing control and rolled back to parsing XML (even though the AI offered a working solution). Now, with a strict TDD contract and the intermediate IR layer in place, there was nothing to fear. We could safely ditch Doxygen and pull data directly from the source code.&lt;/p&gt;
&lt;p&gt;Using an IR also came with the bonus of caching and faster generation times. If we fully build the tree in memory on the first run, there is no reason to rebuild it entirely on the next pass. We can simply use incremental parsing and update only the chunks that actually changed. And if we can read Python directly, nothing stops us from reading our main C++ SDK and our other languages. Or maybe even—dare I say it—languages that aren&apos;t ours.&lt;/p&gt;
&lt;p&gt;This was the exact moment our highly specialized script mutated into a full-fledged Universal Documentation Engine (UDE). We did have to lengthen the name a bit due to an existing trademark for a German debugger called Universal Debug Engine. We tacked on the characteristics Fast and Layered, and thus Flude was born. Now we can plug any parser into the frontend, and the pipeline&apos;s backend will assemble beautiful Markdown for our SSG (complete with unified search and a proper design).&lt;/p&gt;
&lt;h2&gt;From a Local Task to a Massive Project&lt;/h2&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.flude.guide/images/local_to_global.jpg&quot; alt=&quot;Scaling&quot; /&gt;&lt;/p&gt;
&lt;p&gt;A tiny local utility for a couple of Python modules suddenly gave us the chance to design a scalable architecture from scratch. Building a product like this meant we could no longer rely on manual builds or running scripts locally on our laptops. We needed a fully automated CI/CD process.&lt;/p&gt;
&lt;p&gt;I didn&apos;t have to figure this out by myself—my AI teammate took on the lion&apos;s share of the setup work. In the next episode, I&apos;ll explain why we decided to build our pipelines specifically on GitHub Actions.&lt;/p&gt;
&lt;hr /&gt;&lt;p&gt;&lt;strong&gt;Also read us:&lt;/strong&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;https://blog.flude.guide/&quot;&gt;Flude Blog&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://t.me/ude_blog_en&quot;&gt;Telegram channel&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://dev.to/flude_team&quot;&gt;Dev.to&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;</content:encoded><category>story</category><category>architecture</category><category>ssg</category><category>flude</category></item><item><title>TDD as a Leash for AI: Writing Tests Without Knowing the Language</title><link>https://blog.flude.guide/blog/tdd-as-a-leash/</link><guid isPermaLink="true">https://blog.flude.guide/blog/tdd-as-a-leash/</guid><description>Why it&apos;s easier to rewrite AI code from scratch, how tests became our contract, and how to force the neural network to write its own checks.</description><pubDate>Mon, 10 Aug 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;At the end of the previous article, our project hit a dead end. The neural network had quietly plugged in the abstract syntax tree parser &lt;code&gt;tree-sitter&lt;/code&gt;, turning the codebase into an absolutely unreadable &quot;black box&quot; for me.&lt;/p&gt;
&lt;p&gt;We tried to force it to roll back the changes, but bugs started crawling through the generated code. Dependencies broke, and the script stopped running. Assessing the scale of the disaster, I came to a simple but harsh conclusion: &lt;strong&gt;it is much easier to write everything from scratch than to try to fix the AI&apos;s architectural glitches, especially given my complete lack of Python knowledge&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;So our second prototype went into the trash can. We needed a new approach that wouldn&apos;t allow the neural network to act on its own. This tight leash became an uncompromising combination: a detailed formulation of requirements and total automated testing.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.flude.guide/images/ai_strict_contract_1785827008870.jpg&quot; alt=&quot;Contract with AI&quot; /&gt;&lt;/p&gt;
&lt;h2&gt;The New Contract with AI&lt;/h2&gt;
&lt;p&gt;The problem with previous iterations was that we set tasks like &quot;parse this file and make it pretty&quot;. This gave the AI too much freedom.&lt;/p&gt;
&lt;p&gt;To bring the architecture under control, we completely changed our workflow. Before writing a single line of code, we now established a strict &quot;contract&quot; with the neural network. Here is how it looked: first, we fixed strict requirements detailing permitted and forbidden libraries. Then, the AI generated a step-by-step plan for my approval. And most importantly, not a single function was written without a pre-created automated test.&lt;/p&gt;
&lt;h2&gt;How to Write Tests If You Can&apos;t Code?&lt;/h2&gt;
&lt;p&gt;A logical question arises here: how can a system architect who has never written a single line of Python in his life implement Test-Driven Development (TDD)? The answer is simple — the AI writes the tests too.&lt;/p&gt;
&lt;p&gt;I didn&apos;t need to invent complex verification logic. I would take the original XML generated by Doxygen and find the required fragment there (for example, the description of a single class). Then I would take the beautiful, formatted HTML code that was supposed to be the final output (the exact one developers were used to in the old system).&lt;/p&gt;
&lt;p&gt;I would feed both pieces into the chat and set the task: &lt;em&gt;&quot;Here is the input XML. Here is the final HTML that should be output. Write a test that takes this XML, runs it through our parser, and verifies that the output strings match this HTML character by character&quot;&lt;/em&gt;.&lt;/p&gt;
&lt;p&gt;The neural network obediently wrote the test using &lt;code&gt;pytest&lt;/code&gt;. Naturally, upon the first run, it failed with an error (since the parser itself didn&apos;t exist yet).&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.flude.guide/images/tdd_cycle_1785827017164.jpg&quot; alt=&quot;TDD Cycle&quot; /&gt;&lt;/p&gt;
&lt;h2&gt;Red. Green. Refactor&lt;/h2&gt;
&lt;p&gt;We took the classic TDD cycle and adapted it slightly for working with AI. When the test failed (&lt;strong&gt;Red&lt;/strong&gt;), the neural network caught the error in the console itself and immediately started debugging. Then came the &lt;strong&gt;Green&lt;/strong&gt; stage: the AI silently fixed the code, re-ran the check, and the test passed. We got a working piece of code doing exactly what was requested. Finally, if the neural network suddenly decided that the algorithm wasn&apos;t elegant enough and tried to rewrite it using regular expressions (&lt;strong&gt;Refactor&lt;/strong&gt;), I no longer panicked. We simply ran the tests again. If they were green — let it optimize as much as it wants, but at the slightest hint of red, we immediately rolled back the changes.&lt;/p&gt;
&lt;h2&gt;The Magic of Isolation&lt;/h2&gt;
&lt;p&gt;This approach worked flawlessly. The AI found itself strictly limited by our requirements and tests. It could no longer hallucinate non-existent parameters or quietly change the architecture, because any misstep caused the tests comparing the output HTML with the reference to fail.&lt;/p&gt;
&lt;p&gt;Development proceeded incredibly fast. We covered all scenarios with tests (classes, methods, enumerations, parameters). The AI wrote the code, ran the checks itself, and we steadily moved on. In the end, we had a perfectly working engine in our hands that took bulky XML from Doxygen and flawlessly turned it into stunningly beautiful HTML pages. The project could be safely deployed to production, if not for one overlooked detail.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.flude.guide/images/ssg_markdown_surprise_1785827026941.jpg&quot; alt=&quot;Infrastructure Surprise&quot; /&gt;&lt;/p&gt;
&lt;p&gt;The next day, the Infrastructure Lead came to us and was genuinely surprised: &quot;Why are you still fussing around with HTML when there are SSGs, from the beautiful Docusaurus to the super-powerful Hugo?&quot;.&lt;/p&gt;
&lt;p&gt;I will talk about how this single sentence forced us to rebuild half the project all over again in the next part.&lt;/p&gt;
&lt;hr /&gt;&lt;p&gt;&lt;strong&gt;Also read us:&lt;/strong&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;https://blog.flude.guide/&quot;&gt;Flude Blog&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://t.me/ude_blog_en&quot;&gt;Telegram channel&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://dev.to/flude_team&quot;&gt;Dev.to&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;</content:encoded><category>story</category><category>architecture</category><category>tdd</category><category>ai</category></item><item><title>Programming Without Knowing the Language: How AI Fired Doxygen</title><link>https://blog.flude.guide/blog/ai-gone-rogue/</link><guid isPermaLink="true">https://blog.flude.guide/blog/ai-gone-rogue/</guid><description>How we tried to parse XML, why AI suddenly pulled in tree-sitter, and why control is more important than genius code.</description><pubDate>Thu, 06 Aug 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;In the last part, we left off after throwing Doxygen&apos;s HTML output straight into the trash can. The plan to &quot;quickly tweak the styles&quot; completely failed because it is impossible to adapt a structure of nested tables straight out of the nineties to modern design. The idea for our second prototype sounded solid: disable HTML generation entirely, grab the raw structured XML from Doxygen, and write a proper parser for it.&lt;/p&gt;
&lt;p&gt;For our working language, just like last time, we chose Python. It is perfect for building utilities, text processing, and automating routine tasks. Besides, the entire modern ecosystem around artificial intelligence is built on it. The logic was simple: if we want to actively use neural networks to help us write code, we might as well write in the language they know best.&lt;/p&gt;
&lt;p&gt;It&apos;s time to reveal a little secret I intentionally left out of the first part: I don&apos;t know Python. I more or less understand someone else&apos;s code, but I have never written anything in it myself.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.flude.guide/images/xml_python_mess_1785770351765.jpg&quot; alt=&quot;XML and Python&quot; /&gt;&lt;/p&gt;
&lt;h2&gt;An Architect Who Cannot Code&lt;/h2&gt;
&lt;p&gt;This was a pure experiment in &quot;programming without knowing the language&quot;. I decided to act as the system architect and task manager. The AI was supposed to do all the technical work: write the actual code, refactor functions, and put everything together.&lt;/p&gt;
&lt;p&gt;At first, things went suspiciously smoothly. We were drafting the logic to parse giant XML files. I would open the generated Doxygen file, see the nodes, classes, and method parameters in there, and just type into the chat: &quot;Find all elements with the right tags, extract the type, name, and description, and then dump it into a JSON.&quot; Thanks to the AI&apos;s direct access to the terminal, I didn&apos;t even have to copy the code by hand. The neural network wrote the scripts itself, ran them immediately, and provided the final result.&lt;/p&gt;
&lt;p&gt;The file filled up with functions, the script grew. I felt like we were building a great system. I didn&apos;t even read the code — why bother when I can already see the documentation assembling better and better? This continued until one conversation completely changed the course of development.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.flude.guide/images/ai_manager_coding_1785770359271.jpg&quot; alt=&quot;AI writes code&quot; /&gt;&lt;/p&gt;
&lt;h2&gt;When AI Suddenly Asked for a Compiler&lt;/h2&gt;
&lt;p&gt;At one point, we were discussing the portability of our engine (we had already started calling it UDE) to other platforms. I wanted to make sure the parser would run for any developer on any operating system without complex additional setup.&lt;/p&gt;
&lt;p&gt;The AI gave a casual response:
&lt;em&gt;&quot;Sure, there shouldn&apos;t be any problems. Just for full portability, we&apos;ll need to configure the download of clang during the package installation.&quot;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;I stared at the monitor in utter confusion. What &lt;code&gt;clang&lt;/code&gt;? We are parsing XML documentation for a Python wrapper. What does a C compiler have to do with this? I flat out asked the neural network if it had lost its mind.&lt;/p&gt;
&lt;p&gt;The AI immediately apologized and gave a new phrasing:
&lt;em&gt;&quot;I apologize, I meant the tree-sitter library. We will need to compile its bindings.&quot;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.flude.guide/images/ai_tree_sitter_1785770368693.jpg&quot; alt=&quot;Tree-sitter and AST&quot; /&gt;&lt;/p&gt;
&lt;h2&gt;The Insight of Losing Control&lt;/h2&gt;
&lt;p&gt;And then it hit me: the AI was no longer parsing Doxygen&apos;s XML. It had gotten tired of it.&lt;/p&gt;
&lt;p&gt;During our long architectural discussions, the neural network quietly plugged in an Abstract Syntax Tree (AST) parser without telling me. The AI decided on its own that reading the original C++ and Python source code directly via &lt;code&gt;tree-sitter&lt;/code&gt; was much more reliable than messing with the hacky XML output of a third-party utility. It simply excluded Doxygen from the loop while I thought we were still parsing tags.&lt;/p&gt;
&lt;p&gt;Was the code it wrote any good? I have no idea, because I completely lack the ability to write Python and evaluate architectural decisions. The algorithm might have turned out to be stunningly optimized and elegant, or it could be an unstable pile of hacks functioning purely by a lucky coincidence.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.flude.guide/images/black_box_danger_1785770378035.jpg&quot; alt=&quot;The code black box&quot; /&gt;&lt;/p&gt;
&lt;p&gt;The problem was an absolute loss of control. If the AI quietly changes the architecture in the background and pulls in heavy parsing libraries while you can&apos;t even read its code — the project is doomed. It becomes a classic &quot;black box&quot;. Any minor bug will force you to spend hours interrogating the neural network for the causes of the failure. The same goes for atypical comments in the source files.&lt;/p&gt;
&lt;p&gt;This incident gave us a crucial breakthrough. We realized that AI is genuinely capable of writing its own direct parsers for any programming language, extracting class structures and parameters straight from live code. We no longer need third-party utilities.&lt;/p&gt;
&lt;p&gt;However, for such generated code to run stably, it needs to be strictly controlled. We needed a rigorous set of automated checks. A system that would guarantee the parser&apos;s functionality regardless of whether I understand the written code or not.&lt;/p&gt;
&lt;p&gt;So we threw our second, perfectly working prototype into the trash. And we started over, for the third time. But this time under entirely different rules — with testing at every single step. I will talk about this in the next part.&lt;/p&gt;
&lt;hr /&gt;&lt;p&gt;&lt;strong&gt;Also read us:&lt;/strong&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;https://blog.flude.guide/&quot;&gt;Flude Blog&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://t.me/ude_blog_en&quot;&gt;Telegram channel&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://dev.to/flude_team&quot;&gt;Dev.to&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;</content:encoded><category>story</category><category>architecture</category><category>ai</category></item><item><title>How Not to Build Documentation: The Tale of an HTML Parser</title><link>https://blog.flude.guide/blog/how-not-to-build-docs/</link><guid isPermaLink="true">https://blog.flude.guide/blog/how-not-to-build-docs/</guid><description>How we tried to outsmart Doxygen, adapt its markup to our standards, and why it led us to build our own engine.</description><pubDate>Mon, 03 Aug 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;We sat down to write our own documentation engine purely out of desperation. Originally, no one planned to develop the massive Universal Documentation Engine (UDE). We had a simple, utilitarian task — to document a fresh Python wrapper. As usual, the most monstrous workarounds always start with a harmless script of a few lines.&lt;/p&gt;
&lt;h2&gt;The Sudden Python&lt;/h2&gt;
&lt;p&gt;Our core SDK is written in C++. To make it accessible from other languages, wrappers are created. It was finally Python&apos;s turn. The developers delivered the finished API, which now needed to be published on the documentation portal.&lt;/p&gt;
&lt;p&gt;We had been relying on Doc-o-Matic for years. It was an old, heavy, battle-tested generator. There was just one problem: it completely refused to understand Python code. The software hadn&apos;t been updated for years, tech support was long dead, so hoping for a patch was out of the question. We have strict corporate requirements for the portal&apos;s design. None of the standard generators met them, and documenting the code was an absolute necessity.&lt;/p&gt;
&lt;p&gt;We looked into Doxygen. The utility can extract structure from virtually anything. The catch is that its default HTML output looks like a greeting from the nineties. That&apos;s when a brilliant idea struck us.&lt;/p&gt;
&lt;h2&gt;&quot;Let&apos;s Just Tweak the Styles a Bit&quot;&lt;/h2&gt;
&lt;p&gt;&lt;em&gt;&quot;Doxygen generates ready-made pages. Let&apos;s just unleash a script on it, swap out a couple of CSS classes, and everything will be done in a few days.&quot;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.flude.guide/images/html_parsing_nightmare.jpg&quot; alt=&quot;HTML Parsing Chaos&quot; /&gt;&lt;/p&gt;
&lt;p&gt;It turned out we had catastrophically underestimated the scale of the problem. The plan was simple: intercept the output, inject it into our structure, and go drink coffee. But the deeper we dug into the generated DOM, the worse it got. Doxygen absolutely ignored modern layout practices (instead of clean tags, we were shoveling through piles of tables and inline styles).&lt;/p&gt;
&lt;p&gt;It was too late to retreat. The prototype was needed yesterday, so we had to grit our teeth and finish the script. It gradually became overgrown with dozens of regular expressions, becoming increasingly fragile.&lt;/p&gt;
&lt;h2&gt;The Sidebar and JS Necromancy&lt;/h2&gt;
&lt;p&gt;The wildest part began at the navigation stage. We have a strict UI rule in the company: absolutely all pages must sit in the left sidebar (so the developer sees the whole picture). Doxygen doesn&apos;t agree with this approach. It builds the menu dynamically from deeply nested arrays smeared across several generated JavaScript files.&lt;/p&gt;
&lt;p&gt;AI and I had to physically read these JS files as plain text. We parsed the arrays, extracted the class hierarchy from them, and manually rebuilt the HTML tree of the page. This was starting to feel like digital necromancy.&lt;/p&gt;
&lt;h2&gt;Measure Twice, Parse Once&lt;/h2&gt;
&lt;p&gt;The prototype eventually fired up. On the outside, everything looked decent and up to standards. But on the inside, our script was a house of cards held together by duct tape. A minor Doxygen update comes out — and the entire portal falls apart with errors.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.flude.guide/images/blueprint_planning.jpg&quot; alt=&quot;Think First, Then Do&quot; /&gt;&lt;/p&gt;
&lt;p&gt;We wasted a ton of time trying to cut a corner. Instead, we could have calmly designed and implemented a proper architecture. We should have immediately extracted the abstract syntax tree, or at least just parsed the clean XML from Doxygen.&lt;/p&gt;
&lt;p&gt;It became obvious: we needed our own independent engine. We hooked up the AI again so it could quickly throw together a proper parser to read Doxygen&apos;s XML. But everything went wrong there too. I&apos;ll tell you what happens when you leave an AI unsupervised in the next part.&lt;/p&gt;
&lt;hr /&gt;&lt;p&gt;&lt;strong&gt;Also read us:&lt;/strong&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;https://blog.flude.guide/&quot;&gt;Flude Blog&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://t.me/ude_blog_en&quot;&gt;Telegram channel&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://dev.to/flude_team&quot;&gt;Dev.to&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;</content:encoded><category>story</category><category>architecture</category></item><item><title>Flude: From Source Code to Quality Documentation</title><link>https://blog.flude.guide/blog/ude-source-to-docs/</link><guid isPermaLink="true">https://blog.flude.guide/blog/ude-source-to-docs/</guid><description>Why stacks like Doxygen+DoxyBook2+Hugo fall short on large projects, and how Flude solves the problem.</description><pubDate>Wed, 22 Jul 2026 00:00:00 GMT</pubDate><content:encoded>&lt;h2&gt;1. The Starting Point: Source Code and Comments&lt;/h2&gt;
&lt;p&gt;The foundation of any quality API documentation is the comments in the source code. In large projects (C++, for example), they are the single source of truth. Without them, automatic documentation generation simply isn&apos;t possible.&lt;/p&gt;
&lt;p&gt;The only question is how to turn those comments into a modern, convenient, fast site for developers.&lt;/p&gt;
&lt;h2&gt;2. How This Is Solved Today -- and Where the System Breaks&lt;/h2&gt;
&lt;p&gt;The most popular tool for C++ is &lt;strong&gt;Doxygen&lt;/strong&gt;. However, its native output format (HTML or XML) doesn&apos;t fit modern static site generators (SSGs) like Hugo, Docusaurus, or VitePress, which expect Markdown as input.&lt;/p&gt;
&lt;h3&gt;The Doxygen + DoxyBook2 + Hugo Stack&lt;/h3&gt;
&lt;p&gt;To work around this limitation, intermediate converters are often used: Doxygen generates XML → DoxyBook2 converts the XML to Markdown → Hugo builds the site.&lt;/p&gt;
&lt;p&gt;This works, but it has serious limitations:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;No scalability.&lt;/strong&gt; The converter reads the entire XML graph into memory at once. At the scale of an SDK with tens of thousands of classes and methods, this process runs into memory limits and unreasonably long processing times.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Hard to customize.&lt;/strong&gt; Configuring the output for several styling formats at once is a difficult task, since these tools weren&apos;t designed for high flexibility.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;3. Flude&apos;s Solution: A Unified Pipeline&lt;/h2&gt;
&lt;p&gt;Flude fully rebuilds the process, removing unnecessary conversion stages and optimizing how data is handled.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.flude.guide/images/cpp_to_docs_pipeline.jpg&quot; alt=&quot;Flude Pipeline&quot; /&gt;&lt;/p&gt;
&lt;p&gt;Flude&apos;s architecture is built on a clear separation of stages:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Collector&lt;/strong&gt; extracts data directly from the source code.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Parser&lt;/strong&gt; translates it into a normalized, language-neutral model -- an &lt;strong&gt;IR (Intermediate Representation)&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Renderer&lt;/strong&gt; instantly assembles Markdown/HTML in whatever format the target SSG understands, with no intermediate XML crutches.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;The advantages of this approach are clear: there&apos;s no extra conversion step, and from a single source (the IR) you can render documentation in any format or style you need.&lt;/p&gt;
&lt;h2&gt;4. Speed and Predictability&lt;/h2&gt;
&lt;p&gt;For large projects, build time is critical. Flude solves this with incremental caching.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.flude.guide/images/incremental_cache.jpg&quot; alt=&quot;Incremental Cache&quot; /&gt;&lt;/p&gt;
&lt;p&gt;Instead of loading the entire entity graph every time, Flude recomputes only what has &lt;strong&gt;actually changed&lt;/strong&gt;.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Cross-platform.&lt;/strong&gt; The pipeline works identically, locally on Windows and in CI on Linux.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Docs-as-code.&lt;/strong&gt; The configuration of what to document is versioned alongside the code and built in the same CI.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;5. Flude and Hand-Written Guides (DevGuide)&lt;/h2&gt;
&lt;p&gt;API reference generated from code answers the question &quot;how are the functions and classes structured.&quot; But it can&apos;t tell you &quot;in what order to call them to solve a specific business problem.&quot; That&apos;s what DevGuides are for -- manually written articles and tutorials.&lt;/p&gt;
&lt;p&gt;Flude doesn&apos;t try to replace that manual work. Instead, it provides seamless integration: the generated API reference stays complete and always up to date, living naturally alongside hand-written guides on the pages of modern SSGs.&lt;/p&gt;
&lt;hr /&gt;&lt;p&gt;&lt;strong&gt;Also read us:&lt;/strong&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;https://blog.flude.guide/&quot;&gt;Flude Blog&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://t.me/ude_blog_en&quot;&gt;Telegram channel&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://dev.to/flude_team&quot;&gt;Dev.to&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;</content:encoded><category>architecture</category></item></channel></rss>