In 2024, a Dutch court ordered the suspension of the SyRI system, which algorithmically flagged citizens suspected of social welfare fraud. The algorithm performed effectively in a narrow technical sense: it classified cases with high precision on training data. However, it was a black box, disproportionately impacted specific demographic groups, and provided no avenue for appeal. The court ruled this a violation of human rights.
This isn’t an example of malicious intent. It’s an example of ethical responsibility treated as an external layer—something added “after” the system was completed. In 2026, with the AI Act in force and a growing number of similar rulings, such a design approach is both ethically questionable and legally risky.
Responsible AI innovation is an engineering discipline. It requires concrete decisions at the architectural level, not value statements in a footer.
What is explainability and why does it have limits
#Explainability in AI models refers to the ability to indicate why a system produced a specific recommendation or decision. In practical design, this involves three distinct questions that are easily conflated.
Mechanistic explainability asks how the model internally processes data. For neural networks, large sizes (LLMs with billions of parameters) make this a research problem, not an operational one. No one in a company will interpret transformer layers for everyday decisions.
Decision explainability asks what specific input data influenced the outcome for a given case. Tools like SHAP, LIME, or attention visualization provide useful approximations, especially for classification models on tabular data. For text-generating LLMs, quoting source fragments is possible (the RAG architecture provides this naturally).
Audit explainability asks whether it’s possible to reconstruct why the system responded the way it did at a given moment. This requires logging inputs, outputs, used contexts, and model versions—regardless of whether the internal mechanism is understood.
For most enterprise applications, audit explainability is a necessary and achievable condition. Mechanistic explainability remains an open problem. Confusing these two levels leads either to a false sense of security (claiming to understand a model that isn’t understood) or deployment paralysis (waiting for full interpretability, which won’t arrive).
The AI Act requires audit explainability for high-risk systems, not full interpretability. This is a critical distinction for companies planning deployments.
The black-box problem in enterprise applications
#The classic criticism of AI in enterprises is the “black box”: the system delivers a result, but no one knows why. In 2026, this criticism is partly outdated and partly more accurate than ever.
Outdated, because the RAG architecture with source citation solves the explainability problem for knowledge-based systems. When an AI assistant answers a legal or medical question, it can point to a specific legal provision or knowledge base article as the source. This isn’t full model interpretability, but it’s sufficient decision explainability for audits.
More accurate, because agentic models performing multi-step tasks (reservations, data analysis, document dispatch) create decision chains where each step can be logged, but reconstructing the entire decision path in case of failure is difficult. The more autonomy an agent has, the higher the logging requirements.
Three design patterns that reduce the black-box problem in practice:
- RAG with citation: The model doesn’t generate answers from memory but from specific fragments. Every response includes a trace to source documents. Legal, tax, or medical assistants should cite, not paraphrase.
- Agent decision logs: Every tool invocation by an agent (search, record modification, dispatch) is logged with context: what the input was, which tool was called, and what the result was. In case of an incident, the sequence can be reconstructed.
- Human-gate for irreversible actions: Decisions that can’t be undone (sending an email to a client, modifying a contract, registering an entry) require human confirmation. Automation without a human-gate for irreversible actions is a failure design, not a system design.
Bias and fairness: what’s a technical problem and what’s social
#Bias in AI models is a topic often either downplayed (“it’s just statistics”) or exaggerated (“AI is always biased”). Reality is more precise.
Statistical bias is the difference between a model’s estimated value and the true value. Every model has it, and it stems from training data and architecture. In itself, it’s not an ethical problem.
Discriminatory bias arises when a model systematically underperforms or negatively classifies groups defined by protected characteristics: gender, age, nationality, religion, disability. The AI Act classifies systems making decisions in employment, credit, education, or access to essential services as high-risk systems, requiring discrimination assessments before deployment.
Four questions that should be asked before any decision-system deployment:
| Question | Diagnostic Purpose |
|---|---|
| Are the training data representative of the groups the system will operate on? | Detects bias from historical data inequalities |
| Are model quality metrics reported separately for demographic groups? | Detects unequal service quality hidden in aggregates |
| Which features have the highest impact on decisions? Are they protected characteristics or their proxies? | Detects indirect discrimination (e.g., postal code as a proxy for race or social class) |
| Is there a mechanism for appealing algorithmic decisions? | AI Act requirement for high-risk systems and a general best practice |
Responsible innovation doesn’t mean abandoning decision models. It means these questions are documented before deployment and updated with every model change.
AI Act as a design framework, not a compliance checklist
#Many practitioners treat the AI Act as a burden: another list of requirements to check off before system delivery. This is an unhelpful project perspective.
The AI Act as a design framework offers a different reading: risk classification forces the question of what the system will actually do and what the consequences of failure are. The obligation to register high-risk systems enforces an inventory of what’s been deployed. The logging requirement forces the design of an audit trail from the start. The human-oversight requirement forces decisions about the limits of automation.
Three AI Act requirements that are also good engineering practices regardless of law:
System logs and documentation. The AI Act requires storing logs automatically generated by high-risk systems. Even without this requirement: an AI system without logs is a system that can’t be debugged or audited after an incident.
Transparency toward users. Systems interacting with humans (chatbots, assistants, recommendation systems) must be identifiable as AI. This isn’t just a legal requirement—users who know they’re interacting with a model have different and more accurate expectations about errors and limitations.
Conformity assessment before deployment. High-risk systems require a formal assessment before market introduction. For other systems, an internal risk assessment (analogous to DPIA under GDPR) is good practice, as it reveals gaps before incidents do.
Legal obligations and AI Act deadlines for Polish companies are discussed in detail in the article AI Act and GDPR 2026: company obligations.
Guardrails: technical implementation of ethical constraints
#Guardrails are mechanisms that control AI model behavior: what it can say, which questions it answers, and what actions it performs. They are the technical implementation of ethical constraints.
Without guardrails, language models tend toward so-called hallucinations (generating confident answers to questions they lack data for), straying beyond scope, susceptibility to prompt injection, and repeating patterns from training data that may be biased or outdated.
Guardrails are implemented across several layers:
Input layer: Filtering out-of-scope queries, detecting manipulation attempts (injection), verifying whether the query contains personal data that should be masked before reaching the model.
Retrieval layer (in RAG architecture): Limiting sources to a verified knowledge base, setting a retrieval confidence threshold—if the system doesn’t find a sufficiently matching fragment, it should say “I don’t know” instead of generating an answer from model memory.
Generation layer: System instructions defining role, scope, and limitations; model temperature adjusted to the task (low for precision tasks, higher for creative ones).
Output layer: Verifying the generated response before returning it to the user—checking format, scope, and the presence of restricted information.
More advanced protection mechanisms for agentic systems are discussed in the article AI agent security.
Human-in-the-loop: where needed, where unnecessary
#Human-in-the-loop is a pattern where a human participates in the AI system’s decision loop. It’s often treated as the default solution for any ethical risk: “add a human.” This is a design error.
A human in the loop without the right tools, time, or competence to assess decisions doesn’t increase safety—it creates an illusion of oversight. An operator approving 200 algorithmic decisions per hour can’t realistically evaluate each one.
The productive question isn’t “should we add a human” but “where is the automation boundary.” A useful heuristic:
- Automation without oversight: Repetitive, low-risk, highly predictable tasks (data extraction from structured documents, classification by clear rules, notifications).
- Human-in-the-loop: Decisions with consequences for individuals, where errors can be detected and corrected before execution (customer offer recommendations, response drafts for complaint approval, escalation from assistant to consultant).
- Human-on-the-loop: The system operates autonomously, but a human monitors and can intervene (anomaly monitoring, alerts for analysis).
- Human-only decision: Irreversible, high-risk actions or those requiring ethical judgment the system can’t provide (employee termination decisions, denial of medical service, legal case assessments with precedent).
The AI Act refers to this last level as human-oversight and explicitly requires it for high-risk systems. In designing agentic systems, it’s worth defining these levels at the architecture stage, not post-factum.
Data and privacy: GDPR as good engineering
#GDPR is often treated like the AI Act: a list of constraints to bypass or minimally comply with. For AI systems, a technical approach yields better results.
The data minimization principle (collecting only what’s necessary) is also good engineering practice: a smaller dataset is cheaper to maintain, easier to audit, and less prone to leaks. PII in a RAG index isn’t just a legal risk—it’s the risk that the model will use personal data in contexts where it shouldn’t.
Four practices that combine GDPR compliance with AI system quality:
Masking PII before embedding. Personal data in assistant queries (names, phone numbers, addresses) should be masked locally before the query reaches the model or vector search. This doesn’t just protect privacy—it removes noise from the index, improving retrieval quality.
Limited log retention time. Conversation logs are essential for audits and system improvement but should have a defined retention period. Perpetual logging without a deletion policy creates growing leak risks.
Right to erasure in RAG systems. When a user requests data deletion (Art. 17 GDPR), the RAG system must remove not only records from relational databases but also vectors from the vector index. The architecture should support this from the design stage, not as a later modification.
DPIA for systems processing sensitive data. AI systems processing health, financial, or children’s data require a data protection impact assessment before deployment. This isn’t just a legal requirement—DPIA systematizes risk analysis in a way that’s useful regardless of formal obligations.
For companies in finance, legal, or healthcare sectors, self-hosting models may be worth considering to eliminate data leak risks via external APIs. Technical and legal details of this approach are discussed in the article self-hosted LLM and GDPR.
Try it live
#Describe the AI system you plan to deploy or are already operating. The model will identify potential ethical and legal risks and suggest concrete architectural remedies (playground: PII masked, zero retention):
FAQ
#Does responsible AI innovation mean slower deployments?
#Not by definition, but irresponsible AI innovation often leads to deployments that must be halted or rebuilt after the first incidents. Guardrails, logging, and human-gates designed from the start are cheaper than adding them post-factum to a running system that’s already caused problems. The costs of irresponsible deployment (security incidents, GDPR violations, discriminatory decisions) are hard to estimate upfront but well-documented in legal literature. The article where to start with AI deployment explains how to account for these aspects during pilot planning.
Which AI systems are classified as high-risk under the AI Act?
#The AI Act defines high-risk systems by two criteria: application category and potential impact on fundamental rights. High-risk categories include systems used in recruitment and employee management, creditworthiness assessment, access to education, essential services, border control, and justice. Systems in these areas require registration in the EU database, technical documentation, logging, human-oversight, and conformity assessment before deployment. A detailed overview with examples of Polish applications is available in the article AI Act: high-risk systems.
How to limit model hallucinations in systems where accuracy is critical?
#The RAG architecture with source citation is the foundational tool. The model answers based on specific knowledge base fragments, not parametric memory, and every response includes a source trace. Additional mechanisms include: retrieval confidence threshold (refusing to answer when context is insufficient), model temperature adjusted to the task (low for precision tasks), output format and scope verification in the guardrails layer, and regular regression tests on a set of questions with expected answers. Methodologies for limiting hallucinations are discussed in detail in the article how to limit AI hallucinations.
Do small companies have to comply with the AI Act?
#The AI Act applies to companies that introduce AI systems to the EU market or use them in the EU—regardless of company size. Obligations depend on the role: the system provider (the company building or deploying the system) has different responsibilities than the deployer using a system purchased from an external provider. Small companies using off-the-shelf AI tools (assistants, chatbots from external providers) are deployers and have fewer formal obligations, though they remain responsible for how the system is used. A company building an AI system for a client or its own needs in high-risk categories has full provider obligations. The process readiness assessment and agent blueprint help identify which category a planned deployment falls into.
How to conduct a DPIA for an AI system?
#DPIA (Data Protection Impact Assessment) is a structured analysis of risks related to personal data processing. For an AI system, it includes: describing the system and data flow (what’s processed, by whom, for how long), assessing necessity and proportionality (whether the purpose requires such data scope), identifying risks to individuals’ rights (access, erroneous decisions, leaks, discrimination), and remedies for each risk. DPIA is required when processing is systematic and large-scale, involves sensitive data, or includes automated decision-making with significant consequences for individuals. The agent blueprint tool guides through key design questions that serve as a starting point for DPIA.