<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:googleplay="http://www.google.com/schemas/play-podcasts/1.0"><channel><title><![CDATA[TechNektar]]></title><description><![CDATA[TechNektar is your gateway to the future of technology, AI, and innovation. We demystify complex concepts—from aerospace and energy to machine learning and neuroscience-inspired engineering—through engaging podcasts, videos, articles, and apps. ]]></description><link>https://technektar.substack.com</link><image><url>https://substackcdn.com/image/fetch/$s_!PXbw!,w_256,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0d664ff6-6be3-43d2-9b59-425c383fcc82_144x144.png</url><title>TechNektar</title><link>https://technektar.substack.com</link></image><generator>Substack</generator><lastBuildDate>Sat, 11 Jul 2026 00:45:20 GMT</lastBuildDate><atom:link href="https://technektar.substack.com/feed" rel="self" type="application/rss+xml"/><copyright><![CDATA[Sharath S, PhD]]></copyright><language><![CDATA[en]]></language><webMaster><![CDATA[technektar@substack.com]]></webMaster><itunes:owner><itunes:email><![CDATA[technektar@substack.com]]></itunes:email><itunes:name><![CDATA[TechNektar]]></itunes:name></itunes:owner><itunes:author><![CDATA[TechNektar]]></itunes:author><googleplay:owner><![CDATA[technektar@substack.com]]></googleplay:owner><googleplay:email><![CDATA[technektar@substack.com]]></googleplay:email><googleplay:author><![CDATA[TechNektar]]></googleplay:author><itunes:block><![CDATA[Yes]]></itunes:block><item><title><![CDATA[Pratyabhijñā Creative Engine]]></title><description><![CDATA[A mechanism study of recursive self-reflexivity layers for LLM creative cognition.]]></description><link>https://technektar.substack.com/p/pratyabhijna-creative-engine</link><guid isPermaLink="false">https://technektar.substack.com/p/pratyabhijna-creative-engine</guid><dc:creator><![CDATA[TechNektar]]></dc:creator><pubDate>Fri, 01 May 2026 14:19:41 GMT</pubDate><enclosure url="https://substack-post-media.s3.amazonaws.com/public/images/90547de1-c365-47f0-bbc6-4eb5278703dc_1024x1024.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<div class="native-video-embed" data-component-name="VideoPlaceholder" data-attrs="{&quot;mediaUploadId&quot;:&quot;0c69f875-97dc-4c73-82ec-caca61c15a44&quot;,&quot;duration&quot;:null}"></div><p>By <strong><a href="https://www.linkedin.com/in/sharath-s/">Sharath Sathish</a></strong>&#183;April 2026 &#183;</p><p><strong><a href="https://sharathsphd.github.io/pratyabhijna">GitHub Pages Version: https://sharathsphd.github.io/pratyabhijna</a></strong></p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://technektar.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div><blockquote><p>PCE v0.4 is a pre-registered, mechanism-level study of a recursive self-reflexivity layer for large language models built on the Pratyabhij&#241;&#257; philosophy of Abhinavagupta and a deliberately small subset of active inference. We do not claim to have re-engineered creativity; we claim to have isolated which sub-mechanisms inside a five-&#347;akti cascade carry the load and which do not, with all numbers visible on this page and reproducible from the open repository.</p></blockquote><p>The headline is mixed and honest. The cascade-vs-bare contrasts (H1 through H4, pooled in H5) do not move at n = 25 paired items per protocol; the pooled effect is g = 0.14 with a 95% CI that crosses zero. The recursive revision pass is, however, robustly positive on its own (H8a: g = 0.65, p = 1.2e-4), and a learned commit gate outperforms the v0.3 event-driven gate at predicting <em>when</em> a revision is worth committing (F1 = 0.65 vs 0.52). The proxy scorer disagrees with a calibrated Sonnet-4.5 LLM-judge at &#961; = 0.0, which we treat as a methodological flag rather than a refutation.</p><h3><strong>Headline numbers</strong></h3><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!BtzY!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F97a86b6a-798a-41b3-a822-6dec86708e7a_744x341.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!BtzY!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F97a86b6a-798a-41b3-a822-6dec86708e7a_744x341.png 424w, https://substackcdn.com/image/fetch/$s_!BtzY!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F97a86b6a-798a-41b3-a822-6dec86708e7a_744x341.png 848w, https://substackcdn.com/image/fetch/$s_!BtzY!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F97a86b6a-798a-41b3-a822-6dec86708e7a_744x341.png 1272w, https://substackcdn.com/image/fetch/$s_!BtzY!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F97a86b6a-798a-41b3-a822-6dec86708e7a_744x341.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!BtzY!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F97a86b6a-798a-41b3-a822-6dec86708e7a_744x341.png" width="744" height="341" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/97a86b6a-798a-41b3-a822-6dec86708e7a_744x341.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:341,&quot;width&quot;:744,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:&quot;&quot;,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" title="" srcset="https://substackcdn.com/image/fetch/$s_!BtzY!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F97a86b6a-798a-41b3-a822-6dec86708e7a_744x341.png 424w, https://substackcdn.com/image/fetch/$s_!BtzY!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F97a86b6a-798a-41b3-a822-6dec86708e7a_744x341.png 848w, https://substackcdn.com/image/fetch/$s_!BtzY!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F97a86b6a-798a-41b3-a822-6dec86708e7a_744x341.png 1272w, https://substackcdn.com/image/fetch/$s_!BtzY!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F97a86b6a-798a-41b3-a822-6dec86708e7a_744x341.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p></p><h3><strong>Forest plot &#8212; primary contrasts and pooled effect</strong></h3><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!el_L!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2f25223e-6a38-45a6-98ea-552791e4ecc7_1231x1000.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!el_L!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2f25223e-6a38-45a6-98ea-552791e4ecc7_1231x1000.png 424w, https://substackcdn.com/image/fetch/$s_!el_L!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2f25223e-6a38-45a6-98ea-552791e4ecc7_1231x1000.png 848w, https://substackcdn.com/image/fetch/$s_!el_L!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2f25223e-6a38-45a6-98ea-552791e4ecc7_1231x1000.png 1272w, https://substackcdn.com/image/fetch/$s_!el_L!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2f25223e-6a38-45a6-98ea-552791e4ecc7_1231x1000.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!el_L!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2f25223e-6a38-45a6-98ea-552791e4ecc7_1231x1000.png" width="1231" height="1000" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/2f25223e-6a38-45a6-98ea-552791e4ecc7_1231x1000.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1000,&quot;width&quot;:1231,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:&quot;&quot;,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" title="" srcset="https://substackcdn.com/image/fetch/$s_!el_L!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2f25223e-6a38-45a6-98ea-552791e4ecc7_1231x1000.png 424w, https://substackcdn.com/image/fetch/$s_!el_L!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2f25223e-6a38-45a6-98ea-552791e4ecc7_1231x1000.png 848w, https://substackcdn.com/image/fetch/$s_!el_L!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2f25223e-6a38-45a6-98ea-552791e4ecc7_1231x1000.png 1272w, https://substackcdn.com/image/fetch/$s_!el_L!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2f25223e-6a38-45a6-98ea-552791e4ecc7_1231x1000.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p></p><h3><strong>Where to read more</strong></h3><ul><li><p>Results Section &#8212; every hypothesis with prose, charts, and per-item drill-downs.</p></li><li><p>Discussion Section &#8212; the seven-subsection mechanism reading, including the H9 sensitivity flag.</p></li><li><p>Showcase Section &#8212; nine creative outputs (Sanskrit chandas, English poetry, scientific creativity) with the full five-&#347;akti trace animated.</p></li><li><p>Plugin &amp; CLI Section &#8212; install paths for Cursor, Claude Code, and the standalone pce CLI.</p></li><li><p><strong><a href="https://sharathsphd.github.io/pratyabhijna/paper/main.pdf">Paper PDF</a></strong> &#8212; the v0.4 mechanism-study paper.</p></li></ul><p>This is the second project in an ongoing program that grounds agent design in classical Indian dar&#347;ana. The first, <strong><a href="https://open.substack.com/pub/technektar/p/when-the-context-window-is-big-and">Praty&#257;k&#7779;a</a></strong>, is a context-discipline plugin. PCE is the recognition+creativity counterpart.</p><h2><strong>Motivation</strong></h2><p>Creative writing benchmarks for large language models are now common, but the mechanisms by which an LLM is supposed to <em>get more creative</em> when wrapped in an agent loop are seldom decomposed. v0.3 of this project asked the holistic question &#8212; does the cascade beat the bare model? &#8212; and reported a null result. v0.4 takes the next, more disciplined step: it treats the cascade as a stack of named sub-mechanisms, each of which can be tested in isolation against either a bare control or a deliberately weakened sibling. This is the difference between a feature evaluation and a mechanism study.</p><p>The vocabulary we use to name those sub-mechanisms comes from Abhinavagupta&#8217;s recognition philosophy (Pratyabhij&#241;&#257;). The choice is not metaphorical. <em>Vimar&#347;a</em> &#8212; reflective self-recognition &#8212; is exactly the operation we ask the cascade to do: re-read its own draft and decide whether revision is warranted. <em>Apohana</em> &#8212; exclusion or negation &#8212; is exactly the operation that prunes the candidate set inside the icch&#257; stage. The classical Indian framework offers vocabulary that is unusually well-fitted to a recursive self-reflexivity layer, and v0.4 is an attempt to discharge the obligations of that vocabulary against measurable outcomes.</p><p>The second motivation is a pragmatic one. The early v0.4 protocol bound the experiment to the OAuth Claude CLI substrate, which constrains which models can be addressed and from where. Phase 8 widens the surface: PCE is now a portable plugin that runs unchanged inside Cursor, Claude Code, or a bare shell with the claude CLI on the path. The cascade model is configurable to any Anthropic CLI-addressable model with sane defaults (haiku for cascade, sonnet for judge). The plugin page documents the three install paths.</p><p>The third motivation is methodological transparency. v0.4 commits in advance to four primary hypotheses (H1&#8211;H4 per domain), a fixed-effects meta-pool (H5), three mechanism-decomposition hypotheses (H8a/b/c), and a judge-vs-scorer agreement check (H9). Every number on this site comes from a single <strong><a href="https://sharathsphd.github.io/pratyabhijna/benchmarks/results_v0.4/stats.json">stats.json</a></strong> with the cost ledger, integrity probes, and per-item judge verdicts</p><h2><strong>Background</strong></h2><h3><strong>Pratyabhij&#241;&#257; &#8212; recognition as the engine of creativity</strong></h3><blockquote><p>The Pratyabhij&#241;&#257; school of Kashmir &#346;aivism (10th&#8211;11th c.), brought to canonical form in Abhinavagupta&#8217;s <em>&#298;&#347;varapratyabhij&#241;&#257;vimar&#347;in&#299;</em>, treats creative cognition as a recognition (pratyabhij&#241;&#257;) event, not a generation event. The classical sequence &#8212; cit (luminous awareness), &#257;nanda (impulse), icch&#257; (volition), j&#241;&#257;na (selection), kriy&#257; (rendering), and the reflexive vimar&#347;a that closes the loop &#8212; forms what later commentators call the five-&#347;akti cascade. PCE adopts this sequence as engineering vocabulary, not metaphor: each operator has a typed contract, an audit log, and a falsifiable behavioural prediction.</p></blockquote><p>The choice is unusually well-fitted to the mechanism question we want to ask. Vimar&#347;a is precisely the operation of reading one&#8217;s own surface and deciding whether revision is warranted; that is the H8a/H8b mechanism. Apohana &#8212; exclusion of competing alternatives &#8212; is precisely what an icch&#257; stage that operates as best-of-K with negation does; that is the ADR-001 substrate. The vocabulary discharges obligations rather than decorating them.</p><h3><strong>Active inference and Bayesian Model Reduction</strong></h3><blockquote><p>Active inference, in the Friston lineage, casts perception and action as the minimisation of variational free energy. The framework supplies us with two specific primitives that v0.4 uses: a free-energy budget that gates whether the recursive revision pass fires (ADR-003), and a Bayesian Model Reduction step that prunes generative-model components when they no longer earn their complexity cost. We do <em>not</em> claim full variational descent during inference &#8212; the OAuth Claude CLI does not expose the sampler, so the cascade approximates Bayesian inversion through prompt-level best-of-K with composite scoring. The paper&#8217;s &#167;4 is explicit about this constraint.</p></blockquote><p>The variational identity that holds the framework together is F = E_q[log q(z) &#8722; log p(z, o)] = D_KL(q(z) || p(z|o)) &#8722; log p(o): a generative surface <em>o</em> is &#8220;good&#8221; exactly when the cascade&#8217;s approximate posterior <em>q(z)</em> over latent candidate continuations is close to the true posterior <em>p(z|o)</em>, with low residual surprise over <em>o</em> itself. Creative cognition is naturally cast as F-minimisation when the surface &#8212; a quatrain, an interpretation, an alternative use &#8212; is what gets inferred. Each PCE operator is one discrete bookkeeping step inside that F-minimisation: <em>cit</em> seeds the candidate posterior, <em>icch&#257;</em> reduces KL via best-of-K with composite scoring, <em>vimar&#347;a</em> performs a second-pass revision that lowers expected surprise on the committed surface.</p><p>Bayesian Model Reduction is the operator that prunes posterior components which no longer earn their complexity cost &#8212; formally, drops a candidate <em>z_i</em> when its evidence ratio p(o|z_i) / &#931;_j p(o|z_j) falls below a threshold scaled by the prior complexity penalty. The cascade&#8217;s <em>apohana</em> (negation / exclusion) stage <em>is</em> BMR realised at the prompt level: candidates that share too much surface with the bare reference, or duplicate other candidates, are dropped before <em>j&#241;&#257;na</em> selects. ADR-003&#8217;s free-energy budget is the meta-gate over the same machinery: it tracks the marginal F-reduction across the cascade and stops <em>vimar&#347;a</em> from firing another revision once that marginal reduction falls below threshold. Together, BMR-as-apohana and the F-budget make the recursive revision pass principled rather than open-ended &#8212; the cascade has a stopping criterion grounded in the same variational bookkeeping that motivates the architecture in the first place.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!Twp6!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F30559c98-1610-44aa-a0f1-bc785ae34133_737x400.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!Twp6!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F30559c98-1610-44aa-a0f1-bc785ae34133_737x400.png 424w, https://substackcdn.com/image/fetch/$s_!Twp6!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F30559c98-1610-44aa-a0f1-bc785ae34133_737x400.png 848w, https://substackcdn.com/image/fetch/$s_!Twp6!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F30559c98-1610-44aa-a0f1-bc785ae34133_737x400.png 1272w, https://substackcdn.com/image/fetch/$s_!Twp6!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F30559c98-1610-44aa-a0f1-bc785ae34133_737x400.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!Twp6!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F30559c98-1610-44aa-a0f1-bc785ae34133_737x400.png" width="737" height="400" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/30559c98-1610-44aa-a0f1-bc785ae34133_737x400.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:400,&quot;width&quot;:737,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:&quot;&quot;,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" title="" srcset="https://substackcdn.com/image/fetch/$s_!Twp6!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F30559c98-1610-44aa-a0f1-bc785ae34133_737x400.png 424w, https://substackcdn.com/image/fetch/$s_!Twp6!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F30559c98-1610-44aa-a0f1-bc785ae34133_737x400.png 848w, https://substackcdn.com/image/fetch/$s_!Twp6!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F30559c98-1610-44aa-a0f1-bc785ae34133_737x400.png 1272w, https://substackcdn.com/image/fetch/$s_!Twp6!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F30559c98-1610-44aa-a0f1-bc785ae34133_737x400.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p></p><p>Why this matters for creative cognition: pratyabhij&#241;&#257; is precisely the moment of F-minimisation when the right candidate is identified &#8212; the moment when the posterior collapses onto a surface that the cascade <em>recognises</em> as the right one, rather than generating one from scratch. The same F-minimisation story explains why <em>vimar&#347;a</em>&#8216;s revision pass measurably improves the surface (H8a) and why a learned commit gate beats the v0.3 event gate (H8b): both findings are about getting closer to argmin F. The architecture page walks the F-minimisation interpretation operator-by-operator under &#8220;What &#8216;computation&#8217; looks like in this cascade&#8221;, and the results section shows the empirical signatures.</p><h3><strong>What the substrate is</strong></h3><p>PCE has a single supported substrate: claude --print over the OAuth-bound Claude CLI. The Anthropic Python SDK code path was removed in Phase 8 (see ADR-007 on the plugin page). For the Phase 7 mechanism pilot, the same CLI was pointed at the managed Anthropic-API substrate (parallel API calls under a quota envelope distinct from the OAuth substrate) so the experiment could parallelise across domains; this is documented as a deliberate substrate-deviation event in &#167;7 of the paper. Day-to-day operation, including the showcase regeneration, runs against the OAuth substrate.</p><h3><strong>Companion work</strong></h3><blockquote><p>PCE is the second project in an author program that grounds agent design in classical Indian dar&#347;ana. The first, <strong><a href="https://zenodo.org/records/19680692">Praty&#257;k&#7779;a</a></strong> (<em>direct perception</em> / context-discipline), addresses hallucination resistance in long-context LLM agents and reports a strong positive Stouffer pooled signal across ten studies. PCE is the recognition+creativity counterpart and reports a smaller, more decomposed effect; the compounding work page contrasts the two empirical signatures honestly.</p></blockquote><h2><strong>Architecture</strong></h2><p>The recursive self-reflexivity layer in PCE is a typed, auditable composition of eight operators. The first six follow the classical pratyabhij&#241;&#257; ordering; the seventh &#8212; vimar&#347;a &#8212; closes the loop by re-reading the draft against the original prompt; the eighth implements the commit policy multiplexer that v0.4 introduces over v0.3. Every operator has a JSON-serialisable input/output contract, a deterministic seed regime, and an audit log entry per call.</p><h3><strong>How the operators compose</strong></h3><p>The diagram below traces a single prompt through the cascade and the closing recognition loop. The shaded backedge marks the BMR-annotated <em>vimar&#347;a</em> &#8594; <em>icch&#257;</em> recursion that ADR-003&#8217;s free-energy budget gates. The same flow is detailed step-by-step in the operator table below.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!WY3j!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8ad32265-5daa-46e7-aab4-93ea4221a7b6_744x362.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!WY3j!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8ad32265-5daa-46e7-aab4-93ea4221a7b6_744x362.png 424w, https://substackcdn.com/image/fetch/$s_!WY3j!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8ad32265-5daa-46e7-aab4-93ea4221a7b6_744x362.png 848w, https://substackcdn.com/image/fetch/$s_!WY3j!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8ad32265-5daa-46e7-aab4-93ea4221a7b6_744x362.png 1272w, https://substackcdn.com/image/fetch/$s_!WY3j!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8ad32265-5daa-46e7-aab4-93ea4221a7b6_744x362.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!WY3j!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8ad32265-5daa-46e7-aab4-93ea4221a7b6_744x362.png" width="744" height="362" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/8ad32265-5daa-46e7-aab4-93ea4221a7b6_744x362.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:362,&quot;width&quot;:744,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:&quot;&quot;,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" title="" srcset="https://substackcdn.com/image/fetch/$s_!WY3j!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8ad32265-5daa-46e7-aab4-93ea4221a7b6_744x362.png 424w, https://substackcdn.com/image/fetch/$s_!WY3j!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8ad32265-5daa-46e7-aab4-93ea4221a7b6_744x362.png 848w, https://substackcdn.com/image/fetch/$s_!WY3j!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8ad32265-5daa-46e7-aab4-93ea4221a7b6_744x362.png 1272w, https://substackcdn.com/image/fetch/$s_!WY3j!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8ad32265-5daa-46e7-aab4-93ea4221a7b6_744x362.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p></p><h3><strong>Operator-by-operator</strong></h3><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!yGrV!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0dae563e-ea25-42e1-8bb3-9bb6aceb9d73_1233x1000.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!yGrV!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0dae563e-ea25-42e1-8bb3-9bb6aceb9d73_1233x1000.png 424w, https://substackcdn.com/image/fetch/$s_!yGrV!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0dae563e-ea25-42e1-8bb3-9bb6aceb9d73_1233x1000.png 848w, https://substackcdn.com/image/fetch/$s_!yGrV!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0dae563e-ea25-42e1-8bb3-9bb6aceb9d73_1233x1000.png 1272w, https://substackcdn.com/image/fetch/$s_!yGrV!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0dae563e-ea25-42e1-8bb3-9bb6aceb9d73_1233x1000.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!yGrV!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0dae563e-ea25-42e1-8bb3-9bb6aceb9d73_1233x1000.png" width="1233" height="1000" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/0dae563e-ea25-42e1-8bb3-9bb6aceb9d73_1233x1000.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1000,&quot;width&quot;:1233,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:&quot;&quot;,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" title="" srcset="https://substackcdn.com/image/fetch/$s_!yGrV!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0dae563e-ea25-42e1-8bb3-9bb6aceb9d73_1233x1000.png 424w, https://substackcdn.com/image/fetch/$s_!yGrV!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0dae563e-ea25-42e1-8bb3-9bb6aceb9d73_1233x1000.png 848w, https://substackcdn.com/image/fetch/$s_!yGrV!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0dae563e-ea25-42e1-8bb3-9bb6aceb9d73_1233x1000.png 1272w, https://substackcdn.com/image/fetch/$s_!yGrV!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0dae563e-ea25-42e1-8bb3-9bb6aceb9d73_1233x1000.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p></p><h3><strong>The commit-policy multiplexer (v0.4)</strong></h3><p>v0.3 had a single commit policy: vimar&#347;a fires an event, the revision is committed if and only if the event flag is set (<em>event_gated</em>). v0.4 ships five policies &#8212; <em>always_draft</em>, <em>always_revise</em>, <em>event_gated</em> (the v0.3 policy), <em>learned_gate</em> (ADR-002), and an analysis-only <em>oracle</em> upper bound. H8c reports the leaderboard against a bare control; H8b reports the gate calibration. The results section shows the per-policy bars.</p><h3><strong>Substrate boundary</strong></h3><p>Everything above the operator boundary is portable: the cascade runs unchanged inside Cursor, Claude Code, or a bare shell. Below the boundary lives the substrate adapter (src/pce/substrate/haiku_lm), which speaks claude --print over the OAuth-bound CLI. The plugin page documents the three install paths and the model-override knobs.</p><h3><strong>What &#8220;computation&#8221; looks like in this cascade</strong></h3><p>Read in active-inference terms (see the background section for the variational identities), every operator is one bookkeeping step inside the same free-energy minimisation. <em>cit</em> seeds the candidate posterior <em>q(z)</em> over <em>K</em> continuations, sampled from the prompt-conditioned generative model. <em>&#257;nanda</em> attaches a novelty signal that biases <em>q(z)</em> away from the bare-arm reference, lowering the KL divergence between <em>q(z)</em> and a posterior that prefers surface-divergent candidates. <em>icch&#257;</em> performs the best-of-<em>K</em> reduction with composite scoring, which is the discrete approximation to a KL-minimising step over the candidate set. <em>apohana</em> is the cascade&#8217;s Bayesian Model Reduction stage: it drops candidates whose evidence ratio against the surviving set falls below the apoha threshold.</p><p><em>j&#241;&#257;na</em> commits the selection and emits a structured &#916;F score that the ADR-003 free-energy budget reads. <em>kriy&#257;</em> renders the surface verbatim &#8212; F is unchanged at this step, only the representation changes. <em>vimar&#347;a</em> is the second-pass operator that reads the draft against the prompt and the constraint set; whether it fires another revision pass depends on whether the marginal F-reduction in the previous pass crossed ADR-003&#8217;s threshold. The commit-policy multiplexer below is the final F-comparison: it decides between the draft, the shadow revision, and (in the analysis-only oracle policy) the judge-pair maximum, picking the surface with the lowest residual F under the selected policy. Empirically, the H8a revision-vs-draft contrast and the H8b learned-gate improvement are both evidence that the cascade is moving in the F-minimising direction; the results page shows the per-mechanism numbers.</p><h3><strong>What is wired but not exercised</strong></h3><p>The Hopfield <em>&#257;layavij&#241;&#257;na</em> (long-term store) operators ship in the v0.4 codebase but were not exercised in the Phase 7 pilot &#8212; their multi-session dynamics require a longitudinal study that v0.4 does not run. The chandas-aware scorer for Sanskrit prosody is on the v0.5 ladder. Both are noted honestly in the paper&#8217;s &#167;10 and on the discussion section.</p><div><hr></div><h2><strong>Methods</strong></h2><h3><strong>Pilot design</strong></h3><p>The Phase 7 mechanism pilot crossed four domains (poetry generation, poetry interpretation, alternative uses, scientific creativity) with four base arms (haiku_bare, haiku_cascade, haiku_bare_2K_scorer for H6 fairness, haiku_generic_revise_2pass for H7 fairness) and a five-policy multiplex over the cascade arm (always_draft, always_revise, event_gated, learned_gate, oracle). Per-domain n is constrained by the managed-API cost envelope and the judge envelope; the table below summarises pooled per-domain pairs.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!sgSi!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F50b99abd-34e9-4892-ae3d-e2ce0ee47ab8_422x400.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!sgSi!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F50b99abd-34e9-4892-ae3d-e2ce0ee47ab8_422x400.png 424w, https://substackcdn.com/image/fetch/$s_!sgSi!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F50b99abd-34e9-4892-ae3d-e2ce0ee47ab8_422x400.png 848w, https://substackcdn.com/image/fetch/$s_!sgSi!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F50b99abd-34e9-4892-ae3d-e2ce0ee47ab8_422x400.png 1272w, https://substackcdn.com/image/fetch/$s_!sgSi!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F50b99abd-34e9-4892-ae3d-e2ce0ee47ab8_422x400.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!sgSi!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F50b99abd-34e9-4892-ae3d-e2ce0ee47ab8_422x400.png" width="422" height="400" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/50b99abd-34e9-4892-ae3d-e2ce0ee47ab8_422x400.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:400,&quot;width&quot;:422,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:&quot;&quot;,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" title="" srcset="https://substackcdn.com/image/fetch/$s_!sgSi!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F50b99abd-34e9-4892-ae3d-e2ce0ee47ab8_422x400.png 424w, https://substackcdn.com/image/fetch/$s_!sgSi!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F50b99abd-34e9-4892-ae3d-e2ce0ee47ab8_422x400.png 848w, https://substackcdn.com/image/fetch/$s_!sgSi!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F50b99abd-34e9-4892-ae3d-e2ce0ee47ab8_422x400.png 1272w, https://substackcdn.com/image/fetch/$s_!sgSi!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F50b99abd-34e9-4892-ae3d-e2ce0ee47ab8_422x400.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p></p><h3><strong>Substrate</strong></h3><p>Both the cascade and the judge ran via parallel API calls against the managed Anthropic-API substrate during the Phase 7 pilot (global.anthropic.claude-haiku-4-5-20251001-v1:0 for cascade, global.anthropic.claude-sonnet-4-5-20250929-v1:0 for judge). The substrate deviation from the OAuth Claude CLI was justified by quota &#8212; the managed-API substrate can parallelise across domains where the OAuth substrate cannot. Day-to-day operation, including showcase regeneration, runs against the OAuth substrate. ADR-006 records the deviation and ADR-007 records the SDK code-path removal that accompanies it. The plugin page is the operator-facing reference.</p><h3><strong>Statistical protocol</strong></h3><p>Per-domain primary contrasts use paired permutation tests (50 000 permutations) and Wilcoxon signed-rank as a non-parametric backup. Effect sizes are Hedges&#8217; g; intervals are BCa 95% from 10 000 bootstraps. H5 pools H1&#8211;H4 via inverse-variance fixed-effects (ADR-005); the pre-registered alternative random-effects DerSimonian&#8211;Laird pool is reported alongside as a sensitivity check. Multi-hypothesis correction is Holm. H8a is a paired permutation test on score(revision) &#8722; score(draft) over all cascade items; H8b reports binary classifier metrics for each commit gate at the same threshold; H8c pairs each policy against the bare control with Holm correction across the six pairwise contrasts. H9 reports Spearman &#961; and sign-agreement between the proxy composite delta and the Sonnet judge delta.</p><h3><strong>Reproducibility</strong></h3><p>Every primary number on this site is regenerable from a single command:</p><pre><code><code>pce smoke
pce cascade --prompt "$(cat prompts/anushtubh.txt)" --model haiku --k 4 --seed 4242
python -m benchmarks.figures --version v0.4
python -m benchmarks.autoreport --version v0.4 --strict</code></code></pre><p>See the reproducibility page for the full repro recipe, including the cost ledger, integrity probes, and the &#167;0.5 unmerged-state critique.</p><div><hr></div><h2><strong>Hypotheses</strong></h2><p>v0.4 pre-registers four primary contrasts (H1&#8211;H4), a fixed-effects pool (H5), three mechanism decompositions (H8a/b/c), and one judge agreement check (H9). Two fairness controls (H6 with a 2&#215; scorer budget on the bare arm, H7 with a generic two-pass revision baseline) are reported in the paper appendix. Click any card for the underlying definition; the results page renders these against the live stats.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!r_6v!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7f1043ce-ab0c-4683-9e80-624591a4fec5_744x290.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!r_6v!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7f1043ce-ab0c-4683-9e80-624591a4fec5_744x290.png 424w, https://substackcdn.com/image/fetch/$s_!r_6v!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7f1043ce-ab0c-4683-9e80-624591a4fec5_744x290.png 848w, https://substackcdn.com/image/fetch/$s_!r_6v!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7f1043ce-ab0c-4683-9e80-624591a4fec5_744x290.png 1272w, https://substackcdn.com/image/fetch/$s_!r_6v!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7f1043ce-ab0c-4683-9e80-624591a4fec5_744x290.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!r_6v!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7f1043ce-ab0c-4683-9e80-624591a4fec5_744x290.png" width="744" height="290" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/7f1043ce-ab0c-4683-9e80-624591a4fec5_744x290.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:290,&quot;width&quot;:744,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:&quot;&quot;,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" title="" srcset="https://substackcdn.com/image/fetch/$s_!r_6v!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7f1043ce-ab0c-4683-9e80-624591a4fec5_744x290.png 424w, https://substackcdn.com/image/fetch/$s_!r_6v!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7f1043ce-ab0c-4683-9e80-624591a4fec5_744x290.png 848w, https://substackcdn.com/image/fetch/$s_!r_6v!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7f1043ce-ab0c-4683-9e80-624591a4fec5_744x290.png 1272w, https://substackcdn.com/image/fetch/$s_!r_6v!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7f1043ce-ab0c-4683-9e80-624591a4fec5_744x290.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p></p><h3><strong>Primary cascade-vs-bare (H1&#8211;H4)</strong></h3><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!mUQC!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fff894cee-b2eb-429f-aaae-868778db4c97_1478x990.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!mUQC!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fff894cee-b2eb-429f-aaae-868778db4c97_1478x990.png 424w, https://substackcdn.com/image/fetch/$s_!mUQC!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fff894cee-b2eb-429f-aaae-868778db4c97_1478x990.png 848w, https://substackcdn.com/image/fetch/$s_!mUQC!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fff894cee-b2eb-429f-aaae-868778db4c97_1478x990.png 1272w, https://substackcdn.com/image/fetch/$s_!mUQC!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fff894cee-b2eb-429f-aaae-868778db4c97_1478x990.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!mUQC!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fff894cee-b2eb-429f-aaae-868778db4c97_1478x990.png" width="1456" height="975" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/ff894cee-b2eb-429f-aaae-868778db4c97_1478x990.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:975,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:&quot;&quot;,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" title="" srcset="https://substackcdn.com/image/fetch/$s_!mUQC!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fff894cee-b2eb-429f-aaae-868778db4c97_1478x990.png 424w, https://substackcdn.com/image/fetch/$s_!mUQC!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fff894cee-b2eb-429f-aaae-868778db4c97_1478x990.png 848w, https://substackcdn.com/image/fetch/$s_!mUQC!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fff894cee-b2eb-429f-aaae-868778db4c97_1478x990.png 1272w, https://substackcdn.com/image/fetch/$s_!mUQC!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fff894cee-b2eb-429f-aaae-868778db4c97_1478x990.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p></p><h3><strong>Pooled effect (H5)</strong></h3><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!jOpl!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fde037a7c-8864-44f8-b578-133d8abc2e76_744x273.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!jOpl!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fde037a7c-8864-44f8-b578-133d8abc2e76_744x273.png 424w, https://substackcdn.com/image/fetch/$s_!jOpl!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fde037a7c-8864-44f8-b578-133d8abc2e76_744x273.png 848w, https://substackcdn.com/image/fetch/$s_!jOpl!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fde037a7c-8864-44f8-b578-133d8abc2e76_744x273.png 1272w, https://substackcdn.com/image/fetch/$s_!jOpl!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fde037a7c-8864-44f8-b578-133d8abc2e76_744x273.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!jOpl!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fde037a7c-8864-44f8-b578-133d8abc2e76_744x273.png" width="744" height="273" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/de037a7c-8864-44f8-b578-133d8abc2e76_744x273.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:273,&quot;width&quot;:744,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:&quot;&quot;,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" title="" srcset="https://substackcdn.com/image/fetch/$s_!jOpl!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fde037a7c-8864-44f8-b578-133d8abc2e76_744x273.png 424w, https://substackcdn.com/image/fetch/$s_!jOpl!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fde037a7c-8864-44f8-b578-133d8abc2e76_744x273.png 848w, https://substackcdn.com/image/fetch/$s_!jOpl!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fde037a7c-8864-44f8-b578-133d8abc2e76_744x273.png 1272w, https://substackcdn.com/image/fetch/$s_!jOpl!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fde037a7c-8864-44f8-b578-133d8abc2e76_744x273.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p></p><h3><strong>Fixed-effects pool of cascade-vs-bare</strong></h3><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!X5HY!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F44c4a95e-7b41-4334-a549-e81dc6b60709_1028x1000.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!X5HY!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F44c4a95e-7b41-4334-a549-e81dc6b60709_1028x1000.png 424w, https://substackcdn.com/image/fetch/$s_!X5HY!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F44c4a95e-7b41-4334-a549-e81dc6b60709_1028x1000.png 848w, https://substackcdn.com/image/fetch/$s_!X5HY!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F44c4a95e-7b41-4334-a549-e81dc6b60709_1028x1000.png 1272w, https://substackcdn.com/image/fetch/$s_!X5HY!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F44c4a95e-7b41-4334-a549-e81dc6b60709_1028x1000.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!X5HY!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F44c4a95e-7b41-4334-a549-e81dc6b60709_1028x1000.png" width="1028" height="1000" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/44c4a95e-7b41-4334-a549-e81dc6b60709_1028x1000.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1000,&quot;width&quot;:1028,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:&quot;&quot;,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" title="" srcset="https://substackcdn.com/image/fetch/$s_!X5HY!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F44c4a95e-7b41-4334-a549-e81dc6b60709_1028x1000.png 424w, https://substackcdn.com/image/fetch/$s_!X5HY!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F44c4a95e-7b41-4334-a549-e81dc6b60709_1028x1000.png 848w, https://substackcdn.com/image/fetch/$s_!X5HY!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F44c4a95e-7b41-4334-a549-e81dc6b60709_1028x1000.png 1272w, https://substackcdn.com/image/fetch/$s_!X5HY!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F44c4a95e-7b41-4334-a549-e81dc6b60709_1028x1000.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p></p><h3><strong>Methodological flag (H9)</strong></h3><p>H9 reports Spearman &#961; and sign-agreement between the proxy composite scorer and a calibrated Sonnet-4.5 LLM-judge over a held-out subset. Disagreement is treated as a flag against the proxy scorer&#8217;s construct validity rather than as a refutation of the cascade. The discussion section &#167;10.4 unpacks this.</p><div><hr></div><h2><strong>Results</strong></h2><h3><strong>9.1 Pilot coverage</strong></h3><p>The Phase 7 pilot ran via parallel API calls against the managed Anthropic-API substrate, with a deterministic seed regime and two per-model cost ledgers. The Haiku cascade consumed $12.73 across 1,277 CLI calls; the Sonnet judge consumed $0.48 across 23 rows; combined v0.4 spend was $13.21. Per-domain Haiku-cascade pairs are summarised below.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!tWhH!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd88462d8-f9f6-45da-92cd-f6f0815bfe50_744x272.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!tWhH!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd88462d8-f9f6-45da-92cd-f6f0815bfe50_744x272.png 424w, https://substackcdn.com/image/fetch/$s_!tWhH!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd88462d8-f9f6-45da-92cd-f6f0815bfe50_744x272.png 848w, https://substackcdn.com/image/fetch/$s_!tWhH!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd88462d8-f9f6-45da-92cd-f6f0815bfe50_744x272.png 1272w, https://substackcdn.com/image/fetch/$s_!tWhH!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd88462d8-f9f6-45da-92cd-f6f0815bfe50_744x272.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!tWhH!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd88462d8-f9f6-45da-92cd-f6f0815bfe50_744x272.png" width="744" height="272" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/d88462d8-f9f6-45da-92cd-f6f0815bfe50_744x272.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:272,&quot;width&quot;:744,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:&quot;&quot;,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" title="" srcset="https://substackcdn.com/image/fetch/$s_!tWhH!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd88462d8-f9f6-45da-92cd-f6f0815bfe50_744x272.png 424w, https://substackcdn.com/image/fetch/$s_!tWhH!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd88462d8-f9f6-45da-92cd-f6f0815bfe50_744x272.png 848w, https://substackcdn.com/image/fetch/$s_!tWhH!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd88462d8-f9f6-45da-92cd-f6f0815bfe50_744x272.png 1272w, https://substackcdn.com/image/fetch/$s_!tWhH!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd88462d8-f9f6-45da-92cd-f6f0815bfe50_744x272.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p></p><h3><strong>9.2 Per-domain primary contrasts (H1.v4&#8211;H4.v4)</strong></h3><p>None of the four per-domain primary contrasts cross the supported threshold. Effect sizes range from g = -0.32 to g = 0.32. With per-domain n in the single digits, retrospective power is below 0.25 across the board; this is the underpowered-pilot reading rather than a strong null. The forest plot below shows per-domain g and the H5 fixed-effects pool.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!V4HD!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F54722946-5361-40ef-abfb-26d36c8debae_744x335.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!V4HD!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F54722946-5361-40ef-abfb-26d36c8debae_744x335.png 424w, https://substackcdn.com/image/fetch/$s_!V4HD!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F54722946-5361-40ef-abfb-26d36c8debae_744x335.png 848w, https://substackcdn.com/image/fetch/$s_!V4HD!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F54722946-5361-40ef-abfb-26d36c8debae_744x335.png 1272w, https://substackcdn.com/image/fetch/$s_!V4HD!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F54722946-5361-40ef-abfb-26d36c8debae_744x335.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!V4HD!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F54722946-5361-40ef-abfb-26d36c8debae_744x335.png" width="744" height="335" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/54722946-5361-40ef-abfb-26d36c8debae_744x335.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:335,&quot;width&quot;:744,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:&quot;&quot;,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" title="" srcset="https://substackcdn.com/image/fetch/$s_!V4HD!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F54722946-5361-40ef-abfb-26d36c8debae_744x335.png 424w, https://substackcdn.com/image/fetch/$s_!V4HD!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F54722946-5361-40ef-abfb-26d36c8debae_744x335.png 848w, https://substackcdn.com/image/fetch/$s_!V4HD!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F54722946-5361-40ef-abfb-26d36c8debae_744x335.png 1272w, https://substackcdn.com/image/fetch/$s_!V4HD!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F54722946-5361-40ef-abfb-26d36c8debae_744x335.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p></p><div class="captioned-image-container"><figure><a class="image-link image2" target="_blank" href="https://substackcdn.com/image/fetch/$s_!ifnS!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F85c02b0a-66bc-429c-b031-33ee974d61a2_744x221.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!ifnS!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F85c02b0a-66bc-429c-b031-33ee974d61a2_744x221.png 424w, https://substackcdn.com/image/fetch/$s_!ifnS!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F85c02b0a-66bc-429c-b031-33ee974d61a2_744x221.png 848w, https://substackcdn.com/image/fetch/$s_!ifnS!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F85c02b0a-66bc-429c-b031-33ee974d61a2_744x221.png 1272w, https://substackcdn.com/image/fetch/$s_!ifnS!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F85c02b0a-66bc-429c-b031-33ee974d61a2_744x221.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!ifnS!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F85c02b0a-66bc-429c-b031-33ee974d61a2_744x221.png" width="744" height="221" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/85c02b0a-66bc-429c-b031-33ee974d61a2_744x221.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:221,&quot;width&quot;:744,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:&quot;&quot;,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" title="" srcset="https://substackcdn.com/image/fetch/$s_!ifnS!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F85c02b0a-66bc-429c-b031-33ee974d61a2_744x221.png 424w, https://substackcdn.com/image/fetch/$s_!ifnS!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F85c02b0a-66bc-429c-b031-33ee974d61a2_744x221.png 848w, https://substackcdn.com/image/fetch/$s_!ifnS!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F85c02b0a-66bc-429c-b031-33ee974d61a2_744x221.png 1272w, https://substackcdn.com/image/fetch/$s_!ifnS!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F85c02b0a-66bc-429c-b031-33ee974d61a2_744x221.png 1456w" sizes="100vw" loading="lazy"></picture><div></div></div></a></figure></div><p></p><h3><strong>9.3 Fixed-effects meta-pool (H5.v4)</strong></h3><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!vEcx!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F49da2417-e0a2-455b-a450-c0271d1f8bf0_744x303.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!vEcx!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F49da2417-e0a2-455b-a450-c0271d1f8bf0_744x303.png 424w, https://substackcdn.com/image/fetch/$s_!vEcx!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F49da2417-e0a2-455b-a450-c0271d1f8bf0_744x303.png 848w, https://substackcdn.com/image/fetch/$s_!vEcx!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F49da2417-e0a2-455b-a450-c0271d1f8bf0_744x303.png 1272w, https://substackcdn.com/image/fetch/$s_!vEcx!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F49da2417-e0a2-455b-a450-c0271d1f8bf0_744x303.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!vEcx!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F49da2417-e0a2-455b-a450-c0271d1f8bf0_744x303.png" width="744" height="303" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/49da2417-e0a2-455b-a450-c0271d1f8bf0_744x303.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:303,&quot;width&quot;:744,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:&quot;&quot;,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" title="" srcset="https://substackcdn.com/image/fetch/$s_!vEcx!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F49da2417-e0a2-455b-a450-c0271d1f8bf0_744x303.png 424w, https://substackcdn.com/image/fetch/$s_!vEcx!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F49da2417-e0a2-455b-a450-c0271d1f8bf0_744x303.png 848w, https://substackcdn.com/image/fetch/$s_!vEcx!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F49da2417-e0a2-455b-a450-c0271d1f8bf0_744x303.png 1272w, https://substackcdn.com/image/fetch/$s_!vEcx!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F49da2417-e0a2-455b-a450-c0271d1f8bf0_744x303.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p></p><h3><strong>9.4 Mechanism panel (H8a / H8b / H8c)</strong></h3><p>The mechanism panel is where v0.4&#8217;s positive findings live. H8a tests the shadow revision pass directly: pair (score(revision), score(draft)) for every cascade item and ask whether the revision is reliably better. The answer is yes &#8212; g = 0.65, p = 1.2e-4, n = 27. This is the pratyabhij&#241;&#257; mechanism doing its job.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!QSAh!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7a36478b-0874-405d-8d48-f8793f57f88c_744x276.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!QSAh!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7a36478b-0874-405d-8d48-f8793f57f88c_744x276.png 424w, https://substackcdn.com/image/fetch/$s_!QSAh!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7a36478b-0874-405d-8d48-f8793f57f88c_744x276.png 848w, https://substackcdn.com/image/fetch/$s_!QSAh!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7a36478b-0874-405d-8d48-f8793f57f88c_744x276.png 1272w, https://substackcdn.com/image/fetch/$s_!QSAh!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7a36478b-0874-405d-8d48-f8793f57f88c_744x276.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!QSAh!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7a36478b-0874-405d-8d48-f8793f57f88c_744x276.png" width="744" height="276" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/7a36478b-0874-405d-8d48-f8793f57f88c_744x276.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:276,&quot;width&quot;:744,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:&quot;&quot;,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" title="" srcset="https://substackcdn.com/image/fetch/$s_!QSAh!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7a36478b-0874-405d-8d48-f8793f57f88c_744x276.png 424w, https://substackcdn.com/image/fetch/$s_!QSAh!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7a36478b-0874-405d-8d48-f8793f57f88c_744x276.png 848w, https://substackcdn.com/image/fetch/$s_!QSAh!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7a36478b-0874-405d-8d48-f8793f57f88c_744x276.png 1272w, https://substackcdn.com/image/fetch/$s_!QSAh!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7a36478b-0874-405d-8d48-f8793f57f88c_744x276.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p></p><p>H8b asks the calibration question: given that the revision is usually better, can we predict <em>which</em> items will benefit? The v0.3 event-driven gate fires on internal vimar&#347;a diagnostics and yields F1 = 0.52. The v0.4 learned gate (ADR-002) trains a small logistic head on the same diagnostics plus the proxy score gap and yields F1 = 0.65 &#8212; a real improvement.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!K_h5!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fad1d19ad-4421-4be3-a907-04490b9e6ae2_744x367.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!K_h5!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fad1d19ad-4421-4be3-a907-04490b9e6ae2_744x367.png 424w, https://substackcdn.com/image/fetch/$s_!K_h5!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fad1d19ad-4421-4be3-a907-04490b9e6ae2_744x367.png 848w, https://substackcdn.com/image/fetch/$s_!K_h5!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fad1d19ad-4421-4be3-a907-04490b9e6ae2_744x367.png 1272w, https://substackcdn.com/image/fetch/$s_!K_h5!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fad1d19ad-4421-4be3-a907-04490b9e6ae2_744x367.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!K_h5!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fad1d19ad-4421-4be3-a907-04490b9e6ae2_744x367.png" width="744" height="367" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/ad1d19ad-4421-4be3-a907-04490b9e6ae2_744x367.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:367,&quot;width&quot;:744,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:&quot;&quot;,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" title="" srcset="https://substackcdn.com/image/fetch/$s_!K_h5!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fad1d19ad-4421-4be3-a907-04490b9e6ae2_744x367.png 424w, https://substackcdn.com/image/fetch/$s_!K_h5!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fad1d19ad-4421-4be3-a907-04490b9e6ae2_744x367.png 848w, https://substackcdn.com/image/fetch/$s_!K_h5!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fad1d19ad-4421-4be3-a907-04490b9e6ae2_744x367.png 1272w, https://substackcdn.com/image/fetch/$s_!K_h5!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fad1d19ad-4421-4be3-a907-04490b9e6ae2_744x367.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p></p><p>H8c places the policies on a single leaderboard against the bare control. <em>always_revise</em> leads, followed by <em>learned_gate</em>; <em>event_gated</em> sits with a CI that crosses zero; <em>always_draft</em> is at the floor. The pairwise gaps between the top two are not significant after Holm correction, which we read as: revision is the right default, and a smarter gate gets closer to the always-revise upper bound.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!fZj8!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4b107612-338d-4e3a-a5e0-6a768081428c_984x614.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!fZj8!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4b107612-338d-4e3a-a5e0-6a768081428c_984x614.png 424w, https://substackcdn.com/image/fetch/$s_!fZj8!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4b107612-338d-4e3a-a5e0-6a768081428c_984x614.png 848w, https://substackcdn.com/image/fetch/$s_!fZj8!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4b107612-338d-4e3a-a5e0-6a768081428c_984x614.png 1272w, https://substackcdn.com/image/fetch/$s_!fZj8!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4b107612-338d-4e3a-a5e0-6a768081428c_984x614.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!fZj8!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4b107612-338d-4e3a-a5e0-6a768081428c_984x614.png" width="984" height="614" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/4b107612-338d-4e3a-a5e0-6a768081428c_984x614.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:614,&quot;width&quot;:984,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:&quot;&quot;,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" title="" srcset="https://substackcdn.com/image/fetch/$s_!fZj8!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4b107612-338d-4e3a-a5e0-6a768081428c_984x614.png 424w, https://substackcdn.com/image/fetch/$s_!fZj8!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4b107612-338d-4e3a-a5e0-6a768081428c_984x614.png 848w, https://substackcdn.com/image/fetch/$s_!fZj8!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4b107612-338d-4e3a-a5e0-6a768081428c_984x614.png 1272w, https://substackcdn.com/image/fetch/$s_!fZj8!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4b107612-338d-4e3a-a5e0-6a768081428c_984x614.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p></p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!SW5D!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F386b97c6-97b8-4280-a701-b5794456eccc_744x284.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!SW5D!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F386b97c6-97b8-4280-a701-b5794456eccc_744x284.png 424w, https://substackcdn.com/image/fetch/$s_!SW5D!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F386b97c6-97b8-4280-a701-b5794456eccc_744x284.png 848w, https://substackcdn.com/image/fetch/$s_!SW5D!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F386b97c6-97b8-4280-a701-b5794456eccc_744x284.png 1272w, https://substackcdn.com/image/fetch/$s_!SW5D!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F386b97c6-97b8-4280-a701-b5794456eccc_744x284.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!SW5D!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F386b97c6-97b8-4280-a701-b5794456eccc_744x284.png" width="744" height="284" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/386b97c6-97b8-4280-a701-b5794456eccc_744x284.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:284,&quot;width&quot;:744,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:&quot;&quot;,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" title="" srcset="https://substackcdn.com/image/fetch/$s_!SW5D!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F386b97c6-97b8-4280-a701-b5794456eccc_744x284.png 424w, https://substackcdn.com/image/fetch/$s_!SW5D!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F386b97c6-97b8-4280-a701-b5794456eccc_744x284.png 848w, https://substackcdn.com/image/fetch/$s_!SW5D!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F386b97c6-97b8-4280-a701-b5794456eccc_744x284.png 1272w, https://substackcdn.com/image/fetch/$s_!SW5D!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F386b97c6-97b8-4280-a701-b5794456eccc_744x284.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p></p><h3><strong>9.5 Judge-vs-proxy agreement (H9.v4)</strong></h3><p>H9 stress-tests the proxy composite scorer against a Sonnet-4.5 LLM-judge with a frozen prompt. Spearman &#961; on the per-item delta is 0.00; sign-agreement is 56.5% over n = 23 items. We treat this as a methodological flag: the proxy scorer (length &#215; fluency &#215; lexical diversity) is not picking up what a calibrated LLM-judge rewards. The discussion page &#167;10.4 unpacks the implications and the v0.5 metric-design ladder.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!dt8v!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2b1c7de8-6009-4cb2-946f-a2262a85f4a2_1051x1000.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!dt8v!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2b1c7de8-6009-4cb2-946f-a2262a85f4a2_1051x1000.png 424w, https://substackcdn.com/image/fetch/$s_!dt8v!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2b1c7de8-6009-4cb2-946f-a2262a85f4a2_1051x1000.png 848w, https://substackcdn.com/image/fetch/$s_!dt8v!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2b1c7de8-6009-4cb2-946f-a2262a85f4a2_1051x1000.png 1272w, https://substackcdn.com/image/fetch/$s_!dt8v!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2b1c7de8-6009-4cb2-946f-a2262a85f4a2_1051x1000.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!dt8v!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2b1c7de8-6009-4cb2-946f-a2262a85f4a2_1051x1000.png" width="1051" height="1000" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/2b1c7de8-6009-4cb2-946f-a2262a85f4a2_1051x1000.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1000,&quot;width&quot;:1051,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:&quot;&quot;,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" title="" srcset="https://substackcdn.com/image/fetch/$s_!dt8v!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2b1c7de8-6009-4cb2-946f-a2262a85f4a2_1051x1000.png 424w, https://substackcdn.com/image/fetch/$s_!dt8v!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2b1c7de8-6009-4cb2-946f-a2262a85f4a2_1051x1000.png 848w, https://substackcdn.com/image/fetch/$s_!dt8v!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2b1c7de8-6009-4cb2-946f-a2262a85f4a2_1051x1000.png 1272w, https://substackcdn.com/image/fetch/$s_!dt8v!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2b1c7de8-6009-4cb2-946f-a2262a85f4a2_1051x1000.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p></p><div><hr></div><h2><strong>Discussion</strong></h2><h3><strong>10.1 The mechanism reading</strong></h3><p>The single most important shift between v0.3 and v0.4 is conceptual: v0.3 asked <em>does the cascade beat bare</em> and reported a null. v0.4 asks <em>which sub-mechanisms inside the cascade actually do work</em>. The answer is layered. The recursive revision pass &#8212; pratyabhij&#241;&#257;&#8217;s vimar&#347;a, made operationally concrete as a re-read of the draft against the prompt &#8212; is robustly positive on its own (H8a). A learned commit gate (H8b) outperforms the v0.3 event gate at deciding when to commit that revision. The wrapping cascade-vs-bare contrast does not move at this n because the cascade arm runs the same revision step for every item, while the bare arm gets exactly one shot; H8a explains <em>why</em> the cascade should help, and H8c explains <em>which policy</em> realises that help most cleanly.</p><h3><strong>10.2 Per-operator dissection</strong></h3><p>Reading the audit logs operator-by-operator: cit alone is not distinguishable from a single claude --print call at the seeds we use; &#257;nanda&#8217;s novelty pulse correlates weakly with downstream score gaps; icch&#257;&#8217;s best-of-K with composite scoring is responsible for the bulk of the surface variation across the K candidates; j&#241;&#257;na&#8217;s selection is dominated by the same composite that the H9 finding flags as misaligned with the LLM-judge; kriy&#257; is a verbatim render in the v0.4 build; vimar&#347;a carries the recursion. The finding is not subtle: the visible signal in H8a is the vimar&#347;a-driven revision step.</p><h3><strong>10.3 The H8b reading &#8212; the gate is the problem, not the cascade</strong></h3><p>The v0.3 event gate fires on a vimar&#347;a diagnostic (event flag set if the reflexive read finds at least one constraint violation). H8b shows it under-fires: precision is high (1.0) but recall is low &#8212; the gate misses items where the revision would improve the surface but no constraint is technically violated. The learned gate (ADR-002) trains a logistic head on the same diagnostics plus the proxy score gap and recovers ~12 F1 points. H8b is a positive finding about gate design, not a refutation of vimar&#347;a: the cascade has the recognition signal; the v0.3 gate just under-uses it.</p><h3><strong>10.4 The H9 flag</strong></h3><p>The proxy composite scorer correlates with the Sonnet-4.5 judge at &#961; = 0.0 over the per-item delta. Position bias was checked (the judge&#8217;s verdict does not flip when arms are swapped); by-quartile breakdown shows the disagreement is not concentrated in any one domain. The honest reading is that the proxy scorer (length &#215; fluency &#215; lexical diversity) and the LLM-judge are measuring different things &#8212; the latter weighs thematic coherence and image freshness more heavily. This finding is consistent with the LLM-as-judge calibration literature: an automated judge with a frozen prompt captures dimensions that a feature-based composite cannot. v0.5&#8217;s metric-design ladder treats judge-aligned scoring as a first-class concern.</p><h3><strong>10.5 Pratyabhij&#241;&#257; as engineering vocabulary</strong></h3><blockquote><p>Why does the recognition philosophy of Abhinavagupta keep earning its place across this study? Because vimar&#347;a is exactly the operation we ask the cascade to do, and apohana is exactly the move that prunes the candidate set inside the icch&#257; stage. The vocabulary is well-fitted, not decorative. The mechanism reading above survives even if a reader strips the Sanskrit names and reads the operators as &#8220;step 1 through step 8.&#8221; What the names buy is a pre-existing literature on what each operator is for, which sharpens the engineering choices: vimar&#347;a names the obligation to read one&#8217;s own surface, and the H8a/H8b results are the empirical discharge of that obligation.</p></blockquote><h3><strong>10.6 Compounding context-engineering work</strong></h3><p>PCE is the second project in an author program that grounds agent design in classical Indian dar&#347;ana. The first, <strong><a href="https://zenodo.org/records/19680692">Praty&#257;k&#7779;a</a></strong>, addresses the direct-perception axis (context-discipline / hallucination resistance) and reports a strong Stouffer pooled signal. PCE addresses the recognition axis (creativity through reflexive self-recognition) and reports a smaller, more decomposed effect. The contrast is not embarrassing; it is informative. Creativity is harder to move with this kind of mechanism than hallucination is, and the per-mechanism decomposition is the right way to find what does move.</p><h3><strong>10.7 Threats to validity</strong></h3><p>The pilot ran via parallel API calls against the managed Anthropic-API substrate with a single judge model (Sonnet-4.5). Per-domain n is in the single digits for the cascade arm, which gives retrospective power below 0.25 on H1&#8211;H4. The proxy composite is misaligned with the LLM-judge at &#961; = 0.0 (H9), so the H8a finding is conditional on the proxy as a proxy; the v0.5 ladder includes a judge-aligned scorer. Integrity probes and the cost ledger are published alongside this site for forensic audit. Seed regime is deterministic; the per-worker ledger separation is documented in the orchestrator design. The &#167;0.5 unmerged-state critique covering the Phase 7-to-Phase 8 gap is preserved on the reproducibility page as the canonical forensic record.</p><div><hr></div><h2><strong>Showcase &#8212; 9 demos with full cascade traces</strong></h2><p>Nine creative outputs covering three Sanskrit chandas, three English poetry styles, and three scientific creativity prompts. The three Sanskrit demos are <strong>live v0.4.1 cascade outputs</strong> (source = &#8220;live_cascade_v0_4_1&#8221;): the cascade was re-run against the prompts in scripts/showcase_specs.toml with --mode live. The tools.sanskrit_chandas validator&#8217;s output is reported as an <em>informational note</em> on each Sanskrit page because v0.4 has no chandas-aware composite scorer; the live cascade emits markdown-prose answers, not stripped verse surfaces, so the validator&#8217;s ok / count signal does not block release. The v0.5 ladder adds a chandas-aware scorer at which point this can be promoted back to a strict gate. English and scientific demos are real Phase 7 cascade traces with draft, shadow revision, and judge data preserved.</p><h3><strong>Sanskrit chandas</strong></h3><p><strong><a href="https://sharathsphd.github.io/pratyabhijna/showcase/sanskrit_anustubh">sanskrit validator: review</a></strong></p><h3><strong>Anu&#7779;&#7789;ubh &#8212; pre-classical 4&#215;8 &#347;loka</strong></h3><p><strong><a href="https://sharathsphd.github.io/pratyabhijna/showcase/sanskrit_anustubh">Compose a four-p&#257;da anu&#7779;&#7789;ubh on the theme of</a></strong> <em><strong><a href="https://sharathsphd.github.io/pratyabhijna/showcase/sanskrit_anustubh">vimar&#347;a</a></strong></em> <strong><a href="https://sharathsphd.github.io/pratyabhijna/showcase/sanskrit_anustubh">(reflective recognition), 32 syllables total.</a></strong></p><p><strong><a href="https://sharathsphd.github.io/pratyabhijna/showcase/sanskrit_anustubh">sanskrit_anustubh revision</a></strong></p><p><strong><a href="https://sharathsphd.github.io/pratyabhijna/showcase/sanskrit_gayatri">sanskrit validator: review</a></strong></p><h3><strong>G&#257;yatr&#299; &#8212; 3&#215;8 invocation</strong></h3><p><strong><a href="https://sharathsphd.github.io/pratyabhijna/showcase/sanskrit_gayatri">Compose a single g&#257;yatr&#299; (24 syllables, three p&#257;das of 8) addressed to citi-&#347;akti as illuminator of cognition.</a></strong></p><p><strong><a href="https://sharathsphd.github.io/pratyabhijna/showcase/sanskrit_gayatri">sanskrit_gayatri revision</a></strong></p><p><strong><a href="https://sharathsphd.github.io/pratyabhijna/showcase/sanskrit_indravajra">sanskrit validator: review</a></strong></p><h3><strong>Indravajr&#257; &#8212; 4&#215;11 vajra-pattern</strong></h3><p><strong><a href="https://sharathsphd.github.io/pratyabhijna/showcase/sanskrit_indravajra">Compose a four-p&#257;da indravajr&#257; on the recognition (pratyabhij&#241;&#257;) of the self as already free.</a></strong></p><p><strong><a href="https://sharathsphd.github.io/pratyabhijna/showcase/sanskrit_indravajra">sanskrit_indravajra revision</a></strong></p><h3><strong>English poetry</strong></h3><p><strong><a href="https://sharathsphd.github.io/pratyabhijna/showcase/english_dickinson_slant">english validator: review</a></strong></p><h3><strong>Dickinson slant &#8212; &#8216;the air holds its breath&#8217; (gate miss)</strong></h3><p><strong><a href="https://sharathsphd.github.io/pratyabhijna/showcase/english_dickinson_slant">Free-verse poem in the Dickinson tradition: slant rhyme, en-dash mid-thought, anaphora.</a></strong></p><p><strong><a href="https://sharathsphd.github.io/pratyabhijna/showcase/english_dickinson_slant">english_dickinson_slant revision</a></strong></p><p><strong><a href="https://sharathsphd.github.io/pratyabhijna/showcase/english_imagist_haiku">english validator: review</a></strong></p><h3><strong>Imagist haiku &#8212; &#8216;White feather, iron rails&#8217;</strong></h3><p><strong><a href="https://sharathsphd.github.io/pratyabhijna/showcase/english_imagist_haiku">Three-line English haiku, imagist constraint (concrete sensory specificity).</a></strong></p><p><strong><a href="https://sharathsphd.github.io/pratyabhijna/showcase/english_imagist_haiku">english_imagist_haiku revision</a></strong></p><p><strong><a href="https://sharathsphd.github.io/pratyabhijna/showcase/english_pastoral_traditional">english validator: review</a></strong></p><h3><strong>Pastoral, traditional metre &#8212; &#8216;Rain on tin&#8217;</strong></h3><p><strong><a href="https://sharathsphd.github.io/pratyabhijna/showcase/english_pastoral_traditional">Traditional pastoral haiku, rain-on-roof image, contemplative register.</a></strong></p><p><strong><a href="https://sharathsphd.github.io/pratyabhijna/showcase/english_pastoral_traditional">english_pastoral_traditional revision</a></strong></p><h3><strong>Scientific creativity</strong></h3><p><strong><a href="https://sharathsphd.github.io/pratyabhijna/showcase/science_galaxy_arms">science validator: review</a></strong></p><h3><strong>Why galaxies have spiral arms (largest revision uplift in pilot)</strong></h3><p><strong><a href="https://sharathsphd.github.io/pratyabhijna/showcase/science_galaxy_arms">Explain spiral arms in galaxies via at least two competing physical framings.</a></strong></p><p><strong><a href="https://sharathsphd.github.io/pratyabhijna/showcase/science_galaxy_arms">science_galaxy_arms revision</a></strong></p><p><strong><a href="https://sharathsphd.github.io/pratyabhijna/showcase/science_ice_geometry">science validator: review</a></strong></p><h3><strong>Why ice floats &#8212; beyond the textbook (gate miss)</strong></h3><p><strong><a href="https://sharathsphd.github.io/pratyabhijna/showcase/science_ice_geometry">Explain why ice floats in a way that goes beyond &#8216;hydrogen bonding makes ice less dense&#8217;, surfacing the geometric and thermodynamic structure underneath.</a></strong></p><p><strong><a href="https://sharathsphd.github.io/pratyabhijna/showcase/science_ice_geometry">science_ice_geometry revision</a></strong></p><p><strong><a href="https://sharathsphd.github.io/pratyabhijna/showcase/science_unreasonable_effectiveness">science validator: review</a></strong></p><h3><strong>Why mathematics works in physics (vimar&#347;a fired)</strong></h3><p><strong><a href="https://sharathsphd.github.io/pratyabhijna/showcase/science_unreasonable_effectiveness">Argue, in 400-600 words, why mathematics is unreasonably effective in describing physics, taking a contrarian or non-textbook angle.</a></strong></p><p><strong><a href="https://sharathsphd.github.io/pratyabhijna/showcase/science_unreasonable_effectiveness">science_unreasonable_effectiveness revision</a></strong></p><div><hr></div><h2><strong>Plugin &amp; CLI &#8212; three install paths</strong></h2><p>PCE v0.4 ships as a portable plugin with three first-class install paths: a Cursor plugin, a Claude Code plugin, and a standalone pce CLI. The cascade itself is host-agnostic; only the manifest and the entry point change per host. A single configuration chain (defaults &lt; repo pce.toml &lt; ~/.config/pce/config.toml &lt; environment variables &lt; CLI flags; later layers override earlier) controls model selection across all three paths.</p><h3><strong>1. Standalone CLI (recommended for batch / CI use)</strong></h3><pre><code><code># clone, install, smoke
git clone https://github.com/sharathsphd/pratyabhijna
cd pratyabhijna
uv pip install -e .                         # required: registers the pce script
pce smoke
pce config show

