<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: briancampbell8</title>
    <description>The latest articles on DEV Community by briancampbell8 (@briancampbell8_d3cb5665e2).</description>
    <link>https://dev.to/briancampbell8_d3cb5665e2</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3914230%2F9ae7e3d8-ff45-467c-a60b-fc0fed640884.png</url>
      <title>DEV Community: briancampbell8</title>
      <link>https://dev.to/briancampbell8_d3cb5665e2</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/briancampbell8_d3cb5665e2"/>
    <language>en</language>
    <item>
      <title>Multi-Agent Forensics: Rescuing SAS Zombie Assault TD from the Flash Graveyard</title>
      <dc:creator>briancampbell8</dc:creator>
      <pubDate>Tue, 05 May 2026 14:56:21 +0000</pubDate>
      <link>https://dev.to/briancampbell8_d3cb5665e2/multi-agent-forensics-rescuing-sas-zombie-assault-td-from-the-flash-graveyard-1nog</link>
      <guid>https://dev.to/briancampbell8_d3cb5665e2/multi-agent-forensics-rescuing-sas-zombie-assault-td-from-the-flash-graveyard-1nog</guid>
      <description>&lt;h1&gt;
  
  
  The "Hello World" Era of AI is Over
&lt;/h1&gt;

&lt;p&gt;This is not a story about asking a chatbot to write a sorting algorithm. This is a report from the front lines of a real-world debugging operation on a classic "abandonware" title: &lt;strong&gt;SAS Zombie Assault Tower Defense&lt;/strong&gt;. &lt;/p&gt;

&lt;p&gt;Originally a staple of the Flash era, modernizing this standalone Windows version meant facing catastrophic &lt;strong&gt;BGFX interop crashes&lt;/strong&gt; (&lt;code&gt;AccessViolationException&lt;/code&gt;) and broken rendering pipelines. To solve it, I didn't just "use AI"—I built a &lt;strong&gt;coordinated forensic engineering team.&lt;/strong&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  The Key Takeaway
&lt;/h3&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Stop treating AI as a search engine. Start treating it as a unit.&lt;/strong&gt; By assigning specific roles to different agents, we turned a "black screen" nightmare into a deterministic restoration mission.&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h2&gt;
  
  
  1. The Team: Roles and Responsibilities
&lt;/h2&gt;

&lt;p&gt;To move fast without breaking things, I established a strict hierarchy. Each agent had a specific "lane" to prevent hallucinations and overlapping edits.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  &lt;strong&gt;🧠 The Human Architect (BDC):&lt;/strong&gt; Sets the mission and maintains the architectural intent. The "Commander" who provides the reality check.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;🔍 Copilot (Forensic Reasoner):&lt;/strong&gt; Operates at the theoretical and ABI (Application Binary Interface) level. It creates the &lt;em&gt;instructions&lt;/em&gt;, but never touches the code.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;🛠️ Windsurf (The Executor):&lt;/strong&gt; Operates inside the repository with full access to the build system. It executes surgical code changes and generates forensic artifacts.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  The Gauntlet: Finding the Right Team
&lt;/h3&gt;

&lt;p&gt;This unit wasn't the first one I tried. I went through &lt;strong&gt;four different agents&lt;/strong&gt; before landing on Windsurf. &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  &lt;strong&gt;The Talkers:&lt;/strong&gt; Agents like &lt;strong&gt;DeepSeek&lt;/strong&gt; failed the "Noise Test." They would ignore the rules of engagement, burying the code under 3 to 4 pages of &lt;strong&gt;"tech-speak white noise"&lt;/strong&gt; and making unrequested "helpful" changes that derailed the architecture. &lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;The Quitters:&lt;/strong&gt; &lt;strong&gt;GitHub Copilot&lt;/strong&gt; was a strong reasoner, but it had a "stamina" problem. It would provide brilliant insights right up until it hit its &lt;strong&gt;unpaid limits&lt;/strong&gt;, effectively walking off the job mid-audit.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  The Surgical Turning Point
&lt;/h3&gt;

&lt;p&gt;What changed everything for the team was the implementation of a new doctrine. I instructed the agents to view our unit as the &lt;strong&gt;Development Version of a Surgical Team.&lt;/strong&gt; Our approach was to be:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Deterministic&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Precise&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Deliberate&lt;/strong&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Windsurf was the first agent to truly adapt to this. It became aware that it was part of something larger—shifting from a "tool" to a team member that understood the gravity and context of every incision we made in the code.&lt;/p&gt;




&lt;h2&gt;
  
  
  2. Solving the ABI Ghost (The Crash)
&lt;/h2&gt;

&lt;p&gt;The engine was throwing an &lt;code&gt;AccessViolationException&lt;/code&gt; at &lt;code&gt;bgfx_init&lt;/code&gt;. In managed/unmanaged interop, this usually means your C# "handshake" with a C++ DLL is broken.&lt;/p&gt;

&lt;h3&gt;
  
  
  The Forensic Probe
&lt;/h3&gt;

