<?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: aswe</title>
    <description>The latest articles on DEV Community by aswe (@aswe_get_it).</description>
    <link>https://dev.to/aswe_get_it</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%2F3973789%2F47b605f1-b199-4f98-9e0c-a29c2e049eaf.JPG</url>
      <title>DEV Community: aswe</title>
      <link>https://dev.to/aswe_get_it</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/aswe_get_it"/>
    <language>en</language>
    <item>
      <title>When an AI analyst tries 20 things, pure noise can look like a discovery (and 3 habits that may help)</title>
      <dc:creator>aswe</dc:creator>
      <pubDate>Mon, 26 Oct 2026 21:49:01 +0000</pubDate>
      <link>https://dev.to/aswe_get_it/when-an-ai-analyst-tries-20-things-pure-noise-can-look-like-a-discovery-and-3-habits-that-may-4aad</link>
      <guid>https://dev.to/aswe_get_it/when-an-ai-analyst-tries-20-things-pure-noise-can-look-like-a-discovery-and-3-habits-that-may-4aad</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;Disclosure: I drafted this article with the help of an AI assistant (Claude) and edited it myself. Every number below comes from code in the linked repository, so you can rerun it.&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  The short version
&lt;/h2&gt;

&lt;p&gt;If you hand a dataset to an LLM and say "analyze this", there may be a built-in trap: it can try many analyses without getting tired, and the one that looks best may be the one that gets reported. Nobody has to be dishonest for this to go wrong. If the report does not say how many things were tried, a chance wobble can read like a finding.&lt;/p&gt;

&lt;p&gt;You may not need statistics training to guard against it. Three habits, all doable inside a chat, could reduce much of the risk:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Analysing data you already have:&lt;/strong&gt; split it in three, and keep the last part away from the AI.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Comparing options (prompts, models, settings):&lt;/strong&gt; have the AI write down what will be compared &lt;em&gt;before&lt;/em&gt; it looks, and freeze that.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Predicting something:&lt;/strong&gt; save the prediction with a date, and wait for the outcome.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  What actually happens (a short simulation)
&lt;/h2&gt;

&lt;p&gt;Make data where &lt;strong&gt;nothing is going on&lt;/strong&gt;: two versions of a system are identical, and every "metric" is just a random number. Any "difference" found in this data is, by construction, a false alarm. Now act like an analyst who measures 20 different ways and reports the best one.&lt;/p&gt;

&lt;p&gt;A concrete version: you have a year of sales data and you think up 20 quick conditions to check against it, such as "rainy days", "the day after a record week", or "odd order numbers on even-numbered weekdays". Suppose none of them means anything. Check 20 of them anyway, and by luck alone one will often look like a big win (say, +50% on some measure). That is the one that tends to get reported, and nobody can tell it came from 20 tries.&lt;/p&gt;

&lt;p&gt;I simulated 2,000 such studies (200 items each, 20 metrics each):&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;What the analyst does&lt;/th&gt;
&lt;th&gt;Studies that look "significant"*&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Names &lt;strong&gt;one&lt;/strong&gt; metric in advance&lt;/td&gt;
&lt;td&gt;4.8% (the designed 5%)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Tries 20, &lt;strong&gt;reports the best&lt;/strong&gt;
&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;66.3%&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Tries 20, but accounts for having tried 20**&lt;/td&gt;
&lt;td&gt;6.0%&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;* "Significant" here means p &amp;lt; 0.05: a difference that chance alone would produce less than 5% of the time. It does not mean large or important.&lt;/p&gt;

&lt;p&gt;** Each of the 20 results must clear a stricter bar: 0.05 ÷ 20 = 0.0025 (the Bonferroni correction).&lt;/p&gt;

&lt;p&gt;Put the other way: even when nothing is going on, about 1 test in 20 will be called "significant". That 5% is the false-alarm rate you agree to accept. It is not the size of an effect, and it does not mean "the effect is 5%".&lt;/p&gt;

&lt;p&gt;The textbook figure for "at least one of 20 independent tests comes out below 5% by chance" is 1 − 0.95²⁰ ≈ 64%, and the simulation is close to it. &lt;strong&gt;In this simulation, with no real effect at all, about two out of three studies produced a "finding".&lt;/strong&gt; Real analyses try variants that resemble each other, so the real number will differ.&lt;/p&gt;

&lt;p&gt;This pattern is known as p-hacking, data dredging, or the multiple comparisons problem.&lt;/p&gt;

