<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="3.10.0">Jekyll</generator><link href="https://ahmednadar.com/feed.xml" rel="self" type="application/atom+xml" /><link href="https://ahmednadar.com/" rel="alternate" type="text/html" /><updated>2026-10-03T02:36:28+00:00</updated><id>https://ahmednadar.com/feed.xml</id><title type="html">Ahmed Nadar</title><subtitle>Toronto-based product builder with more than 20 years building software. I ship Rails + AI apps that solve real problems for real people. Solve Canada maps over three million pieces of public infrastructure across seven Canadian cities. STL Agent helps GTA contractors stop losing $50K/year to slow follow-up.</subtitle><author><name>Ahmed Nadar</name></author><entry><title type="html">Building Solve Canada</title><link href="https://ahmednadar.com/building-solve-canada/" rel="alternate" type="text/html" title="Building Solve Canada" /><published>2026-10-03T00:00:00+00:00</published><updated>2026-10-03T00:00:00+00:00</updated><id>https://ahmednadar.com/building-solve-canada</id><content type="html" xml:base="https://ahmednadar.com/building-solve-canada/"><![CDATA[<p>Today I gave a talk at XO Ruby in Toronto, a room full of Rails developers at The Loft on King. This is the short version, and the slides are yours at the bottom.</p>

<p>I opened with two questions. What is a pothole fixed a week faster worth to you? And what is it worth to just know that someone saw it? Hold both numbers. I will come back for them.</p>

<h2 id="nobody-cared-about-the-catch-basins">Nobody cared about the catch basins</h2>

<p>For weeks I posted about features. AI that reads your photo and works out what is broken. A map of every catch basin in the city. Silence. Then I wrote one post about one pothole on my street, and within the week CBC and Global called. The code didn’t change between those posts. I did. I stopped selling the machine and started talking about the relief: you report it, and someone tells you what happened.</p>

<p>So the app does one thing for a resident. Take a picture, like a selfie. It blurs faces and licence plates, writes the report, finds the ward and the councillor, and sends it to the city. One report on September 7 reached Toronto 311 in under twelve seconds. When the city answers, the app catches the reference number and brings the answer back to the person who reported it. This week we went one step further: the app only says “Fixed” when there is proof, a repair on the city’s own record or a neighbour who went back to check. Closed is not the same as fixed.</p>

<h2 id="three-weeks-then-over-dinner">Three weeks, then over dinner</h2>

<p>Toronto took me about three weeks. Mississauga took three days, and that was the refactor that made every later city cheap. Milton, a day. Kitchener and Waterloo, an afternoon. Ottawa and Peterborough, half an hour each, built by agents while I was at dinner. These are my own estimates, not timesheets (nobody was timing me at dinner), and they measure build time, not launch dates. Somewhere around the second city, technology stopped being the bottleneck. After that, the bottleneck was me.</p>

<p>The idea behind it is almost boring. A city is a row, not an if. Each city is a <code class="language-plaintext highlighter-rouge">City</code> record with its own settings, and views never ask which city they are in. They ask a small presenter:</p>

<div class="language-ruby highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="c1"># in a view</span>
<span class="n">current_city_copy</span><span class="p">.</span><span class="nf">brand</span>

<span class="c1"># app/presenters/city_copy.rb</span>
<span class="k">def</span> <span class="nf">brand</span>
  <span class="n">fetch</span><span class="p">(</span><span class="s2">"brand"</span><span class="p">)</span>
<span class="k">end</span>
</code></pre></div></div>

<p>The rule is no slug branches in views, mailers or controllers. There are still a few in the models, mostly “Toronto is the default”, and the next step is to stop having a default city at all.</p>

<h2 id="seven-cities-one-route-table">Seven cities, one route table</h2>

<p>All seven cities live on one domain: <code class="language-plaintext highlighter-rouge">/toronto/reports</code>, <code class="language-plaintext highlighter-rouge">/ottawa/reports</code>. I didn’t touch <code class="language-plaintext highlighter-rouge">config/routes.rb</code>. A small Rack middleware takes the city off the front of the path and moves it into <code class="language-plaintext highlighter-rouge">SCRIPT_NAME</code>:</p>

<div class="language-ruby highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="k">def</span> <span class="nf">mount</span><span class="p">(</span><span class="n">env</span><span class="p">,</span> <span class="n">slug</span><span class="p">,</span> <span class="n">rest</span><span class="p">)</span>
  <span class="n">env</span><span class="p">[</span><span class="s2">"SCRIPT_NAME"</span><span class="p">]</span> <span class="o">=</span> <span class="s2">"</span><span class="si">#{</span><span class="n">env</span><span class="p">[</span><span class="s1">'SCRIPT_NAME'</span><span class="p">]</span><span class="si">}</span><span class="s2">/</span><span class="si">#{</span><span class="n">slug</span><span class="si">}</span><span class="s2">"</span>
  <span class="n">env</span><span class="p">[</span><span class="s2">"PATH_INFO"</span><span class="p">]</span>   <span class="o">=</span> <span class="n">rest</span>
  <span class="n">env</span><span class="p">[</span><span class="no">ENV_KEY</span><span class="p">]</span>       <span class="o">=</span> <span class="n">slug</span>
  <span class="n">env</span>
<span class="k">end</span>
</code></pre></div></div>

<p><code class="language-plaintext highlighter-rouge">SCRIPT_NAME</code> is Rack’s mount prefix, and Rails prepends it to every URL it generates. So every <code class="language-plaintext highlighter-rouge">link_to</code>, every <code class="language-plaintext highlighter-rouge">redirect_to</code> and every form stays inside the right city with zero route changes. A routing scope with <code class="language-plaintext highlighter-rouge">default_url_options</code> would have been a fair alternative on a new app. With 606 existing routes, the mount prefix won. The gotcha that cost me real time: mutate <code class="language-plaintext highlighter-rouge">env</code> in place. A copy made with <code class="language-plaintext highlighter-rouge">env.merge</code> cut the link that Rails uses to commit the CSRF token, and every form under a city prefix failed with a 422. That incident is now a test that submits a real form with forgery protection on.</p>

<h2 id="seven-names-in-a-dropdown-14-tb-a-month">Seven names in a dropdown, 1.4 TB a month</h2>

<p>Every city row carries its boundary, the shape of the city as a polygon. Toronto’s is 336 KB. With one city, that was a fine design. Then the header dropdown loaded all seven full rows on every page to show seven names, and the lookup that works out which city you are in loaded the full Toronto row on every request. About a megabyte of polygon per page view, for every visitor, bots included. Database transfer reached about 1.4 TB that month, and the bill grew about eight times between March and August.</p>

<p>The fix starts with one line:</p>

<div class="language-ruby highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="n">scope</span> <span class="ss">:light</span><span class="p">,</span> <span class="o">-&gt;</span> <span class="p">{</span> <span class="nb">select</span><span class="p">(</span><span class="o">*</span><span class="p">(</span><span class="n">column_names</span> <span class="o">-</span> <span class="p">[</span><span class="s2">"boundary"</span><span class="p">]))</span> <span class="p">}</span>
</code></pre></div></div>

<p>Then the call sites that only need names use it, the dropdown reads from a small frozen list in memory, and anything that needs the polygon asks the database to do the geometry and return a number. Storing the boundary on the row was a good decision for the app I had. It was a terrible decision for the app I was building.</p>

<p>Fixing it once wasn’t enough, so every integration test now listens to the SQL it runs and fails if a request pulls the boundary:</p>

<div class="language-ruby highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="k">def</span> <span class="nf">process</span><span class="p">(</span><span class="nb">method</span><span class="p">,</span> <span class="n">path</span><span class="p">,</span> <span class="o">**</span><span class="n">args</span><span class="p">)</span>
  <span class="n">result</span> <span class="o">=</span> <span class="kp">nil</span>
  <span class="n">leaks</span> <span class="o">=</span> <span class="no">BoundaryGuard</span><span class="p">.</span><span class="nf">capture</span> <span class="p">{</span> <span class="n">result</span> <span class="o">=</span> <span class="k">super</span> <span class="p">}</span>
  <span class="k">raise</span> <span class="no">Minitest</span><span class="o">::</span><span class="no">Assertion</span><span class="p">,</span> <span class="s2">"</span><span class="si">#{</span><span class="n">path</span><span class="si">}</span><span class="s2"> fetched cities.boundary"</span> <span class="k">if</span> <span class="n">leaks</span><span class="p">.</span><span class="nf">any?</span>
  <span class="n">result</span>
<span class="k">end</span>
</code></pre></div></div>

<p>The first run failed 28 test files. The worst one: every email a city sent us loaded all seven cities, polygons included. It is a guard for the query shapes that bit us, not a parser, and it has known gaps. It is still the reason the next person, including future me, cannot ship this mistake quietly.</p>

<h2 id="i-fired-two-ai-agents">I fired two AI agents</h2>

<p>Two AI agents watched production, one every fifteen minutes and one every hour. Together they were most of my AI bill. Then I read a week of their work. One saw failed jobs in 98 runs in a row and raised one alert. So I read their prompts. “There should be four processes.” “If a report is stuck for five minutes, alert.” That isn’t intelligence. A rule list is an if statement. Now it’s plain Ruby, with no model call, and it alerts on the first failure.</p>

<p>Use AI where the problem is fuzzy, like reading a photo. Don’t use it where the answer is an if. And yes, you should still learn to code. AI can be smarter than me. It cannot decide what I put my name on.</p>

<h2 id="back-to-your-two-numbers">Back to your two numbers</h2>

<p>A week faster, or knowing someone saw it. The city spends its money on the first, and it should. I only ever built the second, and that is the one people open every day. Building it, I stopped being only a developer. I’m the marketing, the content and the support too. I don’t need to know everything. I need to know enough to move fast, and code is one of the jobs.</p>

<p>The code got easy. Caring stayed hard.</p>
<div class="deck-cta">
  <p class="deck-cta-label">The full talk, the way I gave it at XO Ruby Toronto.</p>
  <button type="button" class="cta-button" data-open-deck="">Take the talk with you</button>
</div>

