<?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: Afridi Ibrahim</title>
    <description>The latest articles on DEV Community by Afridi Ibrahim (@afridi_ibrahim_575277d15d).</description>
    <link>https://dev.to/afridi_ibrahim_575277d15d</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.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3862217%2F0a9c7ac9-b5a2-44b8-8e7d-6e1ac14cddd5.jpg</url>
      <title>DEV Community: Afridi Ibrahim</title>
      <link>https://dev.to/afridi_ibrahim_575277d15d</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/afridi_ibrahim_575277d15d"/>
    <language>en</language>
    <item>
      <title>Layer 5 is Missing: AI Guardrails Need Evidence, Not Logs</title>
      <dc:creator>Afridi Ibrahim</dc:creator>
      <pubDate>Sat, 11 Apr 2026 13:06:40 +0000</pubDate>
      <link>https://dev.to/afridi_ibrahim_575277d15d/layer-5-is-missing-ai-guardrails-need-evidence-not-logs-3akd</link>
      <guid>https://dev.to/afridi_ibrahim_575277d15d/layer-5-is-missing-ai-guardrails-need-evidence-not-logs-3akd</guid>
      <description>&lt;h2&gt;
  
  
  The standard guardrails stack
&lt;/h2&gt;

&lt;p&gt;Most modern AI guardrails architectures follow a similar 5-layer structure:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Input Screening — prompt filtering, injection detection
&lt;/li&gt;
&lt;li&gt;Dialog Control — flow control, policy enforcement
&lt;/li&gt;
&lt;li&gt;LLM Generation — model output
&lt;/li&gt;
&lt;li&gt;Output Validation — structure, safety, correctness
&lt;/li&gt;
&lt;li&gt;Audit Layer — logging, traceability, compliance
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Layers 1–4 are well-defined and actively implemented across frameworks.&lt;/p&gt;

&lt;p&gt;Layer 5 is where things break down.&lt;/p&gt;




&lt;h2&gt;
  
  
  The problem with Layer 5
&lt;/h2&gt;

&lt;p&gt;Almost every architecture mentions audit logging as a requirement:&lt;/p&gt;

&lt;p&gt;“log everything for compliance”&lt;br&gt;&lt;br&gt;
“ensure traceability”&lt;br&gt;&lt;br&gt;
“support forensic reconstruction”  &lt;/p&gt;

&lt;p&gt;But in practice, this usually means logs.&lt;/p&gt;

&lt;p&gt;Logs are not designed for compliance-grade evidence:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;not portable
&lt;/li&gt;
&lt;li&gt;not verifiable
&lt;/li&gt;
&lt;li&gt;not tamper-evident
&lt;/li&gt;
&lt;li&gt;difficult to share across systems
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;They are implementation details, not artifacts.&lt;/p&gt;




&lt;h2&gt;
  
  
  Why this matters
&lt;/h2&gt;

&lt;p&gt;Regulations like the EU AI Act (Article 12) require:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;traceability
&lt;/li&gt;
&lt;li&gt;auditability
&lt;/li&gt;
&lt;li&gt;documentation of system behavior
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This is not satisfied by raw logs sitting inside an application.&lt;/p&gt;

&lt;p&gt;Auditors, regulators, and external systems need &lt;strong&gt;portable evidence&lt;/strong&gt;, not internal debug data.&lt;/p&gt;




&lt;h2&gt;
  
  
  The missing piece: portable evidence
&lt;/h2&gt;

&lt;p&gt;What’s missing is a standardized artifact layer that sits on top of guardrails systems.&lt;/p&gt;

&lt;p&gt;Instead of:&lt;br&gt;
→ “we logged what happened”&lt;/p&gt;

&lt;p&gt;We need:&lt;br&gt;
→ “here is a verifiable record of what happened”&lt;/p&gt;




&lt;h2&gt;
  
  
  EPI as Layer 5
&lt;/h2&gt;

&lt;p&gt;EPI Recorder is an open-source approach to this problem.&lt;/p&gt;

&lt;p&gt;It produces &lt;code&gt;.epi&lt;/code&gt; artifacts — portable, signed records of:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;what input was processed
&lt;/li&gt;
&lt;li&gt;what policies were applied
&lt;/li&gt;
&lt;li&gt;what was allowed, blocked, or modified
&lt;/li&gt;
&lt;li&gt;what validations passed or failed
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;GitHub: &lt;a href="https://github.com/mohdibrahimaiml/epi-recorder" rel="noopener noreferrer"&gt;https://github.com/mohdibrahimaiml/epi-recorder&lt;/a&gt;&lt;br&gt;&lt;br&gt;
PyPI: &lt;a href="https://pypi.org/project/epi-recorder/" rel="noopener noreferrer"&gt;https://pypi.org/project/epi-recorder/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;These artifacts can be:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;stored
&lt;/li&gt;
&lt;li&gt;shared
&lt;/li&gt;
&lt;li&gt;independently verified
&lt;/li&gt;
&lt;li&gt;used in compliance workflows
&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  How this fits into existing systems
&lt;/h2&gt;

&lt;p&gt;This does not replace guardrails frameworks.&lt;/p&gt;

&lt;p&gt;It complements them.&lt;/p&gt;

&lt;p&gt;Any system (NeMo Guardrails, Guardrails AI, Agent Control, etc.) can add:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;a post-execution hook
&lt;/li&gt;
&lt;li&gt;an export API
&lt;/li&gt;
&lt;li&gt;or a plugin
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;to produce portable evidence artifacts.&lt;/p&gt;




&lt;h2&gt;
  
  
  Rethinking Layer 5
&lt;/h2&gt;

&lt;p&gt;The industry already agrees Layer 5 is required.&lt;/p&gt;

&lt;p&gt;The mistake is treating it as “logging.”&lt;/p&gt;

&lt;p&gt;Layer 5 should be:&lt;/p&gt;

&lt;p&gt;→ a portable evidence layer&lt;br&gt;&lt;br&gt;
→ standardized artifacts&lt;br&gt;&lt;br&gt;
→ verifiable outputs  &lt;/p&gt;

&lt;p&gt;Not just logs.&lt;/p&gt;




&lt;h2&gt;
  
  
  Final thought
&lt;/h2&gt;

&lt;p&gt;Guardrails control behavior.&lt;/p&gt;

&lt;p&gt;Evidence proves it.&lt;/p&gt;

&lt;p&gt;Without portable evidence, compliance remains incomplete.&lt;/p&gt;

&lt;p&gt;Layer 5 is not logging.&lt;/p&gt;

&lt;p&gt;Layer 5 is evidence.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>machinelearning</category>
      <category>opensource</category>
      <category>devops</category>
    </item>
  </channel>
</rss>