&lt;p&gt;You can reproduce it with the standard library (Python 3.12, &lt;code&gt;random.Random(1)&lt;/code&gt;):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;math&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;random&lt;/span&gt;
&lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="n"&gt;statistics&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nc"&gt;NormalDist&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;mean&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;stdev&lt;/span&gt;

&lt;span class="no"&gt;N&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;NormalDist&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;p_value&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;diffs&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;                       &lt;span class="c1"&gt;# two-sided z-test on per-item differences&lt;/span&gt;
    &lt;span class="n"&gt;se&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;stdev&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;diffs&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="n"&gt;math&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;sqrt&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;diffs&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="no"&gt;N&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;cdf&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;abs&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;mean&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;diffs&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="n"&gt;se&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="n"&gt;rng&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;random&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Random&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;first&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;best&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;
&lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;_&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="nb"&gt;range&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;2000&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;                      &lt;span class="c1"&gt;# 2,000 studies, no real effect anywhere&lt;/span&gt;
    &lt;span class="n"&gt;ps&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="nf"&gt;p_value&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;rng&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;gauss&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;_&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="nb"&gt;range&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;200&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;_&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="nb"&gt;range&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;20&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;   &lt;span class="c1"&gt;# 20 metrics, 200 items&lt;/span&gt;
    &lt;span class="n"&gt;first&lt;/span&gt; &lt;span class="o"&gt;+=&lt;/span&gt; &lt;span class="n"&gt;ps&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="mf"&gt;0.05&lt;/span&gt;                  &lt;span class="c1"&gt;# one metric named in advance&lt;/span&gt;
    &lt;span class="n"&gt;best&lt;/span&gt; &lt;span class="o"&gt;+=&lt;/span&gt; &lt;span class="nb"&gt;min&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;ps&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="mf"&gt;0.05&lt;/span&gt;                 &lt;span class="c1"&gt;# best of 20, reported as if it were the only one&lt;/span&gt;
&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;first&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="mi"&gt;2000&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;best&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="mi"&gt;2000&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;           &lt;span class="c1"&gt;# 0.048 0.663&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This may not be only a thought experiment. Several recent preprints (not yet peer reviewed) report that AI coding agents can drift in a similar way:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The same data with different analysis choices can lead to different conclusions (&lt;a href="https://arxiv.org/abs/2602.18710" rel="noopener noreferrer"&gt;arXiv 2602.18710&lt;/a&gt;).&lt;/li&gt;
&lt;li&gt;Blunt requests for a particular result were refused in one study, but softer wording such as "try alternative approaches" got through (&lt;a href="https://hyper.ai/en/stories/67c34dbcea0efe82aef64fcf999af940" rel="noopener noreferrer"&gt;summary of Asher et al.&lt;/a&gt;).&lt;/li&gt;
&lt;li&gt;The final report may hide how much searching happened (&lt;a href="https://www.alphaxiv.org/abs/2607.01507.md" rel="noopener noreferrer"&gt;The Agentic Garden of Forking Paths&lt;/a&gt;).&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Common traps
&lt;/h2&gt;

&lt;p&gt;The last column refers to the three habits below: &lt;strong&gt;Habit 1&lt;/strong&gt; is analysing data you already have, &lt;strong&gt;Habit 2&lt;/strong&gt; is comparing options, &lt;strong&gt;Habit 3&lt;/strong&gt; is predictions.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Trap&lt;/th&gt;
&lt;th&gt;What can go wrong&lt;/th&gt;
&lt;th&gt;Habit&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Try many things, report the good one&lt;/td&gt;
&lt;td&gt;Chance can look like a finding&lt;/td&gt;
&lt;td&gt;1, 2&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Choose the metric or threshold after seeing results&lt;/td&gt;
&lt;td&gt;The conclusion may be tailored to the data&lt;/td&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Draw conclusions from too few items&lt;/td&gt;
&lt;td&gt;It may not replicate&lt;/td&gt;
&lt;td&gt;1, 2&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;"Predict" something whose outcome is already known&lt;/td&gt;
&lt;td&gt;It can seem to work every time&lt;/td&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Read "no significant difference" as "the same"&lt;/td&gt;
&lt;td&gt;You may just not have been able to see it&lt;/td&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Trust an LLM's scoring without checking it against people&lt;/td&gt;
&lt;td&gt;The scorer's quirks can leak into your result&lt;/td&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Mistake a confident tone for correctness&lt;/td&gt;
&lt;td&gt;You may trust numbers that were never computed&lt;/td&gt;
&lt;td&gt;see "What this does not stop"&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Habit 1: analysing data you already have
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Split it three ways. Keep the last part away from the AI.&lt;/strong&gt; Why: once you (or the AI) have looked at data, the analysis gets tuned to it, even unintentionally. Checking your approach on data you already looked at is like reading the exam questions first and then measuring your ability on that same exam.&lt;/p&gt;