<!-- ===== Deck download modal ===== -->
<div class="deck-modal" id="deck-modal" aria-hidden="true">
  <div class="deck-modal-backdrop" data-close-deck=""></div>
  <div class="deck-modal-card" role="dialog" aria-modal="true" aria-labelledby="deck-modal-title">
    <button type="button" class="deck-modal-close" data-close-deck="" aria-label="Close">&times;</button>
    <h3 id="deck-modal-title">Take the talk with you</h3>
    <p class="deck-modal-sub">Drop your email and the slides are yours. I will also send the occasional note about what I am building. Unsubscribe anytime.</p>

    <form id="deck-form" novalidate="">
      <div style="position:absolute;left:-9999px" aria-hidden="true">
        <input type="text" name="website" tabindex="-1" autocomplete="off" />
      </div>
      <div class="deck-field">
        <label for="deck-name">Name <span class="deck-optional">(optional)</span></label>
        <input type="text" id="deck-name" name="name" autocomplete="name" placeholder="Your name" />
      </div>
      <div class="deck-field">
        <label for="deck-email">Email</label>
        <input type="email" id="deck-email" name="email" required="" autocomplete="email" placeholder="you@email.com" />
      </div>
      <button type="submit" class="cta-button deck-submit">Send me the slides</button>
    </form>

    <div id="deck-success" class="contact-feedback" style="display:none">
      <p><strong>It's yours.</strong> The download should start automatically. If it does not, <a href="/assets/downloads/building-solve-canada-xoruby.pdf" download="">grab it here</a>.</p>
    </div>
    <div id="deck-error" class="contact-feedback contact-feedback-error" style="display:none">
      <p>Something went wrong. Try again, or just <a href="/assets/downloads/building-solve-canada-xoruby.pdf" download="">download the slides directly</a>.</p>
    </div>
  </div>
</div>

<style>
  .deck-cta { margin: var(--space-lg) 0; padding: var(--space-md); border: 1px solid var(--color-border); border-radius: 10px; background: var(--color-bg-warm); text-align: center; }
  .deck-cta-label { margin: 0 0 var(--space-sm); font-family: var(--font-serif); font-size: var(--text-lg); color: var(--color-text); }
  .deck-modal { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; padding: var(--space-md); }
  .deck-modal.is-open { display: flex; }
  .deck-modal-backdrop { position: absolute; inset: 0; background: rgba(20,15,10,0.6); backdrop-filter: blur(3px); }
  .deck-modal-card { position: relative; z-index: 1; width: 100%; max-width: 30rem; background: var(--color-bg); border: 1px solid var(--color-border); border-radius: 14px; padding: var(--space-lg); box-shadow: 0 30px 80px rgba(0,0,0,0.25); }
  .deck-modal-close { position: absolute; top: 0.6rem; right: 0.9rem; background: none; border: none; font-size: 1.8rem; line-height: 1; color: var(--color-text-light); cursor: pointer; }
  .deck-modal-close:hover { color: var(--color-accent); }
  #deck-modal-title { font-family: var(--font-serif); font-size: var(--text-2xl); margin: 0 0 var(--space-xs); }
  .deck-modal-sub { color: var(--color-text-muted); font-size: var(--text-sm); margin: 0 0 var(--space-md); }
  .deck-field { margin-bottom: var(--space-sm); }
  .deck-field label { display: block; font-size: var(--text-sm); font-weight: 600; margin-bottom: 0.3rem; }
  .deck-optional { font-weight: 400; color: var(--color-text-light); }
  .deck-field input { width: 100%; font-family: var(--font-sans); font-size: var(--text-base); color: var(--color-text); background: var(--color-bg); border: 1.5px solid var(--color-border); border-radius: 6px; padding: 0.7rem 0.9rem; transition: border-color var(--transition); }
  .deck-field input:focus { outline: none; border-color: var(--color-accent); }
  .deck-submit { width: 100%; margin-top: var(--space-xs); border: none; cursor: pointer; }
</style>

<script>
(function () {
  'use strict';
  var modal = document.getElementById('deck-modal');
  if (!modal) return;
  var form = document.getElementById('deck-form');
  var success = document.getElementById('deck-success');
  var error = document.getElementById('deck-error');
  var submit = form.querySelector('.deck-submit');
  var ENDPOINT = 'https://solveto.ca/api/v1/newsletter/ahmednadar/subscribe';
  var PDF = '/assets/downloads/building-solve-canada-xoruby.pdf';

  function openModal() { modal.classList.add('is-open'); modal.setAttribute('aria-hidden', 'false'); setTimeout(function () { document.getElementById('deck-email').focus(); }, 50); }
  function closeModal() { modal.classList.remove('is-open'); modal.setAttribute('aria-hidden', 'true'); }

  document.querySelectorAll('[data-open-deck]').forEach(function (b) { b.addEventListener('click', openModal); });
  document.querySelectorAll('[data-close-deck]').forEach(function (b) { b.addEventListener('click', closeModal); });
  document.addEventListener('keydown', function (e) { if (e.key === 'Escape') closeModal(); });

  function triggerDownload() {
    var a = document.createElement('a');
    a.href = PDF; a.setAttribute('download', '');
    document.body.appendChild(a); a.click(); document.body.removeChild(a);
  }

  form.addEventListener('submit', function (e) {
    e.preventDefault();
    error.style.display = 'none';
    if (form.website.value) { return; } // honeypot
    submit.disabled = true;
    submit.textContent = 'Sending...';

    fetch(ENDPOINT, {
      method: 'POST',
      headers: { 'Content-Type': 'application/json' },
      body: JSON.stringify({ email: form.email.value.trim(), name: form.name.value.trim(), website: form.website.value })
    })
    .then(function (res) { if (!res.ok) throw new Error(res.status); })
    .then(function () {
      form.style.display = 'none';
      success.style.display = 'block';
      triggerDownload();
    })
    .catch(function () {
      error.style.display = 'block';
      submit.disabled = false;
      submit.textContent = 'Send me the slides';
    });
  });
})();
</script>]]></content><author><name>Ahmed Nadar</name></author><category term="solvecanada" /><category term="rails" /><category term="ruby" /><category term="civic-tech" /><category term="talks" /><category term="toronto" /><summary type="html"><![CDATA[What I told XO Ruby Toronto: seven cities on one Rails app, the one-line scope that stopped 1.4 TB of database transfer, and why I fired two AI agents. The slides are yours, free.]]></summary><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://ahmednadar.com/assets/images/og-default.png" /><media:content medium="image" url="https://ahmednadar.com/assets/images/og-default.png" xmlns:media="http://search.yahoo.com/mrss/" /></entry><entry><title type="html">Turning Neighbourhood Problems into Action</title><link href="https://ahmednadar.com/turning-neighbourhood-problems-into-action/" rel="alternate" type="text/html" title="Turning Neighbourhood Problems into Action" /><published>2026-09-17T00:00:00+00:00</published><updated>2026-09-17T00:00:00+00:00</updated><id>https://ahmednadar.com/turning-neighbourhood-problems-into-action</id><content type="html" xml:base="https://ahmednadar.com/turning-neighbourhood-problems-into-action/"><![CDATA[<p>Tonight I gave a talk to Civic Tech Brampton, hosted at Algoma University on Queen Street, from my desk in Toronto. This is the short version, and the slides are yours at the bottom if you want to take the whole thing with you.</p>

<h2 id="it-still-starts-with-a-pothole">It still starts with a pothole</h2>

<p>For about eight months I drove past the same pothole near my house. Every day. I tried to tell the city the proper way: a phone line I gave up on, then a twelve-minute form, five pages, dropdown lists I could not make sense of. I got a reference number and a status page that never changed. That is where most people quit, and I nearly did. The cost of caring got higher than the value of caring.</p>

<p>There is a story Rory Sutherland tells about Volkswagen refusing to put cupholders in their cars for years. The car was a temple, not a coffee table. A hundred rational decisions and one human blind spot. Every civic form I have ever filled out was built by the cupholder engineers.</p>

<h2 id="what-it-became">What it became</h2>

<p>One photo. The report drafts itself and you send it in about thirty seconds. Or five spoken words at a red light. It goes to the city and to your councillor. The only rule I gave myself was to make caring cheap again.</p>

<p>The app is the small part. The data was always there. Across seven cities the governments have been publishing it for decades, far more than anyone uses. So far I have pulled over three million pieces of public infrastructure onto one map, catch basins back to the 1840s, and that is a fraction of what those cities publish, sitting in the open, free. Nobody had connected it. So I started to. The technology was never the bottleneck. We were.</p>

<h2 id="the-city-writes-back">The city writes back</h2>

<p>The part I am proudest of this year is not something you can see on a screen. When you send a report, we deliver it to the city and your councillor, and then we do the thing you used to do yourself: we catch the city’s own reference number, so you never chase it. When the city marks it fixed, the answer comes back to you, on your report, on the record.</p>

<p>A litter bin overflowing at 989 Dovercourt Road was reported on September 7. Toronto 311 confirmed it fixed on September 11. Four days, checked against the city’s records, not taken on faith. Hundreds of reports have closed this way now, and nobody phoned anyone. That is what the thirty seconds buys you. Not a complaint sent into the void. A record, and an answer.</p>

<h2 id="it-does-not-stop-at-city-streets">It does not stop at city streets</h2>

<p>The room tonight was a university. A campus is a small town that someone runs. Thousands of people walk past the broken things every day, a dead light in a stairwell, a cracked step, a spill in the hall, and the people whose job it is to fix them cannot see what the finders see. The same tool works on private property, a campus, a hospital, a mall, a main street. If you can draw it on a map, it can be live in a week.</p>

<h2 id="the-seventh-city-was-a-tuesday-afternoon">The seventh city was a Tuesday afternoon</h2>

<p>I used to say the fifth city would be a Tuesday afternoon. In July it was: Waterloo and Kitchener in one afternoon, then Peterborough and Ottawa. Seven cities now, on one map, under Solve Canada. Singapore runs one platform for an entire country. Canada ranks forty-seventh for digital government.</p>

