<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Iqbal Ahmed — All writing</title><description>A technical archive by a staff software engineer — applied AI, engineering at scale, neurodiversity, and human performance. Built for engineers and the AI-curious alike.</description><link>https://iqbalahmed.dev/</link><language>en-gb</language><item><title>Distributed State in Large-Scale LLM Orchestration</title><link>https://iqbalahmed.dev/blog/distributed-state-llm-orchestration/</link><guid isPermaLink="true">https://iqbalahmed.dev/blog/distributed-state-llm-orchestration/</guid><description>How we held sub-50ms consistency across regions for ephemeral model state — and why most teams reach for consensus protocols they do not need.</description><pubDate>Tue, 12 May 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;When you put a large language model behind a global API, the model weights are
the easy part. They are immutable, cacheable, and embarrassingly parallel. The
hard part is everything that &lt;em&gt;changes&lt;/em&gt; during a request: the conversation
buffer, the tool-call ledger, the partial KV cache, the rate-limit counters.
That is &lt;strong&gt;state&lt;/strong&gt;, and state is where distributed systems go to die.&lt;/p&gt;
&lt;section class=&quot;not-prose my-10 border-2 border-on-background bg-surface-container-low&quot; aria-label=&quot;Key Takeaways&quot;&gt; &lt;div class=&quot;flex items-center justify-between px-grid-margin py-3 border-b-2 border-on-background bg-on-background text-surface&quot;&gt; &lt;span class=&quot;font-label-mono text-label-mono uppercase tracking-widest font-bold&quot;&gt;TL;DR // Key Takeaways&lt;/span&gt; &lt;span class=&quot;font-technical-data text-technical-data opacity-70&quot;&gt;ANSWER_FIRST&lt;/span&gt; &lt;/div&gt; &lt;div class=&quot;px-grid-margin py-4&quot;&gt; &lt;ul class=&quot;space-y-3&quot;&gt; &lt;li class=&quot;flex gap-3 font-body-md text-body-md&quot;&gt; &lt;span class=&quot;font-label-mono text-technical-data text-secondary font-bold pt-1&quot;&gt; 01 &lt;/span&gt; &lt;span&gt;Most LLM “state” is &lt;em&gt;session-scoped and ephemeral&lt;/em&gt; — it does not need linearizable consensus.&lt;/span&gt; &lt;/li&gt;&lt;li class=&quot;flex gap-3 font-body-md text-body-md&quot;&gt; &lt;span class=&quot;font-label-mono text-technical-data text-secondary font-bold pt-1&quot;&gt; 02 &lt;/span&gt; &lt;span&gt;Pin a session to a region with sticky routing; replicate lazily, reconcile on failover.&lt;/span&gt; &lt;/li&gt;&lt;li class=&quot;flex gap-3 font-body-md text-body-md&quot;&gt; &lt;span class=&quot;font-label-mono text-technical-data text-secondary font-bold pt-1&quot;&gt; 03 &lt;/span&gt; &lt;span&gt;Reserve Raft/Paxos for the small set of values that genuinely must be globally agreed (quotas, billing).&lt;/span&gt; &lt;/li&gt;&lt;li class=&quot;flex gap-3 font-body-md text-body-md&quot;&gt; &lt;span class=&quot;font-label-mono text-technical-data text-secondary font-bold pt-1&quot;&gt; 04 &lt;/span&gt; &lt;span&gt;We cut p99 cross-region read latency from 180ms to 47ms by &lt;em&gt;removing&lt;/em&gt; a consensus layer, not adding one.&lt;/span&gt; &lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; &lt;/section&gt;
&lt;h2 id=&quot;the-mistake-treating-chat-state-like-a-bank-ledger&quot;&gt;The mistake: treating chat state like a bank ledger&lt;/h2&gt;
&lt;p&gt;The instinct of a senior engineer who has done finance work — and I have spent
years there — is to reach for strong consistency by default. If you have ever
debugged a double-spend, linearizability feels like safety. So the first design
we shipped put every session’s state machine behind a Raft group.&lt;/p&gt;
&lt;p&gt;It worked. It was also four times slower than it needed to be, because we were
paying the cost of global agreement for data that exactly one user would ever
read, within a few seconds, from one region.&lt;/p&gt;
&lt;aside class=&quot;not-prose my-8 border-2 border-on-background border-l-[6px] border-error bg-error-container/30&quot; role=&quot;note&quot;&gt; &lt;div class=&quot;flex items-center gap-2 px-4 py-2 border-b-2 border-on-background bg-surface/60&quot;&gt; &lt;span class=&quot;font-label-mono text-technical-data font-bold w-5 h-5 flex items-center justify-center border border-on-background&quot;&gt;!&lt;/span&gt; &lt;span class=&quot;font-label-mono text-label-mono uppercase tracking-widest font-bold&quot;&gt; Consensus is not free &lt;/span&gt; &lt;/div&gt; &lt;div class=&quot;px-4 py-3 font-body-md text-body-md leading-relaxed [&amp;&gt;*+*]:mt-3&quot;&gt; &lt;p&gt;A Raft write commits only after a majority of replicas acknowledge it. Across
three regions that is, at minimum, one inter-region round trip on the critical
path of &lt;em&gt;every&lt;/em&gt; token you stream. You will feel it at p99 long before you feel
it in a benchmark.&lt;/p&gt; &lt;/div&gt; &lt;/aside&gt;
&lt;h2 id=&quot;the-reframe-classify-state-by-who-reads-it&quot;&gt;The reframe: classify state by who reads it&lt;/h2&gt;
&lt;p&gt;The unlock was boring and effective — we drew a table of every piece of state
and asked two questions: &lt;em&gt;who reads it&lt;/em&gt; and &lt;em&gt;how bad is a stale read&lt;/em&gt;.&lt;/p&gt;
&lt;div class=&quot;expressive-code&quot;&gt;&lt;link rel=&quot;stylesheet&quot; href=&quot;https://iqbalahmed.dev/_astro/ec.rxowf.css&quot;/&gt;&lt;script type=&quot;module&quot; src=&quot;https://iqbalahmed.dev/_astro/ec.0vx5m.js&quot;&gt;&lt;/script&gt;&lt;figure class=&quot;frame has-title&quot;&gt;&lt;figcaption class=&quot;header&quot;&gt;&lt;span class=&quot;title&quot;&gt;state-policy.ts&lt;/span&gt;&lt;/figcaption&gt;&lt;pre data-language=&quot;ts&quot; class=&quot;wrap&quot; style=&quot;--ecMaxLine:122ch&quot;&gt;&lt;code&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;code&quot;&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;type&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#B392F0;--1:#6F42C1&quot;&gt;Consistency&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#9ECBFF;--1:#032F62&quot;&gt;&amp;#39;session-local&amp;#39;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;|&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#9ECBFF;--1:#032F62&quot;&gt;&amp;#39;eventually-global&amp;#39;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;|&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#9ECBFF;--1:#032F62&quot;&gt;&amp;#39;linearizable&amp;#39;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;code&quot;&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;code&quot;&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;interface&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#B392F0;--1:#6F42C1&quot;&gt;StatePolicy&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot; style=&quot;--ecIndent:2ch&quot;&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;--0:#FFAB70;--1:#AE4B07&quot;&gt;key&lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#79B8FF;--1:#005CC5&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot; style=&quot;--ecIndent:2ch&quot;&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;--0:#FFAB70;--1:#AE4B07&quot;&gt;readers&lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#9ECBFF;--1:#032F62&quot;&gt;&amp;#39;single-session&amp;#39;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;|&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#9ECBFF;--1:#032F62&quot;&gt;&amp;#39;cross-session&amp;#39;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot; style=&quot;--ecIndent:2ch&quot;&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;--0:#FFAB70;--1:#AE4B07&quot;&gt;staleReadCost&lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#9ECBFF;--1:#032F62&quot;&gt;&amp;#39;invisible&amp;#39;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;|&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#9ECBFF;--1:#032F62&quot;&gt;&amp;#39;annoying&amp;#39;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;|&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#9ECBFF;--1:#032F62&quot;&gt;&amp;#39;incorrect&amp;#39;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot; style=&quot;--ecIndent:2ch&quot;&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;--0:#FFAB70;--1:#AE4B07&quot;&gt;consistency&lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#B392F0;--1:#6F42C1&quot;&gt;Consistency&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;code&quot;&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;code&quot;&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;code&quot;&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;const&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#79B8FF;--1:#005CC5&quot;&gt;policies&lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#B392F0;--1:#6F42C1&quot;&gt;StatePolicy&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;[] &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; [&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot; style=&quot;--ecIndent:2ch&quot;&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;{ key: &lt;/span&gt;&lt;span style=&quot;--0:#9ECBFF;--1:#032F62&quot;&gt;&amp;#39;conversation_buffer&amp;#39;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;, readers: &lt;/span&gt;&lt;span style=&quot;--0:#9ECBFF;--1:#032F62&quot;&gt;&amp;#39;single-session&amp;#39;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;, staleReadCost: &lt;/span&gt;&lt;span style=&quot;--0:#9ECBFF;--1:#032F62&quot;&gt;&amp;#39;invisible&amp;#39;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;, consistency: &lt;/span&gt;&lt;span style=&quot;--0:#9ECBFF;--1:#032F62&quot;&gt;&amp;#39;session-local&amp;#39;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; },&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot; style=&quot;--ecIndent:2ch&quot;&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;{ key: &lt;/span&gt;&lt;span style=&quot;--0:#9ECBFF;--1:#032F62&quot;&gt;&amp;#39;tool_call_ledger&amp;#39;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;,    readers: &lt;/span&gt;&lt;span style=&quot;--0:#9ECBFF;--1:#032F62&quot;&gt;&amp;#39;single-session&amp;#39;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;, staleReadCost: &lt;/span&gt;&lt;span style=&quot;--0:#9ECBFF;--1:#032F62&quot;&gt;&amp;#39;annoying&amp;#39;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;,  consistency: &lt;/span&gt;&lt;span style=&quot;--0:#9ECBFF;--1:#032F62&quot;&gt;&amp;#39;session-local&amp;#39;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; },&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot; style=&quot;--ecIndent:2ch&quot;&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;{ key: &lt;/span&gt;&lt;span style=&quot;--0:#9ECBFF;--1:#032F62&quot;&gt;&amp;#39;usage_quota&amp;#39;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;,         readers: &lt;/span&gt;&lt;span style=&quot;--0:#9ECBFF;--1:#032F62&quot;&gt;&amp;#39;cross-session&amp;#39;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;,  staleReadCost: &lt;/span&gt;&lt;span style=&quot;--0:#9ECBFF;--1:#032F62&quot;&gt;&amp;#39;incorrect&amp;#39;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;, consistency: &lt;/span&gt;&lt;span style=&quot;--0:#9ECBFF;--1:#032F62&quot;&gt;&amp;#39;linearizable&amp;#39;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; },&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot; style=&quot;--ecIndent:2ch&quot;&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;{ key: &lt;/span&gt;&lt;span style=&quot;--0:#9ECBFF;--1:#032F62&quot;&gt;&amp;#39;model_router_weights&amp;#39;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;,readers: &lt;/span&gt;&lt;span style=&quot;--0:#9ECBFF;--1:#032F62&quot;&gt;&amp;#39;cross-session&amp;#39;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;,  staleReadCost: &lt;/span&gt;&lt;span style=&quot;--0:#9ECBFF;--1:#032F62&quot;&gt;&amp;#39;annoying&amp;#39;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;,  consistency: &lt;/span&gt;&lt;span style=&quot;--0:#9ECBFF;--1:#032F62&quot;&gt;&amp;#39;eventually-global&amp;#39;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; },&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;code&quot;&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;];&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div class=&quot;copy&quot;&gt;&lt;div aria-live=&quot;polite&quot;&gt;&lt;/div&gt;&lt;button title=&quot;Copy to clipboard&quot; data-copied=&quot;Copied!&quot; data-code=&quot;type Consistency = &apos;session-local&apos; | &apos;eventually-global&apos; | &apos;linearizable&apos;;interface StatePolicy {  key: string;  readers: &apos;single-session&apos; | &apos;cross-session&apos;;  staleReadCost: &apos;invisible&apos; | &apos;annoying&apos; | &apos;incorrect&apos;;  consistency: Consistency;}const policies: StatePolicy[] = [  { key: &apos;conversation_buffer&apos;, readers: &apos;single-session&apos;, staleReadCost: &apos;invisible&apos;, consistency: &apos;session-local&apos; },  { key: &apos;tool_call_ledger&apos;,    readers: &apos;single-session&apos;, staleReadCost: &apos;annoying&apos;,  consistency: &apos;session-local&apos; },  { key: &apos;usage_quota&apos;,         readers: &apos;cross-session&apos;,  staleReadCost: &apos;incorrect&apos;, consistency: &apos;linearizable&apos; },  { key: &apos;model_router_weights&apos;,readers: &apos;cross-session&apos;,  staleReadCost: &apos;annoying&apos;,  consistency: &apos;eventually-global&apos; },];&quot;&gt;&lt;div&gt;&lt;/div&gt;&lt;/button&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;Once you sort by that last column, the architecture writes itself. The vast
majority of rows are &lt;code&gt;session-local&lt;/code&gt;. They want &lt;strong&gt;sticky routing&lt;/strong&gt;, not
consensus.&lt;/p&gt;
&lt;h3 id=&quot;session-local-pin-and-replicate-lazily&quot;&gt;Session-local: pin and replicate lazily&lt;/h3&gt;
&lt;p&gt;We route a session to a home region on first contact and keep it there with a
signed routing token. State lives in that region’s fast store. We replicate
asynchronously to one neighbour purely for failover. If the home region dies
mid-conversation, the user gets one slightly stale turn — &lt;code&gt;annoying&lt;/code&gt;, not
&lt;code&gt;incorrect&lt;/code&gt; — and we reconcile forward.&lt;/p&gt;
&lt;h3 id=&quot;linearizable-keep-the-set-tiny&quot;&gt;Linearizable: keep the set tiny&lt;/h3&gt;
&lt;p&gt;Only quotas and billing counters are truly global. Those — and only those —
sit behind the consensus layer. Because the set is small and writes are
infrequent relative to token streaming, the round-trip cost is amortised across
thousands of cheap session-local operations.&lt;/p&gt;
&lt;h2 id=&quot;the-result&quot;&gt;The result&lt;/h2&gt;
&lt;p&gt;The latency win came from &lt;em&gt;deletion&lt;/em&gt;. We removed consensus from the hot path
and the p99 cross-region read dropped from 180ms to 47ms. The lesson generalises
well beyond LLMs: &lt;strong&gt;the cheapest distributed system is the one you talk yourself
out of building.&lt;/strong&gt;&lt;/p&gt;
&lt;aside class=&quot;not-prose my-8 border-2 border-on-background border-l-[6px] border-secondary bg-secondary-fixed/40&quot; role=&quot;note&quot;&gt; &lt;div class=&quot;flex items-center gap-2 px-4 py-2 border-b-2 border-on-background bg-surface/60&quot;&gt; &lt;span class=&quot;font-label-mono text-technical-data font-bold w-5 h-5 flex items-center justify-center border border-on-background&quot;&gt;→&lt;/span&gt; &lt;span class=&quot;font-label-mono text-label-mono uppercase tracking-widest font-bold&quot;&gt; INSIGHT &lt;/span&gt; &lt;/div&gt; &lt;div class=&quot;px-4 py-3 font-body-md text-body-md leading-relaxed [&amp;&gt;*+*]:mt-3&quot;&gt; &lt;p&gt;Before you add a consensus protocol, write the staleness table. If most of your
rows say “invisible” or “annoying”, you are about to over-engineer.&lt;/p&gt; &lt;/div&gt; &lt;/aside&gt;</content:encoded><category>AI</category><category>distributed-systems</category><category>llm</category><category>infrastructure</category><category>consistency</category><author>hello@iqbalahmed.dev</author></item><item><title>Why Your LLM Eval Harness Is Quietly Lying to You</title><link>https://iqbalahmed.dev/blog/eval-harness-lying/</link><guid isPermaLink="true">https://iqbalahmed.dev/blog/eval-harness-lying/</guid><description>Offline eval scores that climb while production quality flatlines are the default failure mode of applied AI. Here is how the gap opens, and how to close it.</description><pubDate>Wed, 29 Apr 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;Every team I have advised in the last two years has the same chart: an offline
eval score marching confidently upward, release over release. And every one of
them, eventually, has the same second chart: a production-quality metric that
refuses to move. The eval harness is not broken. It is measuring something real.
It is just not measuring the thing you ship.&lt;/p&gt;
&lt;section class=&quot;not-prose my-10 border-2 border-on-background bg-surface-container-low&quot; aria-label=&quot;Key Takeaways&quot;&gt; &lt;div class=&quot;flex items-center justify-between px-grid-margin py-3 border-b-2 border-on-background bg-on-background text-surface&quot;&gt; &lt;span class=&quot;font-label-mono text-label-mono uppercase tracking-widest font-bold&quot;&gt;TL;DR // Key Takeaways&lt;/span&gt; &lt;span class=&quot;font-technical-data text-technical-data opacity-70&quot;&gt;ANSWER_FIRST&lt;/span&gt; &lt;/div&gt; &lt;div class=&quot;px-grid-margin py-4&quot;&gt; &lt;ul class=&quot;space-y-3&quot;&gt; &lt;li class=&quot;flex gap-3 font-body-md text-body-md&quot;&gt; &lt;span class=&quot;font-label-mono text-technical-data text-secondary font-bold pt-1&quot;&gt; 01 &lt;/span&gt; &lt;span&gt;Static eval sets &lt;em&gt;rot&lt;/em&gt; the moment your prompt or model changes the distribution of inputs.&lt;/span&gt; &lt;/li&gt;&lt;li class=&quot;flex gap-3 font-body-md text-body-md&quot;&gt; &lt;span class=&quot;font-label-mono text-technical-data text-secondary font-bold pt-1&quot;&gt; 02 &lt;/span&gt; &lt;span&gt;Contamination is the silent killer: your “held-out” set leaked into pre-training.&lt;/span&gt; &lt;/li&gt;&lt;li class=&quot;flex gap-3 font-body-md text-body-md&quot;&gt; &lt;span class=&quot;font-label-mono text-technical-data text-secondary font-bold pt-1&quot;&gt; 03 &lt;/span&gt; &lt;span&gt;LLM-as-judge inherits the judge’s biases — verbosity, position, and self-preference.&lt;/span&gt; &lt;/li&gt;&lt;li class=&quot;flex gap-3 font-body-md text-body-md&quot;&gt; &lt;span class=&quot;font-label-mono text-technical-data text-secondary font-bold pt-1&quot;&gt; 04 &lt;/span&gt; &lt;span&gt;The fix is a &lt;em&gt;living&lt;/em&gt; eval: sampled from production, refreshed weekly, and adversarially audited.&lt;/span&gt; &lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; &lt;/section&gt;
&lt;h2 id=&quot;three-ways-the-gap-opens&quot;&gt;Three ways the gap opens&lt;/h2&gt;
&lt;h3 id=&quot;1-distribution-drift-you-caused-yourself&quot;&gt;1. Distribution drift you caused yourself&lt;/h3&gt;
&lt;p&gt;You tuned the prompt to handle a class of tricky inputs. Users notice the
product got better at those, so they send &lt;em&gt;more&lt;/em&gt; of them. Your eval set, frozen
in March, still reflects the March input mix. Your score goes up; your users’
experience is governed by a distribution your harness has never seen.&lt;/p&gt;
&lt;h3 id=&quot;2-contamination&quot;&gt;2. Contamination&lt;/h3&gt;
&lt;p&gt;If you are evaluating on a public benchmark, assume it is in the training data.&lt;/p&gt;
&lt;aside class=&quot;not-prose my-8 border-2 border-on-background border-l-[6px] border-error bg-error-container/30&quot; role=&quot;note&quot;&gt; &lt;div class=&quot;flex items-center gap-2 px-4 py-2 border-b-2 border-on-background bg-surface/60&quot;&gt; &lt;span class=&quot;font-label-mono text-technical-data font-bold w-5 h-5 flex items-center justify-center border border-on-background&quot;&gt;!&lt;/span&gt; &lt;span class=&quot;font-label-mono text-label-mono uppercase tracking-widest font-bold&quot;&gt; The held-out set that wasn&amp;#39;t &lt;/span&gt; &lt;/div&gt; &lt;div class=&quot;px-4 py-3 font-body-md text-body-md leading-relaxed [&amp;&gt;*+*]:mt-3&quot;&gt; &lt;p&gt;We once “improved” a summarisation score by four points after a model upgrade.
The improvement was entirely on examples that turned out to be verbatim in the
new model’s pre-training corpus. On freshly written inputs, the score was flat.&lt;/p&gt; &lt;/div&gt; &lt;/aside&gt;
&lt;h3 id=&quot;3-the-judge-has-opinions&quot;&gt;3. The judge has opinions&lt;/h3&gt;
&lt;p&gt;LLM-as-judge is the only scalable option for open-ended quality, but a judge
model is not neutral. The well-documented biases are real and they compound:&lt;/p&gt;
&lt;div class=&quot;expressive-code&quot;&gt;&lt;link rel=&quot;stylesheet&quot; href=&quot;https://iqbalahmed.dev/_astro/ec.rxowf.css&quot;/&gt;&lt;script type=&quot;module&quot; src=&quot;https://iqbalahmed.dev/_astro/ec.0vx5m.js&quot;&gt;&lt;/script&gt;&lt;figure class=&quot;frame has-title&quot;&gt;&lt;figcaption class=&quot;header&quot;&gt;&lt;span class=&quot;title&quot;&gt;debias_judge.py&lt;/span&gt;&lt;/figcaption&gt;&lt;pre data-language=&quot;python&quot; class=&quot;wrap&quot; style=&quot;--ecMaxLine:81ch&quot;&gt;&lt;code&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;code&quot;&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;def&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#B392F0;--1:#6F42C1&quot;&gt;score&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;(answer_a: &lt;/span&gt;&lt;span style=&quot;--0:#79B8FF;--1:#005CC5&quot;&gt;str&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;, answer_b: &lt;/span&gt;&lt;span style=&quot;--0:#79B8FF;--1:#005CC5&quot;&gt;str&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;, judge) -&amp;gt; &lt;/span&gt;&lt;span style=&quot;--0:#79B8FF;--1:#005CC5&quot;&gt;str&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;:&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot; style=&quot;--ecIndent:4ch&quot;&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;--0:#99A0A6;--1:#616972&quot;&gt;# Mitigate POSITION bias: ask twice, swap order, require agreement.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot; style=&quot;--ecIndent:4ch&quot;&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;first  &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; judge.compare(answer_a, answer_b)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot; style=&quot;--ecIndent:4ch&quot;&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;second &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; judge.compare(answer_b, answer_a)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot; style=&quot;--ecIndent:4ch&quot;&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; first &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#9ECBFF;--1:#032F62&quot;&gt;&amp;quot;A&amp;quot;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;and&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; second &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#9ECBFF;--1:#032F62&quot;&gt;&amp;quot;B&amp;quot;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;:&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot; style=&quot;--ecIndent:8ch&quot;&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#9ECBFF;--1:#032F62&quot;&gt;&amp;quot;a_wins&amp;quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot; style=&quot;--ecIndent:4ch&quot;&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; first &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#9ECBFF;--1:#032F62&quot;&gt;&amp;quot;B&amp;quot;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;and&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; second &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#9ECBFF;--1:#032F62&quot;&gt;&amp;quot;A&amp;quot;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;:&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot; style=&quot;--ecIndent:8ch&quot;&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#9ECBFF;--1:#032F62&quot;&gt;&amp;quot;b_wins&amp;quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot; style=&quot;--ecIndent:4ch&quot;&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#9ECBFF;--1:#032F62&quot;&gt;&amp;quot;tie&amp;quot;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;--0:#99A0A6;--1:#616972&quot;&gt;# disagreement under swap =&amp;gt; no signal, don&amp;#39;t pretend otherwise&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div class=&quot;copy&quot;&gt;&lt;div aria-live=&quot;polite&quot;&gt;&lt;/div&gt;&lt;button title=&quot;Copy to clipboard&quot; data-copied=&quot;Copied!&quot; data-code=&quot;def score(answer_a: str, answer_b: str, judge) -&gt; str:    # Mitigate POSITION bias: ask twice, swap order, require agreement.    first  = judge.compare(answer_a, answer_b)    second = judge.compare(answer_b, answer_a)    if first == &amp;quot;A&amp;quot; and second == &amp;quot;B&amp;quot;:        return &amp;quot;a_wins&amp;quot;    if first == &amp;quot;B&amp;quot; and second == &amp;quot;A&amp;quot;:        return &amp;quot;b_wins&amp;quot;    return &amp;quot;tie&amp;quot;  # disagreement under swap =&gt; no signal, don&apos;t pretend otherwise&quot;&gt;&lt;div&gt;&lt;/div&gt;&lt;/button&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;Verbosity bias (longer looks better), position bias (first/last looks better),
and self-preference (a model rates its own family higher) will each quietly
inflate your numbers if you do not control for them.&lt;/p&gt;
&lt;h2 id=&quot;building-a-living-eval&quot;&gt;Building a living eval&lt;/h2&gt;
&lt;p&gt;The harness that actually tracks production has four properties:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Sampled from production.&lt;/strong&gt; Pull real, anonymised inputs weekly. Stratify
by the input clusters that matter to the business.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Refreshed, not frozen.&lt;/strong&gt; A static set is a snapshot of a moving target.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Adversarially audited.&lt;/strong&gt; A second model — or a human — tries to &lt;em&gt;refute&lt;/em&gt;
each “pass”. Findings that survive refutation are the only ones you trust.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Tied to one north-star outcome.&lt;/strong&gt; Resolution rate, escalation rate,
thumbs-up — pick the metric the business already believes.&lt;/li&gt;
&lt;/ol&gt;
&lt;aside class=&quot;not-prose my-8 border-2 border-on-background border-l-[6px] border-secondary bg-secondary-fixed/40&quot; role=&quot;note&quot;&gt; &lt;div class=&quot;flex items-center gap-2 px-4 py-2 border-b-2 border-on-background bg-surface/60&quot;&gt; &lt;span class=&quot;font-label-mono text-technical-data font-bold w-5 h-5 flex items-center justify-center border border-on-background&quot;&gt;→&lt;/span&gt; &lt;span class=&quot;font-label-mono text-label-mono uppercase tracking-widest font-bold&quot;&gt; INSIGHT &lt;/span&gt; &lt;/div&gt; &lt;div class=&quot;px-4 py-3 font-body-md text-body-md leading-relaxed [&amp;&gt;*+*]:mt-3&quot;&gt; &lt;p&gt;If your offline score and your production metric ever disagree, the production
metric is right by definition. The harness exists to &lt;em&gt;predict&lt;/em&gt; it, not to
replace it.&lt;/p&gt; &lt;/div&gt; &lt;/aside&gt;
&lt;p&gt;The uncomfortable truth is that a good eval harness is never “done”. It is a
product surface with its own backlog. Staff it like one.&lt;/p&gt;</content:encoded><category>AI</category><category>llm</category><category>evaluation</category><category>mlops</category><category>applied-ai</category><author>hello@iqbalahmed.dev</author></item><item><title>The Hidden Cost of Microfrontends in Finance</title><link>https://iqbalahmed.dev/blog/microfrontends-hidden-cost-finance/</link><guid isPermaLink="true">https://iqbalahmed.dev/blog/microfrontends-hidden-cost-finance/</guid><description>Microfrontends promise team autonomy. In a regulated finance product they quietly traded one shared codebase for a distributed governance problem nobody owned.</description><pubDate>Wed, 18 Mar 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;There is a version of the microfrontend pitch that is true: independent teams,
independent deploys, no merge queue from hell. There is another version, the one
that gets you a standing ovation at a conference and a 200ms regression in
production. This is a story about the second one, told from inside a banking
platform that adopted microfrontends for all the right reasons and paid for it
in all the places nobody was looking.&lt;/p&gt;
&lt;section class=&quot;not-prose my-10 border-2 border-on-background bg-surface-container-low&quot; aria-label=&quot;Key Takeaways&quot;&gt; &lt;div class=&quot;flex items-center justify-between px-grid-margin py-3 border-b-2 border-on-background bg-on-background text-surface&quot;&gt; &lt;span class=&quot;font-label-mono text-label-mono uppercase tracking-widest font-bold&quot;&gt;TL;DR // Key Takeaways&lt;/span&gt; &lt;span class=&quot;font-technical-data text-technical-data opacity-70&quot;&gt;ANSWER_FIRST&lt;/span&gt; &lt;/div&gt; &lt;div class=&quot;px-grid-margin py-4&quot;&gt; &lt;ul class=&quot;space-y-3&quot;&gt; &lt;li class=&quot;flex gap-3 font-body-md text-body-md&quot;&gt; &lt;span class=&quot;font-label-mono text-technical-data text-secondary font-bold pt-1&quot;&gt; 01 &lt;/span&gt; &lt;span&gt;Microfrontends move complexity from &lt;em&gt;build time&lt;/em&gt; to &lt;em&gt;runtime&lt;/em&gt; — where it is harder to test and audit.&lt;/span&gt; &lt;/li&gt;&lt;li class=&quot;flex gap-3 font-body-md text-body-md&quot;&gt; &lt;span class=&quot;font-label-mono text-technical-data text-secondary font-bold pt-1&quot;&gt; 02 &lt;/span&gt; &lt;span&gt;In regulated finance, “independent deploys” collide with “one consistent disclosure” requirements.&lt;/span&gt; &lt;/li&gt;&lt;li class=&quot;flex gap-3 font-body-md text-body-md&quot;&gt; &lt;span class=&quot;font-label-mono text-technical-data text-secondary font-bold pt-1&quot;&gt; 03 &lt;/span&gt; &lt;span&gt;Shared state (auth, feature flags, the design system) becomes a distributed-systems problem in the browser.&lt;/span&gt; &lt;/li&gt;&lt;li class=&quot;flex gap-3 font-body-md text-body-md&quot;&gt; &lt;span class=&quot;font-label-mono text-technical-data text-secondary font-bold pt-1&quot;&gt; 04 &lt;/span&gt; &lt;span&gt;We kept the team autonomy and dropped the runtime composition. The org problem was never a code problem.&lt;/span&gt; &lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; &lt;/section&gt;
&lt;h2 id=&quot;what-we-were-actually-trying-to-fix&quot;&gt;What we were actually trying to fix&lt;/h2&gt;
&lt;p&gt;Eight teams, one trading dashboard, one repository, one release train. The
release train was the enemy: a risk change and a cosmetic change shipped on the
same cadence because they shared a deploy. Microfrontends looked like the cure —
let each team own a tile of the dashboard and ship it independently.&lt;/p&gt;
&lt;h2 id=&quot;what-we-got-instead&quot;&gt;What we got instead&lt;/h2&gt;
&lt;h3 id=&quot;performance-the-composition-tax&quot;&gt;Performance: the composition tax&lt;/h3&gt;
&lt;p&gt;Each independently-deployed tile shipped its own copy of the framework runtime
until we wrestled it into a shared dependency — at which point “independent”
quietly became “coordinated”, which was the thing we were trying to avoid.&lt;/p&gt;
&lt;aside class=&quot;not-prose my-8 border-2 border-on-background border-l-[6px] border-error bg-error-container/30&quot; role=&quot;note&quot;&gt; &lt;div class=&quot;flex items-center gap-2 px-4 py-2 border-b-2 border-on-background bg-surface/60&quot;&gt; &lt;span class=&quot;font-label-mono text-technical-data font-bold w-5 h-5 flex items-center justify-center border border-on-background&quot;&gt;!&lt;/span&gt; &lt;span class=&quot;font-label-mono text-label-mono uppercase tracking-widest font-bold&quot;&gt; The waterfall you can&amp;#39;t see in dev &lt;/span&gt; &lt;/div&gt; &lt;div class=&quot;px-4 py-3 font-body-md text-body-md leading-relaxed [&amp;&gt;*+*]:mt-3&quot;&gt; &lt;p&gt;Runtime composition means the shell fetches a manifest, which fetches a tile,
which fetches its chunks. On a warm local machine this is invisible. On a
analyst’s locked-down laptop over a corporate VPN it was a 200ms+ cascade before
the first number rendered.&lt;/p&gt; &lt;/div&gt; &lt;/aside&gt;
&lt;h3 id=&quot;governance-who-owns-the-disclosure&quot;&gt;Governance: who owns the disclosure?&lt;/h3&gt;
&lt;p&gt;This is the finance-specific knife. A regulated product must present consistent
disclosures, consistent rounding, consistent timestamps. With one codebase that
is a code review. With eight independently-deployed tiles it is a &lt;em&gt;distributed
agreement problem&lt;/em&gt; — and there was no protocol for it.&lt;/p&gt;
&lt;div class=&quot;expressive-code&quot;&gt;&lt;link rel=&quot;stylesheet&quot; href=&quot;https://iqbalahmed.dev/_astro/ec.rxowf.css&quot;/&gt;&lt;script type=&quot;module&quot; src=&quot;https://iqbalahmed.dev/_astro/ec.0vx5m.js&quot;&gt;&lt;/script&gt;&lt;figure class=&quot;frame has-title&quot;&gt;&lt;figcaption class=&quot;header&quot;&gt;&lt;span class=&quot;title&quot;&gt;the-question-nobody-could-answer.ts&lt;/span&gt;&lt;/figcaption&gt;&lt;pre data-language=&quot;ts&quot; class=&quot;wrap&quot; style=&quot;--ecMaxLine:69ch&quot;&gt;&lt;code&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;code&quot;&gt;&lt;span style=&quot;--0:#99A0A6;--1:#616972&quot;&gt;// Tile A and Tile B both display a balance.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;code&quot;&gt;&lt;span style=&quot;--0:#99A0A6;--1:#616972&quot;&gt;// They fetch from different services, deployed at different times,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;code&quot;&gt;&lt;span style=&quot;--0:#99A0A6;--1:#616972&quot;&gt;// formatted by different (independently-versioned) utils.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;code&quot;&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;const&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#79B8FF;--1:#005CC5&quot;&gt;a&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#B392F0;--1:#6F42C1&quot;&gt;formatCurrency&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;(balanceFromLedger);   &lt;/span&gt;&lt;span style=&quot;--0:#99A0A6;--1:#616972&quot;&gt;// shipped Tuesday&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;code&quot;&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;const&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#79B8FF;--1:#005CC5&quot;&gt;b&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#B392F0;--1:#6F42C1&quot;&gt;formatCurrency&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;(balanceFromCache);     &lt;/span&gt;&lt;span style=&quot;--0:#99A0A6;--1:#616972&quot;&gt;// shipped last month&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;code&quot;&gt;&lt;span style=&quot;--0:#99A0A6;--1:#616972&quot;&gt;// Are these guaranteed to agree to the cent, today, in prod?&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;code&quot;&gt;&lt;span style=&quot;--0:#99A0A6;--1:#616972&quot;&gt;// In a microfrontend world, the honest answer was &amp;quot;we hope so&amp;quot;.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div class=&quot;copy&quot;&gt;&lt;div aria-live=&quot;polite&quot;&gt;&lt;/div&gt;&lt;button title=&quot;Copy to clipboard&quot; data-copied=&quot;Copied!&quot; data-code=&quot;// Tile A and Tile B both display a balance.// They fetch from different services, deployed at different times,// formatted by different (independently-versioned) utils.const a = formatCurrency(balanceFromLedger);   // shipped Tuesdayconst b = formatCurrency(balanceFromCache);     // shipped last month// Are these guaranteed to agree to the cent, today, in prod?// In a microfrontend world, the honest answer was &amp;quot;we hope so&amp;quot;.&quot;&gt;&lt;div&gt;&lt;/div&gt;&lt;/button&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;h3 id=&quot;shared-state-a-tiny-distributed-system-in-the-dom&quot;&gt;Shared state: a tiny distributed system in the DOM&lt;/h3&gt;
&lt;p&gt;Auth tokens, feature flags, and the theme all had to be shared across tiles that
could not import each other. We ended up with an event bus on &lt;code&gt;window&lt;/code&gt;, which is
to say we rebuilt service-to-service messaging inside a single browser tab,
without the observability we would demand of any backend.&lt;/p&gt;
&lt;h2 id=&quot;the-resolution&quot;&gt;The resolution&lt;/h2&gt;
&lt;p&gt;We kept the org win and dropped the runtime mechanism. Each team still owns its
slice and ships on its own branch protections, but we compose at &lt;strong&gt;build time&lt;/strong&gt;
into a single artefact. Deploys are independent up to the integration build,
which runs the cross-tile consistency checks that regulation actually requires.&lt;/p&gt;
&lt;aside class=&quot;not-prose my-8 border-2 border-on-background border-l-[6px] border-secondary bg-secondary-fixed/40&quot; role=&quot;note&quot;&gt; &lt;div class=&quot;flex items-center gap-2 px-4 py-2 border-b-2 border-on-background bg-surface/60&quot;&gt; &lt;span class=&quot;font-label-mono text-technical-data font-bold w-5 h-5 flex items-center justify-center border border-on-background&quot;&gt;→&lt;/span&gt; &lt;span class=&quot;font-label-mono text-label-mono uppercase tracking-widest font-bold&quot;&gt; INSIGHT &lt;/span&gt; &lt;/div&gt; &lt;div class=&quot;px-4 py-3 font-body-md text-body-md leading-relaxed [&amp;&gt;*+*]:mt-3&quot;&gt; &lt;p&gt;Microfrontends solve an &lt;em&gt;organisational&lt;/em&gt; problem with a &lt;em&gt;runtime&lt;/em&gt;
mechanism. If the real constraint is team autonomy, ask whether build-time
composition gives you 90% of the win without the runtime tax. In finance, it did.&lt;/p&gt; &lt;/div&gt; &lt;/aside&gt;
&lt;p&gt;Autonomy was the goal. Runtime composition was just one — expensive — way to get
it.&lt;/p&gt;</content:encoded><category>Engineering</category><category>architecture</category><category>frontend</category><category>finance</category><category>scaling</category><author>hello@iqbalahmed.dev</author></item><item><title>The Hyper-Systemizer — Engineering Daily Life on Protocols</title><link>https://iqbalahmed.dev/blog/hyper-systemizer-autism-protocols/</link><guid isPermaLink="true">https://iqbalahmed.dev/blog/hyper-systemizer-autism-protocols/</guid><description>Raising an autistic child taught me to treat the home like a system with interfaces and failure modes. Here is what that reframe changed, honestly.</description><pubDate>Thu, 26 Feb 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;I want to be careful with this one, because the genre of “engineer optimises
parenting” deserves the eye-roll it usually gets. My son is not a system to be
debugged. But the &lt;em&gt;environment&lt;/em&gt; around him is, and treating that environment
with the same rigour I bring to a production service is the single most useful
thing my job has given my family.&lt;/p&gt;
&lt;section class=&quot;not-prose my-10 border-2 border-on-background bg-surface-container-low&quot; aria-label=&quot;Key Takeaways&quot;&gt; &lt;div class=&quot;flex items-center justify-between px-grid-margin py-3 border-b-2 border-on-background bg-on-background text-surface&quot;&gt; &lt;span class=&quot;font-label-mono text-label-mono uppercase tracking-widest font-bold&quot;&gt;TL;DR // Key Takeaways&lt;/span&gt; &lt;span class=&quot;font-technical-data text-technical-data opacity-70&quot;&gt;ANSWER_FIRST&lt;/span&gt; &lt;/div&gt; &lt;div class=&quot;px-grid-margin py-4&quot;&gt; &lt;ul class=&quot;space-y-3&quot;&gt; &lt;li class=&quot;flex gap-3 font-body-md text-body-md&quot;&gt; &lt;span class=&quot;font-label-mono text-technical-data text-secondary font-bold pt-1&quot;&gt; 01 &lt;/span&gt; &lt;span&gt;The reframe is environmental: design predictable &lt;em&gt;interfaces&lt;/em&gt;, not a “fixed” child.&lt;/span&gt; &lt;/li&gt;&lt;li class=&quot;flex gap-3 font-body-md text-body-md&quot;&gt; &lt;span class=&quot;font-label-mono text-technical-data text-secondary font-bold pt-1&quot;&gt; 02 &lt;/span&gt; &lt;span&gt;Transitions are the failure mode. Most meltdowns are unhandled state changes.&lt;/span&gt; &lt;/li&gt;&lt;li class=&quot;flex gap-3 font-body-md text-body-md&quot;&gt; &lt;span class=&quot;font-label-mono text-technical-data text-secondary font-bold pt-1&quot;&gt; 03 &lt;/span&gt; &lt;span&gt;Visual protocols externalise working memory — for him, and for the adults too.&lt;/span&gt; &lt;/li&gt;&lt;li class=&quot;flex gap-3 font-body-md text-body-md&quot;&gt; &lt;span class=&quot;font-label-mono text-technical-data text-secondary font-bold pt-1&quot;&gt; 04 &lt;/span&gt; &lt;span&gt;Measure to &lt;em&gt;understand&lt;/em&gt;, never to grade. The metric serves the kid, not the spreadsheet.&lt;/span&gt; &lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; &lt;/section&gt;
&lt;h2 id=&quot;interfaces-not-instructions&quot;&gt;Interfaces, not instructions&lt;/h2&gt;
&lt;p&gt;A predictable interface is a contract: given this input, you reliably get that
output. For my son, the world’s default interface is noisy and non-deterministic
— and non-determinism is exhausting when your nervous system logs every event at
full volume.&lt;/p&gt;
&lt;p&gt;So we stabilised the contracts. Mornings run the same sequence, in the same
order, with the same visual cues. Not because rigidity is virtuous, but because
a predictable interface frees up the enormous cognitive budget that
unpredictability was silently consuming.&lt;/p&gt;
&lt;aside class=&quot;not-prose my-8 border-2 border-on-background border-l-[6px] border-secondary bg-secondary-fixed/40&quot; role=&quot;note&quot;&gt; &lt;div class=&quot;flex items-center gap-2 px-4 py-2 border-b-2 border-on-background bg-surface/60&quot;&gt; &lt;span class=&quot;font-label-mono text-technical-data font-bold w-5 h-5 flex items-center justify-center border border-on-background&quot;&gt;→&lt;/span&gt; &lt;span class=&quot;font-label-mono text-label-mono uppercase tracking-widest font-bold&quot;&gt; INSIGHT &lt;/span&gt; &lt;/div&gt; &lt;div class=&quot;px-4 py-3 font-body-md text-body-md leading-relaxed [&amp;&gt;*+*]:mt-3&quot;&gt; &lt;p&gt;The goal of a stable interface is not control. It is to spend a child’s limited
regulation budget on the things that matter — connection, curiosity, play —
instead of on bracing for the next surprise.&lt;/p&gt; &lt;/div&gt; &lt;/aside&gt;
&lt;h2 id=&quot;transitions-are-unhandled-state-changes&quot;&gt;Transitions are unhandled state changes&lt;/h2&gt;
&lt;p&gt;In software, the bugs cluster at boundaries: the cache invalidation, the
deploy, the timezone change. In our home, the hard moments cluster at
transitions — leaving the park, ending screen time, the shift from weekend to
school night.&lt;/p&gt;
&lt;p&gt;Once I started seeing meltdowns as &lt;strong&gt;unhandled state transitions&lt;/strong&gt; rather than
“behaviour”, the response changed. You do not punish a service for crashing on
an input you never handled. You add a handler.&lt;/p&gt;
&lt;div class=&quot;expressive-code&quot;&gt;&lt;link rel=&quot;stylesheet&quot; href=&quot;https://iqbalahmed.dev/_astro/ec.rxowf.css&quot;/&gt;&lt;script type=&quot;module&quot; src=&quot;https://iqbalahmed.dev/_astro/ec.0vx5m.js&quot;&gt;&lt;/script&gt;&lt;figure class=&quot;frame has-title&quot;&gt;&lt;figcaption class=&quot;header&quot;&gt;&lt;span class=&quot;title&quot;&gt;transition-protocol.txt&lt;/span&gt;&lt;/figcaption&gt;&lt;pre data-language=&quot;text&quot; class=&quot;wrap&quot; style=&quot;--ecMaxLine:66ch&quot;&gt;&lt;code&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;code&quot;&gt;&lt;span style=&quot;--0:#e1e4e8;--1:#24292e&quot;&gt;STATE: screen_time  -&amp;gt;  STATE: dinner&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;code&quot;&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot; style=&quot;--ecIndent:2ch&quot;&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#e1e4e8;--1:#24292e&quot;&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#e1e4e8;--1:#24292e&quot;&gt;T-10m  verbal + visual countdown card shown&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot; style=&quot;--ecIndent:2ch&quot;&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#e1e4e8;--1:#24292e&quot;&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#e1e4e8;--1:#24292e&quot;&gt;T-5m   countdown card flips to &amp;quot;5&amp;quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot; style=&quot;--ecIndent:2ch&quot;&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#e1e4e8;--1:#24292e&quot;&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#e1e4e8;--1:#24292e&quot;&gt;T-2m   choose: pause here OR finish this level&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot; style=&quot;--ecIndent:2ch&quot;&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#e1e4e8;--1:#24292e&quot;&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#e1e4e8;--1:#24292e&quot;&gt;T-0    timer sound (chosen by him, predictable)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot; style=&quot;--ecIndent:2ch&quot;&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#e1e4e8;--1:#24292e&quot;&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#e1e4e8;--1:#24292e&quot;&gt;+0     transition object: the same toy carried to the table&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;code&quot;&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;code&quot;&gt;&lt;span style=&quot;--0:#e1e4e8;--1:#24292e&quot;&gt;FALLBACK: if dysregulated, do not add language.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot; style=&quot;--ecIndent:10ch&quot;&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#e1e4e8;--1:#24292e&quot;&gt;          &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#e1e4e8;--1:#24292e&quot;&gt;reduce sensory input, offer the transition object, wait.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div class=&quot;copy&quot;&gt;&lt;div aria-live=&quot;polite&quot;&gt;&lt;/div&gt;&lt;button title=&quot;Copy to clipboard&quot; data-copied=&quot;Copied!&quot; data-code=&quot;STATE: screen_time  -&gt;  STATE: dinner  T-10m  verbal + visual countdown card shown  T-5m   countdown card flips to &amp;quot;5&amp;quot;  T-2m   choose: pause here OR finish this level  T-0    timer sound (chosen by him, predictable)  +0     transition object: the same toy carried to the tableFALLBACK: if dysregulated, do not add language.          reduce sensory input, offer the transition object, wait.&quot;&gt;&lt;div&gt;&lt;/div&gt;&lt;/button&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;It is not magic and it does not always hold. But handling the boundary
explicitly turned a daily 9/10 into a frequent 3/10, and that delta is a
childhood.&lt;/p&gt;
&lt;h2 id=&quot;measure-to-understand-not-to-grade&quot;&gt;Measure to understand, not to grade&lt;/h2&gt;
&lt;p&gt;I track things — sleep, sensory load, which days were hard and what preceded
them. The danger here is obvious and I have fallen into it: the moment a metric
becomes a &lt;em&gt;grade&lt;/em&gt;, it corrupts. A low-regulation day is data about the
environment, not a verdict on the child or the parent.&lt;/p&gt;
&lt;aside class=&quot;not-prose my-8 border-2 border-on-background border-l-[6px] border-error bg-error-container/30&quot; role=&quot;note&quot;&gt; &lt;div class=&quot;flex items-center gap-2 px-4 py-2 border-b-2 border-on-background bg-surface/60&quot;&gt; &lt;span class=&quot;font-label-mono text-technical-data font-bold w-5 h-5 flex items-center justify-center border border-on-background&quot;&gt;!&lt;/span&gt; &lt;span class=&quot;font-label-mono text-label-mono uppercase tracking-widest font-bold&quot;&gt; The metric is a smoke detector, not a report card &lt;/span&gt; &lt;/div&gt; &lt;div class=&quot;px-4 py-3 font-body-md text-body-md leading-relaxed [&amp;&gt;*+*]:mt-3&quot;&gt; &lt;p&gt;If you ever feel the numbers judging your kid, delete them. The only legitimate
purpose of the data is to notice patterns earlier than feeling alone would let
you — earlier bedtime after high-sensory days, fewer transitions when sleep was
short.&lt;/p&gt; &lt;/div&gt; &lt;/aside&gt;
&lt;p&gt;The systems lens is not about turning a child into an optimisation target. It is
about taking the load that neurotypical environments offload onto an autistic
nervous system and, wherever possible, carrying it in the design of the day
instead. That is engineering I am proud of.&lt;/p&gt;</content:encoded><category>Autism</category><category>autism</category><category>parenting</category><category>systems-thinking</category><category>neurodiversity</category><author>hello@iqbalahmed.dev</author></item><item><title>Training Physical Capacity for Deep Engineering Work</title><link>https://iqbalahmed.dev/blog/training-capacity-for-deep-work/</link><guid isPermaLink="true">https://iqbalahmed.dev/blog/training-capacity-for-deep-work/</guid><description>After fifteen years at a desk, I started treating training like infrastructure for cognition. The protocol is boring, measurable, and it works.</description><pubDate>Wed, 21 Jan 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;I did not get into training to look better. I got into it because by my late
thirties, the second half of my working day had quietly become useless. The
hard architectural thinking — the kind that needs four uninterrupted hours —
was happening less and less, and I had been blaming meetings. The meetings were
real. So was the fact that I had let my physical capacity decay to the point
where my brain ran out of runway by 2pm.&lt;/p&gt;
&lt;section class=&quot;not-prose my-10 border-2 border-on-background bg-surface-container-low&quot; aria-label=&quot;Key Takeaways&quot;&gt; &lt;div class=&quot;flex items-center justify-between px-grid-margin py-3 border-b-2 border-on-background bg-on-background text-surface&quot;&gt; &lt;span class=&quot;font-label-mono text-label-mono uppercase tracking-widest font-bold&quot;&gt;TL;DR // Key Takeaways&lt;/span&gt; &lt;span class=&quot;font-technical-data text-technical-data opacity-70&quot;&gt;ANSWER_FIRST&lt;/span&gt; &lt;/div&gt; &lt;div class=&quot;px-grid-margin py-4&quot;&gt; &lt;ul class=&quot;space-y-3&quot;&gt; &lt;li class=&quot;flex gap-3 font-body-md text-body-md&quot;&gt; &lt;span class=&quot;font-label-mono text-technical-data text-secondary font-bold pt-1&quot;&gt; 01 &lt;/span&gt; &lt;span&gt;Treat aerobic base + sleep as &lt;em&gt;infrastructure&lt;/em&gt; for cognition, not vanity.&lt;/span&gt; &lt;/li&gt;&lt;li class=&quot;flex gap-3 font-body-md text-body-md&quot;&gt; &lt;span class=&quot;font-label-mono text-technical-data text-secondary font-bold pt-1&quot;&gt; 02 &lt;/span&gt; &lt;span&gt;Zone 2 cardio is the unglamorous, high-leverage lever for sustained focus.&lt;/span&gt; &lt;/li&gt;&lt;li class=&quot;flex gap-3 font-body-md text-body-md&quot;&gt; &lt;span class=&quot;font-label-mono text-technical-data text-secondary font-bold pt-1&quot;&gt; 03 &lt;/span&gt; &lt;span&gt;Strength twice a week protects the desk-bound body from its own posture.&lt;/span&gt; &lt;/li&gt;&lt;li class=&quot;flex gap-3 font-body-md text-body-md&quot;&gt; &lt;span class=&quot;font-label-mono text-technical-data text-secondary font-bold pt-1&quot;&gt; 04 &lt;/span&gt; &lt;span&gt;Track inputs (sleep, training, steps) — not the scale. The scale is a lagging, noisy metric.&lt;/span&gt; &lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; &lt;/section&gt;
&lt;h2 id=&quot;the-reframe-capacity-not-aesthetics&quot;&gt;The reframe: capacity, not aesthetics&lt;/h2&gt;
&lt;p&gt;A focused engineering session is metabolically expensive. If your aerobic base
is poor and your sleep is fragmented, you are trying to run a demanding process
on a starved power supply. Aesthetics are a side effect. The actual deliverable
is &lt;em&gt;afternoons that still work&lt;/em&gt;.&lt;/p&gt;
&lt;aside class=&quot;not-prose my-8 border-2 border-on-background border-l-[6px] border-secondary bg-secondary-fixed/40&quot; role=&quot;note&quot;&gt; &lt;div class=&quot;flex items-center gap-2 px-4 py-2 border-b-2 border-on-background bg-surface/60&quot;&gt; &lt;span class=&quot;font-label-mono text-technical-data font-bold w-5 h-5 flex items-center justify-center border border-on-background&quot;&gt;→&lt;/span&gt; &lt;span class=&quot;font-label-mono text-label-mono uppercase tracking-widest font-bold&quot;&gt; INSIGHT &lt;/span&gt; &lt;/div&gt; &lt;div class=&quot;px-4 py-3 font-body-md text-body-md leading-relaxed [&amp;&gt;*+*]:mt-3&quot;&gt; &lt;p&gt;The question that reorganised my training: “what would I do if my job were to be
cognitively sharp at 4pm, every day, for the next twenty years?” Almost none of
the answer was about how I look.&lt;/p&gt; &lt;/div&gt; &lt;/aside&gt;
&lt;h2 id=&quot;the-protocol&quot;&gt;The protocol&lt;/h2&gt;
&lt;p&gt;It is deliberately boring. Boring is what survives a launch week.&lt;/p&gt;
&lt;div class=&quot;expressive-code&quot;&gt;&lt;link rel=&quot;stylesheet&quot; href=&quot;https://iqbalahmed.dev/_astro/ec.rxowf.css&quot;/&gt;&lt;script type=&quot;module&quot; src=&quot;https://iqbalahmed.dev/_astro/ec.0vx5m.js&quot;&gt;&lt;/script&gt;&lt;figure class=&quot;frame has-title&quot;&gt;&lt;figcaption class=&quot;header&quot;&gt;&lt;span class=&quot;title&quot;&gt;weekly-block.txt&lt;/span&gt;&lt;/figcaption&gt;&lt;pre data-language=&quot;text&quot; class=&quot;wrap&quot; style=&quot;--ecMaxLine:79ch&quot;&gt;&lt;code&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;code&quot;&gt;&lt;span style=&quot;--0:#e1e4e8;--1:#24292e&quot;&gt;MON  Zone 2 cardio, 45 min        (conversational pace, nose-breathing)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;code&quot;&gt;&lt;span style=&quot;--0:#e1e4e8;--1:#24292e&quot;&gt;TUE  Strength A: squat / push / carry&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;code&quot;&gt;&lt;span style=&quot;--0:#e1e4e8;--1:#24292e&quot;&gt;WED  Zone 2 cardio, 45 min&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;code&quot;&gt;&lt;span style=&quot;--0:#e1e4e8;--1:#24292e&quot;&gt;THU  rest or easy walk&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;code&quot;&gt;&lt;span style=&quot;--0:#e1e4e8;--1:#24292e&quot;&gt;FRI  Strength B: hinge / pull / core&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;code&quot;&gt;&lt;span style=&quot;--0:#e1e4e8;--1:#24292e&quot;&gt;SAT  long easy effort, 60–90 min  (outdoors, no metrics screen)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;code&quot;&gt;&lt;span style=&quot;--0:#e1e4e8;--1:#24292e&quot;&gt;SUN  rest&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;code&quot;&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;code&quot;&gt;&lt;span style=&quot;--0:#e1e4e8;--1:#24292e&quot;&gt;NON-NEGOTIABLE: 7.5h sleep opportunity. Everything above is downstream of this.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div class=&quot;copy&quot;&gt;&lt;div aria-live=&quot;polite&quot;&gt;&lt;/div&gt;&lt;button title=&quot;Copy to clipboard&quot; data-copied=&quot;Copied!&quot; data-code=&quot;MON  Zone 2 cardio, 45 min        (conversational pace, nose-breathing)TUE  Strength A: squat / push / carryWED  Zone 2 cardio, 45 minTHU  rest or easy walkFRI  Strength B: hinge / pull / coreSAT  long easy effort, 60–90 min  (outdoors, no metrics screen)SUN  restNON-NEGOTIABLE: 7.5h sleep opportunity. Everything above is downstream of this.&quot;&gt;&lt;div&gt;&lt;/div&gt;&lt;/button&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;h3 id=&quot;zone-2-is-the-lever-nobody-posts-about&quot;&gt;Zone 2 is the lever nobody posts about&lt;/h3&gt;
&lt;p&gt;Most of the focus benefit, for me, came from unsexy low-intensity cardio. It
builds the aerobic base that lets the brain sustain effort without the mid-
afternoon crash. It is also the easiest thing to keep during a stressful sprint,
because it does not wreck you for the next day.&lt;/p&gt;
&lt;h3 id=&quot;strength-protects-the-substrate&quot;&gt;Strength protects the substrate&lt;/h3&gt;
&lt;p&gt;Two strength sessions a week are insurance against the specific damage of a
desk: weak posterior chain, locked hips, a neck that has been craning at a
monitor since 2009. You are not chasing a number. You are keeping the hardware
serviceable.&lt;/p&gt;
&lt;h2 id=&quot;what-i-track-and-what-i-ignore&quot;&gt;What I track, and what I ignore&lt;/h2&gt;
&lt;aside class=&quot;not-prose my-8 border-2 border-on-background border-l-[6px] border-error bg-error-container/30&quot; role=&quot;note&quot;&gt; &lt;div class=&quot;flex items-center gap-2 px-4 py-2 border-b-2 border-on-background bg-surface/60&quot;&gt; &lt;span class=&quot;font-label-mono text-technical-data font-bold w-5 h-5 flex items-center justify-center border border-on-background&quot;&gt;!&lt;/span&gt; &lt;span class=&quot;font-label-mono text-label-mono uppercase tracking-widest font-bold&quot;&gt; The scale lies on any given day &lt;/span&gt; &lt;/div&gt; &lt;div class=&quot;px-4 py-3 font-body-md text-body-md leading-relaxed [&amp;&gt;*+*]:mt-3&quot;&gt; &lt;p&gt;Bodyweight swings two kilos on water and salt alone. If you weigh daily and
react daily, you are responding to noise. I track a 7-day average and otherwise
ignore it.&lt;/p&gt; &lt;/div&gt; &lt;/aside&gt;
&lt;p&gt;I track the &lt;strong&gt;inputs&lt;/strong&gt; — sleep hours, training sessions completed, daily steps —
because those are the levers I actually control. Outcomes follow inputs with a
lag. The same is true of any system worth operating: you instrument the causes,
not just the symptoms.&lt;/p&gt;
&lt;p&gt;The honest summary: this is not a transformation story with an inspiring photo.
It is a maintenance contract I signed with my future self, so that the work I
care about still has somewhere to run.&lt;/p&gt;</content:encoded><category>Fitness</category><category>fitness</category><category>deep-work</category><category>health</category><category>performance</category><author>hello@iqbalahmed.dev</author></item></channel></rss>