Some checks failed
Build + Deploy / build-admin-compliance (push) Successful in 1m45s
Build + Deploy / build-backend-compliance (push) Successful in 4m42s
Build + Deploy / build-ai-sdk (push) Successful in 46s
Build + Deploy / build-developer-portal (push) Successful in 1m6s
Build + Deploy / build-tts (push) Successful in 1m14s
Build + Deploy / build-document-crawler (push) Successful in 31s
Build + Deploy / build-dsms-gateway (push) Successful in 24s
CI / branch-name (push) Has been skipped
CI / guardrail-integrity (push) Has been skipped
CI / loc-budget (push) Failing after 15s
CI / secret-scan (push) Has been skipped
CI / go-lint (push) Has been skipped
CI / python-lint (push) Has been skipped
CI / nodejs-lint (push) Has been skipped
CI / nodejs-build (push) Successful in 2m27s
CI / dep-audit (push) Has been skipped
CI / sbom-scan (push) Has been skipped
CI / test-go (push) Failing after 37s
CI / test-python-backend (push) Successful in 42s
CI / test-python-document-crawler (push) Successful in 25s
CI / test-python-dsms-gateway (push) Successful in 23s
CI / validate-canonical-controls (push) Successful in 18s
Build + Deploy / trigger-orca (push) Successful in 4m35s
Neues Modul das den regulatorischen Spielraum fuer KI-Use-Cases deterministisch berechnet und optimale Konfigurationen vorschlaegt. Kernfeatures: - 13-Dimensionen Constraint-Space (DSGVO + AI Act) - 3-Zonen-Analyse: Verboten / Eingeschraenkt / Erlaubt - Deterministische Optimizer-Engine (kein LLM im Kern) - 28 Constraint-Regeln aus DSGVO, AI Act, EDPB Guidelines - 28 Tests (Golden Suite + Meta-Tests) - REST API: /sdk/v1/maximizer/* (9 Endpoints) - Frontend: 3-Zonen-Visualisierung, Dimension-Form, Score-Gauges [migration-approved] Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
75 lines
2.7 KiB
TypeScript
75 lines
2.7 KiB
TypeScript
'use client'
|
|
|
|
import { ZoneBadge } from './ZoneBadge'
|
|
|
|
interface ZoneInfo {
|
|
dimension: string
|
|
current_value: string
|
|
zone: 'FORBIDDEN' | 'RESTRICTED' | 'SAFE'
|
|
allowed_values?: string[]
|
|
forbidden_values?: string[]
|
|
safeguards?: string[]
|
|
reason: string
|
|
obligation_refs: string[]
|
|
}
|
|
|
|
const DIMENSION_LABELS: Record<string, string> = {
|
|
automation_level: 'Automatisierungsgrad',
|
|
decision_binding: 'Entscheidungsbindung',
|
|
decision_impact: 'Entscheidungswirkung',
|
|
domain: 'Branche',
|
|
data_type: 'Datensensitivitaet',
|
|
human_in_loop: 'Menschliche Kontrolle',
|
|
explainability: 'Erklaerbarkeit',
|
|
risk_classification: 'Risikoklasse',
|
|
legal_basis: 'Rechtsgrundlage',
|
|
transparency_required: 'Transparenzpflicht',
|
|
logging_required: 'Protokollierung',
|
|
model_type: 'Modelltyp',
|
|
deployment_scope: 'Einsatzbereich',
|
|
}
|
|
|
|
export function DimensionZoneTable({ zoneMap }: { zoneMap: Record<string, ZoneInfo> }) {
|
|
const dimensions = Object.entries(zoneMap).sort(([, a], [, b]) => {
|
|
const order = { FORBIDDEN: 0, RESTRICTED: 1, SAFE: 2 }
|
|
return (order[a.zone] ?? 2) - (order[b.zone] ?? 2)
|
|
})
|
|
|
|
return (
|
|
<div className="overflow-x-auto">
|
|
<table className="min-w-full divide-y divide-gray-200">
|
|
<thead className="bg-gray-50">
|
|
<tr>
|
|
<th className="px-4 py-2 text-left text-xs font-medium text-gray-500 uppercase">Dimension</th>
|
|
<th className="px-4 py-2 text-left text-xs font-medium text-gray-500 uppercase">Aktueller Wert</th>
|
|
<th className="px-4 py-2 text-left text-xs font-medium text-gray-500 uppercase">Zone</th>
|
|
<th className="px-4 py-2 text-left text-xs font-medium text-gray-500 uppercase">Regelgrund</th>
|
|
<th className="px-4 py-2 text-left text-xs font-medium text-gray-500 uppercase">Rechtsgrundlage</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody className="bg-white divide-y divide-gray-200">
|
|
{dimensions.map(([dim, info]) => (
|
|
<tr key={dim} className={info.zone === 'FORBIDDEN' ? 'bg-red-50' : info.zone === 'RESTRICTED' ? 'bg-yellow-50' : ''}>
|
|
<td className="px-4 py-2 text-sm font-medium text-gray-900">
|
|
{DIMENSION_LABELS[dim] || dim}
|
|
</td>
|
|
<td className="px-4 py-2 text-sm text-gray-600 font-mono">
|
|
{info.current_value}
|
|
</td>
|
|
<td className="px-4 py-2">
|
|
<ZoneBadge zone={info.zone} />
|
|
</td>
|
|
<td className="px-4 py-2 text-sm text-gray-600">
|
|
{info.reason || '-'}
|
|
</td>
|
|
<td className="px-4 py-2 text-sm text-gray-500">
|
|
{info.obligation_refs?.join(', ') || '-'}
|
|
</td>
|
|
</tr>
|
|
))}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
)
|
|
}
|