<p>And Brampton is not on that map yet. The city publishes about 274 open datasets, one of the richest portals in the GTA. Putting Brampton on the map is an afternoon. Closing the loop with Brampton 311 takes one person inside the city saying yes. That is where a room like tonight’s matters.</p>

<p>Obsession or stubbornness? Both. You do not need permission, and you do not need to be the smartest person in the room. You just have to refuse to accept that broken is normal.</p>

<div class="deck-cta">
  <p class="deck-cta-label">The full talk, the way I gave it to Civic Tech Brampton.</p>
  <button type="button" class="cta-button" data-open-deck="">Take the talk with you</button>
</div>

<!-- ===== Deck download modal ===== -->
<div class="deck-modal" id="deck-modal" aria-hidden="true">
  <div class="deck-modal-backdrop" data-close-deck=""></div>
  <div class="deck-modal-card" role="dialog" aria-modal="true" aria-labelledby="deck-modal-title">
    <button type="button" class="deck-modal-close" data-close-deck="" aria-label="Close">&times;</button>
    <h3 id="deck-modal-title">Take the talk with you</h3>
    <p class="deck-modal-sub">Drop your email and the slides are yours. I will also send the occasional note about what I am building. Unsubscribe anytime.</p>

    <form id="deck-form" novalidate="">
      <div style="position:absolute;left:-9999px" aria-hidden="true">
        <input type="text" name="website" tabindex="-1" autocomplete="off" />
      </div>
      <div class="deck-field">
        <label for="deck-name">Name <span class="deck-optional">(optional)</span></label>
        <input type="text" id="deck-name" name="name" autocomplete="name" placeholder="Your name" />
      </div>
      <div class="deck-field">
        <label for="deck-email">Email</label>
        <input type="email" id="deck-email" name="email" required="" autocomplete="email" placeholder="you@email.com" />
      </div>
      <button type="submit" class="cta-button deck-submit">Send me the slides</button>
    </form>

    <div id="deck-success" class="contact-feedback" style="display:none">
      <p><strong>It's yours.</strong> The download should start automatically. If it does not, <a href="/assets/downloads/turning-neighbourhood-problems-into-action-brampton.pdf" download="">grab it here</a>.</p>
    </div>
    <div id="deck-error" class="contact-feedback contact-feedback-error" style="display:none">
      <p>Something went wrong. Try again, or just <a href="/assets/downloads/turning-neighbourhood-problems-into-action-brampton.pdf" download="">download the slides directly</a>.</p>
    </div>
  </div>
</div>

<style>
  .deck-cta { margin: var(--space-lg) 0; padding: var(--space-md); border: 1px solid var(--color-border); border-radius: 10px; background: var(--color-bg-warm); text-align: center; }
  .deck-cta-label { margin: 0 0 var(--space-sm); font-family: var(--font-serif); font-size: var(--text-lg); color: var(--color-text); }
  .deck-modal { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; padding: var(--space-md); }
  .deck-modal.is-open { display: flex; }
  .deck-modal-backdrop { position: absolute; inset: 0; background: rgba(20,15,10,0.6); backdrop-filter: blur(3px); }
  .deck-modal-card { position: relative; z-index: 1; width: 100%; max-width: 30rem; background: var(--color-bg); border: 1px solid var(--color-border); border-radius: 14px; padding: var(--space-lg); box-shadow: 0 30px 80px rgba(0,0,0,0.25); }
  .deck-modal-close { position: absolute; top: 0.6rem; right: 0.9rem; background: none; border: none; font-size: 1.8rem; line-height: 1; color: var(--color-text-light); cursor: pointer; }
  .deck-modal-close:hover { color: var(--color-accent); }
  #deck-modal-title { font-family: var(--font-serif); font-size: var(--text-2xl); margin: 0 0 var(--space-xs); }
  .deck-modal-sub { color: var(--color-text-muted); font-size: var(--text-sm); margin: 0 0 var(--space-md); }
  .deck-field { margin-bottom: var(--space-sm); }
  .deck-field label { display: block; font-size: var(--text-sm); font-weight: 600; margin-bottom: 0.3rem; }
  .deck-optional { font-weight: 400; color: var(--color-text-light); }
  .deck-field input { width: 100%; font-family: var(--font-sans); font-size: var(--text-base); color: var(--color-text); background: var(--color-bg); border: 1.5px solid var(--color-border); border-radius: 6px; padding: 0.7rem 0.9rem; transition: border-color var(--transition); }
  .deck-field input:focus { outline: none; border-color: var(--color-accent); }
  .deck-submit { width: 100%; margin-top: var(--space-xs); border: none; cursor: pointer; }
</style>

<script>
(function () {
  'use strict';
  var modal = document.getElementById('deck-modal');
  if (!modal) return;
  var form = document.getElementById('deck-form');
  var success = document.getElementById('deck-success');
  var error = document.getElementById('deck-error');
  var submit = form.querySelector('.deck-submit');
  var ENDPOINT = 'https://solveto.ca/api/v1/newsletter/ahmednadar/subscribe';
  var PDF = '/assets/downloads/turning-neighbourhood-problems-into-action-brampton.pdf';

  function openModal() { modal.classList.add('is-open'); modal.setAttribute('aria-hidden', 'false'); setTimeout(function () { document.getElementById('deck-email').focus(); }, 50); }
  function closeModal() { modal.classList.remove('is-open'); modal.setAttribute('aria-hidden', 'true'); }

  document.querySelectorAll('[data-open-deck]').forEach(function (b) { b.addEventListener('click', openModal); });
  document.querySelectorAll('[data-close-deck]').forEach(function (b) { b.addEventListener('click', closeModal); });
  document.addEventListener('keydown', function (e) { if (e.key === 'Escape') closeModal(); });

  function triggerDownload() {
    var a = document.createElement('a');
    a.href = PDF; a.setAttribute('download', '');
    document.body.appendChild(a); a.click(); document.body.removeChild(a);
  }

  form.addEventListener('submit', function (e) {
    e.preventDefault();
    error.style.display = 'none';
    if (form.website.value) { return; } // honeypot
    submit.disabled = true;
    submit.textContent = 'Sending...';

    fetch(ENDPOINT, {
      method: 'POST',
      headers: { 'Content-Type': 'application/json' },
      body: JSON.stringify({ email: form.email.value.trim(), name: form.name.value.trim(), website: form.website.value })
    })
    .then(function (res) { if (!res.ok) throw new Error(res.status); })
    .then(function () {
      form.style.display = 'none';
      success.style.display = 'block';
      triggerDownload();
    })
    .catch(function () {
      error.style.display = 'block';
      submit.disabled = false;
      submit.textContent = 'Send me the slides';
    });
  });
})();
</script>]]></content><author><name>Ahmed Nadar</name></author><category term="solvecanada" /><category term="civic-tech" /><category term="talks" /><category term="open-data" /><category term="brampton" /><category term="canada" /><summary type="html"><![CDATA[The talk I gave to Civic Tech Brampton at Algoma University: one pothole, seven cities, and the moment the city started writing back. The slides are yours, free.]]></summary><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://ahmednadar.com/assets/images/og-default.png" /><media:content medium="image" url="https://ahmednadar.com/assets/images/og-default.png" xmlns:media="http://search.yahoo.com/mrss/" /></entry><entry><title type="html">The Twenty Percent</title><link href="https://ahmednadar.com/the-twenty-percent/" rel="alternate" type="text/html" title="The Twenty Percent" /><published>2026-09-03T00:00:00+00:00</published><updated>2026-09-03T00:00:00+00:00</updated><id>https://ahmednadar.com/the-twenty-percent</id><content type="html" xml:base="https://ahmednadar.com/the-twenty-percent/"><![CDATA[<p>In the spring of 1992 Steve Jobs stood in front of a room at <a href="https://mitsloan.mit.edu/ideas-made-to-matter/steve-jobs-talks-consultants-hiring-and-leaving-apple-unearthed-1992-talk">MIT Sloan</a> and said something that sounded like bragging about speed. On NeXTSTEP, he told them, “you write about 20% of the code that you do in any other development environment we know of.” Apps got built “five to 10 times faster.” Then he gave the reason, and the reason is the part I care about: “the code that’s the fastest to write, the code that’s the easiest to maintain, and the code that never breaks, is the code you don’t write.”</p>

<p>He was talking about objects. Objective-C, reusable and pre-configured components shipped in the box. Most of any application already existed as something somebody else had written and tested, so his developers were not writing eighty percent of their programs. They were putting them together, and spending their real effort on the twenty percent that made the product theirs.</p>

<p>He was <a href="https://singjupost.com/transcript-steve-jobs-speaks-at-mit-sloan-distinguished-speaker-series/">selling</a> to Fortune 500 IT departments, and everyone in that room, him included, still believed you had to be big to get in the door. Then one moment gets away from him. A breakthrough spreadsheet, he says, would need fifty million dollars just to rise above the noise, so the brightest people he knows are not building apps at all. They are writing objects for other developers to build on, and they are “going where everybody isn’t.” That is a plan for people with no money and nobody’s permission, said out loud by the man selling to the Fortune 500.</p>

<p>So here is my claim, and it is mine, not a quote I am handing him. If most of the program already exists and is already tested, the thing that shrinks is not your typing. It is how many people you need before you can start. He sold objects as a way for big companies to move like small ones. What he had found was a way for small ones to try what only big ones were allowed to try at all.</p>

<h2 id="both-chairs">Both chairs</h2>

<p>Eighteen years after that talk I was in a room where the same argument was made to my face, and I was the one holding the toy. I had built on Microsoft’s stack for years, C# and .NET, with Rails on the side at night because it was fun. Around 2010, with <a href="https://railsapps.github.io/rails-release-history.html">Rails on version 3</a>, I was at a Microsoft conference in Toronto with friends who were senior developers and VPs of engineering, and I asked whether leaving the stack for Ruby was a good idea. Oh boy, I have rarely watched a room turn that fast.</p>

<p>Ruby was not a real language. Rails was not a real framework. One of them told the truth without meaning to. If a language is that easy, he said, then anyone can use it, and if anyone can use it, what separates him from real developers? He had years in C, C++, C#, Java, and that was the investment. Someone else put it flatter. Those are toys, that is Lego, real software comes out of Java and C.</p>

