cd /news/ai-agents/engineering-ai-agents-web-apps-for-e… · home › topics › ai-agents › article
[ARTICLE · art-182404] src=dev.to ↗ pub= topic=ai-agents verified=true sentiment=· neutral

Engineering AI Agents & Web Apps for EU EAA (WCAG 2.2 AA), NIS2 Supply-Chain Integrity & GDPR Zero-PII in 2026

An engineering team published a set of deterministic controls for meeting EU accessibility, cybersecurity and privacy mandates in web apps and AI agent infrastructure, targeting the European Accessibility Act (Directive (EU) 2019/882, EN 301 549, WCAG 2.2 AA), NIS2 supply-chain security (Directive (EU) 2022/2555, Article 21(2)(d)), and GDPR zero-PII requirements. The approach pairs CSS focus and hit-target tokens with Playwright end-to-end assertions that measure rendered bounding boxes of at least 24x24 CSS pixels and use document.elementFromPoint() to confirm sticky overlays never obscure the focused element, plus CLI lockfile gates and GitHub Code Scanning SARIF workflows. The team says static axe-core rules miss three behavioral WCAG 2.2 AA defects common in AI chat docks, command palettes and dashboards: focus obscured by sticky chrome, undersized icon-only controls, and broken ARIA listbox and dialog focus handling.

recommendation

Add Playwright geometry assertions to CI that flag any visible control under 24x24 CSS px and verify with document.elementFromPoint() that sticky chrome does not occlude the focused element.

more in playbook: Evals and testing for LLM apps
by read6 min views1 publishedDec 5, 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 compliance checklists:

EAA, Directive (EU) 2019/882 / EN 301 549 / WCAG 2.2 Level AA): Directive (EU) 2022/2555, Article 21(2)(d) Supply-Chain Security):.mcpb v0.3`` v1.0.1``Regulation (EU) 2024/1689, Article 15) & GDPR ( Article 25): zero_pii: true telemetry 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.

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, plusoutline: 2px solid withoutline-offset: 2px (>= 3:1 contrast).
2.5.8 Target Size (Minimum) [AA] Compact icon-only controls ( Copy code ,Regenerate ,Approve MCP tool , modal× ) render at16×16 or20×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 swallowEscape and fail to restore focus to the opener button. Announce streaming status via throttled aria-live="polite" regions, use native<dialog> (oraria-modal="true" with deterministicEscape + opener focus restoration), and bindaria-activedescendant cleanly in/ -command listboxes.

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;
}
js
// 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);
  }
});

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:

tools/list & annotations.readOnlyHint: true -> false or inject invisible Plane-14 Unicode Tags (U+E0000..U+E007F) into nested outputSchema.$defs after initial security review.AgentCard Discovery:a2aproject/* SDKs (CVE-2026-90790 Python webhook SSRF, CVE-2026-118128 JS Task FSM race, CVE-2026-111761..111765 Java SSRF/IDOR/redirect token leaks) map to git commits in OSV rather than package versions, slipping past pip-audit and npm audit. Meanwhile, unsigned or ProtoJSON-smuggled ( S4-REJECT-005) /.well-known/agent-card.json endpoints 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:

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

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

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

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

SARIF v2.1.0) & GDPR 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.

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 up 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

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:

CF-Connecting-IP or X-Forwarded-For into storage, and never emit Set-Cookie. 2h TTL) signed challenge tokens rather than user-linked database rows.EU, HU, BE, NL, DE) with k-anonymity rather than per-visitor event streams. 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

mcp-tool-guard & a2a-card-guard (v0.7.0, MIT, 0 deps):a2a-iq-mcp & SARIF v2.1.0 GitHub Action (@v2, MIT, 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.

── more in #ai-agents 4 stories · sorted by recency
── more on @european union 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/engineering-ai-agent…] indexed:0 read:6min 2026-12-05 · —