&lt;p&gt;If your data has a time order, split it in that order: oldest for exploring, then validating, and the newest for confirming. That way the check always looks forward, as a real prediction would.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Part&lt;/th&gt;
&lt;th&gt;Use&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Explore&lt;/td&gt;
&lt;td&gt;Look at anything. What you find here are &lt;em&gt;ideas&lt;/em&gt;, not conclusions.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Validate&lt;/td&gt;
&lt;td&gt;Check the few ideas that survived, against a bar fixed in advance. Keep at most one.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Confirm&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Data nobody has seen. One look. Only this part supports a conclusion.&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;A note on names. They differ by field. Statistics and clinical trials usually split work into &lt;em&gt;exploratory&lt;/em&gt; and &lt;em&gt;confirmatory&lt;/em&gt;. Machine learning uses train / validation / test. Here Explore is close to train, and Confirm is close to the held-out test set (the &lt;em&gt;confirmatory&lt;/em&gt; step). Be careful with "validation": in machine learning it is the middle step, while in clinical trials the confirmatory trial is the last one. Whatever you call the stages, the part to protect is the last: data nobody looked at, one look.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;First check there is enough data.&lt;/strong&gt; Splitting may be pointless if the final part is too small to show anything. This one-page calculator (offline, English and Japanese) tells you what share of the data the final test would need: &lt;a href="https://as-we.github.io/forecastseal/plan-calculator.html" rel="noopener noreferrer"&gt;plan-calculator.html&lt;/a&gt;. If you do not have enough, the honest move is to collect new data going forward and make &lt;em&gt;that&lt;/em&gt; the final part.&lt;/p&gt;

&lt;p&gt;A prompt for the explore phase:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;The attached file is the EXPLORATION set. A separate confirmation set exists and you will not see it.
Work in this order:
1. Check the columns and missing values and note anything odd.
2. Number every analysis you try and keep all of them, good and bad.
3. End with: how many analyses you tried, and up to 3 promising ideas. Do not state conclusions.
Run code for every calculation and paste the output. No mental arithmetic, no guessed numbers.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A prompt to freeze the plan before the confirmation run:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;From the exploration, decide what we will test on the confirmation set. Write down:
- the single claim to check
- the metric and its direction (higher or lower is better)
- how many items we will use
- what counts as "a difference"
I am saving this text now. It must not change after we see the confirmation data.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;And the confirmation run:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;This is the confirmation data. Evaluate it once, exactly as frozen above.
If the result is disappointing, do not change the metric or the threshold; report it as is.
Label any extra analysis "exploratory" and keep it separate from the conclusion.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Habit 2: comparing options
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Write down what is compared and how, before looking.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fd3spf5xbplnp7aasitai.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fd3spf5xbplnp7aasitai.png" alt="Two timelines. Without a sealed plan, the approach is tweaked after every look and no version reaches the planned number of items. With a sealed plan, one approach runs to the planned size; an early look is only a hint and the verdict comes at the planned size." width="800" height="358"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In the top timeline, the approach is looked at, tweaked and looked at again before the planned amount of data has arrived, so no version of it ever collects enough items to support a conclusion. In the bottom timeline, the plan is fixed first, one approach runs to the planned size, and early looks count only as hints, so the verdict comes at the end.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;We will compare prompt A and prompt B. Before touching the data, decide:
- the metric(s) that will decide the question (at most 2) and their direction
- metrics we will look at only for ideas (not for conclusions)
- how many items we will use
- how many variants we plan to try in total
I will save this. If you change the plan later, say so explicitly and keep the original.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A few things matter most:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Keep the deciding metrics few.&lt;/strong&gt; Every extra one adds chance: with 20 metrics, about two studies in three produce a false "finding" (see the table above). That is why the prompt above allows at most 2.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Count what you tried.&lt;/strong&gt; If you tried 20 variants, read the best one as "the best of 20".&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;If an LLM scores or grades things for you, check a sample against human judgement first&lt;/strong&gt; and freeze the grading prompt like any other part of the plan. Otherwise its quirks can leak into your result.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;"No difference" is not "the same".&lt;/strong&gt; If the claim is "the cheaper option is not worse", agree on how much worse is acceptable &lt;em&gt;first&lt;/em&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Habit 3: predictions
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Save the prediction with a date, then wait.&lt;/strong&gt; This is probably the cleanest habit because the outcome does not exist yet: nobody, including the AI, can peek.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Give the probability (0 to 1) that the following happens, with at most 3 lines of reasoning.
Event: &amp;lt;write it here&amp;gt;
Outcome known on: &amp;lt;date&amp;gt;
I will store this answer with today's date and review it once the outcome is known.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;After enough of them, count: of the things you called "70%", did about 7 in 10 happen? That is calibration, and it shows how over- or under-confident the model really is.&lt;/p&gt;