<p>He was right about the Lego. I wanted to move because it was fun to write less code. Ruby is fun to write because it holds things in the language that I was building by hand in C#, and Rails already contained decisions I used to make one file at a time and then defend in review. I was not smarter in Ruby. I was snapping more pieces together with joy and shipping in an evening what used to take me a week, and I had stopped apologizing for the pieces.</p>

<p>That was Jobs’s twenty percent, eighteen years later, getting the reaction that idea always gets from the people who paid full price for the old way. Ruby’s design goal, the thing <a href="https://rubyonrails.org/doctrine">Rails still puts first in its doctrine</a>, is programmer happiness, and who doesn’t like a language that makes them happy? That was the part the room could not forgive. Nobody in there hated a syntax. They had built who they were out of how hard the work was, and I was describing a thing that made it easy.</p>

<p>Three years before that conference I had been sitting in the other chair. When Facebook opened past the colleges and Twitter showed up, I said what everyone around me said. It’s a fad. It’s for kids. Real businesses don’t live there. <a href="https://techcrunch.com/2007/10/02/fadnation-why-steve-ballmer-could-be-right/">Steve Ballmer</a> said the same thing about Facebook’s valuation, weeks before Microsoft bought into it. The people I wrote off as gurus were not more talented than the ones who sat it out. They were allowed to try, because nobody had thought to guard a door that did not exist yet.</p>

<h2 id="thirty-four-years-later">Thirty-four years later</h2>

<p>I run a one person software company now. AI writes most of my code, some days nearly all of it, which makes my job title something like senior reviewer of a very fast junior who never sleeps and never learns. What objects were to Jobs, models are to me, and I do not write the eighty percent. I direct it. Objects let you reuse code. Models let you reuse skill, so I can work in fields I never trained in. He got to reuse his own past. I get to reuse everyone’s.</p>

<p>Now the honest part, because posts that cheer for AI go bad fast. The eighty percent claim is strong for writing code and much weaker for trusting it. What kills a small software company was never typing. It is features quietly breaking each other, the thing that worked on Tuesday failing on Friday for a reason nobody wrote down. AI moved the hard part from writing the code to checking it, so I spend less time making software than I ever have and more time proving it than I expected. The objects were worth something because they were already tested. Reusing them was about trust before it was ever about speed.</p>

<h2 id="the-floor">The floor</h2>

<p>What is the comfortable answer for why big companies do not take an advantage this large? They are slow and stupid, but Apple’s engineers in 1995 were not stupid and <a href="https://lowendmac.com/2005/apples-copland-project/">Copland</a> still died with hundreds of engineers on it. Two years later Apple paid $429 million for NeXT, for the software it had ignored, and every iPhone in the world runs what grew out of it. The answer sits in the org chart. Headcount is the budget and the status, so a tool that makes eight engineers unnecessary is a threat to the manager of those eight engineers, whatever the slide deck says. The people who have to approve the change are the people the change costs.</p>

<p>There is a second rule underneath it, and it shapes what I build. A big company cannot afford to do something small. Getting anything approved, staffed, bought, and cleared by the lawyers costs about the same whether the project is big or tiny, so every institution has a floor, and below that floor no problem is worth solving no matter how much it matters to the people who have it. I have written about this as the city <a href="https://solveto.ca/blog/one-club-i-brought-fourteen">playing golf with one club</a>. The floor is why the bag never opens.</p>

<p>Everybody has a floor, not just city hall. A ten person shop has one, lower down. A team of two has a lower one still. A person working alone has the lowest floor of anyone, and that is the whole advantage. It is not speed. It is the size of the problem you are allowed to take seriously.</p>

<p><img src="https://ahmednadar.com/assets/images/posts/the-twenty-percent.png" alt="Above the floor: $4M and up, two years, RFP, vendor, committee. Below it, the small local problems nobody is funded to solve, and one that got built anyway." /></p>

<p>I ran into that floor in one conversation recently. I build <a href="https://solveto.ca/blog/toronto-311-plan-2027-i-shipped-it-in-february">civic software in Canada</a>, the broken and ordinary problems no pitch deck mentions. When I compared notes with someone who works inside government, the answer was not that it was a bad idea. It was that roughly half of what I had built alone sat on their roadmap for 2028, and buying it through their process would cost four to six million dollars.</p>

<p>Two years and millions of dollars, not to invent anything. To buy permission to start. The endless cycle of paperwork, the vendor, the committee, the budget year, the political cover. The software was never the expensive part. One person with today’s tools built it under their floor, in less time than their process takes to book its first meeting.</p>

<h2 id="what-is-rare-now">What is rare now</h2>

<p>Rory Sutherland keeps recommending a 1916 story called <a href="https://archive.org/details/obviousadamsstor00upderich">Obvious Adams</a>, about a man who does well in advertising by noticing what is sitting in plain sight while cleverer people look past it. The obvious thing in 2026 is that the technology is not the bottleneck. <a href="/obsession-or-stubbornness/">I have said that about the city</a> and it is true here too.</p>

<p>Sutherland likes to say the opposite of a good idea can be another good idea, so here is the flip I keep. For seventy years software companies won by writing code other people could not write. Now that everyone can write everything, the rare things are the ones no engineering budget ever had a line for: taste, warmth, and trust. The rare skill is knowing which small thing matters, being free to go do it before a committee could meet, and being willing to build what will never pay for itself on a spreadsheet.</p>

<p>My other product lives on a grandmother’s Mac, the most powerful machine in her house and a very expensive way to click on things. She does not need it smarter. She needs it to remember her, her family, her mornings, and to keep those memories on her own disk and nowhere else. No funded company would build that. The market is too small and you cannot sell data you refuse to hold, which is the entire reason it is still there to build.</p>

<p>So I spend my eighty percent on the features that only make sense if you are building for one grandmother instead of a billion strangers. AI made it cheap to care about things too small for anyone big to care about. One of my apps sits under the industry’s floor. The other sits under the city’s. Both are toys, by the standard of that room in 2010, and NeXT looked like a failure for years too. Nobody sitting at MIT in 1992 could tell which one they were watching.</p>]]></content><author><name>Ahmed Nadar</name></author><category term="business" /><category term="ai" /><category term="building software" /><category term="solo-founder" /><category term="lessons" /><summary type="html"><![CDATA[Steve Jobs told a room at MIT in 1992 that his developers wrote twenty percent of the code. Everyone remembers the speed. Twice since then I have watched the same shift arrive and get called a toy.]]></summary><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://ahmednadar.com/assets/images/og-default.png" /><media:content medium="image" url="https://ahmednadar.com/assets/images/og-default.png" xmlns:media="http://search.yahoo.com/mrss/" /></entry><entry><title type="html">Volume Is the Only Lever</title><link href="https://ahmednadar.com/volume-is-the-only-lever/" rel="alternate" type="text/html" title="Volume Is the Only Lever" /><published>2026-08-03T00:00:00+00:00</published><updated>2026-08-03T00:00:00+00:00</updated><id>https://ahmednadar.com/volume-is-the-only-lever</id><content type="html" xml:base="https://ahmednadar.com/volume-is-the-only-lever/"><![CDATA[<p>A post about a pothole took off while I was writing code and not looking at my phone. The first interview requests arrived that week, and <a href="/week-one-in-the-open/">within two days the story had run on CBC, Global, and a national radio show</a> while reports came in from wards I had never set foot in. For about ten days the work had more momentum than I knew what to do with, and then I did what builders do, which is go back to the thing I was building. I stayed there for months. The product got better. Almost nothing else moved.</p>

<p><img src="https://ahmednadar.com/assets/images/posts/volume-is-the-only-lever.png" alt="One launch gives luck a single surface to land on and most of it misses. Fourteen days of visible work gives the same luck a few dozen surfaces and all of it lands." /></p>

<p>That was the lesson sitting in front of me the entire time and it took me until July to take it seriously. The work moves when it is loud. When it is quiet, it is still good work, and it is happening in a drawer.</p>

<p>I want to be precise about why this is not a marketing observation. I cannot outspend anyone in this space. There is no ad budget, no sales team, no partnerships department, and the systems I am building against move on multi-year procurement cycles. Against that, the one input I control without asking permission is how much visible work I produce and how many rooms I walk into. Volume is not a tactic I chose from a list. It is the only distribution channel priced in time instead of money, which makes it the only one available to me.</p>

<p>So two weeks ago I went loud on purpose, with a great deal more to show than I had the first time.</p>

<p>Fourteen days produced the thing I had been building toward since the start: in Toronto, a resident’s report now carries its whole story on one public page, including the moment the city marks the work complete, <a href="https://solveto.ca/blog/how-the-loop-closes">checked against the city’s own records</a>. Because “complete” is the city’s word rather than the resident’s, the page then asks whether it is fixed or still there, and the person who reported it gets the final say. Toronto’s Auditor General first asked for outcome tracking in 2011. Somewhere in the middle of those two weeks the platform passed a thousand resident reports across seven Ontario cities, sitting on top of more than two million mapped pieces of public infrastructure. Getting there meant <a href="/crossing-city-lines/">crossing city lines</a> first, which was the hard part, and every city after the second has been a variation on a problem I had already solved.</p>

<p>Then the noise, and what came back through it. A former mayor spent eight minutes with me on Newstalk 1010 and described the missing piece before I had said a word, which is also where I made <a href="/the-correction-i-owed-him/">a mistake I had to correct in public</a>. CTV Kitchener covered the platform inside a story about a repair residents had been waiting on for months. MiltonToday told its readers that reporting local issues just got easier. I published an open letter, a media kit, a full build timeline, and a newsletter. I gave a talk at Civic Tech Toronto about how one pothole turned into a reporting platform for any Canadian city, and I am arranging talks in two more cities now.</p>

<p>The louder half of those two weeks never got broadcast. I wrote to councillors in all seven cities to show them what their residents now have, and sat down with a few of them. I reached out to the BIA managers whose strips this helps most, to residents’ associations, and to people inside companies and public services who live with the same broken streets and had never had a record of them. That part was email, phone calls, and coffee, and it produced more than the radio did. It also looks like nothing from the outside, which is why the people who only ship tend to skip it.</p>

