<?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: Averoic Digital Group</title>
    <description>The latest articles on DEV Community by Averoic Digital Group (@averoic).</description>
    <link>https://dev.to/averoic</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%2F4285303%2F93cf0bcb-1b2d-4337-a216-88c2a2e07e7b.png</url>
      <title>DEV Community: Averoic Digital Group</title>
      <link>https://dev.to/averoic</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/averoic"/>
    <language>en</language>
    <item>
      <title>Modelling maker-checker approvals: a small data model that survives audits</title>
      <dc:creator>Averoic Digital Group</dc:creator>
      <pubDate>Sat, 05 Dec 2026 18:48:21 +0000</pubDate>
      <link>https://dev.to/averoic/modelling-maker-checker-approvals-a-small-data-model-that-survives-audits-3lbj</link>
      <guid>https://dev.to/averoic/modelling-maker-checker-approvals-a-small-data-model-that-survives-audits-3lbj</guid>
      <description>&lt;p&gt;Maker-checker sounds simple: one person prepares a change, a different person approves it. In code it tends to start as a&lt;br&gt;
boolean &lt;code&gt;approved&lt;/code&gt; column and an &lt;code&gt;if (user.id !== createdBy)&lt;/code&gt; check. That holds until an auditor asks &lt;em&gt;who rejected this last&lt;br&gt;
March, and why&lt;/em&gt;, or until the approval limit changes and nobody can say which rule applied to an old request.&lt;/p&gt;

&lt;p&gt;Here is a small model that has held up for us across purchase orders, vendor onboarding and credit approvals.&lt;/p&gt;
&lt;h2&gt;
  
  
  1. Requests are immutable proposals, not rows you edit
&lt;/h2&gt;

&lt;p&gt;Treat each request as a proposal with a version. The maker can revise it, but a revision creates a new version; the checker&lt;br&gt;
always approves a specific version.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"requestId"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"PO-1042"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"version"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"purchase_order"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"amount"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;480000&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"currency"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"INR"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"preparedBy"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"user:anita"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"payloadHash"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"sha256:9f2c…"&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Approving &lt;code&gt;PO-1042 v3&lt;/code&gt; means nothing can change underneath the approval. If the amount is edited, it becomes &lt;code&gt;v4&lt;/code&gt; and needs a&lt;br&gt;
fresh decision.&lt;/p&gt;
&lt;h2&gt;
  
  
  2. Decisions are their own records, including the "no"
&lt;/h2&gt;

&lt;p&gt;Do not store the decision as a status on the request. Store every decision as an append-only event:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;"requestId"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"PO-1042"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"version"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"step"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"manager"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"decision"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"REJECTED"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"by"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"user:rahul"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"at"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"2026-12-05T10:14:22Z"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"comment"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Quote from second vendor missing"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Rejections and send-backs are where the real control evidence lives. If they only exist in chat, your trail shows a clean&lt;br&gt;
approval history that never happened that way.&lt;/p&gt;
&lt;h2&gt;
  
  
  3. Separation of duties is a rule, not a convention
&lt;/h2&gt;

&lt;p&gt;Enforce it where the decision is written, not in the UI:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;the person who prepared a version cannot decide on it;&lt;/li&gt;
&lt;li&gt;the same person cannot approve two consecutive steps of the same request;&lt;/li&gt;
&lt;li&gt;shared or generic accounts cannot be makers or checkers.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;UI checks are for convenience. The write path is where the control is.&lt;/p&gt;
&lt;h2&gt;
  
  
  4. Route by a versioned approval matrix
&lt;/h2&gt;

&lt;p&gt;Who approves depends on type, amount and sometimes risk. Keep that in data, not in &lt;code&gt;if&lt;/code&gt; statements:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;"matrixVersion"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;7&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"purchase_order"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"bands"&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="nl"&gt;"upTo"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;50000&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;   &lt;span class="nl"&gt;"steps"&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="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;"upTo"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;500000&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;  &lt;span class="nl"&gt;"steps"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"manager"&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="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;"upTo"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;    &lt;span class="nl"&gt;"steps"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"manager"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"director"&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="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Store the &lt;code&gt;matrixVersion&lt;/code&gt; on each request when it is submitted. When the limits change next year, old requests still show&lt;br&gt;
which rule they followed. Treat a change to the matrix itself as a maker-checker event.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. AI agents are makers, never checkers (for irreversible actions)
&lt;/h2&gt;

&lt;p&gt;More systems now let an agent draft a payment or a record change. The same model works: give the agent its own identity,&lt;br&gt;
let it be the maker, and require a named human checker for anything that cannot be undone. The decision record then reads&lt;br&gt;
"proposed by agent X, approved by person Y", which is exactly what an auditor wants to see.&lt;/p&gt;

&lt;h2&gt;
  
  
  The checklist
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Approve versions, not rows.&lt;/li&gt;
&lt;li&gt;Keep every decision as an append-only event, rejections included.&lt;/li&gt;
&lt;li&gt;Enforce separation of duties on the write path.&lt;/li&gt;
&lt;li&gt;Route with a versioned approval matrix and stamp the version on each request.&lt;/li&gt;
&lt;li&gt;Agents can prepare, people approve the irreversible.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you want the non-technical version of the same ideas, we wrote a plain-English guide to the&lt;br&gt;
&lt;a href="https://averoic.com/insights/maker-checker-process" rel="noopener noreferrer"&gt;maker-checker process&lt;/a&gt; and a free&lt;br&gt;
&lt;a href="https://averoic.com/tools/approval-matrix-builder" rel="noopener noreferrer"&gt;approval matrix builder&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>architecture</category>
      <category>database</category>
      <category>workflow</category>
      <category>security</category>
    </item>
  </channel>
</rss>
