<?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: logik systems</title>
    <description>The latest articles on DEV Community by logik systems (@logiksystems).</description>
    <link>https://dev.to/logiksystems</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%2F4054716%2Fe5eca153-595d-47b4-85c0-722660218f8c.png</url>
      <title>DEV Community: logik systems</title>
      <link>https://dev.to/logiksystems</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/logiksystems"/>
    <language>en</language>
    <item>
      <title>Designing a Pre-Execution Governance Gate for AI Calls</title>
      <dc:creator>logik systems</dc:creator>
      <pubDate>Thu, 30 Jul 2026 10:16:55 +0000</pubDate>
      <link>https://dev.to/logiksystems/designing-a-pre-execution-governance-gate-for-ai-calls-45p8</link>
      <guid>https://dev.to/logiksystems/designing-a-pre-execution-governance-gate-for-ai-calls-45p8</guid>
      <description>&lt;h1&gt;
  
  
  Designing a Pre-Execution Governance Gate for AI Calls
&lt;/h1&gt;

&lt;p&gt;Most AI-governance systems observe a decision after it has already happened.&lt;br&gt;
That is useful for reporting, but it is too late to prevent a disallowed request&lt;br&gt;
from reaching a model provider.&lt;/p&gt;

&lt;p&gt;We are testing a stricter boundary: a deterministic governance decision must&lt;br&gt;
complete before an external AI request is released.&lt;/p&gt;

&lt;p&gt;This post describes the architecture, the evidence model already implemented in&lt;br&gt;
Logik Systems, and the benchmark that still has to be passed. It is an&lt;br&gt;
engineering design, not a compliance or performance claim.&lt;/p&gt;
&lt;h2&gt;
  
  
  The operational problem
&lt;/h2&gt;

&lt;p&gt;The EU AI Act separates record-keeping and human-oversight requirements. Article&lt;br&gt;
12 addresses automatic logging capabilities for high-risk AI systems. Article&lt;br&gt;
14 addresses effective human oversight. Neither article prescribes one database&lt;br&gt;
or consensus algorithm.&lt;/p&gt;

&lt;p&gt;For an engineering team, however, the operational question is unavoidable:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Where is the control decision made, and can the system prove which policy,&lt;br&gt;
evidence and accountable actor produced it?&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Putting every request behind a cross-region consensus round would provide a&lt;br&gt;
strong ordering point, but it can also make the governance layer the slowest&lt;br&gt;
component in the request path. Avoiding the check is not acceptable. Pretending&lt;br&gt;
that the network is free is not engineering.&lt;/p&gt;
&lt;h2&gt;
  
  
  The proposed split: local decision, serializable control record
&lt;/h2&gt;

&lt;p&gt;The design separates the synchronous decision path from the durable control&lt;br&gt;
record.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;A request is classified in its home region.&lt;/li&gt;
&lt;li&gt;A versioned policy bundle and the current control state are loaded locally.&lt;/li&gt;
&lt;li&gt;A deterministic evaluator returns &lt;code&gt;allow&lt;/code&gt;, &lt;code&gt;deny&lt;/code&gt;, or &lt;code&gt;require_confirmation&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;The decision envelope is appended to an ordered control log.&lt;/li&gt;
&lt;li&gt;Only an &lt;code&gt;allow&lt;/code&gt; result releases the external model request.&lt;/li&gt;
&lt;li&gt;Evidence and confirmation events are reconciled into the audit state.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The home-region rule matters because it gives every governed system one&lt;br&gt;
authoritative write location for the synchronous decision. Replication can occur&lt;br&gt;
outside the critical path while the ordered control record remains&lt;br&gt;
serializable.&lt;/p&gt;

&lt;p&gt;This is the property we want from a SLOG-inspired topology. We are not claiming&lt;br&gt;
that the current Logik Systems production repository implements the SLOG paper,&lt;br&gt;
and we will not use that name as a shipped-product claim until the topology and&lt;br&gt;
benchmark are published.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;AI request
    |
    v
home-region policy snapshot
    |
    v
deterministic evaluator ----&amp;gt; deny / confirmation
    |
    v allow
append decision envelope
    |
    v
external model API
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  What is already implemented
&lt;/h2&gt;