<p>None of that was the surprising part. The surprising part was who arrived. A professor. Executives at companies whose names you would recognize, some with congratulations and some with questions I am still thinking about. Residents in cities I have not launched in, asking when their turn comes. A stranger in Waterloo who knew exactly who I should be talking to and made the introduction without being asked.</p>

<p>I did not plan a single one of those, and I could not have. That is the mechanism, and it is the reason volume compounds while a single big launch does not. Luck needs somewhere to land. Every visible piece of work is another surface it can land on, and the only variable you control is how many surfaces exist. One launch gives it one target on one afternoon. Fourteen days of shipping and writing and showing up gives it a few dozen, spread across enough time that different people encounter it in different moods for different reasons.</p>

<p>The cost is a thick skin, and this is the part nobody puts in the retrospective. Attention delivers pushback and applause on the same afternoon, from people with equal confidence and unequal information, and you have to be able to take both without adjusting course for either. I wrote about that after the talk, about how <a href="/obsession-or-stubbornness/">obsession and stubbornness are the whole game</a>, and two loud weeks confirmed it harder than the talk did. Believe the idea. Hold it while reasonable people tell you to soften it.</p>

<p>There is a version of me that spent those two weeks heads-down instead, and that version shipped roughly the same features. He is a few months behind on everything else, and he does not know it, because a quiet month and a loud month feel identical from inside the editor.</p>

<p>Work in public is the landing strip. Nothing lands on a runway you have not built, and the builders wondering why their good product is not moving are almost always wondering it from somewhere nobody can see.</p>]]></content><author><name>Ahmed Nadar</name></author><category term="building" /><category term="solo-founder" /><category term="civic-tech" /><category term="lessons" /><summary type="html"><![CDATA[A post took off while I was writing code, then I went quiet for months and the work stopped moving. What fourteen deliberate days of noise produced, and why a solo builder has exactly one distribution channel.]]></summary><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://ahmednadar.com/assets/images/og-default.png" /><media:content medium="image" url="https://ahmednadar.com/assets/images/og-default.png" xmlns:media="http://search.yahoo.com/mrss/" /></entry><entry><title type="html">Nobody Wanted a Referee. They Needed a Score.</title><link href="https://ahmednadar.com/nobody-wanted-a-referee/" rel="alternate" type="text/html" title="Nobody Wanted a Referee. They Needed a Score." /><published>2026-08-02T00:00:00+00:00</published><updated>2026-08-02T00:00:00+00:00</updated><id>https://ahmednadar.com/nobody-wanted-a-referee</id><content type="html" xml:base="https://ahmednadar.com/nobody-wanted-a-referee/"><![CDATA[<p>The golf handicap does not judge your swing. It does not rank you, coach you, or tell the club what it thinks of your game. It keeps score, consistently, in public, and that one narrow job is enough to let a weekend player and a scratch golfer compete on the same afternoon without either of them arguing about who is better. The handicap never referees the game. It makes the game refereeable, by putting the number where both players can see it.</p>

<p>That distinction is the most useful thing I have learned building software for an industry that runs on impressions.</p>

<p>A contractor bidding on a road resurfacing job is, more often than anyone in that business likes to admit, bidding on a guess. The tender says how many lane kilometres. It rarely says how many of those kilometres have had three complaints filed against them in the past year versus zero. So the contractor drives the route, or trusts a hunch, or prices in a margin for the parts they cannot see. None of that is incompetence. It is what you do when the only available inputs are observed rather than measured, and it is the same blindness I wrote about when I worked out <a href="/why-contractors-lose-50k-a-year-answering-the-phone-too-late/">what a missed phone call costs a contractor over a year</a>. The money leaks through the gap where nobody was counting.</p>

<p>A business improvement area asking Council for streetscape money is making the same bet from the other side of the table. “Residents keep complaining about our street” is true, and it is unfalsifiable in the way that makes a councillor’s staff nod politely and move to the next item on the agenda. A photo and a story were the only tools available, so a photo and a story is what got brought.</p>

<p>Both of those groups are making real financial decisions on evidence that would not survive ten seconds of scrutiny anywhere else in their business. Nobody designed it that way. The measurement never existed, so the decisions grew around its absence, and after enough years the absence stopped looking like a gap and started looking like the nature of the work.</p>

<p>What changes when the number exists is smaller and stranger than I expected. None of the underlying data is new, which is the part that still bothers me. <a href="/the-data-was-always-there/">It was always there</a>, published, free, sitting in a portal nobody had connected to anything. A public, ward-level record of how often something gets reported and how long it takes to resolve does not replace the site visit. It gives the site visit a starting point that is not a hunch. The contractor still drives the route. They drive it knowing which three blocks generate the demand. The BIA still stands at the podium. They stand there able to name the report count for that block and how long the city took to confirm the work, which turns an impression into something a staffer can check.</p>

<p>Neither of those is a verdict. That is the entire point, and it is the part I got wrong in my own head for the first few months.</p>

<p>The instinct when you build measurement into a system that never had it is to build the referee. You have the data, you can see who is slow, and the product that grades performance feels like the honest one. It is also the product nobody adopts, because the moment your software renders a judgment, every party in the system starts arguing with the judgment instead of using the data. You have handed them a fight rather than a tool, and fights are expensive to be inside of.</p>

<p><img src="https://ahmednadar.com/assets/images/posts/nobody-wanted-a-referee.png" alt="The referee renders a verdict and nobody adopts it; the scoreboard keeps score and the argument gets a starting point" /></p>

<p>The honest version of the civic story matters here too. Most of what gets reported in Toronto and fixed lands inside the city’s own published windows, the four-day pothole standard among them. That is not a story of a broken city, and I have never told it as one. The one place I do push is on the word itself, because <a href="https://solveto.ca/blog/completed-does-not-mean-fixed">a status is not a fact</a> and a ticket handed to another division should not count as a thing that got fixed. That is a scoring question, not a verdict about anyone’s effort. The crews were always doing the work. What was missing was not effort, it was a scoreboard both sides could see, and the reason it was missing is that keeping score in public is a commitment nobody had signed up for.</p>

<p>This generalizes past cities, and it is the thing I would tell anyone building into an industry that has run on judgment calls for a hundred years. You are not there to tell people they have been doing it wrong. They know the parts they cannot see, better than you do, and they have been compensating for them longer than your company has existed. What you can hand them is the number they never had, in a form they can check, so the argument they were already having stops being about whose impression is right.</p>

<p>The handicap worked because it was so limited. It answered one question, the same way, for everyone, and it left the game alone. Every durable measurement system I can think of made that same trade, and every product I have watched get rejected by an industry it was trying to help made the opposite one.</p>

<p>Keep score, and people bring you their decisions. Keep verdicts, and they bring you their lawyers.</p>]]></content><author><name>Ahmed Nadar</name></author><category term="product" /><category term="business" /><category term="civic-tech" /><category term="decisions" /><category term="measurement" /><summary type="html"><![CDATA[The golf handicap is one of the oldest fairness inventions in sport and it never judges anyone. Why the products that get adopted keep score instead of keeping verdicts.]]></summary><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://ahmednadar.com/assets/images/og-default.png" /><media:content medium="image" url="https://ahmednadar.com/assets/images/og-default.png" xmlns:media="http://search.yahoo.com/mrss/" /></entry><entry><title type="html">The Correction I Owed Him</title><link href="https://ahmednadar.com/the-correction-i-owed-him/" rel="alternate" type="text/html" title="The Correction I Owed Him" /><published>2026-08-01T00:00:00+00:00</published><updated>2026-08-01T00:00:00+00:00</updated><id>https://ahmednadar.com/the-correction-i-owed-him</id><content type="html" xml:base="https://ahmednadar.com/the-correction-i-owed-him/"><![CDATA[<p>Eight minutes into a radio segment on Newstalk 1010, John Tory asked me whether the ability to attach a photo to a 311 request was my work. He ran Toronto from 2014 to 2023 and now covers municipal affairs for the station, and he was being generous with a developer he had just met. I said yes.</p>

<p>That was wrong, and I knew it was wrong before the segment ended.</p>

<p>The City of Toronto built photo attachment. It shipped with the 311 mobile app in January 2022, alongside a rebuilt 311 web experience the previous November, and it was announced by Tory himself while he was still mayor. His own administration did it, years before I wrote a line of my platform. He had forgotten, which is a reasonable thing to forget about a nine-year term. I had not forgotten. I let it stand because the question arrived wrapped in a compliment and the yes was already halfway out of my mouth.</p>

<p>I build a platform whose entire argument is that residents deserve an accurate public record of what happened to their report. Somebody making that argument for a living does not get to accept credit for someone else’s work, however kindly it is offered. So I published the correction, in full, with the dates and the attribution, on the company blog where anyone looking for the claim would find the retraction attached to it.</p>

<p>The interesting part is not the ethics. The ethics were never in question. The interesting part is the mechanism that let it happen, because I have spent the last year building systems designed to catch exactly that class of error.</p>

<p>An agent working through a long task will accept a premise handed to it inside a well-formed question and carry that premise forward for fifteen more steps, never revisiting it, because nothing in <a href="/7-patterns-for-long-running-agent-harnesses/">the loop</a> was built to challenge an input that arrived looking correct. That is the failure I designed Rapidfy’s verification layer against, and it is <a href="/where-verification-actually-belongs-in-agent-harnesses/">where I have argued verification belongs</a>: before the step executes, not after the output looks wrong. The check costs ten seconds. Skipping it costs forty minutes of confident work in the wrong direction.</p>

<p>On air I was the agent without the gate. A premise arrived, it was flattering, it was fast, and I passed it through.</p>

<p>What made the correction cheap was catching it inside a day. The claim had been broadcast once, it had not been repeated, nobody had built anything on top of it, and no other outlet had picked it up and made it a fact. A retraction published in that window costs a paragraph. The same retraction three months later, after it has been quoted back at me in two interviews and appeared in someone’s write-up, costs credibility I could not buy back with any number of paragraphs. Errors do not stay the same size. They accrue interest in whatever direction the record travels.</p>

