Menu

causality-canary: catch helper- and library-hidden lookahead leaks at runtime
πŸ“°

causality-canary: catch helper- and library-hidden lookahead leaks at runtime

DEV Community: datascienceΒ·Causal CanaryΒ·3 days ago
#QFeEn51b
#devtodatascience#science#devto#dev#helper
Reading 0:00
15s threshold

Free static linters already catch a lot of obvious lookahead. MIT leakguard-mcp documents that rules LG003 and LG006 flag the inline full-dataframe z-score (x - x.mean()) / x.std() . This project does not claim that pattern as a unique wedge.

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.

causality-canary 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.…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.