Članci s tagom #aiact
-
EU AI Act compliance scoring in PHP: per-system Article 9-15 automated evaluation
ComplianceScorer: 10 declarative rule types evaluated against aiact_systems row, articles loaded from aiact-articles.json, weighted average (Art. 11+14=1.5×, Art. 43+47=0.5×), 60s cache with aiact:score: prefix, gap analysis with worst-5-articles, updateSystemScore() auto-triggered from lifecycle write paths.
-
FRIA in PHP: implementing the EU AI Act Fundamental Rights Impact Assessment
AiActFriaWizardController: 6-step FRIA (step 0=DPIA auto-prefill via FriaDpiaBridge, steps 1-6=deployer type/rights/groups/severity/mitigation/monitoring+submit), 12 fundamental rights from EU Charter, 13 affected groups, review_due_date annual cycle, GDPR DPIA cross-link via gdpr_dpia_id, compliance score auto-recomputed on submit.
-
EU AI Act Article 5 runtime safeguards in PHP: blocking prohibited AI practices at the HTTP layer
ProhibitedSafeguardGate: two-tier check (risk_category=prohibited OR runtime_blocked=1), fail-open on missing DB (no DoS of legit traffic), evidence write to aiact_logs_evidence + aiact.prohibited_attempt event + ProhibitedSystemBlocked exception (HTTP 403). AIACT_PROHIBITED_SAFEGUARD_ENABLED env switch. Name lookup tenant-scoped via currentCompanyId().
-
PHP AST scanning with PhpToken: auto-discovering AI systems in your codebase
AiSystemAstScanner: two detection signals (extends AgentDefinition, implements ToolInterface + AI service in ctor), str_contains pre-filter (~100x cheaper than tokenization), PhpToken::tokenize() namespace+use-alias resolution, per-tenant moduli filter, AI_SERVICE_FQNS whitelist with 6 service classes, per-file try/catch.
-
EU AI Act compliance in PHP: a built-in registry with codebase auto-discovery
AIactRegistry: two-tier AI system auto-discovery (hardcoded curated + AST sweep via PhpToken), Art. 4 literacy tracking, Art. 5 runtime prohibited-practices safeguard at HTTP priority 28, Art. 27 FRIA wizard, Art. 71 EU database export, Art. 72 post-market monitoring, Art. 73 serious incident reporting with NIS2 cross-link. No separate compliance SaaS needed.