<p>There is a version of this that goes the other way, which is the one I keep watching people choose. You let the generous line stand because correcting it makes the segment awkward, and then you let it stand a second time because now you would be correcting yourself twice, and by the fourth time it is load-bearing. Nobody decided to build a false record. It accumulated, one small silence at a time, and each silence was cheaper than the correction until suddenly it was not.</p>

<p>The engineering habit and the civic habit turn out to be the same habit. Check the premise before you act on it. Pay the correction while it is still small. Put the fix in the same place the claim was made, so anyone who finds one finds the other.</p>

<p><img src="https://ahmednadar.com/assets/images/posts/the-correction-i-owed-him.png" alt="The cost of a correction rising over time: one paragraph if caught inside a day, credibility three months later" /></p>

<p>Tory was right about the thing that mattered, and he named it before I had said a word: you cannot track the outcome of your complaint, and the city does not yet have the technology in place to tell you. That gap is real, <a href="https://solveto.ca/blog/the-timeline">Toronto’s Auditor General named it in 2011</a>, and it is the one I built for. I would rather be correct about the small thing so the large thing carries weight.</p>

<p>A record you are willing to correct in public is the only kind anyone should trust, and that applies to the one my platform keeps for a resident exactly as much as it applies to the one I keep for myself.</p>]]></content><author><name>Ahmed Nadar</name></author><category term="civic-tech" /><category term="leadership" /><category term="engineering" /><category term="solveto" /><summary type="html"><![CDATA[A former mayor credited me on air with something the city built, and I said yes. What it cost to take that back, and why the cheapest correction is always the one you make earliest.]]></summary><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://ahmednadar.com/assets/images/og-default.png" /><media:content medium="image" url="https://ahmednadar.com/assets/images/og-default.png" xmlns:media="http://search.yahoo.com/mrss/" /></entry><entry><title type="html">Not Acceptable</title><link href="https://ahmednadar.com/not-acceptable/" rel="alternate" type="text/html" title="Not Acceptable" /><published>2026-07-28T00:00:00+00:00</published><updated>2026-07-28T00:00:00+00:00</updated><id>https://ahmednadar.com/not-acceptable</id><content type="html" xml:base="https://ahmednadar.com/not-acceptable/"><![CDATA[<p>The chair of a residents’ association emailed me yesterday to say he had tried to visit the platform I build and could not get in. He was gracious about it and assumed the fault was his. “My browsers were Not Acceptable,” he wrote. “Probably too old, I don’t keep up with OS and browser updates.”</p>

<p>He had quoted the error page back to me without realising it. Not Acceptable is HTTP 406. That is not a browser failing to render something. That is my server looking at his request and refusing to answer it.</p>

<p>I went and reproduced it with four old user agents. Every one came back 406. Then I opened the file I had never really read.</p>

<div class="language-ruby highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="k">class</span> <span class="nc">ApplicationController</span> <span class="o">&lt;</span> <span class="no">ActionController</span><span class="o">::</span><span class="no">Base</span>
  <span class="c1"># Only allow modern browsers supporting webp images, web push, badges,</span>
  <span class="c1"># import maps, CSS nesting, and CSS :has.</span>
  <span class="n">allow_browser</span> <span class="ss">versions: :modern</span>
<span class="k">end</span>
</code></pre></div></div>

<p>That line ships in the Rails 8 application template. It had been sitting in my controller since the day I generated the app, and I had never once asked what <code class="language-plaintext highlighter-rouge">:modern</code> meant. It means Safari 17.2, Chrome 120, Firefox 121, Opera 106. Roughly, anything released before December 2023. Everyone else gets <code class="language-plaintext highlighter-rouge">public/406-unsupported-browser.html</code> and no argument.</p>

<p>For a lot of products that is a defensible trade. For a civic platform it is a bad one. The people most likely to be running an old browser are the people on an ageing phone, or a library machine, or a work computer where IT decides what gets updated. Those are not edge cases in this line of work. They are a meaningful part of the point.</p>

<h2 id="the-comment-lists-six-reasons-i-checked-all-six">The comment lists six reasons. I checked all six.</h2>

<p>The instinct is to delete the line and move on. I nearly did, and I was wrong to want to, because the comment is making a technical claim: this app needs webp, web push, badges, import maps, CSS nesting and CSS <code class="language-plaintext highlighter-rouge">:has</code>. If any of that is true, removing the gate does not help anybody. It just replaces a clear error page with a broken one, which is worse, because now the user thinks the site is garbage rather than that their browser is old.</p>

<p>So I checked what the app actually serves.</p>

<p>CSS nesting and <code class="language-plaintext highlighter-rouge">:has</code> were the easy ones. Pull down every stylesheet the page loads and count.</p>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="k">for </span>f <span class="k">in </span>application blog dashboard map public reports tailwind<span class="p">;</span> <span class="k">do
  </span>curl <span class="nt">-s</span> <span class="s2">"https://example.ca/assets/</span><span class="nv">$f</span><span class="s2">.css"</span> <span class="nt">-o</span> c.css
  <span class="nb">echo</span> <span class="s2">"</span><span class="nv">$f</span><span class="s2">  :has=</span><span class="si">$(</span><span class="nb">grep</span> <span class="nt">-o</span> <span class="s1">':has('</span> c.css | <span class="nb">wc</span> <span class="nt">-l</span><span class="si">)</span><span class="s2">  nest=</span><span class="si">$(</span><span class="nb">grep</span> <span class="nt">-oE</span> <span class="s1">'\{[^{}]*&amp;'</span> c.css | <span class="nb">wc</span> <span class="nt">-l</span><span class="si">)</span><span class="s2">"</span>
<span class="k">done</span>
</code></pre></div></div>

<p>CSS nesting: zero occurrences, across all seven stylesheets, about 630KB of compiled CSS. The build tool had already flattened every nested rule into plain selectors, which is what build tools are for. The gate was protecting a feature the browser never sees.</p>

<p>CSS <code class="language-plaintext highlighter-rouge">:has()</code>: ten rules in the whole 630KB. Ten. And unsupported selectors are not a failure mode in CSS, they are the specification. A browser that does not understand <code class="language-plaintext highlighter-rouge">:has()</code> skips those rules and renders everything else. Ten skipped rules out of thousands is a cosmetic difference nobody would report as a bug.</p>

<p>WebP has been supported since Safari 14 and Chrome 32, both far older than any floor I would set. Web push and badges are opt-in features; a browser without them gets no push notifications and nothing else changes.</p>

<p>That is five of the six reasons, and none of them survived contact with the actual output.</p>

<h2 id="the-sixth-one-was-real-and-worse-than-the-comment-suggested">The sixth one was real, and worse than the comment suggested</h2>

<p>Import maps are different. I have seventeen pins and <code class="language-plaintext highlighter-rouge">javascript_importmap_tags</code> in every layout. A browser that does not support import maps natively does not degrade. It runs no JavaScript at all. No Turbo, no Stimulus, no forms, no maps. A blank-eyed page that looks fine and does nothing.</p>

<p>There used to be a safety net. importmap-rails 1.x shipped the es-module-shims polyfill so older browsers got a working page anyway. Version 2 dropped it. I confirmed which side of that line I was on by looking at what production actually sends:</p>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code>curl <span class="nt">-s</span> https://example.ca/ | <span class="nb">grep</span> <span class="nt">-oE</span> <span class="s1">'&lt;script[^&gt;]*(es-module-shims|importmap)[^&gt;]*&gt;'</span>
<span class="c"># &lt;script type="importmap" data-turbo-track="reload" nonce="..."&gt;</span>
</code></pre></div></div>

<p>One tag. No shim. So import maps are a hard requirement for this app, and the comment was right about exactly one of its six claims.</p>

<p>Native import map support arrives at Chrome 89 in March 2021, Firefox 108 in December 2022, and Safari 16.4 in March 2023. Compare that to what <code class="language-plaintext highlighter-rouge">:modern</code> was demanding and the gap is stark. The preset was turning away up to two and a half years of browsers that would have run the application perfectly.</p>

<h2 id="the-fix-and-the-trap-inside-it">The fix, and the trap inside it</h2>

<p>The answer was not to remove the gate. It was to set it to the truth.</p>

<div class="language-ruby highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="n">allow_browser</span> <span class="ss">versions: </span><span class="p">{</span>
  <span class="ss">safari: </span><span class="mf">16.4</span><span class="p">,</span> <span class="ss">chrome: </span><span class="mi">89</span><span class="p">,</span> <span class="ss">firefox: </span><span class="mi">108</span><span class="p">,</span> <span class="ss">edge: </span><span class="mi">89</span><span class="p">,</span> <span class="ss">opera: </span><span class="mi">76</span><span class="p">,</span> <span class="ss">ie: </span><span class="kp">false</span>
<span class="p">}</span>
</code></pre></div></div>

<p>That <code class="language-plaintext highlighter-rouge">ie: false</code> is the part I would have missed if I had trusted the change instead of testing it. <code class="language-plaintext highlighter-rouge">allow_browser</code> only blocks browsers you name. Anything not in the hash is allowed through, on the reasonable theory that you should not block a browser you have never heard of. Internet Explorer is a browser I have heard of, and it has no import map support at any version, so without that line it sails past the gate and gets the JavaScript-less page I had just spent an afternoon trying to prevent.</p>

<p>I found that because I wrote a throwaway integration test rather than reasoning about it:</p>

<div class="language-ruby highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nb">test</span> <span class="s2">"report the gate outcome for each browser"</span> <span class="k">do</span>
  <span class="no">UAS</span><span class="p">.</span><span class="nf">each</span> <span class="k">do</span> <span class="o">|</span><span class="n">label</span><span class="p">,</span> <span class="n">ua</span><span class="o">|</span>
    <span class="n">get</span> <span class="n">root_path</span><span class="p">,</span> <span class="ss">headers: </span><span class="p">{</span> <span class="s2">"HTTP_USER_AGENT"</span> <span class="o">=&gt;</span> <span class="n">ua</span> <span class="p">}</span>
    <span class="nb">puts</span> <span class="nb">format</span><span class="p">(</span><span class="s2">"%-24s %s"</span><span class="p">,</span> <span class="n">label</span><span class="p">,</span> <span class="n">response</span><span class="p">.</span><span class="nf">status</span> <span class="o">==</span> <span class="mi">406</span> <span class="p">?</span> <span class="s2">"BLOCKED"</span> <span class="p">:</span> <span class="s2">"allowed"</span><span class="p">)</span>
  <span class="k">end</span>