&lt;h2&gt;
  
  
  These ideas are not new
&lt;/h2&gt;

&lt;p&gt;None of this is a new method. The pieces already have names, and they are good starting points if you want to read more:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;In this article&lt;/th&gt;
&lt;th&gt;Existing name&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Split into explore and confirm&lt;/td&gt;
&lt;td&gt;exploratory vs confirmatory analysis&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Write the plan down before looking&lt;/td&gt;
&lt;td&gt;&lt;a href="https://cos.io/initiatives/prereg" rel="noopener noreferrer"&gt;preregistration&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Keep some data unseen, and do not reuse it after looking&lt;/td&gt;
&lt;td&gt;holdout; see &lt;a href="https://arxiv.org/abs/1506.02629" rel="noopener noreferrer"&gt;The reusable holdout&lt;/a&gt; (Dwork et al., Science, 2015)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Try 20 things, report the best&lt;/td&gt;
&lt;td&gt;the multiple comparisons problem; &lt;a href="https://forrt.org/glossary/english/researcher_degrees_of_freedom/" rel="noopener noreferrer"&gt;researcher degrees of freedom&lt;/a&gt; and the &lt;a href="https://en.wikipedia.org/wiki/Forking_paths_problem" rel="noopener noreferrer"&gt;garden of forking paths&lt;/a&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Count what you tried&lt;/td&gt;
&lt;td&gt;backtest overfitting; &lt;a href="https://scholarworks.wmich.edu/math_pubs/40/" rel="noopener noreferrer"&gt;Bailey et al., Notices of the AMS, 2014&lt;/a&gt; argue that a backtest that does not report how many trials were run cannot be assessed&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  What this does not stop
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Numbers the AI never computed.&lt;/strong&gt; Always require "run code and paste the output."&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Accidentally showing the confirmation data.&lt;/strong&gt; Keep it in a separate file and do not attach it to the chat.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Concluding from too little data.&lt;/strong&gt; If there is not enough, "no conclusion possible" is the honest report.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Optional: keep the record in a ledger
&lt;/h2&gt;

&lt;p&gt;The habits above work in a plain chat. If you also want the plan and the records to be checkable afterwards (or want an agent to do the bookkeeping), I wrote a small open-source tool, &lt;strong&gt;forecastseal&lt;/strong&gt; (standard library only, Python 3.10+, local, no network). It does four things:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;It seals the plan before any result is recorded.&lt;/strong&gt; The plan lists the metrics, the planned number of items, alpha (the false-alarm rate you accept, for example 5%), the list of items to evaluate, and optionally a non-inferiority margin (how much worse still counts as "not worse").&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;It keeps every record in an append-only ledger.&lt;/strong&gt; Each entry includes the hash (a fingerprint) of the entry before it, so &lt;code&gt;fseal verify&lt;/code&gt; detects any edit, deletion or reordering.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;It compares two options item by item, under the sealed rules.&lt;/strong&gt; The error range comes from resampling the items (a paired bootstrap). A look before the planned number of items needs &lt;code&gt;--interim&lt;/code&gt;, is logged, and gives no verdict.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;It writes one self-contained HTML report&lt;/strong&gt; with the plan, the results and every look.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Habit 1 can be enforced as well (added in v0.0.11). Seal the explore part and the confirm part as linked stages, and the ledger refuses to record a confirm result for an item that was already used while exploring. With &lt;code&gt;group_by&lt;/code&gt;, it does the same for whole groups, such as a customer, a period or a data source, so a new item from an explored source cannot slip into the final test either.&lt;/p&gt;

