<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Causal Canary</title>
    <description>The latest articles on DEV Community by Causal Canary (@causalcanary).</description>
    <link>https://dev.to/causalcanary</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4279358%2F69517dc8-bf07-498d-b337-e6e8ccab0b5b.png</url>
      <title>DEV Community: Causal Canary</title>
      <link>https://dev.to/causalcanary</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/causalcanary"/>
    <language>en</language>
    <item>
      <title>causality-canary: catch helper- and library-hidden lookahead leaks at runtime</title>
      <dc:creator>Causal Canary</dc:creator>
      <pubDate>Wed, 02 Dec 2026 23:33:27 +0000</pubDate>
      <link>https://dev.to/causalcanary/causality-canary-catch-helper-and-library-hidden-lookahead-leaks-at-runtime-ola</link>
      <guid>https://dev.to/causalcanary/causality-canary-catch-helper-and-library-hidden-lookahead-leaks-at-runtime-ola</guid>
      <description>&lt;p&gt;Free static linters already catch a lot of obvious lookahead. MIT &lt;code&gt;leakguard-mcp&lt;/code&gt; documents that rules &lt;code&gt;LG003&lt;/code&gt; and &lt;code&gt;LG006&lt;/code&gt; flag the inline full-dataframe z-score &lt;code&gt;(x - x.mean()) / x.std()&lt;/code&gt;. This project does not claim that pattern as a unique wedge.&lt;/p&gt;

&lt;p&gt;What those linters say they cannot follow is a future-peeking aggregate behind a helper, another module, or a third-party library: no cross-function dataflow, no cross-module taint, and no runtime execution.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;causality-canary&lt;/code&gt; is a zero-dependency MIT CLI that treats your signal function as a black box. It re-runs the function on truncated prefixes and on future-perturbed series. If the value at bar &lt;code&gt;t&lt;/code&gt; moves, you have a leak — even when the leak lives inside a helper call.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;PYTHONPATH&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;src python3 -m causality_canary.cli demo
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A 600-bar synthetic teardown (cross-module full-series z-score helper) fails in under a second: 4 of 25 prefix checkpoints mismatch, first leak at bar 100 (live prefix fires long; the full-series run stays flat because a later regime shift widens the helper's standard deviation). The causal rolling-window fix returns 0 violations.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Repo:&lt;/strong&gt; &lt;a href="https://github.com/causalcanary/causality-canary" rel="noopener noreferrer"&gt;https://github.com/causalcanary/causality-canary&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Pro waitlist (no price, no checkout) and flat-fee runtime-leak / workflow-forensics audits (&lt;code&gt;$195&lt;/code&gt; / &lt;code&gt;$249–$309&lt;/code&gt; / &lt;code&gt;$499&lt;/code&gt;):&lt;/strong&gt; &lt;a href="mailto:causalcanary@proton.me"&gt;causalcanary@proton.me&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Scope is runtime and workflow causality only. This is not a statistical overfitting score, not trading advice, and not a claim of a tradable edge. Demand for the paid rungs is unproven.&lt;/p&gt;

</description>
      <category>python</category>
      <category>opensource</category>
      <category>datascience</category>
      <category>testing</category>
    </item>
  </channel>
</rss>
