<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Nis2 on lo0 — Tech Blog</title><link>https://blog.lo0.es/en/tags/nis2/</link><description>Recent content in Nis2 on lo0 — Tech Blog</description><generator>Hugo -- gohugo.io</generator><language>en</language><lastBuildDate>Thu, 11 Jun 2026 11:00:00 +0000</lastBuildDate><atom:link href="https://blog.lo0.es/en/tags/nis2/index.xml" rel="self" type="application/rss+xml"/><item><title>Hardening and secrets in the sovereign LLM stack: defence in depth</title><link>https://blog.lo0.es/en/posts/hardening-secrets-sovereign-llm-stack-defence-in-depth/</link><pubDate>Thu, 11 Jun 2026 11:00:00 +0000</pubDate><guid>https://blog.lo0.es/en/posts/hardening-secrets-sovereign-llm-stack-defence-in-depth/</guid><description>&lt;blockquote>
&lt;p>Part of the operational series on squeezing a generic on-premise 4×H100 SXM 80GB LLM cluster. The sibling pieces: the &lt;a href="https://blog.lo0.es/en/posts/end-to-end-document-ingestion-pdf-to-indexed-chunk/">document ingestion from PDF to indexed chunk&lt;/a> that fills the vector database, the &lt;a href="https://blog.lo0.es/en/posts/serving-embeddings-rerankers-tei-production/">embeddings and rerankers service with TEI in production&lt;/a> that feeds it, and, the most directly coupled to this post, the &lt;a href="https://blog.lo0.es/en/posts/gitops-inference-stack-flux/">GitOps of the inference stack with Flux&lt;/a>, because GitOps and secrets share a chicken-and-egg problem we solve here. Assembling all of this into a conversational assistant (LibreChat + LiteLLM + RAG) is covered by another post in the series, still in draft.&lt;/p>
&lt;/blockquote>
&lt;h2 id="tldr">TL;DR&lt;/h2>
&lt;p>A sovereign LLM inference stack is, at minimum, six services: a gateway (LiteLLM or equivalent), an inference engine (vLLM), an embeddings/rerankers service (TEI), a vector database, a state database (conversations, users) and a front end (LibreChat). Six services are six attack surfaces, and the assistant &amp;ldquo;works&amp;rdquo; as soon as the gateway returns tokens, long before it is hardened. This post walks through defence in depth layer by layer:&lt;/p>
&lt;ol>
&lt;li>&lt;strong>Secrets&lt;/strong>: never in the clear in git. &lt;code>sealed-secrets&lt;/code> (asymmetric encryption, controller in the cluster) vs SOPS/age (file encryption, simple, pure GitOps) vs External Secrets Operator + Vault (dynamic secrets, native rotation). GitOps&amp;rsquo;s chicken-and-egg problem.&lt;/li>
&lt;li>&lt;strong>Network&lt;/strong>: default-deny &lt;code>NetworkPolicy&lt;/code> + explicit allow; L3/L4 with the standard NetworkPolicy, L7 and DNS-based egress with Cilium (eBPF); egress control so the data does not leave the perimeter; internal mTLS.&lt;/li>
&lt;li>&lt;strong>Pod security&lt;/strong>: &lt;code>runAsNonRoot&lt;/code>, &lt;code>readOnlyRootFilesystem&lt;/code>, dropped capabilities, seccomp &lt;code>RuntimeDefault&lt;/code>, restricted Pod Security Standards, nothing privileged.&lt;/li>
&lt;li>&lt;strong>Supply chain&lt;/strong>: pin by digest, scan with Trivy, sign with cosign, admission control that rejects anything unsigned.&lt;/li>
&lt;li>&lt;strong>AuthN/Z&lt;/strong>: LiteLLM virtual keys, OIDC/LDAP in the front end, Kubernetes RBAC with least privilege.&lt;/li>
&lt;li>&lt;strong>Runtime&lt;/strong>: detection and, optionally, enforcement with Tetragon.&lt;/li>
&lt;li>&lt;strong>Data at rest&lt;/strong>: storage encryption, credentials for the vector database and the state database.&lt;/li>
&lt;/ol>
&lt;p>The thesis: hardening reduces the blast radius, it does not eliminate it. That is why you prioritise by impact, and the first job on a 4×H100 is the gateway↔vector store pair and egress-deny.&lt;/p>
&lt;h2 id="the-analogy-the-sovereign-office">The analogy: the sovereign office&lt;/h2>
&lt;p>Picture an office holding sensitive documentation: the corpus that feeds the RAG, the users&amp;rsquo; conversations, the engine&amp;rsquo;s credentials. It is not enough for the street door to lock. Real security is &lt;strong>defence in depth&lt;/strong>: several layers, each assuming the previous one can fail.&lt;/p>
&lt;div class="diagram" style="max-width:760px;margin:1.5rem auto;">
&lt;svg viewBox="0 0 760 520" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Defence in depth as concentric layers: perimeter, access control, fire partitions, safe, cameras, data">
&lt;defs>&lt;marker id="hd1" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="6" markerHeight="6" orient="auto">&lt;path d="M0,0 L10,5 L0,10 z" fill="#888"/>&lt;/marker>&lt;/defs>
&lt;rect x="20" y="20" width="720" height="480" rx="14" fill="none" stroke="#3b82f6" stroke-width="2"/>
&lt;text x="380" y="44" text-anchor="middle" font-family="sans-serif" font-size="13" font-weight="700" fill="#3b82f6">Perimeter — egress control (the data does not leave)&lt;/text>
&lt;rect x="58" y="58" width="644" height="404" rx="12" fill="none" stroke="#22c55e" stroke-width="2"/>
&lt;text x="380" y="80" text-anchor="middle" font-family="sans-serif" font-size="12" font-weight="600" fill="#22c55e">Access control at every door — default-deny NetworkPolicy&lt;/text>
&lt;rect x="100" y="94" width="560" height="332" rx="10" fill="none" stroke="#f59e0b" stroke-width="2"/>
&lt;text x="380" y="114" text-anchor="middle" font-family="sans-serif" font-size="12" font-weight="600" fill="#f59e0b">Fire partitions — Pod Security restricted + namespaces&lt;/text>
&lt;rect x="142" y="128" width="476" height="262" rx="9" fill="none" stroke="#888" stroke-width="1.6"/>
&lt;text x="380" y="148" text-anchor="middle" font-family="sans-serif" font-size="12" font-weight="600" fill="currentColor">Doorman who checks credentials — admission control (cosign)&lt;/text>
&lt;rect x="184" y="162" width="392" height="194" rx="8" fill="none" stroke="#888" stroke-width="1.4"/>
&lt;text x="380" y="182" text-anchor="middle" font-family="sans-serif" font-size="12" font-weight="600" fill="currentColor">Cameras — Tetragon/Falco (logging and detection)&lt;/text>
&lt;rect x="248" y="208" width="264" height="120" rx="10" fill="#ef4444" fill-opacity="0.12" stroke="#ef4444" stroke-width="2"/>
&lt;text x="380" y="238" text-anchor="middle" font-family="sans-serif" font-size="13" font-weight="700" fill="#ef4444">Safe&lt;/text>
&lt;text x="380" y="262" text-anchor="middle" font-family="sans-serif" font-size="11" fill="currentColor">encrypted secrets + rotated key&lt;/text>
&lt;text x="380" y="284" text-anchor="middle" font-family="sans-serif" font-size="11" fill="currentColor">RAG corpus · conversations&lt;/text>
&lt;text x="380" y="306" text-anchor="middle" font-family="sans-serif" font-size="11" fill="currentColor">engine credentials&lt;/text>
&lt;text x="380" y="490" text-anchor="middle" font-family="sans-serif" font-size="10.5" font-style="italic" fill="#888">Each layer assumes the outer one can fall. Crossing them all is expensive; that cost is the security.&lt;/text>
&lt;/svg>
&lt;/div>
&lt;p>The mapping is direct:&lt;/p>
&lt;ul>
&lt;li>&lt;strong>The building&amp;rsquo;s perimeter&lt;/strong> is &lt;strong>egress control&lt;/strong>: making sure a leaked secret or a compromised process cannot exfiltrate the corpus to an external server. It is the most underrated layer and the first one I put in place in a sovereign deployment.&lt;/li>
&lt;li>&lt;strong>Access control at every interior door&lt;/strong> is the default-deny &lt;code>NetworkPolicy&lt;/code>: the front end does not talk to the vector database directly because it has no reason to; only the strictly necessary pairs are open.&lt;/li>
&lt;li>&lt;strong>The fire partitions&lt;/strong> are pod isolation (&lt;code>restricted&lt;/code>) and namespaces: if one service catches fire, the fire does not jump to the one next door.&lt;/li>
&lt;li>&lt;strong>The doorman who checks credentials&lt;/strong> is the admission control that verifies each image&amp;rsquo;s &lt;strong>cosign signature&lt;/strong> before letting it into the cluster.&lt;/li>
&lt;li>&lt;strong>The cameras&lt;/strong> are Tetragon/Falco: they record what each process did and detect (or kill) anything anomalous.&lt;/li>
&lt;li>&lt;strong>The safe with a rotated key&lt;/strong> is the secrets: encrypted at rest, out of git, and rotated so a stolen key expires.&lt;/li>
&lt;/ul>
&lt;p>No layer is sufficient on its own. The building is secure because crossing them all is expensive.&lt;/p>
&lt;h2 id="layer-1--secrets-gitopss-chicken-and-egg-problem">Layer 1 — Secrets: GitOps&amp;rsquo;s chicken-and-egg problem&lt;/h2>
&lt;p>The stack is deployed by GitOps: the sibling piece on &lt;a href="https://blog.lo0.es/en/posts/gitops-inference-stack-flux/">Flux&lt;/a> reconciles the state declared in git against the cluster. That is excellent for manifests, but there is a foundational problem: the inference engine needs the Hugging Face token to download the model, the state database needs its password, the gateway needs its master key. &lt;strong>Those secrets cannot go into git in the clear.&lt;/strong> Anyone with read access to the repo, and in an organisation with generous &lt;code>read&lt;/code> that is a lot of people, plus every repo backup, plus every fork, would read them.&lt;/p>
&lt;p>The chicken and the egg: GitOps wants all state to be in git, but secrets cannot be in git in the clear. The solution comes in three families:&lt;/p>
&lt;h3 id="family-a--sealed-secrets-asymmetric-encryption-controller-in-the-cluster">Family A — sealed-secrets (asymmetric encryption, controller in the cluster)&lt;/h3>
&lt;p>&lt;a href="https://github.com/bitnami-labs/sealed-secrets">Bitnami Sealed Secrets&lt;/a> is a controller running in the cluster plus a client CLI, &lt;code>kubeseal&lt;/code>. It uses asymmetric cryptography: there is a key pair. The public one is held by developers and is used to encrypt; the private one lives only in the cluster&amp;rsquo;s controller and is used to decrypt. The flow:&lt;/p>
&lt;ol>
&lt;li>The developer takes a normal &lt;code>Secret&lt;/code> and encrypts it with &lt;code>kubeseal&lt;/code>, which obtains the controller&amp;rsquo;s public key. Result: a &lt;code>SealedSecret&lt;/code> resource.&lt;/li>
&lt;li>That &lt;code>SealedSecret&lt;/code> &lt;strong>is&lt;/strong> committed to git in the clear — it is encrypted, it is not readable.&lt;/li>
&lt;li>The controller in the cluster detects it, decrypts it with its private key and creates the real Kubernetes &lt;code>Secret&lt;/code> in the target namespace.&lt;/li>
&lt;/ol>
&lt;p>The key property: because the private key &lt;strong>never leaves the cluster&lt;/strong>, neither the developer nor anyone with access to git can decrypt. And the encryption includes the namespace name: a &lt;code>SealedSecret&lt;/code> sealed for &lt;code>inferencia&lt;/code> cannot be moved to &lt;code>front&lt;/code> and decrypted there — it behaves as if each namespace had its own key. The controller also manages rotation of the sealing keys, labelling them as &lt;code>active&lt;/code> or &lt;code>compromised&lt;/code>.&lt;/p>
&lt;p>Advantage: it fits pure GitOps perfectly, the encrypted secret lives with the rest of the state. Limitation: the secret, once decrypted, ends up as a normal Kubernetes &lt;code>Secret&lt;/code> — it sits in &lt;code>etcd&lt;/code>, and &lt;code>etcd&lt;/code> has to be encrypted separately (we will see that in layer 7).&lt;/p>
&lt;h3 id="family-b--sops--age-file-encryption-simple">Family B — SOPS + age (file encryption, simple)&lt;/h3>
&lt;p>&lt;a href="https://github.com/getsops/sops">SOPS&lt;/a> encrypts the whole YAML/JSON file (or only its values) and leaves it in git encrypted, decrypting it only at deployment time. It supports cloud KMS (AWS/GCP/Azure), PGP and, the relevant one for on-premise sovereignty, age, a simple serverless offline encryption scheme. The GitOps operator (Flux brings native SOPS integration) decrypts on reconciliation using the age key stored in the cluster.&lt;/p>
&lt;p>Advantage: simple, scriptable, with no server to maintain; the operational weight falls on safeguarding the age key. It is the usual recommendation for small teams or for getting started. Limitation: rotation is manual (re-encrypt everything with the new key) and there are no dynamic secrets.&lt;/p>
&lt;h3 id="family-c--external-secrets-operator--vault-dynamic-secrets-native-rotation">Family C — External Secrets Operator + Vault (dynamic secrets, native rotation)&lt;/h3>
&lt;p>The &lt;a href="https://external-secrets.io/">External Secrets Operator (ESO)&lt;/a> &lt;strong>keeps no secrets in git at all&lt;/strong>. All that goes into git is an &lt;code>ExternalSecret&lt;/code>: a reference saying &amp;ldquo;the &lt;code>password&lt;/code> field comes from path &lt;code>secret/data/vectordb&lt;/code> in such-and-such a &lt;code>SecretStore&lt;/code>&amp;rdquo;. The operator reads from an external store, typically &lt;a href="https://developer.hashicorp.com/vault">HashiCorp Vault&lt;/a>, and synchronises the Kubernetes &lt;code>Secret&lt;/code>. Vault keeps the secrets in its own encrypted backend and serves them over an authenticated API, so that they &lt;strong>never reside in git&lt;/strong> and, with its dynamic engines, it can issue short-lived database credentials that expire on their own.&lt;/p>
&lt;p>Advantage: native rotation, dynamic secrets, centralised auditing, a single point of governance. Limitation: you have to operate Vault (sealing/unsealing, high availability, access policy), which is real work.&lt;/p>
&lt;h3 id="how-to-choose-and-rotation">How to choose, and rotation&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th>Criterion&lt;/th>
&lt;th>sealed-secrets&lt;/th>
&lt;th>SOPS + age&lt;/th>
&lt;th>ESO + Vault&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td>Secret in git&lt;/td>
&lt;td>encrypted&lt;/td>
&lt;td>encrypted&lt;/td>
&lt;td>reference only&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Extra server&lt;/td>
&lt;td>lightweight controller&lt;/td>
&lt;td>none&lt;/td>
&lt;td>Vault (heavy)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Rotation&lt;/td>
&lt;td>automatic sealing keys&lt;/td>
&lt;td>manual (re-encrypt)&lt;/td>
&lt;td>native / dynamic&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Dynamic (short-lived) secrets&lt;/td>
&lt;td>no&lt;/td>
&lt;td>no&lt;/td>
&lt;td>yes&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Fit with pure GitOps&lt;/td>
&lt;td>excellent&lt;/td>
&lt;td>excellent&lt;/td>
&lt;td>good (references)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Operational curve&lt;/td>
&lt;td>low&lt;/td>
&lt;td>very low&lt;/td>
&lt;td>high&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;p>For a sovereign 4×H100 getting started, &lt;strong>SOPS/age or sealed-secrets&lt;/strong> cover 90% at minimal cost. When the system grows and requirements for frequent rotation and auditing appear, typical in ENS High Category scenarios, you migrate to &lt;strong>ESO + Vault&lt;/strong>. The rotation rule: &lt;strong>a secret that never rotates is a secret that, once leaked, is leaked forever&lt;/strong>. Rotation does not prevent the leak; it bounds its window of validity. We will come back to that when we talk about blast radius.&lt;/p>
&lt;h2 id="layer-2--network-default-deny-egress-and-the-arithmetic-of-the-surface">Layer 2 — Network: default-deny, egress and the arithmetic of the surface&lt;/h2>
&lt;h3 id="the-arithmetic-of-communication-pairs">The arithmetic of communication pairs&lt;/h3>
&lt;p>Without a network policy, in Kubernetes &lt;strong>every pod can talk to every pod&lt;/strong>. That is the default posture, and it is the worst one for a sovereign system. With $N$ services, the number of possible ordered communication pairs (who-can-call-whom) is:&lt;/p>
$$P_{\text{abierto}} = N \cdot (N-1) \approx N^2$$
&lt;p>With our $N = 8$ components (gateway, vLLM, TEI, vector database, state database, front end, plus the secrets controller and the observability one), that is $8 \cdot 7 = 56$ possible directed pairs. Fifty-six paths along which a compromised service could pivot laterally.&lt;/p>
&lt;p>Now we apply a default-deny &lt;code>NetworkPolicy&lt;/code>: nothing talks to anything except what is explicitly allowed. The real whitelist of an LLM stack is small. The strictly necessary pairs:&lt;/p>
&lt;ul>
&lt;li>front end → gateway&lt;/li>
&lt;li>gateway → vLLM&lt;/li>
&lt;li>gateway → TEI&lt;/li>
&lt;li>gateway → vector database&lt;/li>
&lt;li>gateway → state database&lt;/li>
&lt;li>front end → state database (sessions/users)&lt;/li>
&lt;/ul>
&lt;p>That is $E = 6$ edges. The communication surface falls from $56$ to $6$:&lt;/p>
$$\frac{E}{P_{\text{abierto}}} = \frac{6}{56} \approx 0.107$$
&lt;p>Almost &lt;strong>89% of the possible paths are closed&lt;/strong>. The front end can no longer touch vLLM or TEI or the vector database directly; if somebody compromises the front end, they have no network route to the corpus. This is the difference between $\sim N^2$ and a whitelist $E \ll N^2$.&lt;/p>
&lt;div class="diagram" style="max-width:720px;margin:1.5rem auto;">
&lt;svg viewBox="0 0 720 380" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Service graph with default-deny: allowed edges in green, blocked ones in dotted red">
&lt;text x="360" y="24" text-anchor="middle" font-family="sans-serif" font-size="13" font-weight="700" fill="currentColor">Default-deny model — green allowed, red blocked&lt;/text>
&lt;!-- nodes -->
&lt;circle cx="120" cy="90" r="34" fill="#3b82f6" fill-opacity="0.15" stroke="#3b82f6" stroke-width="2"/>
&lt;text x="120" y="94" text-anchor="middle" font-family="sans-serif" font-size="11" font-weight="600" fill="currentColor">front&lt;/text>
&lt;circle cx="360" cy="90" r="34" fill="#3b82f6" fill-opacity="0.15" stroke="#3b82f6" stroke-width="2"/>
&lt;text x="360" y="94" text-anchor="middle" font-family="sans-serif" font-size="11" font-weight="600" fill="currentColor">gateway&lt;/text>
&lt;circle cx="600" cy="60" r="34" fill="#3b82f6" fill-opacity="0.15" stroke="#3b82f6" stroke-width="2"/>
&lt;text x="600" y="64" text-anchor="middle" font-family="sans-serif" font-size="11" font-weight="600" fill="currentColor">vLLM&lt;/text>
&lt;circle cx="600" cy="160" r="34" fill="#3b82f6" fill-opacity="0.15" stroke="#3b82f6" stroke-width="2"/>
&lt;text x="600" y="164" text-anchor="middle" font-family="sans-serif" font-size="11" font-weight="600" fill="currentColor">TEI&lt;/text>
&lt;circle cx="360" cy="270" r="34" fill="#3b82f6" fill-opacity="0.15" stroke="#3b82f6" stroke-width="2"/>
&lt;text x="360" y="267" text-anchor="middle" font-family="sans-serif" font-size="10" font-weight="600" fill="currentColor">vector&lt;/text>
&lt;text x="360" y="280" text-anchor="middle" font-family="sans-serif" font-size="10" font-weight="600" fill="currentColor">DB&lt;/text>
&lt;circle cx="120" cy="270" r="34" fill="#3b82f6" fill-opacity="0.15" stroke="#3b82f6" stroke-width="2"/>
&lt;text x="120" y="267" text-anchor="middle" font-family="sans-serif" font-size="10" font-weight="600" fill="currentColor">state&lt;/text>
&lt;text x="120" y="280" text-anchor="middle" font-family="sans-serif" font-size="10" font-weight="600" fill="currentColor">DB&lt;/text>
&lt;!-- allowed edges (green) -->
&lt;path d="M154,90 L326,90" stroke="#22c55e" stroke-width="2.4" fill="none"/>
&lt;path d="M392,78 L568,66" stroke="#22c55e" stroke-width="2.4" fill="none"/>
&lt;path d="M392,102 L568,150" stroke="#22c55e" stroke-width="2.4" fill="none"/>
&lt;path d="M372,122 L360,236" stroke="#22c55e" stroke-width="2.4" fill="none"/>
&lt;path d="M340,120 L140,238" stroke="#22c55e" stroke-width="2.4" fill="none"/>
&lt;path d="M120,124 L120,236" stroke="#22c55e" stroke-width="2.4" fill="none"/>
&lt;!-- blocked edges (red dashed) -->
&lt;path d="M146,116 L334,250" stroke="#ef4444" stroke-width="1.6" stroke-dasharray="5 4" fill="none"/>
&lt;path d="M150,108 L572,150" stroke="#ef4444" stroke-width="1.6" stroke-dasharray="5 4" fill="none"/>
&lt;path d="M154,96 L566,62" stroke="#ef4444" stroke-width="1.6" stroke-dasharray="5 4" fill="none"/>
&lt;path d="M388,256 L572,170" stroke="#ef4444" stroke-width="1.6" stroke-dasharray="5 4" fill="none"/>
&lt;text x="360" y="350" text-anchor="middle" font-family="sans-serif" font-size="11" fill="#22c55e">6 allowed edges&lt;/text>
&lt;text x="360" y="366" text-anchor="middle" font-family="sans-serif" font-size="11" fill="#ef4444">~50 remaining paths closed&lt;/text>
&lt;/svg>
&lt;/div>
&lt;h3 id="standard-l3l4-l7-and-egress-with-cilium">Standard L3/L4, L7 and egress with Cilium&lt;/h3>
&lt;p>Kubernetes&amp;rsquo; native &lt;code>NetworkPolicy&lt;/code> operates at L3/L4: it selects pods by label and allows/denies by port and protocol. That covers the bulk of the whitelist. But it has limits: it does not understand DNS or HTTP. This is where &lt;a href="https://docs.cilium.io/en/stable/network/kubernetes/policy/">Cilium&lt;/a> comes in, applying policies in the kernel via eBPF and extending them with &lt;code>CiliumNetworkPolicy&lt;/code>:&lt;/p>
&lt;ul>
&lt;li>&lt;strong>Egress by FQDN/DNS&lt;/strong>: instead of pinning IPs (which change), allow &lt;code>egress&lt;/code> only to &lt;code>huggingface.co&lt;/code> so vLLM can download the model and block the rest. Critical for egress control.&lt;/li>
&lt;li>&lt;strong>L7&lt;/strong>: allow only certain HTTP methods/paths between the gateway and an internal service.&lt;/li>
&lt;li>&lt;strong>Enforcement modes&lt;/strong>: in the default mode, an endpoint with no policy selecting it has everything open; in &lt;em>always&lt;/em> mode, &lt;strong>everything is denied&lt;/strong> until a policy explicitly opens it. For a sovereign system, &lt;em>always&lt;/em> + default-deny is the target posture.&lt;/li>
&lt;/ul>
&lt;p>&lt;strong>Egress control is the sovereign piece par excellence.&lt;/strong> An internal service being unable to open connections to the internet except to a handful of explicit destinations means that, even if vLLM or the gateway is compromised, &lt;strong>the corpus cannot leave the perimeter&lt;/strong>. The RAG is the asset of value; egress-deny is what stops it leaking out.&lt;/p>
&lt;h3 id="internal-mtls">Internal mTLS&lt;/h3>
&lt;p>The &lt;code>NetworkPolicy&lt;/code> says &lt;em>who&lt;/em> can talk to whom, but it neither encrypts nor authenticates east-west traffic. For that, mTLS (mutual TLS: client and server authenticate each other). Cilium offers native mutual authentication; alternatives such as Linkerd or Istio give you a full service mesh. For a six-service stack, Istio&amp;rsquo;s full mesh is usually over-engineering; Cilium&amp;rsquo;s mutual authentication or Linkerd (lighter) is proportionate. The effect: an attacker on the cluster network cannot impersonate the gateway or eavesdrop on internal traffic in the clear.&lt;/p>
&lt;h2 id="layer-3--pod-security-restricted-and-nothing-privileged">Layer 3 — Pod security: restricted, and nothing privileged&lt;/h2>
&lt;p>The &lt;a href="https://kubernetes.io/docs/concepts/security/pod-security-standards/">Pod Security Standards&lt;/a> define three profiles: &lt;code>privileged&lt;/code> (no restrictions), &lt;code>baseline&lt;/code> (the reasonable minimum) and &lt;code>restricted&lt;/code> (hardened). The target for the whole LLM stack is &lt;code>restricted&lt;/code>, applied via Pod Security Admission with a namespace label in &lt;code>enforce&lt;/code> mode. The &lt;code>restricted&lt;/code> profile requires:&lt;/p>
&lt;ul>
&lt;li>&lt;strong>&lt;code>runAsNonRoot: true&lt;/code>&lt;/strong> and a &lt;code>runAsUser&lt;/code> other than 0. No container runs as root.&lt;/li>
&lt;li>&lt;strong>&lt;code>readOnlyRootFilesystem: true&lt;/code>&lt;/strong>. The root filesystem is read-only; anything that needs to write goes to an &lt;code>emptyDir&lt;/code> or an explicit volume. An attacker cannot leave persistent binaries in the container.&lt;/li>
&lt;li>&lt;strong>&lt;code>drop: [&amp;quot;ALL&amp;quot;]&lt;/code>&lt;/strong> of Linux capabilities. No capabilities that are not needed.&lt;/li>
&lt;li>&lt;strong>seccomp &lt;code>RuntimeDefault&lt;/code>&lt;/strong>, which applies the runtime&amp;rsquo;s profile and blocks dangerous syscalls.&lt;/li>
&lt;li>&lt;strong>&lt;code>allowPrivilegeEscalation: false&lt;/code>&lt;/strong>, nothing &lt;code>privileged&lt;/code>, no host namespaces.&lt;/li>
&lt;/ul>
&lt;p>The nuance with GPUs: pods using an H100 load NVIDIA&amp;rsquo;s device plugin, which historically tempted people to relax the &lt;code>securityContext&lt;/code>. You do not need to run the inference container as privileged in order to use the GPU; device access is managed by the plugin, and the vLLM pod can and should run &lt;code>restricted&lt;/code>. This is a fire partition: if vLLM is compromised, the attacker has a non-root process, with no capabilities, a read-only FS and trimmed syscalls — a terrible starting point for escalation.&lt;/p>
&lt;h2 id="layer-4--image-supply-chain">Layer 4 — Image supply chain&lt;/h2>
&lt;p>The container image is third-party code running with access to your data. Three composed controls:&lt;/p>
&lt;ol>
&lt;li>&lt;strong>Pin by digest, not by tag.&lt;/strong> &lt;code>vllm/vllm-openai:latest&lt;/code> is a moving target; &lt;code>@sha256:...&lt;/code> is immutable. Pinning the digest guarantees that what was deployed is exactly what was audited.&lt;/li>
&lt;li>&lt;strong>Scanning with &lt;a href="https://github.com/aquasecurity/trivy">Trivy&lt;/a>.&lt;/strong> Before promoting an image, Trivy enumerates its CVEs and composes the SBOM (component inventory). The pipeline fails if there are unmitigated critical vulnerabilities.&lt;/li>
&lt;li>&lt;strong>Signing with &lt;a href="https://docs.sigstore.dev/cosign/signing/signing_with_containers/">cosign&lt;/a> and verification at admission.&lt;/strong> The Sigstore project (cosign for signing, Fulcio as a CA for ephemeral certificates via OIDC, Rekor as an immutable transparency log) allows the image to be signed. And Sigstore&amp;rsquo;s &lt;a href="https://github.com/sigstore/policy-controller">policy-controller&lt;/a>, or Kyverno, is an &lt;strong>admission controller&lt;/strong> that verifies the signature before admitting the pod: an image without a valid signature does not enter the cluster.&lt;/li>
&lt;/ol>
&lt;p>This is the doorman from the analogy: he checks each image&amp;rsquo;s credential (signature) at the door. A poisoned image uploaded to a registry, or a hijacked tag, stays outside because it carries no signature from the trusted issuer.&lt;/p>
&lt;h2 id="layer-5--authnz-virtual-keys-oidc-and-minimal-rbac">Layer 5 — AuthN/Z: virtual keys, OIDC and minimal RBAC&lt;/h2>
&lt;p>Three identity control points, from the outside in:&lt;/p>
&lt;ul>
&lt;li>&lt;strong>Front end (OIDC/LDAP).&lt;/strong> The human user authenticates against the corporate identity provider. The front end does not invent its own user system; it delegates to OIDC. This gives SSO, MFA and centralised revocation.&lt;/li>
&lt;li>&lt;strong>Gateway (LiteLLM virtual keys).&lt;/strong> The gateway issues &lt;strong>virtual keys&lt;/strong>: each team, application or user has its own key with a budget, a &lt;em>rate limit&lt;/em> and permitted models. The gateway&amp;rsquo;s master key, and the real API keys towards the engine, are never seen by the client; clients only handle their virtual key, revocable individually. If a virtual key leaks, that one and only that one is revoked.&lt;/li>
&lt;li>&lt;strong>Kubernetes RBAC with least privilege.&lt;/strong> Each service&amp;rsquo;s &lt;code>ServiceAccount&lt;/code> has exactly the permissions it needs. The vLLM pod does not need to list &lt;code>Secret&lt;/code> objects in other namespaces or create pods. Restrictive RBAC means a stolen service account token opens very little.&lt;/li>
&lt;/ul>
&lt;h2 id="layer-6--runtime-the-cameras-with-tetragon">Layer 6 — Runtime: the cameras with Tetragon&lt;/h2>
&lt;p>The previous layers are preventive. What is missing is detection: what if something, despite everything, runs where it should not? &lt;a href="https://tetragon.io/">Tetragon&lt;/a> is observable security and runtime enforcement over eBPF, &lt;em>Kubernetes-aware&lt;/em>. It hooks kernel events — &lt;code>process_exec&lt;/code>, &lt;code>tcp_connect&lt;/code>, &lt;code>security_file_open&lt;/code> — with typical overhead below 1%, and it can move from observing (recording the event) to enforcement (killing the process or cutting the connection in the kernel, &lt;code>Sigkill&lt;/code>).&lt;/p>
&lt;p>The operational rule, which I set out in detail in the &lt;a href="https://blog.lo0.es/en/posts/runbook-caging-ai-agent-bubblewrap-tetragon/">bubblewrap + Tetragon runbook&lt;/a>: &lt;strong>adopt first, block later&lt;/strong>. First you deploy in observation mode to build a baseline of the stack&amp;rsquo;s normal behaviour — which binaries vLLM executes, what the gateway connects to — without false positives. Only afterwards do you promote the clear rules to enforcement: kill any process that tries to read secret paths, or cut every &lt;code>tcp_connect&lt;/code> to destinations outside the egress whitelist. &lt;a href="https://falco.org/">Falco&lt;/a> is the detection-only alternative over eBPF; Tetragon adds enforcement. These cameras also produce the audit evidence: what each service ran and which attempt was blocked.&lt;/p>
&lt;h2 id="layer-7--data-at-rest">Layer 7 — Data at rest&lt;/h2>
&lt;p>The last thing we protect is data standing still:&lt;/p>
&lt;ul>
&lt;li>&lt;strong>Storage encryption.&lt;/strong> The persistent volumes, where the vector database and the state database live, on top of disk encryption (LUKS/dm-crypt) or Ceph-level encryption. A disk stolen from the datacenter does not reveal the corpus.&lt;/li>
&lt;li>&lt;strong>&lt;code>etcd&lt;/code> encryption.&lt;/strong> Remember that Kubernetes &lt;code>Secret&lt;/code> objects, once decrypted by sealed-secrets or ESO, are normal objects in &lt;code>etcd&lt;/code>. You have to enable &lt;code>etcd&lt;/code> &lt;em>encryption at rest&lt;/em>, or the secret sits in the clear in the control plane.&lt;/li>
&lt;li>&lt;strong>Database credentials.&lt;/strong> The vector database&amp;rsquo;s password and the state database&amp;rsquo;s are first-class secrets (layer 1), never embedded in the manifest or in environment variables in the clear in git.&lt;/li>
&lt;/ul>
&lt;h2 id="exposure-table-service--port--external-egress">Exposure table: service × port × external egress?&lt;/h2>
&lt;p>This table is the input for writing the &lt;code>NetworkPolicy&lt;/code> resources. The egress column is the one that decides what leaves the perimeter.&lt;/p>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th>Service&lt;/th>
&lt;th>Internal port&lt;/th>
&lt;th>Permitted callers&lt;/th>
&lt;th>External egress?&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td>front end&lt;/td>
&lt;td>3080&lt;/td>
&lt;td>(human ingress via OIDC)&lt;/td>
&lt;td>No&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>gateway (LiteLLM)&lt;/td>
&lt;td>4000&lt;/td>
&lt;td>front end&lt;/td>
&lt;td>No&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>vLLM&lt;/td>
&lt;td>8000&lt;/td>
&lt;td>gateway&lt;/td>
&lt;td>Only &lt;code>huggingface.co&lt;/code> for the initial download; zero in operation&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>TEI (embeddings/reranker)&lt;/td>
&lt;td>8080&lt;/td>
&lt;td>gateway&lt;/td>
&lt;td>Only model download; zero in operation&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>vector database&lt;/td>
&lt;td>6333&lt;/td>
&lt;td>gateway&lt;/td>
&lt;td>No&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>state database&lt;/td>
&lt;td>5432&lt;/td>
&lt;td>gateway, front end&lt;/td>
&lt;td>No&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>secrets controller&lt;/td>
&lt;td>—&lt;/td>
&lt;td>(control plane)&lt;/td>
&lt;td>No&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>observability&lt;/td>
&lt;td>9090&lt;/td>
&lt;td>internal scraping&lt;/td>
&lt;td>No&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;p>The reading: &lt;strong>no service needs external egress in normal operation&lt;/strong>. vLLM and TEI need it once to pull the model, and that permission can be temporary or restricted by FQDN to &lt;code>huggingface.co&lt;/code>. Everything else is total egress-deny. If a service starts attempting outbound connections this table does not contemplate, Tetragon records it and, in enforcement, cuts it.&lt;/p>
&lt;h2 id="blast-radius-a-leaked-secret-with-and-without-defence">Blast radius: a leaked secret, with and without defence&lt;/h2>
&lt;p>The blast radius measures how much damage a compromise does. Let us model it for the realistic worst case: the state database&amp;rsquo;s credential leaks.&lt;/p>
&lt;p>&lt;strong>Without hardening&lt;/strong> (flat network, unrotated secret, no egress-deny, no detection):&lt;/p>
&lt;ul>
&lt;li>The secret gives access to the state database from any pod (flat network → 56 open pairs).&lt;/li>
&lt;li>The secret does not rotate → it is valid indefinitely; the exploitation window is $\infty$ until somebody notices.&lt;/li>
&lt;li>Without egress-deny, the attacker dumps the whole database to an external server.&lt;/li>
&lt;li>Without Tetragon, nobody finds out until the public incident.&lt;/li>
&lt;li>Blast radius: &lt;strong>the entire state database, exfiltrated, undetected, for an indefinite time&lt;/strong>.&lt;/li>
&lt;/ul>
&lt;p>&lt;strong>With hardening&lt;/strong> (default-deny, ESO + Vault with dynamic credentials, egress-deny, Tetragon in enforcement):&lt;/p>
&lt;ul>
&lt;li>The secret is only usable from the pod that has a network route to the state database (1-2 pairs, not 56).&lt;/li>
&lt;li>With Vault&amp;rsquo;s dynamic credentials, the secret expires — say within a window $T$ of hours; past $T$, it is worthless.&lt;/li>
&lt;li>Egress-deny prevents the dump to the internet: the attacker can read, but cannot take anything out.&lt;/li>
&lt;li>Tetragon records the anomalous access and, in enforcement, kills the process attempting the outbound connection.&lt;/li>
&lt;/ul>
&lt;p>The qualitative reduction is enormous, but let us be quantitative about the window. If a static secret is valid forever and a rotated one with period $T$ is valid for at most $T$, and compromises arrive at rate $\lambda$, the expected number of &lt;em>live and exploitable&lt;/em> secrets at any given instant goes from growing without bound to being capped at $\lambda \cdot T$. With rotation every 24 h ($T = 1$ day) against &amp;ldquo;never&amp;rdquo;, a given secret&amp;rsquo;s window falls from months to a day: a reduction of &lt;strong>one to two orders of magnitude&lt;/strong> in temporal exposure. Combined with the reduction in network pairs ($56 \to \sim 2$, a factor of $\sim 28\times$) and egress-deny (from exfiltration possible to impossible by the direct route), the blast radius is drastically reduced.&lt;/p>
&lt;p>&lt;strong>But let us be honest: it does not reach zero.&lt;/strong> The attacker with the credential &lt;em>can read&lt;/em> the state database during the window $T$ from the compromised pod. Hardening turned &amp;ldquo;indefinite, silent catastrophe&amp;rdquo; into &amp;ldquo;a bounded, detected incident with no exfiltration by the direct route&amp;rdquo;. That is exactly what defence in depth promises: not invulnerability, but that &lt;strong>the cost of a full compromise is high and its radius small&lt;/strong>.&lt;/p>
&lt;h2 id="the-ens--nis2-angle">The ENS / NIS2 angle&lt;/h2>
&lt;p>These layers are not voluntary hygiene: they implement specific controls. The mapping is developed in detail in the &lt;a href="https://blog.lo0.es/en/posts/technical-controls-ens-iso-42001-eu-ai-act-cross-mapping/">technical controls ENS × ISO 42001 × EU AI Act post&lt;/a>; here, the actionable summary:&lt;/p>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th>Hardening layer&lt;/th>
&lt;th>ENS measure (RD 311/2022)&lt;/th>
&lt;th>NIS2 / framework link&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td>Encrypted secrets + rotation&lt;/td>
&lt;td>&lt;code>op.exp.11&lt;/code> (cryptographic keys), &lt;code>mp.info.3&lt;/code> (encryption)&lt;/td>
&lt;td>Credential management; in High Cat., HSM&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Default-deny NetworkPolicy + segmentation&lt;/td>
&lt;td>&lt;code>mp.com.1&lt;/code> (perimeter), &lt;code>mp.com.4&lt;/code> (flow separation)&lt;/td>
&lt;td>NIS2 art. 21: network security measures&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Egress control&lt;/td>
&lt;td>&lt;code>mp.com.1&lt;/code> + &lt;code>op.mon.1&lt;/code>&lt;/td>
&lt;td>Exfiltration prevention&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Internal mTLS&lt;/td>
&lt;td>&lt;code>mp.com.2-3&lt;/code> (confidentiality/integrity in transit)&lt;/td>
&lt;td>Mandatory TLS&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Restricted Pod Security&lt;/td>
&lt;td>&lt;code>op.exp.2&lt;/code> (hardened configuration)&lt;/td>
&lt;td>Configuration hardening (CIS)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Trivy + cosign + admission&lt;/td>
&lt;td>&lt;code>op.exp.6&lt;/code> (malicious code), &lt;code>op.ext.3&lt;/code> (supply chain)&lt;/td>
&lt;td>NIS2 supply chain&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>OIDC + virtual keys + RBAC&lt;/td>
&lt;td>&lt;code>op.acc.1-2-5&lt;/code> (identification, access, authentication)&lt;/td>
&lt;td>MFA in High Cat.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Tetragon runtime&lt;/td>
&lt;td>&lt;code>op.mon.1&lt;/code> (intrusion detection)&lt;/td>
&lt;td>Monitoring and response&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Encryption at rest + etcd&lt;/td>
&lt;td>&lt;code>mp.info.3&lt;/code> (encryption), &lt;code>mp.si&lt;/code> (media)&lt;/td>
&lt;td>Data at rest&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;p>The honest note for auditing: &lt;strong>hardening reduces risk, it does not eliminate it&lt;/strong>, and maturity is demonstrated by &lt;strong>prioritising by impact&lt;/strong>. A competent auditor does not want to see nine half-finished layers; they want to see that egress-deny on the critical asset (the corpus) and secrets management are solid before mTLS is perfect between low-sensitivity services. For the management and governance context, see also &lt;a href="https://blog.lo0.es/en/posts/iso-42001-aims-on-premise-llm-platform/">ISO/IEC 42001 as an AIMS&lt;/a> and the &lt;a href="https://blog.lo0.es/en/posts/eu-ai-act-technical-dossier-on-premise-llm-architecture/">EU AI Act mapping onto the architecture&lt;/a>.&lt;/p>
&lt;h2 id="applied-to-the-generic-4h100-cluster">Applied to the generic 4×H100 cluster&lt;/h2>
&lt;p>In a real deployment on 4×H100 SXM 80GB, you do not harden the nine layers at once. The order, prioritised by impact:&lt;/p>
&lt;ol>
&lt;li>&lt;strong>Egress-deny on vLLM, TEI and the vector database, first.&lt;/strong> It is the barrier that stops the corpus leaving the perimeter, and it goes in as soon as the services start. Allow egress by FQDN to &lt;code>huggingface.co&lt;/code> only during the model&amp;rsquo;s initial download; afterwards, zero. It is the layer with the highest return per hour invested.&lt;/li>
&lt;li>&lt;strong>Secrets for the inference engine and the databases, out of git.&lt;/strong> The Hugging Face token vLLM uses to download the model, the vector database&amp;rsquo;s and the state database&amp;rsquo;s passwords, the gateway&amp;rsquo;s master key: into sealed-secrets or, if there is already a rotation requirement, into ESO + Vault. Never in &lt;code>values.yaml&lt;/code> in the clear.&lt;/li>
&lt;li>&lt;strong>Default-deny NetworkPolicy + the 6-edge whitelist.&lt;/strong> The gateway and the vector database are the most exposed services — the gateway because it receives all the traffic, the vector database because it holds the embedded RAG. Closing everything that is not on the whitelist cuts lateral pivoting from $\sim N^2$ to the 6 real edges.&lt;/li>
&lt;li>&lt;strong>&lt;code>restricted&lt;/code> Pod Security in the inference namespace&lt;/strong>, including the vLLM pod with a GPU (it needs no privileges to use the H100).&lt;/li>
&lt;li>&lt;strong>cosign + admission&lt;/strong> so only signed images get in; &lt;strong>Trivy&lt;/strong> in the GitOps pipeline of &lt;a href="https://blog.lo0.es/en/posts/gitops-inference-stack-flux/">Flux&lt;/a>.&lt;/li>
&lt;li>&lt;strong>Tetragon in observation&lt;/strong>, baseline, and then enforcement over the egress of the sensitive pods.&lt;/li>
&lt;li>&lt;strong>Encryption at rest&lt;/strong> for the databases&amp;rsquo; volumes and for &lt;code>etcd&lt;/code>.&lt;/li>
&lt;/ol>
&lt;p>The gateway and the vector database are the two I harden first inside the whitelist: the gateway for being the exposed face, the vector database for holding the asset that egress-deny protects. The rest is built on top, layer by layer, always assuming the previous one can fail.&lt;/p>
&lt;h2 id="what-hardening-does-not-solve">What hardening does NOT solve&lt;/h2>
&lt;p>To close honestly, what these layers do not cover and what needs other pieces:&lt;/p>
&lt;ul>
&lt;li>&lt;strong>Prompt-level attacks&lt;/strong> (jailbreak, indirect injection via the RAG corpus): that is the job of &lt;a href="https://blog.lo0.es/en/posts/llm-guardrails-safety-four-lines-of-defence/">guardrails&lt;/a> and &lt;a href="https://blog.lo0.es/en/posts/llm-guard-anatomy-scanners-langfuse-vllm-litellm/">LLM Guard&lt;/a>, not of NetworkPolicy.&lt;/li>
&lt;li>&lt;strong>Agents with legitimate permissions doing something harmful&lt;/strong>: the runtime isolation from the &lt;a href="https://blog.lo0.es/en/posts/isolating-ai-agents-workstation-to-cluster/">agent isolation post&lt;/a> bounds what an agent can touch, but a granted permission is a usable permission.&lt;/li>
&lt;li>&lt;strong>The human factor&lt;/strong>: a well-managed secret shared over Slack is still leaked. Rotation bounds the window, it does not eliminate the mistake.&lt;/li>
&lt;li>&lt;strong>Zero-day vulnerabilities&lt;/strong> in the components themselves: Trivy detects what is known; the unknown gets through until the CVE is published.&lt;/li>
&lt;/ul>
&lt;p>Hardening is a multiplier on the cost of attacking, not an impassable wall. Its value lies in making an individual compromise &lt;strong>bounded, detected and with no way out&lt;/strong> — and that, for a sovereign system holding sensitive data, is exactly the goal.&lt;/p>
&lt;h2 id="see-also">See also&lt;/h2>
&lt;ul>
&lt;li>&lt;a href="https://blog.lo0.es/en/posts/gitops-inference-stack-flux/">GitOps of the inference stack with Flux&lt;/a> — the sibling piece: GitOps reconciles the state, and shares with this post the chicken-and-egg problem of secrets.&lt;/li>
&lt;li>&lt;a href="https://blog.lo0.es/en/posts/technical-controls-ens-iso-42001-eu-ai-act-cross-mapping/">Technical controls: ENS × ISO 42001 × EU AI Act&lt;/a> — the detailed mapping of each hardening layer to an ENS measure, a 42001 control and an AI Act article.&lt;/li>
&lt;li>&lt;a href="https://blog.lo0.es/en/posts/iso-42001-aims-on-premise-llm-platform/">ISO/IEC 42001: the AIMS for the on-premise LLM&lt;/a> — the management system that frames hardening as a documented control.&lt;/li>
&lt;li>&lt;a href="https://blog.lo0.es/en/posts/eu-ai-act-technical-dossier-on-premise-llm-architecture/">EU AI Act: mapping onto the on-premise LLM architecture&lt;/a> — the robustness and cybersecurity articles (Art. 15) these layers satisfy.&lt;/li>
&lt;li>&lt;a href="https://blog.lo0.es/en/posts/llm-guard-anatomy-scanners-langfuse-vllm-litellm/">LLM Guard: fundamentals&lt;/a> — the prompt/content-level security layer that infrastructure hardening does not cover.&lt;/li>
&lt;li>&lt;a href="https://blog.lo0.es/en/posts/llm-guardrails-safety-four-lines-of-defence/">Guardrails and safety in LLMs&lt;/a> — the semantic WAF that complements the NetworkPolicy.&lt;/li>
&lt;li>&lt;a href="https://blog.lo0.es/en/posts/isolating-ai-agents-workstation-to-cluster/">Isolating AI agents: from workstation to cluster&lt;/a> — the threat model of runtime isolation.&lt;/li>
&lt;li>&lt;a href="https://blog.lo0.es/en/posts/runbook-caging-ai-agent-bubblewrap-tetragon/">Runbook: caging the AI agent with bubblewrap and Tetragon&lt;/a> — the operational procedure for Tetragon (observe first, block later) referenced in layer 6.&lt;/li>
&lt;li>&lt;a href="https://blog.lo0.es/en/posts/model-chain-of-trust-signature-provenance-aibom-why-you-trust-those-bytes/">Model chain of trust (3/4): signature, provenance and AIBOM&lt;/a> — layer 4 of this post (image supply chain with cosign and Trivy) taken to the model artefact: signing the weights, SLSA provenance attestations and an AIBOM inventory.&lt;/li>
&lt;li>&lt;a href="https://blog.lo0.es/en/posts/model-chain-of-trust-who-serves-the-model-which-machine-you-trust/">Model chain of trust (4/4): who serves the model and which machine you trust&lt;/a> — the step after layer 2&amp;rsquo;s mTLS: cryptographic workload identity with SPIFFE/SPIRE and isolation of the execution environment in a TEE.&lt;/li>
&lt;li>&lt;a href="https://blog.lo0.es/en/posts/litellm-virtual-keys-budgets-limits/">Virtual keys, budgets and limits in LiteLLM&lt;/a> — key hashing, the &lt;code>LITELLM_SALT_KEY&lt;/code> variable that falls back to the master key by default, and rotation with a grace period.&lt;/li>
&lt;li>&lt;a href="https://blog.lo0.es/en/posts/keycloak-identity-plane-ai-platform/">Keycloak in an AI platform&lt;/a> — layer 5 of this article developed: who can authenticate against the IdP, what costs a licence and what it does not solve.&lt;/li>
&lt;/ul></description></item><item><title>Incident response runbooks for LLM inference: every alert to a concrete action with Kafka and Keep</title><link>https://blog.lo0.es/en/posts/incident-response-runbooks-llm-inference-kafka-keep/</link><pubDate>Tue, 02 Jun 2026 04:30:00 +0200</pubDate><guid>https://blog.lo0.es/en/posts/incident-response-runbooks-llm-inference-kafka-keep/</guid><description>&lt;blockquote>
&lt;p>This post closes the observability trilogy opened by &lt;a href="https://blog.lo0.es/en/posts/gpu-observability-llm-inference-twelve-dcgm-vllm-metrics/">GPU observability for LLM inference&lt;/a> (which metrics) and &lt;a href="https://blog.lo0.es/en/posts/anatomy-dcgm-vllm-metrics-analogies-documented-anomalies/">Anatomy of the twelve DCGM and five vLLM metrics&lt;/a> (which documented anomaly per metric). Here each anomaly gets its concrete action and is fitted into the incident management machinery that compliance demands.&lt;/p>
&lt;/blockquote>
&lt;h2 id="tldr">TL;DR&lt;/h2>
&lt;p>The &lt;a href="https://blog.lo0.es/en/posts/gpu-observability-llm-inference-twelve-dcgm-vllm-metrics/">GPU observability&lt;/a> alerts are useless without a codified procedure for each one; the operator who interprets them by hand every time is operating on intuition. The right combination has &lt;strong>three indispensable pieces&lt;/strong>. (1) &lt;strong>Runbook catalogue&lt;/strong>: for each of the six critical alerts (&lt;code>GpuHbmNearOom&lt;/code>, &lt;code>GpuThermalOrPowerThrottle&lt;/code>, &lt;code>GpuXidErrorDetected&lt;/code>, &lt;code>GpuEccDoubleBit&lt;/code>, &lt;code>VllmKvCachePoolNearFull&lt;/code>, &lt;code>VllmTtftP95OutOfSlo&lt;/code>), a severity, an immediate mitigation, the evidence to capture &lt;strong>before&lt;/strong> remediating, a resolution action, a closure criterion and a postmortem trigger. (2) &lt;strong>Reproducible pipeline&lt;/strong>: Prometheus + DCGM → Alertmanager → &lt;strong>Kafka as event bus&lt;/strong> (topics &lt;code>gpu.alerts.enriched&lt;/code>, &lt;code>incidents.lifecycle&lt;/code>, &lt;code>audit.actions&lt;/code> with WORM retention) → &lt;strong>Keep as workflow engine&lt;/strong> (declarative YAML workflows versioned in git) → Kubernetes job / script / ChatOps executors. (3) &lt;strong>Formal fit into incident management&lt;/strong> under the regulatory corpus: &lt;strong>ISO/IEC 27035&lt;/strong> phases &lt;code>identify → report → assess → respond → learn&lt;/code>; &lt;strong>ENS&lt;/strong> controls &lt;code>op.exp.7&lt;/code> (incident management), &lt;code>op.exp.8&lt;/code> (activity logging), &lt;code>op.exp.10&lt;/code> (notification to users); &lt;strong>NIS2&lt;/strong> art. 23 with an early warning at &lt;strong>24 h&lt;/strong>, a formal notification at &lt;strong>72 h&lt;/strong> and a final report at &lt;strong>1 month&lt;/strong>; &lt;strong>EU AI Act&lt;/strong> art. 73 for a serious incident on a high-risk system, deadlines of &lt;strong>2 to 15 days&lt;/strong> depending on severity; &lt;strong>ISO/IEC 42001&lt;/strong> clause 10 (continual improvement of the AIMS). The action taxonomy is &lt;strong>immediate mitigation&lt;/strong> (drain, throttle, scale-down: contains the damage in seconds) → &lt;strong>diagnosis&lt;/strong> (evidence capture with &lt;code>nvidia-smi -q&lt;/code>, &lt;code>dmesg&lt;/code>, a vLLM &lt;code>/metrics&lt;/code> snapshot, the related OTel trace; without this the postmortem is not defensible) → &lt;strong>resolution&lt;/strong> (restart, reset, RMA, rollback) → &lt;strong>postmortem&lt;/strong> (5-whys RCA, prevention plan, runbook update). Kafka contributes the &lt;strong>immutable audit trail&lt;/strong> that ENS and the EU AI Act demand: every action executed by Keep or by a human is published as an event on &lt;code>audit.actions&lt;/code> with timestamp, actor, decision and evidence, retained WORM for at least 6 months. Keep contributes &lt;strong>workflows as code&lt;/strong>: this post includes three complete workflows (XID with drain plus Jira ticket, ECC DBE with immediate paging and node blocking in the scheduler, automatic canary rollback on TTFT P95 out of SLO). Four anti-patterns close the material: alerts without a runbook (most of them), a runbook without prior evidence capture (it perpetuates the incident because the root cause is lost), escalation by seniority rota instead of severity (a junior operator handling an ECC DBE), and the absence of a human gate for destructive actions (Keep running &lt;code>nvidia-smi --gpu-reset&lt;/code> without confirmation). Applicable to a generic 4×H100 SXM cluster with Kafka and Keep already deployed.&lt;/p>
&lt;h2 id="you-are-here-observe--deploy-incident-response-closes-the-loop">You are here: OBSERVE → DEPLOY (incident response closes the loop)&lt;/h2>
&lt;div class="diagram" style="max-width:780px;margin:1rem auto;">
&lt;svg viewBox="0 0 780 90" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="incident response: Observe-Deploy loop">
&lt;style>.box{stroke:#444;stroke-width:1.4;rx:6}.active{fill:#c9a8e9;stroke-width:3}.semiactive{fill:#cfead0;stroke-width:2}.idle{fill:#f4f4f4}.lbl{font:600 12px sans-serif;fill:#222}.arr{stroke:#666;stroke-width:1.4;fill:none;marker-end:url(#rbm)}.cyc{stroke:#888;stroke-width:1.2;fill:none;stroke-dasharray:4 2;marker-end:url(#rbm)}.loop{stroke:#c33;stroke-width:1.8;fill:none;stroke-dasharray:5 3;marker-end:url(#rbmc)}&lt;/style>
&lt;defs>&lt;marker id="rbm" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="6" markerHeight="6" orient="auto">&lt;path d="M0,0 L10,5 L0,10 z" fill="#666"/>&lt;/marker>&lt;marker id="rbmc" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="6" markerHeight="6" orient="auto">&lt;path d="M0,0 L10,5 L0,10 z" fill="#c33"/>&lt;/marker>&lt;/defs>
&lt;text x="390" y="20" text-anchor="middle" class="lbl">Incident response: closes the loop from OBSERVE to DEPLOY (action)&lt;/text>
&lt;rect x="30" y="35" width="110" height="35" class="box idle"/>&lt;text x="85" y="58" text-anchor="middle" class="lbl">1 · Data&lt;/text>
&lt;rect x="155" y="35" width="110" height="35" class="box idle"/>&lt;text x="210" y="58" text-anchor="middle" class="lbl">2 · Tune&lt;/text>
&lt;rect x="280" y="35" width="110" height="35" class="box idle"/>&lt;text x="335" y="58" text-anchor="middle" class="lbl">3 · Eval&lt;/text>
&lt;rect x="405" y="35" width="110" height="35" class="box semiactive"/>&lt;text x="460" y="58" text-anchor="middle" class="lbl">4 · Deploy&lt;/text>
&lt;rect x="530" y="35" width="110" height="35" class="box active"/>&lt;text x="585" y="58" text-anchor="middle" class="lbl">5 · Observe&lt;/text>
&lt;rect x="655" y="35" width="110" height="35" class="box idle"/>&lt;text x="710" y="58" text-anchor="middle" class="lbl">6 · Retrain&lt;/text>
&lt;path class="arr" d="M140,52 L155,52"/>&lt;path class="arr" d="M265,52 L280,52"/>&lt;path class="arr" d="M390,52 L405,52"/>&lt;path class="arr" d="M515,52 L530,52"/>&lt;path class="arr" d="M640,52 L655,52"/>
&lt;path class="loop" d="M530,40 C500,5 480,5 460,40"/>
&lt;/svg>
&lt;/div>
&lt;h2 id="the-analogy-a-nuclear-reactor-control-room">The analogy: a nuclear reactor control room&lt;/h2>
&lt;p>In a nuclear plant control room, the operator on shift &lt;strong>never decides what to do on seeing an alarm&lt;/strong>. The decision is pre-made and codified in a written procedure (SOP) covering every alarm on the panel: if X sounds, open book X, read steps 1-N, execute exactly, call the supervisor at step M, escalate to the plant director at step N+3. The reason is strict: critical alarms are rare but catastrophic if handled badly; an operator improvising in an emergency makes worse decisions than one applying a procedure reviewed by experts and validated by simulation.&lt;/p>
&lt;p>The reactor does not expect the operator to be a genius. It expects them to know the procedures to the letter and the operations management system to hand them the right procedure at the right moment. If the procedures are not written, not versioned, or not integrated with the alarms that fire them, the control room is operating on intuition. The difference between the two operations, procedural versus intuitive, is the difference between a plant that runs 30 years without incidents and one that ends up on a blacklist.&lt;/p>
&lt;p>Incident response on an LLM inference cluster works identically. The DCGM and vLLM alerts listed in the previous posts are the panel alarms. Each one needs its written SOP, versioned, integrated with the alert that fires it and reviewed after every incident. Without that codification, the operator on shift improvises in the middle of an ECC DBE failure at 4 in the morning; with it, they execute the nine steps of runbook 12 and the incident closes in 20 minutes.&lt;/p>
&lt;h2 id="the-incident-pipeline-architecture">The incident pipeline architecture&lt;/h2>
&lt;div class="diagram" style="max-width:840px;margin:1.5rem auto;">
&lt;svg viewBox="0 0 840 320" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="incident response pipeline">
&lt;style>.b{stroke:#333;stroke-width:1.4;rx:6}.src{fill:#dfe9f5;stroke:#356}.am{fill:#eef0d0;stroke:#7a3}.k{fill:#f4e3cf;stroke:#a63}.kp{fill:#ead8f5;stroke:#634}.ex{fill:#d8eecf;stroke:#373}.au{fill:#f6e2e2;stroke:#a33}.title{font:600 13px sans-serif;fill:#222}.h{font:700 12px sans-serif;fill:#222}.l{font:11px sans-serif;fill:#222}.n{font:italic 10px sans-serif;fill:#444}.arr{stroke:#666;stroke-width:1.4;fill:none;marker-end:url(#pim)}.dbl{stroke:#666;stroke-width:1.4;fill:none;stroke-dasharray:4 2;marker-end:url(#pim)}&lt;/style>
&lt;defs>&lt;marker id="pim" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="6" markerHeight="6" orient="auto">&lt;path d="M0,0 L10,5 L0,10 z" fill="#666"/>&lt;/marker>&lt;/defs>
&lt;text x="420" y="20" text-anchor="middle" class="title">Pipeline: Prometheus → Alertmanager → Kafka → Keep → Executors · WORM audit in parallel&lt;/text>
&lt;rect x="20" y="45" width="140" height="60" class="b src"/>&lt;text x="90" y="65" text-anchor="middle" class="h">Prometheus&lt;/text>&lt;text x="90" y="82" text-anchor="middle" class="l">DCGM + vLLM&lt;/text>&lt;text x="90" y="98" text-anchor="middle" class="n">scrape 15s&lt;/text>
&lt;rect x="190" y="45" width="140" height="60" class="b am"/>&lt;text x="260" y="65" text-anchor="middle" class="h">Alertmanager&lt;/text>&lt;text x="260" y="82" text-anchor="middle" class="l">PrometheusRule&lt;/text>&lt;text x="260" y="98" text-anchor="middle" class="n">webhook → kafka&lt;/text>
&lt;rect x="360" y="45" width="160" height="60" class="b k"/>&lt;text x="440" y="65" text-anchor="middle" class="h">Kafka&lt;/text>&lt;text x="440" y="82" text-anchor="middle" class="l">gpu.alerts.enriched&lt;/text>&lt;text x="440" y="98" text-anchor="middle" class="n">incidents.lifecycle&lt;/text>
&lt;rect x="550" y="45" width="140" height="60" class="b kp"/>&lt;text x="620" y="65" text-anchor="middle" class="h">Keep&lt;/text>&lt;text x="620" y="82" text-anchor="middle" class="l">YAML workflows&lt;/text>&lt;text x="620" y="98" text-anchor="middle" class="n">git-versioned&lt;/text>
&lt;rect x="720" y="45" width="100" height="60" class="b ex"/>&lt;text x="770" y="65" text-anchor="middle" class="h">Executors&lt;/text>&lt;text x="770" y="82" text-anchor="middle" class="l">kubectl · API&lt;/text>&lt;text x="770" y="98" text-anchor="middle" class="n">ChatOps&lt;/text>
&lt;path class="arr" d="M160,75 L190,75"/>
&lt;path class="arr" d="M330,75 L360,75"/>
&lt;path class="arr" d="M520,75 L550,75"/>
&lt;path class="arr" d="M690,75 L720,75"/>
&lt;rect x="360" y="160" width="160" height="60" class="b au"/>&lt;text x="440" y="180" text-anchor="middle" class="h">audit.actions&lt;/text>&lt;text x="440" y="197" text-anchor="middle" class="l">WORM topic&lt;/text>&lt;text x="440" y="213" text-anchor="middle" class="n">retention 6 months+&lt;/text>
&lt;path class="dbl" d="M620,105 L520,160"/>
&lt;path class="dbl" d="M770,105 L520,168"/>
&lt;text x="420" y="252" text-anchor="middle" class="n">Every Keep or human action is published to audit.actions: WORM required by ENS op.exp.8 + EU AI Act art. 12.&lt;/text>
&lt;rect x="20" y="240" width="220" height="60" class="b kp"/>&lt;text x="130" y="260" text-anchor="middle" class="h">Compliance consumers&lt;/text>&lt;text x="130" y="277" text-anchor="middle" class="l">DPO · ENS audit · NIS2 reporting&lt;/text>&lt;text x="130" y="293" text-anchor="middle" class="n">read audit.actions read-only&lt;/text>
&lt;path class="arr" d="M360,180 L240,260"/>
&lt;rect x="600" y="240" width="220" height="60" class="b ex"/>&lt;text x="710" y="260" text-anchor="middle" class="h">Postmortem tooling&lt;/text>&lt;text x="710" y="277" text-anchor="middle" class="l">Jira · MLflow · Langfuse&lt;/text>&lt;text x="710" y="293" text-anchor="middle" class="n">enriched with timeline&lt;/text>
&lt;path class="arr" d="M520,180 L600,260"/>
&lt;/svg>
&lt;/div>
&lt;p>&lt;strong>Prometheus + DCGM.&lt;/strong> Collects the metrics described in the two previous posts. PrometheusRules define the six critical alerts with &lt;code>for: &amp;lt;duration&amp;gt;&lt;/code> to avoid noise.&lt;/p>
&lt;p>&lt;strong>Alertmanager.&lt;/strong> Receives raw alerts; deduplicates, groups by labels (&lt;code>{cluster, node, gpu, model}&lt;/code>), routes. Instead of sending straight to PagerDuty or Slack, it &lt;strong>sends to Kafka&lt;/strong> via a webhook receiver. That turns the alert into a bus event that multiple consumers process (Keep for action, the audit topic for compliance, dashboards for visualisation).&lt;/p>
&lt;p>&lt;strong>Kafka as event bus.&lt;/strong> Three canonical topics:&lt;/p>
&lt;ul>
&lt;li>&lt;strong>&lt;code>gpu.alerts.enriched&lt;/code>&lt;/strong> — alerts with added context (tenant, model, version, namespace owner, effective severity). Retention: 7 days, replication factor 3.&lt;/li>
&lt;li>&lt;strong>&lt;code>incidents.lifecycle&lt;/code>&lt;/strong> — incident cycle events: &lt;code>incident.opened&lt;/code>, &lt;code>incident.acknowledged&lt;/code>, &lt;code>action.proposed&lt;/code>, &lt;code>action.executed&lt;/code>, &lt;code>incident.escalated&lt;/code>, &lt;code>incident.resolved&lt;/code>, &lt;code>postmortem.attached&lt;/code>. Retention: 90 days.&lt;/li>
&lt;li>&lt;strong>&lt;code>audit.actions&lt;/code>&lt;/strong> — an immutable record of every action executed (by Keep automatically or by a human confirming). Retention: &lt;strong>6 months minimum with compaction off plus tiered storage&lt;/strong>, WORM storage. This is the topic ENS &lt;code>op.exp.8&lt;/code>, EU AI Act art. 12 and NIS2 require you to keep.&lt;/li>
&lt;/ul>
&lt;p>&lt;strong>Keep as workflow engine.&lt;/strong> Consumes from &lt;code>gpu.alerts.enriched&lt;/code>, fires YAML workflows versioned in git, executes actions (HTTP calls, kubectl jobs, Slack messages, Jira tickets) and publishes the result to &lt;code>incidents.lifecycle&lt;/code> plus &lt;code>audit.actions&lt;/code>. Choosing Keep over Alertmanager alone (or over PagerDuty alone) is deliberate: Keep separates &lt;strong>runbook declaration&lt;/strong> (readable, reviewable YAML) from &lt;strong>notification delivery&lt;/strong> (PagerDuty). The runbook is versioned code; notifications are operational details.&lt;/p>
&lt;p>&lt;strong>Executors.&lt;/strong> What actually moves the cluster:&lt;/p>
&lt;ul>
&lt;li>&lt;strong>Kubernetes jobs&lt;/strong>: &lt;code>kubectl drain&lt;/code>, &lt;code>kubectl cordon&lt;/code>, &lt;code>kubectl rollout undo&lt;/code>.&lt;/li>
&lt;li>&lt;strong>NVIDIA API&lt;/strong>: &lt;code>nvidia-smi --gpu-reset&lt;/code>, &lt;code>dcgmi diag -r &amp;lt;level&amp;gt;&lt;/code>.&lt;/li>
&lt;li>&lt;strong>ChatOps&lt;/strong>: human confirmations through Slack interactive messages before a destructive action runs.&lt;/li>
&lt;li>&lt;strong>External tooling&lt;/strong>: Jira ticket, PagerDuty notification, CMDB call.&lt;/li>
&lt;/ul>
&lt;h2 id="the-six-critical-alerts-and-their-runbooks">The six critical alerts and their runbooks&lt;/h2>
&lt;p>For each alert: severity, immediate mitigation (seconds), evidence to capture &lt;strong>before remediating&lt;/strong>, resolution action, closure criteria, postmortem trigger.&lt;/p>
&lt;h3 id="rb-01--gpuhbmnearoom--hbm--92--sustained">RB-01 · &lt;code>GpuHbmNearOom&lt;/code> — HBM &amp;gt; 92 % sustained&lt;/h3>
&lt;p>&lt;strong>Severity&lt;/strong>: WARNING. Risk of OOM on the next PagedAttention allocation.&lt;/p>
&lt;p>&lt;strong>Immediate mitigation.&lt;/strong> Reduce admission temporarily by lowering &lt;code>max_num_seqs&lt;/code> on the affected engine via hot reload (if the engine supports it) or a staggered restart of replicas. Trigger an additional scale-out via KEDA if there are free GPU nodes. There is no need to drain the node.&lt;/p>
&lt;p>&lt;strong>Evidence to capture.&lt;/strong>&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-bash" data-lang="bash">&lt;span class="line">&lt;span class="cl">nvidia-smi --query-gpu&lt;span class="o">=&lt;/span>index,memory.used,memory.free,memory.total --format&lt;span class="o">=&lt;/span>csv
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">nvidia-smi -q -d ROW_REMAPPER &lt;span class="p">|&lt;/span> grep -i pending
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">curl http://vllm-pod:8000/metrics &lt;span class="p">|&lt;/span> grep -E &lt;span class="s2">&amp;#34;gpu_cache_usage|num_requests&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">kubectl logs &amp;lt;pod&amp;gt; --tail&lt;span class="o">=&lt;/span>&lt;span class="m">200&lt;/span> &lt;span class="p">|&lt;/span> grep -i &lt;span class="s2">&amp;#34;preempt\|swap&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>Save the snapshot to &lt;code>audit.actions&lt;/code> with a timestamp and an &lt;code>incident_id&lt;/code>.&lt;/p>
&lt;p>&lt;strong>Resolution.&lt;/strong> If the cause is a traffic spike: let the autoscaler scale to a stable regime, monitor for 30 min. If the cause is a model regression (canary v2 consumes more KV cache than v1): roll the canary back (see RB-06). If it is a leak (the metric grows without traffic growing): restart the pod with a heap dump capture.&lt;/p>
&lt;p>&lt;strong>Closure.&lt;/strong> &lt;code>gpu_cache_usage_perc &amp;lt; 80 %&lt;/code> sustained for 15 min AND &lt;code>num_requests_waiting == 0&lt;/code>.&lt;/p>
&lt;p>&lt;strong>Postmortem.&lt;/strong> Not mandatory unless the incident lasted &amp;gt; 30 min or had SLO impact.&lt;/p>
&lt;h3 id="rb-02--gputhermalorpowerthrottle--bit--0-and-not-idle-in-clock_throttle_reasons">RB-02 · &lt;code>GpuThermalOrPowerThrottle&lt;/code> — bit ≠ 0 and not Idle in CLOCK_THROTTLE_REASONS&lt;/h3>
&lt;p>&lt;strong>Severity&lt;/strong>: WARNING (thermal) or CRITICAL (sustained HW Power Brake, PDU risk).&lt;/p>
&lt;p>&lt;strong>Immediate mitigation.&lt;/strong> Identify the bit (decode the bitmap). If it is &lt;strong>&lt;code>0x40 HW_THERMAL&lt;/code>&lt;/strong> or &lt;strong>&lt;code>0x20 SW_THERMAL&lt;/code>&lt;/strong>: drain the workload from the node to other replicas if the temperature does not drop within 2 min, and stop new pods landing on that node (&lt;code>kubectl cordon&lt;/code>). If it is &lt;strong>&lt;code>0x80 HW_POWER_BRAKE&lt;/code>&lt;/strong>: alert DC infrastructure immediately (likely an over-committed PDU, the Dell KB 000220508 / Lenovo HT514380 case) and lower the TDP of the rack&amp;rsquo;s GPUs via &lt;code>nvidia-smi -pl&lt;/code> to a lower value to relieve load on the breaker.&lt;/p>
&lt;p>&lt;strong>Evidence.&lt;/strong>&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-bash" data-lang="bash">&lt;span class="line">&lt;span class="cl">nvidia-smi --query-gpu&lt;span class="o">=&lt;/span>index,temperature.gpu,temperature.memory,power.draw,clocks_throttle_reasons.active --format&lt;span class="o">=&lt;/span>csv
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">ipmitool sdr &lt;span class="p">|&lt;/span> grep -i &lt;span class="s2">&amp;#34;fan\|temp\|inlet&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="c1"># PDU data if they are instrumented (modbus / SNMP)&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>&lt;strong>Resolution.&lt;/strong>&lt;/p>
&lt;ul>
&lt;li>&lt;strong>Thermal&lt;/strong>: review rack airflow, check the rear-door HX, T_inlet, DGX fans. An infra issue, not an engine one.&lt;/li>
&lt;li>&lt;strong>Power Brake&lt;/strong>: review the sizing of the PDU branch, the breaker, the 415 VAC distribution. Likely a redistribution of load to another branch or a temporary TDP cap.&lt;/li>
&lt;/ul>
&lt;p>&lt;strong>Closure.&lt;/strong> &lt;code>CLOCK_THROTTLE_REASONS == 0x1&lt;/code> (Idle only) or &lt;code>0x0&lt;/code> for 30 min under normal load.&lt;/p>
&lt;p>&lt;strong>Postmortem.&lt;/strong> Mandatory if it was a HW Power Brake: that implicates the DC electrical infrastructure.&lt;/p>
&lt;h3 id="rb-03--gpuxiderrordetected--increasedcgm_fi_dev_xid_errors5m--0">RB-03 · &lt;code>GpuXidErrorDetected&lt;/code> — &lt;code>increase(DCGM_FI_DEV_XID_ERRORS[5m]) &amp;gt; 0&lt;/code>&lt;/h3>
&lt;p>&lt;strong>Severity&lt;/strong>: CRITICAL.&lt;/p>
&lt;p>&lt;strong>Immediate mitigation.&lt;/strong> &lt;code>kubectl cordon&lt;/code> the node (no more new pods). If the XID is 31/48/79/94/95 (hardware or cascade): drain the node&amp;rsquo;s existing pods. If the XID is 13/43 (possibly software): keep the pods but block new ones, capture the trace and the active workload.&lt;/p>
&lt;p>&lt;strong>Evidence.&lt;/strong>&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-bash" data-lang="bash">&lt;span class="line">&lt;span class="cl">&lt;span class="c1"># The specific XID from dmesg&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">dmesg &lt;span class="p">|&lt;/span> grep -i xid &lt;span class="p">|&lt;/span> tail -30
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">nvidia-smi -q -d ERROR
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">nvidia-smi -q -d PCIE
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="c1"># State of the retired pages&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">nvidia-smi -q -d ROW_REMAPPER
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="c1"># Workload that was running&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">kubectl get pods -o wide &lt;span class="p">|&lt;/span> grep &amp;lt;node&amp;gt;
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">kubectl logs &amp;lt;pod&amp;gt; --previous --tail&lt;span class="o">=&lt;/span>&lt;span class="m">500&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>&lt;strong>Resolution.&lt;/strong>&lt;/p>
&lt;ul>
&lt;li>&lt;strong>XID 13/43&lt;/strong> (software exception / channel verif): if it recurs only with one specific model, it is a workload bug; raise an issue with the model team. If it is transient, restarting the pod is enough.&lt;/li>
&lt;li>&lt;strong>XID 31&lt;/strong> (MMU fault): usually a cascade from a previous XID 48. Reset the GPU (&lt;code>nvidia-smi --gpu-reset -i &amp;lt;index&amp;gt;&lt;/code>) or reboot the node if the reset does not resolve it.&lt;/li>
&lt;li>&lt;strong>XID 48 / 95&lt;/strong> (DBE / uncontained ECC): see RB-04. The node goes into quarantine.&lt;/li>
&lt;li>&lt;strong>XID 79&lt;/strong> (fallen off the bus): reboot the node. If it recurs after the reboot, open an RMA for the GPU. ByteDance reports 43 % co-occurrence with PCIe errors, so check the slot and the cable too.&lt;/li>
&lt;li>&lt;strong>XID 94 / 145 / 149&lt;/strong>: catalogued in NVIDIA&amp;rsquo;s Xid Catalog with a specific procedure.&lt;/li>
&lt;/ul>
&lt;p>&lt;strong>Closure.&lt;/strong> Node smoke test passed (&lt;code>dcgmi diag -r 3&lt;/code>), 24 h with no new XIDs, back into the pool.&lt;/p>
&lt;p>&lt;strong>Postmortem.&lt;/strong> &lt;strong>Mandatory&lt;/strong>. Include the specific XID, the distribution of XIDs across the cluster, an updated MTBE.&lt;/p>
&lt;h3 id="rb-04--gpueccdoublebit--dcgm_fi_dev_ecc_dbe_vol_total--0">RB-04 · &lt;code>GpuEccDoubleBit&lt;/code> — &lt;code>DCGM_FI_DEV_ECC_DBE_VOL_TOTAL &amp;gt; 0&lt;/code>&lt;/h3>
&lt;p>&lt;strong>Severity&lt;/strong>: CRITICAL, data corruption in progress.&lt;/p>
&lt;p>&lt;strong>Immediate mitigation.&lt;/strong> &lt;strong>Drain the node immediately without waiting for further evidence.&lt;/strong> Page (PagerDuty / OpsGenie) the primary ON-CALL. Mark the node &lt;code>unschedulable&lt;/code> and &lt;code>failed&lt;/code>. XID 48 has a &lt;strong>100 % probability of killing the running job&lt;/strong> according to the &lt;em>Story of Two GPUs&lt;/em> dataset; any inference already in flight is compromised.&lt;/p>
&lt;p>&lt;strong>Evidence (in parallel with the mitigation).&lt;/strong>&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-bash" data-lang="bash">&lt;span class="line">&lt;span class="cl">nvidia-smi -q -d ECC
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">nvidia-smi -q -d ROW_REMAPPER &lt;span class="c1"># Pending: Yes expected&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">dmesg &lt;span class="p">|&lt;/span> grep -E &lt;span class="s2">&amp;#34;Xid.*48|DBE|double-bit&amp;#34;&lt;/span> &lt;span class="p">|&lt;/span> tail -50
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="c1"># Full capture of the GPU state&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">dcgmi diag -r &lt;span class="m">4&lt;/span> -i &amp;lt;gpu_index&amp;gt;
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>&lt;strong>Resolution.&lt;/strong> Full GPU reset (&lt;code>nvidia-smi --gpu-reset&lt;/code>) or a node reboot if the reset does not complete. The reset activates the row remap. After the reboot:&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-bash" data-lang="bash">&lt;span class="line">&lt;span class="cl">nvidia-smi -q -d ROW_REMAPPER &lt;span class="c1"># Pending: No expected&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">nvidia-smi -q -d ECC &lt;span class="c1"># volatile counters at 0&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>If &lt;code>RETIRED_DBE &amp;gt; 8&lt;/code> pages after the remap: schedule a &lt;strong>GPU replacement&lt;/strong> in the next window, because silicon degradation is progressive. The published real case documents &lt;em>~19 hours of downtime&lt;/em> as typical.&lt;/p>
&lt;p>&lt;strong>Closure.&lt;/strong> Node back in the pool after 48 h with no new DBEs.&lt;/p>
&lt;p>&lt;strong>Postmortem.&lt;/strong> &lt;strong>Mandatory&lt;/strong>. If the incident affected a request carrying personal or classified data, evaluate notification to the DPO under GDPR art. 33 (it is not necessarily a breach, but it has to be assessed).&lt;/p>
&lt;h3 id="rb-05--vllmkvcachepoolnearfull--gpu_cache_usage_perc--95--sustained-3-min">RB-05 · &lt;code>VllmKvCachePoolNearFull&lt;/code> — &lt;code>gpu_cache_usage_perc &amp;gt; 95 %&lt;/code> sustained 3 min&lt;/h3>
&lt;p>&lt;strong>Severity&lt;/strong>: WARNING (risk of preempt-on-OOM, not of a real OOM).&lt;/p>
&lt;p>&lt;strong>Immediate mitigation.&lt;/strong> Activate autoscaler scale-out by lowering the KEDA threshold temporarily (from 0.85 to 0.75) for 30 min. In &lt;code>recompute&lt;/code> mode, preempts raise TTFT but do not break requests; acceptable in the short term. In &lt;code>swap&lt;/code> mode latency goes through the roof, so it is better to cut new traffic (return 503 from the &lt;a href="https://blog.lo0.es/en/posts/llm-inference-router-l7-switchboard/">router&lt;/a>) for 5 min.&lt;/p>
&lt;p>&lt;strong>Evidence.&lt;/strong>&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-bash" data-lang="bash">&lt;span class="line">&lt;span class="cl">curl http://vllm-pod:8000/metrics &lt;span class="p">|&lt;/span> grep -E &lt;span class="s2">&amp;#34;gpu_cache|num_requests|num_preemptions&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">kubectl get hpa vllm-llama70b
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">kubectl logs &amp;lt;pod&amp;gt; --tail&lt;span class="o">=&lt;/span>&lt;span class="m">200&lt;/span> &lt;span class="p">|&lt;/span> grep -i preempt
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>&lt;strong>Resolution.&lt;/strong> If it recurs regularly: revisit capacity planning, possibly lowering &lt;code>max_num_seqs&lt;/code> or raising the stable replica count. See &lt;a href="https://blog.lo0.es/en/posts/capacity-planning-on-premise-llm-inference/">Capacity planning&lt;/a>.&lt;/p>
&lt;p>&lt;strong>Closure.&lt;/strong> Pool &amp;lt; 85 % sustained 30 min, no preempts in the last 15 min.&lt;/p>
&lt;p>&lt;strong>Postmortem.&lt;/strong> Not mandatory unless it recurs &amp;gt; 3 times / week.&lt;/p>
&lt;h3 id="rb-06--vllmttftp95outofslo--ttft-p95--15-s-for-5-min">RB-06 · &lt;code>VllmTtftP95OutOfSlo&lt;/code> — TTFT P95 &amp;gt; 1.5 s for 5 min&lt;/h3>
&lt;p>&lt;strong>Severity&lt;/strong>: CRITICAL (contractual SLO violation).&lt;/p>
&lt;p>&lt;strong>Immediate mitigation.&lt;/strong> Quick diagnosis of the regime (in order of likelihood):&lt;/p>
&lt;ol>
&lt;li>If a v2 canary is active and the ratio &lt;code>ttft_p95(v2)/ttft_p95(v1) &amp;gt; 1.30&lt;/code>: &lt;strong>automatic rollback&lt;/strong> of the canary via Argo Rollouts (&lt;code>argo rollouts abort vllm-llama70b&lt;/code>).&lt;/li>
&lt;li>If &lt;code>num_requests_waiting &amp;gt; 5&lt;/code>: scale out via KEDA.&lt;/li>
&lt;li>If &lt;code>DRAM_ACTIVE &amp;gt; 90 %&lt;/code> plus &lt;code>gpu_cache_usage_perc &amp;gt; 90 %&lt;/code>: HBM bottleneck, reach for the quantisation lever or a context reduction.&lt;/li>
&lt;li>If &lt;code>CLOCK_THROTTLE_REASONS != 0&lt;/code>: see RB-02.&lt;/li>
&lt;/ol>
&lt;p>&lt;strong>Evidence.&lt;/strong>&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-bash" data-lang="bash">&lt;span class="line">&lt;span class="cl">&lt;span class="c1"># Histogram snapshot&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">curl http://vllm-pod:8000/metrics &lt;span class="p">|&lt;/span> grep time_to_first_token
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="c1"># Breakdown by version if a canary is running&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="c1"># DCGM state at that moment&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">curl http://dcgm-exporter:9400/metrics &lt;span class="p">|&lt;/span> grep -E &lt;span class="s2">&amp;#34;PIPE_TENSOR|DRAM_ACTIVE|THROTTLE&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="c1"># Active traffic&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">kubectl top pods -n inference
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>&lt;strong>Resolution.&lt;/strong> Depends on the diagnosis. Typical cases:&lt;/p>
&lt;ul>
&lt;li>Canary regression → full rollback (see &lt;a href="https://blog.lo0.es/en/posts/canary-blue-green-shadow-llm-models/">Canary&lt;/a>).&lt;/li>
&lt;li>Capacity saturation → scale replicas or accept a temporary 503 with &lt;code>Retry-After&lt;/code>.&lt;/li>
&lt;li>Prefill bound → enable or calibrate chunked prefill or disaggregated serving (see &lt;a href="https://blog.lo0.es/en/posts/disaggregated-serving-prefill-decode-specialised-pods/">Disaggregated serving&lt;/a>).&lt;/li>
&lt;/ul>
&lt;p>&lt;strong>Closure.&lt;/strong> TTFT P95 inside SLO sustained 30 min.&lt;/p>
&lt;p>&lt;strong>Postmortem.&lt;/strong> &lt;strong>Mandatory&lt;/strong>. Document the root cause and the lever applied; update the runbook.&lt;/p>
&lt;h2 id="keep-yaml-workflows--three-complete-examples">Keep YAML workflows — three complete examples&lt;/h2>
&lt;p>Runbooks are only useful if they are &lt;strong>codified&lt;/strong> in the workflow engine. Keep lets you declare them in YAML versioned in git.&lt;/p>
&lt;h3 id="workflow-1--xid-detectedyaml">Workflow 1 — &lt;code>xid-detected.yaml&lt;/code>&lt;/h3>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-yaml" data-lang="yaml">&lt;span class="line">&lt;span class="cl">&lt;span class="nt">workflow&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="nt">id&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="l">xid-detected-drain&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="nt">name&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="s2">&amp;#34;XID error detected — cordon node and capture evidence&amp;#34;&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="nt">description&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="s2">&amp;#34;RB-03 implementation&amp;#34;&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="nt">triggers&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>- &lt;span class="nt">type&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="l">alert&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="nt">filters&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>- &lt;span class="nt">key&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="l">alertname&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="nt">value&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="l">GpuXidErrorDetected&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="nt">steps&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>- &lt;span class="nt">name&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="l">capture-evidence&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="nt">provider&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="nt">type&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="l">bash&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="nt">with&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="nt">command&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="p">|&lt;/span>&lt;span class="sd">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="sd"> set -e
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="sd"> NODE=&amp;#34;{{ alert.labels.node }}&amp;#34;
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="sd"> GPU=&amp;#34;{{ alert.labels.gpu }}&amp;#34;
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="sd"> INC_ID=&amp;#34;{{ alert.fingerprint }}&amp;#34;
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="sd"> mkdir -p /var/evidence/$INC_ID
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="sd"> kubectl debug node/$NODE -it --image=nvcr.io/nvidia/cuda:12.4.0-base-ubuntu22.04 -- \
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="sd"> bash -c &amp;#34;nvidia-smi -q -d ERROR,PCIE,ROW_REMAPPER &amp;gt; /host/var/evidence/$INC_ID/smi.txt&amp;#34;
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="sd"> kubectl describe node $NODE &amp;gt; /var/evidence/$INC_ID/node.txt&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>- &lt;span class="nt">name&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="l">cordon-node&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="nt">provider&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="nt">type&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="l">kubernetes&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="nt">with&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="nt">action&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="l">cordon&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="nt">name&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="s2">&amp;#34;{{ alert.labels.node }}&amp;#34;&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="nt">if&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="s2">&amp;#34;{{ alert.labels.severity == &amp;#39;critical&amp;#39; }}&amp;#34;&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="nt">actions&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>- &lt;span class="nt">name&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="l">open-jira-ticket&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="nt">provider&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="nt">type&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="l">jira&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="nt">config&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="s2">&amp;#34;{{ providers.jira-prod }}&amp;#34;&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="nt">with&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="nt">project&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="l">GPUOPS&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="nt">issuetype&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="l">Incident&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="nt">summary&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="s2">&amp;#34;RB-03: XID {{ alert.annotations.xid_code }} on {{ alert.labels.node }}/{{ alert.labels.gpu }}&amp;#34;&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="nt">description&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="p">|&lt;/span>&lt;span class="sd">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="sd"> Severity: {{ alert.labels.severity }}
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="sd"> XID: {{ alert.annotations.xid_code }}
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="sd"> Evidence: /var/evidence/{{ alert.fingerprint }}
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="sd"> Runbook: https://runbooks.example.local/RB-03&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>- &lt;span class="nt">name&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="l">notify-slack&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="nt">provider&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="nt">type&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="l">slack&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="nt">config&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="s2">&amp;#34;{{ providers.slack-gpu-incidents }}&amp;#34;&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="nt">with&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="nt">message&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="p">|&lt;/span>&lt;span class="sd">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="sd"> :warning: *RB-03 triggered*
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="sd"> Node: `{{ alert.labels.node }}` GPU: `{{ alert.labels.gpu }}`
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="sd"> XID: `{{ alert.annotations.xid_code }}`
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="sd"> &amp;lt;{{ jira.url }}|Jira ticket&amp;gt;&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>- &lt;span class="nt">name&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="l">emit-audit&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="nt">provider&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="nt">type&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="l">kafka&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="nt">config&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="s2">&amp;#34;{{ providers.kafka-audit }}&amp;#34;&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="nt">with&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="nt">topic&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="l">audit.actions&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="nt">message&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="nt">incident_id&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="s2">&amp;#34;{{ alert.fingerprint }}&amp;#34;&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="nt">action&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="s2">&amp;#34;cordon_node&amp;#34;&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="nt">actor&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="s2">&amp;#34;keep-workflow&amp;#34;&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="nt">workflow_id&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="s2">&amp;#34;xid-detected-drain&amp;#34;&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="nt">target&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="s2">&amp;#34;{{ alert.labels.node }}&amp;#34;&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="nt">timestamp&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="s2">&amp;#34;{{ now }}&amp;#34;&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h3 id="workflow-2--ecc-dbeyaml--immediate-paging">Workflow 2 — &lt;code>ecc-dbe.yaml&lt;/code> — immediate paging&lt;/h3>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-yaml" data-lang="yaml">&lt;span class="line">&lt;span class="cl">&lt;span class="nt">workflow&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="nt">id&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="l">ecc-dbe-critical&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="nt">name&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="s2">&amp;#34;ECC double-bit — page on-call and quarantine node&amp;#34;&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="nt">triggers&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>- &lt;span class="nt">type&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="l">alert&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="nt">filters&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>- &lt;span class="nt">key&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="l">alertname&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="nt">value&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="l">GpuEccDoubleBit&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="nt">steps&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>- &lt;span class="nt">name&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="l">cordon-immediately&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="nt">provider&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="nt">type&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="l">kubernetes&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="nt">with&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="nt">action&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="l">cordon&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="nt">name&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="s2">&amp;#34;{{ alert.labels.node }}&amp;#34;&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>- &lt;span class="nt">name&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="l">drain-workload&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="nt">provider&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="nt">type&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="l">kubernetes&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="nt">with&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="nt">action&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="l">drain&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="nt">name&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="s2">&amp;#34;{{ alert.labels.node }}&amp;#34;&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="nt">options&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="nt">ignore-daemonsets&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="kc">true&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="nt">delete-emptydir-data&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="kc">true&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="nt">grace-period&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="m">120&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>- &lt;span class="nt">name&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="l">page-oncall&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="nt">provider&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="nt">type&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="l">pagerduty&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="nt">config&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="s2">&amp;#34;{{ providers.pagerduty-critical }}&amp;#34;&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="nt">with&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="nt">service_key&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="s2">&amp;#34;{{ env.PD_SERVICE_KEY }}&amp;#34;&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="nt">severity&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="l">critical&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="nt">summary&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="s2">&amp;#34;RB-04 ECC DBE on {{ alert.labels.node }}/{{ alert.labels.gpu }} — node drained&amp;#34;&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>- &lt;span class="nt">name&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="l">emit-lifecycle&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="nt">provider&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="nt">type&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="l">kafka&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="nt">config&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="s2">&amp;#34;{{ providers.kafka-incidents }}&amp;#34;&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="nt">with&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="nt">topic&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="l">incidents.lifecycle&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="nt">message&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="nt">incident_id&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="s2">&amp;#34;{{ alert.fingerprint }}&amp;#34;&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="nt">event&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="l">incident.opened&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="nt">severity&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="l">critical&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="nt">runbook&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="l">RB-04&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="nt">requires_postmortem&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="kc">true&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>- &lt;span class="nt">name&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="l">notify-dpo&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="nt">provider&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="nt">type&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="l">email&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="nt">with&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="nt">to&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="l">dpo@example.local&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="nt">subject&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="s2">&amp;#34;ECC DBE on a production GPU — assessment required&amp;#34;&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="nt">body&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="p">|&lt;/span>&lt;span class="sd">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="sd"> RB-04 ECC DBE incident detected on {{ alert.labels.node }}.
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="sd"> Affected model: {{ alert.labels.model }}.
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="sd"> Please assess whether personal/classified data was processed
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="sd"> during the error window and whether GDPR art. 33 notification is needed.&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h3 id="workflow-3--canary-rollbackyaml--ttft-p95-out-of-slo">Workflow 3 — &lt;code>canary-rollback.yaml&lt;/code> — TTFT P95 out of SLO&lt;/h3>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-yaml" data-lang="yaml">&lt;span class="line">&lt;span class="cl">&lt;span class="nt">workflow&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="nt">id&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="l">canary-rollback-ttft&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="nt">name&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="s2">&amp;#34;Rollback canary when TTFT P95 ratio v2/v1 &amp;gt; 1.30&amp;#34;&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="nt">triggers&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>- &lt;span class="nt">type&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="l">alert&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="nt">filters&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>- &lt;span class="nt">key&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="l">alertname&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="nt">value&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="l">VllmTtftP95OutOfSlo&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>- &lt;span class="nt">key&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="l">canary_active&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="nt">value&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="s2">&amp;#34;true&amp;#34;&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="nt">steps&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>- &lt;span class="nt">name&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="l">check-ratio&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="nt">provider&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="nt">type&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="l">prometheus&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="nt">config&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="s2">&amp;#34;{{ providers.prom-prod }}&amp;#34;&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="nt">with&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="nt">query&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="p">|&lt;/span>&lt;span class="sd">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="sd"> histogram_quantile(0.95, sum by(le)(rate(vllm:time_to_first_token_seconds_bucket{version=&amp;#34;v2&amp;#34;}[5m])))
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="sd"> /
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="sd"> histogram_quantile(0.95, sum by(le)(rate(vllm:time_to_first_token_seconds_bucket{version=&amp;#34;v1&amp;#34;}[5m])))&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="nt">condition&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="l">result &amp;gt; 1.30&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="nt">actions&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>- &lt;span class="nt">name&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="l">argo-rollback&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="nt">provider&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="nt">type&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="l">kubernetes&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="nt">with&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="nt">action&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="l">exec&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="nt">command&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>- &lt;span class="l">kubectl&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>- &lt;span class="l">argo&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>- &lt;span class="l">rollouts&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>- &lt;span class="l">abort&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>- &lt;span class="s2">&amp;#34;{{ alert.labels.rollout }}&amp;#34;&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>- -&lt;span class="kc">n&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>- &lt;span class="s2">&amp;#34;{{ alert.labels.namespace }}&amp;#34;&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>- &lt;span class="nt">name&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="l">notify-and-audit&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="nt">provider&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="nt">type&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="l">kafka&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="nt">config&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="s2">&amp;#34;{{ providers.kafka-audit }}&amp;#34;&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="nt">with&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="nt">topic&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="l">audit.actions&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="nt">message&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="nt">incident_id&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="s2">&amp;#34;{{ alert.fingerprint }}&amp;#34;&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="nt">action&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="l">canary_rollback&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="nt">ratio&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="s2">&amp;#34;{{ steps.check-ratio.result }}&amp;#34;&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="nt">actor&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="l">keep-workflow&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="nt">timestamp&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="s2">&amp;#34;{{ now }}&amp;#34;&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>Each workflow lives in &lt;code>repos/keep-workflows/&lt;/code> versioned in git, reviewed by pull request, validated by CI (&lt;code>keep workflow validate&lt;/code>). The written runbook lives as &lt;code>docs/runbooks/RB-XX.md&lt;/code> linked from the workflow YAML; the two always evolve together.&lt;/p>
&lt;h2 id="the-canonical-kafka-event-schema">The canonical Kafka event schema&lt;/h2>
&lt;p>For the topics to be consumable by compliance, postmortem tooling and dashboards without each consumer having to guess the shape, the schema is fixed with Avro / Protobuf.&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-json" data-lang="json">&lt;span class="line">&lt;span class="cl">&lt;span class="p">{&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="nt">&amp;#34;name&amp;#34;&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="s2">&amp;#34;IncidentLifecycleEvent&amp;#34;&lt;/span>&lt;span class="p">,&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="nt">&amp;#34;type&amp;#34;&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="s2">&amp;#34;record&amp;#34;&lt;/span>&lt;span class="p">,&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="nt">&amp;#34;fields&amp;#34;&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="p">[&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="p">{&lt;/span> &lt;span class="nt">&amp;#34;name&amp;#34;&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="s2">&amp;#34;incident_id&amp;#34;&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="nt">&amp;#34;type&amp;#34;&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="s2">&amp;#34;string&amp;#34;&lt;/span> &lt;span class="p">},&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="p">{&lt;/span> &lt;span class="nt">&amp;#34;name&amp;#34;&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="s2">&amp;#34;event&amp;#34;&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="nt">&amp;#34;type&amp;#34;&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="p">{&lt;/span> &lt;span class="nt">&amp;#34;type&amp;#34;&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="s2">&amp;#34;enum&amp;#34;&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="nt">&amp;#34;symbols&amp;#34;&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="p">[&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="s2">&amp;#34;incident.opened&amp;#34;&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="s2">&amp;#34;incident.acknowledged&amp;#34;&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="s2">&amp;#34;action.proposed&amp;#34;&lt;/span>&lt;span class="p">,&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="s2">&amp;#34;action.executed&amp;#34;&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="s2">&amp;#34;action.failed&amp;#34;&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="s2">&amp;#34;incident.escalated&amp;#34;&lt;/span>&lt;span class="p">,&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="s2">&amp;#34;incident.resolved&amp;#34;&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="s2">&amp;#34;postmortem.attached&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="p">]}},&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="p">{&lt;/span> &lt;span class="nt">&amp;#34;name&amp;#34;&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="s2">&amp;#34;timestamp&amp;#34;&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="nt">&amp;#34;type&amp;#34;&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="s2">&amp;#34;string&amp;#34;&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="nt">&amp;#34;logicalType&amp;#34;&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="s2">&amp;#34;timestamp-millis&amp;#34;&lt;/span> &lt;span class="p">},&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="p">{&lt;/span> &lt;span class="nt">&amp;#34;name&amp;#34;&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="s2">&amp;#34;actor&amp;#34;&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="nt">&amp;#34;type&amp;#34;&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="s2">&amp;#34;string&amp;#34;&lt;/span> &lt;span class="p">},&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="p">{&lt;/span> &lt;span class="nt">&amp;#34;name&amp;#34;&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="s2">&amp;#34;severity&amp;#34;&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="nt">&amp;#34;type&amp;#34;&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="p">{&lt;/span> &lt;span class="nt">&amp;#34;type&amp;#34;&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="s2">&amp;#34;enum&amp;#34;&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="nt">&amp;#34;symbols&amp;#34;&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="p">[&lt;/span>&lt;span class="s2">&amp;#34;low&amp;#34;&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="s2">&amp;#34;warning&amp;#34;&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="s2">&amp;#34;critical&amp;#34;&lt;/span>&lt;span class="p">]&lt;/span> &lt;span class="p">}&lt;/span> &lt;span class="p">},&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="p">{&lt;/span> &lt;span class="nt">&amp;#34;name&amp;#34;&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="s2">&amp;#34;runbook&amp;#34;&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="nt">&amp;#34;type&amp;#34;&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="p">[&lt;/span>&lt;span class="s2">&amp;#34;null&amp;#34;&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="s2">&amp;#34;string&amp;#34;&lt;/span>&lt;span class="p">],&lt;/span> &lt;span class="nt">&amp;#34;default&amp;#34;&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="kc">null&lt;/span> &lt;span class="p">},&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="p">{&lt;/span> &lt;span class="nt">&amp;#34;name&amp;#34;&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="s2">&amp;#34;alert_name&amp;#34;&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="nt">&amp;#34;type&amp;#34;&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="s2">&amp;#34;string&amp;#34;&lt;/span> &lt;span class="p">},&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="p">{&lt;/span> &lt;span class="nt">&amp;#34;name&amp;#34;&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="s2">&amp;#34;labels&amp;#34;&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="nt">&amp;#34;type&amp;#34;&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="p">{&lt;/span> &lt;span class="nt">&amp;#34;type&amp;#34;&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="s2">&amp;#34;map&amp;#34;&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="nt">&amp;#34;values&amp;#34;&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="s2">&amp;#34;string&amp;#34;&lt;/span> &lt;span class="p">}&lt;/span> &lt;span class="p">},&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="p">{&lt;/span> &lt;span class="nt">&amp;#34;name&amp;#34;&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="s2">&amp;#34;annotations&amp;#34;&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="nt">&amp;#34;type&amp;#34;&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="p">{&lt;/span> &lt;span class="nt">&amp;#34;type&amp;#34;&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="s2">&amp;#34;map&amp;#34;&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="nt">&amp;#34;values&amp;#34;&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="s2">&amp;#34;string&amp;#34;&lt;/span> &lt;span class="p">}&lt;/span> &lt;span class="p">},&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="p">{&lt;/span> &lt;span class="nt">&amp;#34;name&amp;#34;&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="s2">&amp;#34;evidence_uri&amp;#34;&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="nt">&amp;#34;type&amp;#34;&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="p">[&lt;/span>&lt;span class="s2">&amp;#34;null&amp;#34;&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="s2">&amp;#34;string&amp;#34;&lt;/span>&lt;span class="p">],&lt;/span> &lt;span class="nt">&amp;#34;default&amp;#34;&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="kc">null&lt;/span> &lt;span class="p">},&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="p">{&lt;/span> &lt;span class="nt">&amp;#34;name&amp;#34;&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="s2">&amp;#34;requires_postmortem&amp;#34;&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="nt">&amp;#34;type&amp;#34;&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="s2">&amp;#34;boolean&amp;#34;&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="nt">&amp;#34;default&amp;#34;&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="kc">false&lt;/span> &lt;span class="p">}&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="p">]&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="p">}&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>For &lt;code>audit.actions&lt;/code> (WORM), a separate and stricter schema with non-modifiable fields:&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-json" data-lang="json">&lt;span class="line">&lt;span class="cl">&lt;span class="p">{&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="nt">&amp;#34;name&amp;#34;&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="s2">&amp;#34;AuditAction&amp;#34;&lt;/span>&lt;span class="p">,&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="nt">&amp;#34;type&amp;#34;&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="s2">&amp;#34;record&amp;#34;&lt;/span>&lt;span class="p">,&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="nt">&amp;#34;fields&amp;#34;&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="p">[&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="p">{&lt;/span> &lt;span class="nt">&amp;#34;name&amp;#34;&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="s2">&amp;#34;incident_id&amp;#34;&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="nt">&amp;#34;type&amp;#34;&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="s2">&amp;#34;string&amp;#34;&lt;/span> &lt;span class="p">},&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="p">{&lt;/span> &lt;span class="nt">&amp;#34;name&amp;#34;&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="s2">&amp;#34;action&amp;#34;&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="nt">&amp;#34;type&amp;#34;&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="s2">&amp;#34;string&amp;#34;&lt;/span> &lt;span class="p">},&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="p">{&lt;/span> &lt;span class="nt">&amp;#34;name&amp;#34;&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="s2">&amp;#34;actor&amp;#34;&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="nt">&amp;#34;type&amp;#34;&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="s2">&amp;#34;string&amp;#34;&lt;/span> &lt;span class="p">},&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="p">{&lt;/span> &lt;span class="nt">&amp;#34;name&amp;#34;&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="s2">&amp;#34;actor_type&amp;#34;&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="nt">&amp;#34;type&amp;#34;&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="p">{&lt;/span> &lt;span class="nt">&amp;#34;type&amp;#34;&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="s2">&amp;#34;enum&amp;#34;&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="nt">&amp;#34;symbols&amp;#34;&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="p">[&lt;/span>&lt;span class="s2">&amp;#34;human&amp;#34;&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="s2">&amp;#34;workflow&amp;#34;&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="s2">&amp;#34;scheduler&amp;#34;&lt;/span>&lt;span class="p">]&lt;/span> &lt;span class="p">}&lt;/span> &lt;span class="p">},&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="p">{&lt;/span> &lt;span class="nt">&amp;#34;name&amp;#34;&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="s2">&amp;#34;workflow_id&amp;#34;&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="nt">&amp;#34;type&amp;#34;&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="p">[&lt;/span>&lt;span class="s2">&amp;#34;null&amp;#34;&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="s2">&amp;#34;string&amp;#34;&lt;/span>&lt;span class="p">],&lt;/span> &lt;span class="nt">&amp;#34;default&amp;#34;&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="kc">null&lt;/span> &lt;span class="p">},&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="p">{&lt;/span> &lt;span class="nt">&amp;#34;name&amp;#34;&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="s2">&amp;#34;target&amp;#34;&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="nt">&amp;#34;type&amp;#34;&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="s2">&amp;#34;string&amp;#34;&lt;/span> &lt;span class="p">},&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="p">{&lt;/span> &lt;span class="nt">&amp;#34;name&amp;#34;&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="s2">&amp;#34;command&amp;#34;&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="nt">&amp;#34;type&amp;#34;&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="p">[&lt;/span>&lt;span class="s2">&amp;#34;null&amp;#34;&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="s2">&amp;#34;string&amp;#34;&lt;/span>&lt;span class="p">],&lt;/span> &lt;span class="nt">&amp;#34;default&amp;#34;&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="kc">null&lt;/span> &lt;span class="p">},&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="p">{&lt;/span> &lt;span class="nt">&amp;#34;name&amp;#34;&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="s2">&amp;#34;result&amp;#34;&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="nt">&amp;#34;type&amp;#34;&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="p">{&lt;/span> &lt;span class="nt">&amp;#34;type&amp;#34;&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="s2">&amp;#34;enum&amp;#34;&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="nt">&amp;#34;symbols&amp;#34;&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="p">[&lt;/span>&lt;span class="s2">&amp;#34;success&amp;#34;&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="s2">&amp;#34;failure&amp;#34;&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="s2">&amp;#34;partial&amp;#34;&lt;/span>&lt;span class="p">]&lt;/span> &lt;span class="p">}&lt;/span> &lt;span class="p">},&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="p">{&lt;/span> &lt;span class="nt">&amp;#34;name&amp;#34;&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="s2">&amp;#34;timestamp&amp;#34;&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="nt">&amp;#34;type&amp;#34;&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="s2">&amp;#34;string&amp;#34;&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="nt">&amp;#34;logicalType&amp;#34;&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="s2">&amp;#34;timestamp-millis&amp;#34;&lt;/span> &lt;span class="p">},&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="p">{&lt;/span> &lt;span class="nt">&amp;#34;name&amp;#34;&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="s2">&amp;#34;evidence_uri&amp;#34;&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="nt">&amp;#34;type&amp;#34;&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="p">[&lt;/span>&lt;span class="s2">&amp;#34;null&amp;#34;&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="s2">&amp;#34;string&amp;#34;&lt;/span>&lt;span class="p">],&lt;/span> &lt;span class="nt">&amp;#34;default&amp;#34;&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="kc">null&lt;/span> &lt;span class="p">},&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="p">{&lt;/span> &lt;span class="nt">&amp;#34;name&amp;#34;&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="s2">&amp;#34;approver&amp;#34;&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="nt">&amp;#34;type&amp;#34;&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="p">[&lt;/span>&lt;span class="s2">&amp;#34;null&amp;#34;&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="s2">&amp;#34;string&amp;#34;&lt;/span>&lt;span class="p">],&lt;/span> &lt;span class="nt">&amp;#34;default&amp;#34;&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="kc">null&lt;/span> &lt;span class="p">}&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="p">]&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="p">}&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>The topic is configured with &lt;code>cleanup.policy=delete&lt;/code>, &lt;code>retention.ms=15552000000&lt;/code> (6 months) and &lt;code>min.insync.replicas=2&lt;/code> with &lt;code>acks=all&lt;/code> to guarantee durability. For longer retention without the Kafka cost, use &lt;strong>tiered storage&lt;/strong> to Ceph RGW or an S3-compatible backend: new log in the hot tier, old log in the cold tier, transparently to the consumer.&lt;/p>
&lt;h2 id="formal-fit-into-incident-management">Formal fit into incident management&lt;/h2>
&lt;p>Runbooks are not an isolated SRE practice. They fit into four regulatory frameworks that production LLM platforms touch daily.&lt;/p>
&lt;h3 id="isoiec-27035--information-security-incident-management">ISO/IEC 27035 — information security incident management&lt;/h3>
&lt;p>It defines the formal cycle in five phases: &lt;strong>plan &amp;amp; prepare&lt;/strong> → &lt;strong>detect &amp;amp; report&lt;/strong> → &lt;strong>assess &amp;amp; decide&lt;/strong> → &lt;strong>respond&lt;/strong> → &lt;strong>lessons learned&lt;/strong>. Each phase has outputs that must be documented. Translated to the stack:&lt;/p>
&lt;ul>
&lt;li>&lt;strong>Plan &amp;amp; prepare&lt;/strong>: runbooks RB-01 to RB-06 plus the Keep workflows are part of the &lt;em>Information Security Incident Management Plan&lt;/em>. Versioned in git, reviewed annually.&lt;/li>
&lt;li>&lt;strong>Detect &amp;amp; report&lt;/strong>: the Prometheus alerts entering Kafka are the materialisation.&lt;/li>
&lt;li>&lt;strong>Assess &amp;amp; decide&lt;/strong>: the severity in &lt;code>gpu.alerts.enriched&lt;/code> plus the Keep workflow logic.&lt;/li>
&lt;li>&lt;strong>Respond&lt;/strong>: execution of the workflow&amp;rsquo;s &lt;code>steps&lt;/code> plus &lt;code>actions&lt;/code>.&lt;/li>
&lt;li>&lt;strong>Lessons learned&lt;/strong>: a mandatory postmortem for the runbooks that flag it; the output documented in the postmortem repo plus the runbook update.&lt;/li>
&lt;/ul>
&lt;h3 id="ens-esquema-nacional-de-seguridad--opexp-controls">ENS (Esquema Nacional de Seguridad) — op.exp controls&lt;/h3>
&lt;ul>
&lt;li>&lt;strong>&lt;code>op.exp.7&lt;/code> Incident management&lt;/strong>: the runbook catalogue plus the Keep / Kafka pipeline materialise the &amp;ldquo;organised and procedural response&amp;rdquo;.&lt;/li>
&lt;li>&lt;strong>&lt;code>op.exp.8&lt;/code> Activity logging&lt;/strong>: the &lt;code>audit.actions&lt;/code> topic with WORM retention of 6 months (minimum for level ALTO).&lt;/li>
&lt;li>&lt;strong>&lt;code>op.exp.9&lt;/code> Incident management logging&lt;/strong>: the &lt;code>incidents.lifecycle&lt;/code> topic with the full cycle of each incident.&lt;/li>
&lt;li>&lt;strong>&lt;code>op.exp.10&lt;/code> Protection of activity logs&lt;/strong>: WORM plus encryption at rest plus access control (compliance consumers read-only).&lt;/li>
&lt;/ul>
&lt;h3 id="nis2--notification-to-the-competent-authority">NIS2 — notification to the competent authority&lt;/h3>
&lt;p>For essential and important entities, art. 23 sets three deadlines from the detection of &lt;em>significant impact&lt;/em>:&lt;/p>
&lt;ul>
&lt;li>&lt;strong>24 hours&lt;/strong>: an early warning to the national CSIRT (INCIBE-CERT in Spain).&lt;/li>
&lt;li>&lt;strong>72 hours&lt;/strong>: a formal notification with an initial assessment.&lt;/li>
&lt;li>&lt;strong>1 month&lt;/strong>: a final report with root cause, impact and corrective measures.&lt;/li>
&lt;/ul>
&lt;p>The data for those reports comes straight out of &lt;code>incidents.lifecycle&lt;/code> plus &lt;code>audit.actions&lt;/code> with a consumer that generates the dossier in the required format. Without the auditable pipeline, the NIS2 deadlines are unreachable.&lt;/p>
&lt;h3 id="eu-ai-act--art-73-serious-incident-reporting">EU AI Act — art. 73 (serious incident reporting)&lt;/h3>
&lt;p>Applicable to high-risk systems. Deadlines:&lt;/p>
&lt;ul>
&lt;li>&lt;strong>2 days&lt;/strong>: for incidents causing death or irreversible harm to people or critical infrastructure.&lt;/li>
&lt;li>&lt;strong>10 days&lt;/strong>: for incidents producing serious disruption of critical infrastructure.&lt;/li>
&lt;li>&lt;strong>15 days&lt;/strong>: for all other &amp;ldquo;serious incidents&amp;rdquo;.&lt;/li>
&lt;/ul>
&lt;p>The definition of &amp;ldquo;serious incident&amp;rdquo; includes systematic model failures, a fundamental rights breach, material or environmental harm. Runbooks must flag which alerts can lead to a serious incident (typically anything affecting the model&amp;rsquo;s output in a high-risk context) and fire a specific legal assessment sub-workflow.&lt;/p>
&lt;h3 id="isoiec-42001--aims-clause-10-continual-improvement">ISO/IEC 42001 — AIMS clause 10 continual improvement&lt;/h3>
&lt;p>The mandatory post-incident postmortem feeds clause 10. Updating the runbook after every incident that reveals a new pattern is the &amp;ldquo;corrective action with verification of effectiveness&amp;rdquo; the standard demands. See &lt;a href="https://blog.lo0.es/en/posts/iso-42001-aims-on-premise-llm-platform/">ISO 42001 AIMS&lt;/a>.&lt;/p>
&lt;h2 id="four-anti-patterns">Four anti-patterns&lt;/h2>
&lt;p>&lt;strong>Anti-pattern 1 — alerts without a runbook.&lt;/strong> The alert fires, the junior operator on call looks at the dashboard, searches Confluence, finds nothing up to date, calls the senior on Slack, waits 20 minutes. In that time the incident has grown. Rule: &lt;strong>no alert goes to production without a published runbook and an approved Keep workflow&lt;/strong>. CI validates that every &lt;code>PrometheusRule&lt;/code> with severity ≥ warning has its corresponding &lt;code>keep workflow&lt;/code>.&lt;/p>
&lt;p>&lt;strong>Anti-pattern 2 — a runbook without prior evidence capture.&lt;/strong> The workflow runs &lt;code>nvidia-smi --gpu-reset&lt;/code> as soon as the XID arrives, losing the state that would have diagnosed the root cause. The next identical XID forces the diagnosis to be redone from scratch. Rule: &lt;strong>&lt;code>steps&lt;/code> before &lt;code>actions&lt;/code>&lt;/strong>; all evidence is captured first, destructive actions come after.&lt;/p>
&lt;p>&lt;strong>Anti-pattern 3 — escalation by seniority rota instead of severity.&lt;/strong> The junior operator on call handles an ECC DBE because &amp;ldquo;it is their turn&amp;rdquo;. They lack the context to understand row remap, retired pages or the data corruption risk. Rule: &lt;strong>page by severity, not by rota&lt;/strong>: RB-04 and RB-03 page the senior primary ON-CALL with automatic escalation to infra/hardware if there is no acknowledgement within 10 min.&lt;/p>
&lt;p>&lt;strong>Anti-pattern 4 — no human gate for destructive actions.&lt;/strong> The workflow runs &lt;code>kubectl drain&lt;/code> automatically on any alert marked CRITICAL. On the first false alarm (a transient that resolved itself in 30 s), Keep drained a production node during peak hour. Rule: &lt;strong>destructive actions (drain, reset, RMA, full rollback) require human confirmation&lt;/strong> via a Slack interactive message, with a configurable timeout. A justified exception: ECC DBE confirmed by &amp;gt; 1 measurement, where the corruption risk outweighs the false alarm risk.&lt;/p>
&lt;h2 id="applied-to-typical-on-premise-hardware">Applied to typical on-premise hardware&lt;/h2>
&lt;p>For a generic cluster of &lt;strong>4 nodes × 4×H100 SXM 80 GB&lt;/strong> with &lt;strong>Kafka and Keep already deployed&lt;/strong>:&lt;/p>
&lt;ul>
&lt;li>&lt;strong>Kafka&lt;/strong>: a 3-broker cluster on non-GPU nodes of the K8s cluster; topics &lt;code>gpu.alerts.enriched&lt;/code>, &lt;code>incidents.lifecycle&lt;/code>, &lt;code>audit.actions&lt;/code> configured with replication factor 3, min.insync.replicas 2. Audit with tiered storage to Ceph RGW for retention &amp;gt; 6 months without a brutal cost.&lt;/li>
&lt;li>&lt;strong>Keep&lt;/strong>: 2 operator replicas plus 1 worker replica in a &lt;code>keep&lt;/code> namespace; connected to Prometheus (read provider), Kafka (read plus write provider), Slack, PagerDuty, Jira, Kubernetes (provider with a dedicated SA holding &lt;code>get/list/patch nodes&lt;/code> and &lt;code>create jobs&lt;/code> permissions).&lt;/li>
&lt;li>&lt;strong>Workflows&lt;/strong>: ~25-40 YAML files in the &lt;code>infra/keep-workflows/&lt;/code> repo, synchronised with the cluster via Flux or Argo CD. Validated by CI (&lt;code>keep workflow validate&lt;/code>) on every PR.&lt;/li>
&lt;li>&lt;strong>Event volume&lt;/strong>: for 16 GPUs in normal operation with debounced alerts, ~50-200 events/day on &lt;code>gpu.alerts.enriched&lt;/code>. In a typical incident, peaks of 500-2,000 events/day.&lt;/li>
&lt;li>&lt;strong>Compliance consumers&lt;/strong>: a python consumer in the &lt;code>compliance&lt;/code> namespace that generates NIS2 / ENS / EU AI Act reports weekly, reading &lt;code>audit.actions&lt;/code> and &lt;code>incidents.lifecycle&lt;/code>.&lt;/li>
&lt;/ul>
&lt;h2 id="what-we-have-not-covered-upcoming-posts">What we have not covered (upcoming posts)&lt;/h2>
&lt;ul>
&lt;li>&lt;strong>Postmortem playbooks&lt;/strong> — the mechanics of RCA with 5-whys, Ishikawa adapted to LLMs, integration with MLflow tracking for re-training if the postmortem produces an enriched dataset.&lt;/li>
&lt;li>&lt;strong>Chaos engineering for LLMs&lt;/strong> — controlled injection of XID errors, simulated ECC, artificial HBM latency to validate runbooks &lt;strong>before&lt;/strong> the real incident.&lt;/li>
&lt;li>&lt;strong>Multi-cluster incident coordination&lt;/strong> — how to coordinate Keep across geographic clusters when an incident affects multiple regions.&lt;/li>
&lt;li>&lt;strong>CMDB and procurement integration&lt;/strong> — the &lt;code>RMA → ticket → ServiceNow → hardware replacement&lt;/code> cycle automated via workflow.&lt;/li>
&lt;li>&lt;strong>LLM forensics&lt;/strong> — extracting the full OTel trace of a request affected by an incident, with redacted PII, kept in an evidence vault.&lt;/li>
&lt;/ul>
&lt;h2 id="see-also">See also&lt;/h2>
&lt;ul>
&lt;li>&lt;a href="https://blog.lo0.es/en/posts/anatomy-dcgm-vllm-metrics-analogies-documented-anomalies/">Anatomy of the twelve DCGM and five vLLM metrics&lt;/a> — the documented anomaly per metric that these runbooks resolve.&lt;/li>
&lt;li>&lt;a href="https://blog.lo0.es/en/posts/gpu-observability-llm-inference-twelve-dcgm-vllm-metrics/">GPU observability for LLM inference&lt;/a> — the compact list and the six critical alerts.&lt;/li>
&lt;li>&lt;a href="https://blog.lo0.es/en/posts/llm-tracing-opentelemetry-genai/">LLM tracing with OpenTelemetry GenAI&lt;/a> — the OTel trace captured as evidence.&lt;/li>
&lt;li>&lt;a href="https://blog.lo0.es/en/posts/canary-blue-green-shadow-llm-models/">Canary, blue-green and shadow&lt;/a> — the rollback mechanism RB-06 invokes.&lt;/li>
&lt;li>&lt;a href="https://blog.lo0.es/en/posts/llm-inference-autoscaling-kubernetes-hpa-keda/">LLM autoscaling on Kubernetes&lt;/a> — the scaling lever RB-01 and RB-05 invoke.&lt;/li>
&lt;li>&lt;a href="https://blog.lo0.es/en/posts/capacity-planning-on-premise-llm-inference/">Capacity planning&lt;/a> — the head-room budgeted to absorb incidents without an SLO break.&lt;/li>
&lt;li>&lt;a href="https://blog.lo0.es/en/posts/iso-42001-aims-on-premise-llm-platform/">ISO/IEC 42001 AIMS for on-premise LLMs&lt;/a> — the clause 10 these postmortems materialise.&lt;/li>
&lt;li>&lt;a href="https://blog.lo0.es/en/posts/technical-controls-ens-iso-42001-eu-ai-act-cross-mapping/">Technical controls ENS × 42001 × EU AI Act&lt;/a> — the control mapping these runbooks satisfy.&lt;/li>
&lt;li>&lt;a href="https://blog.lo0.es/en/posts/eu-ai-act-technical-dossier-on-premise-llm-architecture/">EU AI Act: mapping to LLM architecture&lt;/a> — art. 73 on serious incidents, which activates the legal sub-workflow.&lt;/li>
&lt;li>&lt;a href="https://blog.lo0.es/en/posts/five-maturity-levels-platform-under-llm/">Five maturity levels&lt;/a> — codified runbooks are a level 3-4 requirement.&lt;/li>
&lt;li>&lt;a href="https://blog.lo0.es/en/posts/litellm-day-2-high-availability/">LiteLLM on day 2: high availability&lt;/a> — the cascade of sustained 429s that knocks over the gateway&amp;rsquo;s startup probes and puts the pods into a restart loop.&lt;/li>
&lt;/ul>
&lt;h2 id="references">References&lt;/h2>
&lt;ul>
&lt;li>ISO/IEC 27035-1:2023 — &lt;em>Information security incident management — Principles and process&lt;/em>.&lt;/li>
&lt;li>ISO/IEC 27035-2:2023 — &lt;em>Information security incident management — Guidelines to plan and prepare for incident response&lt;/em>.&lt;/li>
&lt;li>ENS — &lt;em>Real Decreto 311/2022&lt;/em>, Anexo II controles &lt;code>op.exp.7&lt;/code> a &lt;code>op.exp.10&lt;/code>.&lt;/li>
&lt;li>Directiva NIS2 (UE 2022/2555) — art. 23 (notificación de incidentes significativos).&lt;/li>
&lt;li>Reglamento EU AI Act (UE 2024/1689) — art. 73 (reporting of serious incidents).&lt;/li>
&lt;li>ISO/IEC 42001:2023 — &lt;em>AI management system — cláusula 10 (mejora continua)&lt;/em>.&lt;/li>
&lt;li>Keep project — &lt;code>keephq.dev&lt;/code> y &lt;code>github.com/keephq/keep&lt;/code> (documentación de workflows YAML, providers).&lt;/li>
&lt;li>Apache Kafka — &lt;em>Tiered Storage&lt;/em> y &lt;code>cleanup.policy&lt;/code> (docs.confluent.io / kafka.apache.org).&lt;/li>
&lt;li>Confluent — &lt;em>Schema Registry&lt;/em> y best practices para eventos lifecycle.&lt;/li>
&lt;li>NVIDIA — &lt;em>Xid Errors Documentation&lt;/em> y procedimientos de remediación.&lt;/li>
&lt;li>Google SRE Book — &lt;em>Effective Troubleshooting&lt;/em> y &lt;em>Postmortem Culture&lt;/em>.&lt;/li>
&lt;li>Atlassian — &lt;em>Incident Management Handbook&lt;/em> (referencia para severity matrices).&lt;/li>
&lt;/ul></description></item><item><title>ISO/IEC 42001: the operations manual for the AI system — how the AIMS fits over the on-premise LLM platform described in this blog</title><link>https://blog.lo0.es/en/posts/iso-42001-aims-on-premise-llm-platform/</link><pubDate>Mon, 01 Jun 2026 06:00:00 +0200</pubDate><guid>https://blog.lo0.es/en/posts/iso-42001-aims-on-premise-llm-platform/</guid><description>&lt;blockquote>
&lt;p>This post closes an asymmetry the blog had been accumulating: we have described in detail the technical platform (&lt;a href="https://blog.lo0.es/en/posts/anatomy-on-premise-llm-inference-stack-seven-layers/">seven stack layers&lt;/a>, &lt;a href="https://blog.lo0.es/en/posts/greenfield-deployment-phases-on-premise-llm-platform/">seven deployment phases&lt;/a>, &lt;a href="https://blog.lo0.es/en/posts/five-maturity-levels-platform-under-llm/">five maturity levels&lt;/a>), the operational pipeline (&lt;a href="https://blog.lo0.es/en/posts/six-stage-llmops-pipeline-architecture-and-deep-dive/">six LLMOps stages&lt;/a>), the data pieces (&lt;a href="https://blog.lo0.es/en/posts/rag-corpus-curation-active-librarian/">corpus curation&lt;/a>, &lt;a href="https://blog.lo0.es/en/posts/data-versioning-llmops-dvc-lakefs-reproducible-golden-dataset/">versioning&lt;/a>), the eval / safety pieces (&lt;a href="https://blog.lo0.es/en/posts/evals-llm-layer-after-tracing/">evals&lt;/a>, &lt;a href="https://blog.lo0.es/en/posts/llm-guardrails-safety-four-lines-of-defence/">guardrails&lt;/a>, &lt;a href="https://blog.lo0.es/en/posts/llm-guard-anatomy-scanners-langfuse-vllm-litellm/">LLM Guard&lt;/a>) and the observe pieces (&lt;a href="https://blog.lo0.es/en/posts/llm-tracing-opentelemetry-genai/">OTel GenAI tracing&lt;/a>). What had not appeared is the governance layer a regulated client asks for on top of all that. ISO/IEC 42001 is that layer.&lt;/p>
&lt;/blockquote>
&lt;h2 id="tldr">TL;DR&lt;/h2>
&lt;p>ISO/IEC 42001:2023 is the first certifiable international standard that defines how an AI system is managed. It is not a technical standard (it does not say &amp;ldquo;use this inference engine&amp;rdquo; or &amp;ldquo;this safety threshold&amp;rdquo;): it is a management standard, a cousin of ISO 27001 and ISO 9001. From both it inherits the Annex SL structure, seven mandatory clauses running through context, leadership, planning, support, operation, performance evaluation and improvement, and it adds an Annex A with 38 AI-specific controls in 9 sections: policies, internal organisation, resources, impact assessment, lifecycle, data, information to interested parties, use, third parties. The thesis of this post is that the technical architecture described in this blog directly covers between 60% and 80% of the A controls with no extra work. The LLMOps pipeline materialises A.6, versioning and curation materialise A.7, guardrails and evals materialise A.9, OTel tracing materialises A.8. The rest is governance discipline that does not appear in the code (a written AI policy, impact assessments per system, a stakeholder register, role decisions between provider/producer/customer, mandatory documentation), and that is precisely what separates a real certification from performative compliance. The post maps the correspondence control by control, cross-references it with the EU AI Act (seven articles directly aligned with 42001: 9, 10, 11, 12, 13, 14, 17), with NIS2 (asset register, incident notification, supply chain) and with ENS (Esquema Nacional de Seguridad, Spain&amp;rsquo;s national security framework, RD 311/2022, Basic/Medium/High categories), lists the seven mandatory minimum documents an auditor asks for, presents the blog&amp;rsquo;s multi-tenant chatbot as a live 42001 checklist, and closes with the five usual traps (confusing 42001 with EU AI Act compliance, over-documenting without measuring, ignoring A.5 until the audit, assuming 27001 covers the AI part, thinking certification is a one-off project rather than a living system).&lt;/p>
&lt;h2 id="the-analogy-the-aircraft-operations-manual">The analogy: the aircraft operations manual&lt;/h2>
&lt;div class="diagram" style="max-width:820px;margin:1.5rem auto;">
&lt;svg viewBox="0 0 820 360" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="ISO 42001 as an aircraft operations manual audited by EASA">
&lt;style>
.i-air{fill:#7aafff;stroke:#444;stroke-width:1.4;rx:8}
.i-man{fill:#ffd76b;stroke:#444;stroke-width:1.4;rx:8}
.i-aud{fill:#a8e6a3;stroke:#444;stroke-width:1.4;rx:8}
.i-ops{fill:#ff8a4c;stroke:#444;stroke-width:1.4;rx:8}
.il{font:600 13px sans-serif;fill:#222}
.is{font:400 11px sans-serif;fill:#555}
.in{font:italic 11px sans-serif;fill:#555}
.iar{stroke:#666;stroke-width:1.6;fill:none;marker-end:url(#mi1)}
&lt;/style>
&lt;defs>&lt;marker id="mi1" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="6" markerHeight="6" orient="auto">&lt;path d="M0,0 L10,5 L0,10 z" fill="#666"/>&lt;/marker>&lt;/defs>
&lt;rect x="20" y="20" width="160" height="60" class="i-air"/>
&lt;text x="100" y="44" text-anchor="middle" class="il">AI system&lt;/text>
&lt;text x="100" y="62" text-anchor="middle" class="is">on-premise LLM platform&lt;/text>
&lt;text x="100" y="76" text-anchor="middle" class="is">(the aircraft)&lt;/text>
&lt;rect x="220" y="20" width="180" height="60" class="i-ops"/>
&lt;text x="310" y="40" text-anchor="middle" class="il">Technical operations&lt;/text>
&lt;text x="310" y="58" text-anchor="middle" class="is">LLMOps pipeline + guardrails +&lt;/text>
&lt;text x="310" y="72" text-anchor="middle" class="is">tracing + retrain (the flights)&lt;/text>
&lt;rect x="440" y="20" width="180" height="60" class="i-man"/>
&lt;text x="530" y="40" text-anchor="middle" class="il">Operations manual&lt;/text>
&lt;text x="530" y="58" text-anchor="middle" class="is">policies + impact assessment +&lt;/text>
&lt;text x="530" y="72" text-anchor="middle" class="is">roles + lineage (ISO 42001)&lt;/text>
&lt;rect x="660" y="20" width="140" height="60" class="i-aud"/>
&lt;text x="730" y="44" text-anchor="middle" class="il">Auditor&lt;/text>
&lt;text x="730" y="62" text-anchor="middle" class="is">certification body&lt;/text>
&lt;text x="730" y="76" text-anchor="middle" class="is">(EASA / Aenor / BSI)&lt;/text>
&lt;path class="iar" d="M180,50 L220,50"/>
&lt;path class="iar" d="M400,50 L440,50"/>
&lt;path class="iar" d="M620,50 L660,50"/>
&lt;rect x="20" y="130" width="780" height="80" class="i-man"/>
&lt;text x="410" y="152" text-anchor="middle" class="il">The 7 Annex SL clauses — the manual's mandatory table of contents&lt;/text>
&lt;text x="410" y="172" text-anchor="middle" class="is">4 Context · 5 Leadership · 6 Planning · 7 Support · 8 Operation · 9 Evaluation · 10 Improvement&lt;/text>
&lt;text x="410" y="190" text-anchor="middle" class="is">Inherited from Annex SL — the same skeleton as ISO 27001 and 9001, which allows management systems to be integrated&lt;/text>
&lt;rect x="20" y="230" width="780" height="80" class="i-aud"/>
&lt;text x="410" y="252" text-anchor="middle" class="il">The 38 Annex A controls — the manual's AI-specific procedures&lt;/text>
&lt;text x="410" y="272" text-anchor="middle" class="is">A.2 Policies · A.3 Org · A.4 Resources · A.5 Impact · A.6 Lifecycle · A.7 Data · A.8 Info to parties · A.9 Use · A.10 Third parties&lt;/text>
&lt;text x="410" y="290" text-anchor="middle" class="is">What separates 42001 from 27001/9001: every control is born from an AI-specific risk (bias, opacity, drift, data supply)&lt;/text>
&lt;text x="410" y="340" text-anchor="middle" class="in">The aircraft flies with its pilots; the manual is audited by the authority. If the manual is incomplete, the aircraft does not certify however well it flies.&lt;/text>
&lt;/svg>
&lt;/div>
&lt;p>A modern aircraft, an A350, a Boeing 787, a drone certified for urban delivery, does not fly because it has good engines. It flies because the organisation that operates it has an Operations Manual approved by the aviation authority (EASA in Europe, the FAA in the US, AESA in Spain as a delegated body). The manual does not contain the engine blueprints, which the manufacturer certifies; it contains the procedures: who is captain on each flight, which checklist is run before each take-off, which periodic inspections happen at 100, 500 and 2,000 flight hours, which external suppliers are authorised to touch which components, what is documented after each incident, what to do when a new alert appears on the panel. The authority does not sit in on every flight: it reads the manual, randomly audits the traceability of past flights against the manual, and if everything adds up, it keeps the certification in place.&lt;/p>
&lt;p>An AI system in production, the multi-tenant chatbot from the &lt;a href="https://blog.lo0.es/en/posts/anatomy-llm-request-production-tour-six-stages/">forensic post&lt;/a>, a copilot for lawyers, a credit scoring system, is exactly the same. It flies because the model is good, the LLMOps pipeline is well built, the guardrails catch the bad cases. But it certifies because the organisation operating it has an AIMS (AI Management System) described in an auditable manual. ISO/IEC 42001 is that manual: its mandatory table of contents (Annex SL, seven clauses) and its catalogue of AI-specific controls (Annex A, 38 controls). The auditor does not sit next to the MLOps engineer: they read the AI policy, review the impact assessments of the most recently deployed systems, check that incident retrain is documented, verify third-party contracts, audit a sample of Langfuse traces cross-checked against &lt;code>dataset_hash&lt;/code> and &lt;code>prompt_id&lt;/code>. And if everything adds up, they certify.&lt;/p>
&lt;p>The analogy matters because it frames the right question: 42001 does not certify the model or the code. It certifies the way of operating the complete system. A team can have the best OSS stack in the world and fail the audit because it has no written AI policy and no documented decision about which role (provider vs producer vs customer) it occupies towards its clients. And the reverse: a team with a modest model but with operations-manual discipline can certify without acrobatics.&lt;/p>
&lt;h2 id="isoiec-42001-in-15-seconds">ISO/IEC 42001 in 15 seconds&lt;/h2>
&lt;ul>
&lt;li>&lt;strong>Publication&lt;/strong>: December 2023, ISO/IEC JTC 1/SC 42 (the ISO/IEC subcommittee for AI).&lt;/li>
&lt;li>&lt;strong>Status in 2026&lt;/strong>: an active standard, certifiable by accredited bodies (BSI, AENOR, TÜV, Bureau Veritas, A-LIGN, Schellman). Not yet formally recognised as a harmonised standard under the EU AI Act, but it provides the management base to lean on.&lt;/li>
&lt;li>&lt;strong>Compatibility&lt;/strong>: it shares the Annex SL structure with ISO 9001 (quality), 27001 (information security), 27701 (privacy), 22301 (continuity), 20000-1 (IT services). Organisations with integrated management systems (IMS) add it with 20-40% of the effort it would take to implement from scratch.&lt;/li>
&lt;li>&lt;strong>Applicability&lt;/strong>: any organisation that develops, provides, deploys or uses AI systems. It is not limited to developers: a company that consumes a hosted LLM and integrates it into its own product is within scope.&lt;/li>
&lt;li>&lt;strong>Certification&lt;/strong>: a 3-year cycle with an initial audit (Stage 1: documentation review + Stage 2: on-site audit) and annual surveillance audits. Typical cost: 15,000-60,000 € for the initial one depending on size; 6,000-20,000 € per annual surveillance.&lt;/li>
&lt;/ul>
&lt;p>What 42001 does not do:&lt;/p>
&lt;ul>
&lt;li>It does not say which models to use or which thresholds to apply.&lt;/li>
&lt;li>It does not certify the individual model (that is done by specific evaluations such as a NIST AI RMF profile or EU AI Act technical documentation).&lt;/li>
&lt;li>It does not replace the EU AI Act or the GDPR: it is complementary. Implementing it well makes legal compliance easier but does not guarantee it.&lt;/li>
&lt;li>It is not a technical standard for explainability or robustness (those are ISO/IEC 25059, 24029, 23894 and others in the SC 42 family).&lt;/li>
&lt;/ul>
&lt;h2 id="distinction-from-neighbouring-frameworks">Distinction from neighbouring frameworks&lt;/h2>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th>Framework&lt;/th>
&lt;th>Nature&lt;/th>
&lt;th>Scope&lt;/th>
&lt;th>Certifiable&lt;/th>
&lt;th>Overlap with 42001&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td>&lt;strong>ISO/IEC 42001:2023&lt;/strong>&lt;/td>
&lt;td>Management standard&lt;/td>
&lt;td>AIMS for any AI system&lt;/td>
&lt;td>Yes&lt;/td>
&lt;td>—&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>EU AI Act&lt;/strong> (Reg. 2024/1689)&lt;/td>
&lt;td>Binding legal regulation&lt;/td>
&lt;td>AI systems in the EU, risk-categorised&lt;/td>
&lt;td>No (it is law)&lt;/td>
&lt;td>Arts 9, 10, 11, 12, 13, 14, 17&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>NIS2&lt;/strong> (Dir. 2022/2555)&lt;/td>
&lt;td>Cybersecurity directive&lt;/td>
&lt;td>Essential/important entities&lt;/td>
&lt;td>Via the national scheme&lt;/td>
&lt;td>Asset register, incident, supply chain&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>ENS&lt;/strong> (RD 311/2022)&lt;/td>
&lt;td>Spanish security regulation&lt;/td>
&lt;td>Public sector and its suppliers&lt;/td>
&lt;td>Yes (B/M/A categories)&lt;/td>
&lt;td>Traceability, incident management&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>ISO/IEC 27001&lt;/strong>&lt;/td>
&lt;td>Management standard&lt;/td>
&lt;td>Information security&lt;/td>
&lt;td>Yes&lt;/td>
&lt;td>Annex SL structure + Annex A overlap&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>ISO/IEC 27701&lt;/strong>&lt;/td>
&lt;td>Management standard&lt;/td>
&lt;td>Privacy (extends 27001)&lt;/td>
&lt;td>Yes&lt;/td>
&lt;td>PII in training data&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>NIST AI RMF 1.0&lt;/strong>&lt;/td>
&lt;td>Voluntary framework&lt;/td>
&lt;td>AI risk management&lt;/td>
&lt;td>No&lt;/td>
&lt;td>Conceptually aligned, not identical&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>ISO/IEC 23894&lt;/strong>&lt;/td>
&lt;td>Technical standard&lt;/td>
&lt;td>AI risk management&lt;/td>
&lt;td>No&lt;/td>
&lt;td>Input to A.5 (impact assessment)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>ISO/IEC 5259&lt;/strong>&lt;/td>
&lt;td>Family&lt;/td>
&lt;td>Data quality for AI&lt;/td>
&lt;td>No&lt;/td>
&lt;td>Input to A.7 (data)&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;p>&lt;strong>Three distinctions that matter operationally&lt;/strong> and are a recurring source of confusion with clients:&lt;/p>
&lt;ol>
&lt;li>&lt;strong>ISO 42001 ≠ EU AI Act compliance&lt;/strong>. Holding the 42001 certification makes it easier to demonstrate articles 9-17 of the European Regulation, but the Regulation requires things 42001 does not cover directly (CE marking of high-risk systems, registration in the European database, declaration of conformity, specific post-market monitoring). Implementing 42001 first and then filling the AI Act gaps is the standard route.&lt;/li>
&lt;li>&lt;strong>ISO 27001 is not enough&lt;/strong>. 27001 covers confidentiality, integrity and availability of information. The AI side is missing: bias, opacity, model drift, training corpus quality, human evaluation, impact on affected persons. 42001 is a complement, not a substitute. Organisations that already have 27001 in place have an advantage because they share half the documentation.&lt;/li>
&lt;li>&lt;strong>NIS2 ≠ AI safety&lt;/strong>. NIS2 requires registering critical assets, notifying incidents within 24 h, and managing the digital supply chain. AI systems can be within NIS2 scope if they form part of the critical asset (an LLM serving customer support in a financial entity is), but NIS2 does not audit model quality. 42001 does.&lt;/li>
&lt;/ol>
&lt;h2 id="the-seven-clauses-annex-sl-the-mandatory-table-of-contents">The seven clauses (Annex SL): the mandatory table of contents&lt;/h2>
&lt;p>The seven clauses, from clause 4 to clause 10, are common to all modern management standards (Annex SL, also called the &amp;ldquo;High Level Structure&amp;rdquo;). That means an organisation with ISO 9001 or 27001 already in place recognises the structure. Clauses 1-3 are introductory (scope, normative references, terms).&lt;/p>
&lt;h3 id="clause-4--context-of-the-organisation">Clause 4 — Context of the organisation&lt;/h3>
&lt;p>Identify the external context (applicable regulation, customer expectations, social risks) and the internal context (strategy, culture, capabilities). Identify the interested parties and their expectations: customers, regulators, affected persons, employees, suppliers. Define the scope of the AIMS: which AI systems are in and which are out.&lt;/p>
&lt;p>The usual gap: organisations that say &amp;ldquo;all our AI systems are in scope&amp;rdquo; without having enumerated them. The auditor asks for the list. Without a list, there is no scope.&lt;/p>
&lt;h3 id="clause-5--leadership">Clause 5 — Leadership&lt;/h3>
&lt;p>Top management must approve and publish an AI policy, assign roles and responsibilities (typically AI lead, AI risk owner, data officer), and demonstrate commitment through resources, communication and oversight. The policy is an auditable document and must be made available to staff and interested parties.&lt;/p>
&lt;p>The usual gap: a generic AI policy copied off the internet, with no measurables and no concrete objectives. The auditor asks how compliance with it is measured. Without metrics, the policy is theatre.&lt;/p>
&lt;h3 id="clause-6--planning">Clause 6 — Planning&lt;/h3>
&lt;p>Identify risks and opportunities of the AIMS (not of the individual model). Define measurable AI objectives, with deadlines and owners. Plan changes to the AIMS.&lt;/p>
&lt;p>The usual gap: confusing AIMS risks (what happens if we do not document correctly?) with model risks (what happens if the model is biased?). The first belongs here; the second goes to A.5.&lt;/p>
&lt;h3 id="clause-7--support">Clause 7 — Support&lt;/h3>
&lt;p>&lt;strong>Resources&lt;/strong>: human, technical, financial, infrastructure. Competence of personnel (documented training). Awareness of the policy among personnel. Internal and external communication. Documented information (the backbone of the management system: policy, procedures, records, evidence).&lt;/p>
&lt;p>The usual gap: documentation scattered across Confluence/Notion/Drive with no version control and no recorded approvals. The auditor asks about the last change: who approved it? when? on what grounds?&lt;/p>
&lt;h3 id="clause-8--operation">Clause 8 — Operation&lt;/h3>
&lt;p>The most operational clause. It requires:&lt;/p>
&lt;ul>
&lt;li>&lt;strong>Operational planning and control&lt;/strong>: how the AI system&amp;rsquo;s lifecycle is managed day to day. → Covered in the blog by the &lt;a href="https://blog.lo0.es/en/posts/six-stage-llmops-pipeline-architecture-and-deep-dive/">six-stage LLMOps pipeline&lt;/a>.&lt;/li>
&lt;li>&lt;strong>Impact assessment&lt;/strong> (linked to A.5).&lt;/li>
&lt;li>&lt;strong>AI system lifecycle management&lt;/strong> (linked to A.6).&lt;/li>
&lt;li>&lt;strong>Data for AI systems&lt;/strong> (linked to A.7).&lt;/li>
&lt;/ul>
&lt;p>This is the clause that materialises in controls A.5, A.6 and A.7. On its own it adds no new requirements: it links to Annex A.&lt;/p>
&lt;h3 id="clause-9--performance-evaluation">Clause 9 — Performance evaluation&lt;/h3>
&lt;p>&lt;strong>Monitoring, measurement, analysis, evaluation&lt;/strong>. Internal audits (planned, with criteria, scope, frequency, recorded results). Management review (typically quarterly or half-yearly, with a mandatory agenda: inputs, evidence, decisions, actions).&lt;/p>
&lt;p>The usual gap: there is OTel tracing + Langfuse + Grafana and plenty of data, but there is no formal management review agenda with documented minutes. The auditor asks for the minutes. Without minutes, there is no review.&lt;/p>
&lt;h3 id="clause-10--improvement">Clause 10 — Improvement&lt;/h3>
&lt;p>&lt;strong>Nonconformity and corrective action&lt;/strong>: when something fails, it is recorded, root cause is analysed, a correction is agreed, effectiveness is verified. Continual improvement: the system evolves deliberately.&lt;/p>
&lt;p>The usual gap: Jira tickets with technical post-mortems but no formal &amp;ldquo;ISO nonconformity&amp;rdquo; record closed out with an effectiveness check. They are two distinct artefacts, even if they can be integrated.&lt;/p>
&lt;h2 id="the-38-annex-a-controls-the-ai-specific-catalogue">The 38 Annex A controls: the AI-specific catalogue&lt;/h2>
&lt;p>Unlike Annex SL (which is common), Annex A is 42001&amp;rsquo;s AI-specific signature. The 38 controls are organised into 9 sections (A.2 to A.10; A.1 is the introduction) covering the AI-specific risks: opacity, bias, drift, corpus quality, impact on affected persons, third-party dependency. Each control has an objective (what it aims to achieve) and implementation guidance in Annex B.&lt;/p>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th>Section&lt;/th>
&lt;th>Focus&lt;/th>
&lt;th># controls&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td>A.2&lt;/td>
&lt;td>AI-related policies&lt;/td>
&lt;td>2&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>A.3&lt;/td>
&lt;td>Internal organisation&lt;/td>
&lt;td>3&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>A.4&lt;/td>
&lt;td>Resources for AI systems&lt;/td>
&lt;td>6&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>A.5&lt;/td>
&lt;td>Impact assessment&lt;/td>
&lt;td>5&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>A.6&lt;/td>
&lt;td>AI system lifecycle&lt;/td>
&lt;td>4&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>A.7&lt;/td>
&lt;td>Data for AI systems&lt;/td>
&lt;td>5&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>A.8&lt;/td>
&lt;td>Information for interested parties&lt;/td>
&lt;td>4&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>A.9&lt;/td>
&lt;td>Use of AI systems&lt;/td>
&lt;td>3&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>A.10&lt;/td>
&lt;td>Third parties and customer relationships&lt;/td>
&lt;td>4&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>Total&lt;/strong>&lt;/td>
&lt;td>—&lt;/td>
&lt;td>&lt;strong>38&lt;/strong>&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;p>What follows is the section-by-section mapping of the controls onto material we have already covered in the blog. The editorial intent is to show which gaps remain once the technical architecture is in place, so that the road to certification does not start from zero.&lt;/p>
&lt;h2 id="cross-mapping-38-controls--blog-posts">Cross-mapping: 38 controls ↔ blog posts&lt;/h2>
&lt;div class="diagram" style="max-width:820px;margin:1.5rem auto;">
&lt;svg viewBox="0 0 820 540" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Mapping of ISO 42001 Annex A controls onto the blog's on-premise LLM architecture">
&lt;style>
.m-cov{fill:#a8e6a3;stroke:#444;stroke-width:1.4;rx:6}
.m-par{fill:#ffd76b;stroke:#444;stroke-width:1.4;rx:6}
.m-gap{fill:#f4b8b8;stroke:#444;stroke-width:1.4;rx:6}
.m-hdr{fill:#7aafff;stroke:#444;stroke-width:1.4;rx:8}
.ml{font:600 12px sans-serif;fill:#222}
.ms{font:400 10px sans-serif;fill:#444}
.mn{font:italic 10px sans-serif;fill:#555}
&lt;/style>
&lt;rect x="20" y="20" width="780" height="40" class="m-hdr"/>
&lt;text x="410" y="42" text-anchor="middle" class="ml">ISO 42001 Annex A mapped onto the blog's on-premise LLM architecture&lt;/text>
&lt;text x="410" y="55" text-anchor="middle" class="ms">green = covered by code/architecture · yellow = partial · red = governance gap&lt;/text>
&lt;rect x="20" y="80" width="780" height="50" class="m-par"/>
&lt;text x="50" y="100" class="ml">A.2 Policies (2)&lt;/text>
&lt;text x="50" y="116" class="ms">A.2.2 AI policy · A.2.3 Alignment with existing policies&lt;/text>
&lt;text x="500" y="100" class="ml">Status: PARTIAL&lt;/text>
&lt;text x="500" y="116" class="ms">The blog's editorial discipline teaches the angle; a formal written policy per organisation is missing.&lt;/text>
&lt;rect x="20" y="140" width="780" height="50" class="m-gap"/>
&lt;text x="50" y="160" class="ml">A.3 Internal organisation (3)&lt;/text>
&lt;text x="50" y="176" class="ms">A.3.2 Roles and responsibilities · A.3.3 Incident reporting · A.3.4 Stakeholders&lt;/text>
&lt;text x="500" y="160" class="ml">Status: GAP&lt;/text>
&lt;text x="500" y="176" class="ms">Not technical. Requires an organisational decision: AI lead, risk owner, AI committee.&lt;/text>
&lt;rect x="20" y="200" width="780" height="50" class="m-cov"/>
&lt;text x="50" y="220" class="ml">A.4 Resources (6)&lt;/text>
&lt;text x="50" y="236" class="ms">Data, tooling, system, human, financial resources + documentation&lt;/text>
&lt;text x="500" y="220" class="ml">Status: COVERED&lt;/text>
&lt;text x="500" y="236" class="ms">Seven deployment phases + five maturity levels + seven layers + OSS catalogue.&lt;/text>
&lt;rect x="20" y="250" width="780" height="50" class="m-par"/>
&lt;text x="50" y="270" class="ml">A.5 Impact assessment (5)&lt;/text>
&lt;text x="50" y="286" class="ms">AI impact process · documentation · alignment with risks · individuals · society&lt;/text>
&lt;text x="500" y="270" class="ml">Status: PARTIAL&lt;/text>
&lt;text x="500" y="286" class="ms">ISO/IEC 23894 gives the method; a formal per-system impact assessment procedure is missing.&lt;/text>
&lt;rect x="20" y="300" width="780" height="50" class="m-cov"/>
&lt;text x="50" y="320" class="ml">A.6 Lifecycle (4)&lt;/text>
&lt;text x="50" y="336" class="ms">Objectives · design · verification and validation · operation and monitoring · documentation&lt;/text>
&lt;text x="500" y="320" class="ml">Status: COVERED&lt;/text>
&lt;text x="500" y="336" class="ms">Six-stage pipeline + request anatomy + continuous fine-tuning + retrain.&lt;/text>
&lt;rect x="20" y="350" width="780" height="50" class="m-cov"/>
&lt;text x="50" y="370" class="ml">A.7 Data (5)&lt;/text>
&lt;text x="50" y="386" class="ms">Quality · acquisition · provenance · preparation · privacy&lt;/text>
&lt;text x="500" y="370" class="ml">Status: COVERED&lt;/text>
&lt;text x="500" y="386" class="ms">Data versioning + RAG corpus curation + Presidio + LLM Guard Vault.&lt;/text>
&lt;rect x="20" y="400" width="780" height="50" class="m-cov"/>
&lt;text x="50" y="420" class="ml">A.8 Information to parties (4)&lt;/text>
&lt;text x="50" y="436" class="ms">System documentation · information on use · incident communication · external reporting&lt;/text>
&lt;text x="500" y="420" class="ml">Status: COVERED&lt;/text>
&lt;text x="500" y="436" class="ms">OTel GenAI tracing + Langfuse + chunk→trace lineage + guardrail spans.&lt;/text>
&lt;rect x="20" y="450" width="780" height="40" class="m-cov"/>
&lt;text x="50" y="470" class="ml">A.9 Use (3)&lt;/text>
&lt;text x="50" y="484" class="ms">Responsible use processes · use objectives · intended use&lt;/text>
&lt;text x="500" y="470" class="ml">Status: COVERED&lt;/text>
&lt;text x="500" y="484" class="ms">Guardrails + evals + LLM Guard + incident-driven retrain.&lt;/text>
&lt;rect x="20" y="500" width="780" height="40" class="m-cov"/>
&lt;text x="50" y="520" class="ml">A.10 Third parties (4)&lt;/text>
&lt;text x="50" y="534" class="ms">Allocation of responsibilities · supplier · customer · third-party&lt;/text>
&lt;text x="500" y="520" class="ml">Status: COVERED&lt;/text>
&lt;text x="500" y="534" class="ms">OSS vs hyperscalers + OSS catalogue + sovereignty + lock-in analysis.&lt;/text>
&lt;/svg>
&lt;/div>
&lt;h3 id="a2--ai-policies-2-controls-partial">A.2 — AI policies (2 controls): PARTIAL&lt;/h3>
&lt;ul>
&lt;li>A.2.2 AI policy: the organisation must have a documented AI policy, approved by management, reviewed periodically, communicated and available. It covers principles, scope and commitments.&lt;/li>
&lt;li>A.2.3 Alignment with other policies: the AI policy is not an orphan, it aligns with existing security, privacy, quality and ethics policies.&lt;/li>
&lt;/ul>
&lt;p>&lt;strong>Gap&lt;/strong>: this is not a code matter. The AI policy is a document that the organisation&amp;rsquo;s management approves and signs. The blog teaches a neutral, technical editorial stance (no hype, sovereignty, OSS by default under ENS/NIS2), but that is not any specific organisation&amp;rsquo;s AI policy. Each client has to draft and sign their own.&lt;/p>
&lt;p>&lt;strong>Minimum template&lt;/strong>: 1-2 pages with: principles (transparency, human oversight, fairness, accountability, sustainability), scope (which systems), measurable commitments (annual review, impact assessment before deployment, team training), governance (who approves what).&lt;/p>
&lt;h3 id="a3--internal-organisation-3-controls-gap">A.3 — Internal organisation (3 controls): GAP&lt;/h3>
&lt;ul>
&lt;li>A.3.2 AI roles and responsibilities: roles defined, non-overlapping, communicated. Typically: AI lead, AI risk owner, data steward, AI ethics officer (which may be a single person in small organisations).&lt;/li>
&lt;li>A.3.3 Reporting of AI incidents/concerns: a channel for anyone (internal or external) to report a problem with an AI system, with documented follow-up.&lt;/li>
&lt;li>A.3.4 Identification of stakeholders: a maintained list of stakeholders (customers, affected persons, regulators, partners) and their expectations.&lt;/li>
&lt;/ul>
&lt;p>&lt;strong>Gap&lt;/strong>: also not technical. An organisational decision. The usual way to cover it is to appoint an AI lead (which may be the CIO, the CTO or a new role depending on size), reuse the security reporting channel (typically already in place because of 27001) by extending it to AI, and maintain a live stakeholder register.&lt;/p>
&lt;h3 id="a4--resources-6-controls-covered">A.4 — Resources (6 controls): COVERED&lt;/h3>
&lt;ul>
&lt;li>A.4.2 Documented information: documentation of the AIMS.&lt;/li>
&lt;li>A.4.3 Data resources: identification and management of the data available for training, evaluation and operation.&lt;/li>
&lt;li>A.4.4 Tooling resources: development, validation and monitoring tools.&lt;/li>
&lt;li>A.4.5 System resources: hardware, infrastructure, compute.&lt;/li>
&lt;li>A.4.6 Human resources: competent personnel.&lt;/li>
&lt;li>A.4.7 Financial resources: budget.&lt;/li>
&lt;/ul>
&lt;p>&lt;strong>Covered by the blog&lt;/strong> in the three architectural posts:&lt;/p>
&lt;ul>
&lt;li>&lt;a href="https://blog.lo0.es/en/posts/anatomy-on-premise-llm-inference-stack-seven-layers/">Anatomy of the stack: seven layers&lt;/a>: A.4.5 system resources, A.4.4 tooling.&lt;/li>
&lt;li>&lt;a href="https://blog.lo0.es/en/posts/greenfield-deployment-phases-on-premise-llm-platform/">Seven deployment phases&lt;/a>: A.4.5 + A.4.7 (budget implicitly).&lt;/li>
&lt;li>&lt;a href="https://blog.lo0.es/en/posts/five-maturity-levels-platform-under-llm/">Five maturity levels&lt;/a>: A.4.5 + A.4.6 (team maturity).&lt;/li>
&lt;li>&lt;a href="https://blog.lo0.es/en/posts/oss-catalogue-llmops-six-stages-tool-by-tool/">OSS tooling catalogue&lt;/a>: A.4.4 tooling.&lt;/li>
&lt;li>&lt;a href="https://blog.lo0.es/en/posts/data-versioning-llmops-dvc-lakefs-reproducible-golden-dataset/">Data versioning with DVC and lakeFS&lt;/a>: A.4.3 data resources.&lt;/li>
&lt;/ul>
&lt;h3 id="a5--impact-assessment-5-controls-partial">A.5 — Impact assessment (5 controls): PARTIAL&lt;/h3>
&lt;ul>
&lt;li>A.5.2 AI impact assessment process: a documented impact assessment procedure.&lt;/li>
&lt;li>A.5.3 Documentation of AI impact assessments: records of the assessments carried out.&lt;/li>
&lt;li>A.5.4 Alignment with AI risk treatment: the impact assessment&amp;rsquo;s decisions feed risk treatment.&lt;/li>
&lt;li>A.5.5 Impacts on individuals: specific dimensions covering affected persons (rights, discrimination, privacy).&lt;/li>
&lt;li>A.5.6 Societal impacts: dimensions covering society (information, social rights).&lt;/li>
&lt;/ul>
&lt;p>&lt;strong>Partial&lt;/strong>: the method exists in the ISO/IEC SC 42 family. ISO/IEC 23894:2023 is the technical standard for AI risk management and NIST AI RMF 1.0 is the freely usable American equivalent. But the organisation has to write its procedure and run it per system before deployment. It is not code, it is discipline.&lt;/p>
&lt;p>&lt;strong>Minimum template&lt;/strong> for the impact assessment (3-5 pages per system):&lt;/p>
&lt;ol>
&lt;li>Description of the system (what it does, who it serves, underlying model and stack).&lt;/li>
&lt;li>Stakeholders identified.&lt;/li>
&lt;li>Potential impacts (intended and unintended) on people, groups and society.&lt;/li>
&lt;li>Fairness and robustness metrics applied, with thresholds and results.&lt;/li>
&lt;li>Mitigations applied (guardrails, evals, human oversight, rate limiting).&lt;/li>
&lt;li>Accepted residual risks, with signed justification.&lt;/li>
&lt;li>Review cadence (typically annual, or on substantial change).&lt;/li>
&lt;/ol>
&lt;h3 id="a6--ai-system-lifecycle-4-controls-covered">A.6 — AI system lifecycle (4 controls): COVERED&lt;/h3>
&lt;ul>
&lt;li>A.6.2.2 Objectives for responsible development of AI: responsible development objectives defined per system.&lt;/li>
&lt;li>A.6.2.3 Processes for responsible AI design and development: design and development procedures.&lt;/li>
&lt;li>A.6.2.4 AI system requirements and specifications: formal specification of the system.&lt;/li>
&lt;li>A.6.2.5 Verification and validation: V&amp;amp;V before and during operation.&lt;/li>
&lt;li>A.6.2.6 Deployment: deployment procedures.&lt;/li>
&lt;li>A.6.2.7 Operation and monitoring: continuous operation and monitoring.&lt;/li>
&lt;li>A.6.2.8 Documentation: lifecycle documentation.&lt;/li>
&lt;/ul>
&lt;p>&lt;strong>Covered by the blog&lt;/strong>:&lt;/p>
&lt;ul>
&lt;li>&lt;a href="https://blog.lo0.es/en/posts/six-stage-llmops-pipeline-architecture-and-deep-dive/">The six-stage LLMOps pipeline&lt;/a>: the complete master map of the lifecycle.&lt;/li>
&lt;li>&lt;a href="https://blog.lo0.es/en/posts/anatomy-llm-request-production-tour-six-stages/">Anatomy of an LLM request&lt;/a>: the forensic version of how it runs in production.&lt;/li>
&lt;li>&lt;a href="https://blog.lo0.es/en/posts/continuous-fine-tuning-production-real-traffic-deployed-adapter/">Continuous fine-tuning in production&lt;/a>: the A.6.2.3 + A.6.2.5 + A.6.2.6 + A.6.2.7 discipline in real operation.&lt;/li>
&lt;li>&lt;a href="https://blog.lo0.es/en/posts/evals-llm-layer-after-tracing/">Evals: the layer after tracing&lt;/a>: A.6.2.5 verification and validation.&lt;/li>
&lt;li>&lt;a href="https://blog.lo0.es/en/posts/retrain-closing-the-loop-feedback-dataset-adapter/">Retrain&lt;/a>: A.6.2.7 operation + continuous iteration.&lt;/li>
&lt;li>&lt;a href="https://blog.lo0.es/en/posts/modern-alignment-dpo-kto-orpo-simpo/">Modern alignment: DPO, KTO, ORPO, SimPO&lt;/a>: A.6.2.3 responsible design.&lt;/li>
&lt;li>&lt;a href="https://blog.lo0.es/en/posts/mlops-for-llms-landscape-2026/">MLOps landscape 2026&lt;/a>: the tooling landscape.&lt;/li>
&lt;/ul>
&lt;h3 id="a7--data-for-ai-systems-5-controls-covered">A.7 — Data for AI systems (5 controls): COVERED&lt;/h3>
&lt;ul>
&lt;li>A.7.2 Data for development and enhancement of AI: data management policy and procedures for development and improvement.&lt;/li>
&lt;li>A.7.3 Acquisition of data: acquisition procedures (origin, authorisation, quality).&lt;/li>
&lt;li>A.7.4 Quality of data for AI systems: measurable quality criteria.&lt;/li>
&lt;li>A.7.5 Data provenance: data lineage.&lt;/li>
&lt;li>A.7.6 Data preparation: preparation procedures (chunking, anonymisation, labelling).&lt;/li>
&lt;/ul>
&lt;p>&lt;strong>Covered by the blog&lt;/strong>:&lt;/p>
&lt;ul>
&lt;li>&lt;a href="https://blog.lo0.es/en/posts/rag-corpus-curation-active-librarian/">RAG corpus curation: the active librarian&lt;/a>: A.7.4 + A.7.5 + A.7.6 in detail (five layers: schema, dedup, PII, anti-contamination, lineage).&lt;/li>
&lt;li>&lt;a href="https://blog.lo0.es/en/posts/data-versioning-llmops-dvc-lakefs-reproducible-golden-dataset/">Data versioning: DVC and lakeFS&lt;/a>: A.7.2 + A.7.5 (the four data artefacts versioned with lineage).&lt;/li>
&lt;li>&lt;a href="https://blog.lo0.es/en/posts/reranker-hybrid-retrieval-five-chunks-llm-reads/">Reranker and hybrid retrieval&lt;/a>: A.7.6 preparation + filtering.&lt;/li>
&lt;li>&lt;a href="https://blog.lo0.es/en/posts/llm-guard-anatomy-scanners-langfuse-vllm-litellm/">LLM Guard&lt;/a>: A.7.6 runtime anonymisation with Vault.&lt;/li>
&lt;/ul>
&lt;h3 id="a8--information-for-interested-parties-4-controls-covered">A.8 — Information for interested parties (4 controls): COVERED&lt;/h3>
&lt;ul>
&lt;li>A.8.2 System documentation and information for users: technical documentation available.&lt;/li>
&lt;li>A.8.3 External reporting: the capacity to report to authorities where applicable.&lt;/li>
&lt;li>A.8.4 Communication of incidents to users: notification to users when there is an incident.&lt;/li>
&lt;li>A.8.5 Information for interested parties: information for other stakeholders.&lt;/li>
&lt;/ul>
&lt;p>&lt;strong>Covered by the blog&lt;/strong>:&lt;/p>
&lt;ul>
&lt;li>&lt;a href="https://blog.lo0.es/en/posts/llm-tracing-opentelemetry-genai/">LLM tracing with OpenTelemetry GenAI&lt;/a>: A.8.2 per-request traceability, A.8.3 the capacity to extract forensic reporting.&lt;/li>
&lt;li>&lt;a href="https://blog.lo0.es/en/posts/prompt-versioning-contract-five-word-change/">Prompt versioning with Langfuse and MLflow&lt;/a>: A.8.2 documented versioning.&lt;/li>
&lt;li>&lt;a href="https://blog.lo0.es/en/posts/llm-guardrails-safety-four-lines-of-defence/">Guardrails and safety in LLMs&lt;/a>: A.8.4, &lt;code>gen_ai.guardrail.*&lt;/code> spans as the basis for incident notification.&lt;/li>
&lt;li>&lt;a href="https://blog.lo0.es/en/posts/llm-guard-anatomy-scanners-langfuse-vllm-litellm/">LLM Guard&lt;/a>: A.8.4 incident events for retrain.&lt;/li>
&lt;/ul>
&lt;h3 id="a9--use-of-ai-systems-3-controls-covered">A.9 — Use of AI systems (3 controls): COVERED&lt;/h3>
&lt;ul>
&lt;li>A.9.2 Processes for responsible use of AI: responsible use procedures.&lt;/li>
&lt;li>A.9.3 Objectives for responsible use of AI: objectives.&lt;/li>
&lt;li>A.9.4 Intended use of AI systems: documentation of the intended use.&lt;/li>
&lt;/ul>
&lt;p>&lt;strong>Covered by the blog&lt;/strong>:&lt;/p>
&lt;ul>
&lt;li>&lt;a href="https://blog.lo0.es/en/posts/llm-guardrails-safety-four-lines-of-defence/">Guardrails and safety in LLMs&lt;/a>: A.9.2 + A.9.3 (the four lines of defence).&lt;/li>
&lt;li>&lt;a href="https://blog.lo0.es/en/posts/llm-guard-anatomy-scanners-langfuse-vllm-litellm/">LLM Guard&lt;/a>: A.9.2 operational detail.&lt;/li>
&lt;li>&lt;a href="https://blog.lo0.es/en/posts/evals-llm-layer-after-tracing/">Evals: the layer after tracing&lt;/a>: A.9.3 measurement of objectives.&lt;/li>
&lt;li>&lt;a href="https://blog.lo0.es/en/posts/retrain-closing-the-loop-feedback-dataset-adapter/">Retrain&lt;/a>: A.9.2 closed loop.&lt;/li>
&lt;/ul>
&lt;h3 id="a10--third-parties-and-customer-relationships-4-controls-covered">A.10 — Third parties and customer relationships (4 controls): COVERED&lt;/h3>
&lt;ul>
&lt;li>A.10.2 Allocation of responsibilities: distribution of responsibilities between AI roles.&lt;/li>
&lt;li>A.10.3 Suppliers: procedures for AI suppliers.&lt;/li>
&lt;li>A.10.4 Customers: procedures towards customers.&lt;/li>
&lt;li>A.10.5 Third parties: procedures for third parties.&lt;/li>
&lt;/ul>
&lt;p>&lt;strong>Covered by the blog&lt;/strong>:&lt;/p>
&lt;ul>
&lt;li>&lt;a href="https://blog.lo0.es/en/posts/parallel-catalogue-llmops-stages-open-source-hyperscalers/">The parallel catalogue: OSS vs hyperscalers&lt;/a>: A.10.3 supplier assessment with lock-in and contractual sovereignty analysis.&lt;/li>
&lt;li>&lt;a href="https://blog.lo0.es/en/posts/oss-catalogue-llmops-six-stages-tool-by-tool/">The OSS catalogue for LLMOps&lt;/a>: A.10.5 third-party inventory (OSS components with licences and governance).&lt;/li>
&lt;li>&lt;a href="https://blog.lo0.es/en/posts/anatomy-llm-request-production-tour-six-stages/">Anatomy of an LLM request&lt;/a>: A.10.2 + A.10.4 in the multi-tenant case.&lt;/li>
&lt;/ul>
&lt;h2 id="the-roles-defined-by-the-standard">The roles defined by the standard&lt;/h2>
&lt;p>ISO/IEC 22989:2022 (AI vocabulary, complementary to 42001) defines six roles. Each organisation has to decide which ones it occupies and document it:&lt;/p>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th>Role&lt;/th>
&lt;th>Definition&lt;/th>
&lt;th>Main responsibility&lt;/th>
&lt;th>Example&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td>&lt;strong>AI provider&lt;/strong>&lt;/td>
&lt;td>Organisation that provides the AI system to others&lt;/td>
&lt;td>Makes the system available&lt;/td>
&lt;td>OpenAI provides GPT-5 via API&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>AI producer&lt;/strong>&lt;/td>
&lt;td>Organisation that develops the AI system&lt;/td>
&lt;td>Design, development, validation&lt;/td>
&lt;td>Meta produces Llama 4&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>AI customer&lt;/strong>&lt;/td>
&lt;td>Organisation that acquires the AI system&lt;/td>
&lt;td>Selection, integration, oversight&lt;/td>
&lt;td>A consultancy integrating an LLM into its own product&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>AI partner&lt;/strong>&lt;/td>
&lt;td>Organisation collaborating with another AI role&lt;/td>
&lt;td>Shared&lt;/td>
&lt;td>A GPU hardware manufacturer&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>AI subject&lt;/strong>&lt;/td>
&lt;td>Person or group affected by the system&lt;/td>
&lt;td>Recipient of the impact&lt;/td>
&lt;td>The chatbot&amp;rsquo;s end user&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>Relevant authority&lt;/strong>&lt;/td>
&lt;td>Regulator with jurisdiction&lt;/td>
&lt;td>External oversight&lt;/td>
&lt;td>AEPD, CNMC, EU AI Act authorities&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;p>An organisation can occupy several roles at once, which changes the applicable controls. A common pattern in consultancy is: producer + customer + provider towards the end client. The A.10 responsibilities are modulated by the roles.&lt;/p>
&lt;p>&lt;strong>Example role mapping&lt;/strong> for the multi-tenant chatbot from the forensic post:&lt;/p>
&lt;ul>
&lt;li>Base model manufacturer (Llama 4): AI producer of the base model.&lt;/li>
&lt;li>OSS stack operator (the consultancy): AI producer of the LoRA adapter + AI provider of the chatbot to its clients + AI customer of Meta&amp;rsquo;s base model.&lt;/li>
&lt;li>End client (the insurer): AI customer of the chatbot + AI provider of the customer support service.&lt;/li>
&lt;li>The policyholder: AI subject.&lt;/li>
&lt;li>AEPD + EU AI Act authority: relevant authority.&lt;/li>
&lt;/ul>
&lt;p>Each box in the table generates different obligations. The consultancy, being producer of the adapter, must document A.6 (lifecycle) and A.7 (data) for the adapter. Being provider of the chatbot, it must document A.10.4 (customers). Being customer of the base model, it must document A.10.3 (suppliers) and validate that Meta does its part.&lt;/p>
&lt;h2 id="impact-levels-and-proportionality">Impact levels and proportionality&lt;/h2>
&lt;p>42001 does not demand the same rigour of every system. Clause 6.1.2 and control A.5 introduce impact as a modulator. The standard does not define strict categories (unlike the EU AI Act, which does define &amp;ldquo;prohibited / high risk / limited risk / minimal&amp;rdquo;), but it recommends using levels according to severity and probability.&lt;/p>
&lt;p>Industry practice in 2026 aligns the 42001 levels with the EU AI Act categories:&lt;/p>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th>42001 level&lt;/th>
&lt;th>EU AI Act&lt;/th>
&lt;th>Examples&lt;/th>
&lt;th>Control depth&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td>&lt;strong>High&lt;/strong>&lt;/td>
&lt;td>High risk (Annex III)&lt;/td>
&lt;td>Credit scoring, HR, health, critical infrastructure&lt;/td>
&lt;td>Exhaustive impact assessment, mandatory human oversight, continuous monitoring, adversarial evals, detailed logging, half-yearly management review&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>Medium&lt;/strong>&lt;/td>
&lt;td>Limited risk&lt;/td>
&lt;td>Customer service chatbots that do not automate decisions, productivity assistants&lt;/td>
&lt;td>Standard impact assessment, complete guardrails, annual review&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>Low&lt;/strong>&lt;/td>
&lt;td>Minimal risk&lt;/td>
&lt;td>Spam filters, non-personalised content recommendations&lt;/td>
&lt;td>Lightweight impact assessment, basic controls&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;p>This proportionality is operationally key: implementing 42001 at maximum rigour for a low-risk system is waste; relaxing it on a high-risk one is non-compliance.&lt;/p>
&lt;h2 id="the-seven-minimum-aims-documents">The seven minimum AIMS documents&lt;/h2>
&lt;p>An auditor at Stage 1 (documentation review) asks for between seven and ten documents. The seven essentials:&lt;/p>
&lt;ol>
&lt;li>&lt;strong>AI policy&lt;/strong> (clause 5.2 + A.2.2). 1-2 pages. Approved by management, dated, versioned.&lt;/li>
&lt;li>&lt;strong>AIMS scope&lt;/strong> (clause 4.3). List of AI systems in scope, inclusion criteria.&lt;/li>
&lt;li>&lt;strong>Stakeholder register&lt;/strong> (clause 4.2 + A.3.4). A maintained list with expectations.&lt;/li>
&lt;li>&lt;strong>AIMS risk register&lt;/strong> (clause 6.1). Risks of the management system, not of each model.&lt;/li>
&lt;li>&lt;strong>Impact assessment procedure&lt;/strong> (A.5.2) + records of assessments carried out (A.5.3). The procedure plus one or more assessments done.&lt;/li>
&lt;li>&lt;strong>AI lifecycle procedure&lt;/strong> (A.6.2), which can literally read &amp;ldquo;see the six-stage LLMOps pipeline&amp;rdquo; with references to technical runbooks.&lt;/li>
&lt;li>&lt;strong>Data management procedure&lt;/strong> (A.7.2), covering acquisition, quality, provenance, preparation, anonymisation.&lt;/li>
&lt;/ol>
&lt;p>Common additional documents:&lt;/p>
&lt;ol start="8">
&lt;li>&lt;strong>Responsible use policy&lt;/strong> (A.9.2) with permitted and non-permitted use types.&lt;/li>
&lt;li>&lt;strong>AI third-party management procedure&lt;/strong> (A.10.3, A.10.5) with assessment criteria for AI suppliers.&lt;/li>
&lt;li>Internal audit plan + management review agenda (clauses 9.2 + 9.3).&lt;/li>
&lt;/ol>
&lt;p>For an organisation with a mature &lt;a href="https://blog.lo0.es/en/posts/oss-catalogue-llmops-six-stages-tool-by-tool/">OSS stack&lt;/a>, documents 6 and 7 are references to technical artefacts that already exist (pipeline runbooks, DVC configurations, the PII policy in LLM Guard). The real documentary effort sits in documents 1, 2, 3, 4 and 5.&lt;/p>
&lt;h2 id="applied-case-the-blogs-multi-tenant-chatbot--42001-checklist">Applied case: the blog&amp;rsquo;s multi-tenant chatbot → 42001 checklist&lt;/h2>
&lt;p>We take the system described in the &lt;a href="https://blog.lo0.es/en/posts/anatomy-llm-request-production-tour-six-stages/">forensic post&lt;/a>, a multi-tenant customer support chatbot for insurers on an on-premise OSS stack, and walk it as a 42001 auditor would.&lt;/p>
&lt;p>&lt;strong>Clause 4 — Context&lt;/strong>. The AIMS scope includes the chatbot and excludes the internal HR system (a different AI). Stakeholders identified: client insurers, affected policyholders, the AEPD, the EU AI Act authority (once it enters into force on 2 Aug 2026), the supplier Meta (base model), the hardware supplier NVIDIA. → Documented.&lt;/p>
&lt;p>&lt;strong>Clause 5 — Leadership&lt;/strong>. AI policy signed by the CEO, in force. Roles assigned: AI lead (CTO), AI risk owner (CISO), data steward (Head of Data), quarterly AI ethics committee. → Documented.&lt;/p>
&lt;p>&lt;strong>Clause 6 — Planning&lt;/strong>. AIMS risk register: incomplete documentation, team churn, dependency on a single GPU supplier, EU AI Act regulatory change. AIMS objectives for 2026: 42001 certification before Q4, EU AI Act high-risk compliance before 2 Aug. → Documented.&lt;/p>
&lt;p>&lt;strong>Clause 7 — Support&lt;/strong>. Resources: a &lt;a href="https://blog.lo0.es/en/posts/disaggregated-serving-prefill-decode-specialised-pods/">4×H100 SXM&lt;/a> cluster + the &lt;a href="https://blog.lo0.es/en/posts/anatomy-on-premise-llm-inference-stack-seven-layers/">seven stack layers&lt;/a>. Competence: 2 MLE + 2 SRE + 1 part-time AI ethics, all with documented training. Communication: AI policy on the intranet + handbook. → Documented.&lt;/p>
&lt;p>&lt;strong>Clause 8 — Operation&lt;/strong>. Operating procedures = the &lt;a href="https://blog.lo0.es/en/posts/six-stage-llmops-pipeline-architecture-and-deep-dive/">six-stage LLMOps pipeline&lt;/a>. Impact assessment run before deployment + annual review + review on substantial change (defined as: base model change, major adapter change, expansion to a new tenant). → Documented.&lt;/p>
&lt;p>&lt;strong>Clause 9 — Evaluation&lt;/strong>. Monitoring: &lt;a href="https://blog.lo0.es/en/posts/llm-tracing-opentelemetry-genai/">Langfuse + Tempo + VictoriaMetrics + Grafana&lt;/a>. Mandatory dashboard metrics: F1 per guardrail category over real traffic, statistical drift, RAG faithfulness, refusal rate. Quarterly internal audit with written criteria. Half-yearly management review with signed minutes. → Documented.&lt;/p>
&lt;p>&lt;strong>Clause 10 — Improvement&lt;/strong>. Incident-driven retrain tickets mapped as nonconformities when severity ≥ HIGH. Documented root cause analysis. Effectiveness verified at the next eval gate. → Documented.&lt;/p>
&lt;p>&lt;strong>Annex A — By section&lt;/strong>:&lt;/p>
&lt;ul>
&lt;li>A.2 (Policies): AI policy + responsible use policy. → Documented.&lt;/li>
&lt;li>A.3 (Organisation): roles assigned, reporting channel, stakeholder register. → Documented.&lt;/li>
&lt;li>A.4 (Resources): &lt;a href="https://blog.lo0.es/en/posts/greenfield-deployment-phases-on-premise-llm-platform/">seven deployment phases&lt;/a> + &lt;a href="https://blog.lo0.es/en/posts/oss-catalogue-llmops-six-stages-tool-by-tool/">OSS catalogue&lt;/a> + training plan + annual budget. → Documented.&lt;/li>
&lt;li>A.5 (Impact): procedure + per-system assessments + fairness metrics applied. → Documented.&lt;/li>
&lt;li>A.6 (Lifecycle): &lt;a href="https://blog.lo0.es/en/posts/six-stage-llmops-pipeline-architecture-and-deep-dive/">LLMOps pipeline&lt;/a> + &lt;a href="https://blog.lo0.es/en/posts/continuous-fine-tuning-production-real-traffic-deployed-adapter/">continuous fine-tuning&lt;/a> + &lt;a href="https://blog.lo0.es/en/posts/retrain-closing-the-loop-feedback-dataset-adapter/">retrain&lt;/a>. → Documented.&lt;/li>
&lt;li>A.7 (Data): &lt;a href="https://blog.lo0.es/en/posts/data-versioning-llmops-dvc-lakefs-reproducible-golden-dataset/">data versioning&lt;/a> + &lt;a href="https://blog.lo0.es/en/posts/rag-corpus-curation-active-librarian/">RAG corpus curation&lt;/a> + &lt;a href="https://blog.lo0.es/en/posts/llm-guard-anatomy-scanners-langfuse-vllm-litellm/">LLM Guard Vault&lt;/a> + Presidio. → Documented.&lt;/li>
&lt;li>A.8 (Information to parties): &lt;a href="https://blog.lo0.es/en/posts/llm-tracing-opentelemetry-genai/">OTel tracing&lt;/a> + Langfuse + &lt;code>gen_ai.guardrail.*&lt;/code> spans + notification to tenants within SLA. → Documented.&lt;/li>
&lt;li>A.9 (Use): &lt;a href="https://blog.lo0.es/en/posts/llm-guardrails-safety-four-lines-of-defence/">guardrails&lt;/a> + &lt;a href="https://blog.lo0.es/en/posts/evals-llm-layer-after-tracing/">evals&lt;/a> + responsible use policy. → Documented.&lt;/li>
&lt;li>A.10 (Third parties): &lt;a href="https://blog.lo0.es/en/posts/parallel-catalogue-llmops-stages-open-source-hyperscalers/">OSS vs hyperscalers&lt;/a> with lock-in analysis + Meta contract for the base model + contracts with tenants. → Documented.&lt;/li>
&lt;/ul>
&lt;p>Result of the walkthrough: certifiable. The typical gaps (A.2.2 written policy, A.3 roles, A.5 impact assessment procedure) are covered as formal documents. The operational clauses (8, 9, 10) lean on the blog&amp;rsquo;s technical architecture. The distance between &amp;ldquo;having the architecture&amp;rdquo; and &amp;ldquo;having certification&amp;rdquo; is measured in documentary discipline, not in code.&lt;/p>
&lt;h2 id="cross-mapping-with-the-eu-ai-act-nis2-and-ens">Cross-mapping with the EU AI Act, NIS2 and ENS&lt;/h2>
&lt;h3 id="eu-ai-act-reg-20241689--seven-directly-aligned-articles">EU AI Act (Reg. 2024/1689) — seven directly aligned articles&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th>EU AI Act article&lt;/th>
&lt;th>Topic&lt;/th>
&lt;th>Aligned 42001 control&lt;/th>
&lt;th>Applies to&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td>Art. 9&lt;/td>
&lt;td>Risk management system&lt;/td>
&lt;td>A.5 + clause 6&lt;/td>
&lt;td>High-risk systems&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Art. 10&lt;/td>
&lt;td>Data and data governance&lt;/td>
&lt;td>A.7 (all)&lt;/td>
&lt;td>High-risk systems&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Art. 11&lt;/td>
&lt;td>Technical documentation&lt;/td>
&lt;td>A.6 + A.4.2&lt;/td>
&lt;td>High-risk systems&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Art. 12&lt;/td>
&lt;td>Record-keeping (logs)&lt;/td>
&lt;td>A.8.2 + OTel tracing&lt;/td>
&lt;td>High-risk systems&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Art. 13&lt;/td>
&lt;td>Transparency to deployers&lt;/td>
&lt;td>A.8.5 + A.10.4&lt;/td>
&lt;td>High-risk systems&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Art. 14&lt;/td>
&lt;td>Human oversight&lt;/td>
&lt;td>A.9.2 + documented oversight&lt;/td>
&lt;td>High-risk systems&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Art. 17&lt;/td>
&lt;td>Quality management system&lt;/td>
&lt;td>Clauses 4-10&lt;/td>
&lt;td>High-risk providers&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;p>The main obligations for high-risk systems enter into application on 2 August 2026. Implementing 42001 now builds the management base that deadline demands.&lt;/p>
&lt;p>What is missing for EU AI Act compliance that 42001 does not cover:&lt;/p>
&lt;ul>
&lt;li>CE conformity of high-risk systems (declaration of conformity, marking, registration in the EU database).&lt;/li>
&lt;li>The specific post-market monitoring required by Art. 72.&lt;/li>
&lt;li>Serious incident reporting to authorities within legal deadlines (not only to users).&lt;/li>
&lt;li>Transparency obligations towards users for limited-risk systems (Art. 50): chatbots, deepfakes, generated content.&lt;/li>
&lt;li>The Art. 5 prohibitions (social scoring, manipulation, real-time biometrics with exceptions).&lt;/li>
&lt;/ul>
&lt;h3 id="nis2-dir-20222555--three-pillars-with-overlap">NIS2 (Dir. 2022/2555) — three pillars with overlap&lt;/h3>
&lt;ul>
&lt;li>&lt;strong>Asset register&lt;/strong> (Art. 21.2.f): AI systems within NIS2 scope must be in the asset inventory. → Overlaps with A.4 + clause 4.3 (scope).&lt;/li>
&lt;li>&lt;strong>Incident notification&lt;/strong> (Art. 23): significant incidents are notified within 24 h (initial alert) + 72 h (detailed report). → Overlaps with A.3.3 (reporting) + clause 10 (improvement).&lt;/li>
&lt;li>&lt;strong>Supply chain security&lt;/strong> (Art. 21.2.d): security assessment of the digital supply chain. → Overlaps with A.10.3 (suppliers).&lt;/li>
&lt;/ul>
&lt;p>For essential NIS2 entities that also use AI systems, 42001 covers the AI-specific part that NIS2 requires by inference but does not spell out.&lt;/p>
&lt;h3 id="ens-rd-3112022">ENS (RD 311/2022)&lt;/h3>
&lt;p>The Spanish Esquema Nacional de Seguridad already expressly addresses AI in its Annex II (ENS controls). The Basic/Medium/High categories align with the 42001 impact levels. The ENS controls on traceability (op.exp.8), activity logging (op.exp.10) and incident management (op.exp.7) are covered by the same technical artefacts as A.8 and A.5 of 42001. An organisation certified at ENS High category with AI systems is a reasonable effort away from adding 42001.&lt;/p>
&lt;h2 id="the-five-usual-certification-traps">The five usual certification traps&lt;/h2>
&lt;p>&lt;strong>Trap 1 — Confusing 42001 with EU AI Act compliance.&lt;/strong> Passing the 42001 audit does not imply conformity with the European Regulation. They are distinct universes with a 60-70% overlap. The trap surfaces when the client asks for CE marking of the high-risk system and the organisation produces only the 42001 certificate.&lt;/p>
&lt;p>&lt;strong>Trap 2 — Over-documenting.&lt;/strong> Two-hundred-page manuals with procedures copied from templates, with no measurables and no evidence of application. The auditor asks for the last execution of the procedure; with no records, the procedures are ornament. The practical rule: prefer short documents referencing live technical artefacts to long self-contained ones.&lt;/p>
&lt;p>&lt;strong>Trap 3 — Under-measuring.&lt;/strong> Defining AIMS objectives with no operational metrics. &amp;ldquo;Improve model quality&amp;rdquo; is a null objective; &amp;ldquo;F1 per guardrail category ≥ 0.85 over real traffic, measured weekly, reviewed quarterly in the management review&amp;rdquo; is an auditable objective. The blog has insisted on this in every post on &lt;a href="https://blog.lo0.es/en/posts/evals-llm-layer-after-tracing/">evals&lt;/a>, &lt;a href="https://blog.lo0.es/en/posts/llm-guardrails-safety-four-lines-of-defence/">guardrails&lt;/a> and &lt;a href="https://blog.lo0.es/en/posts/retrain-closing-the-loop-feedback-dataset-adapter/">retrain&lt;/a>.&lt;/p>
&lt;p>&lt;strong>Trap 4 — Ignoring A.5 until audit day.&lt;/strong> The impact assessment is the most underrated control and the first one the auditor asks for. Without per-system assessments carried out before deployment, there is no way to demonstrate A.5. The trap surfaces when there is no longer time to produce credible retrospective assessments.&lt;/p>
&lt;p>&lt;strong>Trap 5 — Assuming 27001 covers the AI part.&lt;/strong> Organisations that already have 27001 sometimes think &amp;ldquo;we have half of it done&amp;rdquo;. That is true for Annex SL (structure) and for A.5/A.6/A.7 of 27001 (not of 42001) as far as infosec goes. It is false for A.5 of 42001 (impact assessment), A.7 of 42001 (AI-specific data quality), A.9 (responsible use) and A.10.4 (AI customers). You have to add, not assume.&lt;/p>
&lt;h2 id="what-we-have-not-covered-upcoming-posts">What we have not covered (upcoming posts)&lt;/h2>
&lt;ul>
&lt;li>&lt;strong>Concrete templates&lt;/strong> of the seven mandatory documents, with drafting examples and metrics. Material for a post along the lines of &amp;ldquo;The AIMS manual in 7 documents&amp;rdquo; with a reference frame.&lt;/li>
&lt;li>&lt;strong>Detailed article-by-article mapping to the EU AI Act&lt;/strong> with the checklist of technical evidence derivable from the blog&amp;rsquo;s OSS stack. Especially Arts 11 (technical documentation), 14 (human oversight) and 72 (post-market monitoring).&lt;/li>
&lt;li>&lt;strong>The combined ENS High category + 42001 case&lt;/strong>: which ENS controls are covered by which AIMS artefacts, avoiding duplication.&lt;/li>
&lt;li>&lt;strong>NIST AI RMF 1.0 vs 42001 comparison&lt;/strong>: many international clients ask for both. How the same artefacts are recycled to satisfy the two frameworks.&lt;/li>
&lt;li>&lt;strong>42001 for LLM agents and MCP&lt;/strong>: the new dimensions that emerge when the AI system is agentic (excessive agency, tool use, graduated autonomy). The &lt;a href="https://blog.lo0.es/en/posts/llm-guardrails-safety-four-lines-of-defence/">guardrails&lt;/a> post introduced line 3 (tool GR); 42001 has open gaps in this terrain and SC 42 is working on addenda.&lt;/li>
&lt;/ul>
&lt;h2 id="references">References&lt;/h2>
&lt;ul>
&lt;li>&lt;strong>ISO/IEC 42001:2023&lt;/strong> — &lt;em>Information technology — Artificial intelligence — Management system&lt;/em>. ISO. &lt;a href="https://www.iso.org/standard/81230.html">https://www.iso.org/standard/81230.html&lt;/a>.&lt;/li>
&lt;li>&lt;strong>ISO/IEC 22989:2022&lt;/strong> — &lt;em>Information technology — Artificial intelligence — Artificial intelligence concepts and terminology&lt;/em>. Define los roles AI provider/producer/customer/partner/subject.&lt;/li>
&lt;li>&lt;strong>ISO/IEC 23894:2023&lt;/strong> — &lt;em>Information technology — Artificial intelligence — Guidance on risk management&lt;/em>. Insumo de A.5.&lt;/li>
&lt;li>&lt;strong>ISO/IEC 38507:2022&lt;/strong> — &lt;em>Governance implications of the use of AI by organizations&lt;/em>. Complemento de gobierno.&lt;/li>
&lt;li>&lt;strong>ISO/IEC 5259&lt;/strong> — &lt;em>Data quality for analytics and machine learning&lt;/em> (familia). Insumo de A.7.&lt;/li>
&lt;li>&lt;strong>EU AI Act (Regulation 2024/1689)&lt;/strong> — texto consolidado en EUR-Lex. Entrada en vigor de obligaciones de alto riesgo: 2 ago 2026.&lt;/li>
&lt;li>&lt;strong>NIS2 (Directive 2022/2555)&lt;/strong> — texto consolidado en EUR-Lex.&lt;/li>
&lt;li>&lt;strong>ENS — Real Decreto 311/2022&lt;/strong> — Esquema Nacional de Seguridad, BOE-A-2022-7191.&lt;/li>
&lt;li>&lt;strong>NIST AI RMF 1.0&lt;/strong> (2023) — &lt;a href="https://www.nist.gov/itl/ai-risk-management-framework">https://www.nist.gov/itl/ai-risk-management-framework&lt;/a>.&lt;/li>
&lt;li>&lt;strong>EUR-Lex EU AI Act consolidated text&lt;/strong> — &lt;a href="https://eur-lex.europa.eu/eli/reg/2024/1689">https://eur-lex.europa.eu/eli/reg/2024/1689&lt;/a>.&lt;/li>
&lt;li>A-LIGN / BSI / Schellman — blogs sobre experiencia de auditoría 42001 con casos reales 2024-2025.&lt;/li>
&lt;/ul>
&lt;h2 id="see-also">See also&lt;/h2>
&lt;ul>
&lt;li>
&lt;p>&lt;a href="https://blog.lo0.es/en/posts/hardening-secrets-sovereign-llm-stack-defence-in-depth/">Hardening and secrets in the sovereign LLM stack: defence in depth&lt;/a> — the operational security controls that hold up the AIMS.&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;a href="https://blog.lo0.es/en/posts/six-stage-llmops-pipeline-architecture-and-deep-dive/">The six-stage LLMOps pipeline&lt;/a> — the operating procedure that materialises A.6 lifecycle with no extra work.&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;a href="https://blog.lo0.es/en/posts/anatomy-llm-request-production-tour-six-stages/">Anatomy of an LLM request in production&lt;/a> — the forensic case walked through as a 42001 checklist in the &amp;ldquo;applied case&amp;rdquo; section of this post.&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;a href="https://blog.lo0.es/en/posts/anatomy-on-premise-llm-inference-stack-seven-layers/">Seven layers of the on-premise LLM inference stack&lt;/a> and &lt;a href="https://blog.lo0.es/en/posts/greenfield-deployment-phases-on-premise-llm-platform/">seven deployment phases&lt;/a> — direct material for A.4 resources.&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;a href="https://blog.lo0.es/en/posts/five-maturity-levels-platform-under-llm/">Five maturity levels of the platform&lt;/a> — how to justify the proportionality of the controls against the existing maturity level.&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;a href="https://blog.lo0.es/en/posts/data-versioning-llmops-dvc-lakefs-reproducible-golden-dataset/">Data versioning with DVC and lakeFS&lt;/a> and &lt;a href="https://blog.lo0.es/en/posts/rag-corpus-curation-active-librarian/">RAG corpus curation&lt;/a> — A.7 data covered in detail.&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;a href="https://blog.lo0.es/en/posts/llm-tracing-opentelemetry-genai/">LLM tracing with OpenTelemetry GenAI&lt;/a> — A.8 information to interested parties through standardised traceability.&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;a href="https://blog.lo0.es/en/posts/llm-guardrails-safety-four-lines-of-defence/">Guardrails and safety in LLMs&lt;/a> and &lt;a href="https://blog.lo0.es/en/posts/llm-guard-anatomy-scanners-langfuse-vllm-litellm/">LLM Guard&lt;/a> — A.9 responsible use.&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;a href="https://blog.lo0.es/en/posts/evals-llm-layer-after-tracing/">Evals: the layer after tracing&lt;/a> and &lt;a href="https://blog.lo0.es/en/posts/llm-as-judge-exam-marker-not-oracle/">LLM-as-judge&lt;/a> — A.6.2.5 verification and validation.&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;a href="https://blog.lo0.es/en/posts/retrain-closing-the-loop-feedback-dataset-adapter/">Retrain: closing the feedback → dataset → adapter loop&lt;/a> — clause 10 continual improvement + the incident-driven loop that feeds formal nonconformities.&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;a href="https://blog.lo0.es/en/posts/parallel-catalogue-llmops-stages-open-source-hyperscalers/">The parallel catalogue: OSS vs hyperscalers&lt;/a> — A.10.3 supplier assessment with a structural analysis of lock-in and contractual sovereignty; a direct input to the AI supplier register.&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;a href="https://blog.lo0.es/en/posts/oss-catalogue-llmops-six-stages-tool-by-tool/">The OSS catalogue for LLMOps&lt;/a> — A.10.5 inventory of OSS third parties with documented licence, governance and maturity.&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;a href="https://blog.lo0.es/en/posts/mlops-for-llms-landscape-2026/">LLM-specific MLOps in 2026: the landscape&lt;/a> — the operational context in which the AIMS runs and is audited.&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;a href="https://blog.lo0.es/en/posts/eu-ai-act-technical-dossier-on-premise-llm-architecture/">EU AI Act: the technical dossier, article by article&lt;/a> — the sister post on Regulation (EU) 2024/1689; it moves from the management system down to the directly applicable legal obligations, with deadlines, penalties and a control-to-article mapping.&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;a href="https://blog.lo0.es/en/posts/technical-controls-ens-iso-42001-eu-ai-act-cross-mapping/">Technical controls: the cross-mapping of ENS × ISO 42001 × EU AI Act&lt;/a> — the third post of the governance trilogy; it goes down to the detail of the 25 technical controls common to the three frameworks, with the master table of triple compliance and the labelling of evidence.&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;a href="https://blog.lo0.es/en/posts/incident-response-runbooks-llm-inference-kafka-keep/">Incident response runbooks for LLMs with Keep + Kafka&lt;/a> — the operational materialisation of clause 10 (continual improvement) and the WORM trace A.8.2 demands: every incident opens a nonconformity, triggers a postmortem, updates the runbook and is recorded in the Kafka &lt;code>audit.actions&lt;/code> topic.&lt;/p>
&lt;/li>
&lt;/ul></description></item><item><title>EU AI Act: the technical dossier, article by article, over the blog's on-premise LLM architecture</title><link>https://blog.lo0.es/en/posts/eu-ai-act-technical-dossier-on-premise-llm-architecture/</link><pubDate>Mon, 01 Jun 2026 05:30:00 +0200</pubDate><guid>https://blog.lo0.es/en/posts/eu-ai-act-technical-dossier-on-premise-llm-architecture/</guid><description>&lt;blockquote>
&lt;p>Sister post to the &lt;a href="https://blog.lo0.es/en/posts/iso-42001-aims-on-premise-llm-platform/">mapping onto ISO/IEC 42001&lt;/a>. That one broke down the AI management system, the certifiable standard. This one breaks down the binding legal regulation that applies without any certification: the EU AI Act is direct law in all 27 Member States, with no transposition and with explicit penalties of up to 35 million euros or 7% of worldwide turnover. The main obligations for high-risk systems enter into force on 2 August 2026; each article applies from its own date, not from the date the organisation gets certified.&lt;/p>
&lt;/blockquote>
&lt;h2 id="tldr">TL;DR&lt;/h2>
&lt;p>Regulation (EU) 2024/1689 (the EU AI Act, &amp;ldquo;Reglamento Europeo de Inteligencia Artificial&amp;rdquo;), published in the Official Journal on 12 July 2024, sets obligations by risk tier (prohibited, high, limited, minimal) and by role (provider, deployer, importer, distributor, authorised representative). The obligations for high-risk systems (Annex III: biometrics, critical infrastructure, education, employment, essential public and private services, law enforcement, migration, justice, democratic processes) enter into force on 2 August 2026 and are the category that applies to most LLM projects in a medium-to-large enterprise. This post maps, article by article, the obligations relevant to a high-risk LLM system deployed on-premise: each article states its requirement, identifies which blog post already describes the technical piece that materialises it, and closes with an auditable checklist that a provider hands to a national supervisory authority. The Annex IV technical dossier is reconstructed by pointing its nine mandatory sections at the corresponding technical runbooks. Also covered: the Art. 6 classification and how to decide whether a system falls in as high risk, the Art. 5 prohibitions (what is excluded by construction), the GPAI obligations of Art. 53 that affect anyone building on base models (Llama, Mistral, DeepSeek, Qwen) rather than their own, the full timetable of application dates (5 Aug 2024 entry into force, 2 Feb 2025 prohibitions, 2 Aug 2025 GPAI, 2 Aug 2026 high risk Annex III, 2 Aug 2027 high risk Annex I and systemic GPAI), the Art. 99 penalty table (up to 35 M€ or 7% of worldwide turnover for Art. 5 violations, 15 M€ or 3% for high risk, 7.5 M€ or 1% for incorrect information) and the five frequent compliance traps. The editorial thesis: the technical architecture described in this blog directly covers between 70% and 85% of the Regulation&amp;rsquo;s technical requirements; the rest is documentary and procedural discipline (FRIA, CE marking, signed declaration of conformity, EU database registration, incident reporting within legal deadlines) built on top of technical artefacts that already exist but running on its own circuit.&lt;/p>
&lt;h2 id="the-analogy-the-type-approval-dossier-for-a-new-vehicle">The analogy: the type-approval dossier for a new vehicle&lt;/h2>
&lt;div class="diagram" style="max-width:820px;margin:1.5rem auto;">
&lt;svg viewBox="0 0 820 360" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="EU AI Act as a vehicle type-approval dossier">
&lt;style>
.h-veh{fill:#7aafff;stroke:#444;stroke-width:1.4;rx:8}
.h-doss{fill:#ffd76b;stroke:#444;stroke-width:1.4;rx:8}
.h-auth{fill:#a8e6a3;stroke:#444;stroke-width:1.4;rx:8}
.h-mkt{fill:#ff8a4c;stroke:#444;stroke-width:1.4;rx:8}
.hl{font:600 13px sans-serif;fill:#222}
.hs{font:400 11px sans-serif;fill:#555}
.hn{font:italic 11px sans-serif;fill:#555}
.hr{stroke:#666;stroke-width:1.6;fill:none;marker-end:url(#mh1)}
&lt;/style>
&lt;defs>&lt;marker id="mh1" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="6" markerHeight="6" orient="auto">&lt;path d="M0,0 L10,5 L0,10 z" fill="#666"/>&lt;/marker>&lt;/defs>
&lt;rect x="20" y="20" width="160" height="60" class="h-veh"/>
&lt;text x="100" y="40" text-anchor="middle" class="hl">High-risk AI system&lt;/text>
&lt;text x="100" y="58" text-anchor="middle" class="hs">scoring, biometrics, HR,&lt;/text>
&lt;text x="100" y="72" text-anchor="middle" class="hs">health, justice (the new car)&lt;/text>
&lt;rect x="220" y="20" width="180" height="60" class="h-doss"/>
&lt;text x="310" y="40" text-anchor="middle" class="hl">Annex IV dossier&lt;/text>
&lt;text x="310" y="58" text-anchor="middle" class="hs">technical documentation +&lt;/text>
&lt;text x="310" y="72" text-anchor="middle" class="hs">QMS + FRIA (the WVTA file)&lt;/text>
&lt;rect x="440" y="20" width="160" height="60" class="h-auth"/>
&lt;text x="520" y="40" text-anchor="middle" class="hl">Conformity Assessment&lt;/text>
&lt;text x="520" y="58" text-anchor="middle" class="hs">notified body or self-assess.&lt;/text>
&lt;text x="520" y="72" text-anchor="middle" class="hs">(type approval)&lt;/text>
&lt;rect x="640" y="20" width="160" height="60" class="h-mkt"/>
&lt;text x="720" y="40" text-anchor="middle" class="hl">CE marking + EU DB&lt;/text>
&lt;text x="720" y="58" text-anchor="middle" class="hs">declaration of conformity&lt;/text>
&lt;text x="720" y="72" text-anchor="middle" class="hs">(E mark, type approval)&lt;/text>
&lt;path class="hr" d="M180,50 L220,50"/>
&lt;path class="hr" d="M400,50 L440,50"/>
&lt;path class="hr" d="M600,50 L640,50"/>
&lt;rect x="20" y="130" width="780" height="80" class="h-doss"/>
&lt;text x="410" y="152" text-anchor="middle" class="hl">The 9 sections of the Annex IV dossier (what the file has to contain)&lt;/text>
&lt;text x="410" y="172" text-anchor="middle" class="hs">1 General description · 2 Design and development · 3 Capabilities and limitations · 4 Data · 5 Monitoring · 6 QMS plan · 7 FRIA&lt;/text>
&lt;text x="410" y="190" text-anchor="middle" class="hs">8 Log records · 9 Declaration of conformity — all signed by the provider, available to authorities for 10 years&lt;/text>
&lt;rect x="20" y="230" width="780" height="80" class="h-mkt"/>
&lt;text x="410" y="252" text-anchor="middle" class="hl">Post-market monitoring (Art. 72) + Serious incident reporting (Art. 73)&lt;/text>
&lt;text x="410" y="272" text-anchor="middle" class="hs">The vehicle is tracked after sale: servicing, recalls for defects, records of serious accidents&lt;/text>
&lt;text x="410" y="290" text-anchor="middle" class="hs">Legal deadlines: 15 days (general), 10 days (death), 2 days (critical infra or widespread infringement)&lt;/text>
&lt;text x="410" y="340" text-anchor="middle" class="hn">The vehicle leaves the factory with a dossier; it gets the E mark; it travels with a service book; serious accidents are reported to the ministry.&lt;/text>
&lt;/svg>
&lt;/div>
&lt;p>A vehicle manufacturer cannot sell a new car in the EU without passing WVTA (Whole Vehicle Type Approval). The process is public and standardised: the manufacturer prepares a technical dossier with dozens of chapters (brakes, emissions, active and passive safety, lighting, noise, weight, dimensions, recyclable materials, driver assistance devices), submits it to a type-approval authority or a notified technical service, which audits the file and, if everything adds up, issues the type approval. The manufacturer then stamps the E mark (E1 Germany, E9 Spain, and so on) and the CE/UNECE plate on every vehicle of that type produced in series. Each vehicle also carries a service book with mandatory inspections, and serious accidents or systemic defects are reported to the competent ministry, which can order recalls.&lt;/p>
&lt;p>The EU AI Act adapts exactly this industrial model to high-risk AI software. The provider prepares the Annex IV dossier (nine mandatory sections) with the full technical documentation of the system, runs a conformity assessment (self-assessment for most Annex III cases, notified body for the more sensitive Annex I ones), signs the EU declaration of conformity, registers the system in the European database, and applies the CE marking to the system when it is placed on the market. From there on it must keep a live post-market monitoring system and report serious incidents to the market surveillance authorities of each Member State within legal deadlines ranging from 2 to 15 days depending on severity. Failing to comply, penalties reach 35 million euros or 7% of worldwide turnover depending on which article was breached.&lt;/p>
&lt;p>The analogy matters because it bounds expectations: this is not a one-off compliance job, nor a badge you buy. It is an industrial type-approval process, with cadences, evidence, signatures and criminal liability. And most of the technical evidence the dossier asks for already exists in any serious system described in this blog: data lineage, OTel tracing, continuous evals, guardrails, incident-driven retrain, a responsible-use policy. What is missing is assembling it in the correct legal format.&lt;/p>
&lt;h2 id="how-it-fits-with-iso-42001-nis2-and-ens">How it fits with ISO 42001, NIS2 and ENS&lt;/h2>
&lt;p>Before dropping into the articles, a reminder of the editorial position from the &lt;a href="https://blog.lo0.es/en/posts/iso-42001-aims-on-premise-llm-platform/">post on ISO 42001&lt;/a>:&lt;/p>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th>Piece&lt;/th>
&lt;th>Nature&lt;/th>
&lt;th>Who operates it&lt;/th>
&lt;th>Coverage&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td>&lt;strong>EU AI Act&lt;/strong>&lt;/td>
&lt;td>Direct EU law&lt;/td>
&lt;td>Provider + deployer + national surveillance authorities&lt;/td>
&lt;td>AI systems on the EU market, segmented by risk&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>ISO/IEC 42001&lt;/strong>&lt;/td>
&lt;td>Certifiable management standard&lt;/td>
&lt;td>Organisation + certification body&lt;/td>
&lt;td>AIMS, organisational governance&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>NIS2&lt;/strong>&lt;/td>
&lt;td>Transposed cyber directive&lt;/td>
&lt;td>Essential/important entities&lt;/td>
&lt;td>Asset register, incident notification, supply chain&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>ENS&lt;/strong> (Esquema Nacional de Seguridad, Spain&amp;rsquo;s national security framework, RD 311/2022)&lt;/td>
&lt;td>Spanish security regulation&lt;/td>
&lt;td>Public sector + its suppliers&lt;/td>
&lt;td>Categories B/M/A, certifiable&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;p>Implementing 42001 makes it easier to demonstrate articles 9-17 of the EU AI Act, but it is not equivalent to legal compliance. The table of legal obligations and the chain of criminal liability come from the Regulation, not from the standard. An organisation certified against 42001 that deploys a high-risk system without CE marking, without registration in the EU database, without a signed declaration of conformity and without a documented FRIA breaches the Regulation even with the certificate on the wall.&lt;/p>
&lt;h2 id="the-four-risk-categories-and-the-art-6-classification">The four risk categories and the Art. 6 classification&lt;/h2>
&lt;p>The Regulation classifies systems into four risk tiers. The choice of category belongs to the provider and must be documented in the dossier, with technical and legal justification.&lt;/p>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th>Category&lt;/th>
&lt;th>Article&lt;/th>
&lt;th>Examples&lt;/th>
&lt;th>Consequence&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td>&lt;strong>Prohibited&lt;/strong>&lt;/td>
&lt;td>Art. 5&lt;/td>
&lt;td>Social scoring, manipulation, real-time biometrics with exceptions, indiscriminate facial scraping&lt;/td>
&lt;td>Cannot operate in the EU under any circumstances&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>High risk&lt;/strong>&lt;/td>
&lt;td>Art. 6 + Annex I + Annex III&lt;/td>
&lt;td>Credit scoring, HR, education, critical infrastructure, non-real-time biometrics, justice, migration, health&lt;/td>
&lt;td>Complies with Arts. 9-17, Annex IV dossier, CE marking, EU DB registration&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>Limited risk&lt;/strong>&lt;/td>
&lt;td>Art. 50&lt;/td>
&lt;td>Chatbots with humans as users, deepfakes, synthetic content&lt;/td>
&lt;td>Transparency obligations towards the user&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>Minimal risk&lt;/strong>&lt;/td>
&lt;td>Everything else&lt;/td>
&lt;td>Spam filters, video game NPCs, content suggestions&lt;/td>
&lt;td>No specific obligations; a voluntary code of conduct is recommended&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;p>The Art. 6 test for deciding whether a system is high risk:&lt;/p>
&lt;ol>
&lt;li>Is it in Annex I? (products regulated by the listed harmonisation legislation: machinery, lifts, toys, medical devices, and so on). If the AI system is a safety component of an Annex I product, it is high risk.&lt;/li>
&lt;li>Is it in Annex III? (eight areas: biometrics, critical infrastructure, education, employment, essential public/private services, law enforcement, migration/asylum, justice/democratic processes). If the system falls in any of those areas it is high risk, except if the Art. 6.3 exception is invoked (systems performing a narrow procedural task, improving the result of a previous human activity, detecting decision patterns without influencing the final decision, preparatory tasks).&lt;/li>
&lt;/ol>
&lt;p>The Art. 6.3 exception requires formal documentation justifying why it does not apply. In other words, even falling outside is not free: you have to demonstrate why.&lt;/p>
&lt;p>For the typical LLM systems covered in this blog:&lt;/p>
&lt;ul>
&lt;li>Customer support chatbot for banking, insurance or healthcare: probably high risk if it automates contractual decisions about the customer, limited risk if it only informs.&lt;/li>
&lt;li>Internal HR assistant (CV screening): high risk (Annex III, employment area).&lt;/li>
&lt;li>Medical assistant (diagnostic support): high risk (Annex III, healthcare services area).&lt;/li>
&lt;li>Fraud detection system: high risk (Annex III, financial services area if it affects access to credit).&lt;/li>
&lt;li>Code copilot for developers: minimal risk (does not affect third parties&amp;rsquo; fundamental rights).&lt;/li>
&lt;li>Internal LLM as a service with no productive use: minimal risk.&lt;/li>
&lt;/ul>
&lt;p>The category decision is not an opinion: it is documented and justified in the dossier.&lt;/p>
&lt;h2 id="timetable-of-application">Timetable of application&lt;/h2>
&lt;p>The obligations arrive in stages. The dates are inflexible:&lt;/p>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th>Date&lt;/th>
&lt;th>Applies&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td>&lt;strong>1 Aug 2024&lt;/strong>&lt;/td>
&lt;td>The Regulation enters into force&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>2 Feb 2025&lt;/strong>&lt;/td>
&lt;td>Art. 5 prohibitions + Art. 4 AI literacy obligations&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>2 Aug 2025&lt;/strong>&lt;/td>
&lt;td>GPAI obligations (Art. 53) + governance + general penalties + designated national authorities&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>2 Aug 2026&lt;/strong>&lt;/td>
&lt;td>&lt;strong>Main high-risk obligations for Annex III + Art. 50 transparency to users&lt;/strong>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>2 Aug 2027&lt;/strong>&lt;/td>
&lt;td>High risk under Annex I (components of regulated products) + GPAI with systemic risk&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;p>2 August 2026 is the date that matters to most enterprise LLM projects. We are in June 2026: less than two months to go.&lt;/p>
&lt;h2 id="article-by-article-mapping">Article-by-article mapping&lt;/h2>
&lt;p>The sections below follow the structure of the Regulation. For each article the requirement is stated, the blog&amp;rsquo;s technical artefact that covers it is identified, and it closes with an auditable checklist.&lt;/p>
&lt;h3 id="art-5--prohibited-practices-in-force-since-2-feb-2025">Art. 5 — Prohibited practices (in force since 2 Feb 2025)&lt;/h3>
&lt;p>&lt;strong>What it requires.&lt;/strong> It prohibits placing on the market, putting into service or using AI systems that:&lt;/p>
&lt;ul>
&lt;li>Manipulate behaviour through subliminal or deceptive techniques that distort decision-making.&lt;/li>
&lt;li>Exploit vulnerabilities related to age, disability or socio-economic situation.&lt;/li>
&lt;li>Implement social scoring by public authorities.&lt;/li>
&lt;li>Perform individual predictive policing based on profiling.&lt;/li>
&lt;li>Perform indiscriminate facial scraping to build facial recognition databases.&lt;/li>
&lt;li>Infer emotions in workplaces or education, except for medical or safety reasons.&lt;/li>
&lt;li>Perform biometric categorisation inferring sensitive attributes (race, political opinion, sexual orientation, and so on).&lt;/li>
&lt;li>Real-time remote biometric identification in public spaces by law enforcement, with strict exceptions (terrorism, kidnapping, missing persons) subject to prior judicial authorisation.&lt;/li>
&lt;/ul>
&lt;p>&lt;strong>The blog&amp;rsquo;s stack.&lt;/strong> No piece of the blog facilitates these practices; the OSS catalogue described is oriented towards legitimate tasks. But the provider must explicitly document why the system does not fall under these prohibitions. It cannot be assumed.&lt;/p>
&lt;p>&lt;strong>Checklist.&lt;/strong>&lt;/p>
&lt;ul>
&lt;li>&lt;input disabled="" type="checkbox"> Prohibition analysis documented per system, with a written statement of non-applicability.&lt;/li>
&lt;li>&lt;input disabled="" type="checkbox"> If the system uses facial biometrics or emotion analysis: specific legal analysis with a formal opinion.&lt;/li>
&lt;li>&lt;input disabled="" type="checkbox"> Annual legal review, or on any change of functionality.&lt;/li>
&lt;/ul>
&lt;h3 id="art-6--classification-of-high-risk-systems">Art. 6 — Classification of high-risk systems&lt;/h3>
&lt;p>&lt;strong>What it requires.&lt;/strong> Determine whether the system is high risk by being in Annex I (safety component of a regulated product) or Annex III (8 areas). If it is in Annex III, assess the Art. 6.3 exception where applicable.&lt;/p>
&lt;p>&lt;strong>The blog&amp;rsquo;s stack.&lt;/strong> The &lt;a href="https://blog.lo0.es/en/posts/anatomy-llm-request-production-tour-six-stages/">forensic post&lt;/a> and the &lt;a href="https://blog.lo0.es/en/posts/six-stage-llmops-pipeline-architecture-and-deep-dive/">six-stage pipeline&lt;/a> describe systems that are typically high risk (multi-tenant chatbot affecting service decisions in a regulated sector).&lt;/p>
&lt;p>&lt;strong>Checklist.&lt;/strong>&lt;/p>
&lt;ul>
&lt;li>&lt;input disabled="" type="checkbox"> Art. 6 analysis signed by the organisation&amp;rsquo;s legal officer.&lt;/li>
&lt;li>&lt;input disabled="" type="checkbox"> If Art. 6.3 is invoked: formal documentation of the exception.&lt;/li>
&lt;li>&lt;input disabled="" type="checkbox"> Re-assessment if the functionality changes (for example, the assistant moves from informing to deciding).&lt;/li>
&lt;/ul>
&lt;h3 id="art-9--risk-management-system">Art. 9 — Risk management system&lt;/h3>
&lt;p>&lt;strong>What it requires.&lt;/strong> An iterative system, planned and executed across the whole lifecycle. Identify foreseeable risks, estimate risks under normal use and foreseeable misuse, evaluate emerging risks in post-market monitoring, adopt mitigation measures, communicate residual risks. Effectiveness testing is done under realistic conditions.&lt;/p>
&lt;p>&lt;strong>The blog&amp;rsquo;s stack.&lt;/strong>&lt;/p>
&lt;ul>
&lt;li>&lt;a href="https://blog.lo0.es/en/posts/six-stage-llmops-pipeline-architecture-and-deep-dive/">The six-stage LLMOps pipeline&lt;/a>, the iterative lifecycle.&lt;/li>
&lt;li>&lt;a href="https://blog.lo0.es/en/posts/evals-llm-layer-after-tracing/">Evals: the layer after tracing&lt;/a>, testing under realistic conditions with golden sets.&lt;/li>
&lt;li>&lt;a href="https://blog.lo0.es/en/posts/llm-guardrails-safety-four-lines-of-defence/">Guardrails and safety in LLMs&lt;/a>, operational mitigation measures.&lt;/li>
&lt;li>&lt;a href="https://blog.lo0.es/en/posts/retrain-closing-the-loop-feedback-dataset-adapter/">Retrain: closing the loop&lt;/a>, management of emerging risks via incident-driven retrain.&lt;/li>
&lt;/ul>
&lt;p>&lt;strong>Checklist.&lt;/strong>&lt;/p>
&lt;ul>
&lt;li>&lt;input disabled="" type="checkbox"> Risk management document per system, with identification, mitigation, and accepted residual risks signed off.&lt;/li>
&lt;li>&lt;input disabled="" type="checkbox"> Periodic review procedure (at least annual, or on substantial change).&lt;/li>
&lt;li>&lt;input disabled="" type="checkbox"> Link to the documented improvement loop.&lt;/li>
&lt;/ul>
&lt;h3 id="art-10--data-and-data-governance">Art. 10 — Data and data governance&lt;/h3>
&lt;p>&lt;strong>What it requires.&lt;/strong> Training, validation and testing datasets that are relevant, representative, as free of errors and as complete as possible, taking into account the characteristics of the intended purpose. Document:&lt;/p>
&lt;ul>
&lt;li>Data collection and selection.&lt;/li>
&lt;li>Processing and annotation.&lt;/li>
&lt;li>Biases identified as likely to affect fundamental rights or cause discrimination; measures to prevent them.&lt;/li>
&lt;li>Identification of data gaps and how they are addressed.&lt;/li>
&lt;/ul>
&lt;p>&lt;strong>The blog&amp;rsquo;s stack.&lt;/strong>&lt;/p>
&lt;ul>
&lt;li>&lt;a href="https://blog.lo0.es/en/posts/data-versioning-llmops-dvc-lakefs-reproducible-golden-dataset/">Data versioning with DVC and lakeFS&lt;/a>, the four data artefacts plus end-to-end lineage.&lt;/li>
&lt;li>&lt;a href="https://blog.lo0.es/en/posts/rag-corpus-curation-active-librarian/">RAG corpus curation: the active librarian&lt;/a>, five layers: schema, dedup, PII, anti-contamination, lineage.&lt;/li>
&lt;li>&lt;a href="https://blog.lo0.es/en/posts/llm-guard-anatomy-scanners-langfuse-vllm-litellm/">LLM Guard: Vault and Anonymize&lt;/a>, runtime anonymisation with restitution.&lt;/li>
&lt;/ul>
&lt;p>&lt;strong>Checklist.&lt;/strong>&lt;/p>
&lt;ul>
&lt;li>&lt;input disabled="" type="checkbox"> Data governance document per dataset (training / RAG corpus / golden eval / enriched retrain).&lt;/li>
&lt;li>&lt;input disabled="" type="checkbox"> Bias analysis by protected category with metrics (parity ratio, equalized odds, calibration).&lt;/li>
&lt;li>&lt;input disabled="" type="checkbox"> PII / anonymisation / pseudonymisation procedure with measured F1.&lt;/li>
&lt;li>&lt;input disabled="" type="checkbox"> Justification of representativeness for the intended context.&lt;/li>
&lt;li>&lt;input disabled="" type="checkbox"> Verifiable chunk→trace lineage.&lt;/li>
&lt;/ul>
&lt;h3 id="art-11--annex-iv--technical-documentation">Art. 11 + Annex IV — Technical documentation&lt;/h3>
&lt;p>&lt;strong>What it requires.&lt;/strong> A technical dossier with the nine Annex IV sections, drawn up before the system is placed on the market, maintained during operation, and available to authorities for ten years after the last operation. The nine sections:&lt;/p>
&lt;ol>
&lt;li>General description of the system: name, version, purpose, integrator, intended hardware, instructions for use.&lt;/li>
&lt;li>Detailed description of design and development: architecture, base models, training methods, design decisions with justification.&lt;/li>
&lt;li>Information on monitoring, functioning and control: capabilities, limitations, expected accuracy, behaviour under normal use and foreseeable misuse.&lt;/li>
&lt;li>Information on data: datasets used, sources, preparation methods, biases addressed.&lt;/li>
&lt;li>Description of the monitoring system and metrics: traces, logs, dashboards.&lt;/li>
&lt;li>Description of the QMS and the Art. 17 procedures.&lt;/li>
&lt;li>FRIA where applicable (Fundamental Rights Impact Assessment, Art. 27).&lt;/li>
&lt;li>Automatically generated logs that the system stores (Art. 12).&lt;/li>
&lt;li>EU declaration of conformity under Art. 47, included.&lt;/li>
&lt;/ol>
&lt;p>&lt;strong>The blog&amp;rsquo;s stack.&lt;/strong> It serves as a direct input for each section:&lt;/p>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th>Annex IV section&lt;/th>
&lt;th>Technical input from the blog&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td>1. General description&lt;/td>
&lt;td>&lt;a href="https://blog.lo0.es/en/posts/anatomy-on-premise-llm-inference-stack-seven-layers/">Anatomy of the stack: 7 layers&lt;/a> + &lt;a href="https://blog.lo0.es/en/posts/greenfield-deployment-phases-on-premise-llm-platform/">seven deployment phases&lt;/a>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>2. Design and development&lt;/td>
&lt;td>&lt;a href="https://blog.lo0.es/en/posts/six-stage-llmops-pipeline-architecture-and-deep-dive/">Six-stage LLMOps pipeline&lt;/a> + &lt;a href="https://blog.lo0.es/en/posts/continuous-fine-tuning-production-real-traffic-deployed-adapter/">continuous fine-tuning&lt;/a> + &lt;a href="https://blog.lo0.es/en/posts/modern-alignment-dpo-kto-orpo-simpo/">modern alignment&lt;/a>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>3. Capabilities and limitations&lt;/td>
&lt;td>&lt;a href="https://blog.lo0.es/en/posts/evals-llm-layer-after-tracing/">Evals&lt;/a> + &lt;a href="https://blog.lo0.es/en/posts/llm-as-judge-exam-marker-not-oracle/">LLM-as-judge&lt;/a>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>4. Data&lt;/td>
&lt;td>&lt;a href="https://blog.lo0.es/en/posts/data-versioning-llmops-dvc-lakefs-reproducible-golden-dataset/">Data versioning&lt;/a> + &lt;a href="https://blog.lo0.es/en/posts/rag-corpus-curation-active-librarian/">RAG corpus curation&lt;/a>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>5. Monitoring&lt;/td>
&lt;td>&lt;a href="https://blog.lo0.es/en/posts/llm-tracing-opentelemetry-genai/">LLM tracing with OTel GenAI&lt;/a> + &lt;a href="https://blog.lo0.es/en/posts/prompt-versioning-contract-five-word-change/">prompt versioning&lt;/a>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>6. QMS&lt;/td>
&lt;td>Procedures derived from &lt;a href="https://blog.lo0.es/en/posts/iso-42001-aims-on-premise-llm-platform/">ISO 42001&lt;/a>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>7. FRIA&lt;/td>
&lt;td>Gap, see Art. 27 below&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>8. Logs&lt;/td>
&lt;td>&lt;a href="https://blog.lo0.es/en/posts/llm-tracing-opentelemetry-genai/">OTel tracing&lt;/a> + retention and policies&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>9. Declaration of conformity&lt;/td>
&lt;td>Documentary gap, see Art. 47 below&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;p>&lt;strong>Checklist.&lt;/strong>&lt;/p>
&lt;ul>
&lt;li>&lt;input disabled="" type="checkbox"> Annex IV dossier complete, versioned, dated, signed.&lt;/li>
&lt;li>&lt;input disabled="" type="checkbox"> 10-year retained access guaranteed (immutable / WORM storage).&lt;/li>
&lt;li>&lt;input disabled="" type="checkbox"> Update procedure on substantial change.&lt;/li>
&lt;/ul>
&lt;h3 id="art-12--art-19--record-keeping-logs">Art. 12 + Art. 19 — Record-keeping (logs)&lt;/h3>
&lt;p>&lt;strong>What it requires.&lt;/strong> A high-risk system must be technically capable of generating automatic logs during its operation. Those logs must allow:&lt;/p>
&lt;ul>
&lt;li>Tracing how the system behaved over time.&lt;/li>
&lt;li>Facilitating post-market monitoring (Art. 72).&lt;/li>
&lt;li>Enabling investigation of serious incidents (Art. 73).&lt;/li>
&lt;li>Supporting audits.&lt;/li>
&lt;/ul>
&lt;p>The provider must retain the logs for at least six months (or longer if national laws or the QMS require it). For remote biometric identification systems there are additional specific requirements.&lt;/p>
&lt;p>&lt;strong>The blog&amp;rsquo;s stack.&lt;/strong>&lt;/p>
&lt;ul>
&lt;li>&lt;a href="https://blog.lo0.es/en/posts/llm-tracing-opentelemetry-genai/">LLM tracing with OpenTelemetry GenAI&lt;/a>, the canonical substrate. Every request emits a span with &lt;code>trace_id&lt;/code>, &lt;code>gen_ai.*&lt;/code> attributes, costs, latencies and guardrail decisions.&lt;/li>
&lt;li>&lt;a href="https://blog.lo0.es/en/posts/prompt-versioning-contract-five-word-change/">Prompt versioning&lt;/a>: &lt;code>prompt_id&lt;/code> + &lt;code>version&lt;/code> travel as attributes.&lt;/li>
&lt;li>&lt;a href="https://blog.lo0.es/en/posts/llm-guardrails-safety-four-lines-of-defence/">Guardrails and safety in LLMs&lt;/a>: &lt;code>gen_ai.guardrail.*&lt;/code> attributes record every decision.&lt;/li>
&lt;li>&lt;a href="https://blog.lo0.es/en/posts/llm-guard-anatomy-scanners-langfuse-vllm-litellm/">LLM Guard&lt;/a>: spans per scanner with &lt;code>risk_score&lt;/code> and &lt;code>action&lt;/code>.&lt;/li>
&lt;li>&lt;a href="https://blog.lo0.es/en/posts/data-versioning-llmops-dvc-lakefs-reproducible-golden-dataset/">Data versioning&lt;/a>: &lt;code>dataset_hash&lt;/code> and &lt;code>model_version&lt;/code> propagated.&lt;/li>
&lt;/ul>
&lt;p>&lt;strong>Checklist.&lt;/strong>&lt;/p>
&lt;ul>
&lt;li>&lt;input disabled="" type="checkbox"> OTel + backend (Tempo, Jaeger) running in production.&lt;/li>
&lt;li>&lt;input disabled="" type="checkbox"> Minimum 6-month retention (24-36 months suggested for financial regulation).&lt;/li>
&lt;li>&lt;input disabled="" type="checkbox"> WORM / immutable storage.&lt;/li>
&lt;li>&lt;input disabled="" type="checkbox"> PII in logs redacted (via LLM Guard Vault or equivalent). Logs are not exempt from the GDPR.&lt;/li>
&lt;li>&lt;input disabled="" type="checkbox"> Forensic query procedure with audited permissions.&lt;/li>
&lt;/ul>
&lt;h3 id="art-13--transparency-to-deployers">Art. 13 — Transparency to deployers&lt;/h3>
&lt;p>&lt;strong>What it requires.&lt;/strong> The provider gives the deployer instructions for use that are clear, complete and accessible, in comprehensible language, covering:&lt;/p>
&lt;ul>
&lt;li>The provider&amp;rsquo;s identity.&lt;/li>
&lt;li>Characteristics, capabilities, limitations (accuracy by category, technical specifications).&lt;/li>
&lt;li>Foreseen changes to the system and its metrics.&lt;/li>
&lt;li>Human oversight measures (Art. 14).&lt;/li>
&lt;li>Expected computational resources and hardware.&lt;/li>
&lt;li>When it applies, the expected lifetime of the system and of its maintenance.&lt;/li>
&lt;/ul>
&lt;p>&lt;strong>The blog&amp;rsquo;s stack.&lt;/strong>&lt;/p>
&lt;ul>
&lt;li>&lt;a href="https://blog.lo0.es/en/posts/oss-catalogue-llmops-six-stages-tool-by-tool/">The OSS catalogue for LLMOps&lt;/a>, which components and with what function.&lt;/li>
&lt;li>&lt;a href="https://blog.lo0.es/en/posts/parallel-catalogue-llmops-stages-open-source-hyperscalers/">OSS vs hyperscalers&lt;/a>, lock-in analysis and documented dependencies.&lt;/li>
&lt;li>&lt;a href="https://blog.lo0.es/en/posts/anatomy-llm-request-production-tour-six-stages/">Anatomy of an LLM request&lt;/a>, capabilities and limitations at forensic level.&lt;/li>
&lt;/ul>
&lt;p>&lt;strong>Checklist.&lt;/strong>&lt;/p>
&lt;ul>
&lt;li>&lt;input disabled="" type="checkbox"> User manual in non-technical language for the deployer, plus a detailed technical manual.&lt;/li>
&lt;li>&lt;input disabled="" type="checkbox"> Accuracy metrics by category with thresholds.&lt;/li>
&lt;li>&lt;input disabled="" type="checkbox"> Change procedure with prior notification.&lt;/li>
&lt;/ul>
&lt;h3 id="art-14--human-oversight">Art. 14 — Human oversight&lt;/h3>
&lt;p>&lt;strong>What it requires.&lt;/strong> The system is designed to allow effective human oversight throughout the period of use, with interfaces and procedures that make it possible to:&lt;/p>
&lt;ul>
&lt;li>Understand capabilities and limitations.&lt;/li>
&lt;li>Detect malfunctions (automation bias awareness).&lt;/li>
&lt;li>Decide not to use the system&amp;rsquo;s output, to override it, to reverse it.&lt;/li>
&lt;li>For remote biometric identification: human verification before acting, by at least two people.&lt;/li>
&lt;/ul>
&lt;p>&lt;strong>The blog&amp;rsquo;s stack.&lt;/strong>&lt;/p>
&lt;ul>
&lt;li>&lt;a href="https://blog.lo0.es/en/posts/llm-guardrails-safety-four-lines-of-defence/">Guardrails and safety&lt;/a>, line 3 (Tool GR) with human-in-the-loop for destructive actions.&lt;/li>
&lt;li>&lt;a href="https://blog.lo0.es/en/posts/evals-llm-layer-after-tracing/">Evals&lt;/a>, metrics on a human-accessible dashboard.&lt;/li>
&lt;li>&lt;a href="https://blog.lo0.es/en/posts/llm-tracing-opentelemetry-genai/">OTel tracing&lt;/a>, Langfuse with auditable human sessions.&lt;/li>
&lt;/ul>
&lt;p>&lt;strong>Checklist.&lt;/strong>&lt;/p>
&lt;ul>
&lt;li>&lt;input disabled="" type="checkbox"> Oversight interface documented with use cases.&lt;/li>
&lt;li>&lt;input disabled="" type="checkbox"> Override / abort capability with no technical restrictions.&lt;/li>
&lt;li>&lt;input disabled="" type="checkbox"> Documented training for oversight personnel.&lt;/li>
&lt;li>&lt;input disabled="" type="checkbox"> Metrics of the effectiveness of the oversight (override rate, false-negative rate of the oversight itself).&lt;/li>
&lt;/ul>
&lt;h3 id="art-15--accuracy-robustness-and-cybersecurity">Art. 15 — Accuracy, robustness and cybersecurity&lt;/h3>
&lt;p>&lt;strong>What it requires.&lt;/strong> High-risk systems are designed and developed to reach an appropriate level of accuracy, robustness and cybersecurity, and to perform consistently throughout their lifecycle. The relevant accuracy metrics are declared in the instructions for use. Resilience against:&lt;/p>
&lt;ul>
&lt;li>Errors, faults and inconsistencies within the environment of use.&lt;/li>
&lt;li>Feedback bias during operation (feedback loops).&lt;/li>
&lt;li>Attacks that try to exploit the system&amp;rsquo;s vulnerabilities (data poisoning, model poisoning, model evasion, confidentiality attacks).&lt;/li>
&lt;li>Technical and organisational measures to detect, respond to and resolve vulnerabilities.&lt;/li>
&lt;/ul>
&lt;p>&lt;strong>The blog&amp;rsquo;s stack.&lt;/strong>&lt;/p>
&lt;ul>
&lt;li>&lt;a href="https://blog.lo0.es/en/posts/quantization-llm-inference-fp8-int4-gguf/">Quantisation fundamentals&lt;/a>, accuracy vs efficiency with reported metrics.&lt;/li>
&lt;li>&lt;a href="https://blog.lo0.es/en/posts/continuous-batching-orca-vllm-chunked-prefill-goodput/">Continuous batching&lt;/a> + &lt;a href="https://blog.lo0.es/en/posts/kv-cache-working-memory-llm-inference/">KV cache&lt;/a>, operational robustness.&lt;/li>
&lt;li>&lt;a href="https://blog.lo0.es/en/posts/llm-guardrails-safety-four-lines-of-defence/">Guardrails: line 1 input + line 2 retrieval&lt;/a>, defence against prompt injection and data poisoning via RAG.&lt;/li>
&lt;li>&lt;a href="https://blog.lo0.es/en/posts/llm-guard-anatomy-scanners-langfuse-vllm-litellm/">LLM Guard: PromptGuard 2 + injection scanners&lt;/a>, direct adversarial mitigation.&lt;/li>
&lt;li>&lt;a href="https://blog.lo0.es/en/posts/evals-llm-layer-after-tracing/">Evals: jailbreak resistance + adversarial&lt;/a>, robustness metrics evaluated in CI.&lt;/li>
&lt;/ul>
&lt;p>&lt;strong>Checklist.&lt;/strong>&lt;/p>
&lt;ul>
&lt;li>&lt;input disabled="" type="checkbox"> Declared accuracy metrics: F1 by category, accuracy, calibration, RAG faithfulness, hallucination rate.&lt;/li>
&lt;li>&lt;input disabled="" type="checkbox"> Robustness plan against adversarial inputs (Garak suite / Promptfoo redteam / PyRIT run periodically).&lt;/li>
&lt;li>&lt;input disabled="" type="checkbox"> Cybersecurity plan: vulnerability management, patching of the stack (vLLM, its deps, CUDA), secrets rotation.&lt;/li>
&lt;li>&lt;input disabled="" type="checkbox"> Analysis of potential feedback loops with drift monitoring.&lt;/li>
&lt;/ul>
&lt;h3 id="art-17--quality-management-system-qms">Art. 17 — Quality management system (QMS)&lt;/h3>
&lt;p>&lt;strong>What it requires.&lt;/strong> The provider has a written, systematic and proportionate QMS covering (without being limited to):&lt;/p>
&lt;ul>
&lt;li>Regulatory compliance strategy.&lt;/li>
&lt;li>Design, verification and quality control of the system.&lt;/li>
&lt;li>Testing and validation procedures.&lt;/li>
&lt;li>Data management.&lt;/li>
&lt;li>The risk management system (Art. 9).&lt;/li>
&lt;li>Post-market monitoring (Art. 72).&lt;/li>
&lt;li>Incident reporting (Art. 73).&lt;/li>
&lt;li>Communication with authorities, deployers and other stakeholders.&lt;/li>
&lt;li>Records: documentation, log maintenance.&lt;/li>
&lt;li>Resource management.&lt;/li>
&lt;li>Accountability: management responsibilities.&lt;/li>
&lt;/ul>
&lt;p>&lt;strong>The blog&amp;rsquo;s stack.&lt;/strong> The QMS is not code, but it leans on code.&lt;/p>
&lt;ul>
&lt;li>ISO/IEC 42001 implemented (previous post) covers practically the whole content of Art. 17.&lt;/li>
&lt;li>&lt;a href="https://blog.lo0.es/en/posts/six-stage-llmops-pipeline-architecture-and-deep-dive/">Six-stage LLMOps pipeline&lt;/a> as the reference operating procedure.&lt;/li>
&lt;/ul>
&lt;p>&lt;strong>Checklist.&lt;/strong>&lt;/p>
&lt;ul>
&lt;li>&lt;input disabled="" type="checkbox"> QMS manual written, dated, signed, versioned.&lt;/li>
&lt;li>&lt;input disabled="" type="checkbox"> Annual internal audit plan with criteria and records.&lt;/li>
&lt;li>&lt;input disabled="" type="checkbox"> Management review agenda with signed minutes.&lt;/li>
&lt;li>&lt;input disabled="" type="checkbox"> If 42001 is implemented: documented QMS-42001 mapping.&lt;/li>
&lt;/ul>
&lt;h3 id="art-26--deployer-obligations">Art. 26 — Deployer obligations&lt;/h3>
&lt;p>&lt;strong>What it requires.&lt;/strong> Whoever deploys the system (uses it under their own authority, not necessarily the developer) has obligations of their own:&lt;/p>
&lt;ul>
&lt;li>Use the system in accordance with the instructions (Art. 13).&lt;/li>
&lt;li>Assign competent, trained human oversight (Art. 14).&lt;/li>
&lt;li>Ensure the input data under their control is appropriate.&lt;/li>
&lt;li>Monitor operation and notify the provider on detecting problems or serious incidents.&lt;/li>
&lt;li>Keep the logs under their control for at least 6 months.&lt;/li>
&lt;li>Inform the affected persons when the system is used on them to make decisions (and, in an employment context, also consult their representatives).&lt;/li>
&lt;li>For some Annex III cases: complete a FRIA (Art. 27).&lt;/li>
&lt;/ul>
&lt;p>&lt;strong>The blog&amp;rsquo;s stack.&lt;/strong> In the case of the &lt;a href="https://blog.lo0.es/en/posts/anatomy-llm-request-production-tour-six-stages/">multi-tenant chatbot&lt;/a>, the deployer is the client insurer. It must:&lt;/p>
&lt;ul>
&lt;li>Accept the provider&amp;rsquo;s instructions (the consultancy&amp;rsquo;s) and sign the terms.&lt;/li>
&lt;li>Configure human oversight on its side.&lt;/li>
&lt;li>Notify the provider when it detects drift or a serious complaint.&lt;/li>
&lt;li>Keep its own logs in addition to the provider&amp;rsquo;s.&lt;/li>
&lt;/ul>
&lt;p>&lt;strong>Checklist (for the deployer).&lt;/strong>&lt;/p>
&lt;ul>
&lt;li>&lt;input disabled="" type="checkbox"> Contract with the provider covering SLAs, responsibilities, exit plan.&lt;/li>
&lt;li>&lt;input disabled="" type="checkbox"> Training programme for oversight personnel.&lt;/li>
&lt;li>&lt;input disabled="" type="checkbox"> Incident notification procedure towards the provider.&lt;/li>
&lt;li>&lt;input disabled="" type="checkbox"> Policy for informing affected persons (in the employment context, notification to representatives).&lt;/li>
&lt;li>&lt;input disabled="" type="checkbox"> FRIA where applicable.&lt;/li>
&lt;/ul>
&lt;h3 id="art-27--fundamental-rights-impact-assessment-fria">Art. 27 — Fundamental Rights Impact Assessment (FRIA)&lt;/h3>
&lt;p>&lt;strong>What it requires.&lt;/strong> Applicable to deployers that are public bodies or private entities providing public services, or that use systems to assess credit score or life insurance. Before first use, the deployer carries out a FRIA documenting:&lt;/p>
&lt;ul>
&lt;li>A description of the intended use.&lt;/li>
&lt;li>Period and frequency of use.&lt;/li>
&lt;li>Categories of affected persons.&lt;/li>
&lt;li>Specific risks of harm identified.&lt;/li>
&lt;li>Human oversight measures.&lt;/li>
&lt;li>Mitigation measures should the risks materialise.&lt;/li>
&lt;/ul>
&lt;p>The FRIA is notified to the market surveillance authority. Substantial changes force an update.&lt;/p>
&lt;p>&lt;strong>The blog&amp;rsquo;s stack.&lt;/strong> The FRIA is a governance document, not a technical artefact. The blog does not cover it directly. But the technical input is:&lt;/p>
&lt;ul>
&lt;li>The impact analyses from the &lt;a href="https://blog.lo0.es/en/posts/iso-42001-aims-on-premise-llm-platform/">ISO 42001 post, section A.5&lt;/a> are the natural starting point.&lt;/li>
&lt;li>The metrics from the &lt;a href="https://blog.lo0.es/en/posts/evals-llm-layer-after-tracing/">evals post&lt;/a> on fairness by category and groundedness feed the risk section of the FRIA.&lt;/li>
&lt;/ul>
&lt;p>&lt;strong>Checklist.&lt;/strong>&lt;/p>
&lt;ul>
&lt;li>&lt;input disabled="" type="checkbox"> FRIA procedure documented, aligned with the AIIA in ISO 42005 (published as a complement).&lt;/li>
&lt;li>&lt;input disabled="" type="checkbox"> FRIA carried out per system before first use.&lt;/li>
&lt;li>&lt;input disabled="" type="checkbox"> Notification to the market surveillance authority.&lt;/li>
&lt;li>&lt;input disabled="" type="checkbox"> Periodic review, plus on substantial change.&lt;/li>
&lt;/ul>
&lt;h3 id="art-47--eu-declaration-of-conformity">Art. 47 — EU declaration of conformity&lt;/h3>
&lt;p>&lt;strong>What it requires.&lt;/strong> The provider draws up a written declaration of conformity per high-risk system, stating:&lt;/p>
&lt;ul>
&lt;li>Identification of the system and the provider.&lt;/li>
&lt;li>A statement that it complies with Arts. 8-15 + Art. 17.&lt;/li>
&lt;li>Reference to the harmonised standards and common specifications applied.&lt;/li>
&lt;li>Where applicable, the notified body and the certificate.&lt;/li>
&lt;li>Place and date, signature and name of the authorised signatory.&lt;/li>
&lt;/ul>
&lt;p>It must be available to authorities for ten years. It is kept up to date.&lt;/p>
&lt;p>&lt;strong>The blog&amp;rsquo;s stack.&lt;/strong> A pure legal document. Template in Annex V.&lt;/p>
&lt;p>&lt;strong>Checklist.&lt;/strong>&lt;/p>
&lt;ul>
&lt;li>&lt;input disabled="" type="checkbox"> Declaration of conformity signed by an authorised person before market placement.&lt;/li>
&lt;li>&lt;input disabled="" type="checkbox"> Languages: at least the official EU language of the market where the system is placed.&lt;/li>
&lt;li>&lt;input disabled="" type="checkbox"> Re-signing procedure on substantial change.&lt;/li>
&lt;/ul>
&lt;h3 id="art-48--ce-marking">Art. 48 — CE marking&lt;/h3>
&lt;p>&lt;strong>What it requires.&lt;/strong> A high-risk system carries the CE marking visibly, legibly and indelibly. For digital systems with no physical part, the marking is included in the documentation or the interface. If a notified body was involved, its number follows.&lt;/p>
&lt;p>&lt;strong>The blog&amp;rsquo;s stack.&lt;/strong> CE marking on a software system typically materialises in:&lt;/p>
&lt;ul>
&lt;li>The product information or &amp;ldquo;About&amp;rdquo; page.&lt;/li>
&lt;li>The official product documentation delivered to the deployer.&lt;/li>
&lt;li>Metadata of the exposed API (custom HTTP header, OpenAPI info).&lt;/li>
&lt;/ul>
&lt;p>&lt;strong>Checklist.&lt;/strong>&lt;/p>
&lt;ul>
&lt;li>&lt;input disabled="" type="checkbox"> CE marking visible in the product interface or official documentation.&lt;/li>
&lt;li>&lt;input disabled="" type="checkbox"> Notified body number attached where applicable.&lt;/li>
&lt;li>&lt;input disabled="" type="checkbox"> Update procedure on substantial change.&lt;/li>
&lt;/ul>
&lt;h3 id="art-49--registration-in-the-european-database">Art. 49 — Registration in the European database&lt;/h3>
&lt;p>&lt;strong>What it requires.&lt;/strong> Before placing on the market or putting into service a high-risk Annex III system (except area 2, critical infrastructure), the provider registers it in the EU database of high-risk AI systems managed by the Commission. Deployers that are public authorities also register their use. Most registration data is public (transparency towards the public).&lt;/p>
&lt;p>&lt;strong>The blog&amp;rsquo;s stack.&lt;/strong> A pure administrative procedure. No technical part beyond having the dossier ready.&lt;/p>
&lt;p>&lt;strong>Checklist.&lt;/strong>&lt;/p>
&lt;ul>
&lt;li>&lt;input disabled="" type="checkbox"> Registration completed before first productive use.&lt;/li>
&lt;li>&lt;input disabled="" type="checkbox"> Update on substantial change.&lt;/li>
&lt;li>&lt;input disabled="" type="checkbox"> Portal access maintained (credentials, contact).&lt;/li>
&lt;/ul>
&lt;h3 id="art-50--transparency-to-end-users">Art. 50 — Transparency to end users&lt;/h3>
&lt;p>&lt;strong>What it requires.&lt;/strong> Applies to limited risk systems (and, complementarily, to some high-risk ones too):&lt;/p>
&lt;ul>
&lt;li>Chatbots and AI assistants: the person interacting must know they are talking to an AI, unless it is obvious from the context.&lt;/li>
&lt;li>Generated synthetic content (text, audio, image, video): marked as AI-generated in the output, in a machine-readable format.&lt;/li>
&lt;li>Deepfakes: explicitly declare that the content is artificially generated or manipulated.&lt;/li>
&lt;li>Emotion detectors or biometric categorisation: inform the affected persons.&lt;/li>
&lt;/ul>
&lt;p>&lt;strong>The blog&amp;rsquo;s stack.&lt;/strong> Technical materialisation:&lt;/p>
&lt;ul>
&lt;li>A UI banner in the chatbot saying &amp;ldquo;You are talking to an AI assistant&amp;rdquo;.&lt;/li>
&lt;li>A disclaimer on every exportable response (PDF, email): &amp;ldquo;Generated by AI&amp;rdquo;.&lt;/li>
&lt;li>Watermarking of the output (perplexity-based, model-fingerprint), optional but useful for deepfakes.&lt;/li>
&lt;li>For generated audio, image or video, standard C2PA metadata.&lt;/li>
&lt;/ul>
&lt;p>&lt;strong>Checklist.&lt;/strong>&lt;/p>
&lt;ul>
&lt;li>&lt;input disabled="" type="checkbox"> Mandatory UI banner.&lt;/li>
&lt;li>&lt;input disabled="" type="checkbox"> Disclaimer on exportable outputs.&lt;/li>
&lt;li>&lt;input disabled="" type="checkbox"> If it generates visual content: C2PA marking or equivalent.&lt;/li>
&lt;li>&lt;input disabled="" type="checkbox"> Procedure for use of the system on a person without their knowledge (for example, automated CV screening).&lt;/li>
&lt;/ul>
&lt;h3 id="art-53--obligations-of-gpai-providers-in-force-since-2-aug-2025">Art. 53 — Obligations of GPAI providers (in force since 2 Aug 2025)&lt;/h3>
&lt;p>&lt;strong>What it requires.&lt;/strong> Providers of GPAI (general-purpose models trained with vast compute, typically foundational: Llama 4, Mistral, DeepSeek, Qwen, Gemma) must:&lt;/p>
&lt;ul>
&lt;li>Maintain technical documentation of the model, accessible to the AI Office and national authorities.&lt;/li>
&lt;li>Make information available to downstream providers that will integrate it.&lt;/li>
&lt;li>Comply with EU copyright (Art. 4 of Directive 2019/790): an opt-out mechanism for rightsholders.&lt;/li>
&lt;li>Publish a summary of the training content (Annex XI, copyright summary).&lt;/li>
&lt;/ul>
&lt;p>If the model has systemic risk (10^25 FLOPs threshold, or designated by the Commission), additional obligations apply (Art. 55): model evaluation, adversarial testing, incident reporting, cybersecurity.&lt;/p>
&lt;p>&lt;strong>The blog&amp;rsquo;s stack.&lt;/strong> For an organisation that uses GPAI models (Llama 4, Mistral) and does not train them from scratch:&lt;/p>
&lt;ul>
&lt;li>It is not a GPAI provider; it is a downstream provider integrating GPAI into its system.&lt;/li>
&lt;li>It must hold the GPAI technical documentation (Llama paper, Mistral docs) and reference it in its own Annex IV documentation.&lt;/li>
&lt;li>Analysis of the specific GPAI licence (Llama Community License, Apache 2.0, and so on).&lt;/li>
&lt;li>The &lt;a href="https://blog.lo0.es/en/posts/modern-alignment-dpo-kto-orpo-simpo/">post on modern alignment&lt;/a> and &lt;a href="https://blog.lo0.es/en/posts/continuous-fine-tuning-production-real-traffic-deployed-adapter/">continuous fine-tuning&lt;/a> describe how a LoRA adapter on top of the GPAI does not turn the downstream party into a GPAI provider, as long as it does not train a new model from scratch.&lt;/li>
&lt;/ul>
&lt;p>&lt;strong>Checklist (downstream provider).&lt;/strong>&lt;/p>
&lt;ul>
&lt;li>&lt;input disabled="" type="checkbox"> Inventory of GPAI models used, with version, source, licence, referenced documentation.&lt;/li>
&lt;li>&lt;input disabled="" type="checkbox"> EU copyright compliance analysis (Art. 4 of Dir. 2019/790).&lt;/li>
&lt;li>&lt;input disabled="" type="checkbox"> Mapping of responsibilities between the upstream GPAI provider and us as downstream.&lt;/li>
&lt;/ul>
&lt;h3 id="art-72--post-market-monitoring">Art. 72 — Post-market monitoring&lt;/h3>
&lt;p>&lt;strong>What it requires.&lt;/strong> A documented post-market monitoring system proportionate to the risk, collecting data on performance throughout the lifecycle, including interaction with other AI systems. It allows the provider to:&lt;/p>
&lt;ul>
&lt;li>Assess continuous compliance with Arts. 8-15.&lt;/li>
&lt;li>Adopt the necessary corrective measures.&lt;/li>
&lt;li>Detect trends in real use (drift, abuse).&lt;/li>
&lt;/ul>
&lt;p>The monitoring plan is part of Annex IV and is maintained throughout the system&amp;rsquo;s life. The Commission publishes a template in 2026.&lt;/p>
&lt;p>&lt;strong>The blog&amp;rsquo;s stack.&lt;/strong>&lt;/p>
&lt;ul>
&lt;li>&lt;a href="https://blog.lo0.es/en/posts/llm-tracing-opentelemetry-genai/">OTel tracing + Langfuse&lt;/a>, the base.&lt;/li>
&lt;li>&lt;a href="https://blog.lo0.es/en/posts/evals-llm-layer-after-tracing/">Continuous evals&lt;/a>, operational metrics as online gates.&lt;/li>
&lt;li>&lt;a href="https://blog.lo0.es/en/posts/llm-as-judge-exam-marker-not-oracle/">LLM-as-judge&lt;/a>, judges over production sampling to detect degradation.&lt;/li>
&lt;li>&lt;a href="https://blog.lo0.es/en/posts/retrain-closing-the-loop-feedback-dataset-adapter/">Incident-driven retrain&lt;/a>, the closed improvement loop.&lt;/li>
&lt;/ul>
&lt;p>&lt;strong>Checklist.&lt;/strong>&lt;/p>
&lt;ul>
&lt;li>&lt;input disabled="" type="checkbox"> Post-market monitoring plan documented per system.&lt;/li>
&lt;li>&lt;input disabled="" type="checkbox"> Operational metrics defined with thresholds and periodic review.&lt;/li>
&lt;li>&lt;input disabled="" type="checkbox"> Corrective action procedure on alert.&lt;/li>
&lt;li>&lt;input disabled="" type="checkbox"> Integration with Art. 73 (when an alert equals a serious incident).&lt;/li>
&lt;/ul>
&lt;h3 id="art-73--serious-incident-reporting">Art. 73 — Serious incident reporting&lt;/h3>
&lt;p>&lt;strong>What it requires.&lt;/strong> The definition of a serious incident (Art. 3(49)):&lt;/p>
&lt;ul>
&lt;li>Death or serious harm to health.&lt;/li>
&lt;li>Serious disruption of critical infrastructure.&lt;/li>
&lt;li>Infringement of legal obligations intended to protect fundamental rights.&lt;/li>
&lt;li>Serious damage to property or the environment.&lt;/li>
&lt;/ul>
&lt;p>The provider reports to the market surveillance authority of the Member State where the incident occurred. &lt;strong>Deadlines&lt;/strong>:&lt;/p>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th>Type of incident&lt;/th>
&lt;th>Maximum deadline from becoming aware&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td>General&lt;/td>
&lt;td>15 days&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Death&lt;/td>
&lt;td>10 days&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Critical infra affected, or widespread infringement&lt;/td>
&lt;td>2 days&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;p>The first report may be preliminary; the complete one follows later. Internal investigation is mandatory, as is cooperation with the authorities. Corrective action is proportionate.&lt;/p>
&lt;p>&lt;strong>The blog&amp;rsquo;s stack.&lt;/strong> The technical flow:&lt;/p>
&lt;ul>
&lt;li>&lt;a href="https://blog.lo0.es/en/posts/llm-tracing-opentelemetry-genai/">OTel tracing&lt;/a> provides the traceability for forensic investigation.&lt;/li>
&lt;li>&lt;a href="https://blog.lo0.es/en/posts/llm-guardrails-safety-four-lines-of-defence/">Guardrails and safety&lt;/a> emits the canonical incident_event (category, severity, trace_id).&lt;/li>
&lt;li>&lt;a href="https://blog.lo0.es/en/posts/retrain-closing-the-loop-feedback-dataset-adapter/">Incident-driven retrain&lt;/a> materialises the corrective action.&lt;/li>
&lt;/ul>
&lt;p>&lt;strong>Checklist.&lt;/strong>&lt;/p>
&lt;ul>
&lt;li>&lt;input disabled="" type="checkbox"> Incident reporting procedure documented with deadlines and templates.&lt;/li>
&lt;li>&lt;input disabled="" type="checkbox"> Designated person (typically DPO + AI Risk Owner) with responsibility and training.&lt;/li>
&lt;li>&lt;input disabled="" type="checkbox"> Annual dry-run of the procedure (drill).&lt;/li>
&lt;li>&lt;input disabled="" type="checkbox"> Technical integration between the guardrails / tracing layer and the notification channel.&lt;/li>
&lt;/ul>
&lt;h2 id="the-assembled-annex-iv-dossier-svg-of-the-complete-file">The assembled Annex IV dossier: SVG of the complete file&lt;/h2>
&lt;div class="diagram" style="max-width:820px;margin:1.5rem auto;">
&lt;svg viewBox="0 0 820 480" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Annex IV dossier assembled over the blog's OSS stack">
&lt;style>
.x-sect{fill:#ffd76b;stroke:#444;stroke-width:1.4;rx:6}
.x-blog{fill:#a8e6a3;stroke:#444;stroke-width:1.4;rx:6}
.x-hdr{fill:#7aafff;stroke:#444;stroke-width:1.4;rx:8}
.x-out{fill:#ff8a4c;stroke:#444;stroke-width:1.4;rx:6}
.x-gap{fill:#f4b8b8;stroke:#444;stroke-width:1.4;rx:6}
.xl{font:600 12px sans-serif;fill:#222}
.xs{font:400 10px sans-serif;fill:#444}
.xn{font:italic 10px sans-serif;fill:#555}
&lt;/style>
&lt;rect x="20" y="20" width="780" height="40" class="x-hdr"/>
&lt;text x="410" y="42" text-anchor="middle" class="xl">Annex IV dossier (Art. 11) — nine mandatory sections + derived outputs&lt;/text>
&lt;text x="410" y="55" text-anchor="middle" class="xs">yellow = Annex IV section · green = blog artefact covering it · red = documentary gap&lt;/text>
&lt;rect x="20" y="80" width="200" height="40" class="x-sect"/>
&lt;text x="120" y="100" text-anchor="middle" class="xl">1. General description&lt;/text>
&lt;text x="120" y="114" text-anchor="middle" class="xs">purpose, version, hardware, deployer&lt;/text>
&lt;rect x="240" y="80" width="560" height="40" class="x-blog"/>
&lt;text x="520" y="100" text-anchor="middle" class="xl">Seven stack layers + seven deployment phases + request anatomy + OSS catalogue&lt;/text>
&lt;text x="520" y="114" text-anchor="middle" class="xs">complete technical description accessible to the authority&lt;/text>
&lt;rect x="20" y="130" width="200" height="40" class="x-sect"/>
&lt;text x="120" y="150" text-anchor="middle" class="xl">2. Design and development&lt;/text>
&lt;text x="120" y="164" text-anchor="middle" class="xs">architecture, base models, methods&lt;/text>
&lt;rect x="240" y="130" width="560" height="40" class="x-blog"/>
&lt;text x="520" y="150" text-anchor="middle" class="xl">Six-stage LLMOps pipeline + Continuous fine-tuning + Alignment + Multi-LoRA + Quantisation&lt;/text>
&lt;text x="520" y="164" text-anchor="middle" class="xs">architecture decisions with technical justification&lt;/text>
&lt;rect x="20" y="180" width="200" height="40" class="x-sect"/>
&lt;text x="120" y="200" text-anchor="middle" class="xl">3. Capabilities and limitations&lt;/text>
&lt;text x="120" y="214" text-anchor="middle" class="xs">accuracy, expected behaviour&lt;/text>
&lt;rect x="240" y="180" width="560" height="40" class="x-blog"/>
&lt;text x="520" y="200" text-anchor="middle" class="xl">Evals with golden sets + LLM-as-judge + F1 by category + groundedness + faithfulness&lt;/text>
&lt;text x="520" y="214" text-anchor="middle" class="xs">metrics declared and measured in CI&lt;/text>
&lt;rect x="20" y="230" width="200" height="40" class="x-sect"/>
&lt;text x="120" y="250" text-anchor="middle" class="xl">4. Data&lt;/text>
&lt;text x="120" y="264" text-anchor="middle" class="xs">datasets, sources, preparation, bias&lt;/text>
&lt;rect x="240" y="230" width="560" height="40" class="x-blog"/>
&lt;text x="520" y="250" text-anchor="middle" class="xl">Data versioning DVC + lakeFS + RAG corpus curation + Presidio + LLM Guard Vault&lt;/text>
&lt;text x="520" y="264" text-anchor="middle" class="xs">four versioned data artefacts with end-to-end lineage&lt;/text>
&lt;rect x="20" y="280" width="200" height="40" class="x-sect"/>
&lt;text x="120" y="300" text-anchor="middle" class="xl">5. Monitoring&lt;/text>
&lt;text x="120" y="314" text-anchor="middle" class="xs">metrics, traces, dashboards&lt;/text>
&lt;rect x="240" y="280" width="560" height="40" class="x-blog"/>
&lt;text x="520" y="300" text-anchor="middle" class="xl">OTel GenAI tracing + Langfuse + Prompt versioning + gen_ai.guardrail.* spans&lt;/text>
&lt;text x="520" y="314" text-anchor="middle" class="xs">per-request traceability with retention &amp;gt;= 6 months (WORM)&lt;/text>
&lt;rect x="20" y="330" width="200" height="40" class="x-sect"/>
&lt;text x="120" y="350" text-anchor="middle" class="xl">6. QMS (Art. 17)&lt;/text>
&lt;text x="120" y="364" text-anchor="middle" class="xs">quality management system procedures&lt;/text>
&lt;rect x="240" y="330" width="560" height="40" class="x-blog"/>
&lt;text x="520" y="350" text-anchor="middle" class="xl">ISO/IEC 42001 implemented (clauses 4-10) + LLMOps pipeline procedures&lt;/text>
&lt;text x="520" y="364" text-anchor="middle" class="xs">signed QMS manual + internal audit plan + management minutes&lt;/text>
&lt;rect x="20" y="380" width="200" height="40" class="x-gap"/>
&lt;text x="120" y="400" text-anchor="middle" class="xl">7. FRIA (Art. 27)&lt;/text>
&lt;text x="120" y="414" text-anchor="middle" class="xs">if public deployer / scoring applies&lt;/text>
&lt;rect x="240" y="380" width="560" height="40" class="x-gap"/>
&lt;text x="520" y="400" text-anchor="middle" class="xl">Dedicated FRIA procedure (input: A.5 ISO 42001 + fairness eval metrics)&lt;/text>
&lt;text x="520" y="414" text-anchor="middle" class="xs">governance document, not technical — it has to be written expressly&lt;/text>
&lt;rect x="20" y="430" width="200" height="40" class="x-sect"/>
&lt;text x="120" y="450" text-anchor="middle" class="xl">8. Logs (Art. 12)&lt;/text>
&lt;text x="120" y="464" text-anchor="middle" class="xs">automatic logs + retention&lt;/text>
&lt;rect x="240" y="430" width="560" height="40" class="x-blog"/>
&lt;text x="520" y="450" text-anchor="middle" class="xl">OTel tracing + Tempo / Jaeger + WORM storage + PII redaction policy&lt;/text>
&lt;text x="520" y="464" text-anchor="middle" class="xs">6+ month retention, WORM, PII redacted by LLM Guard Vault&lt;/text>
&lt;/svg>
&lt;/div>
&lt;p>The diagram shows the blog&amp;rsquo;s editorial asymmetry: seven of the nine Annex IV sections are covered directly by the technical stack. Only the FRIA (section 7) and the signed declaration of conformity (section 9, not shown in the SVG because it is a one-page document) are documentary gaps needing express administrative work. The main compliance effort is assembling and signing, not building from scratch.&lt;/p>
&lt;h2 id="applied-case-the-multi-tenant-chatbot-assessed-against-the-ai-act">Applied case: the multi-tenant chatbot assessed against the AI Act&lt;/h2>
&lt;p>We take the system from the &lt;a href="https://blog.lo0.es/en/posts/anatomy-llm-request-production-tour-six-stages/">forensic post&lt;/a>, a multi-tenant customer support chatbot for insurers, and walk through it as the provider of the system.&lt;/p>
&lt;p>Art. 6 classification: the chatbot helps customers understand products, check status and open tickets. It does not automate contractual decisions (it does not approve claims, it does not calculate premiums). Does it fall into Annex III area 8 (essential private services)? That depends on the use. If the insurer uses it only for informational support, it is limited risk (Art. 50 applies). If it uses it to assess claim declarations, it is high risk. Documenting the analysis is mandatory.&lt;/p>
&lt;p>We assume high risk for the complete walkthrough:&lt;/p>
&lt;ul>
&lt;li>&lt;strong>Art. 5 prohibitions&lt;/strong>: written statement of non-applicability. ✓&lt;/li>
&lt;li>&lt;strong>Art. 9 risk management&lt;/strong>: per-system document with identified risks (hallucination, dialect bias, PII leakage, jailbreak), applied mitigations (RAG over a curated corpus, guardrails with 4 lines, LLM Guard Vault, continuous evals) and signed accepted residuals. ✓ (input: pipeline + guardrails + evals).&lt;/li>
&lt;li>&lt;strong>Art. 10 data governance&lt;/strong>: governance of the four datasets (training adapter, insurer RAG corpus, golden eval, enriched retrain) with biases analysed, PII anonymised, lineage in place. ✓ (input: data-versioning + rag-corpus-curation + LLM Guard).&lt;/li>
&lt;li>&lt;strong>Art. 11 + Annex IV&lt;/strong>: dossier with 9 sections drafted, signed, accessible for 10 years in a WORM bucket. ✓ (7 sections from the blog, 2 new).&lt;/li>
&lt;li>&lt;strong>Art. 12 + Art. 19 logs&lt;/strong>: OTel + Tempo + Langfuse with 24-month retention, PII redacted by Vault. ✓&lt;/li>
&lt;li>&lt;strong>Art. 13 transparency to deployers&lt;/strong>: user manual for the insurer plus a technical manual. ✓ (input: OSS catalogue + request anatomy).&lt;/li>
&lt;li>&lt;strong>Art. 14 human oversight&lt;/strong>: Langfuse + Grafana dashboard, human escalation protocol for critical cases, training for the insurer&amp;rsquo;s staff. ✓&lt;/li>
&lt;li>&lt;strong>Art. 15 accuracy, robustness, cybersecurity&lt;/strong>: F1 by category declared, Promptfoo redteam adversarial suite run monthly, stack cybersecurity plan (vLLM patching, secrets rotation). ✓&lt;/li>
&lt;li>&lt;strong>Art. 17 QMS&lt;/strong>: ISO 42001 implemented and certified. ✓&lt;/li>
&lt;li>&lt;strong>Art. 26 deployer&lt;/strong>: the contract with the insurer includes the deployer&amp;rsquo;s obligations. ✓&lt;/li>
&lt;li>&lt;strong>Art. 27 FRIA&lt;/strong>: the insurer carries out a FRIA before first use (it is a private essential-service entity). ✓ (deployer&amp;rsquo;s responsibility, the provider assists).&lt;/li>
&lt;li>&lt;strong>Art. 47 declaration of conformity&lt;/strong>: signed by the consultancy&amp;rsquo;s CTO before market placement. ✓&lt;/li>
&lt;li>&lt;strong>Art. 48 CE marking&lt;/strong>: visible in the chatbot interface and in the official documentation. ✓&lt;/li>
&lt;li>&lt;strong>Art. 49 EU DB registration&lt;/strong>: completed before first productive use. ✓&lt;/li>
&lt;li>&lt;strong>Art. 50 transparency to users&lt;/strong>: UI banner &amp;ldquo;You are talking to an AI assistant&amp;rdquo;, disclaimer on exportable responses. ✓&lt;/li>
&lt;li>&lt;strong>Art. 53 GPAI&lt;/strong>: Llama 4 documentation (the base model) referenced, plus EU copyright analysis and responsibility mapping. ✓&lt;/li>
&lt;li>&lt;strong>Art. 72 post-market monitoring&lt;/strong>: documented plan, OTel + continuous evals + retrain already running. ✓&lt;/li>
&lt;li>&lt;strong>Art. 73 incident reporting&lt;/strong>: procedure, designated owner, annual dry-run. ✓&lt;/li>
&lt;/ul>
&lt;p>Result: certifiable and deployable on the EU market on 2 August 2026. The key gaps (FRIA, CE marking, EU DB registration, declaration of conformity) are documentary work over technical artefacts that already exist, not new technical projects.&lt;/p>
&lt;h2 id="penalties-art-99">Penalties (Art. 99)&lt;/h2>
&lt;p>The penalty table is proportional to worldwide turnover or to an absolute cap, whichever is higher:&lt;/p>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th>Violation&lt;/th>
&lt;th>Penalty cap&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td>Art. 5 (prohibited practices)&lt;/td>
&lt;td>Up to 35 M€ or 7% of annual worldwide turnover&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Other obligations (Arts. 8-22, 26-50, 72-73, and so on)&lt;/td>
&lt;td>Up to 15 M€ or 3% of annual worldwide turnover&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Incorrect or misleading information to authorities&lt;/td>
&lt;td>Up to 7.5 M€ or 1% of annual worldwide turnover&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;p>For SMEs and startups the caps are the lower of the two figures (not the higher). The proportionality mitigation exists but requires formal demonstration.&lt;/p>
&lt;p>In addition, national authorities can order:&lt;/p>
&lt;ul>
&lt;li>Immediate suspension of the system on the market.&lt;/li>
&lt;li>A mandatory recall.&lt;/li>
&lt;li>Mandatory public communication of the penalty.&lt;/li>
&lt;/ul>
&lt;h2 id="the-five-frequent-compliance-traps">The five frequent compliance traps&lt;/h2>
&lt;p>&lt;strong>Trap 1 — Assuming the GPAI model used already covers the obligations.&lt;/strong> The downstream provider remains responsible for the integrated system: neither Meta nor Mistral nor DeepSeek takes on the obligations of whoever builds on their models. The trap surfaces when the authority asks for the dossier and the team points at the Llama model card as if that were enough.&lt;/p>
&lt;p>&lt;strong>Trap 2 — Confusing ISO 42001 with EU AI Act conformity.&lt;/strong> Holding a 42001 certificate &lt;strong>does not imply&lt;/strong> conformity: certification is not a FRIA, not CE marking, not EU database registration, not a signed declaration of conformity. Standardisation is progressing, but until ISO 42001 is published as a harmonised standard (it was not at the end of 2025), there is no presumption of conformity. The table of legal obligations runs on its own circuit.&lt;/p>
&lt;p>&lt;strong>Trap 3 — Forgetting incident reporting within the legal deadline.&lt;/strong> Fifteen days sounds long until an incident lands in the middle of the summer holidays. Two days for critical infrastructure is not negotiable. Without a documented procedure and an annual drill, the deadline is missed in silence. A penalty for misleading information (1% of worldwide turnover) follows if the incomplete reporting is discovered.&lt;/p>
&lt;p>&lt;strong>Trap 4 — Underestimating the deployer.&lt;/strong> The AI Act assigns obligations to both the provider and the &lt;strong>deployer&lt;/strong>. A company that &lt;strong>uses&lt;/strong> a hosted LLM integrated into its service (without developing it) is still a deployer with obligations of its own (Art. 26): human oversight, FRIA where applicable, notification to affected persons. The trap surfaces when the deployer assumes that &amp;ldquo;responsibility lies with the model provider&amp;rdquo;. It does not, not entirely.&lt;/p>
&lt;p>&lt;strong>Trap 5 — Leaving the FRIA until last.&lt;/strong> The FRIA (Art. 27) requires a fundamental rights impact analysis with qualitative dimensions (discrimination, privacy, social rights). It is not an afternoon&amp;rsquo;s document. It is carried out before first use, not after a problem is detected. Public deployers and private essential-service providers who leave it for &amp;ldquo;whenever they ask&amp;rdquo; take 4-8 weeks to produce a credible one, time they typically do not have when the inspection arrives.&lt;/p>
&lt;h2 id="what-we-have-not-covered-upcoming-posts">What we have not covered (upcoming posts)&lt;/h2>
&lt;ul>
&lt;li>Concrete templates for each document: EU declaration of conformity (Annex V), full Annex IV dossier section by section, FRIA, post-market monitoring plan, initial serious incident report. Material for a post along the lines of &amp;ldquo;The EU AI Act compliance folder in 12 templates&amp;rdquo;.&lt;/li>
&lt;li>Voluntary codes of practice published by the Commission under Art. 56, useful for limited-risk systems that want to demonstrate good behaviour without a legal obligation.&lt;/li>
&lt;li>Comparative analysis of notified bodies for systems requiring third-party conformity assessment (mainly Annex I).&lt;/li>
&lt;li>How compliance changes for LLM agents, systems with graduated autonomy, tool calling and the capacity to act. SC 42 and the AI Office are working on specific guidance.&lt;/li>
&lt;li>The complete map of national authorities designated under Art. 70, plus the sectoral authorities that retain jurisdiction (AEPD for privacy, CNMV for financial services, Banco de España for banking, AESA for aviation).&lt;/li>
&lt;/ul>
&lt;h2 id="references">References&lt;/h2>
&lt;ul>
&lt;li>Regulation (EU) 2024/1689 (EU AI Act) — Texto consolidado en EUR-Lex: &lt;a href="https://eur-lex.europa.eu/eli/reg/2024/1689">https://eur-lex.europa.eu/eli/reg/2024/1689&lt;/a>. Diario Oficial L 1689/12.7.2024.&lt;/li>
&lt;li>EU AI Act Explorer (AI Act Service Desk, Comisión Europea): &lt;a href="https://ai-act-service-desk.ec.europa.eu/en/ai-act-explorer">https://ai-act-service-desk.ec.europa.eu/en/ai-act-explorer&lt;/a>.&lt;/li>
&lt;li>AI Act Text portal (artificialintelligenceact.eu): artículos individuales con anotaciones.&lt;/li>
&lt;li>Anexo IV — Technical documentation: estructura de los nueve apartados obligatorios.&lt;/li>
&lt;li>Anexo V — EU declaration of conformity: plantilla obligatoria.&lt;/li>
&lt;li>Anexo III — High-risk AI systems: las ocho áreas que clasifican un sistema como alto riesgo.&lt;/li>
&lt;li>Anexo XI — Copyright training summary template: para GPAI providers.&lt;/li>
&lt;li>NIST AI RMF 1.0 (2023) — &lt;a href="https://www.nist.gov/itl/ai-risk-management-framework">https://www.nist.gov/itl/ai-risk-management-framework&lt;/a>.&lt;/li>
&lt;li>ISO/IEC 42001:2023 — sistema de gestión, complemento facilitador.&lt;/li>
&lt;li>ISO/IEC 42005 — Impact assessment AI (publicada 2025 como guía técnica para FRIA).&lt;/li>
&lt;li>Draft Commission guidance on serious incident reporting (2025) — borrador en consulta para Art. 73.&lt;/li>
&lt;/ul>
&lt;h2 id="see-also">See also&lt;/h2>
&lt;ul>
&lt;li>
&lt;p>&lt;a href="https://blog.lo0.es/en/posts/hardening-secrets-sovereign-llm-stack-defence-in-depth/">Hardening and secrets in the sovereign LLM stack: defence in depth&lt;/a> — the technical hardening measures that back the dossier.&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;a href="https://blog.lo0.es/en/posts/iso-42001-aims-on-premise-llm-platform/">ISO/IEC 42001: the operations manual for the AI system&lt;/a> — the sister post on the management system that makes Arts. 9, 10, 11 and 17 of the Regulation easier to demonstrate.&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;a href="https://blog.lo0.es/en/posts/six-stage-llmops-pipeline-architecture-and-deep-dive/">The six-stage LLMOps pipeline&lt;/a> — the lifecycle that operationally materialises Arts. 9 (risk management) and 17 (QMS).&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;a href="https://blog.lo0.es/en/posts/anatomy-llm-request-production-tour-six-stages/">Anatomy of an LLM request in production&lt;/a> — the forensic case used as a compliance checklist in this post.&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;a href="https://blog.lo0.es/en/posts/data-versioning-llmops-dvc-lakefs-reproducible-golden-dataset/">Data versioning with DVC and lakeFS&lt;/a> and &lt;a href="https://blog.lo0.es/en/posts/rag-corpus-curation-active-librarian/">RAG corpus curation&lt;/a> — Art. 10 data governance.&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;a href="https://blog.lo0.es/en/posts/llm-tracing-opentelemetry-genai/">LLM tracing with OpenTelemetry GenAI&lt;/a> — Arts. 12 + 19 (record-keeping) with canonical OTel.&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;a href="https://blog.lo0.es/en/posts/llm-guardrails-safety-four-lines-of-defence/">Guardrails and safety in LLMs&lt;/a> — Arts. 14 (human oversight) and 15 (cybersecurity/robustness).&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;a href="https://blog.lo0.es/en/posts/llm-guard-anatomy-scanners-langfuse-vllm-litellm/">LLM Guard: the sworn translator with a book of equivalences&lt;/a> — Art. 10 + Art. 12 with PII redacted on the runtime path.&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;a href="https://blog.lo0.es/en/posts/evals-llm-layer-after-tracing/">Evals: the layer after tracing&lt;/a> — Art. 15 (accuracy) and Art. 72 (post-market monitoring).&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;a href="https://blog.lo0.es/en/posts/retrain-closing-the-loop-feedback-dataset-adapter/">Retrain: closing the feedback → dataset → adapter loop&lt;/a> — Art. 72 continuous improvement + Art. 73 corrective action after an incident.&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;a href="https://blog.lo0.es/en/posts/parallel-catalogue-llmops-stages-open-source-hyperscalers/">The parallel catalogue: OSS vs hyperscalers&lt;/a> — Art. 53 (GPAI obligations) and analysis of integrated GPAI providers.&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;a href="https://blog.lo0.es/en/posts/oss-catalogue-llmops-six-stages-tool-by-tool/">The OSS catalogue for LLMOps&lt;/a> — Art. 13 (transparency to deployers) with a complete component inventory.&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;a href="https://blog.lo0.es/en/posts/modern-alignment-dpo-kto-orpo-simpo/">Modern alignment: DPO, KTO, ORPO and SimPO&lt;/a> — responsible adapter design (Art. 9 mitigation + Art. 15 robustness).&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;a href="https://blog.lo0.es/en/posts/technical-controls-ens-iso-42001-eu-ai-act-cross-mapping/">Technical controls: the cross-mapping of ENS × ISO 42001 × EU AI Act&lt;/a> — the technical zoom into the overlap of the three frameworks. A single tracing piece, a single guardrails piece and a single versioning piece materialise the technical requirements of ENS + 42001 + AI Act simultaneously when labelled with a common vocabulary.&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;a href="https://blog.lo0.es/en/posts/incident-response-runbooks-llm-inference-kafka-keep/">Incident response runbooks for LLMs with Keep + Kafka&lt;/a> — the operationalisation of Art. 73 (reporting of serious incidents) with 2/10/15-day deadlines by severity, Keep YAML workflows and the WORM Kafka topic &lt;code>audit.actions&lt;/code> as evidence for the competent authority.&lt;/p>
&lt;/li>
&lt;/ul></description></item></channel></rss>