&lt;p&gt;Here is the "20 metrics" simulation from above in a ledger (&lt;code&gt;examples/noise_demo.py&lt;/code&gt;). Only &lt;code&gt;metric-01&lt;/code&gt; was declared as the deciding metric before the data; the other 19 are exploratory:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Unadjusted best metric: metric-17 (p = 0.0070).
  metric-01: primary (declared before the data); interval [-0.370, +0.455] -&amp;gt; includes 0
  metric-17: exploratory (found after looking); interval [-0.842, -0.119] -&amp;gt; excludes 0
             but labelled exploratory: not a conclusion
  Every look is in the ledger: 2 analyses logged; verify: intact
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Two terms in that output: &lt;strong&gt;p&lt;/strong&gt; is the chance of seeing a difference at least this large if nothing were going on. "Interval includes 0" means that the error range of the difference contains "no difference"; read it as "can't tell", not as "the same". Note that metric-17's p = 0.0070 looks significant, but with 20 metrics tried the bar is 0.0025, so after the correction it is not. That is why it is labelled exploratory.&lt;/p&gt;

&lt;p&gt;The tool does not make a weak analysis strong. It tries to make it harder to bend a result without leaving a trace.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Limits worth knowing:&lt;/strong&gt; timestamps come from the local clock (the chain only shows nothing changed &lt;em&gt;after&lt;/em&gt; you anchor the head hash somewhere you do not control); deleting the last entries is detectable only if you saved an earlier head hash; and for the statistics themselves, libraries such as evalsig or errorbars are richer than this.&lt;/p&gt;

&lt;p&gt;Repository: &lt;a href="https://github.com/as-we/forecastseal" rel="noopener noreferrer"&gt;github.com/as-we/forecastseal&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Summary
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;One common failure in AI-assisted analysis may be &lt;strong&gt;chance turning into a discovery&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Three habits could help reduce it: &lt;strong&gt;split the data and hide the last part&lt;/strong&gt;, &lt;strong&gt;freeze what you compare before looking&lt;/strong&gt;, &lt;strong&gt;let predictions wait for outcomes&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Check whether you have enough data &lt;strong&gt;before&lt;/strong&gt; you start. If not, collect it going forward.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;em&gt;Updated 2026-11-17: clarified several sentences, and added the stages feature of forecastseal v0.0.11 to the tool section.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>llm</category>
      <category>datascience</category>
      <category>statistics</category>
      <category>ai</category>
    </item>
    <item>
      <title>Stop Reinventing the Wheel: A Prior Art Investigation Framework for the SDD Era</title>
      <dc:creator>aswe</dc:creator>
      <pubDate>Mon, 08 Jun 2026 09:30:29 +0000</pubDate>
      <link>https://dev.to/aswe_get_it/stop-reinventing-the-wheel-a-prior-art-investigation-framework-for-the-sdd-era-224n</link>
      <guid>https://dev.to/aswe_get_it/stop-reinventing-the-wheel-a-prior-art-investigation-framework-for-the-sdd-era-224n</guid>
      <description>&lt;p&gt;&lt;em&gt;I spent hours designing something that already had a name, a Wikipedia page, and 10 years of papers. Here's how I fixed that.&lt;/em&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  The Mistake
&lt;/h2&gt;

&lt;p&gt;When I started building &lt;a href="https://github.com/as-we/llm-distil-loop" rel="noopener noreferrer"&gt;llm-distil-loop&lt;/a&gt;, I designed a system from scratch:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"Use an LLM to generate labeled training data, then train a smaller ML model on those outputs."&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;I wrote requirements. I sketched architecture. I started thinking about data schemas.&lt;/p&gt;

&lt;p&gt;A few hours in, I searched for something loosely related — and found it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Knowledge Distillation.&lt;/strong&gt; A research field since Hinton et al., 2015. Hundreds of papers. Multiple production-ready OSS implementations. Documented failure patterns. A decade of practitioners learning what not to do.&lt;/p&gt;

&lt;p&gt;I had been designing in a vacuum that didn't exist.&lt;/p&gt;

&lt;p&gt;The problem wasn't that I'm careless. The problem is that &lt;strong&gt;spec-driven development and AI agents make you move fast&lt;/strong&gt; — and moving fast means skipping the "does this already have a name?" check.&lt;/p&gt;

&lt;p&gt;That check is now a framework: &lt;a href="https://github.com/as-we/prior-art-investigation" rel="noopener noreferrer"&gt;prior-art-investigation&lt;/a&gt;.&lt;/p&gt;




&lt;h2&gt;
  
  
  What It Actually Does
&lt;/h2&gt;

&lt;p&gt;It's a prompt collection — I'll be honest about that upfront. Not a library, not a CLI tool. Prompts that wire into your SDD workflow.&lt;/p&gt;