<span class="k">end</span>
</code></pre></div></div>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>Safari 9 (2015)          BLOCKED
Safari 16.4 (Mar 2023)   allowed
Firefox 52 (2017)        BLOCKED
Firefox 115 (2023)       allowed
Chrome 89 (Mar 2021)     allowed
IE 8                     allowed     ← before ie: false
</code></pre></div></div>

<p>Six lines of output, one of them wrong, caught in about a minute. Then I deleted the test, because its job was to answer a question and the question was answered.</p>

<h2 id="what-i-actually-take-from-this">What I actually take from this</h2>

<p>The framework default was not wrong. It was written for a general case and it is honest about what it assumes, right there in the comment. What I did wrong was inherit an assumption and never audit it, on a product whose entire premise is that residents should not be shut out of civic systems by technology decisions made without them.</p>

<p>The comment named six requirements. One was real. I would not have known which one without going and counting, and the counting took less than an hour.</p>

<p>Somebody has to be the person who reads the default. On a civic platform, it should probably be me, and it should probably not take a stranger writing me a polite email to make it happen.</p>]]></content><author><name>Ahmed Nadar</name></author><category term="rails" /><category term="ruby" /><category term="engineering" /><category term="accessibility" /><category term="civic-tech" /><category term="debugging" /><summary type="html"><![CDATA[A resident told me my civic platform rejected his browser. The cause was a Rails default I had never read, and five of the six reasons it gave turned out not to apply to my app.]]></summary><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://ahmednadar.com/assets/images/og-default.png" /><media:content medium="image" url="https://ahmednadar.com/assets/images/og-default.png" xmlns:media="http://search.yahoo.com/mrss/" /></entry><entry><title type="html">We Gathered the Data. Nobody Connected the Pipes.</title><link href="https://ahmednadar.com/open-data-governance-gap/" rel="alternate" type="text/html" title="We Gathered the Data. Nobody Connected the Pipes." /><published>2026-07-19T00:00:00+00:00</published><updated>2026-07-19T00:00:00+00:00</updated><id>https://ahmednadar.com/open-data-governance-gap</id><content type="html" xml:base="https://ahmednadar.com/open-data-governance-gap/"><![CDATA[<p>In 2005, TriMet in Portland and Google agreed on a file format for transit schedules. That is the whole origin story of GTFS. One schema definition, applied consistently, and within a few years hundreds of agencies across the world were publishing to it. What came next is the part nobody planned: trip planners, accessibility tools, transit research, service optimization platforms, an entire ecosystem built by people who never had to phone a single transit agency to ask what a column meant. The standard came first. The applications came because the standard existed and anyone could depend on it.</p>

<p>City infrastructure data never had that moment, and living without it is the reason so much civic open data sits published and unused.</p>

<p>The belief underneath all of this is simple enough that cities already agree with it in public. Municipal data should work the way roads do: maintained at public expense, open to everyone, built to carry load from whoever wants to use it. A road that exists on a map but has inconsistent signage, unpublished maintenance schedules, and no standard for connecting to the road next to it is not useful public infrastructure. Neither is a dataset that exists in a portal but cannot join to anything else without a phone call.</p>

<p>Publishing is the part cities have done. Most major cities now run a portal, and the datasets in them are real. What is missing downstream is governance: consistent schemas so two datasets join without manual cleaning, update cadences that are published and honored, version control that tells a developer whether the file they pulled last month still matches today’s, and documentation written for someone who does not work at the city and cannot find the person who created the dataset two administrations ago. Without that layer, an open data portal is a warehouse where nothing has a label.</p>

<p>The Toronto datasets that <a href="/the-data-was-always-there/">SolveTO runs on</a> are detailed in a way that still surprises me. I mapped <a href="/418000-assets-one-map-and-why-it-matters/">418,000 pieces of public infrastructure onto one map</a> before I understood what I was looking at. Catch basin records going back to the 1840s. Sewer network topology. Hydrant maintenance history. Flooding study designations. Traffic signal timing. These exist because city engineers have needed them for internal operations across generations, and publishing them was the right call. What using them as a connected system revealed is that the schemas do not always agree with each other, the update cadences are not always documented, and the datasets most relevant to a single infrastructure problem sometimes use geographic identifiers that will not cleanly join to the identifiers in the dataset sitting right beside them. The data is there. The plumbing between the data is not.</p>

<p><img src="https://ahmednadar.com/assets/images/posts/open-data-governance-gap.png" alt="Two cities publishing the same catch basin dataset with different identifiers and coordinate systems, and no way to join them" /></p>

<p>There is no schema standard that travels with a catch basin dataset and specifies its update frequency, its coordinate reference system, its identifier scheme, and its relationship to adjacent datasets. Every city publishing infrastructure data makes independent decisions on all four. Every developer who wants to work across more than one city starts over. That is not a technology gap. GTFS was a text file specification, and it moved an industry.</p>

<p>Some places are closing it. The EU Data Act is phasing in, with core provisions applying from 2025 and the rules on cloud interoperability and portability running through 2027, and it treats data sharing and interoperability as obligations rather than aspirations. Helsinki and Espoo publish open 3D models of their built environments that anyone with a browser uses for permit analysis, climate adaptation planning, and service design. Cambridge’s 2026 open data plan puts publication first and then names governance, standardization, and integration into planning workflows as the conditions that make the data worth anything once it is out. San Francisco has run a 311 dataset going back to 2008 on a daily update. New York maintains comprehensive open infrastructure data on published schedules. What those places share is that somebody’s job is the governance layer. The schema stays consistent because there is a standard someone is accountable to. The cadence gets met because missing it would be a public failure rather than an internal oversight.</p>

<p>Everywhere else, publishing a CSV gets described as transparency. It creates the appearance of openness while preserving the friction, and it is a comfortable thing to report at a council meeting because the work of maintaining it never appears on the agenda. This is the same shape as <a href="/government-ai-is-a-procurement-problem/">government’s AI problem being a procurement problem</a>: budgets fund launches and nobody owns the decade after. A dataset with no maintenance line is a pilot that was allowed to keep its URL.</p>

<p>Open data called infrastructure implies something that carries load: dependable, maintained, standardized enough that others build on it without asking permission first. Most cities have published data. Fewer have built that, and the difference is not in the dataset. It is in whether maintenance was treated as a civic obligation or as a launch.</p>

<p>The data layer a city publishes is either an invitation or an illusion. An invitation has clean schemas, stable identifiers, published cadences, version history, and documentation that assumes the reader does not work for the city. An illusion is a file drop with no commitment behind it. Most cities have issued the illusion, a few have built the invitation, and the ones that built it are the ones developers keep coming back to. Transit worked out which of the two it wanted to be in 2005, and everything else in the city is still deciding.</p>]]></content><author><name>Ahmed Nadar</name></author><category term="open-data" /><category term="city-intelligence" /><category term="infrastructure" /><category term="civic-tech" /><category term="governance" /><summary type="html"><![CDATA[Transit solved this in 2005 with one schema. City infrastructure data never got its version of that, and the difference between data that exists and data anyone can build on is the part of the open data movement that quietly failed.]]></summary><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://ahmednadar.com/assets/images/og-default.png" /><media:content medium="image" url="https://ahmednadar.com/assets/images/og-default.png" xmlns:media="http://search.yahoo.com/mrss/" /></entry><entry><title type="html">The Model Is Not the Product. The Harness Is.</title><link href="https://ahmednadar.com/the-model-is-not-the-product/" rel="alternate" type="text/html" title="The Model Is Not the Product. The Harness Is." /><published>2026-07-17T00:00:00+00:00</published><updated>2026-07-17T00:00:00+00:00</updated><id>https://ahmednadar.com/the-model-is-not-the-product</id><content type="html" xml:base="https://ahmednadar.com/the-model-is-not-the-product/"><![CDATA[<p>Teams that upgraded n8n from v2.4.7 to v2.6.3 this year watched their production workflows stop. The Vector Store Question Answer Tool started emitting tool schemas with a type of <code class="language-plaintext highlighter-rouge">None</code> instead of <code class="language-plaintext highlighter-rouge">object</code>, and both OpenAI and Anthropic rejected the calls outright. OpenAI returned <code class="language-plaintext highlighter-rouge">schema must be a JSON Schema of 'type: "object"'</code>. Anthropic returned <code class="language-plaintext highlighter-rouge">input_schema.type: Field required</code>. The fix was rolling back a version across infrastructure already serving real customers.</p>

<p>Nothing was wrong with the models. The models never saw the request. A tool definition drifted out of shape during a routine version bump, and everything downstream of it stopped being an AI system and started being an outage.</p>

<p>That is the shape of almost every agent failure I have watched, and it is why I think the industry is looking at the wrong layer. The frontier in 2026 is not prompt design, not fine-tuning, not retrieval tuning. It is <a href="/7-patterns-for-long-running-agent-harnesses/">harness engineering</a>: the tool orchestration, verification loops, context management, guardrails, and observability that make an agent survivable under production load. Teams shipping agents at scale have converged on the same formula, that an agent is a model plus a harness. Strip the harness and what remains is a stochastic actor with no executive layer, no error recovery, and no way to tell a good decision from a confidently stated wrong one.</p>

<p>The n8n case was the merciful version, because it broke loudly. The expensive failures do not throw. A tool call returns malformed JSON, and the model, rather than raising an exception, improvises around the broken response and carries on with corrupted context. No error. No log line. The monitoring dashboard stays green while users get wrong answers, and the degradation compounds across sessions until a human reads an output and notices something is off.</p>