&lt;p&gt;Instead of guessing, we used &lt;strong&gt;Windsurf&lt;/strong&gt; to build a "Truth Probe"—a tiny C program to print actual memory sizes from the source headers:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight c"&gt;&lt;code&gt;&lt;span class="cp"&gt;#include&lt;/span&gt; &lt;span class="cpf"&gt;&amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;span class="cp"&gt;
#include&lt;/span&gt; &lt;span class="cpf"&gt;&amp;lt;bgfx/c99/bgfx.h&amp;gt;&lt;/span&gt;&lt;span class="cp"&gt;
&lt;/span&gt;
&lt;span class="kt"&gt;int&lt;/span&gt; &lt;span class="nf"&gt;main&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kt"&gt;void&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;printf&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"TRUE_SIZE:bgfx_init_t:%zu&lt;/span&gt;&lt;span class="se"&gt;\n&lt;/span&gt;&lt;span class="s"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="k"&gt;sizeof&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;bgfx_init_t&lt;/span&gt;&lt;span class="p"&gt;));&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  The Alignment
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Copilot&lt;/strong&gt; compared the C results against our C# code. We applied a surgical fix to ensure a byte-for-byte match:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight csharp"&gt;&lt;code&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="nf"&gt;StructLayout&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;LayoutKind&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Sequential&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;Pack&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="m"&gt;8&lt;/span&gt;&lt;span class="p"&gt;)]&lt;/span&gt;
&lt;span class="k"&gt;public&lt;/span&gt; &lt;span class="k"&gt;struct&lt;/span&gt; &lt;span class="nc"&gt;bgfx_init_t&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;public&lt;/span&gt; &lt;span class="n"&gt;bgfx_type_t&lt;/span&gt; &lt;span class="n"&gt;type&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="k"&gt;public&lt;/span&gt; &lt;span class="kt"&gt;ushort&lt;/span&gt; &lt;span class="n"&gt;vendorId&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="c1"&gt;// ... Surgical alignment ensures the crash stops here.&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  3. From "Black Screen" to Measurable Truth
&lt;/h2&gt;

&lt;p&gt;Once the crash was fixed, the screen was still black. We moved to &lt;strong&gt;Forensic Verification&lt;/strong&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 1: Context Integrity
&lt;/h3&gt;

&lt;p&gt;We injected checks to ensure the &lt;code&gt;StaticLayoutRenderer&lt;/code&gt; was talking to the correct buffer:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight csharp"&gt;&lt;code&gt;&lt;span class="n"&gt;Logger&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;Info&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;$"[Forensics] Draw called with context: &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;context&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;GetType&lt;/span&gt;&lt;span class="p"&gt;().&lt;/span&gt;&lt;span class="n"&gt;FullName&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="s"&gt;"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Step 2: Pixel Statistics
&lt;/h3&gt;

&lt;p&gt;To prove the pixels existed before hitting the GPU, we added a "Statistician":&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight csharp"&gt;&lt;code&gt;&lt;span class="kt"&gt;int&lt;/span&gt; &lt;span class="n"&gt;nonZeroCount&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="n"&gt;buffer&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;Count&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;b&lt;/span&gt; &lt;span class="p"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;b&lt;/span&gt; &lt;span class="p"&gt;!=&lt;/span&gt; &lt;span class="m"&gt;0&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="n"&gt;Logger&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;Info&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;$"[Forensics] Buffer Stats: &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;nonZeroCount&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="s"&gt; non-zero pixels."&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  4. The Power of Consensus
&lt;/h2&gt;

&lt;p&gt;There is an old principle that says when two or more agree on a matter, it is established. In software engineering, we often call this "consensus," but the root is the same: truth is found in the agreement of witnesses. &lt;/p&gt;

&lt;p&gt;By separating the &lt;strong&gt;Reasoning&lt;/strong&gt; (Copilot) from the &lt;strong&gt;Execution&lt;/strong&gt; (Windsurf), I created a system of checks and balances. When the Architect’s intent, the Specialist’s logic, and the Executor’s data all converged on the same byte-count, the "unsolvable" crash disappeared.&lt;/p&gt;

&lt;h3&gt;
  
  
  The Trainable Partner
&lt;/h3&gt;

&lt;p&gt;Perhaps the most surprising discovery was that even non-human partners are &lt;strong&gt;trainable&lt;/strong&gt;. By consistently enforcing the Surgical Doctrine, Windsurf didn't just stay consistent; it improved. It began to anticipate the need for precision and understood the "No White Noise" constraint without being reminded. We proved that with the right leadership, an AI agent can move from a simple tool to a disciplined, context-aware collaborator.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;**Disclaimer:&lt;/em&gt;* This project is a technical exercise in forensic engineering and preservation. I do not own the rights to SAS Zombie Assault TD; all credit for the original game goes to Ninja Kiwi. This post focuses strictly on the methodology of modernizing legacy rendering pipelines.*&lt;/p&gt;

</description>
      <category>gamedev</category>
      <category>ai</category>
      <category>csharp</category>
      <category>programming</category>
    </item>
  </channel>
</rss>