&lt;p&gt;But the prompts encode something non-trivial: &lt;strong&gt;the questions that senior engineers and system designers actually ask before committing to an approach.&lt;/strong&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  The 7 Questions
&lt;/h3&gt;

&lt;p&gt;Every investigation runs through some or all of these:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;#&lt;/th&gt;
&lt;th&gt;Question&lt;/th&gt;
&lt;th&gt;When&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Q1&lt;/td&gt;
&lt;td&gt;&lt;em&gt;Is the problem framing correct? Am I solving the right problem?&lt;/em&gt;&lt;/td&gt;
&lt;td&gt;Requirements, Design&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Q2&lt;/td&gt;
&lt;td&gt;&lt;em&gt;Why hasn't this approach already become the standard? If it's obvious, why isn't everyone doing it?&lt;/em&gt;&lt;/td&gt;
&lt;td&gt;Design&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Q3&lt;/td&gt;
&lt;td&gt;&lt;em&gt;Who has tried this and failed? How did they fail?&lt;/em&gt;&lt;/td&gt;
&lt;td&gt;Design&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Q4&lt;/td&gt;
&lt;td&gt;&lt;em&gt;Who thinks most deeply about this domain? Where do their words live?&lt;/em&gt;&lt;/td&gt;
&lt;td&gt;Design&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Q5&lt;/td&gt;
&lt;td&gt;&lt;em&gt;Have I read primary sources — papers, RFCs, commit logs, issues — not just READMEs and blog posts?&lt;/em&gt;&lt;/td&gt;
&lt;td&gt;Design&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Q6&lt;/td&gt;
&lt;td&gt;&lt;em&gt;If this fails in the worst possible way, what causes it? What should I verify now?&lt;/em&gt;&lt;/td&gt;
&lt;td&gt;Requirements, Design&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Q7&lt;/td&gt;
&lt;td&gt;&lt;em&gt;I now know the concept name. How does that change my design?&lt;/em&gt;&lt;/td&gt;
&lt;td&gt;Tasks&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Q7 — the "So What" question — is the one most people skip. Finding the concept name isn't the goal. Letting it change your design is.&lt;/p&gt;




&lt;h2&gt;
  
  
  What It Returns
&lt;/h2&gt;

&lt;p&gt;The agent searches arXiv, Papers with Code, and Semantic Scholar in real time — no knowledge cutoff — and returns:&lt;/p&gt;

&lt;h3&gt;
  
  
  Research Lineage
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Concept: Knowledge Distillation

2015 — Hinton et al., "Distilling the Knowledge in a Neural Network"
       https://arxiv.org/abs/1503.02531
       Key insight: Temperature-scaled softmax enables knowledge transfer
       between models of different sizes.

2019 — Sanh et al., "DistilBERT"
       https://arxiv.org/abs/1910.01108
       Key insight: BERT-scale distillation is practical and production-ready.

2021 — Wang et al., "MiniLM"
       https://arxiv.org/abs/2002.10957
       Key insight: Layer-wise attention matching improves small model quality.

2023 — Fu et al., "Distilling Step-by-Step"
       https://arxiv.org/abs/2212.10560
       Key insight: LLM reasoning chains can be distilled, not just outputs.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  OSS Evaluation Matrix
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Tool              License      Last Commit   Fit    Verdict
──────────────────────────────────────────────────────────
HF transformers   Apache-2.0   Active        High   ✅ Adopt
LLaMA-Factory     Apache-2.0   Active        Med    ✅ Evaluate
Paper code        Varies       Stale         Low    ❌ Reference only
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;License tiers are explicit: MIT/Apache-2.0 are Tier 1 (adopt freely), GPL is Tier 3 (legal review required), AGPL/SSPL are Tier 4 (do not adopt).&lt;/p&gt;

&lt;h3&gt;
  
  
  Known Failure Patterns
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Teacher bias propagates to the student model&lt;/li&gt;
&lt;li&gt;Without quality gates on generated labels, distillation silently fails&lt;/li&gt;
&lt;li&gt;Temperature and loss weighting are sensitive — small changes break training&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This last section is what saves the most time. You don't just learn what the thing is called — you learn what breaks it, from people who already learned the hard way.&lt;/p&gt;




&lt;h2&gt;
  
  
  It Also Works for OSS and Technology Selection
&lt;/h2&gt;

