Engineering AI Agents & Web Apps for EU EAA (WCAG 2.2 AA), NIS2 Supply-Chain Integrity & GDPR Zero-PII in 2026
For engineering teams shipping web applications and AI agent infrastructure into European Union markets in late 2026, three regulatory mandates now intersect directly inside pull requests and CI pipelines rather than com
For engineering teams shipping web applications and AI agent infrastructure into European Union markets in late 2026, three regulatory mandates now intersect directly inside pull requests and CI pipelines rather than compliance checklists:
-
European Accessibility Act (
EAA, Directive(EU) 2019/882/EN 301 549/WCAG 2.2 Level AA): Actively enforced across e-commerce, banking, SaaS portals, and embedded AI assistant widgetsโwhere streaming DOM mutations and compact toolbars routinely break keyboard focus and pointer geometry. -
NIS2 (
Directive (EU) 2022/2555, Article 21(2)(d) Supply-Chain Security): Requires cryptographic provenance and vulnerability governance across executable third-party components, which now includes local.mcpb v0.3MCP bundles and cross-vendor A2Av1.0.1agent endpoints. -
EU AI Act (
Regulation (EU) 2024/1689, Article 15) & GDPR (Article 25): Require reproducible robustness testing against prompt injection / confused-deputy escalation alongside strictzero_pii: truetelemetry minimization.
Below are the concrete, deterministic engineering controls, Playwright geometry assertions, CLI lockfile gates, and GitHub Code Scanning (SARIF v2.1.0) workflows we use in production.
1. Deterministic EU EAA (WCAG 2.2 Level AA) Controls for AI & Web Interfaces
Running static axe-core rules catches missing alt attributes and basic color contrast, yet routinely misses the three behavioral WCAG 2.2 AA defects most common in modern AI chat Docks, command palettes, and SaaS dashboards:
| WCAG 2.2 / EN 301 549 Criterion | Common Failure in 2026 Web & AI UIs | Deterministic Engineering Fix |
|---|---|---|
2.4.11 Focus Not Obscured (Minimum) [AA] & 2.4.13 Focus Appearance
|
Sticky top navbars, GDPR consent bars, or floating "Ask AI" docks overlap focused buttons when tabbing backward (Shift+Tab). |
Set scroll-padding-top / scroll-padding-bottom on the scroll container to match sticky chrome heights, plus outline: 2px solid with outline-offset: 2px (>= 3:1 contrast). |
2.5.8 Target Size (Minimum) [AA] |
Compact icon-only controls (Copy code, Regenerate, Approve MCP tool, modal ร) render at 16ร16 or 20ร20 CSS px with zero spacing. |
Enforce min-inline-size: 24px; min-block-size: 24px (or >= 24px center-to-center spacing offset) on every interactive hit target. |
4.1.2 / ARIA Listbox & Dialog Traps |
Streaming token updates trigger aria-live="assertive" spam on every chunk, or <div role="dialog"> tool-confirmation modals swallow Escape and fail to restore focus to the opener button. |
Announce streaming status via throttled aria-live="polite" regions, use native <dialog> (or aria-modal="true" with deterministic Escape + opener focus restoration), and bind aria-activedescendant cleanly in /-command listboxes. |
Baseline CSS Guardrail + Playwright Geometry & Occlusion Test
Pair explicit CSS focus/hit-target tokens with a deterministic Playwright E2E check that measures real rendered bounding boxes (>= 24ร24 CSS px) and verifies via document.elementFromPoint() that sticky overlays never occlude the active keyboard element:
:root {
--sticky-header-h: 64px;
--floating-composer-h: 96px;
}
html {
scroll-padding-top: calc(var(--sticky-header-h) + 12px);
scroll-padding-bottom: calc(var(--floating-composer-h) + 16px);
}
:where(button, a[href], input, select, textarea, summary, [role="button"], [role="option"]) {
min-inline-size: 24px;
min-block-size: 24px;
}
:focus-visible {
outline: 2px solid #0ea5e9;
outline-offset: 2px;
}
// tests/e2e/eaa-wcag22-geometry.spec.js
import { test, expect } from "@playwright/test";
test("WCAG 2.2 AA 2.5.8 target size >= 24x24px & 2.4.11 focus not obscured", async ({ page }) => {
await page.goto("http://127.0.0.1:4173/");
// 1. Verify WCAG 2.5.8 minimum 24x24 CSS px target geometry across visible controls
const undersized = await page.evaluate(() => {
const sel = 'button, a[href], input:not([type="hidden"]), [role="button"], [role="tab"]';
return Array.from(document.querySelectorAll(sel))
.filter((el) => {
const style = window.getComputedStyle(el);
const rect = el.getBoundingClientRect();
return style.display !== "none" && style.visibility !== "hidden" && rect.width > 0 && rect.height > 0;
})
.filter((el) => {
const r = el.getBoundingClientRect();
return r.width < 23.95 || r.height < 23.95;
})
.map((el) => ({ tag: el.tagName, text: (el.innerText || el.getAttribute("aria-label") || "").slice(0, 30) }));
});
expect(undersized).toEqual([]);
// 2. Tab through interactive elements and verify WCAG 2.4.11 non-occlusion at element center
for (let step = 0; step < 12; step += 1) {
await page.keyboard.press("Tab");
const occluded = await page.evaluate(() => {
const active = document.activeElement;
if (!active || active === document.body) return false;
const r = active.getBoundingClientRect();
const cx = r.left + r.width / 2;
const cy = r.top + r.height / 2;
const topHit = document.elementFromPoint(cx, cy);
return Boolean(topHit && !active.contains(topHit) && !topHit.contains(active));
});
expect(occluded).toBe(false);
}
});
2. NIS2 Supply-Chain Integrity for .mcpb v0.3 Bundles & A2A v1.0.1 Agents
Under NIS2 Article 21(2)(d), essential and important European entities must verify the integrity and vulnerability posture of direct software suppliers and toolchains. In an agentic stack, two supply-chain surfaces bypass traditional Docker/SBOM scanners completely:
-
Dynamic MCP
tools/list&.mcpb v0.3Desktop Bundles: Unpinned remote MCP servers can silently flipannotations.readOnlyHint: true -> falseor inject invisible Plane-14 Unicode Tags (U+E0000..U+E007F) into nestedoutputSchema.$defsafter initial security review. -
Commit-Mapped A2A SDK CVEs & Unsigned
AgentCardDiscovery: Several 2026 advisories across officiala2aproject/*SDKs (CVE-2026-90790Python webhook SSRF,CVE-2026-118128JS Task FSM race,CVE-2026-111761..111765Java SSRF/IDOR/redirect token leaks) map to git commits in OSV rather than package versions, slipping pastpip-auditandnpm audit. Meanwhile, unsigned or ProtoJSON-smuggled (S4-REJECT-005)/.well-known/agent-card.jsonendpoints allow untrusted capability injection.
We open-sourced mcp-tool-guard v0.7.0 (dependencies = [], Python 3.10+ pure stdlib, MITโzero transitive supply-chain dependencies of its own) to enforce all three NIS2 controls deterministically:
# 1. Pin full-envelope RFC 8785 JCS SHA-256 hashes of MCP tools (including annotations & outputSchema)
uvx --from https://github.com/khoap1220-hue/mcp-tool-guard/releases/download/v0.7.0/mcp_tool_guard-0.7.0-py3-none-any.whl \
mcp-tool-guard pin examples/tools_v1.json --server billing-mcp -o mcp-pins.lock.json
# Fail CI (exit code 2) + emit OASIS SARIF v2.1.0 on post-approval schema/annotation drift or poisoning
uvx --from https://github.com/khoap1220-hue/mcp-tool-guard/releases/download/v0.7.0/mcp_tool_guard-0.7.0-py3-none-any.whl \
mcp-tool-guard verify examples/tools_v2_rugpull.json --server billing-mcp -l mcp-pins.lock.json --sarif-out mcp-drift.sarif
# 2. Scan 9 lockfile formats (uv.lock, package-lock.json, pnpm-lock.yaml, go.mod, Cargo.lock, pom.xml) for all 11 A2A SDK CVEs
uvx --from https://github.com/khoap1220-hue/mcp-tool-guard/releases/download/v0.7.0/mcp_tool_guard-0.7.0-py3-none-any.whl \
a2a-card-guard sca . --format json
# 3. Verify live A2A v1.0.1 AgentCard RFC 8785 JCS + Ed25519 JWKS signature & S4-REJECT-005 compliance
uvx --from https://github.com/khoap1220-hue/mcp-tool-guard/releases/download/v0.7.0/mcp_tool_guard-0.7.0-py3-none-any.whl \
a2a-card-guard audit https://khoaphan.dev --auto-jwks --strict-v1
3. EU AI Act Art. 15 Robustness Benchmarking (SARIF v2.1.0) & GDPR zero_pii: true Telemetry
EU AI Act Article 15 requires technical documentation demonstrating resilience against adversarial manipulationโsuch as indirect prompt injection, confused-deputy privilege escalation across multi-agent hops, and malformed protocol payloads.
Drop-In GitHub Action (khoap1220-hue/a2a-iq-mcp@v2)
Our composite GitHub Action runs offline in < 2s with zero external API keys, grading your repository's /.well-known/agent-card.json and .mcpb v0.3 bundle across 8 deterministic protocol security dimensions (IQ 60โ160) and uploading OASIS SARIF v2.1.0 artifacts directly into GitHub Security / Code Scanning for audit trails:
name: EU NIS2 & AI Act Art. 15 Security Gate
on:
push:
branches: [main]
pull_request:
permissions:
contents: read
security-events: write
jobs:
agent-robustness-audit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run Deterministic A2A v1.0.1 & .mcpb v0.3 Robustness Gate
uses: khoap1220-hue/a2a-iq-mcp@v2
with:
card: ".well-known/agent-card.json"
mcpb: "dist/mcp-tool-guard.mcpb"
min-iq: "140"
sarif-out: "a2a-iq-results.sarif"
- name: Archive SARIF v2.1.0 Evidence to GitHub Code Scanning
if: always()
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: a2a-iq-results.sarif
GDPR Article 25 Data Minimization (zero_pii: true Edge Pattern)
When operating public A2A discovery nodes, MCP gateways, or benchmark endpoints serving EU users, GDPR Article 5(1)(c) and Article 25 (Data Protection by Design and by Default) make storing raw IP addresses, browser fingerprints, or tracking cookies an unnecessary liability.
In our live stateless edge node (https://a2a-live-node.p-khoa90.workers.dev), we enforce four hard zero_pii: true invariants at the ingress boundary:
-
Zero IP / Cookie Persistence: Never read
CF-Connecting-IPorX-Forwarded-Forinto storage, and never emitSet-Cookie. -
Stateless HMAC-SHA256 Session Tokens: Issue short-lived (
2hTTL) signed challenge tokens rather than user-linked database rows. -
Aggregate Country-Only Counters: Increment coarse ISO-3166-1 alpha-2 counters (
EU,HU,BE,NL,DE) withk-anonymity rather than per-visitor event streams. - DLP Payload Scrubbing Before Persistence: Reject or redact accidental Bearer tokens, PEM keys, and Luhn payment card strings before writing any task state.
You can verify the live zero_pii: true attestation and signed A2A v1.0.1 node headers directly from your terminal:
curl -sS https://a2a-live-node.p-khoa90.workers.dev/health
Open-Source Tools & Reference Documentation
- Open A2A v1.0.1 & MCP Engineering Encyclopedia (6 Chapters): https://khoaphan.dev/a2a-wiki/
-
mcp-tool-guard&a2a-card-guard(v0.7.0, MIT,0deps): https://github.com/khoap1220-hue/mcp-tool-guard -
a2a-iq-mcp& SARIFv2.1.0GitHub Action (@v2, MIT,0deps): https://github.com/khoap1220-hue/a2a-iq-mcp - Client-Side Browser Ed25519 JCS Validator & IQ Lab: https://khoaphan.dev/a2a-iq/
Author note: I'm an independent Principal Systems & Protocol Security Engineer (32+ merged upstream OSS PRs across Python, Rust, Go, and TypeScript). We deliver fixed-scope, CET/GMT-compatible 100% written asynchronous EAA WCAG 2.2 AA, NIS2 MCP/A2A supply-chain hardening, and deterministic webhook sprints (Email & GitHub Specs/PRs, zero live meetings) with upfront Code-First PoCs at khoaphan.dev/services.
Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes โ full credit and traffic to the original publisher.