<?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: Cadence by NoxyTree</title>
    <description>The latest articles on DEV Community by Cadence by NoxyTree (@cadencestarter).</description>
    <link>https://dev.to/cadencestarter</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%2F4034884%2F283c9911-fc95-4a04-830c-97366a5f300a.png</url>
      <title>DEV Community: Cadence by NoxyTree</title>
      <link>https://dev.to/cadencestarter</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/cadencestarter"/>
    <language>en</language>
    <item>
      <title>Why approval in an automated pipeline should expire</title>
      <dc:creator>Cadence by NoxyTree</dc:creator>
      <pubDate>Sat, 18 Jul 2026 07:29:23 +0000</pubDate>
      <link>https://dev.to/cadencestarter/why-approval-in-an-automated-pipeline-should-expire-19ef</link>
      <guid>https://dev.to/cadencestarter/why-approval-in-an-automated-pipeline-should-expire-19ef</guid>
      <description>&lt;p&gt;A file can be approved and still become unsafe five seconds later.&lt;/p&gt;

&lt;p&gt;The failure mode is simple:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;A human reviews a file.&lt;/li&gt;
&lt;li&gt;The workflow stores &lt;strong&gt;approved = true&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Someone edits one sentence.&lt;/li&gt;
&lt;li&gt;The filename is unchanged.&lt;/li&gt;
&lt;li&gt;Downstream automation continues from content nobody approved.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The approval belongs to a version of the content, not to the filename.&lt;/p&gt;

&lt;h2&gt;
  
  
  A tiny dependency-free approach
&lt;/h2&gt;

&lt;p&gt;Use a SHA-256 fingerprint of the reviewed bytes:&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="kn"&gt;from&lt;/span&gt; &lt;span class="n"&gt;hashlib&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;sha256&lt;/span&gt;
&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="n"&gt;pathlib&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;Path&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;fingerprint&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;path&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;str&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt; &lt;span class="nb"&gt;str&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nf"&gt;sha256&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;Path&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;path&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="nf"&gt;read_bytes&lt;/span&gt;&lt;span class="p"&gt;()).&lt;/span&gt;&lt;span class="nf"&gt;hexdigest&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;When the reviewer approves the file, store that fingerprint. Before dependent work runs, compare the current fingerprint with the approved one:&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;def&lt;/span&gt; &lt;span class="nf"&gt;approval_state&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;path&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;str&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;approved_hash&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;str&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="bp"&gt;None&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt; &lt;span class="nb"&gt;str&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;approved_hash&lt;/span&gt; &lt;span class="ow"&gt;is&lt;/span&gt; &lt;span class="bp"&gt;None&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;waiting_for_approval&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="nf"&gt;fingerprint&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;path&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;!=&lt;/span&gt; &lt;span class="n"&gt;approved_hash&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;stale&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;approved&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That gives the pipeline an honest rule:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;no recorded fingerprint → waiting for approval&lt;/li&gt;
&lt;li&gt;fingerprint matches → approved&lt;/li&gt;
&lt;li&gt;fingerprint changed → stale, block downstream work&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Why modification time is not enough
&lt;/h2&gt;

&lt;p&gt;Modification times help find potentially stale outputs, but they are not proof of reviewed content. Files can be copied, restored, or touched without a meaningful content change. A content fingerprint binds the approval to the exact bytes a human reviewed.&lt;/p&gt;

&lt;h2&gt;
  
  
  The wider workflow rule
&lt;/h2&gt;

&lt;p&gt;The same principle applies to source notes, claims, scene plans, asset manifests, and release checklists. Each approval should name:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;the file or manifest&lt;/li&gt;
&lt;li&gt;the content fingerprint&lt;/li&gt;
&lt;li&gt;who or what recorded the approval&lt;/li&gt;
&lt;li&gt;the timestamp&lt;/li&gt;
&lt;li&gt;the downstream stages that depend on it&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;When content changes, reopen the gate. Do not silently carry approval forward.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it in 3 KB
&lt;/h2&gt;

&lt;p&gt;I extracted the core idea into a dependency-free Python sample:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://noxytree.github.io/cadence-starter/downloads/cadence-approval-sample.zip" rel="noopener noreferrer"&gt;https://noxytree.github.io/cadence-starter/downloads/cadence-approval-sample.zip&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Try:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;python cadence_sample.py approve script.md
# edit script.md
python cadence_sample.py status script.md
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The second command reports the approval as stale.&lt;/p&gt;

&lt;h2&gt;
  
  
  A larger local implementation
&lt;/h2&gt;

&lt;p&gt;I expanded this idea into two complete local Python source tools: &lt;strong&gt;Cadence Starter&lt;/strong&gt; for dependency state, next-safe-action resolution, exact-content approvals, and dry-run-first execution; and &lt;strong&gt;Approval Guard Kit&lt;/strong&gt; for dropping named fingerprint gates into an existing pipeline.&lt;/p&gt;

&lt;p&gt;The bundle includes 31 passing tests, docs, schemas, examples, templates, and automatic digital delivery. Launch-day checkout is &lt;strong&gt;$1.05 with code FIRSTSALE until 23:59 UK time on 18 July 2026&lt;/strong&gt;; the base price returns to $7 after the deadline:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://noxytree.github.io/cadence-starter/" rel="noopener noreferrer"&gt;https://noxytree.github.io/cadence-starter/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The free sample above remains enough to inspect and reuse the core fingerprinting pattern under its MIT license. The paid bundle is the complete source implementation, not a hosted service or managed setup.&lt;/p&gt;

&lt;p&gt;Neither tool requires Claude, an OpenAI account, telemetry, a hosted service, or a subscription.&lt;/p&gt;

&lt;p&gt;How do you bind human approval to changing local files: hashes, signed manifests, commit SHAs, or something else?&lt;/p&gt;

</description>
      <category>python</category>
      <category>automation</category>
      <category>tutorial</category>
      <category>productivity</category>
    </item>
  </channel>
</rss>