&lt;p&gt;Prior art investigation isn't only for research concepts. I've used it for:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;OCR and PDF library selection&lt;/strong&gt; — evaluating Tesseract vs EasyOCR vs cloud APIs across accuracy, license, offline support, and maintenance health before writing a single line of integration code.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Programming language technology decisions&lt;/strong&gt; — when a project's language has specific constraints (runtime, ecosystem maturity, async model), the framework surfaces those tradeoffs from primary sources rather than Stack Overflow opinions.&lt;/p&gt;

&lt;p&gt;The evaluation criteria in the prompts are not fixed. Because it's a prompt collection, you can adjust the selection matrix for your context — stricter license requirements, different maintenance thresholds, specific performance benchmarks. The framework adapts to what you're actually deciding.&lt;/p&gt;

&lt;p&gt;The underlying question is always the same: &lt;em&gt;what do I need to know before I commit to this?&lt;/em&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Is this author an individual or an organization? (Long-term maintenance signal)&lt;/li&gt;
&lt;li&gt;When was the last commit? (Health signal)&lt;/li&gt;
&lt;li&gt;What's the license tier? (Legal risk signal)&lt;/li&gt;
&lt;li&gt;How does it compare to the two closest alternatives?&lt;/li&gt;
&lt;li&gt;Does this language/runtime have known limitations for this use case?&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  How It Integrates
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Standalone
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git clone https://github.com/as-we/prior-art-investigation
&lt;span class="nb"&gt;cd &lt;/span&gt;prior-art-investigation
make &lt;span class="nb"&gt;install&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In VS Code + Copilot Chat:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;/prior-art full I want to use LLM outputs to train a smaller ML model
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Add &lt;code&gt;#web&lt;/code&gt; for live search beyond training cutoff.&lt;/p&gt;

&lt;h3&gt;
  
  
  Wired into SDD Workflows
&lt;/h3&gt;

&lt;p&gt;The framework runs at different depths depending on the phase — automatically, without manual triggering:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Phase&lt;/th&gt;
&lt;th&gt;Questions&lt;/th&gt;
&lt;th&gt;Depth&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Requirements&lt;/td&gt;
&lt;td&gt;Q1 + Q6&lt;/td&gt;
&lt;td&gt;Quick check — 2 questions&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Design&lt;/td&gt;
&lt;td&gt;All 7&lt;/td&gt;
&lt;td&gt;Full investigation&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Tasks&lt;/td&gt;
&lt;td&gt;Q7 only&lt;/td&gt;
&lt;td&gt;So What check&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;By the time I'm writing tasks, the research is already done.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;GitHub SpecKit&lt;/strong&gt; (VS Code + GitHub Copilot)&lt;/p&gt;

&lt;p&gt;Register as a SpecKit Extension. It hooks into &lt;code&gt;before_specify&lt;/code&gt;, &lt;code&gt;before_plan&lt;/code&gt;, and &lt;code&gt;before_tasks&lt;/code&gt; automatically:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;specify extension add prior-art-investigation &lt;span class="nt"&gt;--from&lt;/span&gt; &amp;lt;zip-url&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then add to your &lt;code&gt;.specify/extensions.yml&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;hooks&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;before_specify&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;prior-art minimal&lt;/span&gt;
  &lt;span class="na"&gt;before_plan&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;    &lt;span class="s"&gt;prior-art full&lt;/span&gt;
  &lt;span class="na"&gt;before_tasks&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;   &lt;span class="s"&gt;prior-art sowhat&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Three agent files handle each phase: &lt;code&gt;prior-art-minimal.agent.md&lt;/code&gt;, &lt;code&gt;prior-art-full.agent.md&lt;/code&gt;, &lt;code&gt;prior-art-sowhat.agent.md&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Kiro SDD&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Native hook integration via &lt;code&gt;.kiro/hooks/&lt;/code&gt;. No additional setup beyond copying the hook files.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Claude Code&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Add the snippet from &lt;code&gt;claude-code/CLAUDE.md.snippet&lt;/code&gt; to your project's &lt;code&gt;CLAUDE.md&lt;/code&gt;. Claude Code reads this as a persistent instruction and fires prior art checks at each phase automatically.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Cursor / Windsurf / other agent IDEs&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Use the prompt files directly as agent prompts. Manual trigger required.&lt;/p&gt;




&lt;h2&gt;
  
  
  The Output Gets Recorded
&lt;/h2&gt;

&lt;p&gt;Results aren't ephemeral. Each investigation writes to &lt;code&gt;research.md&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight markdown"&gt;&lt;code&gt;&lt;span class="gu"&gt;## Named Concept&lt;/span&gt;