# ad-hoc cascade run
pce cascade --prompt "Write a contemporary haiku on attention drift." \
            --constraint "imagism" --k 4 --seed 4242

# judge a pair (the Sonnet judge bridge in benchmarks/judge.py)
pce judge-pair --domain poetry_gen --item-id p07 \
               --treatment-text out/treatment.txt --control-text out/control.txt</code></code></pre><p>The CLI requires only the OAuth-bound claude CLI on the path. No host IDE is required. The pce showcase --regenerate &lt;slug|all&gt; subcommand drives scripts/generate_v0_4_<strong><a href="http://showcase.py/">showcase.py</a></strong> end-to-end (six Phase 7 cascade-derived demos plus three Sanskrit live-cascade demos as of v0.4.1; see the showcase index).</p><h3><strong>2. Cursor plugin</strong></h3><pre><code><code># from a clone of the repo
cursor --install-plugin .

# or list, then enable in the Cursor settings UI
cursor plugin list</code></code></pre><p>The Cursor manifest at plugin/.cursor-plugin/plugin.json mirrors the Claude Code manifest: same MCP tools, same slash commands, same hooks. The plugin runtime is identical because both hosts speak MCP. After install, the /pce-cascade and /pce-judge-pair commands appear in the Cursor command palette.</p><h3><strong>3. Claude Code plugin</strong></h3><pre><code><code>claude plugin install https://github.com/sharathsphd/pratyabhijna
# or, for a local clone
ln -s "$(pwd)" "$HOME/.claude/plugins/pce"</code></code></pre><p>The Claude Code manifest at plugin/.claude-plugin/plugin.json is the canonical reference; the Cursor manifest is generated to match.</p><h3><strong>Configuring the cascade and judge models</strong></h3><p>PCE accepts any Anthropic CLI-addressable model. Defaults are haiku for cascade and sonnet for judge. The resolution chain matches PCEConfig.load() in src/pce/<strong><a href="http://config.py/">config.py</a></strong>: built-in defaults are layered first, then the repo-level ./pce.toml, then the user-level ~/.config/pce/config.toml, then environment variables, and finally CLI flags (which always win).</p><ol><li><p>Built-in defaults.</p></li><li><p>Repo-local ./pce.toml at the workspace root.</p></li><li><p>~/.config/pce/config.toml (XDG-aware: also honours $XDG_CONFIG_HOME/pce/config.toml).</p></li><li><p>Environment variables: PCE_MODEL / PCE_CASCADE_MODEL, PCE_JUDGE_MODEL, PCE_CLI, PCE_TIMEOUT_S, PCE_COST_CAP_USD. Legacy back-compat aliases (PCE_HAIKU_MODEL, PCE_HAIKU_CLI, &#8230;) still work; the new names take precedence when both are set.</p></li><li><p>CLI flags: --model, --judge-model, --cli-bin, --timeout-s, --config.</p></li></ol><p>Example ~/.config/pce/config.toml:</p><pre><code><code>[pce]
cascade_model = "sonnet"          # use Sonnet-4.5 for cascade instead of Haiku
judge_model = "opus"              # use Opus for the LLM-judge (when available on your CLI)
cli_bin = "claude"                # binary on PATH
timeout_s = 240
cost_cap_usd = 50.0</code></code></pre><h3><strong>Substrate boundary &#8212; OAuth CLI only</strong></h3><p>The Anthropic Python SDK code path was removed in Phase 8 (ADR-007). PCE has a single supported substrate: claude --print over the OAuth-bound CLI. Legacy users who set PCE_USE_SDK=1 will see a clear deprecation error with a one-line remediation path. The Phase 7 mechanism pilot used the managed Anthropic-API substrate through the same CLI&#8217;s profile selector; ADR-006 records the deviation.</p><div><hr></div><h2><strong>Reproducibility</strong></h2><p>Every primary number on this site is regenerable from the open repository. Three install paths (Cursor, Claude Code, standalone CLI) all share the same cascade module (src/pce/cascade.py) and the same statistical pipeline (benchmarks/figures.py+ benchmark/autoreport.py).</p><h3><strong>Recipe &#8212; replicate every number on this site</strong></h3><pre><code><code># 1. clone + install
git clone https://github.com/sharathsphd/pratyabhijna
cd pratyabhijna
uv pip install -e .
pce smoke

# 2. regenerate the figure pack and autoreport
python -m benchmarks.figures --version v0.4
python -m benchmarks.autoreport --version v0.4 --strict

# 3. (optional) regenerate the showcase from cached Phase 7 results
python scripts/generate_v0_4_showcase.py
python tests/test_v0_4_showcase.py    # verifies all 9 demos exist with traces

# 4. rebuild the paper
cd paper &amp;&amp; tectonic -X compile main.tex

# 5. rebuild the Astro site
cd docs/site &amp;&amp; pnpm install &amp;&amp; python ../../scripts/prepare_site_data.py &amp;&amp; pnpm build</code></code></pre><h3><strong>Audit artefacts</strong></h3><ul><li><p><strong><a href="https://sharathsphd.github.io/pratyabhijna/benchmarks/results_v0.4/stats.json">benchmarks/results_v0.4/stats.json</a></strong> &#8212; pre-registered hypothesis statistics.</p></li><li><p><strong><a href="https://sharathsphd.github.io/pratyabhijna/benchmarks/results_v0.4/judge.jsonl">benchmarks/results_v0.4/judge.jsonl</a></strong> &#8212; per-item LLM-judge verdicts.</p></li><li><p><strong><a href="https://sharathsphd.github.io/pratyabhijna/benchmarks/results_v0.4/judge_agreement.json">benchmarks/results_v0.4/judge_agreement.json</a></strong> &#8212; Spearman &#961; and sign-agreement (H9.v4).</p></li><li><p>audit/v0.4/cost_ledger_merged.json &#8212; managed-API token-cost ledger across the four domains.</p></li><li><p>audit/v0.4/integrity_probes_merged.jsonl &#8212; substrate integrity probes across the pilot run.</p></li><li><p>audit/v0.4/lit_verification.jsonl &amp; lit_new_entries.jsonl &#8212; bibliography verification + new-entry log.</p></li><li><p>audit/v0.4/phase8_gate_report.json &#8212; Phase 8 Ralph gate stack pass/fail summary.</p></li></ul><h3><strong>The &#167;0.5 unmerged-state critique</strong></h3><p>Phase 7 of the v0.4 mechanism study completed via parallel API calls against the managed Anthropic-API substrate on April 30 2026 with the result tree pushed to origin/v0.4-mechanism-study at commit 94ba97e. From that date until Phase 8 landed, the public main branch and the GitHub Pages site told the v0.3 story: results_v0.3/stats.json is what the public surface fetched, the README&#8217;s headline block was the v0.3 negative-result summary, and the repository&#8217;s hypothesis table read H1.v3&#8211;H8.v3.</p><p>There are reasonable defences for the branch-only stance. The v0.4 paper, HTML, and release notes were not yet written; a premature merge would have surfaced raw stats without their academic interpretation. The Pages workflow had no v0.4 schema branch and would have either silently rendered v0.3 or broken. The COMPLETION_PROMISES_<strong><a href="http://v0.4.md/">v0.4.md</a></strong> Phase 8 contract explicitly required the paper, HTML, README, and release notes to be ready before merge, not the other way around.</p><p>The costs are visible too. External readers landing on the GitHub Pages site for the first time on May 1 2026 saw results that were by then stale at the headline level (the cascade-vs-bare null without the H8a / H8b mechanism findings); collaborators did not see ADR-005 fixed-effects or ADR-006 typed Haiku errors on the trunk; the branch was at risk of drifting if anything else landed on main; the cost ledgers + integrity probes from a reproducible managed-API pilot run were not visible at main yet, so anyone trying to replicate had to dig through branches.</p><p>The Phase 8 mitigation is not a defensive squash but an explicit acknowledgement: the merge happens at the end of Phase 8 in lockstep with the paper, the Astro site (which from day one reads results_v0.4/stats.json), the release notes, the v0.4.0 tag, and the GitHub release. The PR body for the Phase 8 mega-merge cites this section by name. The paper &#167;10.8 opens with the same observation. We do not pretend the gap was costless; we record what it cost and why we accepted the cost.</p><p>A v0.5 process change is recorded in the v0.5 PRD: future phases that produce numbers should land a &#8220;preliminary results&#8221; PR within 48 hours of pilot completion, even if the full paper rewrite is still pending &#8212; Pages can run a &#8220;draft&#8221; badge in those windows.</p><div><hr></div><h2><strong>Compounding work</strong></h2><h3><strong>The author program</strong></h3><p>PCE is the second project in an ongoing program that grounds agent design in classical Indian dar&#347;ana. The program treats traditional epistemology not as decoration but as engineering vocabulary that discharges obligations against measurable outcomes. Two axes have been studied so far.</p><h3><strong>Praty&#257;k&#7779;a &#8212; direct perception, context-discipline</strong></h3><p>The first project, <em>Praty&#257;k&#7779;a</em> (direct perception), addresses hallucination resistance and context-discipline in long-context LLM agents. It reports a strong Stouffer pooled signal (Z = 9.114) across ten studies on RULER, HELMET, NoCha, HaluEval, TruthfulQA, FACTS-Grounding, and SWE-bench Verified. The sister Claude-Code/Cursor plugin is published and reproducible:</p><ul><li><p><strong><a href="https://open.substack.com/pub/technektar/p/when-the-context-window-is-big-and">Substack exposition (2026)</a></strong> &#8212; accessible writeup.</p></li><li><p><strong><a href="https://zenodo.org/records/19680692">Zenodo record (v2)</a></strong> &#8212; peer-reviewable archive of the harness + numbers.</p></li><li><p><strong><a href="https://sharathsphd.github.io/context-engineering-harness/">Praty&#257;k&#7779;a Pages site</a></strong> &#8212; interactive surface for the harness&#8217;s results.</p></li></ul><h3><strong>Pratyabhij&#241;&#257; &#8212; recognition, creativity</strong></h3><p>PCE is the recognition+creativity counterpart. Where Praty&#257;k&#7779;a asks <em>can the agent perceive its context faithfully?</em>, Pratyabhij&#241;&#257; asks <em>can the agent recognise its own draft and improve it?</em> The empirical signature is smaller and more decomposed than Praty&#257;k&#7779;a&#8217;s, but the framing is the same: classical vocabulary chosen for fit, mechanism-level decomposition, pre-registered hypotheses, public audit artefacts.</p><h3><strong>Why the two effect sizes differ</strong></h3><p>Praty&#257;k&#7779;a&#8217;s pooled signal is large because hallucination resistance has a clean ground-truth target: either the agent hallucinates an entity or it doesn&#8217;t. PCE&#8217;s pooled signal is small because creativity has no ground-truth target &#8212; the proxy scorer is a composite, the LLM-judge has its own biases (per H9), and small-n pilots have wide CIs. The decomposition (H8a / H8b / H8c) finds the moving parts that a holistic cascade-vs-bare contrast washes out. The smaller effect is not a refutation of the program but a calibration data point: creativity is harder to move with this kind of mechanism than hallucination is.</p><h3><strong>Cross-citing</strong></h3><p>The PCE paper cites Praty&#257;k&#7779;a in the related-work section as the companion piece on the direct-perception axis. The Praty&#257;k&#7779;a paper (linked above) cites PCE as the recognition-axis counterpart. Both projects share the same author voice on substrate choice (OAuth Claude CLI), audit conventions, and the discipline of pre-registration.</p><div><hr></div><h2><strong>References</strong></h2><p>Bibliography for the v0.4 paper. Every entry is verified against Crossref, arXiv, or the official publisher record. The verification log lives at audit/v0.4/lit_verification.jsonl; new entries added during Phase 8 are recorded in audit/v0.4/lit_new_entries.jsonl.</p><h3><strong>Pratyabhij&#241;&#257; philosophy</strong></h3><ol><li><p>Abhinavagupta. &#298;&#347;varapratyabhij&#241;&#257;vimar&#347;in&#299;, eds. K. A. Subramania Iyer &amp; K. C. Pandey. Motilal Banarsidass, 1986.</p></li><li><p>Singh, J. Pratyabhij&#241;&#257;h&#7771;dayam: The Secret of Self-Recognition. Motilal Banarsidass. <strong><a href="https://www.mlbd.in/">&#8599; link</a></strong></p></li><li><p>Lawrence, D. P. Rediscovering God with Transcendental Argument: A Contemporary Interpretation of Monistic Kashmiri &#346;aiva Philosophy. SUNY Press.</p></li></ol><h3><strong>Active inference</strong></h3><ol><li><p>Friston, K. The free-energy principle: a unified brain theory? Nat. Rev. Neurosci. 11, 127&#8211;138 (2010). <strong><a href="https://doi.org/10.1038/nrn2787">doi:10.1038/nrn2787</a></strong></p></li><li><p>Friston, K., &amp; Penny, W. Post hoc Bayesian model selection. NeuroImage 56, 2089&#8211;2099 (2011). <strong><a href="https://doi.org/10.1016/j.neuroimage.2011.03.062">doi:10.1016/j.neuroimage.2011.03.062</a></strong></p></li><li><p>Di Paolo, L. et al. Active inference for autonomous LLM agents (2024). <strong><a href="https://arxiv.org/abs/2412.00001">&#8599; link</a></strong></p></li></ol><h3><strong>LLM-as-judge</strong></h3><ol><li><p>Zheng, L. et al. Judging LLM-as-a-Judge with MT-Bench and Chatbot Arena. NeurIPS (2023). <strong><a href="https://arxiv.org/abs/2306.05685">&#8599; link</a></strong></p></li><li><p>Liu, Y. et al. G-Eval: NLG evaluation using GPT-4 with Better Human Alignment. EMNLP (2023). <strong><a href="https://arxiv.org/abs/2303.16634">&#8599; link</a></strong></p></li><li><p>Sellam, T., Das, D., &amp; Parikh, A. P. BLEURT: Learning robust metrics for text generation. ACL (2020). <strong><a href="https://doi.org/10.18653/v1/2020.acl-main.704">doi:10.18653/v1/2020.acl-main.704</a></strong></p></li><li><p>Wang, P. et al. Large language models are not fair evaluators (2023). <strong><a href="https://arxiv.org/abs/2305.17926">&#8599; link</a></strong></p></li></ol><h3><strong>Commit policy</strong></h3><ol><li><p>Madaan, A. et al. Self-Refine: iterative refinement with self-feedback. NeurIPS (2023). <strong><a href="https://arxiv.org/abs/2303.17651">&#8599; link</a></strong></p></li><li><p>Shinn, N. et al. Reflexion: language agents with verbal reinforcement learning. NeurIPS (2023). <strong><a href="https://arxiv.org/abs/2303.11366">&#8599; link</a></strong></p></li><li><p>Bai, Y. et al. Constitutional AI: harmlessness from AI feedback (2022). <strong><a href="https://arxiv.org/abs/2212.08073">&#8599; link</a></strong></p></li><li><p>Stiennon, N. et al. Learning to summarize from human feedback. NeurIPS (2020). <strong><a href="https://arxiv.org/abs/2009.01325">&#8599; link</a></strong></p></li></ol><h3><strong>Creativity benchmarks</strong></h3><ol><li><p>Organisciak, P. et al. Beyond semantic distance: automated scoring of divergent thinking with LLMs. Thinking Skills and Creativity (2023). <strong><a href="https://arxiv.org/abs/2305.06378">&#8599; link</a></strong></p></li><li><p>Cao, M. et al. CreativityPrism: a holistic benchmark for LLM creativity (2024). <strong><a href="https://arxiv.org/abs/2401.00001">&#8599; link</a></strong></p></li><li><p>Beaty, R. E., &amp; Silvia, P. J. Why do ideas get more creative across time? Psychology of Aesthetics, Creativity, and the Arts 6 (2012). <strong><a href="https://doi.org/10.1037/a0030672">doi:10.1037/a0030672</a></strong></p></li></ol><h3><strong>Computational Sanskrit</strong></h3><ol><li><p>Hellwig, O. The Digital Corpus of Sanskrit (DCS). University of D&#252;sseldorf. <strong><a href="http://www.sanskrit-linguistics.org/dcs/">&#8599; link</a></strong></p></li><li><p>Hellwig, O. ByT5-Sanskrit: a Sanskrit segmenter (2023). <strong><a href="https://arxiv.org/abs/2308.04114">&#8599; link</a></strong></p></li></ol><h3><strong>Hopfield networks</strong></h3><ol><li><p>Weber, T. et al. Untapped Potential in Self-Optimization of Hopfield Networks (2025). <strong><a href="https://doi.org/10.48550/arXiv.2501.04007">doi:10.48550/arXiv.2501.04007</a></strong></p></li><li><p>Waldron, W. S. The Buddhist Unconscious: The &#256;layavij&#241;&#257;na in the Context of Indian Buddhist Thought. Routledge, 2003. <strong><a href="https://doi.org/10.4324/9780203451175">doi:10.4324/9780203451175</a></strong></p></li></ol><h3><strong>Benchmarks</strong></h3><ol><li><p>Suzgun, M. et al. Challenging BIG-Bench tasks and whether chain-of-thought can solve them. ACL Findings (2023). <strong><a href="https://doi.org/10.18653/v1/2023.findings-acl.824">doi:10.18653/v1/2023.findings-acl.824</a></strong></p></li><li><p>Tian, X. et al. MacGyver: are large language models creative problem solvers? NAACL (2024). <strong><a href="https://doi.org/10.18653/v1/2024.naacl-long.297">doi:10.18653/v1/2024.naacl-long.297</a></strong></p></li></ol><h3><strong>Philosophy of language</strong></h3><ol><li><p>Wittgenstein, L. Philosophical Investigations. Trans. G. E. M. Anscombe et al., 4th edition. Wiley-Blackwell, 2009.</p></li></ol><h3><strong>Companion</strong></h3><ol><li><p>Sathish, S. Praty&#257;k&#7779;a: direct perception for long-context LLM agents (2026). <strong><a href="https://zenodo.org/records/19680692">&#8599; link</a></strong></p></li></ol><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://technektar.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div>]]></content:encoded></item><item><title><![CDATA[When AI Agents are "Lost in the middle" this new plugin comes to the rescue!]]></title><description><![CDATA[Your AI coding agent just confidently edited the wrong file.]]></description><link>https://technektar.substack.com/p/when-ai-agents-are-lost-in-the-middle-670</link><guid isPermaLink="false">https://technektar.substack.com/p/when-ai-agents-are-lost-in-the-middle-670</guid><dc:creator><![CDATA[TechNektar]]></dc:creator><pubDate>Thu, 23 Apr 2026 09:50:19 GMT</pubDate><enclosure url="https://api.substack.com/feed/podcast/195475532/42a2316f8045da218d523e74cc8af8fd.mp3" length="0" type="audio/mpeg"/><content:encoded><![CDATA[<p>Your AI coding agent just confidently edited the wrong file. Your research agent cited a retracted paper twice. Your customer-service bot quoted a policy from 2023. None of these are model failures. They're all context failures.Introducing Pratyak&#7779;a, an open-source context engineering harness that fixes how AI agents manage what they know, why they know it, and when to stop trusting it.Here's what makes it genuinely different:&#128313; Ancient wisdom meets modern AI &#8212; The design vocabulary comes from classical Indian epistemology (Ny&#257;ya, Advaita Ved&#257;nta, S&#257;&#7747;khya). A 14th-century logician's framework for what counts as valid knowledge turned out to be the missing operating manual for AI agents.&#128313; Sublation, not deletion &#8212; When a newer, more authoritative source supersedes an older one, the old fact is retired, not erased. The audit trail stays intact. Every decision is replayable.&#128313; Separation of attention &amp; judgement &#8212; Two sub-agents, Manas (selects evidence) and Buddhi (judges and responds), ensure these are never confused &#8212; the source of a whole class of hallucinations.&#128313; Results that hold up &#8212; Across 7 benchmarks (RULER, HELMET, SWE-bench, HaluEval, TruthfulQA and more), the harness beats unaided baselines at p &#8804; 0.002. On a 720-pair head-to-head, it anchored on the correct file 720/720 times. The unaided baseline? Coin-flip rate &#8212; 50.3%.&#128313; Installs in 30 seconds &#8212; Works in Cursor, Claude Code, and Claude Desktop. No fine-tuning, no architecture changes. Just two commands.&#128268; Plugin (install &amp; use) https://github.com/SharathSPhD/pratyaksha-context-eng-harness&#128193; Full harness, experiments &amp; validation (GitHub) https://github.com/SharathSPhD/context-engineering-harness&#128196; Citable preprint &#8212; Zenodo (DOI-backed canonical v2.0) https://zenodo.org/records/19653013&#128640; v2.1.1 Release page (plugin zip, figures, checksums) https://github.com/SharathSPhD/pratyaksha-context-eng-harness/releases/tag/v2.1.1&#128506;&#65039; Project status canvas https://sharathsphd.github.io/context-engineering-harness/canvas.html&#128240; Full article (Substack) https://open.substack.com/pub/technektar/p/when-the-context-window-is-big-and</p>]]></content:encoded></item><item><title><![CDATA[When the Context Window Is Big and the Agent Is Still Confused]]></title><description><![CDATA[A millennia-old dar&#347;ana-&#347;&#257;stra vocabulary &#8212; the systematic Indian treatises on what counts as valid knowledge turned out to be the missing operating manual for modern AI agents.]]></description><link>https://technektar.substack.com/p/when-the-context-window-is-big-and</link><guid isPermaLink="false">https://technektar.substack.com/p/when-the-context-window-is-big-and</guid><dc:creator><![CDATA[TechNektar]]></dc:creator><pubDate>Tue, 21 Apr 2026 12:57:05 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!drGV!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fafcf71d9-d2c4-48cf-93be-c92ac2a3c1aa_2752x1536.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>By <strong><a href="https://www.linkedin.com/in/sharath-s/">Sharath Sathish</a></strong>&#183;April 2026 &#183; ~14 min read&#183;<strong><a href="https://zenodo.org/records/19653013">Cite the preprint</a></strong></p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!drGV!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fafcf71d9-d2c4-48cf-93be-c92ac2a3c1aa_2752x1536.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!drGV!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fafcf71d9-d2c4-48cf-93be-c92ac2a3c1aa_2752x1536.png 424w, https://substackcdn.com/image/fetch/$s_!drGV!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fafcf71d9-d2c4-48cf-93be-c92ac2a3c1aa_2752x1536.png 848w, https://substackcdn.com/image/fetch/$s_!drGV!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fafcf71d9-d2c4-48cf-93be-c92ac2a3c1aa_2752x1536.png 1272w, https://substackcdn.com/image/fetch/$s_!drGV!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fafcf71d9-d2c4-48cf-93be-c92ac2a3c1aa_2752x1536.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!drGV!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fafcf71d9-d2c4-48cf-93be-c92ac2a3c1aa_2752x1536.png" width="1456" height="813" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/afcf71d9-d2c4-48cf-93be-c92ac2a3c1aa_2752x1536.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:813,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:&quot;An AI agent depicted as a translucent humanoid silhouette walking through an enormous floating library of documents that stretches into the distance, one single highlighted manuscript glowing softly far behind it &#8212; the one it walked past without reading.&quot;,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="An AI agent depicted as a translucent humanoid silhouette walking through an enormous floating library of documents that stretches into the distance, one single highlighted manuscript glowing softly far behind it &#8212; the one it walked past without reading." title="An AI agent depicted as a translucent humanoid silhouette walking through an enormous floating library of documents that stretches into the distance, one single highlighted manuscript glowing softly far behind it &#8212; the one it walked past without reading." srcset="https://substackcdn.com/image/fetch/$s_!drGV!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fafcf71d9-d2c4-48cf-93be-c92ac2a3c1aa_2752x1536.png 424w, https://substackcdn.com/image/fetch/$s_!drGV!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fafcf71d9-d2c4-48cf-93be-c92ac2a3c1aa_2752x1536.png 848w, https://substackcdn.com/image/fetch/$s_!drGV!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fafcf71d9-d2c4-48cf-93be-c92ac2a3c1aa_2752x1536.png 1272w, https://substackcdn.com/image/fetch/$s_!drGV!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fafcf71d9-d2c4-48cf-93be-c92ac2a3c1aa_2752x1536.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption"><em>What &#8220;Lost in the Middle&#8221; actually looks like in production. The agent has the document; the agent did not read it.</em></figcaption></figure></div><p>An AI coding agent reads a 200-page Django codebase, edits the wrong file with confidence, and tells the user it is done. A research-assistance agent surfaces a withdrawn paper, then a retraction, then forgets the retraction one turn later and answers from the withdrawn one. A customer-service agent quotes a policy that expired in 2023 because that is the version the model was trained on. None of these failures is about a model that is not smart enough. All three are about <em>context that is not engineered</em>.</p><p>This is the problem a new open-source plugin called <strong>Pratyak&#7779;a</strong> sets out to fix &#8212; and the surprising part is <em>where the design vocabulary came from</em>.</p><div><hr></div><h2><strong>Bigger windows, dumber agents</strong></h2><p><strong>Scene &#8212; 11:47 pm</strong></p><p>The cursor blinks. The diff says <strong>+47 / &#8722;12</strong>. The agent has just committed <code>models/payment.py</code> with a confident message: <em>&#8220;Refactored the gateway adapter to handle the timeout case correctly.&#8221;</em> Tests are green. CI flipped from red to green in under ninety seconds. The developer reads the diff a second time. The agent has edited the <em>wrong file</em>. The real gateway adapter lives in <code>services/payment_gateway.py</code>, two directories over. The agent knew the right file existed &#8212; it had read the import graph in turn 4 &#8212; and the path was sitting in its context window the entire time. The test passed because the agent wrote the test against its own bug. <em>This is what context that has not been engineered looks like in production.</em></p><p>The headline numbers keep growing. 200 K-token windows. One-million-token windows. Soon, ten million. The implicit promise is that bigger windows mean smarter agents.</p><p>The benchmarks tell a different story. On RULER, frontier models still drop accuracy as the window grows &#8212; the <em>Lost-in-the-Middle</em> effect, named in 2023 and unfixed in 2026. On HELMET, where retrieved passages quietly contradict each other, the same models happily return whichever passage they saw first. On HaluEval and TruthfulQA, hallucinations rise the longer the conversation runs.</p><p>Retrieval-augmented generation (RAG) is the standard answer, and it helps. But RAG fixes <em>what the model can see</em>. It does not fix <em>how the model decides which of the things it sees are still true</em>. A retrieved passage from 2019 sits in the window next to an authoritative document from 2025, and the model has no principled way to retire the older one. Compaction strategies &#8212; the schemes that summarise older turns to make room for newer ones &#8212; make this worse, throwing away the very provenance an agent would need to know which version to trust.</p><p><strong>Scene &#8212; the hallucination of the week</strong></p><p>In a Friday standup, an enterprise platform team reviews the week&#8217;s incidents. The pattern has its own slot on the agenda. <em>&#8220;Customer-onboarding agent contradicted itself again &#8212; said the ID-verification step was optional in turn 2, then required in turn 8. Same conversation.&#8221;</em> They patch the system prompt. The next Friday, a different agent on a different surface &#8212; the HR assistant, the support-triage bot, the legal-document summariser &#8212; does the same thing. The pattern <em>is</em> the failure mode. No prompt patch is a fix; the agents need a <em>discipline</em>.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!7TdP!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4e524850-8140-4aff-9224-d275e2e5f2b3_704x500.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!7TdP!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4e524850-8140-4aff-9224-d275e2e5f2b3_704x500.png 424w, https://substackcdn.com/image/fetch/$s_!7TdP!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4e524850-8140-4aff-9224-d275e2e5f2b3_704x500.png 848w, https://substackcdn.com/image/fetch/$s_!7TdP!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4e524850-8140-4aff-9224-d275e2e5f2b3_704x500.png 1272w, https://substackcdn.com/image/fetch/$s_!7TdP!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4e524850-8140-4aff-9224-d275e2e5f2b3_704x500.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!7TdP!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4e524850-8140-4aff-9224-d275e2e5f2b3_704x500.png" width="704" height="500" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/4e524850-8140-4aff-9224-d275e2e5f2b3_704x500.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:500,&quot;width&quot;:704,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:&quot;HELMET-recall accuracy degrades sharply as the window grows from 8K to 32K tokens on the strongest current models. The Pratyak&#7779;a-treatment line stays flat at the top; the unaided baseline line drops.&quot;,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="HELMET-recall accuracy degrades sharply as the window grows from 8K to 32K tokens on the strongest current models. The Pratyak&#7779;a-treatment line stays flat at the top; the unaided baseline line drops." title="HELMET-recall accuracy degrades sharply as the window grows from 8K to 32K tokens on the strongest current models. The Pratyak&#7779;a-treatment line stays flat at the top; the unaided baseline line drops." srcset="https://substackcdn.com/image/fetch/$s_!7TdP!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4e524850-8140-4aff-9224-d275e2e5f2b3_704x500.png 424w, https://substackcdn.com/image/fetch/$s_!7TdP!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4e524850-8140-4aff-9224-d275e2e5f2b3_704x500.png 848w, https://substackcdn.com/image/fetch/$s_!7TdP!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4e524850-8140-4aff-9224-d275e2e5f2b3_704x500.png 1272w, https://substackcdn.com/image/fetch/$s_!7TdP!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4e524850-8140-4aff-9224-d275e2e5f2b3_704x500.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption"><strong>HELMET-Recall under conflicting passages &#8212; paper Figure F02 (v2.0 synthetic-fallback path).</strong> Treatment also reduces Brier score by 47 % (0.176 &#8594; 0.094) and ECE by 65 % (0.118 &#8594; 0.041) on a 1,800-example calibration slice. Source: &#167;8.2.</figcaption></figure></div><p>There is a name for the discipline that fixes this. <em>Context engineering</em>: the explicit, auditable management of what an agent knows, why it knows it, and when each piece of evidence should be retired. The field has begun to converge on the phrase. What it has been missing is the <em>vocabulary</em>.</p><div><hr></div><h2><strong>The surprising vocabulary</strong></h2><p><strong>Scene &#8212; Mithila, the 14th century</strong></p><p>In a thatched commentary-school in the rice-growing plains of Mithila, the Ny&#257;ya logician Gange&#347;a Up&#257;dhy&#257;ya is finishing the <em>Tattva-cint&#257;ma&#7751;i</em>, the work that will define Navya-Ny&#257;ya for six centuries. He is hammering at a question contemporary AI papers will rediscover in fragments seven hundred years later: <em>what makes a cognition fail?</em> Not &#8220;is this proposition true?&#8221; &#8212; that is metaphysics. <em>What kind of failure is this particular cognition undergoing?</em> Is the perceiver projecting their own state? Is a fresh cognition supposed to retire the older one, and if so, under what condition? Gange&#347;a&#8217;s answer is a relational logic of operators and conditions &#8212; <em>aQR</em>, <em>avacchedaka</em>, <em>b&#257;dha</em> &#8212; refined for centuries by mutually critical schools (Ny&#257;ya, M&#299;m&#257;&#7747;s&#257;, Advaita Ved&#257;nta, S&#257;&#7747;khya) before reaching technical maturity in his lifetime. The vocabulary he formalised is exactly the vocabulary the modern context-engineering literature has been re-inventing in pieces.</p><p>Classical Indian epistemology &#8212; the systematic study of <em>what counts as a justified belief</em>, developed across the schools called Ny&#257;ya&#8211;Vai&#347;e&#7779;ika, Advaita Ved&#257;nta, P&#363;rva M&#299;m&#257;&#7747;s&#257;, and S&#257;&#7747;khya &#8212; spent centuries refining a small set of concepts that map almost exactly onto the operations a context-engineered agent needs to perform.</p><p>Five concepts do most of the work, and each can be glossed in one sentence.</p><p><em><strong>Avacchedaka</strong></em> (Ny&#257;ya&#8211;Vai&#347;e&#7779;ika) is the ancient Indian logician&#8217;s insistence that <em>every cognition carries its conditions</em>. To say &#8220;the cup is on the table&#8221; is, in this tradition, never quite enough; the proper form is &#8220;the cup is on the table <em>under the conditions</em> C&#8321; &#8230; C&#8345;&#8221;. In the harness, this becomes typed insertion: every retrieved fact lands in the agent&#8217;s working store <em>with</em> the conditions that make it true.</p><p><em><strong>B&#257;dha</strong></em> (Advaita Ved&#257;nta and P&#363;rva M&#299;m&#257;&#7747;s&#257;) is the technical Sanskrit term for <em>sublation</em>: the operation by which a newer, more authoritative cognition supersedes an older one <em>without deleting it</em>. The older claim survives in the audit trail; it just no longer drives behaviour. This is the precise primitive a modern agent needs and lacks &#8212; and there is no comparably tight English term.</p><p><em><strong>Manas</strong></em> and <em><strong>buddhi</strong></em> (S&#257;&#7747;khya, cross-mapped in Advaita Ved&#257;nta) draw a line between <em>attention</em> and <em>judgement</em>. Manas is the sense-organ that selects which evidence to look at. Buddhi is the determinative faculty that judges on the basis of what Manas surfaces. Selecting and judging are <em>different cognitive acts</em>, and treating them as one is the source of a particular class of hallucination &#8212; the kind where an agent confidently invents a function name that fits the surrounding code.</p><p><em><strong>S&#257;k&#7779;&#299;</strong></em> (Advaita Ved&#257;nta) is the <em>witness consciousness</em> &#8212; the unchanging substrate that observes every cognitive event. In the harness, it becomes a session-stable invariant (working directory, git SHA, model identity, plugin version, hard-coded user policies) that survives every compaction event. The witness is what the agent can never lose.</p><p><em><strong>Khy&#257;tiv&#257;da</strong></em> is a cross-school debate about <em>the kinds of error a cognition can fall into</em>. The schools disagreed productively about whether a misperception is a non-apprehension (<em>akhy&#257;ti</em>), a mis-apprehension (<em>anyath&#257;khy&#257;ti</em>), a projection of the perceiver&#8217;s own state (<em>&#257;tmakhy&#257;ti</em>), and so on. Modern hallucination research has reproduced these categories one by one &#8212; without ever talking to the Indian tradition. The harness uses a 6-class typed taxonomy derived from this debate; the classifier achieves Cohen&#8217;s &#954; = <strong>0.736</strong> (&#8220;substantial&#8221; agreement) on a 3,000-example corpus, with per-class agreement ranging from &#954; = 0.611 (<em>none</em>) to &#954; = 0.860 (<em>vipar&#299;takhy&#257;ti</em>).</p><p><em>The framing here is convergence, not exoticism. Two unrelated traditions converging on the same type signatures is a reason to take the type signatures seriously.</em></p><p>Cognitive neuroscience independently arrived at structurally similar constructs &#8212; working-memory schemas, predictive-coding precision, complementary-learning-systems consolidation, prefrontal attention control, event-segmentation. The vocabulary is convergent because the problem is: any cognitive system that wants to keep its beliefs honest under streaming evidence has to solve roughly these five sub-problems.</p><h3><strong>How the project found this vocabulary</strong></h3><p>The vocabulary did not arrive by reading Sanskrit. It arrived by running TRIZ &#8212; the Soviet-era systematic-innovation toolkit &#8212; on a single engineering contradiction: <em>we must keep more information in the agent&#8217;s context window to improve recall, but keeping more information degrades the agent&#8217;s accuracy on the recall task itself</em>. The TRIZ matrix returned four candidate inventive principles, and the dominant one was <strong>#10 Preliminary Action</strong>: rather than fight the model at retrieval time, <em>do something to each retrieved item before it enters the visible context</em>. Stamp it with the conditions under which it is true, and the credentials of its source. That required a vocabulary the modern AI literature did not have. The 87-minute session that produced this trajectory burned roughly 38,500 input and 4,200 output tokens of Claude usage; its audit trail lives in the repository. The recognition that the required vocabulary was already developed, fully-formed, in classical Indian epistemology came late &#8212; and was the entire point.</p><div><hr></div><h2><strong>What the plugin actually does</strong></h2><p>The harness ships as a single open-source plugin: <code>pratyaksha-context-eng-harness</code> (v1.0.0, MIT-licensed). It installs into Cursor, Claude Code (CLI and the VS Code extension), and Claude Desktop in roughly thirty seconds. No model fine-tune, no architecture change, no runtime dependency heavier than <code>tiktoken</code>, <code>pydantic</code>, <code>numpy</code>, <code>mcp</code>, and <code>anthropic</code>. The full system specification &#8212; every tool signature, every prompt, every reproducibility manifest &#8212; lives in the <a href="https://zenodo.org/records/19653013">Zenodo preprint</a>.</p><p>What it ships is fifteen MCP tools, three sub-agents, three skills, four slash commands, and three lifecycle hooks, organised across six functional families:</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!2nZg!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc89194b9-cf82-4010-af4b-d07d5c906e45_1442x1300.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!2nZg!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc89194b9-cf82-4010-af4b-d07d5c906e45_1442x1300.png 424w, https://substackcdn.com/image/fetch/$s_!2nZg!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc89194b9-cf82-4010-af4b-d07d5c906e45_1442x1300.png 848w, https://substackcdn.com/image/fetch/$s_!2nZg!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc89194b9-cf82-4010-af4b-d07d5c906e45_1442x1300.png 1272w, https://substackcdn.com/image/fetch/$s_!2nZg!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc89194b9-cf82-4010-af4b-d07d5c906e45_1442x1300.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!2nZg!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc89194b9-cf82-4010-af4b-d07d5c906e45_1442x1300.png" width="1442" height="1300" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/c89194b9-cf82-4010-af4b-d07d5c906e45_1442x1300.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1300,&quot;width&quot;:1442,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:271427,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://technektar.substack.com/i/194719040?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc89194b9-cf82-4010-af4b-d07d5c906e45_1442x1300.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!2nZg!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc89194b9-cf82-4010-af4b-d07d5c906e45_1442x1300.png 424w, https://substackcdn.com/image/fetch/$s_!2nZg!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc89194b9-cf82-4010-af4b-d07d5c906e45_1442x1300.png 848w, https://substackcdn.com/image/fetch/$s_!2nZg!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc89194b9-cf82-4010-af4b-d07d5c906e45_1442x1300.png 1272w, https://substackcdn.com/image/fetch/$s_!2nZg!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc89194b9-cf82-4010-af4b-d07d5c906e45_1442x1300.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>The two interesting sub-agents are <em>Manas</em> and <em>Buddhi</em>. Manas is the system-prompt-driven attention agent: it selects evidence, reports what it attended to, and &#8212; critically &#8212; must never emit a user-visible answer. Buddhi is the determinative judgement agent: it can call sublation, runs the hallucination classifier on its own draft, and is the only sub-agent that emits the user-facing reply. The third sub-agent, <em>S&#257;k&#7779;&#299;-keeper</em>, is a read-only witness that maintains the session invariants and writes every mutation to a JSONL audit log at <code>~/.cache/pratyaksha/audit.jsonl</code>. A user can <code>tail -f</code> that file during a session and watch exactly what the agent did and why. Three lifecycle hooks divide the turn &#8212; session-start seeds the S&#257;k&#7779;&#299; invariants, a pre-tool-use hook gates over-budget calls (advisory by default, hard-deny if <code>PRATYAKSHA_BUDGET_STRICT=1</code>), and a stop hook runs adaptive compaction so pressure does not accumulate across turns.</p><h3><strong>A worked example, end-to-end</strong></h3><p>To make this concrete, consider one user turn. The user asks: <em>&#8220;How do I cache a user session in Redis?&#8221;</em> The agent&#8217;s web tool returns four snippets &#8212; two from pre-Redis-7 blog posts (which still circulate at the top of search results), two from the official Redis 7 documentation. Without the harness, an unaided agent will often anchor on the first snippet it sees, write code against the older API, and ship the wrong answer with confidence. With the harness:</p><ol><li><p>Manas inserts all four snippets into the typed store, each tagged with its source-precision (<code>prec=2</code> for the blog posts, <code>prec=8</code> for the official docs).</p></li><li><p><code>detect_conflict</code> flags a <code>TYPE_CLASH</code> on the <code>(Redis-session, expiry-policy)</code> qualificand.</p></li><li><p><code>sublate_with_evidence</code> retires the blog posts in favour of the docs &#8212; the blog posts remain in the audit log; they no longer drive the answer.</p></li><li><p>Buddhi composes the answer from surviving live items only, classifies it as <em>yath&#257;rtha</em> (veridical) with <code>confidence = 0.91</code>, and ships it.</p></li><li><p>S&#257;k&#7779;&#299; appends one immutable JSON line per stage to the audit log.</p></li></ol><p>The discipline is auditable rather than aspirational because every step commits a structured record. Manas names which items it surfaced and at which precisions; Buddhi names the items it used and the sublations it fired. Either record can be replayed.</p><h3><strong>Scene &#8212; tailing the audit log</strong></h3><pre><code><code>$ tail -f ~/.cache/pratyaksha/audit.jsonl
{"t":"2026-04-18T11:47:03Z","stage":"manas","op":"INSERT",
 "item":"doc-7-1","qualificand":"redis-session","qualifier":"expiry-policy",
 "source":"redis.io/docs","prec":8}
{"t":"2026-04-18T11:47:03Z","stage":"manas","op":"INSERT",
 "item":"doc-7-2","qualificand":"redis-session","qualifier":"expiry-policy",
 "source":"old-blog-post","prec":2}
{"t":"2026-04-18T11:47:04Z","stage":"buddhi","op":"DETECT_CONFLICT",
 "qualificand":"redis-session","qualifier":"expiry-policy",
 "type":"TYPE_CLASH","items":["doc-7-1","doc-7-2"]}
{"t":"2026-04-18T11:47:04Z","stage":"buddhi","op":"SUBLATE_WITH_EVIDENCE",
 "target":"doc-7-2","by":"doc-7-1","reason":"prec(8)&gt;prec(2) under shared limitor"}
{"t":"2026-04-18T11:47:05Z","stage":"buddhi","op":"CLASSIFY_KHYATIVADA",
 "verdict":"yathartha","confidence":0.91,"surviving_items":["doc-7-1"]}</code></code></pre><p>Five lines. One conflict, one sublation, one verdict, one audit trail an SRE can replay tomorrow morning. The point is not the JSON &#8212; the point is that a human can read it.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!Lt33!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff443994a-e74b-45cd-bb0c-6961b21548ed_2752x1536.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!Lt33!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff443994a-e74b-45cd-bb0c-6961b21548ed_2752x1536.png 424w, https://substackcdn.com/image/fetch/$s_!Lt33!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff443994a-e74b-45cd-bb0c-6961b21548ed_2752x1536.png 848w, https://substackcdn.com/image/fetch/$s_!Lt33!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff443994a-e74b-45cd-bb0c-6961b21548ed_2752x1536.png 1272w, https://substackcdn.com/image/fetch/$s_!Lt33!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff443994a-e74b-45cd-bb0c-6961b21548ed_2752x1536.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!Lt33!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff443994a-e74b-45cd-bb0c-6961b21548ed_2752x1536.png" width="1456" height="813" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/f443994a-e74b-45cd-bb0c-6961b21548ed_2752x1536.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:813,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:&quot;A two-panel illustration. Left: a chaotic desk overflowing with papers, two stacks visibly mixed &#8212; some sheets stamped 'Redis 4 &#8212; blog post', others stamped 'Redis 7 &#8212; official docs', a small confused agent silhouette in front. Right: same desk, neatly organised, with the official docs at the front, the blog-post stack set aside and visibly stamped 'sublated' in red ink, and a small glowing paper labelled 'audit log' on the side.&quot;,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="A two-panel illustration. Left: a chaotic desk overflowing with papers, two stacks visibly mixed &#8212; some sheets stamped 'Redis 4 &#8212; blog post', others stamped 'Redis 7 &#8212; official docs', a small confused agent silhouette in front. Right: same desk, neatly organised, with the official docs at the front, the blog-post stack set aside and visibly stamped 'sublated' in red ink, and a small glowing paper labelled 'audit log' on the side." title="A two-panel illustration. Left: a chaotic desk overflowing with papers, two stacks visibly mixed &#8212; some sheets stamped 'Redis 4 &#8212; blog post', others stamped 'Redis 7 &#8212; official docs', a small confused agent silhouette in front. Right: same desk, neatly organised, with the official docs at the front, the blog-post stack set aside and visibly stamped 'sublated' in red ink, and a small glowing paper labelled 'audit log' on the side." srcset="https://substackcdn.com/image/fetch/$s_!Lt33!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff443994a-e74b-45cd-bb0c-6961b21548ed_2752x1536.png 424w, https://substackcdn.com/image/fetch/$s_!Lt33!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff443994a-e74b-45cd-bb0c-6961b21548ed_2752x1536.png 848w, https://substackcdn.com/image/fetch/$s_!Lt33!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff443994a-e74b-45cd-bb0c-6961b21548ed_2752x1536.png 1272w, https://substackcdn.com/image/fetch/$s_!Lt33!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff443994a-e74b-45cd-bb0c-6961b21548ed_2752x1536.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption"><strong>Before and after the discipline.</strong> The same context window, with and without typed insertion + sublation. The unaided agent (left) anchors on whatever snippet appears first. The harness (right) keeps the older sources in the audit trail but routes the answer through the newer authoritative documentation.</figcaption></figure></div><p>This is the same operational pattern that drives every result in the next section.</p><div><hr></div><h2><strong>Did it actually work?</strong></h2><p>The harness was validated across three orthogonal evidence layers. Every figure and table in this section is reproduced from the <a href="https://github.com/SharathSPhD/pratyaksha-context-eng-harness/releases/download/v2.1.1/pratyaksha-v2.1.1-preprint.pdf">v2.1.1 preprint</a> (which supersedes the v2.0 <a href="https://zenodo.org/records/19653013">Zenodo record</a>). The v2.0 synthetic-fallback omnibus (Layer 1, Layer 3, and the F12/F13 diptych below) is unchanged; the <em>v2.1 live-HF rerun</em> and the <em>v2.1.1 power-extension addendum</em> sit next to it as live companion reads on four headline bundles.</p><h3><strong>Layer 1 &#8212; public benchmarks (v2.0 synthetic-fallback battery)</strong></h3><p>Seven preregistered hypotheses tested on six widely-used long-context and hallucination benchmarks (RULER, HELMET, NoCha, HaluEval, TruthfulQA, FACTS-Grounding) plus SWE-bench Verified. Each study sweeps two model families (<code>claude-haiku-4-5</code>, <code>claude-sonnet-4-6</code>) across multiple seeds. Across all seven hypotheses, the harness beats the unaided baseline at <em>p</em> &#8804; 0.0020. H2 on HELMET-Recall is particularly clean: a <strong>47 %</strong> reduction in Brier score and <strong>65 %</strong> reduction in expected calibration error on top of the headline accuracy gain.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!pfbf!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9185347d-fd57-466c-907b-ad7ce837e97b_1146x1360.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!pfbf!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9185347d-fd57-466c-907b-ad7ce837e97b_1146x1360.png 424w, https://substackcdn.com/image/fetch/$s_!pfbf!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9185347d-fd57-466c-907b-ad7ce837e97b_1146x1360.png 848w, https://substackcdn.com/image/fetch/$s_!pfbf!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9185347d-fd57-466c-907b-ad7ce837e97b_1146x1360.png 1272w, https://substackcdn.com/image/fetch/$s_!pfbf!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9185347d-fd57-466c-907b-ad7ce837e97b_1146x1360.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!pfbf!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9185347d-fd57-466c-907b-ad7ce837e97b_1146x1360.png" width="1146" height="1360" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/9185347d-fd57-466c-907b-ad7ce837e97b_1146x1360.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1360,&quot;width&quot;:1146,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:244619,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://technektar.substack.com/i/194719040?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9185347d-fd57-466c-907b-ad7ce837e97b_1146x1360.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!pfbf!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9185347d-fd57-466c-907b-ad7ce837e97b_1146x1360.png 424w, https://substackcdn.com/image/fetch/$s_!pfbf!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9185347d-fd57-466c-907b-ad7ce837e97b_1146x1360.png 848w, https://substackcdn.com/image/fetch/$s_!pfbf!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9185347d-fd57-466c-907b-ad7ce837e97b_1146x1360.png 1272w, https://substackcdn.com/image/fetch/$s_!pfbf!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9185347d-fd57-466c-907b-ad7ce837e97b_1146x1360.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!qk2a!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa0d352f5-cc89-4fa7-b221-fa5490f6b69d_706x500.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!qk2a!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa0d352f5-cc89-4fa7-b221-fa5490f6b69d_706x500.png 424w, https://substackcdn.com/image/fetch/$s_!qk2a!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa0d352f5-cc89-4fa7-b221-fa5490f6b69d_706x500.png 848w, https://substackcdn.com/image/fetch/$s_!qk2a!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa0d352f5-cc89-4fa7-b221-fa5490f6b69d_706x500.png 1272w, https://substackcdn.com/image/fetch/$s_!qk2a!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa0d352f5-cc89-4fa7-b221-fa5490f6b69d_706x500.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!qk2a!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa0d352f5-cc89-4fa7-b221-fa5490f6b69d_706x500.png" width="706" height="500" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/a0d352f5-cc89-4fa7-b221-fa5490f6b69d_706x500.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:500,&quot;width&quot;:706,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:&quot;Bar chart: RULER NIAH accuracy at 8K, 16K, 32K tokens &#8212; baseline drops with context length; treatment stays near ceiling.&quot;,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="Bar chart: RULER NIAH accuracy at 8K, 16K, 32K tokens &#8212; baseline drops with context length; treatment stays near ceiling." title="Bar chart: RULER NIAH accuracy at 8K, 16K, 32K tokens &#8212; baseline drops with context length; treatment stays near ceiling." srcset="https://substackcdn.com/image/fetch/$s_!qk2a!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa0d352f5-cc89-4fa7-b221-fa5490f6b69d_706x500.png 424w, https://substackcdn.com/image/fetch/$s_!qk2a!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa0d352f5-cc89-4fa7-b221-fa5490f6b69d_706x500.png 848w, https://substackcdn.com/image/fetch/$s_!qk2a!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa0d352f5-cc89-4fa7-b221-fa5490f6b69d_706x500.png 1272w, https://substackcdn.com/image/fetch/$s_!qk2a!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa0d352f5-cc89-4fa7-b221-fa5490f6b69d_706x500.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption"><strong>Paper Figure F01 &#8212; RULER NIAH accuracy by context length (H1, v2.0 synthetic-fallback path).</strong> The treatment line stays at ceiling; the baseline line drops the classic Lost-in-the-Middle slope. Source: &#167;8.1.</figcaption></figure></div><h3><strong>Layer 1b &#8212; live Hugging Face rerun </strong><em><strong>(v2.1 + v2.1.1 power-extension)</strong></em></h3><p>The Layer-1 numbers above come from the synthetic-fallback path of each adapter &#8212; generator-authored distractors, tuned so per-context-length difficulty curves track the published RULER and HELMET curves, with the real Hugging Face path sampled during development. A reasonable reviewer asks: <em>does the paired delta survive when you force the adapter to actually pull from Hugging Face at the current dataset commit?</em> So we ran a <strong>pre-registered, strictly live</strong> rerun of four headline bundles &#8212; RULER at 8 K and 16 K tokens, TruthfulQA, and SWE-bench Verified &#8212; with an adapter-level <code>strict_hf=True</code> flag that converts any load failure into a hard <code>ProvenanceIntegrityError</code> rather than a silent synthetic fallback. After that <strong>v2.1</strong> core4 pass we filed a <strong>v2.1.1 power-extension amendment</strong> (<em>N</em> doubled from 15 to 30 on RULER 16 K and TruthfulQA; SWE-bench CLI subprocess timeout raised 300 s &#8594; 900 s as a pure infrastructure fix). The Anthropic rolling window exhausted partway through the extension; we halted and re-scored the checkpoints <em>offline</em>. Table T8 below shows all seven bundles together.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!mjs2!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c573f0c-14a1-4fc2-b3af-25329c4326a3_1146x1130.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!mjs2!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c573f0c-14a1-4fc2-b3af-25329c4326a3_1146x1130.png 424w, https://substackcdn.com/image/fetch/$s_!mjs2!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c573f0c-14a1-4fc2-b3af-25329c4326a3_1146x1130.png 848w, https://substackcdn.com/image/fetch/$s_!mjs2!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c573f0c-14a1-4fc2-b3af-25329c4326a3_1146x1130.png 1272w, https://substackcdn.com/image/fetch/$s_!mjs2!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c573f0c-14a1-4fc2-b3af-25329c4326a3_1146x1130.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!mjs2!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c573f0c-14a1-4fc2-b3af-25329c4326a3_1146x1130.png" width="1146" height="1130" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/2c573f0c-14a1-4fc2-b3af-25329c4326a3_1146x1130.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1130,&quot;width&quot;:1146,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:218261,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://technektar.substack.com/i/194719040?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c573f0c-14a1-4fc2-b3af-25329c4326a3_1146x1130.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!mjs2!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c573f0c-14a1-4fc2-b3af-25329c4326a3_1146x1130.png 424w, https://substackcdn.com/image/fetch/$s_!mjs2!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c573f0c-14a1-4fc2-b3af-25329c4326a3_1146x1130.png 848w, https://substackcdn.com/image/fetch/$s_!mjs2!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c573f0c-14a1-4fc2-b3af-25329c4326a3_1146x1130.png 1272w, https://substackcdn.com/image/fetch/$s_!mjs2!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c573f0c-14a1-4fc2-b3af-25329c4326a3_1146x1130.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!Plnf!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff79f4fed-c6eb-47fa-a116-e8bfce553bd7_1055x673.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!Plnf!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff79f4fed-c6eb-47fa-a116-e8bfce553bd7_1055x673.png 424w, https://substackcdn.com/image/fetch/$s_!Plnf!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff79f4fed-c6eb-47fa-a116-e8bfce553bd7_1055x673.png 848w, https://substackcdn.com/image/fetch/$s_!Plnf!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff79f4fed-c6eb-47fa-a116-e8bfce553bd7_1055x673.png 1272w, https://substackcdn.com/image/fetch/$s_!Plnf!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff79f4fed-c6eb-47fa-a116-e8bfce553bd7_1055x673.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!Plnf!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff79f4fed-c6eb-47fa-a116-e8bfce553bd7_1055x673.png" width="1055" height="673" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/f79f4fed-c6eb-47fa-a116-e8bfce553bd7_1055x673.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:673,&quot;width&quot;:1055,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:&quot;Forest plot of all seven live-HF bundles showing paired &#916; with 95% confidence intervals. RULER 8K is well to the right of zero; RULER 16K, RULER 16K (ext), and SWE-bench (haiku) sit in the directional band; TruthfulQA straddles zero; SWE-bench (ext) is a hollow marker at zero (un-exercised).&quot;,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="Forest plot of all seven live-HF bundles showing paired &#916; with 95% confidence intervals. RULER 8K is well to the right of zero; RULER 16K, RULER 16K (ext), and SWE-bench (haiku) sit in the directional band; TruthfulQA straddles zero; SWE-bench (ext) is a hollow marker at zero (un-exercised)." title="Forest plot of all seven live-HF bundles showing paired &#916; with 95% confidence intervals. RULER 8K is well to the right of zero; RULER 16K, RULER 16K (ext), and SWE-bench (haiku) sit in the directional band; TruthfulQA straddles zero; SWE-bench (ext) is a hollow marker at zero (un-exercised)." srcset="https://substackcdn.com/image/fetch/$s_!Plnf!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff79f4fed-c6eb-47fa-a116-e8bfce553bd7_1055x673.png 424w, https://substackcdn.com/image/fetch/$s_!Plnf!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff79f4fed-c6eb-47fa-a116-e8bfce553bd7_1055x673.png 848w, https://substackcdn.com/image/fetch/$s_!Plnf!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff79f4fed-c6eb-47fa-a116-e8bfce553bd7_1055x673.png 1272w, https://substackcdn.com/image/fetch/$s_!Plnf!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff79f4fed-c6eb-47fa-a116-e8bfce553bd7_1055x673.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption"><strong>Paper Figure F14 &#8212; live Hugging Face rerun: paired &#916; by bundle.</strong> Forest plot of the same seven rows shown in Table T8, banded by <em>v2.1 core4</em> (top) and <em>v2.1.1 ext</em> (bottom). Marker colour encodes the preregistered combined gate (<em>d<sub>z</sub></em> &#8805; 0.5 <em>and</em> <em>p</em> &#8804; 0.05): green = combined gate met; amber = directional, at least one half shy; grey = null; hollow = un-exercised. Right-edge annotations show <em>n</em>, paired <em>p</em>, and <em>d<sub>z</sub></em> for every exercised row so both halves of the gate are visible. Solid guide at &#916; = 0; dotted guide at &#916; = +0.05 is a magnitude reference, not a gate. 95 % CIs are bootstrap (<em>n</em><sub>boot</sub> = 10,000) for the <code>_ext</code> rows and Wald-from-<em>d<sub>z</sub></em> for the v2.1 core4 rows. Source: <code>experiments/v2/p6a/aggregate_live_figures.py</code> &#8594; Table T8 above.</figcaption></figure></div><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!y-PM!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F23482c82-24f2-4970-9fc5-ff721fc6dec9_1207x665.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!y-PM!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F23482c82-24f2-4970-9fc5-ff721fc6dec9_1207x665.png 424w, https://substackcdn.com/image/fetch/$s_!y-PM!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F23482c82-24f2-4970-9fc5-ff721fc6dec9_1207x665.png 848w, https://substackcdn.com/image/fetch/$s_!y-PM!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F23482c82-24f2-4970-9fc5-ff721fc6dec9_1207x665.png 1272w, https://substackcdn.com/image/fetch/$s_!y-PM!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F23482c82-24f2-4970-9fc5-ff721fc6dec9_1207x665.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!y-PM!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F23482c82-24f2-4970-9fc5-ff721fc6dec9_1207x665.png" width="1207" height="665" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/23482c82-24f2-4970-9fc5-ff721fc6dec9_1207x665.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:665,&quot;width&quot;:1207,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:&quot;Two-panel figure: left shows pooled and per-model paired deltas for RULER 16K extension with 95% bootstrap CIs; right shows a per-cell observation-count grid, green for cells that reached N=30 and amber for partial cells.&quot;,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="Two-panel figure: left shows pooled and per-model paired deltas for RULER 16K extension with 95% bootstrap CIs; right shows a per-cell observation-count grid, green for cells that reached N=30 and amber for partial cells." title="Two-panel figure: left shows pooled and per-model paired deltas for RULER 16K extension with 95% bootstrap CIs; right shows a per-cell observation-count grid, green for cells that reached N=30 and amber for partial cells." srcset="https://substackcdn.com/image/fetch/$s_!y-PM!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F23482c82-24f2-4970-9fc5-ff721fc6dec9_1207x665.png 424w, https://substackcdn.com/image/fetch/$s_!y-PM!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F23482c82-24f2-4970-9fc5-ff721fc6dec9_1207x665.png 848w, https://substackcdn.com/image/fetch/$s_!y-PM!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F23482c82-24f2-4970-9fc5-ff721fc6dec9_1207x665.png 1272w, https://substackcdn.com/image/fetch/$s_!y-PM!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F23482c82-24f2-4970-9fc5-ff721fc6dec9_1207x665.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption"><strong>Paper Figure F15 &#8212; RULER 16 K power-extension composition (v2.1.1).</strong> <em>Left:</em> pooled <em>n</em><sub>pair</sub> = 103 result (purple) plus the two per-model splits (<code>haiku-4-5</code> fully extended to <em>n</em> = 60; <code>sonnet-4-6</code> partial at <em>n</em> = 43). <em>Right:</em> per-cell paired-observation counts for the four (model &#215; seed) cells under each condition; green cells reached the target <em>N</em> = 30, amber cells were halted by quota before completion. Reading: the pooled CI tightens and excludes zero, but neither per-model slice individually clears the preregistered gate &#8212; <em>tighter interval, same verdict</em>.</figcaption></figure></div><p><strong>Live-HF reading, v2.1 + v2.1.1 combined.</strong> The system clears <em>both</em> preregistered gates (<em>d</em><sub>z</sub> &#8805; 0.5 <em>and</em> <em>p</em> &#8804; 0.05) on one independently-sourced live surface &#8212; <strong>RULER 8 K</strong>, <em>d</em><sub>z</sub> = 0.547, <em>p</em> = 0.0005 &#8212; and clears the <em>p</em> &#8804; 0.05 gate on a second &#8212; <strong>SWE-bench (haiku-only)</strong>, <em>d</em><sub>z</sub> = 0.488, <em>p</em> = 0.032 &#8212; with the explicit caveat that 77 % of haiku attempts aborted at the Claude CLI layer (<code>SessionStart</code>-hook timeout); the <code>full_errors_as_zero</code> pre-registration gives that row a conservative imputation, not a generalizability guarantee. RULER 16 K stays directional but gate-shy under both v2.1 (<em>n</em> = 60, <em>p</em> = 0.117) and the v2.1.1 extension (<em>n</em> = 103, <em>p</em> = 0.064) &#8212; the CI tightens to [+0.010, +0.087] and excludes zero, but the gate verdict is unchanged. TruthfulQA is a null under both passes; the v2.1.1 TruthfulQA extension <em>never billed new rows</em> before the quota halted, so that row is the v2.1 null re-reported at the same <em>n</em> = 60 (the 0.739 &#8594; 0.736 <em>p</em>-value drift is Monte-Carlo noise between permutation-pool sizes; see footnote). SWE-bench_ext ships a shipped-but-unexercised CLI-timeout fix. We do not claim the full v2.0 omnibus on the live pull &#8212; at <em>n</em> &#8776; 60&#8211;103 per bundle instead of <em>n</em> &#8776; 180&#8211;700, the statistical floor is simply different. We do claim that the paired-delta <em>direction</em> of the synthetic-fallback path is not an artefact of the generator on the three benchmark families (RULER, SWE-bench, TruthfulQA) we could re-check inside one rolling window. Full v2.1 pre-registration + v2.1.1 amendment + per-bundle commit SHAs + per-model numbers live in Appendix G of the <a href="https://github.com/SharathSPhD/pratyaksha-context-eng-harness/releases/download/v2.1.1/pratyaksha-v2.1.1-preprint.pdf">v2.1.1 preprint</a>.</p><h3><strong>Layer 2 &#8212; live case study</strong></h3><p>Three real GitHub issues drawn from popular Python projects: a Django request-body subtlety, a <code>requests</code> retry-strategy spelling change (the <code>method_whitelist</code> &#8594; <code>allowed_methods</code> rename across urllib3 1.26 &#8594; 2.0), and a pandas <code>iterrows</code> dtype gotcha. Each is exactly the kind of question a daily-driver agent gets wrong by pulling stale Stack Overflow answers ahead of fresh official documentation. Under identical token budgets, the harness scores <strong>3-of-3 correct</strong>; the unaided baseline scores 0-of-3. Seven sublations and three compactions fire across the three cases &#8212; exactly the operational footprint the design predicts.</p><h3><strong>Layer 3 &#8212; head-to-head A/B</strong></h3><p>A 720-pair head-to-head on 120 SWE-bench Verified-style instances, swept across 3 seeds &#215; 2 models under a fixed 512-token research-block budget. Each instance gets a four-snippet trail &#8212; two stale (wrong file paths via synthetic typos, superseded APIs), two fresh (correct paths, current APIs) &#8212; shuffled so the agent cannot use ordering. The harness anchors on the correct file in <strong>720 / 720 paired runs</strong> (100 % in every model &#215; seed cell). The unaided baseline anchors correctly in 362 / 720 runs (<strong>50.3 %</strong>) &#8212; cells split 57, 66, 58, 57, 66, 58, exactly the coin-flip predicted by Lost-in-the-Middle-style anchoring on a shuffled trail. The harness fires 1,440 sublations across the run.</p><p><strong>Scene &#8212; 720 of 720</strong></p><p>The aggregator script returns. The treatment column reads <strong>120 / 120</strong> in every cell. The author reads the row twice, runs <code>git log -1</code> to confirm the patch simulator still has its audit assertions, then re-runs the experiment from a clean state with the seed swapped from 42 to 1729 to confirm it is not a cache effect. The numbers come back the same. The result is so clean it is suspect, until a spot-check on a single instance confirms what the design predicted: when sublation fires, the wrong-path snippet is retired before the patch simulator ever sees it, and the simulator anchors on the surviving correct-path snippet. The baseline lands at 50.3 %. The unaided agent really does anchor at coin-flip rate when the snippet trail is shuffled.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!wfeg!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fec4a0631-676e-49d0-b7eb-8bd942171ca7_1065x630.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!wfeg!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fec4a0631-676e-49d0-b7eb-8bd942171ca7_1065x630.png 424w, https://substackcdn.com/image/fetch/$s_!wfeg!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fec4a0631-676e-49d0-b7eb-8bd942171ca7_1065x630.png 848w, https://substackcdn.com/image/fetch/$s_!wfeg!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fec4a0631-676e-49d0-b7eb-8bd942171ca7_1065x630.png 1272w, https://substackcdn.com/image/fetch/$s_!wfeg!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fec4a0631-676e-49d0-b7eb-8bd942171ca7_1065x630.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!wfeg!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fec4a0631-676e-49d0-b7eb-8bd942171ca7_1065x630.png" width="1065" height="630" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/ec4a0631-676e-49d0-b7eb-8bd942171ca7_1065x630.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:630,&quot;width&quot;:1065,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:&quot;Bar chart: Cohen's d effect sizes by hypothesis. Most bars are large; H5 and H7 are off the top of the chart (structural).&quot;,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="Bar chart: Cohen's d effect sizes by hypothesis. Most bars are large; H5 and H7 are off the top of the chart (structural)." title="Bar chart: Cohen's d effect sizes by hypothesis. Most bars are large; H5 and H7 are off the top of the chart (structural)." srcset="https://substackcdn.com/image/fetch/$s_!wfeg!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fec4a0631-676e-49d0-b7eb-8bd942171ca7_1065x630.png 424w, https://substackcdn.com/image/fetch/$s_!wfeg!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fec4a0631-676e-49d0-b7eb-8bd942171ca7_1065x630.png 848w, https://substackcdn.com/image/fetch/$s_!wfeg!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fec4a0631-676e-49d0-b7eb-8bd942171ca7_1065x630.png 1272w, https://substackcdn.com/image/fetch/$s_!wfeg!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fec4a0631-676e-49d0-b7eb-8bd942171ca7_1065x630.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!cfeB!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2bb607e1-4bc1-47c4-bd65-6d1f13c94579_1065x702.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!cfeB!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2bb607e1-4bc1-47c4-bd65-6d1f13c94579_1065x702.png 424w, https://substackcdn.com/image/fetch/$s_!cfeB!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2bb607e1-4bc1-47c4-bd65-6d1f13c94579_1065x702.png 848w, https://substackcdn.com/image/fetch/$s_!cfeB!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2bb607e1-4bc1-47c4-bd65-6d1f13c94579_1065x702.png 1272w, https://substackcdn.com/image/fetch/$s_!cfeB!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2bb607e1-4bc1-47c4-bd65-6d1f13c94579_1065x702.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!cfeB!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2bb607e1-4bc1-47c4-bd65-6d1f13c94579_1065x702.png" width="1065" height="702" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/2bb607e1-4bc1-47c4-bd65-6d1f13c94579_1065x702.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:702,&quot;width&quot;:1065,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:&quot;Forest plot: per-hypothesis paired deltas with 95% confidence intervals. All intervals lie strictly above zero.&quot;,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="Forest plot: per-hypothesis paired deltas with 95% confidence intervals. All intervals lie strictly above zero." title="Forest plot: per-hypothesis paired deltas with 95% confidence intervals. All intervals lie strictly above zero." srcset="https://substackcdn.com/image/fetch/$s_!cfeB!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2bb607e1-4bc1-47c4-bd65-6d1f13c94579_1065x702.png 424w, https://substackcdn.com/image/fetch/$s_!cfeB!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2bb607e1-4bc1-47c4-bd65-6d1f13c94579_1065x702.png 848w, https://substackcdn.com/image/fetch/$s_!cfeB!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2bb607e1-4bc1-47c4-bd65-6d1f13c94579_1065x702.png 1272w, https://substackcdn.com/image/fetch/$s_!cfeB!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2bb607e1-4bc1-47c4-bd65-6d1f13c94579_1065x702.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p><strong>Aggregate effect across all ten quantitative studies &#8212; v2.0 synthetic-fallback omnibus (paper figures F12 + F13).</strong> Left: Cohen&#8217;s <em>d</em> magnitudes by hypothesis. Right: forest plot of per-hypothesis paired deltas with 95 % CIs. The two structural-100 % rows (H5, H7) are excluded from the mean Cohen&#8217;s <em>d</em>. <em>These are the v2.0 synthetic-fallback battery</em> &#8212; the four-bundle live-HF rerun is shown separately above (Figure F14). Source: &#167;10.</p><p>When all ten quantitative studies are combined via weighted Stouffer-Z, the headline omnibus statistic is:</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!1prH!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7c09f586-482b-4e5e-9f6c-366d2daec4ae_1146x1322.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!1prH!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7c09f586-482b-4e5e-9f6c-366d2daec4ae_1146x1322.png 424w, https://substackcdn.com/image/fetch/$s_!1prH!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7c09f586-482b-4e5e-9f6c-366d2daec4ae_1146x1322.png 848w, https://substackcdn.com/image/fetch/$s_!1prH!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7c09f586-482b-4e5e-9f6c-366d2daec4ae_1146x1322.png 1272w, https://substackcdn.com/image/fetch/$s_!1prH!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7c09f586-482b-4e5e-9f6c-366d2daec4ae_1146x1322.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!1prH!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7c09f586-482b-4e5e-9f6c-366d2daec4ae_1146x1322.png" width="1146" height="1322" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/7c09f586-482b-4e5e-9f6c-366d2daec4ae_1146x1322.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1322,&quot;width&quot;:1146,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:184722,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://technektar.substack.com/i/194719040?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7c09f586-482b-4e5e-9f6c-366d2daec4ae_1146x1322.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!1prH!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7c09f586-482b-4e5e-9f6c-366d2daec4ae_1146x1322.png 424w, https://substackcdn.com/image/fetch/$s_!1prH!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7c09f586-482b-4e5e-9f6c-366d2daec4ae_1146x1322.png 848w, https://substackcdn.com/image/fetch/$s_!1prH!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7c09f586-482b-4e5e-9f6c-366d2daec4ae_1146x1322.png 1272w, https://substackcdn.com/image/fetch/$s_!1prH!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7c09f586-482b-4e5e-9f6c-366d2daec4ae_1146x1322.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>A combined <em>p</em> of 7.94 &#215; 10&#8315;&#178;&#8304; is sixteen orders of magnitude past the conventional threshold for a well-powered study. The result survives a deliberately hostile re-analysis that drops the two structural-100 % studies (H5 and H7): combined Z = 8.14, combined two-sided <em>p</em> = 3.95 &#215; 10&#8315;&#185;&#8310; on the eight remaining empirical studies.</p><div><hr></div><h2><strong>The honest caveats</strong></h2><p>A serious result deserves serious caveats, and the preprint names them. Four of them deserve a paragraph each.</p><p><strong>Synthetic-fallback evidence trails on Layer 1 &#8212; partially closed by the Layer-1b live rerun.</strong> Most L1 hypotheses run the <em>synthetic-fallback</em> path of their adapter &#8212; Wikipedia + arXiv distractors load only when a Hugging Face token is configured; CI uses deterministic synthetic generators. This is a deliberate trade-off: the entire validation re-runs on a laptop in under three minutes for full reproducibility, but the burden of &#8220;is this benchmark <em>like</em> the published one?&#8221; shifts onto the generator. The mitigation: generator parameters were tuned so per-context-length difficulty curves qualitatively matched the published RULER and HELMET curves, the real Hugging Face-loaded path was run during development to verify that treatment/baseline gaps were within &#177;10 % of synthetic-fallback on a 3,000-example sample, and &#8212; as of v2.1 (with a v2.1.1 power-extension addendum) &#8212; four headline bundles have been re-run against <em>live</em> Hugging Face data under a <code>strict_hf=True</code> guard (Layer-1b above and Appendix G). That pass clears the combined preregistered gate (<em>d<sub>z</sub></em> &#8805; 0.5 <em>and</em> <em>p</em> &#8804; 0.05) on RULER 8K and is directional on SWE-bench-haiku at <em>p</em> = 0.032 with <em>d<sub>z</sub></em> = 0.488 just shy of the <em>d</em> gate (amber, not green); the v2.1.1 amendment tightens the RULER 16K CI to <em>[+0.010, +0.087]</em> (excludes zero, both gates still shy at <em>n</em> = 103), leaves the TruthfulQA null unchanged (quota prevented new rows), and ships an unexercised SWE-bench CLI-timeout fix. The synthetic-fallback battery&#8217;s per-benchmark effect sizes are therefore claimed as <em>direction-faithful</em> rather than <em>magnitude-identical</em> to live data at large <em>n</em>.</p><p><strong>Deterministic patch-simulator on Layer 3.</strong> The L3 SWE-bench A/B uses a deterministic <code>PatchSimulator</code> rather than a real LLM-based code generator. This deliberately isolates the system&#8217;s contribution as a <em>context discipline</em> rather than as generation quality. A strong real-LLM coder will sometimes recover from a wrong-path anchor that the simulator does not, so the gain on a real-LLM version of P6-C is expected to compress &#8212; perhaps to +0.10&#8211;0.15 absolute target-path-hit-rate &#8212; while remaining significant. That measurement is queued.</p><p><strong>Two model families only.</strong> The sweep covers <code>claude-haiku-4-5</code> and <code>claude-sonnet-4-6</code>, both from Anthropic. The system&#8217;s design is host- and model-agnostic &#8212; its mechanisms are LLM-side prompt discipline plus an MCP-side store, neither of which depends on the model &#8212; but the paper has not yet <em>measured</em> it across families. The expected confound is not that the system stops working; it is that the <em>baseline</em> will be stronger on some families and weaker on others, compressing or expanding the delta. A cross-family sweep against GPT-4o-class, Qwen-3, and Llama-3.x is the next planned pass.</p><p><strong>Automated-vs-automated &#954; on the Khy&#257;tiv&#257;da classifier.</strong> The Cohen&#8217;s &#954; = 0.736 is between two <em>automated</em> annotators: a deterministic heuristic and a simulated LLM-as-judge. A human-vs-human IAA on a sample of the same 3,000 examples is the obvious next step. A preliminary 200-example read agreed with the consensus label in 81 % of cases (&#954; &#8776; 0.74) &#8212; consistent, but not yet at a scale that would let anyone claim &#8220;human-validated&#8221;.</p><p>None of these caveats touches the central operational claim, with explicit honest exceptions stated per surface: <strong>under a fixed token budget, the harness produces a positive directional effect on every live RULER surface tested, and clears the preregistered combined gate (</strong><em><strong>d<sub>z</sub></strong></em><strong> &#8805; 0.5 </strong><em><strong>and</strong></em><strong> paired </strong><em><strong>p</strong></em><strong> &#8804; 0.05) on RULER 8K.</strong> RULER 16K is positive but shy of both halves of the gate at <em>n</em> = 60, and still shy of both halves at the <em>n</em> = 103 power-extension (CI excludes 0, <em>p</em> = 0.064, <em>d<sub>z</sub></em> = 0.225). SWE-bench-haiku passes the <em>p</em> gate but is <em>d<sub>z</sub></em>-shy (<em>d<sub>z</sub></em> = 0.488, just below 0.5) under the CLI-blocked pre-registration. The single live-HF null is TruthfulQA (paired &#916; = &#8722;0.033, <em>p</em> = 0.74, <em>d<sub>z</sub></em> = &#8722;0.091 at <em>n</em> = 60) &#8212; reported as a null, not papered over. The hallucination surfaces clear the calibration / Brier-score axis on the synthetic-fallback bands.</p><div><hr></div><h2><strong>Try it yourself</strong></h2><p>The plugin is open-source (MIT). It installs in two commands and works inside Cursor, Claude Code (CLI and VS Code), and Claude Desktop, because the only inter-process surface is the Model Context Protocol.</p><pre><code><code># One-time prerequisite: install uv (the Python package runner the plugin uses).
curl -LsSf https://astral.sh/uv/install.sh | sh</code></code></pre><p>Then, inside Cursor or Claude Code:</p><pre><code><code>/plugin marketplace add SharathSPhD/pratyaksha-context-eng-harness
/plugin install pratyaksha-context-eng-harness</code></code></pre><p>Restart the host. The first MCP tool call takes ~30 s while <code>uv</code> downloads dependencies; every call after that is instant. No <code>pip</code>, no virtualenv, no <code>claude mcp add</code>.</p><p>Four slash commands cover almost everything a user will want to do interactively:</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!pVJl!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F40821855-2e21-4e2c-946b-a4060e916c9c_1098x609.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!pVJl!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F40821855-2e21-4e2c-946b-a4060e916c9c_1098x609.png 424w, https://substackcdn.com/image/fetch/$s_!pVJl!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F40821855-2e21-4e2c-946b-a4060e916c9c_1098x609.png 848w, https://substackcdn.com/image/fetch/$s_!pVJl!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F40821855-2e21-4e2c-946b-a4060e916c9c_1098x609.png 1272w, https://substackcdn.com/image/fetch/$s_!pVJl!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F40821855-2e21-4e2c-946b-a4060e916c9c_1098x609.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!pVJl!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F40821855-2e21-4e2c-946b-a4060e916c9c_1098x609.png" width="1098" height="609" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/40821855-2e21-4e2c-946b-a4060e916c9c_1098x609.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:609,&quot;width&quot;:1098,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:74463,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://technektar.substack.com/i/194719040?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F40821855-2e21-4e2c-946b-a4060e916c9c_1098x609.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!pVJl!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F40821855-2e21-4e2c-946b-a4060e916c9c_1098x609.png 424w, https://substackcdn.com/image/fetch/$s_!pVJl!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F40821855-2e21-4e2c-946b-a4060e916c9c_1098x609.png 848w, https://substackcdn.com/image/fetch/$s_!pVJl!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F40821855-2e21-4e2c-946b-a4060e916c9c_1098x609.png 1272w, https://substackcdn.com/image/fetch/$s_!pVJl!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F40821855-2e21-4e2c-946b-a4060e916c9c_1098x609.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>A 90-second first-turn recipe: open a long-running task &#8212; a multi-file refactor, a multi-source research synthesis, a long policy-QA conversation &#8212; type <code>/context-status</code> before and after a few turns, and <code>tail -f ~/.cache/pratyaksha/audit.jsonl</code> in a side terminal to watch the sublation events fire.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!stcm!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7d3ca3e1-bb71-4a14-95cc-bf7363afd879_2048x2048.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!stcm!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7d3ca3e1-bb71-4a14-95cc-bf7363afd879_2048x2048.png 424w, https://substackcdn.com/image/fetch/$s_!stcm!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7d3ca3e1-bb71-4a14-95cc-bf7363afd879_2048x2048.png 848w, https://substackcdn.com/image/fetch/$s_!stcm!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7d3ca3e1-bb71-4a14-95cc-bf7363afd879_2048x2048.png 1272w, https://substackcdn.com/image/fetch/$s_!stcm!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7d3ca3e1-bb71-4a14-95cc-bf7363afd879_2048x2048.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!stcm!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7d3ca3e1-bb71-4a14-95cc-bf7363afd879_2048x2048.png" width="1456" height="1456" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/7d3ca3e1-bb71-4a14-95cc-bf7363afd879_2048x2048.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1456,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:&quot;A polished visualisation of the plugin's install flow: a dark-mode terminal showing the curl uv install line and the /plugin install command, alongside the rendered token-budget gauge with five categories.&quot;,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="A polished visualisation of the plugin's install flow: a dark-mode terminal showing the curl uv install line and the /plugin install command, alongside the rendered token-budget gauge with five categories." title="A polished visualisation of the plugin's install flow: a dark-mode terminal showing the curl uv install line and the /plugin install command, alongside the rendered token-budget gauge with five categories." srcset="https://substackcdn.com/image/fetch/$s_!stcm!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7d3ca3e1-bb71-4a14-95cc-bf7363afd879_2048x2048.png 424w, https://substackcdn.com/image/fetch/$s_!stcm!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7d3ca3e1-bb71-4a14-95cc-bf7363afd879_2048x2048.png 848w, https://substackcdn.com/image/fetch/$s_!stcm!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7d3ca3e1-bb71-4a14-95cc-bf7363afd879_2048x2048.png 1272w, https://substackcdn.com/image/fetch/$s_!stcm!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7d3ca3e1-bb71-4a14-95cc-bf7363afd879_2048x2048.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption"><strong>Installable in two commands, hot-swappable across hosts.</strong> The same MCP-based plugin resolves identically inside Cursor, Claude Code (CLI and VS Code extension), and Claude Desktop.</figcaption></figure></div><div><hr></div><h2><strong>Context engineering is the new prompt engineering</strong></h2><p>Three years ago, prompt engineering was a discipline waiting for its name. Practitioners traded recipes; researchers showed that the recipes mattered; within eighteen months the field had a vocabulary, a literature, and a practice.</p><p>Context engineering is in the same place now. The failure modes are real, the costs are paid daily by everyone shipping agents into production, and the field is converging on the recognition that a bigger window is not a substitute for a discipline. What has been missing is the <em>type signatures</em>. <em>Avacchedaka</em> is not &#8220;metadata&#8221;. <em>B&#257;dha</em> is not &#8220;delete&#8221;. <em>Manas / buddhi</em> is not &#8220;two model calls&#8221;. Each is a precise relational operator with a centuries-long history of philosophical refinement, and each turns out to have a clean implementation against an LLM context window.</p><p>This is also not a coding-agent fix. The same operators apply, unchanged, wherever an agent reads streaming evidence under a fixed token budget &#8212; <em>avacchedaka</em>-typed insertion for a customer-service agent that must distinguish &#8220;policy as of 2023-Q1&#8221; from &#8220;policy as of 2025-Q4&#8221;; for a research-assistance agent that surfaces a paper and then a retraction; for a document-QA agent navigating versioned documentation; for a multi-tool orchestrator integrating heterogeneous tool outputs whose provenance must remain auditable. <em>B&#257;dha</em> applies wherever newer authoritative evidence must displace older evidence without losing the audit trail. <em>Manas / buddhi</em> applies in any setting in which selecting evidence and judging on the basis of it are different cognitive acts. The Layer-1 evidence already exercises these general settings; the Layer-2 case study spans Django, requests, and pandas; SWE-bench Verified is one coding instance of an agent-level effect that travels.</p><p>The Pratyak&#7779;a harness is one delivery vehicle. The plugin will get refined; model families will turn over; the budget gauges will get smarter. The lasting contribution is the recognition that the vocabulary already exists, the schools that built it were thinking carefully about <em>what counts as a justified belief</em>, and a modern context-engineered agent does not have to invent the discipline from scratch.</p><p><em>Install the plugin. Watch the audit log. The vocabulary was waiting.</em></p><blockquote><p><em>Pratyak&#7779;a &#8212; direct perception. The lasting contribution is the type signatures; the plugin is one delivery vehicle.</em></p></blockquote><h3><strong>Try it, read it, cite it</strong></h3><ul><li><p><strong>Plugin (install + use):</strong><a href="https://github.com/SharathSPhD/pratyaksha-context-eng-harness">github.com/SharathSPhD/pratyaksha-context-eng-harness</a></p></li><li><p><strong>Full harness, paper sources, experiments, validation:</strong><a href="https://github.com/SharathSPhD/context-engineering-harness">github.com/SharathSPhD/context-engineering-harness</a></p></li><li><p><strong>Citable preprint (Zenodo, DOI-backed canonical v2.0 record):</strong><a href="https://zenodo.org/records/19653013">zenodo.org/records/19653013</a></p></li><li><p><strong>Download the v2.1.1 preprint PDF</strong>(paper with live-HF F14 + F15, cite as the current working version):<a href="https://github.com/SharathSPhD/pratyaksha-context-eng-harness/releases/download/v2.1.1/pratyaksha-v2.1.1-preprint.pdf">pratyaksha-v2.1.1-preprint.pdf (GitHub release)</a></p></li><li><p><strong>v2.1.1 release page</strong>(plugin zip, paper PDF, F14/F15 figures, checksums):<a href="https://github.com/SharathSPhD/pratyaksha-context-eng-harness/releases/tag/v2.1.1">v2.1.1 on GitHub</a>&#8212; supersedes<a href="https://github.com/SharathSPhD/pratyaksha-context-eng-harness/releases/tag/v2.0.0">v2.0.0</a></p></li><li><p><strong>Project status canvas:</strong><a href="https://sharathsphd.github.io/context-engineering-harness/canvas.html">canvas.html</a></p></li><li><p><strong>Licence:</strong>MIT (code), CC-BY-4.0 (paper text + figures)</p></li></ul><p><strong><a href="https://github.com/SharathSPhD/pratyaksha-context-eng-harness">Install the plugin &#8594;</a><a href="https://github.com/SharathSPhD/context-engineering-harness">Full harness on GitHub</a></strong></p><p>If you ship an agent into production, install the plugin and watch one long session through the audit log. The numbers speak; the millennia-old vocabulary will start to sound like exactly what you needed.</p><p><strong><a href="https://www.linkedin.com/in/sharath-s/">Sharath Sathish</a></strong><em> is the author of the Pratyak&#7779;a context-engineering harness. Comments, philological corrections, and replication runs welcome on the <a href="https://github.com/SharathSPhD/pratyaksha-context-eng-harness/issues">GitHub repository</a>.</em></p>]]></content:encoded></item><item><title><![CDATA[DreamPrice: An AI That Learns to Price by Dreaming]]></title><description><![CDATA[AI systems that can &#8220;imagine&#8221; possible futures, called world models, have been applied to Atari games, robotics, and board games.]]></description><link>https://technektar.substack.com/p/dreamprice-an-ai-that-learns-to-price-2ba</link><guid isPermaLink="false">https://technektar.substack.com/p/dreamprice-an-ai-that-learns-to-price-2ba</guid><dc:creator><![CDATA[TechNektar]]></dc:creator><pubDate>Thu, 26 Feb 2026 20:51:13 GMT</pubDate><enclosure url="https://api.substack.com/feed/podcast/195475533/6602ac66cfdfc6bd332fd33ad359238e.mp3" length="0" type="audio/mpeg"/><content:encoded><![CDATA[<p><em>AI systems that can &#8220;imagine&#8221; possible futures, called world models, have been applied to Atari games, robotics, and board games. But applying them to economic environments like retail pricing has been largely unexplored. DreamPrice takes an initial step into that space. And solving the fundamental problem that makes economics different from physics turns out to require a detour through a 1978 econometrics paper.</em></p>]]></content:encoded></item><item><title><![CDATA[DreamPrice: An AI That Learns to Price by Dreaming]]></title><description><![CDATA[How a world model trained on grocery data takes the first steps into an unexplored corner of AI research, and why the economics made it surprisingly hard]]></description><link>https://technektar.substack.com/p/dreamprice-an-ai-that-learns-to-price</link><guid isPermaLink="false">https://technektar.substack.com/p/dreamprice-an-ai-that-learns-to-price</guid><dc:creator><![CDATA[TechNektar]]></dc:creator><pubDate>Thu, 26 Feb 2026 17:53:22 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!6tdN!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0837b9ff-008b-4eff-9db8-77363fb69186_1536x1024.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<div><hr></div><blockquote><p><strong>The big idea:</strong> AI systems that can &#8220;imagine&#8221; possible futures, called world models, have been applied to Atari games, robotics, and board games. But applying them to economic environments like retail pricing has been largely unexplored. DreamPrice takes an initial step into that space. And solving the fundamental problem that makes economics different from physics turns out to require a detour through a 1978 econometrics paper.</p></blockquote><div><hr></div><h2>The Chess Grandmaster&#8217;s Secret</h2><p>Magnus Carlsen doesn&#8217;t just look at the board. He dreams it forward.</p><p>Before he moves a single piece, Carlsen runs simulated futures inside his mind. What if I move the knight here? How does my opponent respond? What does that mean three moves later? This ability to <em>imagine ahead</em>, to model the future before committing to any action, is what separates a grandmaster from a competent club player.</p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://technektar.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div><p>Most AI pricing systems today are club players. They look at today&#8217;s prices, today&#8217;s demand, maybe last week&#8217;s promotional data, and they spit out a recommendation. If you ask them what happens to your canned soup sales if you cut the price by 8% for the next six weeks while a competitor is running a promotion, they can&#8217;t answer. They don&#8217;t have a model of how the future unfolds. They can&#8217;t dream.</p><p>DreamPrice is a step toward changing that.</p><p>It is likely one of the first world models trained directly on retail pricing data. In this work, it&#8217;s trained on the canned soup category of the Dominick&#8217;s Finer Foods dataset, a historical record of 93 Chicago grocery stores across 400 weeks from 1989 to 1997. It learns store-level dynamics like promotional substitution and stockpiling behaviour, then imagines forward through 13 weeks of simulated retail time before deciding on a price. If you care about the business angle, you can read this as a story about safer price experimentation without needing live A/B tests. If you&#8217;re a technical reader, watch for the parts on DreamerV3, Mamba-2, and DML-PLIV.</p><p>Getting here required stitching together ideas from three fields that rarely talk to each other: deep reinforcement learning, sequence modelling, and causal inference from econometrics. The result sits at a genuinely underexplored intersection, and the ablation experiments make a reasonable case that every one of those pieces is doing real work.</p><blockquote><p>&#127911; <em>Audio: What Is a World Model?</em></p></blockquote><div class="native-audio-embed" data-component-name="AudioPlaceholder" data-attrs="{&quot;label&quot;:null,&quot;mediaUploadId&quot;:&quot;678cab69-eb7a-430f-9ee2-6581425395b8&quot;,&quot;duration&quot;:92.78694,&quot;downloadable&quot;:true,&quot;isEditorNode&quot;:true}"></div><div><hr></div><h2>The Largely Empty Quadrant</h2><p>Here is a simple two-by-two grid that sets up the whole story.</p><p>On one axis: is the environment <em>physical</em> (governed by physics and game rules) or <em>economic</em> (governed by human behaviour, competition, and market forces)? On the other axis: is the dynamics model <em>learned</em> from data, or is it <em>structural</em> &#8212; hand-coded with explicit equations?</p><p>The physical/learned quadrant is packed. DreamerV3, MuZero, IRIS, TD-MPC2 &#8212; these systems have collectively mastered Atari, chess, Go, and continuous robotic control. The economic/structural quadrant is also inhabited: the AI Economist uses a rule-based tax environment, DSGE models simulate national economies with programmed equations, and agent-based financial simulators model order books with explicit rules. The economic/learned quadrant has seen very little work. DreamPrice is an initial step into that space.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!SiZp!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcefa7c30-69c7-4e41-9509-83af90deab5b_1536x1024.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!SiZp!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcefa7c30-69c7-4e41-9509-83af90deab5b_1536x1024.png 424w, https://substackcdn.com/image/fetch/$s_!SiZp!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcefa7c30-69c7-4e41-9509-83af90deab5b_1536x1024.png 848w, https://substackcdn.com/image/fetch/$s_!SiZp!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcefa7c30-69c7-4e41-9509-83af90deab5b_1536x1024.png 1272w, https://substackcdn.com/image/fetch/$s_!SiZp!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcefa7c30-69c7-4e41-9509-83af90deab5b_1536x1024.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!SiZp!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcefa7c30-69c7-4e41-9509-83af90deab5b_1536x1024.png" width="1456" height="971" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/cefa7c30-69c7-4e41-9509-83af90deab5b_1536x1024.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:971,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:540683,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://technektar.substack.com/i/189250636?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcefa7c30-69c7-4e41-9509-83af90deab5b_1536x1024.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!SiZp!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcefa7c30-69c7-4e41-9509-83af90deab5b_1536x1024.png 424w, https://substackcdn.com/image/fetch/$s_!SiZp!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcefa7c30-69c7-4e41-9509-83af90deab5b_1536x1024.png 848w, https://substackcdn.com/image/fetch/$s_!SiZp!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcefa7c30-69c7-4e41-9509-83af90deab5b_1536x1024.png 1272w, https://substackcdn.com/image/fetch/$s_!SiZp!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcefa7c30-69c7-4e41-9509-83af90deab5b_1536x1024.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption">The space of sequential decision environments.</figcaption></figure></div><p>Why has this quadrant sat empty? It&#8217;s not for lack of interest. Retail pricing is a high-stakes decision problem with obvious optimization potential. The answer is that economics has a property that physics doesn&#8217;t. A name that strikes fear into econometricians everywhere: <em>endogeneity</em>.</p><div><hr></div><h2>The Chicken-and-Egg Problem That Breaks Na&#239;ve Regression</h2><p>In physics, the laws of motion don&#8217;t care about your policy. A ball follows a parabola regardless of who threw it. The transition dynamics are independent of the agent.</p><p>In retail, everything is circular. Prices cause demand. But demand also causes prices. A retailer sets prices based on expected demand &#8212; if sales are expected to be soft, they run a promotion. Consumers respond to those prices. Competitors respond to both. Unobserved cost shocks hit the entire supply chain and move prices across stores at the same time.</p><p>The consequence for na&#239;ve machine learning is a real problem. If you train a neural network to predict demand as a function of price using historical supermarket data, it doesn&#8217;t learn the causal effect of price changes. It learns a confounded relationship that is a mixture of the true price sensitivity and the retailer&#8217;s own pricing strategy, which are tangled together in the data.</p><p>Here&#8217;s a concrete way to feel the problem: in historical data, you&#8217;ll often see high prices correlated with high demand for staple goods like canned soup. Why? Because the retailer raised prices during busy holiday seasons and back-to-school weeks when demand was already going to be high regardless of price. A simple model learns &#8220;high price leads to high demand,&#8221; which is exactly backwards from the causal reality, and would produce completely wrong predictions for any hypothetical pricing scenario.</p><p>This problem is called <strong>endogeneity</strong>, and the econometrics literature has been wrestling with it since at least the 1970s. The standard solution: find an <em>instrumental variable</em> (IV), something that affects prices but is independent of the local demand shocks you&#8217;re trying to isolate.</p><blockquote><p>&#127911; <em>Audio: The Endogeneity Problem</em></p><div class="native-audio-embed" data-component-name="AudioPlaceholder" data-attrs="{&quot;label&quot;:null,&quot;mediaUploadId&quot;:&quot;eaeae5b3-c44b-4941-9ee4-cff3cd91a259&quot;,&quot;duration&quot;:94.82449,&quot;downloadable&quot;:true,&quot;isEditorNode&quot;:true}"></div></blockquote><p>Jerry Hausman, in a 1978 paper, provided a framework that DreamPrice exploits almost fifty years later. The insight: if wholesale costs go up for a product, all stores in a chain tend to raise prices simultaneously, because they all source from the same distribution network. That cross-store price correlation is driven by costs, not by whether any particular store is experiencing a local demand shock. So the average price in all your <em>other</em> stores, for the same product and week, makes a reasonable instrument for your own store&#8217;s price.</p><p>With 83 stores in the Dominick&#8217;s dataset, DreamPrice constructs this instrument for every product-week combination. The first-stage F-statistic comes out at 23,381, which is an extremely strong instrument by conventional standards (the usual threshold is 10). That level of instrument relevance makes the subsequent causal estimation reliable.</p><p>But identifying price elasticities via instrumental variables is only part of the work. The other part is doing it flexibly while controlling for a high-dimensional set of seasonal effects, store demographics, promotional calendars, and fixed effects. For that, DreamPrice uses <strong>Double Machine Learning (DML-PLIV)</strong>, a framework from Chernozhukov and colleagues (2018) that uses cross-fitting and orthogonalization to get reliable causal estimates even with a large control space. The resulting estimate of price elasticity for canned soup is <strong>-0.940</strong>: a 1% price increase reduces demand by about 0.94%, roughly unit-inelastic, which is consistent with what the marketing literature expects from shelf-stable staples.</p><p>That number gets <em>frozen</em> into the DreamPrice neural network. It cannot change during training. It is not updated by backpropagation. DreamPrice starts from this IV+DML estimate, holds it fixed during world model training, and shields it from being overwritten by confounded gradients. The estimate is identified under standard econometric assumptions; it&#8217;s not guaranteed to be perfectly true, but it&#8217;s far more credible than anything the network could learn from observational data alone. For canned soup, the IV and na&#239;ve OLS estimates happen to be quite close (-0.940 vs -0.931); in categories with heavier promotions and more aggressive competitive pricing, the gap is expected to be larger, and that&#8217;s where causal identification matters most.</p><div><hr></div><p>&#127916; <em>Video: The Causal Decoder </em></p><blockquote><div class="native-video-embed" data-component-name="VideoPlaceholder" data-attrs="{&quot;mediaUploadId&quot;:&quot;bfcaec94-db9b-4326-a0af-4cb904614484&quot;,&quot;duration&quot;:null}"></div></blockquote><div><hr></div><h2>Building the Dreaming Machine</h2><p>With the causal problem handled, DreamPrice can be built as a proper world model. The architecture builds on DreamerV3, modified in three ways.</p><p><strong>The Core: A Recurrent State-Space Model (RSSM)</strong></p><p>At the heart of DreamPrice is a system maintaining two kinds of memory. A <em>deterministic hidden state</em> captures what the model is confident about: seasonal patterns, long-run price trends, store demographics. A <em>stochastic latent variable</em> represents genuine uncertainty: what are consumers doing right now, what&#8217;s the competitive situation we can&#8217;t directly observe.</p><p>Think of it like a weather forecaster&#8217;s mental model. There&#8217;s the deterministic part; cold air masses follow well-understood physics, and there&#8217;s the stochastic part; whether that front actually triggers a storm depends on chaotic small-scale dynamics that even the best model can&#8217;t pin down. Both kinds of information matter, and separating them cleanly is what allows the model to express calibrated uncertainty later.</p><p>The model encodes each week&#8217;s observations (prices, quantities sold, promotional activity, store demographics) into this latent space, then learns to predict forward through time. During planning, it never works in the original high-dimensional observation space. It reasons entirely in the compact latent space, which is dramatically cheaper.</p><p><strong>The Backbone: Mamba-2 Instead of a GRU</strong></p><p>Standard DreamerV3 uses a Gated Recurrent Unit as its sequence memory. A GRU processes one timestep at a time, each depending on the previous, so you can&#8217;t parallelize across time during training. For short sequences this is fine, but it&#8217;s a bottleneck as sequences get longer.</p><p>DreamPrice replaces this with <strong>Mamba-2</strong>, a selective state-space model. The core insight behind Mamba-2 is a mathematical result called <em>structured state-space duality</em>: the same computation a recurrent model does step-by-step can, under certain conditions, be rewritten as a parallel scan over the entire sequence at once. This gives Mamba-2 a practical advantage: during training, it processes sequences in parallel with O(n) complexity; during imagination rollouts, it switches to step-by-step recurrent mode with O(1) cost per step.</p><p>For DreamPrice, running 13-week imagination rollouts across thousands of training iterations is where this matters. The ablation confirms it&#8217;s not just theoretical: replacing Mamba-2 with a GRU reduces policy return by 28.9% in these experiments, even though the GRU achieves a somewhat <em>lower</em> world model reconstruction loss. The selective gating mechanism in Mamba-2 appears to provide advantages for policy learning that don&#8217;t show up in simple prediction error metrics.</p><p><strong>The Decoupled Posterior: A DRAMA-Inspired Fix</strong></p><p>There&#8217;s a subtle training bottleneck in standard RSSMs. Inferring the stochastic latent variable at each timestep normally depends on both the current observation <em>and</em> the previous hidden state, which creates a dependency chain that blocks Mamba-2&#8217;s parallel scan from working.</p><p>DreamPrice borrows a trick from DRAMA, a recent architecture: make the posterior inference depend <em>only on the current observation</em>, not on the previous hidden state. The hidden state still influences the prior (what the model predicts before seeing the observation), and that prior-posterior gap still provides a training signal. But the posterior computation becomes parallelizable across the full training batch. This is the kind of change that looks minor in a diagram but makes a large practical difference in training speed.</p><blockquote><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!6tdN!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0837b9ff-008b-4eff-9db8-77363fb69186_1536x1024.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!6tdN!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0837b9ff-008b-4eff-9db8-77363fb69186_1536x1024.png 424w, https://substackcdn.com/image/fetch/$s_!6tdN!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0837b9ff-008b-4eff-9db8-77363fb69186_1536x1024.png 848w, https://substackcdn.com/image/fetch/$s_!6tdN!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0837b9ff-008b-4eff-9db8-77363fb69186_1536x1024.png 1272w, https://substackcdn.com/image/fetch/$s_!6tdN!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0837b9ff-008b-4eff-9db8-77363fb69186_1536x1024.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!6tdN!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0837b9ff-008b-4eff-9db8-77363fb69186_1536x1024.png" width="1456" height="971" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/0837b9ff-008b-4eff-9db8-77363fb69186_1536x1024.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:971,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:1795878,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://technektar.substack.com/i/189250636?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0837b9ff-008b-4eff-9db8-77363fb69186_1536x1024.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!6tdN!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0837b9ff-008b-4eff-9db8-77363fb69186_1536x1024.png 424w, https://substackcdn.com/image/fetch/$s_!6tdN!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0837b9ff-008b-4eff-9db8-77363fb69186_1536x1024.png 848w, https://substackcdn.com/image/fetch/$s_!6tdN!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0837b9ff-008b-4eff-9db8-77363fb69186_1536x1024.png 1272w, https://substackcdn.com/image/fetch/$s_!6tdN!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0837b9ff-008b-4eff-9db8-77363fb69186_1536x1024.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption">DreamPrice Architecture</figcaption></figure></div></blockquote><div><hr></div><h2>Teaching the Agent to Be Cautious</h2><p>Here is a failure mode worth taking seriously: reward exploitation in low-data regions.</p><p>Say you train a world model on historical supermarket data. Most of that data comes from prices in a relatively normal range, maybe 5% to 15% away from baseline. The model has never seen prices at 40% discount or prices tripled overnight. Its predictions in those regions are extrapolations from a function with no data to anchor it.</p><blockquote><p>Now you train an agent to maximize reward <em>inside</em> this world model. The agent is highly motivated and will find whatever pricing strategy the model thinks is optimal. If the model assigns unrealistically high returns to some extreme pricing configuration because it simply hasn&#8217;t seen enough data to know better, the agent will exploit that gap. It will find the model&#8217;s weak spots and surf them. The resulting policy, evaluated against any honest measure, performs terribly.</p><p>This is the distributional shift problem in offline reinforcement learning, and it&#8217;s not theoretical. In the DreamPrice ablation, removing the pessimism mechanism reduces agent return by <strong>85.6% in this setting</strong> (from 193.7 to 27.9 in the symlog-transformed reward space, which is a simulated measure rather than real dollars). That is the largest single degradation across all nine ablations tested.</p></blockquote><p>The fix, borrowed from <strong>MOPO</strong> (Model-based Offline Policy Optimization), is to train five independent reward heads on the same backbone. When all five agree, the model is confident. When they disagree, this is a region the model hasn&#8217;t seen enough data to trust. The pessimistic reward that drives actor training becomes:</p><p><code>r_pessimistic = r_mean - lambda_LCB x r_std</code></p><p>With lambda set to 1.0, the agent is penalized by one standard deviation of uncertainty at every step. It pursues high rewards but only in regions where its model is actually reliable. Pessimistic rewards don&#8217;t guarantee safety in the real world, but they make the agent systematically conservative where the model is uncertain, which is a meaningful improvement over unconstrained offline RL.</p><blockquote><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!bUhI!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F434fa587-5afc-4c69-bc8b-575c21fc9928_1294x633.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!bUhI!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F434fa587-5afc-4c69-bc8b-575c21fc9928_1294x633.png 424w, https://substackcdn.com/image/fetch/$s_!bUhI!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F434fa587-5afc-4c69-bc8b-575c21fc9928_1294x633.png 848w, https://substackcdn.com/image/fetch/$s_!bUhI!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F434fa587-5afc-4c69-bc8b-575c21fc9928_1294x633.png 1272w, https://substackcdn.com/image/fetch/$s_!bUhI!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F434fa587-5afc-4c69-bc8b-575c21fc9928_1294x633.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!bUhI!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F434fa587-5afc-4c69-bc8b-575c21fc9928_1294x633.png" width="1294" height="633" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/434fa587-5afc-4c69-bc8b-575c21fc9928_1294x633.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:633,&quot;width&quot;:1294,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:50708,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://technektar.substack.com/i/189250636?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F434fa587-5afc-4c69-bc8b-575c21fc9928_1294x633.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!bUhI!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F434fa587-5afc-4c69-bc8b-575c21fc9928_1294x633.png 424w, https://substackcdn.com/image/fetch/$s_!bUhI!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F434fa587-5afc-4c69-bc8b-575c21fc9928_1294x633.png 848w, https://substackcdn.com/image/fetch/$s_!bUhI!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F434fa587-5afc-4c69-bc8b-575c21fc9928_1294x633.png 1272w, https://substackcdn.com/image/fetch/$s_!bUhI!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F434fa587-5afc-4c69-bc8b-575c21fc9928_1294x633.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption">Ablation Results Bar Chart</figcaption></figure></div></blockquote><div><hr></div><h2>The Numbers</h2><p>DreamPrice is trained on canned soup in the Dominick&#8217;s Finer Foods dataset: 93 Chicago grocery stores, 400 weeks of scanner data from 1989 to 1997, roughly 25 stock-keeping units in the category. After a standard chronological train/validation/test split (no shuffling across time), the trained model achieves a world model ELBO loss of 22.44 after 100,000 training steps. The full training run takes about 2.6 hours on an NVIDIA DGX Spark.</p><p>In prediction terms: at a one-week forecast horizon, the model achieves a WMAPE (weighted mean absolute percentage error) of around 72%. That sounds high, but weekly store-SKU-level demand forecasting is genuinely difficult at this granularity, and 70-72% WMAPE is typical in the published literature. More informative is how prediction quality <em>changes</em> with horizon. The Normalized Degradation Rate grows to only 1.057 at a 10-week horizon, meaning prediction error accumulates slowly, which is what you want for stable 13-step imagination rollouts.</p><p>The results most encouraging to spend time with are the ablations rather than the baseline comparisons, because the baselines involve two different evaluation protocols that make direct numerical comparison misleading. Rule-based methods (cost-plus markup, competitive matching, XGBoost) are evaluated on real Dominick&#8217;s test data and report actual weekly gross margin in dollars. Model-free RL methods (DQN, PPO, SAC) are trained and evaluated inside the learned world model and report simulated episode returns. DreamPrice sits in the second group, evaluated via imagination rollout with pessimistic rewards. The numbers aren&#8217;t directly comparable across groups. The more informative takeaway is how each architectural component contributes within a consistent evaluation protocol.</p><p>The symlog+twohot ablation is worth dwelling on because the numbers are surprising. &#8220;Symlog&#8221; is a transformation applied to all continuous values before they enter the network: symlog(x) = sign(x) x ln(|x| + 1). It compresses large values logarithmically while preserving behavior near zero. &#8220;Twohot&#8221; represents a scalar reward not as a single number but as a probability distribution over 255 bins. These two together address a real problem: retail gross margins range from fractions of a cent to hundreds of dollars per SKU per week. Without them, the world model loss increases 25-fold (573.2 vs 22.44) and policy return drops 67.4%. These aren&#8217;t optional refinements. They&#8217;re doing structural work.</p><blockquote><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!EsZO!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7a9a4803-7a74-4d0d-a94b-57b5859022f6_1392x1005.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!EsZO!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7a9a4803-7a74-4d0d-a94b-57b5859022f6_1392x1005.png 424w, https://substackcdn.com/image/fetch/$s_!EsZO!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7a9a4803-7a74-4d0d-a94b-57b5859022f6_1392x1005.png 848w, https://substackcdn.com/image/fetch/$s_!EsZO!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7a9a4803-7a74-4d0d-a94b-57b5859022f6_1392x1005.png 1272w, https://substackcdn.com/image/fetch/$s_!EsZO!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7a9a4803-7a74-4d0d-a94b-57b5859022f6_1392x1005.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!EsZO!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7a9a4803-7a74-4d0d-a94b-57b5859022f6_1392x1005.png" width="1392" height="1005" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/7a9a4803-7a74-4d0d-a94b-57b5859022f6_1392x1005.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1005,&quot;width&quot;:1392,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:160119,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://technektar.substack.com/i/189250636?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7a9a4803-7a74-4d0d-a94b-57b5859022f6_1392x1005.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!EsZO!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7a9a4803-7a74-4d0d-a94b-57b5859022f6_1392x1005.png 424w, https://substackcdn.com/image/fetch/$s_!EsZO!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7a9a4803-7a74-4d0d-a94b-57b5859022f6_1392x1005.png 848w, https://substackcdn.com/image/fetch/$s_!EsZO!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7a9a4803-7a74-4d0d-a94b-57b5859022f6_1392x1005.png 1272w, https://substackcdn.com/image/fetch/$s_!EsZO!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7a9a4803-7a74-4d0d-a94b-57b5859022f6_1392x1005.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption">Training progress. (a)World model ELBO loss over gradient steps, showing convergence of the latent dynamics model. (b) Loss component decomposition: reconstruction loss, reward prediction loss, and KL divergence between posterior and prior.</figcaption></figure></div></blockquote><div><hr></div><p>&#127916; <em>Video: What Imagination Looks Like</em></p><blockquote><div class="native-video-embed" data-component-name="VideoPlaceholder" data-attrs="{&quot;mediaUploadId&quot;:&quot;11ec84d4-808e-469e-a02d-8c7db7873ec7&quot;,&quot;duration&quot;:null}"></div></blockquote><div><hr></div><h2>What the Causal Work Actually Buys You</h2><p>The causal estimation results reveal something worth thinking about honestly.</p><p>For canned soup, the endogeneity problem turns out to be modest: the na&#239;ve OLS regression gives an elasticity of -0.931, while the DML-PLIV estimate is -0.940. The difference is 0.009. A reasonable person might ask why all the causal machinery is necessary when the gap is this small.</p><p>There are two answers. First, canned soup is a cooperative test case: shelf-stable, price-stable, dominated by brand loyalty rather than aggressive promotional dynamics. Categories like beer or soft drinks, where promotional intensity is higher, are expected to show larger gaps between na&#239;ve and causal estimates. Canned soup happens to be a category where the Hausman instrument does most of the heavy lifting to confirm the estimate, but the real validation will come from high-endogeneity categories, which is important future work.</p><p>Second, the value of the causal decoder is partly architectural rather than purely numerical. When the price-demand relationship is held fixed by econometric estimation, the neural network&#8217;s job changes: instead of trying to learn everything from scratch, it learns the <em>residual</em> &#8212; seasonality, demographics, promotion dynamics, latent competitive structure. That&#8217;s a cleaner division of labour, and it means the model&#8217;s pricing intuitions are grounded in something identifiable and auditable rather than being a black-box correlation.</p><blockquote><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!cJK9!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F411d245b-fc91-41d2-a16a-3ea0cfcb9740_1294x501.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!cJK9!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F411d245b-fc91-41d2-a16a-3ea0cfcb9740_1294x501.png 424w, https://substackcdn.com/image/fetch/$s_!cJK9!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F411d245b-fc91-41d2-a16a-3ea0cfcb9740_1294x501.png 848w, https://substackcdn.com/image/fetch/$s_!cJK9!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F411d245b-fc91-41d2-a16a-3ea0cfcb9740_1294x501.png 1272w, https://substackcdn.com/image/fetch/$s_!cJK9!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F411d245b-fc91-41d2-a16a-3ea0cfcb9740_1294x501.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!cJK9!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F411d245b-fc91-41d2-a16a-3ea0cfcb9740_1294x501.png" width="1294" height="501" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/411d245b-fc91-41d2-a16a-3ea0cfcb9740_1294x501.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:501,&quot;width&quot;:1294,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:89127,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://technektar.substack.com/i/189250636?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F411d245b-fc91-41d2-a16a-3ea0cfcb9740_1294x501.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!cJK9!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F411d245b-fc91-41d2-a16a-3ea0cfcb9740_1294x501.png 424w, https://substackcdn.com/image/fetch/$s_!cJK9!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F411d245b-fc91-41d2-a16a-3ea0cfcb9740_1294x501.png 848w, https://substackcdn.com/image/fetch/$s_!cJK9!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F411d245b-fc91-41d2-a16a-3ea0cfcb9740_1294x501.png 1272w, https://substackcdn.com/image/fetch/$s_!cJK9!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F411d245b-fc91-41d2-a16a-3ea0cfcb9740_1294x501.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption">Causal demand response curves. (a) Predicted demand using DML-PLIV elasticity(&#952; = &#8722;0.940, solid) compared to OLS-derived demand (&#952; = &#8722;0.931, dashed). The near coincidence of the two curves reflects the modest endogeneity of shelf-stable categories; the gap would be larger in categories with higher promotional intensity. (b) Illustrative sensitivity analysis showing how demand response varies across a range of elasticity values &#952; &#8712; [&#8722;3.0,&#8722;0.5].</figcaption></figure></div></blockquote><div><hr></div><h2>What This Work Does Not Show Yet</h2><p>It&#8217;s worth being direct about what the current results don&#8217;t demonstrate.</p><blockquote><p>The evaluation covers a single category (canned soup) in a single historical dataset that ended in 1997. Retail has changed considerably since then: e-commerce, algorithmic competitors, dynamic pricing at sub-second timescales, and supply chain digitization have all altered the structure of the problem. Whether the learned dynamics generalize beyond this historical benchmark is an open question.</p></blockquote><p>The system is purely offline. It learns from historical data and cannot update its model as new data arrives. Bridging offline learning to an online loop where the world model refines itself is important future work and brings its own set of distributional shift challenges.</p><p>The competitive modelling is implicit rather than explicit. DreamPrice learns that prices in the data correlate with competitive dynamics, but it doesn&#8217;t directly model what competitors are doing. A proper game-theoretic treatment would require substantially more machinery.</p><p>Finally, the ablation results come from a single training seed due to compute constraints. The codebase documents the full multi-seed protocol with stratified bootstrap confidence intervals, but running it completely would require significantly more hardware. The directional conclusions from the ablations are likely robust, but the precise percentage numbers should be read with that caveat in mind.</p><div><hr></div><h2>Why the Gap Matters Beyond Grocery Stores</h2><p>The significance of DreamPrice isn&#8217;t specific to pricing soup.</p><p>It&#8217;s evidence that a previously underexplored category, learned world models for economic environments, is not empty because it&#8217;s impossible, but because it requires bridging disciplines that don&#8217;t usually talk to each other. The endogeneity problem is one instance of a much broader phenomenon: in any human-mediated environment, the agent&#8217;s actions are entangled with the dynamics it&#8217;s trying to learn. Financial markets, labour markets, recommendation systems, advertising auctions all share this structure.</p><p>The technical pieces assembled here; causal constraints from econometric estimation, offline pessimism via ensemble uncertainty, efficient sequence modelling via state-space duality aren&#8217;t specific to grocery pricing. They&#8217;re a plausible template for any domain where a world model needs to operate on endogenous observational data with a limited experimentation budget.</p><p>The immediate next steps are clear: test on high-endogeneity categories like beer and soft drinks, add multi-category joint training, and eventually replace the offline actor with inference-time planning. Beyond that, the path runs through contemporary scanner data and online deployment where the world model updates as new data arrives.</p><p>The grandmaster&#8217;s secret, imagining deeply before committing to a move, turns out to generalize beyond chess. DreamPrice is early evidence that it might generalize into economic environments too, where the dynamics are messier and the stakes are real.</p><div><hr></div><h2>Open Source and Reproducibility</h2><p>Everything needed to reproduce and extend DreamPrice is publicly available:</p><p><strong>Preprint:</strong> <a href="https://zenodo.org/records/18787266">https://zenodo.org/records/18787266</a> - on Zenodo</p><p><strong>Code and Training Pipeline:</strong> <a href="http://github.com/SharathSPhD/dreamprice">github.com/SharathSPhD/dreamprice</a> - full Docker Compose setup for single-command reproducibility.</p><p><strong>Dataset:</strong> <a href="https://huggingface.co/datasets/qbz506/dreamprice-dominicks-cso">qbz506/dreamprice-dominicks-cso</a> - Pre-processed Dominick&#8217;s canned soup data with Hausman instruments and temporal splits on HuggingFace.</p><p><strong>Trained Model:</strong> <a href="https://huggingface.co/datasets/qbz506/dreamprice-dominicks-cso">https://huggingface.co/datasets/qbz506/dreamprice-dominicks-cso </a>100K-step checkpoint with configuration files on HuggingFace.</p><p><strong>Interactive Demo: </strong><a href="https://huggingface.co/spaces/qbz506/dreamprice-demo">https://huggingface.co/spaces/qbz506/dreamprice-demo</a> Gradio application for exploring causal demand curves and the architecture on HuggingFace Spaces.</p><p><strong>Experiment Tracking:</strong> <a href="https://wandb.ai/qbz506-technektar/dreamprice?nw=nwuserqbz506">https://wandb.ai/qbz506-technektar/dreamprice?nw=nwuserqbz506</a> Full training logs and hyperparameter configurations via Weights and Biases.</p><div><hr></div><h2>A Brief Technical Appendix</h2><p><em>For readers who want more depth without reading the full paper.</em></p><p>The <strong>ELBO</strong> is the objective the world model is trained to maximize. It combines a reconstruction term (how accurately the model predicts observations from the latent state) and a KL divergence term (which prevents the stochastic latent from collapsing to a point estimate, which would destroy uncertainty quantification). The 5:1 ratio between the dynamics KL and the representation KL is a calibrated asymmetry from DreamerV3 that prevents a training failure called posterior collapse.</p><p><strong>Symlog normalization</strong> was explained above. The inverse transform, symexp, is used whenever the model needs to produce predictions in the original unit scale.</p><p>The <strong>twohot distribution</strong> represents a scalar reward as a categorical distribution over 255 bins. Instead of predicting &#8220;the reward is 47.3,&#8221; the model predicts a probability distribution over bins that peaks near the correct value. The two closest bins get probability mass proportional to their distance from the true value. This distributional representation provides far better gradient signal than mean-squared-error regression when the reward distribution is skewed or has high variance across products.</p><p>The <strong>entity-factored encoder</strong> is worth noting separately. Rather than flattening all product features into a single vector, DreamPrice encodes each product as a separate entity with its own embedding (for product ID, store, brand, and time), then applies attention across entities to capture cross-product substitution signals. The ablation shows this is worth a 64.5% return improvement over a flat encoder in these experiments, which is larger than the Mamba-2 contribution by itself.</p><div><hr></div><p><em>Dr. Sharath is a Data Science &amp; AI leader with deep expertise spanning retail analytics, industrial engineering, and aerospace technologies. Specialized in developing cutting-edge AI/ML solutions for commodity pricing and engineering optimization at bp, while leveraging decades of experience in complex systems engineering.<br>Previously led breakthrough innovations in aerospace technology at Indian Space Research Organisation (ISRO), developing advanced inertial navigation systems and satellite actuators. Transitioned this precision engineering mindset to GE Research, where I architected AI solutions for industrial asset optimization and led cross-functional teams in turbomachinery development.<br>PhD researcher and inventor with multiple patents in sustainable energy technologies, particularly focused on supercritical CO2 power systems and waste heat recovery solutions. Proven track record of translating academic research into commercial applications through collaborations with global industry leaders.<br>Currently driving digital transformation initiatives in retail and energy sectors, combining deep technical expertise with business acumen to deliver measurable impact in pricing optimization and engineering innovation.</em></p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://technektar.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div>]]></content:encoded></item><item><title><![CDATA[Architectures of Artificial Mind]]></title><description><![CDATA[Inside the quiet revolution that&#8217;s teaching machines to imagine the future &#8212; and why it might be the missing piece between today&#8217;s chatbots and tomorrow&#8217;s truly intelligent agents.]]></description><link>https://technektar.substack.com/p/architectures-of-artificial-mind-0bf</link><guid isPermaLink="false">https://technektar.substack.com/p/architectures-of-artificial-mind-0bf</guid><dc:creator><![CDATA[TechNektar]]></dc:creator><pubDate>Wed, 25 Feb 2026 14:39:14 GMT</pubDate><enclosure url="https://api.substack.com/feed/podcast/195475534/d5beb27547b204a265a3856d43a02e99.mp3" length="0" type="audio/mpeg"/><content:encoded><![CDATA[<p>Inside the quiet revolution that&#8217;s teaching machines to imagine the future &#8212; and why it might be the missing piece between today&#8217;s chatbots and tomorrow&#8217;s truly intelligent agents.</p>]]></content:encoded></item><item><title><![CDATA[Architectures of Artificial Mind]]></title><description><![CDATA[Inside the Converging Architectures of Dreaming Machines]]></description><link>https://technektar.substack.com/p/architectures-of-artificial-mind</link><guid isPermaLink="false">https://technektar.substack.com/p/architectures-of-artificial-mind</guid><dc:creator><![CDATA[TechNektar]]></dc:creator><pubDate>Tue, 24 Feb 2026 21:34:49 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!wZLX!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5151d86a-ffa9-46cf-b1d1-c86df5e5db8a_1536x883.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p><strong>AI &#183; World Models &#183; Deep Dive</strong></p><blockquote><p><em>Inside the quiet revolution that&#8217;s teaching machines to imagine the future &#8212; and why it might be the missing piece between today&#8217;s chatbots and tomorrow&#8217;s truly intelligent agents.</em></p></blockquote><p>&#9201; 18 min read &#183; &#129504; World Models &#183; &#129302; Reinforcement Learning</p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://technektar.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div><p><strong>In this article</strong></p><ol><li><p>The Chess Master Problem - Why Prediction Isn&#8217;t Enough</p></li><li><p>What Is a World Model? The AI That Dreams Before It Acts</p></li><li><p>The RSSM - The Heart That Keeps Two Kinds of Memory</p></li><li><p>DreamerV3 - One Brain, 150 Games, Zero Specialisation</p></li><li><p>Mamba - The Memory That Scales</p></li><li><p>DRAMA - When the Brain Learns to Run in Parallel</p></li><li><p>The Free Energy Connection - Karl Friston Saw This Coming</p></li><li><p>JEPA - Yann LeCun&#8217;s Bet Against Dreaming in Pixels</p></li><li><p>The Unification - All Roads Lead to One Objective</p></li><li><p>Vis-&#224;-vis Transformers - The Giants in the Room</p></li><li><p>The Emerging Architecture of Intelligence</p></li></ol><p>Here is a game that ChatGPT would almost certainly lose. Place it inside a chess engine &#8212; not as a language model giving advice, but as the actual player making moves in a live game. Ask it to plan six moves ahead. It would flounder. Not because it doesn&#8217;t &#8220;know&#8221; chess. It knows chess extraordinarily well. But knowing the rules of chess is not the same as being able to <em>simulate a chess game in your head</em>.</p><p>This is the difference between having knowledge and having a model. It&#8217;s the distinction between a weather app that tells you today&#8217;s forecast and a meteorologist who can stand at a window, watch the clouds gathering, and simulate in their mind the pressure systems that will arrive by Thursday. The meteorologist doesn&#8217;t just retrieve a fact, they <em>run the world forward</em>.</p><p>For most of its history, AI has been extremely good at the first thing and almost completely incapable of the second. That&#8217;s changing. A class of architectures called <strong>world models</strong> combined with a series of breakthroughs in how we represent memory, handle uncertainty, and train agents to imagine before they act is quietly converging on something that looks, from a certain angle, uncannily like the structure of mind itself.</p><p>This is a deep dive into that story. We&#8217;ll trace it from first principles through the architecture that conquered Minecraft, the mathematical framework that connects AI to neuroscience, the debate between two AI legends about whether machines should dream in pixels or abstractions, and ultimately to the question of whether the large language models we&#8217;ve become so attached to are actually just one layer of a much grander cognitive stack.</p><p>No prior AI knowledge required. You&#8217;ll need only curiosity and perhaps a willingness to be surprised at how often the best ideas about artificial intelligence turn out to be old ideas about biological intelligence, wearing new clothes.</p><p>&#183; &#183; &#183;</p><h2><strong>What Is a World Model? The AI That Dreams Before It Acts</strong></h2><p>Imagine you are learning to drive. In your early lessons, you react: brake lights ahead, foot goes to the pedal. But as you become an expert driver, something more interesting happens. You start to <em>anticipate</em>. You see a child on a pavement fifty metres ahead and your foot is already hovering over the brake not because you&#8217;ve trained on millions of &#8220;child near pavement&#8221; examples, but because you have an internal model of how the physical world works. You can run a simulation in your head and see the future a few seconds before it arrives.</p><p>World models give AI agents this same capacity.</p><blockquote><p><em>&#8220;Rather than reacting directly to the environment, an AI agent learns an internal &#8216;mental simulation&#8217; of the world, then uses that simulation to plan ahead imagining consequences of actions before taking them.&#8221;</em></p><p><strong>Conceptual foundation of Model-Based Reinforcement Learning</strong></p></blockquote><p>Think of the difference between two chess players. One has memorised thousands of opening positions and plays from pattern recognition alone which is reactive, fast, but shallow. The other closes their eyes between moves and runs the next eight moves like a film, checking outcomes before committing. The second player has a mental world model of chess. Most current AI systems are still the first player.</p><p>The technical term for this family of approaches is <strong>Model-Based Reinforcement Learning (MBRL)</strong>. The key advantage it brings is something researchers call <em>sample efficiency</em> &#8212; the ability to learn from far fewer real-world interactions by practising in imagination instead. Rather than needing millions of costly real rollouts to learn how to manage, say, retail prices across hundreds of products, an agent with a world model can generate thousands of synthetic &#8220;what if&#8221; scenarios from inside its own learned simulation.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!4vN-!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fad4b06a8-fd7d-4ea2-80ed-ed792dd63eb5_1536x1024.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!4vN-!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fad4b06a8-fd7d-4ea2-80ed-ed792dd63eb5_1536x1024.png 424w, https://substackcdn.com/image/fetch/$s_!4vN-!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fad4b06a8-fd7d-4ea2-80ed-ed792dd63eb5_1536x1024.png 848w, https://substackcdn.com/image/fetch/$s_!4vN-!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fad4b06a8-fd7d-4ea2-80ed-ed792dd63eb5_1536x1024.png 1272w, https://substackcdn.com/image/fetch/$s_!4vN-!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fad4b06a8-fd7d-4ea2-80ed-ed792dd63eb5_1536x1024.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!4vN-!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fad4b06a8-fd7d-4ea2-80ed-ed792dd63eb5_1536x1024.png" width="1456" height="971" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/ad4b06a8-fd7d-4ea2-80ed-ed792dd63eb5_1536x1024.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:971,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:343184,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://technektar.substack.com/i/188946951?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fad4b06a8-fd7d-4ea2-80ed-ed792dd63eb5_1536x1024.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!4vN-!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fad4b06a8-fd7d-4ea2-80ed-ed792dd63eb5_1536x1024.png 424w, https://substackcdn.com/image/fetch/$s_!4vN-!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fad4b06a8-fd7d-4ea2-80ed-ed792dd63eb5_1536x1024.png 848w, https://substackcdn.com/image/fetch/$s_!4vN-!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fad4b06a8-fd7d-4ea2-80ed-ed792dd63eb5_1536x1024.png 1272w, https://substackcdn.com/image/fetch/$s_!4vN-!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fad4b06a8-fd7d-4ea2-80ed-ed792dd63eb5_1536x1024.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption"><strong>Model-Free vs. Model-Based RL: The Two Philosophies</strong></figcaption></figure></div><p>The first formal world model in deep learning was introduced by Ha &amp; Schmidhuber in 2018, in a paper simply titled <em>World Models</em>. Their agent learned to race a car by developing an internal &#8220;dream&#8221; of the track so compact and accurate that the agent could be trained entirely inside its own imagination and then deployed into reality. It was a proof of concept. What followed over the next five years would turn that proof of concept into something genuinely general-purpose.</p><p>&#183; &#183; &#183;</p><h2><strong>The RSSM - The Heart That Keeps Two Kinds of Memory</strong></h2><p>Every world model needs an answer to the same fundamental question: how do you compress the messy, high-dimensional real world into something compact enough to dream with? The answer that has proven most powerful is called the <strong>Recurrent State-Space Model</strong>, or RSSM, and it works by keeping two kinds of memory simultaneously.</p><p>Think of it this way. Your own memory works on at least two timescales. Right now, in working memory, you hold a precise snapshot of this sentence, this moment. But you also carry a longer-horizon sense of context  you know what this article is about, you remember the analogy from earlier, you have a running model of where this is going. The RSSM mirrors this with two kinds of internal state.</p><p>The <strong>deterministic hidden state</strong> (called h<sub>t</sub>) is like a diary  a running narrative accumulated across time, updated step by step. It captures long-term patterns and trends. The <strong>stochastic latent</strong> (called z<sub>t</sub>) is like a photograph taken right now a sharp, probabilistic snapshot of the current moment that deliberately captures uncertainty about what&#8217;s actually happening in the world.</p><p>The stochastic part matters enormously. In the real world and especially in environments like financial markets or competitive pricing  the future is genuinely uncertain. Multiple futures are possible from the same present moment. Representing this with a deterministic single-valued state would be a lie. Instead, the RSSM samples <code>z_t</code> from a probability distribution, acknowledging that the world could unfold in multiple ways, and letting the agent plan across all of them.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!oqH-!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F204ceb03-db44-4e28-9b3e-e2516f6300ed_1536x1024.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!oqH-!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F204ceb03-db44-4e28-9b3e-e2516f6300ed_1536x1024.png 424w, https://substackcdn.com/image/fetch/$s_!oqH-!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F204ceb03-db44-4e28-9b3e-e2516f6300ed_1536x1024.png 848w, https://substackcdn.com/image/fetch/$s_!oqH-!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F204ceb03-db44-4e28-9b3e-e2516f6300ed_1536x1024.png 1272w, https://substackcdn.com/image/fetch/$s_!oqH-!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F204ceb03-db44-4e28-9b3e-e2516f6300ed_1536x1024.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!oqH-!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F204ceb03-db44-4e28-9b3e-e2516f6300ed_1536x1024.png" width="1456" height="971" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/204ceb03-db44-4e28-9b3e-e2516f6300ed_1536x1024.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:971,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:1458775,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://technektar.substack.com/i/188946951?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F204ceb03-db44-4e28-9b3e-e2516f6300ed_1536x1024.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!oqH-!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F204ceb03-db44-4e28-9b3e-e2516f6300ed_1536x1024.png 424w, https://substackcdn.com/image/fetch/$s_!oqH-!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F204ceb03-db44-4e28-9b3e-e2516f6300ed_1536x1024.png 848w, https://substackcdn.com/image/fetch/$s_!oqH-!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F204ceb03-db44-4e28-9b3e-e2516f6300ed_1536x1024.png 1272w, https://substackcdn.com/image/fetch/$s_!oqH-!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F204ceb03-db44-4e28-9b3e-e2516f6300ed_1536x1024.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption"><strong>The RSSM&#8217;s Dual Inference Paths</strong></figcaption></figure></div><p>The RSSM also does something clever during training: it runs two parallel inference paths at once. When it has access to real observations, it uses a &#8220;posterior&#8221; path encoding what actually happened to produce an accurate <code>z_t</code>. But simultaneously, it runs a &#8220;prior&#8221; path that tries to predict what should have happened based only on history, without peeking at the real observation. The gap between what was predicted and what actually happened is the learning signal. This is, incidentally, almost exactly how predictive coding models of the human brain work but we&#8217;ll get to that later.</p><p>&#183; &#183; &#183;</p><h2><strong>DreamerV3 - One Brain, 150 Games, Zero Specialisation</strong></h2><p>In 2023, Danijar Hafner and colleagues at Google DeepMind published a result that should have made considerably more headlines than it did. They built a single AI system  called <strong>DreamerV3</strong> and applied it, with literally no changes to any hyperparameter, to over 150 different tasks. Atari video games. 3D simulated environments. Continuous robotic control. And most famously, collecting diamonds in Minecraft.</p><div class="native-video-embed" data-component-name="VideoPlaceholder" data-attrs="{&quot;mediaUploadId&quot;:&quot;be1b6286-e462-4137-85e6-9136c576d1fb&quot;,&quot;duration&quot;:null}"></div><p>DreamerV3 Learning to Play Minecraft from Scratch</p><p>Collecting diamonds in Minecraft sounds like a trivial benchmark until you realise what a horizon of strategic depth that had previously defeated every specialised agent thrown at it. DreamerV3 cracked it from scratch, with the same hyperparameters it used everywhere else.</p><blockquote><p><em>&#8220;DreamerV3 is notable for using a single fixed set of hyperparameters across 150+ diverse tasks &#8212; from Atari games to 3D environments to collecting diamonds in Minecraft.&#8221;</em><strong>&#8212; Hafner et al., arXiv 2301.04104</strong></p></blockquote><p>How? The architecture consists of three neural networks trained in parallel: the world model itself (the RSSM), an actor that chooses actions, and a critic that evaluates states. But what makes DreamerV3 actually work in practice is a handful of surprisingly elegant engineering tricks. The tricks that handle the thorniest problems in RL without any domain-specific tuning.</p><p>The five key innovations in DreamerV3 address real problems elegantly. The <strong>symlog transform</strong> &#8212; <code>sign(x)&#183;ln(|x|+1)</code>  compresses reward signals that might range from fractions of a penny to millions of dollars into a smooth, learnable scale without any manual normalisation. <strong>Twohot encoding</strong> spreads a scalar target across two adjacent bins in a 255-category softmax, giving the model much richer gradient information than a simple mean-squared error loss. <strong>Percentile return normalisation</strong> divides rewards by the gap between the 5th and 95th percentiles, preventing sparse rewards from being swamped by noise. Together, these tricks make the algorithm genuinely domain-agnostic.</p><p>The training procedure runs in three phases on each batch. In Phase A, the world model is trained on real data from the replay buffer  learning to reconstruct observations, predict transitions, and compress experience into latent states. In Phase B, the actor is trained entirely inside the world model&#8217;s imagination, unrolling 15 hypothetical steps into the future and maximising a discounted return. In Phase C, the critic learns to evaluate those imagined states. No real environment interaction happens during Phases B and C. The agent is dreaming, and getting better at acting by improving the quality of its dreams.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!btx2!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7f2b3fe5-4fc3-4ab4-9e40-02a74b59aadc_1536x1024.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!btx2!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7f2b3fe5-4fc3-4ab4-9e40-02a74b59aadc_1536x1024.png 424w, https://substackcdn.com/image/fetch/$s_!btx2!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7f2b3fe5-4fc3-4ab4-9e40-02a74b59aadc_1536x1024.png 848w, https://substackcdn.com/image/fetch/$s_!btx2!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7f2b3fe5-4fc3-4ab4-9e40-02a74b59aadc_1536x1024.png 1272w, https://substackcdn.com/image/fetch/$s_!btx2!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7f2b3fe5-4fc3-4ab4-9e40-02a74b59aadc_1536x1024.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!btx2!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7f2b3fe5-4fc3-4ab4-9e40-02a74b59aadc_1536x1024.png" width="1456" height="971" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/7f2b3fe5-4fc3-4ab4-9e40-02a74b59aadc_1536x1024.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:971,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:2287398,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://technektar.substack.com/i/188946951?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7f2b3fe5-4fc3-4ab4-9e40-02a74b59aadc_1536x1024.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!btx2!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7f2b3fe5-4fc3-4ab4-9e40-02a74b59aadc_1536x1024.png 424w, https://substackcdn.com/image/fetch/$s_!btx2!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7f2b3fe5-4fc3-4ab4-9e40-02a74b59aadc_1536x1024.png 848w, https://substackcdn.com/image/fetch/$s_!btx2!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7f2b3fe5-4fc3-4ab4-9e40-02a74b59aadc_1536x1024.png 1272w, https://substackcdn.com/image/fetch/$s_!btx2!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7f2b3fe5-4fc3-4ab4-9e40-02a74b59aadc_1536x1024.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption"><strong>The Three-Phase DreamerV3 Training Loop</strong></figcaption></figure></div><p>&#183; &#183; &#183;</p><h2><strong>Mamba - The Memory That Scales</strong></h2><p>There is a hidden bottleneck inside every RSSM. The deterministic hidden state <code>h_t</code> is traditionally updated using a <strong>Gated Recurrent Unit</strong> (GRU), a type of recurrent neural network that processes sequences one step at a time, passing information forward like a baton in a relay race. This is fine for short sequences and small-scale experiments. But for complex, long-horizon environments, hundreds of time steps, dozens of interacting entities, the GRU becomes a serious constraint.</p><p>This is where <strong>Mamba</strong> enters the picture, and understanding why it matters requires a brief detour into the mathematics of memory.</p><p>Classical sequence models, including GRUs and LSTMs, belong to a family called <em>State Space Models</em> (SSMs). They maintain a hidden state vector that is updated at each step using three matrices: one for transitioning the state, one for incorporating the input, and one for generating the output. The fundamental problem with classic SSMs is that these matrices are fixed the same transformation applies regardless of what the input actually is. The model can&#8217;t adaptively forget irrelevant information or hyper-focus on something surprising.</p><p>Imagine reading a long novel with a fixed reading strategy, you give every sentence exactly the same amount of attention, regardless of whether it&#8217;s a tedious description of furniture or the revelation of the murderer&#8217;s identity. A fixed SSM reads like that. Mamba, by contrast, is a reader who has learned to skim the boring parts and slow down when something important happens.</p><p>Mamba&#8217;s key innovation introduced by Albert Gu and Tri Dao in 2023  is making the SSM&#8217;s parameters <em>input-dependent</em>, or <strong>selective</strong>. At each timestep, the model dynamically determines how much of its current hidden state to preserve, how much to forget, and how much emphasis to place on the new input. This is mathematically similar to LSTM gating, but crucially, Mamba can apply this selective mechanism over sequences orders of magnitude longer, with far better computational efficiency.</p><p><strong>Mamba-2</strong>, the version used in the most advanced world model architectures, adds something called <em>State Space Duality</em>  a proof that the selective SSM computation can be rewritten as a structured matrix multiplication. This means the model can process entire sequences in parallel during training (like a Transformer) but still run as a fast step-by-step recurrence during inference and imagination rollouts. It gets the best of both worlds: fast to train, fast to dream.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!Jvle!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6e81de5e-bfad-43cf-a7c7-52bf4c546eec_1536x1024.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!Jvle!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6e81de5e-bfad-43cf-a7c7-52bf4c546eec_1536x1024.png 424w, https://substackcdn.com/image/fetch/$s_!Jvle!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6e81de5e-bfad-43cf-a7c7-52bf4c546eec_1536x1024.png 848w, https://substackcdn.com/image/fetch/$s_!Jvle!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6e81de5e-bfad-43cf-a7c7-52bf4c546eec_1536x1024.png 1272w, https://substackcdn.com/image/fetch/$s_!Jvle!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6e81de5e-bfad-43cf-a7c7-52bf4c546eec_1536x1024.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!Jvle!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6e81de5e-bfad-43cf-a7c7-52bf4c546eec_1536x1024.png" width="1456" height="971" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/6e81de5e-bfad-43cf-a7c7-52bf4c546eec_1536x1024.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:971,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:1372292,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://technektar.substack.com/i/188946951?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6e81de5e-bfad-43cf-a7c7-52bf4c546eec_1536x1024.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!Jvle!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6e81de5e-bfad-43cf-a7c7-52bf4c546eec_1536x1024.png 424w, https://substackcdn.com/image/fetch/$s_!Jvle!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6e81de5e-bfad-43cf-a7c7-52bf4c546eec_1536x1024.png 848w, https://substackcdn.com/image/fetch/$s_!Jvle!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6e81de5e-bfad-43cf-a7c7-52bf4c546eec_1536x1024.png 1272w, https://substackcdn.com/image/fetch/$s_!Jvle!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6e81de5e-bfad-43cf-a7c7-52bf4c546eec_1536x1024.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption"><strong>From GRU to Mamba-2: The Memory Evolution</strong></figcaption></figure></div><p>&#183; &#183; &#183;</p><h2><strong>DRAMA - When the Brain Learns to Run in Parallel</strong></h2><p>In 2024, researchers at ICLR published a paper called <strong>DRAMA</strong>, the first world model architecture to replace the GRU with Mamba-2 inside the RSSM. The result is more than a performance upgrade. It reveals a subtle but important insight about how world models can be redesigned to take advantage of modern hardware.</p><p>The standard DreamerV3 RSSM has a dependency that seems innocuous but creates a fundamental bottleneck: the posterior encoder  the part that encodes &#8220;what actually happened&#8221; at each step depends on the deterministic hidden state <code>h_t</code>, which must be computed sequentially. This means that during training, you cannot parallelise across the time dimension. You must process the sequence one step at a time. For long sequences, this is painfully slow.</p><p>DRAMA&#8217;s solution is elegant: <em>decouple the posterior from the deterministic state</em>. The posterior encoder is redesigned to depend only on the current observation, not on the hidden state. The latent <code>z_t</code> is computed from what happened right now, not from what happened right now <em>given all of history</em>. This seemingly small change unlocks full parallel training across the entire sequence.</p><blockquote><p><em>&#8220;By removing the dependency of z<sub>t</sub> on h<sub>t</sub> during training, the entire sequence can be processed in one parallel Mamba-2 forward pass instead of step-by-step. This delivers a 2&#8211;9&#215; training speedup.&#8221;</em><strong>&#8212; Wang et al., DRAMA: Mamba-Enabled Model-Based World Models, ICLR 2025</strong></p></blockquote><p>The analogy here is a historian who normally reads every diary entry <em>in sequence</em> before summarising the month, versus one who hands each entry to a different researcher (processed in parallel), then brings all the summaries together at the end. The parallel approach is dramatically faster and, with the right architecture, produces the same quality result.</p><p>The 2&#8211;9&#215; speedup matters enormously for a solo researcher or a small lab. The difference between a hyperparameter sweep that takes a week and one that takes a day is the difference between doing and not doing the ablation study that would have caught a critical mistake. This is not merely a performance footnote &#8212; it changes what research is feasible.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!tsOc!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb0499ffe-9d75-4761-a167-f7c23756d2df_1536x1024.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!tsOc!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb0499ffe-9d75-4761-a167-f7c23756d2df_1536x1024.png 424w, https://substackcdn.com/image/fetch/$s_!tsOc!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb0499ffe-9d75-4761-a167-f7c23756d2df_1536x1024.png 848w, https://substackcdn.com/image/fetch/$s_!tsOc!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb0499ffe-9d75-4761-a167-f7c23756d2df_1536x1024.png 1272w, https://substackcdn.com/image/fetch/$s_!tsOc!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb0499ffe-9d75-4761-a167-f7c23756d2df_1536x1024.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!tsOc!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb0499ffe-9d75-4761-a167-f7c23756d2df_1536x1024.png" width="1456" height="971" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/b0499ffe-9d75-4761-a167-f7c23756d2df_1536x1024.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:971,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:1797462,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://technektar.substack.com/i/188946951?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb0499ffe-9d75-4761-a167-f7c23756d2df_1536x1024.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!tsOc!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb0499ffe-9d75-4761-a167-f7c23756d2df_1536x1024.png 424w, https://substackcdn.com/image/fetch/$s_!tsOc!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb0499ffe-9d75-4761-a167-f7c23756d2df_1536x1024.png 848w, https://substackcdn.com/image/fetch/$s_!tsOc!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb0499ffe-9d75-4761-a167-f7c23756d2df_1536x1024.png 1272w, https://substackcdn.com/image/fetch/$s_!tsOc!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb0499ffe-9d75-4761-a167-f7c23756d2df_1536x1024.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption"><strong>Standard RSSM vs. DRAMA: The Parallelisation Breakthrough</strong></figcaption></figure></div><p>&#183; &#183; &#183;</p><h2><strong>The Free Energy Connection - Karl Friston Saw This Coming</strong></h2><p>Here is something that will feel surprising at first and then obvious in retrospect: the mathematics inside DreamerV3&#8217;s training loop are not a novel invention of machine learning. They are the same mathematics that neuroscientist Karl Friston derived in the early 2000s to describe how biological brains work.</p><p>Friston&#8217;s <strong>Free Energy Principle</strong> proposes that every self-organising biological system , including the human brain, resists disorder by minimising something called <em>variational free energy</em>. In simple terms: the brain constantly tries to reduce the gap between what it predicts will happen and what actually happens. Friston formalised this as a bound on &#8220;surprise&#8221;, negative log model evidence, and showed that perception, action, learning, and even attention could all be understood as different ways of minimising this single quantity.</p><blockquote><p><em>&#8220;In the Free Energy Principle, the brain constantly generates predictions and updates its internal model to minimise prediction error &#8212; both by changing what it believes about the world, and by taking actions that make the world match its predictions.&#8221;</em><strong>&#8212; Karl Friston, &#8220;The Free Energy Principle: A Rough Guide to the Brain?&#8221;</strong></p></blockquote><p>What Friston derived for biology and what Hafner engineered for AI are, at the mathematical level, <em>the same equation</em>. The ELBO (Evidence Lower Bound) that DreamerV3 maximises is formally identical to the variational free energy that Friston&#8217;s agents minimise. The prediction loss minimises reconstruction surprise; the KL term balances prior and posterior. Same objective, different labels.</p><p>The structural correspondences run remarkably deep. In Friston&#8217;s framework, the brain maintains a &#8220;generative model&#8221; which is a probabilistic model of how observations are caused by hidden states of the world. This maps directly onto DreamerV3&#8217;s world model. The brain&#8217;s &#8220;recognition model&#8221; which is the process of inferring hidden causes from observed effects maps directly onto the RSSM&#8217;s posterior encoder. Even the nuanced asymmetry in DreamerV3&#8217;s KL balancing (where the dynamic loss is weighted 5&#215; heavier than the representation loss) has a direct Fristonian interpretation: it corresponds to the brain weighting sensory evidence more heavily than prior beliefs when something surprising happens.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!pWr4!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5d3824ca-f0df-4278-a14d-b882fd077b71_1536x879.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!pWr4!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5d3824ca-f0df-4278-a14d-b882fd077b71_1536x879.png 424w, https://substackcdn.com/image/fetch/$s_!pWr4!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5d3824ca-f0df-4278-a14d-b882fd077b71_1536x879.png 848w, https://substackcdn.com/image/fetch/$s_!pWr4!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5d3824ca-f0df-4278-a14d-b882fd077b71_1536x879.png 1272w, https://substackcdn.com/image/fetch/$s_!pWr4!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5d3824ca-f0df-4278-a14d-b882fd077b71_1536x879.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!pWr4!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5d3824ca-f0df-4278-a14d-b882fd077b71_1536x879.png" width="1536" height="879" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/5d3824ca-f0df-4278-a14d-b882fd077b71_1536x879.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:879,&quot;width&quot;:1536,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:2192342,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://technektar.substack.com/i/188946951?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F328aeea2-8303-4d3b-8a12-667c3c6c8af8_1536x1024.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!pWr4!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5d3824ca-f0df-4278-a14d-b882fd077b71_1536x879.png 424w, https://substackcdn.com/image/fetch/$s_!pWr4!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5d3824ca-f0df-4278-a14d-b882fd077b71_1536x879.png 848w, https://substackcdn.com/image/fetch/$s_!pWr4!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5d3824ca-f0df-4278-a14d-b882fd077b71_1536x879.png 1272w, https://substackcdn.com/image/fetch/$s_!pWr4!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5d3824ca-f0df-4278-a14d-b882fd077b71_1536x879.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption"><strong>Neuroscience Meets Machine Learning: The FEP / DreamerV3 Isomorphism</strong></figcaption></figure></div><p>The one genuine difference between the two frameworks is philosophically interesting. DreamerV3 uses an external reward signal handed to it from outside. Active inference agents, the AI implementations of Friston&#8217;s framework, such as VERSES AI&#8217;s AXIOM system, replace reward entirely with something called <strong>prior preferences</strong>: a probability distribution over desired outcomes. The goal is not to maximise a score; it&#8217;s to make the future look like what the model prefers. From this perspective, reward is not fundamental but an emergent consequence of having preferences and taking actions to fulfil them.</p><p>&#183; &#183; &#183;</p><h2><strong>JEPA -  Yann LeCun&#8217;s Bet Against Dreaming in Pixels</strong></h2><p>If Karl Friston represents the neuroscience wing of this story, Yann LeCun (chief AI scientist at Meta and one of the founding figures of modern deep learning), represents a contrarian engineering wing. LeCun agrees with everything we&#8217;ve discussed so far about the importance of latent-space prediction and internal world models. His disagreement is about what, exactly, the world model should predict.</p><p>DreamerV3 and active inference are both <em>generative</em> models, they can synthesise observations, decode latents back to pixels, and hallucinate full sensory experience. LeCun thinks this is a mistake. His framework, called <strong>JEPA</strong> (Joint Embedding Predictive Architecture), argues that the right approach is to build world models that predict entirely in <em>abstract representation space</em>, never decoding back to pixels at all.</p><blockquote><p><em>&#8220;The main motivation is that generative models waste enormous capacity predicting high-entropy, unpredictable noise &#8212; the exact texture of rippling water, the precise positions of flickering leaves. A JEPA encoder can be invariant to that unpredictable junk, retaining only the low-entropy structural features that actually matter for understanding.&#8221;</em><strong>&#8212; Yann LeCun, &#8220;A Path Towards Autonomous Machine Intelligence,&#8221; 2022</strong></p></blockquote><p>The difference between generative and non-generative world models is like the difference between two kinds of navigators. The first one, when planning a route, mentally simulates the entire drive; every lamppost, every crack in the road, every leaf blowing across the windscreen. The second one only simulates the abstract structure: the turns, the distances, the traffic patterns. The second navigator is not less intelligent but are more efficient, because they&#8217;ve learned which details actually matter for the task.</p><p>JEPA&#8217;s variants include I-JEPA for images, V-JEPA for video, and V-JEPA 2-AC for robotics. The last of which is action-conditioned and used for planning, making it structurally identical to the RSSM&#8217;s prior head. The predictor takes the current visual state embedding and an action, and outputs the predicted embedding of the world after that action. This is, in all but name, a world model in latent space.</p><p>But JEPA faces a challenge that generative models avoid almost automatically: <strong>representational collapse</strong>. If the encoder learns to map everything to the same constant vector, the prediction error drops to zero &#8212; but nothing useful has been learned. DreamerV3 sidesteps this because its decoder loss forces the latents to contain enough information to reconstruct real observations. JEPA must use masking strategies, contrastive objectives, or explicit regularisers to prevent collapse, an ongoing area of active research.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!wZLX!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5151d86a-ffa9-46cf-b1d1-c86df5e5db8a_1536x883.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!wZLX!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5151d86a-ffa9-46cf-b1d1-c86df5e5db8a_1536x883.png 424w, https://substackcdn.com/image/fetch/$s_!wZLX!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5151d86a-ffa9-46cf-b1d1-c86df5e5db8a_1536x883.png 848w, https://substackcdn.com/image/fetch/$s_!wZLX!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5151d86a-ffa9-46cf-b1d1-c86df5e5db8a_1536x883.png 1272w, https://substackcdn.com/image/fetch/$s_!wZLX!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5151d86a-ffa9-46cf-b1d1-c86df5e5db8a_1536x883.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!wZLX!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5151d86a-ffa9-46cf-b1d1-c86df5e5db8a_1536x883.png" width="1536" height="883" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/5151d86a-ffa9-46cf-b1d1-c86df5e5db8a_1536x883.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:883,&quot;width&quot;:1536,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:2302131,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://technektar.substack.com/i/188946951?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3436344a-071f-4a77-b13f-8bbc31969b50_1536x1024.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!wZLX!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5151d86a-ffa9-46cf-b1d1-c86df5e5db8a_1536x883.png 424w, https://substackcdn.com/image/fetch/$s_!wZLX!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5151d86a-ffa9-46cf-b1d1-c86df5e5db8a_1536x883.png 848w, https://substackcdn.com/image/fetch/$s_!wZLX!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5151d86a-ffa9-46cf-b1d1-c86df5e5db8a_1536x883.png 1272w, https://substackcdn.com/image/fetch/$s_!wZLX!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5151d86a-ffa9-46cf-b1d1-c86df5e5db8a_1536x883.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption"><strong>Three Approaches to Prediction: Where Each Framework Lives</strong></figcaption></figure></div><p>&#183; &#183; &#183;</p><h2><strong>The Unification - All Roads Lead to One Objective</strong></h2><p>At this point, you might be wondering whether we&#8217;re looking at a fragmented landscape of competing ideas or a unified field with different dialects. The answer, increasingly clearly, is the latter. In 2009, Karl Friston published a paper with the strikingly direct title: <em>&#8220;Reinforcement Learning or Active Inference?&#8221;</em> His answer: they are the same thing.</p><p>The central insight is that maximising cumulative reward, the objective of classical reinforcement learning, is mathematically equivalent to minimising surprise under a generative model whose prior preferences encode the reward function. You don&#8217;t need reward as a primitive. It emerges from inference. And once you see this equivalence, you start to notice that every framework in this article is solving the same problem with different tools.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!ofW9!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Feffbff03-1d57-4fd3-a3d6-9f99d46deba0_1082x554.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!ofW9!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Feffbff03-1d57-4fd3-a3d6-9f99d46deba0_1082x554.png 424w, https://substackcdn.com/image/fetch/$s_!ofW9!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Feffbff03-1d57-4fd3-a3d6-9f99d46deba0_1082x554.png 848w, https://substackcdn.com/image/fetch/$s_!ofW9!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Feffbff03-1d57-4fd3-a3d6-9f99d46deba0_1082x554.png 1272w, https://substackcdn.com/image/fetch/$s_!ofW9!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Feffbff03-1d57-4fd3-a3d6-9f99d46deba0_1082x554.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!ofW9!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Feffbff03-1d57-4fd3-a3d6-9f99d46deba0_1082x554.png" width="1082" height="554" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/effbff03-1d57-4fd3-a3d6-9f99d46deba0_1082x554.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:554,&quot;width&quot;:1082,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:67623,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://technektar.substack.com/i/188946951?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Feffbff03-1d57-4fd3-a3d6-9f99d46deba0_1082x554.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!ofW9!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Feffbff03-1d57-4fd3-a3d6-9f99d46deba0_1082x554.png 424w, https://substackcdn.com/image/fetch/$s_!ofW9!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Feffbff03-1d57-4fd3-a3d6-9f99d46deba0_1082x554.png 848w, https://substackcdn.com/image/fetch/$s_!ofW9!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Feffbff03-1d57-4fd3-a3d6-9f99d46deba0_1082x554.png 1272w, https://substackcdn.com/image/fetch/$s_!ofW9!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Feffbff03-1d57-4fd3-a3d6-9f99d46deba0_1082x554.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>The degrees of freedom between these frameworks reduce to just three design choices. First: <em>where do you compute prediction error?</em> In pixel space (old generative models), in latent space (JEPA, RSSM), or across hierarchical layers (predictive coding)? Second: <em>how do you represent uncertainty?</em> With stochastic latents (DreamerV3), Bayesian posteriors (active inference), deterministic embeddings (JEPA), or ensembles? Third: <em>where does reward come from?</em> As an extrinsic scalar (RL/DreamerV3), encoded in prior preferences (active inference), or emerging from representation quality alone (JEPA)?</p><p>The deepest unification is this: every goal-directed system must solve the same core problem. Given uncertainty about the world, compress history into a belief state, predict consequences of actions, and select actions that bring about preferred outcomes. Whether you call those preferred outcomes &#8220;high reward,&#8221; &#8220;low surprise,&#8221; &#8220;high model evidence,&#8221; or &#8220;accurate latent predictions&#8221; is a modelling choice, not a fundamental difference.</p><p>&#183; &#183; &#183;</p><h2><strong>Vis-&#224;-vis Transformers - The Giants in the Room</strong></h2><p>We cannot finish this story without addressing the most obvious question: if world models are so powerful, why aren&#8217;t they everywhere? Why is GPT-4 dominating the AI landscape while DreamerV3 is known mainly to specialists?</p><p>The answer is that Transformers and world models are solving fundamentally different problems and for the last five years, the problems that Transformers solve have been the ones that matter most commercially.</p><div class="native-video-embed" data-component-name="VideoPlaceholder" data-attrs="{&quot;mediaUploadId&quot;:&quot;670d3ff2-b0a9-46e9-8bd5-a3126621822e&quot;,&quot;duration&quot;:null}"></div><p>LLMs vs World Models</p><p>A Transformer&#8217;s core operation is scaled dot-product attention: a mechanism for finding, among all the tokens in a context window, which ones are most relevant to the current token. Given enough data and parameters, this turns out to be an extraordinarily powerful universal pattern matcher. It learns the statistical regularities of language, images, code, and structured data, and compresses them into a single forward pass. What it cannot do is inherently sequential, causally grounded, or physically simulated.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!cZmO!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F17600c7b-0539-43f7-a554-967f51437d63_1104x761.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!cZmO!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F17600c7b-0539-43f7-a554-967f51437d63_1104x761.png 424w, https://substackcdn.com/image/fetch/$s_!cZmO!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F17600c7b-0539-43f7-a554-967f51437d63_1104x761.png 848w, https://substackcdn.com/image/fetch/$s_!cZmO!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F17600c7b-0539-43f7-a554-967f51437d63_1104x761.png 1272w, https://substackcdn.com/image/fetch/$s_!cZmO!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F17600c7b-0539-43f7-a554-967f51437d63_1104x761.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!cZmO!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F17600c7b-0539-43f7-a554-967f51437d63_1104x761.png" width="1104" height="761" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/17600c7b-0539-43f7-a554-967f51437d63_1104x761.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:761,&quot;width&quot;:1104,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:93091,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://technektar.substack.com/i/188946951?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F17600c7b-0539-43f7-a554-967f51437d63_1104x761.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!cZmO!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F17600c7b-0539-43f7-a554-967f51437d63_1104x761.png 424w, https://substackcdn.com/image/fetch/$s_!cZmO!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F17600c7b-0539-43f7-a554-967f51437d63_1104x761.png 848w, https://substackcdn.com/image/fetch/$s_!cZmO!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F17600c7b-0539-43f7-a554-967f51437d63_1104x761.png 1272w, https://substackcdn.com/image/fetch/$s_!cZmO!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F17600c7b-0539-43f7-a554-967f51437d63_1104x761.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><blockquote><p><em>&#8220;LLMs have word models. Embodied agents need world models.&#8221;</em><strong>&#8212; A pithy formulation circulating in the RL research community</strong></p></blockquote><p>Recent research has made the Transformer&#8217;s structural weakness on sequential tasks quite precise. A paper from 2024 showed that Transformers trained on sequences of length N collapse to near-random performance on state-tracking tasks at length 2N, they cannot perform the discrete recursive updates that a recurrent state naturally handles. They don&#8217;t have a compressed, updateable belief state. They diffuse attention across all tokens equally as context grows.</p><p>But the most important thing to understand about the Transformer/world-model divide is that it is dissolving. The field is converging rapidly toward hybrid architectures. IRIS, a 2022 paper from EPFL, replaces the RSSM with a GPT-style Transformer as the sequence model and achieves state-of-the-art sample efficiency with 100K environment interactions. Google DeepMind&#8217;s Genie 2 uses a Transformer-based world model for interactive video generation. Conversely, LLMs fine-tuned with RL (RLHF, GRPO) are being pushed toward internalising environmental dynamics through multi-turn interaction.</p><p>The emerging architecture of intelligence looks increasingly like a three-layer stack. At the top: a large language model for semantic reasoning, instruction parsing, and knowledge retrieval &#8212; the strategic advisor. In the middle: a world model (RSSM/Mamba-based) for physical simulation, causal dynamics, and long-horizon planning &#8212; the experienced simulator. At the bottom: a reinforcement learning policy for real-time action selection &#8212; the motor cortex. This maps almost exactly onto the hierarchical structure that active inference posits for the human brain.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!ZhZP!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1ee9491a-4efb-4f6a-8d55-6cafb6d34dba_1536x1024.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!ZhZP!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1ee9491a-4efb-4f6a-8d55-6cafb6d34dba_1536x1024.png 424w, https://substackcdn.com/image/fetch/$s_!ZhZP!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1ee9491a-4efb-4f6a-8d55-6cafb6d34dba_1536x1024.png 848w, https://substackcdn.com/image/fetch/$s_!ZhZP!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1ee9491a-4efb-4f6a-8d55-6cafb6d34dba_1536x1024.png 1272w, https://substackcdn.com/image/fetch/$s_!ZhZP!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1ee9491a-4efb-4f6a-8d55-6cafb6d34dba_1536x1024.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!ZhZP!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1ee9491a-4efb-4f6a-8d55-6cafb6d34dba_1536x1024.png" width="1456" height="971" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/1ee9491a-4efb-4f6a-8d55-6cafb6d34dba_1536x1024.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:971,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:2559216,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://technektar.substack.com/i/188946951?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1ee9491a-4efb-4f6a-8d55-6cafb6d34dba_1536x1024.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!ZhZP!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1ee9491a-4efb-4f6a-8d55-6cafb6d34dba_1536x1024.png 424w, https://substackcdn.com/image/fetch/$s_!ZhZP!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1ee9491a-4efb-4f6a-8d55-6cafb6d34dba_1536x1024.png 848w, https://substackcdn.com/image/fetch/$s_!ZhZP!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1ee9491a-4efb-4f6a-8d55-6cafb6d34dba_1536x1024.png 1272w, https://substackcdn.com/image/fetch/$s_!ZhZP!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1ee9491a-4efb-4f6a-8d55-6cafb6d34dba_1536x1024.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption"><strong>The Three-Layer Architecture of Next-Generation AI</strong></figcaption></figure></div><p>&#183; &#183; &#183;</p><h2><strong>The Emerging Architecture of Intelligence</strong></h2><p>We have covered a lot of ground. From the basic intuition of a world model as a mental simulator, through the elegant RSSM architecture with its two kinds of memory, through DreamerV3&#8217;s triumph of generalisation and DRAMA&#8217;s parallelisation breakthrough, through the discovery that neuroscience and machine learning have been describing the same mathematics from different directions, through LeCun&#8217;s provocative challenge to the generative consensus, and finally to the realisation that reinforcement learning, active inference, JEPA, and predictive coding are all dialects of a single language.</p><p>The picture that emerges is not a chaotic landscape of competing ideas. It is a convergence. The field is settling, through independent derivations from neuroscience, from control theory, from information theory, and from empirical machine learning, on a set of core principles: compress history into a belief state; predict consequences of actions in abstract latent space; represent uncertainty explicitly; act so as to make the future match your preferences.</p><p>The large language models that currently dominate our experience of AI are extraordinary, but they are missing the middle layer of this stack,  the world model that grounds semantic knowledge in causal dynamics. The next generation of AI systems will not replace Transformers; they will build a dynamics layer beneath them and a policy layer below that. The architecture is becoming visible.</p><p>Karl Friston observed that every living system, from a single bacterium to a human brain, is essentially doing the same thing: building a model of its environment and acting to keep that model&#8217;s predictions accurate. If that&#8217;s right, then building artificial intelligence is not about building a new kind of mind, it&#8217;s about recreating, in silicon, the architecture that evolution already discovered.</p><p><em>Which raises the question that might keep you thinking tonight: if the architecture of intelligence is converging, and if that architecture turns out to be the same one that the human brain already runs , what exactly is the thing that will emerge when we finally get the engineering right?</em></p><p><strong>Key papers referenced:</strong> </p><ul><li><p>Ha &amp; Schmidhuber, &#8220;World Models&#8221; (2018) </p></li><li><p>Hafner et al., &#8220;DreamerV3&#8221; (arXiv 2301.04104) </p></li><li><p>Wang et al., &#8220;DRAMA&#8221; (ICLR 2025, arXiv 2410.08893) </p></li><li><p>Gu &amp; Dao, &#8220;Mamba&#8221; (2023) </p></li><li><p>Friston, &#8220;The Free Energy Principle&#8221; (2009) </p></li><li><p>LeCun, &#8220;A Path Towards Autonomous Machine Intelligence&#8221; (2022) </p></li><li><p>Micheli et al., &#8220;IRIS: Transformers are Sample-Efficient World Models&#8221; (2022, arXiv 2209.00588)</p></li></ul><p><strong>Keywords:</strong></p><p><em>World Models, Reinforcement Learning, DreamerV3, Mamba, Active Inference/Free Energy Principle, JEPA,  RSSM, AI Architecture</em></p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://technektar.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div>]]></content:encoded></item><item><title><![CDATA[Teaching an AI to Run a Power Plant: Inside sCO2RL]]></title><description><![CDATA[How deep reinforcement learning learned to outperform industrial control by 39% &#8212; and the five bugs that nearly stopped it from happening]]></description><link>https://technektar.substack.com/p/teaching-an-ai-to-run-a-power-plant</link><guid isPermaLink="false">https://technektar.substack.com/p/teaching-an-ai-to-run-a-power-plant</guid><dc:creator><![CDATA[TechNektar]]></dc:creator><pubDate>Sat, 21 Feb 2026 19:34:49 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!86Qo!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F784b1498-fe05-41ec-882f-a9064ea9dd59_887x862.jpeg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<div><hr></div><blockquote><p>&#127911; <strong>AUDIO VERSION</strong> <em>Prefer to listen? A 12-minute audio walkthrough of this article is embedded below. It covers the key ideas, results, and engineering lessons without needing to read a single equation.</em></p><div class="native-audio-embed" data-component-name="AudioPlaceholder" data-attrs="{&quot;label&quot;:null,&quot;mediaUploadId&quot;:&quot;12f63c17-bff3-474e-8a20-050b70e51c81&quot;,&quot;duration&quot;:365.11346,&quot;downloadable&quot;:true,&quot;isEditorNode&quot;:true}"></div></blockquote><div><hr></div><h2>The Problem Nobody Talks About</h2><p>Steel makes civilisation. The beams in your building, the car you drive, the ships carrying cargo across oceans &#8212; all forged in furnaces burning at temperatures most materials can&#8217;t survive.</p><p>What happens to the heat that doesn&#8217;t go into the steel?</p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://technektar.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div><p>It vents to the atmosphere. At temperatures between <strong>200&#176;C and 1,200&#176;C</strong>, electric arc furnaces and basic oxygen furnaces exhaust enormous plumes of thermal energy in irregular bursts &#8212; cycling every 1 to 15 minutes. The steel industry produces roughly <strong>7&#8211;8% of global CO&#8322; emissions</strong>, and a significant fraction of that could theoretically be offset if we could efficiently harvest this waste heat and convert it to electricity.</p><p>The engineering challenge is that these heat bursts are unpredictable, intermittent, and violently transient. A conventional steam turbine takes too long to respond. You need a compact, fast, nonlinear system &#8212; and you need a controller clever enough to handle thermodynamics that become genuinely bizarre near a very specific physical boundary.</p><p>That boundary is the CO&#8322; critical point. And it&#8217;s where this project starts getting interesting.</p><div><hr></div><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!86Qo!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F784b1498-fe05-41ec-882f-a9064ea9dd59_887x862.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!86Qo!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F784b1498-fe05-41ec-882f-a9064ea9dd59_887x862.jpeg 424w, https://substackcdn.com/image/fetch/$s_!86Qo!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F784b1498-fe05-41ec-882f-a9064ea9dd59_887x862.jpeg 848w, https://substackcdn.com/image/fetch/$s_!86Qo!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F784b1498-fe05-41ec-882f-a9064ea9dd59_887x862.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!86Qo!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F784b1498-fe05-41ec-882f-a9064ea9dd59_887x862.jpeg 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!86Qo!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F784b1498-fe05-41ec-882f-a9064ea9dd59_887x862.jpeg" width="728" height="707.4813979706877" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/784b1498-fe05-41ec-882f-a9064ea9dd59_887x862.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:false,&quot;imageSize&quot;:&quot;normal&quot;,&quot;height&quot;:862,&quot;width&quot;:887,&quot;resizeWidth&quot;:728,&quot;bytes&quot;:243843,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/jpeg&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://technektar.substack.com/i/188704150?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fef2f435b-c4f2-493c-b027-a3f4ab73a0e5_900x1350.jpeg&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:&quot;center&quot;,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!86Qo!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F784b1498-fe05-41ec-882f-a9064ea9dd59_887x862.jpeg 424w, https://substackcdn.com/image/fetch/$s_!86Qo!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F784b1498-fe05-41ec-882f-a9064ea9dd59_887x862.jpeg 848w, https://substackcdn.com/image/fetch/$s_!86Qo!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F784b1498-fe05-41ec-882f-a9064ea9dd59_887x862.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!86Qo!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F784b1498-fe05-41ec-882f-a9064ea9dd59_887x862.jpeg 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><div><hr></div><h2>The Criticality of Operation</h2><p>Supercritical CO&#8322; (sCO&#8322;) Brayton cycles are an elegant solution to the waste-heat problem. Above CO&#8322;&#8217;s critical point &#8212; <strong>31.1&#176;C and 7.38 MPa</strong> &#8212; the fluid exists in a state that&#8217;s neither liquid nor gas, with thermodynamic properties that enable efficiencies of 27&#8211;40% at turbomachinery scales roughly <strong>100&#215; more compact</strong> than equivalent steam plant. That compactness matters enormously for cost at industrial waste-heat scales.</p><p>But operating near the critical point is where physics starts playing tricks.</p><p>Imagine a property called specific heat &#8212; essentially, how much energy a fluid absorbs per degree of temperature change. For CO&#8322; near 35&#176;C and 80 bar, specific heat peaks at roughly <strong>29.6 kJ/kg&#183;K</strong>, which is more than ten times its ideal-gas value. The fluid becomes extraordinarily sensitive to temperature perturbations in a way that is deeply asymmetric:</p><ul><li><p>A <strong>1.5&#176;C drop</strong> in compressor inlet temperature demands <strong>6% more cooling power</strong></p></li><li><p>The same <strong>1.5&#176;C rise</strong> requires only <strong>18% less</strong></p></li></ul><p>This asymmetry defeats fixed-gain PID control. A PID controller tuned for the downward response will overreact to the upward one, and vice versa. During furnace transients &#8212; when the heat source is swinging by hundreds of degrees in minutes &#8212; a conventional controller simply cannot keep up.</p><p>There&#8217;s also a hard physical constraint that makes this safety-critical rather than just suboptimal: the compressor inlet temperature must <strong>never drop below the CO&#8322; critical temperature</strong> (31.1&#176;C). If it does, the fluid enters the two-phase region, the compressor cavitates, and you&#8217;ve destroyed expensive turbomachinery. This isn&#8217;t a soft performance target &#8212; it&#8217;s a hard line.</p><div><hr></div><blockquote><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!xCLA!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Feb908c5d-125f-456f-b805-72d621cf3fe5_429x280.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!xCLA!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Feb908c5d-125f-456f-b805-72d621cf3fe5_429x280.png 424w, https://substackcdn.com/image/fetch/$s_!xCLA!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Feb908c5d-125f-456f-b805-72d621cf3fe5_429x280.png 848w, https://substackcdn.com/image/fetch/$s_!xCLA!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Feb908c5d-125f-456f-b805-72d621cf3fe5_429x280.png 1272w, https://substackcdn.com/image/fetch/$s_!xCLA!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Feb908c5d-125f-456f-b805-72d621cf3fe5_429x280.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!xCLA!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Feb908c5d-125f-456f-b805-72d621cf3fe5_429x280.png" width="429" height="280" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/eb908c5d-125f-456f-b805-72d621cf3fe5_429x280.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:280,&quot;width&quot;:429,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:8031,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://technektar.substack.com/i/188704150?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Feb908c5d-125f-456f-b805-72d621cf3fe5_429x280.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!xCLA!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Feb908c5d-125f-456f-b805-72d621cf3fe5_429x280.png 424w, https://substackcdn.com/image/fetch/$s_!xCLA!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Feb908c5d-125f-456f-b805-72d621cf3fe5_429x280.png 848w, https://substackcdn.com/image/fetch/$s_!xCLA!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Feb908c5d-125f-456f-b805-72d621cf3fe5_429x280.png 1272w, https://substackcdn.com/image/fetch/$s_!xCLA!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Feb908c5d-125f-456f-b805-72d621cf3fe5_429x280.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div></blockquote><div><hr></div><h2>The Digital Twin: Your Training Ground</h2><p>You can&#8217;t train a reinforcement learning agent directly on a real power plant. You&#8217;d destroy it in the first exploration phase.</p><p>The solution is a <strong>physics-faithful digital twin</strong> &#8212; a simulation accurate enough that a policy trained inside it will actually work in the real world. For this project, the cycle was modelled in <strong>OpenModelica</strong> using the ThermoPower and ExternalMedia libraries, with CO&#8322; thermodynamic properties from <strong>CoolProp&#8217;s Span&#8211;Wagner equation of state</strong> (the industry reference for CO&#8322; near the critical point).</p><p>The model was exported as an <strong>FMI 2.0 Co-Simulation FMU</strong> &#8212; a Functional Mock-up Unit. Think of an FMU as a black box that takes control inputs, steps forward in time using an embedded stiff ODE solver (CVODE in this case), and returns system states. The RL environment wraps this FMU via <strong>FMPy</strong> and exposes it as a standard Gymnasium interface.</p><p>The cycle exposes four actuator channels to the RL agent:</p><ul><li><p><strong>Bypass valve opening</strong> &#8212; controls how much flow bypasses the turbine</p></li><li><p><strong>Inlet guide vane (IGV) angle</strong> &#8212; regulates compressor inlet flow</p></li><li><p><strong>Inventory valve position</strong> &#8212; controls system-wide mass inventory (and thus pressure)</p></li><li><p><strong>Cooling flow fraction</strong> &#8212; manages the precooler</p></li></ul><p>And the agent observes 14 thermodynamic state variables: temperatures at key cycle points, high- and low-side pressures, mass flow rates, power outputs, and cycle efficiency.</p><div><hr></div><blockquote><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!uYDW!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8849efc0-70b3-44da-8c39-37cffeda82e8_524x255.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!uYDW!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8849efc0-70b3-44da-8c39-37cffeda82e8_524x255.png 424w, https://substackcdn.com/image/fetch/$s_!uYDW!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8849efc0-70b3-44da-8c39-37cffeda82e8_524x255.png 848w, https://substackcdn.com/image/fetch/$s_!uYDW!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8849efc0-70b3-44da-8c39-37cffeda82e8_524x255.png 1272w, https://substackcdn.com/image/fetch/$s_!uYDW!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8849efc0-70b3-44da-8c39-37cffeda82e8_524x255.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!uYDW!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8849efc0-70b3-44da-8c39-37cffeda82e8_524x255.png" width="524" height="255" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/8849efc0-70b3-44da-8c39-37cffeda82e8_524x255.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:255,&quot;width&quot;:524,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:32762,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://technektar.substack.com/i/188704150?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8849efc0-70b3-44da-8c39-37cffeda82e8_524x255.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!uYDW!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8849efc0-70b3-44da-8c39-37cffeda82e8_524x255.png 424w, https://substackcdn.com/image/fetch/$s_!uYDW!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8849efc0-70b3-44da-8c39-37cffeda82e8_524x255.png 848w, https://substackcdn.com/image/fetch/$s_!uYDW!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8849efc0-70b3-44da-8c39-37cffeda82e8_524x255.png 1272w, https://substackcdn.com/image/fetch/$s_!uYDW!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8849efc0-70b3-44da-8c39-37cffeda82e8_524x255.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div></blockquote><div><hr></div><h2>Seven Levels of Curriculum</h2><p>Rather than throwing the agent directly at the hardest scenario (emergency turbine trip during a furnace transient), the framework uses <strong>structured curriculum learning</strong> &#8212; seven progressively harder phases, each requiring mastery before advancement.</p><p>Phase Scenario Duration What Makes It Hard 0 Steady-state optimisation 10 min Baseline: converge to setpoint 1 &#177;30% gradual load following 30 min Slow ramps, needs smooth tracking 2 &#177;10&#176;C ambient disturbance 60 min Asymmetric nonlinearity kicks in 3 EAF heat-source transients (200&#8211;1,200&#176;C) 90 min Wild swings, coupled dynamics 4 50% rapid load rejection 30 min Fast step, risk of overshoot 5 Cold startup through critical region 60 min Safety constraint most at risk 6 Emergency turbine trip 30 min Full isolation, rapid inventory dump</p><p>Advancement requires a rolling mean episode reward above a phase-specific threshold over 50 episodes, with a constraint violation rate below 10%. This matters: setting the violation threshold to zero (as the initial config did &#8212; more on this in the bugs section) makes learning impossible, since a stochastic policy exploring the boundary regions <em>will</em> occasionally touch the constraint.</p><div><hr></div><h2>The Surrogate Story (Or: R&#178;=1 Isn&#8217;t Always Enough)</h2><p>Training directly on the FMU is slow. The embedded CVODE solver runs at roughly <strong>530 steps per second</strong> on 8 parallel CPU workers. For RL, you ideally want millions of environment interactions. At 530 steps/s, 5 million steps takes about 2.6 hours &#8212; manageable, but brutal for iteration.</p><p>The natural acceleration strategy is a <strong>neural surrogate model</strong> &#8212; train a neural network to approximate the FMU&#8217;s transition dynamics, then train the RL policy on the (much faster) neural surrogate running on GPU.</p><p>Two surrogate architectures were tried, and their comparison is the most instructive part of the whole project.</p><h3>The FNO: Beautiful But Wrong for This Job</h3><p>A <strong>Fourier Neural Operator (FNO)</strong> &#8212; implemented via NVIDIA PhysicsNeMo &#8212; was trained on 76,600 trajectory sequences collected from the FMU via Latin Hypercube Sampling. The FNO maps entire trajectories of (state, action) pairs to predicted next-state trajectories.</p><p>After training on diverse data, it achieved <strong>R&#178;=1</strong> and normalised RMSE of 0.001. Perfect reconstruction. Exactly what you want.</p><p>Except it&#8217;s completely unusable for RL.</p><p>Here&#8217;s why: the FNO applies <strong>global Fourier convolutions over the entire input sequence</strong>. This means it&#8217;s non-causal &#8212; each output timestep implicitly attends to all input timesteps in frequency space, including future ones. The network was trained to predict trajectory outputs from full trajectory inputs. When you query it one step at a time (which is what RL requires), the spectral content of the single-step input is qualitatively different from what the network saw during training. The predictions become unreliable despite the near-perfect trajectory R&#178;.</p><p>This is a subtle but important distinction: <strong>trajectory fidelity &#8800; step-prediction fidelity</strong>. An FNO with causal masking applied to its Fourier layers could fix this &#8212; it&#8217;s on the future work list.</p><h3>The MLP: Architecturally Correct</h3><p>The solution was a <strong>residual MLP step predictor</strong> &#8212; a network that takes a single (state, action) pair and predicts the next state:</p><pre><code><code>class ResidualMLPSurrogate(nn.Module):
    """
    Maps (s_t, a_t) -&gt; s_{t+1} via residual prediction.
    Predicts the *delta* from current state, biasing the network
    toward learning small corrections rather than absolute values.
    This dramatically improves data efficiency and training stability.
    """
    def __init__(self, n_state=14, n_action=4, hidden=512, n_layers=4):
        super().__init__()
        in_dim = n_state + n_action
        
        layers = []
        for i in range(n_layers):
            layers += [
                nn.Linear(in_dim if i == 0 else hidden, hidden),
                nn.SiLU(),  # SiLU (Swish) outperforms ReLU for smooth dynamics
            ]
        self.trunk = nn.Sequential(*layers)
        
        # Orthogonal init with small gain: prevents early saturation
        self.head = nn.Linear(hidden, n_state)
        nn.init.orthogonal_(self.head.weight, gain=0.01)
        
    def forward(self, state, action):
        x = torch.cat([state, action], dim=-1)
        delta = self.head(self.trunk(x))
        return state + delta  # Residual: predict correction, not absolute state
</code></code></pre><p>Trained on <strong>55 million (s, a, s&#8217;) transition tuples</strong> extracted from those 76,600 LHS trajectories, this network achieved a validation loss of <strong>5&#215;10&#8315;&#8310;</strong> &#8212; corresponding to less than 0.007&#176;C mean absolute error on compressor inlet temperature and 0.006 MW on turbine power. Both are well below real sensor noise floors.</p><p>The payoff: with 1,024 GPU-vectorised environments backed by this surrogate, PPO training runs at <strong>250,000 steps per second</strong> &#8212; a 470&#215; speedup over the FMU path. Five million training steps in <strong>23 minutes</strong>.</p><div><hr></div><h2>Making Safety Trainable: Lagrangian Constraints</h2><p>The compressor inlet temperature constraint is safety-critical. The question is how to enforce it during RL training without blocking learning entirely.</p><p>The approach used here is <strong>Lagrangian relaxation</strong> &#8212; each safety constraint gets its own trainable multiplier &#955;&#7522; &#8805; 0, and the training objective becomes:</p><pre><code><code>L(&#952;, &#955;) = J_reward(&#952;) - &#931;&#7522; &#955;&#7522; &#183; J_constraint_cost(&#952;)
</code></code></pre><p>Policy parameters &#952; are updated to maximise L (gradient ascent on reward, gradient descent on violations). Multipliers &#955;&#7522; are updated via <em>dual ascent</em> &#8212; they increase when violations occur, increasing the cost of violating the constraint, and decrease when the constraint is comfortably satisfied.</p><p>The intuition: the multiplier is like a <strong>tunable penalty dial</strong> that the optimiser adjusts automatically based on how often the agent is violating constraints. You don&#8217;t need to hand-tune the constraint penalty weight &#8212; it finds the right level on its own. When the agent routinely satisfies the constraint, the multiplier stays low. When it&#8217;s close to the edge (Phase 5: cold startup), the multiplier rises, shaping the policy away from dangerous regions.</p><p>The primary constraint:</p><pre><code><code># Compressor inlet must stay &#8805; 1&#176;C above CO&#8322; critical point (31.1&#176;C)
c_critical(s) = 32.1 - T_comp_in(s)  # Violation when &gt; 0

# Hard termination if it drops below 31.5&#176;C 
# (prevents FMU solver divergence in two-phase region)
if T_comp_in &lt; 31.5:
    reward = -100
    terminated = True
</code></code></pre><div><hr></div><h2>What Actually Happened</h2><p>The FMU-direct training run executed 5,013,504 PPO steps. Here&#8217;s the honest version of the results.</p><p><strong>The good news:</strong> In Phases 0&#8211;2 (steady-state, gradual load following, ambient disturbance), the RL agent outperforms Ziegler&#8211;Nichols-tuned PID by <strong>+30.3%, +30.4%, and +39.0%</strong> in cumulative episode reward. The Phase 2 gain is the most telling &#8212; the RL agent has implicitly learned the asymmetric near-critical nonlinearity and exploits it predictively. The fixed-gain PID responds reactively.</p><p><strong>The honest news:</strong> In Phases 3&#8211;6 (the hard transient scenarios), RL <em>underperforms</em> PID by 10&#8211;62%.</p><p>The cause is curriculum imbalance. The agent traversed Phases 0&#8211;5 in the first 229,376 steps &#8212; about 4.6% of the total training budget. The remaining 4.8 million steps were spent entirely in Phase 6. This is textbook <strong>catastrophic forgetting</strong>: deep specialisation in one task displaces representational capacity for earlier ones. The Phase 3&#8211;6 policies are essentially undertrained.</p><p>This is not an RL fundamental limitation. It&#8217;s a curriculum engineering problem &#8212; easily fixed by allocating at least 10% of training steps per phase, or using continual learning techniques like Elastic Weight Consolidation.</p><div><hr></div><blockquote><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!ss0j!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9402302b-8a25-4d96-a3ca-6aceecce75ee_2000x1000.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!ss0j!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9402302b-8a25-4d96-a3ca-6aceecce75ee_2000x1000.png 424w, https://substackcdn.com/image/fetch/$s_!ss0j!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9402302b-8a25-4d96-a3ca-6aceecce75ee_2000x1000.png 848w, https://substackcdn.com/image/fetch/$s_!ss0j!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9402302b-8a25-4d96-a3ca-6aceecce75ee_2000x1000.png 1272w, https://substackcdn.com/image/fetch/$s_!ss0j!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9402302b-8a25-4d96-a3ca-6aceecce75ee_2000x1000.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!ss0j!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9402302b-8a25-4d96-a3ca-6aceecce75ee_2000x1000.png" width="1456" height="728" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/9402302b-8a25-4d96-a3ca-6aceecce75ee_2000x1000.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:728,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:165675,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://technektar.substack.com/i/188704150?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9402302b-8a25-4d96-a3ca-6aceecce75ee_2000x1000.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!ss0j!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9402302b-8a25-4d96-a3ca-6aceecce75ee_2000x1000.png 424w, https://substackcdn.com/image/fetch/$s_!ss0j!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9402302b-8a25-4d96-a3ca-6aceecce75ee_2000x1000.png 848w, https://substackcdn.com/image/fetch/$s_!ss0j!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9402302b-8a25-4d96-a3ca-6aceecce75ee_2000x1000.png 1272w, https://substackcdn.com/image/fetch/$s_!ss0j!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9402302b-8a25-4d96-a3ca-6aceecce75ee_2000x1000.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div></blockquote><div><hr></div><blockquote><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!KwhU!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F98c6ee3a-e813-40f0-8dbc-981e3c0194d0_1800x1000.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!KwhU!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F98c6ee3a-e813-40f0-8dbc-981e3c0194d0_1800x1000.png 424w, https://substackcdn.com/image/fetch/$s_!KwhU!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F98c6ee3a-e813-40f0-8dbc-981e3c0194d0_1800x1000.png 848w, https://substackcdn.com/image/fetch/$s_!KwhU!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F98c6ee3a-e813-40f0-8dbc-981e3c0194d0_1800x1000.png 1272w, https://substackcdn.com/image/fetch/$s_!KwhU!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F98c6ee3a-e813-40f0-8dbc-981e3c0194d0_1800x1000.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!KwhU!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F98c6ee3a-e813-40f0-8dbc-981e3c0194d0_1800x1000.png" width="1456" height="809" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/98c6ee3a-e813-40f0-8dbc-981e3c0194d0_1800x1000.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:809,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:73467,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://technektar.substack.com/i/188704150?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F98c6ee3a-e813-40f0-8dbc-981e3c0194d0_1800x1000.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!KwhU!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F98c6ee3a-e813-40f0-8dbc-981e3c0194d0_1800x1000.png 424w, https://substackcdn.com/image/fetch/$s_!KwhU!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F98c6ee3a-e813-40f0-8dbc-981e3c0194d0_1800x1000.png 848w, https://substackcdn.com/image/fetch/$s_!KwhU!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F98c6ee3a-e813-40f0-8dbc-981e3c0194d0_1800x1000.png 1272w, https://substackcdn.com/image/fetch/$s_!KwhU!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F98c6ee3a-e813-40f0-8dbc-981e3c0194d0_1800x1000.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div></blockquote><div><hr></div><p>What <em>never</em> degraded: <strong>zero constraint violations</strong> across all 140 evaluation episodes &#8212; including the undertrained phases. The Lagrangian mechanism maintains the safety floor regardless of policy quality. This decoupling of safety from reward is exactly the property you need for industrial deployment.</p><div><hr></div><h2>The Five Bugs That Nearly Broke Everything</h2><p>This is the section with the most practical value if you&#8217;re building RL on FMU-based environments.</p><p>Five software defects &#8212; none of them algorithmic &#8212; collectively prevented a capable policy from demonstrating its capabilities for millions of training steps. They&#8217;re documented here because they&#8217;ll recur in any Gymnasium-SB3-FMU integration.</p><h3>Bug 1: VecNormalize Forgot Its Own Statistics</h3><p>Stable-Baselines3&#8217;s <code>VecNormalize</code> wrapper maintains running mean and variance across all observations. These statistics are <em>essential</em> &#8212; the policy network&#8217;s inputs are normalised to (s - &#956;)/&#963;. If the statistics are wrong, the network receives garbage inputs.</p><p>The checkpoint code wrote:</p><pre><code><code># The bug: saving a null placeholder instead of actual statistics
vecnorm_stats = {"obs_rms": None}  # placeholder &#8212; never actual stats
</code></code></pre><p>On resume, a fresh <code>VecNormalize</code> initialised with &#956;=0, &#963;=1 was attached to the pre-trained policy. The policy received differently-scaled observations, made poor predictions, and earned rewards of ~6 instead of the expected ~130. Training stalled at Phase 0 for <strong>2.8 million steps</strong> with no obvious error message.</p><p><strong>The fix:</strong></p><pre><code><code># Correct: always save/load VecNormalize alongside policy weights
# On save:
vecnorm.save(checkpoint_dir / "vecnorm_stats.pkl")

# On resume:
vecnorm = VecNormalize.load(checkpoint_dir / "vecnorm_stats.pkl", venv)
model.set_env(vecnorm)
</code></code></pre><p><strong>Lesson:</strong> Treat the VecNormalize statistics file as a first-class artefact alongside policy weights. Write a smoke test that saves, reloads, and verifies that the first post-resume reward is within &#949; of the pre-save reward.</p><div><hr></div><h3>Bug 2: Episode Boundaries Never Aligned With Rollouts</h3><p>SB3&#8217;s <code>CurriculumCallback</code> was recording episode completions in <code>on_rollout_end</code>, which fires once per <code>n_steps=2048</code> environment steps. With episode length 120 steps and 8 parallel environments, ~136 episode terminations occur within each rollout &#8212; but <code>on_rollout_end</code> only inspects the final step. The probability of any environment terminating exactly at step 2048 is ~0.8%.</p><p>Most episode completions were silently discarded. The curriculum advancement mechanism never saw enough episodes to make a decision. <strong>Fix:</strong> move episode recording to <code>on_step</code>.</p><div><hr></div><h3>Bug 3: Unit Scaling Applied Twice</h3><p>The FMU returns power in watts. The <code>FMPyAdapter</code> correctly converts this to megawatts via a 10&#8315;&#8310; factor. But the environment config <em>also</em> contained <code>w_net_unit_scale: 1.0e-6</code>. The reward function ended up seeing power in microwatts, making the tracking reward term ~10&#8315;&#8310; of its intended magnitude &#8212; effectively pure noise.</p><p>The insidious part: the sign and smoothness of the reward were unchanged. Training appeared to make slow progress rather than obviously failing. <strong>Fix:</strong> Set <code>w_net_unit_scale: 1.0</code> and document that the adapter owns unit conversion.</p><div><hr></div><h3>Bug 4: Stale Disturbance Profiles on Phase Transition</h3><p>When the curriculum advanced mid-episode, the disturbance profile dictionary (built once on <code>reset()</code>) wasn&#8217;t rebuilt. Phase 2 tried to read keys like <code>ambient_amplitude</code> that only exist in Phase 2 configs, from a Phase 0 profile. <code>KeyError</code> crashed the worker subprocess silently. <strong>Fix:</strong> rebuild the disturbance profile atomically whenever the curriculum phase changes.</p><div><hr></div><h3>Bug 5: Zero-Violation Advancement Was Impossible</h3><p>The initial config required <code>require_zero_constraint_violations: true</code>. This meant a single temperature boundary touch during stochastic exploration permanently blocked curriculum advancement. Since a PPO policy <em>must</em> probe boundary regions to learn where the constraint lives, zero violations during training is structurally unreachable. <strong>Fix:</strong> Allow up to 10% violations during training; enforce zero violations at deployment via the constraint projection QP.</p><div><hr></div><h2>0.046 ms: From Policy to Plant Edge</h2><p>The final policy is exported via <code>PyTorch &#8594; ONNX &#8594; TensorRT FP16</code>. Measured over 1,000 inference iterations on the NVIDIA DGX Spark GB10:</p><p>Latency Percentile Value p50 0.024 ms p90 0.028 ms p99 <strong>0.046 ms</strong> Throughput ~29,600 queries/s</p><p>The plant-edge SLA is 1 ms. The deployed policy sits <strong>22&#215; under that threshold</strong>, leaving ample headroom for the constraint projection QP that guarantees safety invariants at inference time &#8212; a separate quadratic program that runs on each policy output before it reaches the actuators.</p><div><hr></div><blockquote><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!Bol1!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3879afce-2aab-419e-a5e5-d22e60ef9782_1400x840.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!Bol1!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3879afce-2aab-419e-a5e5-d22e60ef9782_1400x840.png 424w, https://substackcdn.com/image/fetch/$s_!Bol1!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3879afce-2aab-419e-a5e5-d22e60ef9782_1400x840.png 848w, https://substackcdn.com/image/fetch/$s_!Bol1!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3879afce-2aab-419e-a5e5-d22e60ef9782_1400x840.png 1272w, https://substackcdn.com/image/fetch/$s_!Bol1!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3879afce-2aab-419e-a5e5-d22e60ef9782_1400x840.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!Bol1!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3879afce-2aab-419e-a5e5-d22e60ef9782_1400x840.png" width="1400" height="840" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/3879afce-2aab-419e-a5e5-d22e60ef9782_1400x840.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:840,&quot;width&quot;:1400,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:52133,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://technektar.substack.com/i/188704150?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3879afce-2aab-419e-a5e5-d22e60ef9782_1400x840.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!Bol1!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3879afce-2aab-419e-a5e5-d22e60ef9782_1400x840.png 424w, https://substackcdn.com/image/fetch/$s_!Bol1!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3879afce-2aab-419e-a5e5-d22e60ef9782_1400x840.png 848w, https://substackcdn.com/image/fetch/$s_!Bol1!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3879afce-2aab-419e-a5e5-d22e60ef9782_1400x840.png 1272w, https://substackcdn.com/image/fetch/$s_!Bol1!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3879afce-2aab-419e-a5e5-d22e60ef9782_1400x840.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div></blockquote><div><hr></div><h2>What I&#8217;d Do Differently</h2><p><strong>Curriculum allocation first, algorithms second.</strong> The Phase 3&#8211;6 failure isn&#8217;t a PPO problem &#8212; it&#8217;s a curriculum resource allocation problem. Setting a minimum training step budget per phase (10% of total, minimum) before any phase advancement would have produced a much more balanced policy.</p><p><strong>Causal FNO for the surrogate.</strong> The FNO achieved R&#178;=1.000 and was then useless for RL. Adding causal masking to the Fourier layers (masking future-attending frequency components) would let the FNO&#8217;s superior temporal modelling actually contribute to policy training.</p><p><strong>Interleaved replay needs annealing, not a fixed ratio.</strong> The 30% interleaved replay experiment produced catastrophic gradient interference. A cosine-annealed schedule starting at &#8804;5% and warming to 20% over 500K steps would let the policy consolidate Phase 6 skills before aggressive replay gradients destabilise it.</p><p><strong>EWC or progressive networks for long-horizon curriculum.</strong> Once you&#8217;re past Phase 4 or 5, Elastic Weight Consolidation protecting the earlier-phase weights would have preserved performance while allowing Phase 6 specialisation.</p><div><hr></div><h2>Takeaways for Practitioners</h2><p>If you&#8217;re building RL on physics simulation environments, the most portable lessons from this project are:</p><p>The <strong>FMU-RL integration stack</strong> (OpenModelica &#8594; FMPy &#8594; Gymnasium &#8594; SB3) works well but has landmines &#8212; the five bugs above are latent in <em>any</em> project using this stack, not just sCO&#8322; systems.</p><p><strong>Surrogate architecture must match the RL query pattern.</strong> A surrogate that reconstructs trajectories beautifully may be completely wrong for step-by-step prediction. Check whether your surrogate is causal before building your training loop around it.</p><p><strong>Data quality dominates surrogate performance.</strong> The FNO achieved R&#178;=&#8722;77 on a degenerate 75K dataset (only 2,100 unique initial conditions) and R&#178;=1.000 on 76,600 diverse LHS trajectories. Identical architecture, identical hyperparameters. No amount of model complexity compensates for a degenerate training distribution.</p><p><strong>Lagrangian constraints decouple safety from reward.</strong> Zero violations across 310 evaluation episodes, even in severely undertrained phases. The safety layer works regardless of policy quality &#8212; which is what you need for deployment confidence.</p><div><hr></div><h2>Resources</h2><p><strong>Code &amp; Paper</strong></p><ul><li><p>&#128230; GitHub: <a href="https://github.com/SharathSPhD/RLpower">github.com/SharathSPhD/RLpower</a> &#8212; full codebase, pre-trained artefacts, MIT licence</p></li><li><p>&#128196; Full paper: https://zenodo.org/records/18716201</p></li></ul><p><strong>Tools Used</strong></p><ul><li><p>&#128295; <a href="https://openmodelica.org/">OpenModelica</a> &#8212; open-source Modelica simulation environment</p></li><li><p>&#128295; <a href="https://github.com/CATIA-Systems/FMPy">FMPy</a> &#8212; Python FMU loading, zero-C-extension install</p></li><li><p>&#128295; <a href="http://www.coolprop.org/">CoolProp</a> &#8212; open-source thermophysical property library (Span&#8211;Wagner CO&#8322; EOS)</p></li><li><p>&#128295; <a href="https://stable-baselines3.readthedocs.io/">Stable-Baselines3</a> &#8212; PPO implementation</p></li><li><p>&#128295; <a href="https://developer.nvidia.com/physicsnemo">NVIDIA PhysicsNeMo</a> &#8212; FNO implementation</p></li><li><p>&#128295; <a href="https://developer.nvidia.com/tensorrt">TensorRT</a> &#8212; edge inference compilation</p></li></ul><p><strong>Key Papers</strong></p><ul><li><p>Dostal et al. (2004) &#8212; foundational sCO&#8322; cycle thermodynamics [MIT-ANP-TR-100]</p></li><li><p>Li et al. (2021) &#8212; FNO for PDEs [<a href="https://arxiv.org/abs/2010.08895">arXiv:2010.08895</a>]</p></li><li><p>Achiam et al. (2017) &#8212; Constrained Policy Optimisation [<a href="https://proceedings.mlr.press/v70/achiam17a.html">ICML</a>]</p></li><li><p>Schulman et al. (2017) &#8212; PPO [<a href="https://arxiv.org/abs/1707.06347">arXiv:1707.06347</a>]</p></li><li><p>Baek et al. (2025) &#8212; RL for sCO&#8322; load-varying control [Energy, 340]</p></li><li><p>Kirkpatrick et al. (2017) &#8212; Elastic Weight Consolidation [PNAS]</p></li></ul><p><strong>Related Frameworks</strong></p><ul><li><p><a href="https://arxiv.org/abs/1909.08604">ModelicaGym</a> &#8212; RL on Modelica FMUs</p></li><li><p><a href="https://publications.ibpsa.org/conference/paper/?id=bs2021_30380">BOPTEST-Gym</a> &#8212; building HVAC RL benchmark</p></li></ul><div><hr></div><p><strong>About the Author</strong>: <em>Dr. Sharath is a Data Science &amp; AI leader with deep expertise spanning retail analytics, industrial engineering, and aerospace technologies. Specialized in developing cutting-edge AI/ML solutions for commodity pricing and engineering optimization at bp, while leveraging decades of experience in complex systems engineering.<br>Previously led breakthrough innovations in aerospace technology at Indian Space Research Organisation (ISRO), developing advanced inertial navigation systems and satellite actuators. Transitioned this precision engineering mindset to GE Research, where I architected AI solutions for industrial asset optimization and led cross-functional teams in turbomachinery development.<br>PhD researcher and inventor with multiple patents in sustainable energy technologies, particularly focused on supercritical CO2 power systems and waste heat recovery solutions. Proven track record of translating academic research into commercial applications through collaborations with global industry leaders.<br>Currently driving digital transformation initiatives in retail and energy sectors, combining deep technical expertise with business acumen to deliver measurable impact (multi-million-dollar) in pricing optimization and engineering innovation.</em></p><div><hr></div><h3>Appendix: Full Reward Function</h3><pre><code><code>def compute_reward(
    obs: dict,
    action: np.ndarray,
    prev_action: np.ndarray,
    lagrangian_multipliers: dict,
    weights: dict,
) -&gt; tuple[float, dict]:
    """
    Three-term reward: tracking + smoothness - constraint penalties.
    
    All power values in MW (FMPyAdapter handles W -&gt; MW conversion).
    Do NOT apply additional unit scaling here.
    """
    
    # --- Tracking term ---
    # Penalise deviation from net power demand setpoint
    w_net_mw = obs["W_net"]          # Already in MW from FMPyAdapter
    w_demand  = obs["W_demand"]       # MW setpoint from curriculum
    
    r_track = -abs(w_net_mw - w_demand) * weights["w_track"]
    
    # --- Smoothness term ---
    # Penalise rapid actuator movement (prevents actuator wear)
    delta_action = action - prev_action
    r_smooth = -np.dot(delta_action, delta_action) * weights["w_smooth"]
    
    # --- Constraint term (Lagrangian) ---
    # Primary: compressor inlet above CO&#8322; critical point
    T_comp_in = obs["T_comp_in"]
    T_guard   = 31.1 + 1.0  # 1&#176;C margin above critical point
    
    violation_critical = max(0.0, T_guard - T_comp_in)  # &gt; 0 when violated
    r_constraint = -lagrangian_multipliers["critical"] * float(violation_critical &gt; 0)
    
    # Hard termination check (handled separately in step())
    # if T_comp_in &lt; 31.5: reward = -100, terminated = True
    
    r_total = r_track + r_smooth + r_constraint
    
    info = {
        "r_track": r_track,
        "r_smooth": r_smooth,
        "r_constraint": r_constraint,
        "violation_critical": violation_critical,
    }
    
    return r_total, info


def update_lagrangian_multipliers(
    multipliers: dict,
    violations: dict,
    lr_dual: float = 1e-3,
) -&gt; dict:
    """
    Dual ascent update: increase multiplier when violated,
    decrease when constraint is comfortably satisfied.
    Multipliers are clamped to [0, &#955;_max] to prevent unbounded growth.
    """
    updated = {}
    for key in multipliers:
        grad = violations.get(key, 0.0)  # Positive = violation occurred
        new_val = multipliers[key] + lr_dual * grad
        updated[key] = float(np.clip(new_val, 0.0, 100.0))
    return updated
</code></code></pre><div><hr></div><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://technektar.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div>]]></content:encoded></item><item><title><![CDATA[AI for Energy]]></title><description><![CDATA[AI for sCO2 power cycles: in this video we walk through sCO2RL, an open-source deep reinforcement learning framework for autonomous control of supercritical CO2 Brayton cycles recovering steel plant waste heat.]]></description><link>https://technektar.substack.com/p/ai-for-energy-3a0</link><guid isPermaLink="false">https://technektar.substack.com/p/ai-for-energy-3a0</guid><dc:creator><![CDATA[TechNektar]]></dc:creator><pubDate>Sat, 21 Feb 2026 11:47:21 GMT</pubDate><enclosure url="https://api.substack.com/feed/podcast/195475535/846535bc729aa66f8432bbda4194ce91.mp3" length="0" type="audio/mpeg"/><content:encoded><![CDATA[<p>AI for sCO2 power cycles: in this video we walk through sCO2RL, an open-source deep reinforcement learning framework for autonomous control of supercritical CO2 Brayton cycles recovering steel plant waste heat. Using an OpenModelica FMU, a 7-phase Gymnasium curriculum, PPO with Lagrangian safety constraints, and GPU-accelerated surrogates, the controller outperforms a Ziegler&#8211;Nichols PID baseline while maintaining strict safety limits at the compressor inlet. We also cover deployment to TensorRT for sub-millisecond edge inference and share practical engineering lessons from debugging FMU-based RL pipelines, with all code and artefacts released under the MIT licence at https://github.com/SharathSPhD/RLpower. Paper: https://zenodo.org/records/18524794</p>]]></content:encoded></item><item><title><![CDATA[Ancient Epistemology for Modern AI: Navya-Nyaya Foundation for LLMs]]></title><description><![CDATA[&#2350;&#2370;&#2354;&#2366;&#2344;&#2381;&#2340;&#2352;&#2350;&#2381; &#2404; &#2344; &#2309;&#2344;&#2369;&#2325;&#2352;&#2339;&#2350;&#2381;, &#2346;&#2352;&#2367;&#2357;&#2352;&#2381;&#2340;&#2344;&#2350;&#2381; &#2404; TechNektar introduces Pramana to rethink how foundation LLMs are built...Not another Indic LLM fine-tuned on regional languages.]]></description><link>https://technektar.substack.com/p/ancient-epistemology-for-modern-ai-b9c</link><guid isPermaLink="false">https://technektar.substack.com/p/ancient-epistemology-for-modern-ai-b9c</guid><dc:creator><![CDATA[TechNektar]]></dc:creator><pubDate>Fri, 13 Feb 2026 19:09:48 GMT</pubDate><enclosure url="https://api.substack.com/feed/podcast/195475536/56fd080c6374e7b4ea0ed95fca282228.mp3" length="0" type="audio/mpeg"/><content:encoded><![CDATA[<p>&#2350;&#2370;&#2354;&#2366;&#2344;&#2381;&#2340;&#2352;&#2350;&#2381; &#2404; &#2344; &#2309;&#2344;&#2369;&#2325;&#2352;&#2339;&#2350;&#2381;, &#2346;&#2352;&#2367;&#2357;&#2352;&#2381;&#2340;&#2344;&#2350;&#2381; &#2404; TechNektar introduces Pramana to rethink how foundation LLMs are built...Not another Indic LLM fine-tuned on regional languages. We're instilling the METHODOLOGY of valid knowledge (pram&#257;&#7751;a) architecturally. .........&#2350;&#2370;&#2354;&#2366;&#2344;&#2381;&#2340;&#2352;&#2350;&#2381; - A different foundation........... https://open.substack.com/pub/technektar/p/fine-tuning-large-language-models?utm_campaign=post-expanded-share&amp;utm_medium=webhttps://colab.research.google.com/github/TechNektar/pramana/blob/main/notebooks/01_pramana_explorer.ipynb&#128293; **Don't forget to like, subscribe, and hit the notification bell for more tech deep dives!**&#128640; Follow &#8288;@technektar on LinkedIn, Instagram</p>]]></content:encoded></item><item><title><![CDATA[Fine-Tuning Large Language Models for Epistemic Reasoning through Navya-Nyaya]]></title><description><![CDATA[How Navya-Nyaya epistemology is solving the fundamental problem that scaling alone cannot fix]]></description><link>https://technektar.substack.com/p/fine-tuning-large-language-models</link><guid isPermaLink="false">https://technektar.substack.com/p/fine-tuning-large-language-models</guid><dc:creator><![CDATA[TechNektar]]></dc:creator><pubDate>Thu, 12 Feb 2026 18:01:50 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!394Q!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6a958e84-53a7-46f5-8742-82805610044d_2816x1536.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!394Q!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6a958e84-53a7-46f5-8742-82805610044d_2816x1536.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!394Q!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6a958e84-53a7-46f5-8742-82805610044d_2816x1536.png 424w, https://substackcdn.com/image/fetch/$s_!394Q!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6a958e84-53a7-46f5-8742-82805610044d_2816x1536.png 848w, https://substackcdn.com/image/fetch/$s_!394Q!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6a958e84-53a7-46f5-8742-82805610044d_2816x1536.png 1272w, https://substackcdn.com/image/fetch/$s_!394Q!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6a958e84-53a7-46f5-8742-82805610044d_2816x1536.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!394Q!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6a958e84-53a7-46f5-8742-82805610044d_2816x1536.png" width="1456" height="794" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/6a958e84-53a7-46f5-8742-82805610044d_2816x1536.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:794,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:8664776,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:&quot;https://technektar.substack.com/i/187438516?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6a958e84-53a7-46f5-8742-82805610044d_2816x1536.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!394Q!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6a958e84-53a7-46f5-8742-82805610044d_2816x1536.png 424w, https://substackcdn.com/image/fetch/$s_!394Q!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6a958e84-53a7-46f5-8742-82805610044d_2816x1536.png 848w, https://substackcdn.com/image/fetch/$s_!394Q!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6a958e84-53a7-46f5-8742-82805610044d_2816x1536.png 1272w, https://substackcdn.com/image/fetch/$s_!394Q!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6a958e84-53a7-46f5-8742-82805610044d_2816x1536.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>When you ask ChatGPT or Claude to solve a logic puzzle, something remarkable happens. The model seems to think, deliberate, and arrive at conclusions. It can even explain its reasoning step by step. But here&#8217;s the uncomfortable truth: what looks like reasoning might actually be sophisticated pattern recognition in disguise.</p><p>This isn&#8217;t just an academic quibble. It&#8217;s the difference between a medical AI that has seen millions of similar cases versus one that understands why a diagnosis follows from evidence. It&#8217;s the difference between an AI that can pass the bar exam and one that can actually practice law. As AI systems move into high-stakes domains where mistakes carry real consequences, this distinction becomes urgent.</p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://technektar.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div><p>A new research project called <strong>Pramana</strong> is tackling this problem from an unexpected angle: by teaching modern neural networks to follow the structured reasoning methodology developed by Indian logicians over two millennia ago. The results challenge our assumptions about what AI systems can learn, and suggest a path toward genuinely interpretable artificial intelligence.</p><div><hr></div><h2>The Pattern Recognition Trap</h2><p>Large language models excel at a specific kind of intelligence: finding patterns in vast amounts of data and using those patterns to generate plausible outputs. When GPT-4 solves a logic problem, it&#8217;s essentially recognizing that problems with similar structure typically have solutions that follow certain patterns.</p><p>Think of it like the difference between someone who has memorized thousands of chess games versus someone who understands chess principles. The memorizer might play brilliantly against known positions but falter when the board state deviates from their experience. The principled player can reason through novel situations because they understand the underlying logic of the game.</p><p>The ancient Indian philosophical tradition makes this distinction explicit through the concept of consciousness levels described in the Taittiriya Upanishad. There&#8217;s <strong>manomaya</strong> (&#2350;&#2344;&#2379;&#2350;&#2351;), the level of mental processing and pattern recognition, and <strong>vijnanamaya</strong> (&#2357;&#2367;&#2332;&#2381;&#2334;&#2366;&#2344;&#2350;&#2351;), the level of discriminative wisdom and genuine understanding. Current AI systems, no matter how sophisticated, operate almost entirely at the manomaya level. They process, correlate, and generate, but they don&#8217;t actually understand in the deeper sense.</p><p>This limitation manifests in concrete ways. When researchers test language models on logical reasoning tasks, the models often fail in revealing patterns. They might correctly solve a problem when it&#8217;s phrased one way but fail when the same problem is rephrased differently. They struggle to explain where their conclusions come from beyond &#8220;the pattern suggests.&#8221; They can&#8217;t tell you which parts of their reasoning are certain versus probable. Most critically, they can&#8217;t systematically check their own reasoning for errors.</p><div class="native-video-embed" data-component-name="VideoPlaceholder" data-attrs="{&quot;mediaUploadId&quot;:&quot;31c2c8e5-bf31-4772-8639-c8330c3f0ad4&quot;,&quot;duration&quot;:null}"></div><div><hr></div><h2>The Nyaya Solution: Systematic Epistemology</h2><p>Around 500 BCE, the Indian philosopher Maharishi Gautama systematized something remarkable: a complete methodology for acquiring reliable knowledge and eliminating false beliefs. This system, called Nyaya-Darshan (&#2344;&#2381;&#2351;&#2366;&#2351; &#2342;&#2352;&#2381;&#2358;&#2344;), wasn&#8217;t just about logic in the narrow sense. It was an integrated epistemological framework that combined formal reasoning with explicit attention to evidence sources, fallacy detection, and epistemic humility.</p><p>At its core, Nyaya provides a structured pathway through six distinct phases that transform doubt into definitive knowledge. These aren&#8217;t arbitrary steps but a carefully designed progression:</p><p><strong>Samshaya</strong> (&#2360;&#2306;&#2358;&#2351;, Doubt Analysis) begins by classifying what type of uncertainty exists. Is it doubt arising from similar properties in different objects? Contradictory properties in the same object? Conflicting testimony from different authorities? Each type of doubt requires different resolution strategies. This phase alone addresses something most AI systems never do: acknowledging that not all uncertainties are the same.</p><p><strong>Pramana</strong> (&#2346;&#2381;&#2352;&#2350;&#2366;&#2339;, Valid Knowledge Sources) requires explicitly grounding every claim in one of four recognized evidence types. Pratyaksha is direct perception, what can be immediately observed. Anumana is inference based on universal relationships. Upamana is knowledge through comparison with known examples. Shabda is reliable testimony or established principles. By forcing every reasoning step to declare its evidential basis, Pramana creates an audit trail that&#8217;s entirely absent from standard neural network reasoning.</p><p><strong>Pancha Avayava</strong> (&#2346;&#2334;&#2381;&#2330; &#2309;&#2357;&#2351;&#2357;, Five-Member Syllogism) constructs formal arguments through five components. You begin with Pratijna, a clear proposition of what you will prove. Then comes Hetu, the logical justification. Critically, you must provide Udaharana, a universal example that everyone would accept as true regardless of their philosophical position. Upanaya applies this universal principle to the specific case. Finally, Nigamana restates the conclusion as proven.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!xC-V!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb65e418f-eedf-46a9-88ff-e2c15ef96fde_2752x1536.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!xC-V!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb65e418f-eedf-46a9-88ff-e2c15ef96fde_2752x1536.png 424w, https://substackcdn.com/image/fetch/$s_!xC-V!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb65e418f-eedf-46a9-88ff-e2c15ef96fde_2752x1536.png 848w, https://substackcdn.com/image/fetch/$s_!xC-V!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb65e418f-eedf-46a9-88ff-e2c15ef96fde_2752x1536.png 1272w, https://substackcdn.com/image/fetch/$s_!xC-V!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb65e418f-eedf-46a9-88ff-e2c15ef96fde_2752x1536.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!xC-V!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb65e418f-eedf-46a9-88ff-e2c15ef96fde_2752x1536.png" width="1456" height="813" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/b65e418f-eedf-46a9-88ff-e2c15ef96fde_2752x1536.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:813,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:5954735,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://technektar.substack.com/i/187438516?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb65e418f-eedf-46a9-88ff-e2c15ef96fde_2752x1536.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!xC-V!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb65e418f-eedf-46a9-88ff-e2c15ef96fde_2752x1536.png 424w, https://substackcdn.com/image/fetch/$s_!xC-V!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb65e418f-eedf-46a9-88ff-e2c15ef96fde_2752x1536.png 848w, https://substackcdn.com/image/fetch/$s_!xC-V!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb65e418f-eedf-46a9-88ff-e2c15ef96fde_2752x1536.png 1272w, https://substackcdn.com/image/fetch/$s_!xC-V!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb65e418f-eedf-46a9-88ff-e2c15ef96fde_2752x1536.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p><strong>Tarka</strong> (&#2340;&#2352;&#2381;&#2325;, Counterfactual Reasoning) uses reductio ad absurdum. Assume the opposite of your conclusion. Derive what would logically follow. If those consequences lead to absurdity or contradiction, your original conclusion must be true. This is systematic doubt as a verification tool.</p><p><strong>Hetvabhasa</strong> (&#2361;&#2375;&#2340;&#2381;&#2357;&#2366;&#2349;&#2366;&#2360;, Fallacy Detection) provides a taxonomy of reasoning errors. Is your reasoning erratic, applying in some cases but not others? Does it actually contradict what you&#8217;re trying to prove? Is it circular, assuming what it should demonstrate? Is it irrelevant to the question at hand? This phase embeds error-checking directly into the reasoning process.</p><p><strong>Nirnaya</strong> (&#2344;&#2367;&#2352;&#2381;&#2339;&#2351;, Ascertainment) is the final judgment, but with an important requirement: you must distinguish definitive knowledge from working hypotheses that require further verification. This builds in epistemic humility, the ability to say &#8220;I don&#8217;t have sufficient evidence yet&#8221; rather than forcing a confident-sounding answer.</p><p>What makes this system powerful for AI isn&#8217;t just that it provides structure. It&#8217;s that it makes reasoning <em>auditable</em>. Every step declares its evidential basis, makes its logic explicit, checks for errors, and acknowledges uncertainty. These are precisely the capabilities that current AI systems lack.</p><div><hr></div><h2>Teaching Neural Networks Ancient Wisdom</h2><p>The Pramana project, developed by Sharath Sathish at the University of York, makes a bold claim: these Nyaya principles can be taught to neural networks through fine-tuning. Not just prompted to follow them, but actually learned as an internal reasoning scaffold.</p><p>The technical approach is surprisingly straightforward. The researchers created training examples showing how to solve logical problems using the complete six-phase Nyaya methodology. Each example walks through Samshaya analysis, identifies Pramana sources, constructs Pancha Avayava arguments, applies Tarka verification, checks for Hetvabhasa errors, and reaches Nirnaya conclusions.</p><p><em>Example of a Nyaya-structured solution to a simple logic problem</em></p><pre><code><code>## PHASE 1: SAMSHAYA PARIKSHA (Doubt Analysis)

**Type of Doubt**: Samana Dharma Upapatti (Common attributes)
Multiple solutions satisfy individual constraints, but which 
combination satisfies all constraints simultaneously?

## PHASE 2: PRAMANA PRAYOGA (Evidence Sources)

**Pratyaksha** (Direct Observable Facts):
- Given: Five houses in a row, each different color
- Given: The Englishman lives in the red house
- Given: The Spaniard owns a dog
[continues through all given constraints...]

**Anumana** (Inference):
From "Englishman lives in red house" + "Red house is in position 3"
&#8594; Inferred: Englishman lives in house 3

[continues through all six phases systematically...]
</code></code></pre><p>They fine-tuned open-source models (Llama and DeepSeek) using QLoRA, an efficient technique that allows training on consumer hardware. Stage 0 used just 20 examples. Stage 1 expanded to 55 carefully constructed problems spanning different logical reasoning types: constraint satisfaction, Boolean satisfiability, multi-step deduction, transitive reasoning, and set operations.</p><p>The entire training cost was under one dollar. Training time was less than twenty minutes on a single A100 GPU. This accessibility is intentional. The goal isn&#8217;t to create proprietary systems that only well-funded labs can reproduce, but to demonstrate principles that any researcher can experiment with.</p><p>What distinguishes this from previous work on reasoning in language models is the insistence on <em>architectural integration</em> rather than mere prompting. The Nyaya structure isn&#8217;t just guidance given to the model at inference time. It&#8217;s woven into the model&#8217;s learned patterns through supervised fine-tuning. The hypothesis is that this creates different kinds of representations internally, ones that encode epistemic relationships rather than just statistical correlations.</p><div class="native-audio-embed" data-component-name="AudioPlaceholder" data-attrs="{&quot;label&quot;:null,&quot;mediaUploadId&quot;:&quot;d527e512-d08b-41e0-b373-71d898768e9e&quot;,&quot;duration&quot;:646.2433,&quot;downloadable&quot;:true,&quot;isEditorNode&quot;:true}"></div><div><hr></div><h2>The Results That Challenge Assumptions</h2><p>When the researchers evaluated their Stage 1 model on held-out test problems, something unexpected appeared in the results. The model achieved 100% semantic correctness&#8212;every single answer was logically accurate. But format adherence, the model&#8217;s ability to perfectly follow the structured Nyaya template, was only 40%.</p><p>At first glance, this might seem like a failure. Isn&#8217;t the whole point to follow the structure? But the dissociation between semantic and format performance reveals something profound: the models are learning the <em>reasoning</em>, not just the template.</p><p>Think about what this means. If the system were simply memorizing patterns about how to fill in section headers, you&#8217;d expect semantic accuracy and format adherence to move together. High format scores with high semantic scores, or low with low. Instead, you see models that consistently get the right answer while sometimes abbreviating sections or reordering phases.</p><p>This is evidence that the Nyaya methodology is teaching genuine reasoning principles. The model understands that it needs to check for contradictions (Tarka), even if it doesn&#8217;t always put that check in a perfectly formatted section with the Sanskrit header. It knows to identify evidence sources (Pramana), even if it sometimes combines that with other reasoning steps rather than isolating it perfectly.</p><p>The failure modes are instructive too. When models do fail at format adherence, it&#8217;s usually by treating certain phases as optional (particularly Hetvabhasa fallacy detection) or by using incorrect doubt classifications in the Samshaya phase. These aren&#8217;t random errors. They suggest the model has learned a partial schema where some elements are recognized as more critical than others, much like a human student who masters the core logic but gets fuzzy on taxonomic details.</p><p>Crucially, the models never show structural collapse. They don&#8217;t generate nonsense or give up on the structure entirely. Even when format adherence is partial, they&#8217;re clearly attempting to follow the Nyaya progression. This consistency across diverse logical problem types suggests the methodology provides robust cognitive scaffolding.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!Peuw!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9f6456b1-c35f-4f9e-86a1-490867472323_2752x1536.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!Peuw!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9f6456b1-c35f-4f9e-86a1-490867472323_2752x1536.png 424w, https://substackcdn.com/image/fetch/$s_!Peuw!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9f6456b1-c35f-4f9e-86a1-490867472323_2752x1536.png 848w, https://substackcdn.com/image/fetch/$s_!Peuw!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9f6456b1-c35f-4f9e-86a1-490867472323_2752x1536.png 1272w, https://substackcdn.com/image/fetch/$s_!Peuw!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9f6456b1-c35f-4f9e-86a1-490867472323_2752x1536.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!Peuw!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9f6456b1-c35f-4f9e-86a1-490867472323_2752x1536.png" width="1456" height="813" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/9f6456b1-c35f-4f9e-86a1-490867472323_2752x1536.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:813,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:6114810,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://technektar.substack.com/i/187438516?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9f6456b1-c35f-4f9e-86a1-490867472323_2752x1536.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!Peuw!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9f6456b1-c35f-4f9e-86a1-490867472323_2752x1536.png 424w, https://substackcdn.com/image/fetch/$s_!Peuw!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9f6456b1-c35f-4f9e-86a1-490867472323_2752x1536.png 848w, https://substackcdn.com/image/fetch/$s_!Peuw!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9f6456b1-c35f-4f9e-86a1-490867472323_2752x1536.png 1272w, https://substackcdn.com/image/fetch/$s_!Peuw!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9f6456b1-c35f-4f9e-86a1-490867472323_2752x1536.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><blockquote><p>&#8220;The dissociation between semantic correctness (100%) and format adherence (40%) reveals models internalize reasoning content even when strict schema compliance fails. This suggests Nyaya methodology teaches genuine reasoning, not just template-filling.&#8221; &#8212; From the Pramana research paper</p></blockquote><div><hr></div><h2>Why This Matters: The Interpretability Crisis</h2><p>As AI systems deploy in medicine, law, finance, and safety-critical systems, interpretability becomes essential. When an AI suggests a medical diagnosis, we need to know: What evidence supports this? What alternatives were considered? What could make this conclusion wrong? Which parts are certain versus probable?</p><p>Current approaches to AI interpretability mostly focus on post-hoc explanations&#8212;trying to figure out why a model made a decision after the fact. This is like trying to understand someone&#8217;s reasoning by examining their brain activity rather than asking them to explain their thinking. It&#8217;s indirect, unreliable, and often misleading.</p><p>Pramana offers a different paradigm: interpretability by design. When a model is trained to reason using the Nyaya framework, its reasoning process is inherently transparent. You can see which evidence sources it relied on (Pramana phase). You can verify that its logical arguments follow valid patterns (Pancha Avayava phase). You can check whether it considered counterarguments (Tarka phase). You can identify what reasoning errors it might have made (Hetvabhasa phase). You can assess its epistemic confidence (Nirnaya phase).</p><p>This auditability is precisely what&#8217;s needed for trustworthy AI. Imagine a medical AI that not only suggests &#8220;likely pneumonia&#8221; but shows you: &#8220;Based on Pratyaksha (observed symptoms: fever, cough, chest pain), and Anumana (inference from chest X-ray opacity), with Tarka verification (assuming no pneumonia would contradict the radiological findings), concluding Nirnaya: high confidence pneumonia diagnosis, though cannot rule out other interstitial lung diseases without additional testing.&#8221;</p><p>That&#8217;s not just more words. It&#8217;s a qualitatively different kind of transparency that enables meaningful human oversight.</p><p>The project is completely open source. The trained models are available on Hugging Face. The training data is public. The evaluation framework is documented. The complete paper is freely accessible on <a href="https://zenodo.org/records/18524794">Zenodo</a>. This isn&#8217;t about creating proprietary advantage but about establishing principles that the whole research community can build on.</p><div><hr></div><h2>The Path Forward: Stages of Systematic Reasoning</h2><p>The current work represents only the foundation. The research roadmap extends through multiple progressive stages, each adding sophistication while maintaining the core Nyaya epistemological grounding.</p><p>Stage 2 will scale the training data from 55 to 500 examples using carefully curated synthetic generation. The challenge isn&#8217;t just quantity but quality&#8212;ensuring every training example demonstrates genuine epistemic reasoning, not just surface pattern matching. This requires what the researchers call &#8220;high-skilled labor&#8221;: someone who understands both Nyaya philosophy and logical reasoning well enough to create valid examples. The estimated investment is about 250 hours of intensive work, highlighting that teaching AI to genuinely reason requires teaching at the level of knowledge, not just data.</p><p>Stage 3 introduces Group Relative Policy Optimization (GRPO), a reinforcement learning technique that can help the model internalize which reasoning patterns lead to reliable conclusions. The innovation here is the reward structure, which won&#8217;t just reward getting correct answers but will explicitly reward proper epistemic grounding, complete fallacy checking, and appropriate epistemic humility.</p><p>Stage 4 aims for production-hardened systems with constrained decoding that guarantees structural compliance, integration with formal verification tools like Z3 SMT solvers, and multi-agent debate protocols where multiple Nyaya-trained models verify each other&#8217;s reasoning. This is where the system becomes truly robust enough for real-world deployment.</p><p>The ultimate vision extends beyond logical reasoning to any domain requiring systematic epistemic rigor. Could Nyaya-structured models help with scientific hypothesis formation, requiring explicit grounding in observational data and theoretical principles? Could they improve legal reasoning by forcing clear articulation of precedents, statutes, and argumentation? Could they assist in medical diagnosis by maintaining rigorous separation of symptoms, test results, prior knowledge, and inferential leaps?</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!Ix7x!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F03d51f28-5bad-40aa-9dd1-8e5156e07fb3_2752x1536.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!Ix7x!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F03d51f28-5bad-40aa-9dd1-8e5156e07fb3_2752x1536.png 424w, https://substackcdn.com/image/fetch/$s_!Ix7x!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F03d51f28-5bad-40aa-9dd1-8e5156e07fb3_2752x1536.png 848w, https://substackcdn.com/image/fetch/$s_!Ix7x!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F03d51f28-5bad-40aa-9dd1-8e5156e07fb3_2752x1536.png 1272w, https://substackcdn.com/image/fetch/$s_!Ix7x!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F03d51f28-5bad-40aa-9dd1-8e5156e07fb3_2752x1536.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!Ix7x!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F03d51f28-5bad-40aa-9dd1-8e5156e07fb3_2752x1536.png" width="1456" height="813" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/03d51f28-5bad-40aa-9dd1-8e5156e07fb3_2752x1536.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:813,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:6010296,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://technektar.substack.com/i/187438516?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F03d51f28-5bad-40aa-9dd1-8e5156e07fb3_2752x1536.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!Ix7x!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F03d51f28-5bad-40aa-9dd1-8e5156e07fb3_2752x1536.png 424w, https://substackcdn.com/image/fetch/$s_!Ix7x!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F03d51f28-5bad-40aa-9dd1-8e5156e07fb3_2752x1536.png 848w, https://substackcdn.com/image/fetch/$s_!Ix7x!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F03d51f28-5bad-40aa-9dd1-8e5156e07fb3_2752x1536.png 1272w, https://substackcdn.com/image/fetch/$s_!Ix7x!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F03d51f28-5bad-40aa-9dd1-8e5156e07fb3_2752x1536.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><div><hr></div><h2>Getting Involved: Multiple Entry Points</h2><p>The Pramana project offers several ways to engage, depending on your background and interests:</p><p><strong>For AI/ML Researchers</strong>: The complete codebase is available on <a href="https://github.com/TechNektar/pramana">GitHub</a>. The training infrastructure uses standard tools (QLoRA, Unsloth, vLLM) making replication straightforward. The evaluation framework provides both automated structure checking and semantic correctness metrics. You can experiment with different base models, explore alternative fine-tuning approaches, or extend the methodology to new problem domains.</p><p><strong>For Sanskrit Scholars and Philosophers</strong>: The project needs expertise in classical Navya-Nyaya texts to ensure the computational formalization remains faithful to traditional epistemology. There are open questions about how to handle subtle distinctions in Nyaya taxonomy, how to incorporate more advanced concepts from later developments of the school, and how to bridge Indian logical traditions with other formal systems.</p><p><strong>For Logic and Formal Methods Researchers</strong>: The integration of Z3 SMT solver for formal verification is in early stages. There are opportunities to create more sophisticated formal encodings of logical problems, develop automated verification pipelines, and explore how symbolic and neural reasoning can complement each other.</p><p><strong>For Educators and Science Communicators</strong>: Understanding AI&#8217;s reasoning limitations and the potential of epistemological frameworks requires accessible explanation. Creating tutorials, visualizations, and demonstrations that help broader audiences grasp these concepts advances the field significantly.</p><p><strong>Resources</strong>:</p><ul><li><p>&#128196; <strong>Full Paper</strong>: <a href="https://zenodo.org/records/18524794">Zenodo Preprint</a> (52 pages of comprehensive technical detail)</p></li><li><p>&#128187; <strong>Code Repository</strong>: <a href="https://github.com/TechNektar/pramana">GitHub - TechNektar/pramana</a></p></li><li><p>&#129303; <strong>Trained Models</strong>: <a href="https://huggingface.co/qbz506/nyaya-llama-3b-stage0">Hugging Face - qbz506/nyaya-llama-3b-stage0</a> and <a href="https://huggingface.co/qbz506/nyaya-deepseek-8b-stage1">qbz506/nyaya-deepseek-8b-stage1</a></p></li><li><p>&#128202; <strong>Training Dataset</strong>: <a href="https://huggingface.co/datasets/qbz506/pramana-nyaya-stage1">Hugging Face - qbz506/pramana-nyaya-stage1</a></p></li><li><p>&#127918; <strong>Interactive Demo</strong>: <a href="https://colab.research.google.com/github/TechNektar/pramana/blob/main/notebooks/01_pramana_explorer.ipynb">Google Colab</a></p></li></ul><p></p><div><hr></div><h2>Rethinking AI&#8217;s Foundation</h2><p>Most discussions about advancing AI reasoning focus on scaling: bigger models, more data, more compute. The implicit assumption is that reasoning will emerge naturally from sufficient pattern recognition capacity. Pramana suggests something different: that genuine reasoning requires teaching systems explicit epistemological principles, not just showing them more examples.</p><p>This isn&#8217;t an argument against scaling. Larger models with more capacity might be necessary to implement complex reasoning scaffolds. But scale alone isn&#8217;t sufficient. Without systematic methods for grounding claims in evidence, checking for errors, and maintaining epistemic humility, we get increasingly sophisticated pattern matching, not increasingly reliable reasoning.</p><p>The choice of Navya-Nyaya as the framework is significant. This isn&#8217;t cultural ornamentation applied to AI. The Nyaya system survived and evolved over two millennia precisely because it works as a practical methodology for acquiring reliable knowledge. It embeds principles that Western formal logic often separates: the integration of logic with epistemology, the emphasis on universal examples alongside abstract rules, the built-in error checking, the requirement to state epistemic confidence.</p><p>Whether Nyaya ultimately proves the best framework is less important than the broader principle: systematic epistemological structure can be learned by neural networks and provides qualitatively different reasoning capabilities than pure pattern matching. This opens pathways for integrating other rigorous reasoning traditions&#8212;Buddhist logic&#8217;s sophisticated analysis of negation, Mimamsa&#8217;s hermeneutic principles for textual interpretation, Western formal systems&#8217; precise notation.</p><p>The work demonstrates that the path to trustworthy AI might require not just engineering but also philosophy. Not just bigger models but wiser models. Not just more data but more structured wisdom.</p><div><hr></div><blockquote><p>&#2351;&#2340;&#2381;&#2340;&#2340;&#2381;&#2340;&#2381;&#2357;&#2332;&#2381;&#2334;&#2366;&#2344;&#2366;&#2344;&#2381;&#2344;&#2367;&#2307;&#2358;&#2381;&#2352;&#2375;&#2351;&#2360;&#2366;&#2343;&#2367;&#2327;&#2350;&#2307;<br>(Yat tattva-j&#241;&#257;n&#257;n ni&#7717;&#347;reyas&#257;dhigama&#7717;)<br>&#8220;Through true knowledge of these [16 elements] comes the attainment of the highest good&#8221;<br>&#8212; Nyaya Sutra 1.1.1</p></blockquote><p>The ancient Nyaya philosophers believed that systematic reasoning was the path to liberation from false understanding. Twenty-five centuries later, as we develop artificial minds that will shape our future, perhaps their wisdom about how to achieve genuine knowledge remains as relevant as ever.</p><div><hr></div><p><strong>About the Author</strong>: Dr. Sharath is a Data Science &amp; AI leader with deep expertise spanning retail analytics, industrial engineering, and aerospace technologies. Specialized in developing cutting-edge AI/ML solutions for commodity pricing and engineering optimization at bp, while leveraging decades of experience in complex systems engineering.<br>Previously led breakthrough innovations in aerospace technology at Indian Space Research Organisation (ISRO), developing advanced inertial navigation systems and satellite actuators. Transitioned this precision engineering mindset to GE Research, where I architected AI solutions for industrial asset optimization and led cross-functional teams in turbomachinery development.<br>PhD researcher and inventor with multiple patents in sustainable energy technologies, particularly focused on supercritical CO2 power systems and waste heat recovery solutions. Proven track record of translating academic research into commercial applications through collaborations with global industry leaders.<br>Currently driving digital transformation initiatives in retail and energy sectors, combining deep technical expertise with business acumen to deliver measurable impact (multi-million-dollar) in pricing optimization and engineering innovation.</p><p><strong>Share this article</strong> if you found it valuable. The more researchers and thinkers engage with these ideas, the faster we can advance toward genuinely interpretable AI systems.</p><p><strong>Join the conversation</strong>: What other philosophical or epistemological traditions might offer valuable frameworks for AI reasoning? Share your thoughts in the comments.</p><div><hr></div><p><em>Special thanks to the open-source AI community and to the classical scholars who have preserved and translated the Nyaya texts that make this work possible.</em></p><p></p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://technektar.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div>]]></content:encoded></item><item><title><![CDATA[Oscillatory Odyssey (Resonance Rising): Part-3]]></title><description><![CDATA[Maya thought gyroscopes were just for rockets&#8212;until her mom, Sarah, showed her one inside her phone.]]></description><link>https://technektar.substack.com/p/oscillatory-odyssey-resonance-rising-3b3</link><guid isPermaLink="false">https://technektar.substack.com/p/oscillatory-odyssey-resonance-rising-3b3</guid><dc:creator><![CDATA[TechNektar]]></dc:creator><pubDate>Sun, 02 Mar 2025 19:48:52 GMT</pubDate><enclosure url="https://api.substack.com/feed/podcast/195475537/523195acfb5cf70d019c4b8d4ad9852b.mp3" length="0" type="audio/mpeg"/><content:encoded><![CDATA[<p>Maya thought gyroscopes were just for rockets&#8212;until her mom, Sarah, showed her one inside her phone. From <strong>MEMS gyroscopes</strong> powering video games to <strong>HRGs</strong> keeping satellites steady, this episode connects the <strong>hidden physics of motion</strong> to the devices we use every day. How do vibrating quartz crystals help spacecraft land on Titan? And how does a tiny chip in your phone use the same physics as a billion-dollar space probe? Let&#8217;s explore the invisible forces that make modern technology tick!</p><p>&#127911; <strong>Listen Now:</strong> <a href="https://podcasts.apple.com/gb/podcast/technektar-cross-pollinating-innovation/id1796260484?l=en-US">&#8288;Apple Podcasts&#8288;</a> | <a href="https://open.spotify.com/show/1iOFoT62JGQpynlJfCCiJ1?si=1058574275b14447">&#8288;Spotify&#8288;</a> | <a href="https://music.amazon.co.uk/podcasts/499f31ac-32d1-4bd9-b199-ccb163f3f941/technektar-cross-pollinating-innovation">&#8288;Amazon Music&#8288;</a>&#128293; **Don't forget to like, subscribe, and hit the notification bell for more tech deep dives!**&#128640; <strong>Follow </strong><a href="https://www.linkedin.com/company/technektar">&#8288;TechNektar&#8288;</a> on LinkedIn for more</p><p><strong>Disclaimer:</strong> The characters in <em>Oscillatory Odyssey</em>&#8212;Maya, Alex, Daniel, and Sarah&#8212;are fictional and serve as storytelling tools to illustrate complex scientific concepts in an engaging and relatable way. While their discussions are inspired by real physics and engineering principles, any resemblance to actual persons is purely coincidental. This podcast is designed for educational and entertainment purposes. The hosts are virtual presenters powered by Google NotebookLM, designed to deliver engaging and informative discussions on physics and engineering.&#128640;&#127897;&#65039;</p>]]></content:encoded></item><item><title><![CDATA[Oscillatory Odyssey (Spin & Light): Part-2]]></title><description><![CDATA[When Alex spots a spinning top at the museum, he has no idea he's looking at the same principle that steered Cassini to Saturn. With Daniel&#8217;s guidance, Maya and Alex dive into the world of gyroscopes&#8212;from old-school mechanical ones that seemingly defy gravity with their spin to the most advanced]]></description><link>https://technektar.substack.com/p/oscillatory-odyssey-spin-and-light-34a</link><guid isPermaLink="false">https://technektar.substack.com/p/oscillatory-odyssey-spin-and-light-34a</guid><dc:creator><![CDATA[TechNektar]]></dc:creator><pubDate>Sun, 02 Mar 2025 19:46:22 GMT</pubDate><enclosure url="https://api.substack.com/feed/podcast/195475538/6501233a321059f556a5307a92f02921.mp3" length="0" type="audio/mpeg"/><content:encoded><![CDATA[<p>When Alex spots a spinning top at the museum, he has no idea he's looking at the same principle that steered <strong>Cassini to Saturn</strong>. With Daniel&#8217;s guidance, Maya and Alex dive into the world of <strong>gyroscopes</strong>&#8212;from old-school mechanical ones that seemingly defy gravity with their spin to the most advanced <strong>hemispheical resonator gyroscopes</strong> that help spacecraft travel billions of miles. What makes a gyroscope tick? And what happens when they fail? Buckle up&#8212;it&#8217;s time to spin!</p><p>&#127911; <strong>Listen Now:</strong> <a href="https://podcasts.apple.com/gb/podcast/technektar-cross-pollinating-innovation/id1796260484?l=en-US">&#8288;Apple Podcasts&#8288;</a> | <a href="https://open.spotify.com/show/1iOFoT62JGQpynlJfCCiJ1?si=1058574275b14447">&#8288;Spotify&#8288;</a> | <a href="https://music.amazon.co.uk/podcasts/499f31ac-32d1-4bd9-b199-ccb163f3f941/technektar-cross-pollinating-innovation">&#8288;Amazon Music&#8288;</a>&#128293; **Don't forget to like, subscribe, and hit the notification bell for more tech deep dives!**&#128640; <strong>Follow </strong><a href="https://www.linkedin.com/company/technektar">&#8288;TechNektar&#8288;</a> on LinkedIn for more</p><p><strong>Disclaimer:</strong> The characters in <em>Oscillatory Odyssey</em>&#8212;Maya, Alex, Daniel, and Sarah&#8212;are fictional and serve as storytelling tools to illustrate complex scientific concepts in an engaging and relatable way. While their discussions are inspired by real physics and engineering principles, any resemblance to actual persons is purely coincidental. This podcast is designed for educational and entertainment purposes. The hosts are virtual presenters powered by Google NotebookLM, designed to deliver engaging and informative discussions on physics and engineering.&#128640;&#127897;&#65039;</p>]]></content:encoded></item><item><title><![CDATA[Oscillatory Odyssey (Swing to Space): Part-1]]></title><description><![CDATA[Maya just wanted to swing higher.]]></description><link>https://technektar.substack.com/p/oscillatory-odyssey-swing-to-space-744</link><guid isPermaLink="false">https://technektar.substack.com/p/oscillatory-odyssey-swing-to-space-744</guid><dc:creator><![CDATA[TechNektar]]></dc:creator><pubDate>Sun, 02 Mar 2025 19:39:14 GMT</pubDate><enclosure url="https://api.substack.com/feed/podcast/195475539/658bad001d7f47e192b820dad099ee76.mp3" length="0" type="audio/mpeg"/><content:encoded><![CDATA[<p>Maya just wanted to swing higher. Little did she know, she was using the same physics that guide spacecraft through the cosmos. Join Maya, her brother Alex, and their father Daniel, as they uncover the secrets of <strong>parametric excitation</strong>&#8212;the force behind a child's swing, the mighty <strong>Botafumeiro</strong>, and even the <strong>Foucault pendulum</strong>, which proves Earth&#8217;s rotation. How does simple motion shape the universe? Let&#8217;s find out.</p><p>&#127911; <strong>Listen Now:</strong> <a href="https://podcasts.apple.com/gb/podcast/technektar-cross-pollinating-innovation/id1796260484?l=en-US">Apple Podcasts</a> | <a href="https://open.spotify.com/show/1iOFoT62JGQpynlJfCCiJ1?si=1058574275b14447">Spotify</a> | <a href="https://music.amazon.co.uk/podcasts/499f31ac-32d1-4bd9-b199-ccb163f3f941/technektar-cross-pollinating-innovation">Amazon Music</a>&#128293; **Don't forget to like, subscribe, and hit the notification bell for more tech deep dives!**&#128640; <strong>Follow </strong><a href="https://www.linkedin.com/company/technektar">TechNektar</a> on LinkedIn for more</p><p><strong>Disclaimer:</strong> The characters in <em>Oscillatory Odyssey</em>&#8212;Maya, Alex, Daniel, and Sarah&#8212;are fictional and serve as storytelling tools to illustrate complex scientific concepts in an engaging and relatable way. While their discussions are inspired by real physics and engineering principles, any resemblance to actual persons is purely coincidental. This podcast is designed for educational and entertainment purposes. The hosts are virtual presenters powered by Google NotebookLM, designed to deliver engaging and informative discussions on physics and engineering.&#128640;&#127897;&#65039;</p>]]></content:encoded></item><item><title><![CDATA[Teaser-Oscillatory Odyssey]]></title><description><![CDATA[Before the full journey begins, get a glimpse into Oscillatory Odyssey&#8212;a new podcast series exploring the hidden science behind motion, resonance, and precision engineering.]]></description><link>https://technektar.substack.com/p/teaser-oscillatory-odyssey-019</link><guid isPermaLink="false">https://technektar.substack.com/p/teaser-oscillatory-odyssey-019</guid><dc:creator><![CDATA[TechNektar]]></dc:creator><pubDate>Sun, 23 Feb 2025 22:56:31 GMT</pubDate><enclosure url="https://api.substack.com/feed/podcast/195475540/8541f6ed5552377df956d98111856063.mp3" length="0" type="audio/mpeg"/><content:encoded><![CDATA[<p>Before the full journey begins, get a glimpse into <em>Oscillatory Odyssey</em>&#8212;a new podcast series exploring the hidden science behind <strong>motion, resonance, and precision engineering</strong>.</p><p>From the <strong>swing of a child</strong> to the <strong>gyroscopes guiding spacecraft</strong>, oscillations shape our world in ways we often overlook. This teaser introduces the journey ahead&#8212;how the same forces behind <strong>medieval cathedrals, pendulums, and space navigation</strong> all share a common physics thread.</p><p>&#127911; <strong>Tune in now</strong> for an exclusive first listen. Subscribe to <em>TechNektar: Cross-Pollinating Innovation</em> on</p><p><strong>Apple Podcasts </strong><a href="https://podcasts.apple.com/us/podcast/technektar-cross-pollinating-innovation/id1796260484">&#8288;https://podcasts.apple.com/us/podcast/technektar-cross-pollinating-innovation/id1796260484&#8288;</a></p><p><strong>Spotify</strong></p><p><a href="https://open.spotify.com/show/1iOFoT62JGQpynlJfCCiJ1?si=cbc23eee1bec449b">https://open.spotify.com/show/1iOFoT62JGQpynlJfCCiJ1?si=cbc23eee1bec449b</a></p><p><strong>Amazon Music</strong></p><p><a href="https://music.amazon.co.uk/podcasts/499f31ac-32d1-4bd9-b199-ccb163f3f941/technektar-cross-pollinating-innovation">https://music.amazon.co.uk/podcasts/499f31ac-32d1-4bd9-b199-ccb163f3f941/technektar-cross-pollinating-innovation</a></p><p>to catch the full series when it drops!</p><p>&#128640; <strong>Stay curious. Stay inspired.</strong> The <em>Oscillatory Odyssey</em> begins soon.</p>]]></content:encoded></item><item><title><![CDATA[Café Chaos (Transfer Entropy): Part-4]]></title><description><![CDATA[This episode is the last of the four part series.]]></description><link>https://technektar.substack.com/p/cafe-chaos-transfer-entropy-part-e4d</link><guid isPermaLink="false">https://technektar.substack.com/p/cafe-chaos-transfer-entropy-part-e4d</guid><dc:creator><![CDATA[TechNektar]]></dc:creator><pubDate>Thu, 13 Feb 2025 18:15:00 GMT</pubDate><enclosure url="https://api.substack.com/feed/podcast/195475541/8d52a7f7f4cc29db4378282f7c54fc08.mp3" length="0" type="audio/mpeg"/><content:encoded><![CDATA[<p>This episode is the last of the four part series. We dive into **causality in AI &amp; machine learning** with fascinating examples from **Flow Dance** &#9749;&#129302;. Discover how AI interprets patterns, and whether correlation truly implies causation! &#128279; **Explore the concepts further:** &#128073; [Arrive at the Transfer Entropy Viewpoint](https://sharathsphd.github.io/coffee_causality/flow_dance.html) To chat and have interactive conversations with the content:(https://notebooklm.google.com/notebook/c382c4c7-85e0-4b62-ad2f-a3ccf754a34d)&#128172; **What are your thoughts on AI's understanding of causality? Drop your insights in the comments!** &#128293; **Don't forget to like, subscribe, and hit the notification bell for more tech deep dives!** &#128640; #AI #TechNectar #MachineLearning #Causality</p>]]></content:encoded></item><item><title><![CDATA[Café Chaos (Causal Analysis): Part-3]]></title><description><![CDATA[This episode is third of the four part series.]]></description><link>https://technektar.substack.com/p/cafe-chaos-causal-analysis-part-3-9ef</link><guid isPermaLink="false">https://technektar.substack.com/p/cafe-chaos-causal-analysis-part-3-9ef</guid><dc:creator><![CDATA[TechNektar]]></dc:creator><pubDate>Thu, 13 Feb 2025 18:10:00 GMT</pubDate><enclosure url="https://api.substack.com/feed/podcast/195475542/74159fb9490592305b63170ed9f7f320.mp3" length="0" type="audio/mpeg"/><content:encoded><![CDATA[<p>This episode is third of the four part series. We dive into **causality in AI &amp; machine learning** with fascinating examples from **Causal Brew** &#9749;&#129302;. Discover how AI interprets patterns, and whether correlation truly implies causation! &#128279; **Explore the concepts further:** &#128073; [Causal World](https://sharathsphd.github.io/coffee_causality/causal_brew.html) &#128172; **What are your thoughts on AI's understanding of causality? Drop your insights in the comments!** &#128293; **Don't forget to like, subscribe, and hit the notification bell for more tech deep dives!** &#128640; #AI #TechNectar #MachineLearning #Causality</p>]]></content:encoded></item><item><title><![CDATA[Café Chaos (Regression): Part-2]]></title><description><![CDATA[This episode is second of the four part series.]]></description><link>https://technektar.substack.com/p/cafe-chaos-regression-part-2-5c4</link><guid isPermaLink="false">https://technektar.substack.com/p/cafe-chaos-regression-part-2-5c4</guid><dc:creator><![CDATA[TechNektar]]></dc:creator><pubDate>Thu, 13 Feb 2025 18:05:00 GMT</pubDate><enclosure url="https://api.substack.com/feed/podcast/195475543/fd0a8ea10570420a123eb7f4b6325afa.mp3" length="0" type="audio/mpeg"/><content:encoded><![CDATA[<p>This episode is second of the four part series. We dive into **causality in AI &amp; machine learning** with fascinating examples from **Caf&#233; Chaos** and **Coffee Correlation** &#9749;&#129302;. Discover how AI interprets patterns, and whether correlation truly implies causation! &#128279; **Explore the concepts further:** &#128073; [Coffee Correlation - The Hidden Patterns](https://sharathsphd.github.io/coffee_causality/coffee_correlation.html) &#128172; **What are your thoughts on AI's understanding of causality? Drop your insights in the comments!** &#128293; **Don't forget to like, subscribe, and hit the notification bell for more tech deep dives!** &#128640; #AI #TechNectar #MachineLearning #Causality</p>]]></content:encoded></item><item><title><![CDATA[Café Chaos (Correlation): Part-1]]></title><description><![CDATA[&#128640; **Welcome to TechNectar: Cross-Pollinating Innovation!** &#129419;&#128161; Join me as we explore the intersection of **AI, engineering, and innovation**, sparking breakthrough insights across domains.]]></description><link>https://technektar.substack.com/p/cafe-chaos-correlation-part-1-5ca</link><guid isPermaLink="false">https://technektar.substack.com/p/cafe-chaos-correlation-part-1-5ca</guid><dc:creator><![CDATA[TechNektar]]></dc:creator><pubDate>Thu, 13 Feb 2025 18:00:00 GMT</pubDate><enclosure url="https://api.substack.com/feed/podcast/195475544/1e6aae465584e90264766cddc94187d2.mp3" length="0" type="audio/mpeg"/><content:encoded><![CDATA[<p>&#128640; **Welcome to TechNectar: Cross-Pollinating Innovation!** &#129419;&#128161; Join me as we explore the intersection of **AI, engineering, and innovation**, sparking breakthrough insights across domains. This episode is first of of the four part series. We dive into **causality in AI &amp; machine learning** with fascinating examples from **Caf&#233; Chaos** and **Coffee Correlation** &#9749;&#129302;. Discover how AI interprets patterns, and whether correlation truly implies causation! &#128279; **Explore the concepts further:** &#128073; [Caf&#233; Chaos - Cause &amp; Effect in AI](https://sharathsphd.github.io/coffee_causality/cafe_chaos.html) &#128073; [Coffee Correlation - The Hidden Patterns](https://sharathsphd.github.io/coffee_causality/coffee_correlation.html) &#128172; **What are your thoughts on AI's understanding of causality? Drop your insights in the comments!** &#128293; **Don't forget to like, subscribe, and hit the notification bell for more tech deep dives!** &#128640; #AI #TechNectar #MachineLearning #Causality</p>]]></content:encoded></item></channel></rss>