<p>Multi-agent architectures give you a bigger version of the same problem. One agent hands incomplete context to the next. The receiving agent produces something confident and wrong. The pipeline continues, the next agent builds on that wrong foundation, and by the time the error surfaces it has been amplified by every step in between. Reconstructing what happened means tracing the full decision path across every model call, every tool invocation, every retrieval. Without that trace, debugging is archaeology.</p>

<p>Anthropic published a three-agent harness in April that takes this seriously. One agent plans, turning a prompt into a specification. One generates, building in chunks. One evaluates, testing the running product with tools like Playwright and filing precise bug reports. The reasoning behind the split is the part worth stealing: a model grading its own output skews positive, and as a context window fills, coherence degrades and the model starts wrapping up work early because it senses it is running out of room. A separate skeptical evaluator gives the generator something to push against, and the agents coordinate through contracts that define what done means before any code gets written.</p>

<p><img src="https://ahmednadar.com/assets/images/posts/the-model-is-not-the-product.png" alt="A three-stage harness, plan then generate then evaluate, with a verification gate between each step" /></p>

<p>I built <a href="/agentic-rapid-rails-app-in-second/">Rapidfy</a> around the same instinct, the one I argued for in <a href="/where-verification-actually-belongs-in-agent-harnesses/">where verification belongs</a>. The harness checks the agent’s plan before execution, not after. Between every significant step it asks three questions: does this proposed action violate a known constraint, does the last step’s output match the expected schema, is the agent still inside <a href="/context-window-economics-for-ai-agents/">the context budget</a> the task was given. If any check fails, the loop stops and flags it rather than letting the agent proceed with corrupted context and a confident tone.</p>

<p>That costs ten to fifteen seconds per significant step, and I took the trade on purpose. When an agent spends forty minutes down a wrong path because nobody checked its plan at step three, the ten-second check at step three was cheap. The failure I was designing against was never the spectacular crash. It was the plausible, confident, wrong answer at the end of a long run, the one that reads as correct until somebody who knows the domain notices it took a wrong turn fifteen steps back.</p>

<p>The observability gap cuts the same way. Non-deterministic systems rarely crash. They degrade. They loop. They pick the wrong tool on the fourth call instead of the first. They make decisions on incomplete context, and that wrongness shows up as slightly worse output, slightly higher latency, slightly odd cost. Each signal on its own reads as noise. Only the trace shows the pattern. The teams winning with agents in production instrument every step, not to find bugs in advance, but to reconstruct what happened when something goes wrong, and something always goes wrong.</p>

<p>Gartner expects more than forty percent of agentic AI projects to be canceled by the end of 2027. That number gets quoted as a verdict on AI, and it is the wrong reading. It is a forecast about teams that shipped agents without harnesses and are now paying the compounding cost of that choice. The models are not the problem. The missing engineering discipline is.</p>

<p>None of this work is glamorous. A verification loop does not demo well. Observability infrastructure is not a feature anyone requests at a roadmap meeting. Context budget management has never made a conference keynote. The harness is the invisible layer that makes the visible layer trustworthy, and invisible layers are the first thing cut when a deadline moves.</p>

<p>The model is what gets the demo. The harness is what survives the version bump.</p>]]></content><author><name>Ahmed Nadar</name></author><category term="AI" /><category term="agents" /><category term="harness" /><category term="engineering" /><category term="production" /><summary type="html"><![CDATA[An n8n version bump stopped enterprise workflows dead this year, and the model was never the thing that broke. What separates agents that ship from agents that demo is the deterministic infrastructure wrapped around them.]]></summary><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://ahmednadar.com/assets/images/og-default.png" /><media:content medium="image" url="https://ahmednadar.com/assets/images/og-default.png" xmlns:media="http://search.yahoo.com/mrss/" /></entry><entry><title type="html">Rails Did Not Get Left Behind</title><link href="https://ahmednadar.com/rails-did-not-get-left-behind/" rel="alternate" type="text/html" title="Rails Did Not Get Left Behind" /><published>2026-07-15T00:00:00+00:00</published><updated>2026-07-15T00:00:00+00:00</updated><id>https://ahmednadar.com/rails-did-not-get-left-behind</id><content type="html" xml:base="https://ahmednadar.com/rails-did-not-get-left-behind/"><![CDATA[<p>Somewhere in 2024, a large number of Ruby developers made a decision they have never revisited. The SDKs shipped in Python first. The tutorials were in Python. Research teams published their reference implementations in Python. The conclusion followed on its own: if you want to build with these models, you leave Rails behind. Nobody announced that decision. It accumulated, one abandoned side project at a time, and most of the people who made it have not gone back to check whether it still holds.</p>

<p>It does not, and the gap between what people believe about Ruby and what is sitting in their Gemfile has gotten wide enough to cost them work.</p>

<p>I care about this because a stack choice made on a stale assumption is not an engineering decision. It is an inherited one. You should pick a language because of what the job in front of you needs, which means looking at what the tools do today rather than at what a blog post said two years ago.</p>

<p>So here is the state of it. The official Anthropic Ruby SDK passed version 1.59.0 in late July, runs on Ruby 3.2.0 or later, and gives you the full Claude API: structured tool definitions, streaming, and the tool runner patterns that make a multi-step agent something you configure rather than scaffold from scratch. RubyLLM, the community multi-provider framework, reached 1.16.0 in June and puts OpenAI, Anthropic, Gemini, Bedrock, Mistral, DeepSeek, OpenRouter, Perplexity, and Ollama behind one interface, plus anything that speaks an OpenAI-compatible API. Its Rails layer stores conversation history in ActiveRecord and handles streaming and context across sessions without you building persistence twice. These are not wrappers trailing the Python SDKs by six months. They are production tools with production adoption.</p>

<p>Choosing between them is a real decision with an easy answer most of the time. The official gem is right when your app talks only to Claude and you want new Claude features the day Anthropic ships them, because you get the exact API shape Anthropic intended. RubyLLM is right when you want provider switching and a chat history layer you did not have to design. A Gemfile carries both without conflict, the official gem handling the Claude-specific corner of the app while RubyLLM handles the multi-provider workflow.</p>

<p>Rails then does the thing it has always been good at, which is orchestration. The controller receives input and shapes it into a prompt. The model layer stores conversation history and tracks state across sessions. The service layer calls the provider, handles retries, and normalizes responses before anything reaches the controller. SolidQueue takes the long steps, the ones where an agent runs a sequence of tool calls across several minutes and has no business blocking a request. Request comes in, job is enqueued, agent runs, result comes back. That is not a workaround for Rails missing something. That is the framework doing its job.</p>

<p>The honest gap is the Agent SDK. Anthropic shipped the library that powers Claude Code’s internal loop, and it is programmable in Python and TypeScript only. A short Agent SDK program replaces hundreds of lines of custom scaffolding, because the context management, the tool runner loop, and interruption recovery are built in and hardened by every Claude Code user in the world. There is no official Ruby port. Nikita Sinenko <a href="https://nsinenko.com/claude-agent-sdk-ruby/">laid out the three real options</a> on July 1: hand-roll the agent loop over the official gem, use the community <code class="language-plaintext highlighter-rouge">claude-agent-sdk</code> gem that mirrors the Python surface by wrapping the CLI as a subprocess, or shell out to the Claude CLI yourself. All three work. None of them is the same thing as an SDK Anthropic maintains for you.</p>

<p>Whether that gap matters depends on what you are building, and for most teams it does not. Production Rails apps integrating AI are not building agents as complex as Claude Code. They are adding model capability at specific points in a workflow that already exists: summarize this document, classify this input, produce this structured output, run this research task from a background job. The Anthropic gem and RubyLLM cover all of it. The gap shows up at the top end, on long-horizon autonomous agents with complex state management, and if that is what you are building today, Python is the pragmatic call.</p>

<p>I built <a href="/agentic-rapid-rails-app-in-second/">Rapidfy</a> in Ruby. It generates full Rails applications from a spec using a model and a bash loop, with a verification layer between every step that checks the model’s proposed action against the constraints the spec defined. The Anthropic gem makes the API calls. SolidQueue runs the background steps. ActiveRecord holds the agent’s state between them. Nothing about that required leaving Ruby. The wall I hit was not language support. It was the same wall every agentic system hits: <a href="/context-window-economics-for-ai-agents/">context budget management</a>, <a href="/where-verification-actually-belongs-in-agent-harnesses/">where verification belongs</a>, and what to do when the model proposes an action that contradicts something it established three steps ago.</p>

<p>Those are not language problems. They are <a href="/7-patterns-for-long-running-agent-harnesses/">harness problems</a>, and they exist in every runtime. The Python Agent SDK makes them easier to manage in Python. The Ruby SDK makes the API calls easy and leaves the harness architecture to you. That is a real difference and it is worth naming, but it is the difference between a twenty-line setup and a two-hundred-line setup at the hardest end of the problem, not the difference between a viable AI language and a dead one.</p>

<p><img src="https://ahmednadar.com/assets/images/posts/rails-did-not-get-left-behind.png" alt="Ruby, Python and TypeScript compared: the official Anthropic SDK and a multi-provider framework in all three, the Agent SDK in Python and TypeScript only" /></p>

<p>The narrative that AI tooling passed Ruby by was never quite accurate. Python got the attention first, and the Agent SDK still has no Ruby port. Both of those are true, and the ecosystem for building real AI-augmented Rails applications is more complete than the people repeating that narrative have checked.</p>

<p>The developers who wrote Ruby off because the first tutorial they opened was in Python skipped the question worth asking: what does this job need, and what does this framework already do well? In 2026 the answer covers most of it, and the ones still waiting for permission to find out are the ones losing the time.</p>]]></content><author><name>Ahmed Nadar</name></author><category term="rails" /><category term="ruby" /><category term="AI" /><category term="LLM" /><category term="anthropic" /><category term="engineering" /><summary type="html"><![CDATA[A lot of Ruby developers decided in 2024 that AI work meant leaving Rails, and never went back to check. Here is what the Ruby toolchain looks like in 2026, including the one gap that is real.]]></summary><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://ahmednadar.com/assets/images/og-default.png" /><media:content medium="image" url="https://ahmednadar.com/assets/images/og-default.png" xmlns:media="http://search.yahoo.com/mrss/" /></entry></feed>