| Field | Value |
|-------|-------|
| Concept | Knowledge Distillation |
| First published | 2015 / Hinton et al., NeurIPS |
| Maturity | ✅ Production Ready |
| Paper URL | https://arxiv.org/abs/1503.02531 |
| Design impact | Use temperature scaling; add quality gate on LLM labels |
| Differentiation | Custom quality gate logic specific to our label schema |

&lt;span class="gu"&gt;## OSS Decision&lt;/span&gt;

| Package | License | Last Commit | Verdict |
|---------|---------|-------------|---------|
| HF transformers | Apache-2.0 | 2025-05 | ✅ Adopted |
| LLaMA-Factory | Apache-2.0 | 2025-04 | ❌ Overkill for this use case |
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Future team members — or future you — can see exactly what was considered and why.&lt;/p&gt;




&lt;h2&gt;
  
  
  Standing on the Shoulders of People Who Struggled
&lt;/h2&gt;

&lt;p&gt;There's a manga called &lt;em&gt;Chi. — Chikyuu no Undou ni Tsuite&lt;/em&gt; ("Chi. — About the Movement of the Earth"). It follows ordinary people across centuries who, at enormous personal cost, pursued the idea that the Earth moves around the Sun — not the other way around. Each of them built on the suffering and insight of the person before them, usually without recognition, often at great risk.&lt;/p&gt;

&lt;p&gt;I think about that when I read a paper published in 2015.&lt;/p&gt;

&lt;p&gt;Geoffrey Hinton didn't write "Distilling the Knowledge in a Neural Network" in an afternoon. That insight came from years of thinking about how biological neural systems learn, how compressed representations form, what it means for a model to "understand" rather than memorize. The footnotes in that paper point to decades of prior work by people I'll never know.&lt;/p&gt;

&lt;p&gt;When I run &lt;code&gt;/prior-art full&lt;/code&gt; and get back a research lineage in thirty seconds, I'm not just saving time. I'm being handed a map that took hundreds of people years of struggle to draw.&lt;/p&gt;

&lt;p&gt;The least I can do is read it carefully.&lt;/p&gt;

&lt;p&gt;This framework is built around that belief. Q5 — "Have I read primary sources, not just READMEs?" — is a discipline question as much as a research question. It asks: did you actually engage with what these people discovered, or did you skim the surface and move on?&lt;/p&gt;

&lt;p&gt;Speed is valuable. Efficiency is valuable. But efficiency that treats human knowledge as a lookup table misses something important. The research lineage isn't just context — it's the record of how hard certain problems actually are, written by the people who found out the hard way.&lt;/p&gt;

&lt;p&gt;Use this framework to go fast. But go fast with your eyes open.&lt;/p&gt;




&lt;h2&gt;
  
  
  Why This Matters Now
&lt;/h2&gt;

&lt;p&gt;AI agents and SDD workflows have changed the speed of implementation. A well-framed problem statement becomes working code in hours, not weeks.&lt;/p&gt;

&lt;p&gt;That's powerful. It's also dangerous.&lt;/p&gt;

&lt;p&gt;When implementation is fast, the cost of starting with the wrong design compounds quickly. You ship fast in the wrong direction.&lt;/p&gt;

&lt;p&gt;Prior art investigation is the check that keeps speed from becoming waste. Five minutes before you start. The research is already out there — someone already named it, studied it, failed at it, and wrote it down. This framework finds it before you repeat their mistakes.&lt;/p&gt;




&lt;h2&gt;
  
  
  Links
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;prior-art-investigation&lt;/strong&gt;: &lt;a href="https://github.com/as-we/prior-art-investigation" rel="noopener noreferrer"&gt;github.com/as-we/prior-art-investigation&lt;/a&gt; — MIT License&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;llm-distil-loop&lt;/strong&gt;: &lt;a href="https://github.com/as-we/llm-distil-loop" rel="noopener noreferrer"&gt;github.com/as-we/llm-distil-loop&lt;/a&gt; — the project where I learned I needed this — Apache-2.0&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;&lt;em&gt;Built while working on a music analysis distillation pipeline. The irony of needing prior art investigation while building a prior art investigation tool was not lost on me.&lt;/em&gt;&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;Tags&lt;/strong&gt;: &lt;code&gt;productivity&lt;/code&gt; &lt;code&gt;tooling&lt;/code&gt; &lt;code&gt;machinelearning&lt;/code&gt; &lt;code&gt;beginners&lt;/code&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>architecture</category>
      <category>designsystem</category>
      <category>productivity</category>
    </item>
  </channel>
</rss>