&lt;p&gt;The current product contains versioned evidence records, SHA-256 verification,&lt;br&gt;
predecessor links (&lt;code&gt;prevVersionId&lt;/code&gt;), snapshot-chain construction, recurring&lt;br&gt;
confirmation state and audit exports.&lt;/p&gt;

&lt;p&gt;A simplified evidence version is:&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="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"evidenceVersionId"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"ev_0187"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"sha256"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"9d9f...3a2c"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"prevVersionId"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"ev_0186"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"recordedAt"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"2026-07-27T09:12:00Z"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"controlId"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"human-oversight"&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The digest protects the bytes of an evidence object. The predecessor reference&lt;br&gt;
orders versions. A separate snapshot digest can commit to the normalized control&lt;br&gt;
state:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;snapshotHash[n] =
  SHA-256(
    canonical(snapshot[n])
    || snapshotHash[n-1]
  )
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Verification recomputes the digest from canonical input and checks the&lt;br&gt;
predecessor reference. A mismatch is evidence of inconsistency; it is not&lt;br&gt;
silently repaired.&lt;/p&gt;

&lt;p&gt;That is a useful integrity property, but wording matters. A SHA-256-linked record&lt;br&gt;
is not automatically immutable. Immutability also depends on key custody,&lt;br&gt;
authorization, storage controls, retention and independent anchoring. Ed25519&lt;br&gt;
signatures are a planned hardening step, not a current production claim.&lt;/p&gt;

&lt;h2&gt;
  
  
  What still needs proof
&lt;/h2&gt;

&lt;p&gt;The pre-execution gate becomes a product capability only after four things are&lt;br&gt;
measured and published:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Fail-closed behavior:&lt;/strong&gt; the model call is never released after a deny,
timeout or unavailable policy snapshot.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Determinism:&lt;/strong&gt; identical canonical inputs and policy versions produce the
same decision envelope.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Ordering:&lt;/strong&gt; concurrent decisions receive a reproducible order in the
authoritative control log.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Latency:&lt;/strong&gt; p50, p95 and p99 overhead are measured by region, payload size,
cache state and failure mode.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The latency target is an experiment, not a headline. We will publish numbers&lt;br&gt;
only with the harness, environment, sample size and raw result artifact.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why this is relevant to EU AI Act engineering
&lt;/h2&gt;

&lt;p&gt;The Act does not say “use this architecture.” It does create a need for&lt;br&gt;
operators to connect logging, oversight, responsibilities and evidence to the&lt;br&gt;
actual system lifecycle.&lt;/p&gt;

&lt;p&gt;A pre-execution gate can make that connection explicit:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;the policy version becomes part of the decision record;&lt;/li&gt;
&lt;li&gt;a required human confirmation can block release;&lt;/li&gt;
&lt;li&gt;evidence lineage can be inspected independently;&lt;/li&gt;
&lt;li&gt;audit exports can reproduce the control state at a point in time.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That is the boundary Logik Systems is building toward: not a folder of compliance&lt;br&gt;
documents, but a control record that can be inspected and challenged.&lt;/p&gt;

&lt;h2&gt;
  
  
  Review request
&lt;/h2&gt;

&lt;p&gt;We are looking for technical review of the boundary, not endorsement:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Which failure mode would break the ordering assumption?&lt;/li&gt;
&lt;li&gt;Where should an independent anchor sit?&lt;/li&gt;
&lt;li&gt;Which benchmark distribution would make the latency result credible?&lt;/li&gt;
&lt;li&gt;What would you require before calling the decision record tamper-evident?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The implementation proof will follow the measurements.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.logik-systems.com/r/pre-execution-governance?source=devto&amp;amp;medium=syndicated-engineering&amp;amp;content=full-article&amp;amp;destination=article" rel="noopener noreferrer"&gt;Request a scoped written review through the controlled commercial path&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Primary references
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://eur-lex.europa.eu/eli/reg/2024/1689/oj/eng" rel="noopener noreferrer"&gt;Regulation (EU) 2024/1689 — Articles 12 and 14&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.vldb.org/pvldb/vol12/p1747-ren.pdf" rel="noopener noreferrer"&gt;SLOG: Serializable, Low-latency, Geo-replicated Transactions (PVLDB)&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>ai</category>
      <category>architecture</category>
      <category>cryptography</category>
      <category>distributedsystems</category>
    </item>
  </channel>
</rss>
