AcademyAML Compliance
Programmable Compliance in DeFi: When Regulation Moves On-Chain
Author
Natalia Latka
Natalia Latka
Head of Regulatory Affairs
Sommaire
IN THIS ARTICLE
AML Compliance
10/8/2025
.
X
min

Programmable Compliance in DeFi: When Regulation Moves On-Chain

Natalia Latka
Written by
Natalia Latka
Programmable Compliance in DeFi: When Regulation Moves On-Chain

What Is DeFi — and Why It Defies Regulation

For years, regulators built their frameworks around identifiable intermediaries — banks, brokers, and service providers that hold assets, process transactions, and assume responsibility for the outcomes. DeFi breaks that logic.

Decentralized finance is not one technology, nor one business model. It’s a spectrum of systems that replicate financial functions — lending, trading, custody, settlement — through self-executing code on distributed ledgers. In place of contractual relationships between counterparties, DeFi substitutes programmable logic.

In other words: the more a system decentralizes, the harder it becomes to map its moving parts to the existing regulatory categories of “issuer,” “operator,” or “service provider.” Yet the more a system retains identifiable control points — governance multisigs, admin keys, or fee-collecting foundations — the less it can claim to be outside regulation.

DeFi therefore doesn’t just test the boundaries of financial law; it tests its architecture. Traditional rules were built for intermediaries. DeFi is built to remove them.

Personhood in DeFi: The Search for Accountability in a System Without Faces

At the core of every regulatory framework lies a simple assumption: that behind every service, there is a person — natural or legal — who can be identified, supervised, and held accountable. DeFi unsettles that assumption.

Protocols operate through code, governed by dispersed communities, maintained by pseudonymous developers, and accessed through permissionless interfaces. When something goes wrong — a smart contract exploit, a mispriced oracle, or a governance attack — the question regulators inevitably ask is: who is responsible?

That question is what the International Organization of Securities Commissions (IOSCO) calls personhood in DeFi. In its 2023 report on decentralized finance, IOSCO argued that while protocols may appear autonomous, they are never self-originating. Code does not deploy itself; liquidity pools do not appear spontaneously; parameters do not update without someone’s signature.

Every DeFi system, no matter how distributed, is built and maintained by identifiable human actors — those who design the protocol, hold admin keys, run governance proposals, or operate front-end interfaces. IOSCO’s position is that these individuals and entities constitute the responsible persons of the ecosystem — and therefore can fall within the perimeter of regulatory accountability.

This concept reframes decentralization not as a shield, but as a spectrum of control and responsibility. The more direct influence someone exercises over a protocol’s functioning — whether through development, governance, or treasury management — the stronger the argument that they are a “person” under financial law.

Personhood, then, becomes the bridge regulators use to connect DeFi to the legal system. It is how a supposedly autonomous network re-enters the realm of liability and supervision. And it marks the frontier where decentralization stops being a technological state, and starts becoming a legal question.

Decentralization as a Spectrum, Not a State

In regulatory theory, decentralization is often spoken of as if it were binary — either a system is decentralized, or it is not. In reality, it is neither static nor absolute. It is a spectrum, and almost every DeFi protocol moves along it over time.

Regulators across jurisdictions — from the U.S. Commodity Futures Trading Commission to the European Securities and Markets Authority— increasingly describe decentralization as a continuum of governance, control, and operation, rather than a simple threshold.

To understand where a protocol sits on that spectrum, supervisors now examine decentralization across several dimensions — not just whether code executes automatically.

These typically include:

  • Governance – Who makes decisions about upgrades, fees, or security parameters?

  • Development – Who controls repositories, admin keys, or deployment rights?

  • Operations – Who maintains infrastructure like oracles, interfaces, or liquidity pools?

  • Access – Is participation permissionless, or does an entity gate entry?

  • Finance – Who collects and allocates the protocol’s revenue or treasury funds?

A protocol might score high on decentralization in one dimension — say, open access — yet remain centralized in another, such as governance or treasury control. In other words, a DeFi system can be decentralized technically, but centralized functionally.

Because decentralization evolves, it is not a label but a trajectory. Protocols often launch under centralized control — governed by a core team or multisig — and gradually distribute authority over time through governance tokens or DAOs. But regulators judge them as they are, not as they intend to become.

That temporal gap creates friction: innovation moves faster than law, but accountability moves slower than code.

The Illusion of Decentralization

Even as regulators accept that decentralization exists on a spectrum, some argue that much of it is more illusion than reality. The Bank for International Settlements (BIS) — in its 2021 and 2023 research — described this paradox bluntly: DeFi may appear decentralized in architecture, but it is often centralized in governance and incentives.

In other words, decentralization in code does not guarantee decentralization in control.

Behind every protocol lies a small cluster of developers, governance token holders, and validators who make the system function. Consensus mechanisms themselves tend to recentralize power — whether through concentration of stake in proof-of-stake systems or the dominance of large mining pools in proof-of-work networks. Similarly, governance tokens often create voting plutocracies, where a few large holders can steer proposals, allocate treasury funds, and approve upgrades.

The BIS calls this the “illusion of decentralization” — a condition where technology distributes execution but reconcentrates influence. Decision-making migrates from institutions to insiders. Transparency increases, but accountability blurs.

Most DeFi systems rely on core actors who play indispensable roles:

  • Developers and founders who deploy the initial smart contracts or control upgrade keys.

  • Oracle providers who feed off-chain data into on-chain systems.

  • Front-end operators who host interfaces that ordinary users depend on.

  • Governance delegates or DAOs that hold large, coordinated voting blocs.

Remove those actors, and many “decentralized” systems would grind to a halt. From a regulatory standpoint, those actors form the functional intermediaries that preserve accountability — the human layer that technology never truly erases.

For regulators and standard-setters, this illusion isn’t merely theoretical; it’s operational. If power, control, or economic benefit remains concentrated, regulatory responsibility can be traced — even if the protocol’s execution is automated.

The illusion of decentralization doesn’t make DeFi illegitimate — it makes it legible. It shows that while technology can distribute operations, it cannot always eliminate governance. And where governance exists, regulation inevitably follows.

The “Fully Decentralized” Myth — and MiCA’s Cautionary Example

When the EU drafted the Markets in Crypto-Assets Regulation (MiCA), it recognized DeFi was coming — but not how to regulate it. Rather than creating a dedicated regime, lawmakers inserted a narrow exemption:

“Where crypto-asset services are provided in a fully decentralized manner without any intermediary, this Regulation shall not apply.” (Recital 22, MiCA)

At first glance, that sounds like a clean safe harbor. In practice, it opens one of the most complex interpretive debates in global financial regulation.

MiCA never defines what fully decentralized means. ESMA has acknowledged that decentralization exists on a spectrum — from protocols with a single admin key to DAOs with community governance and permissionless access. There is no threshold where a protocol “graduates” from centralized to decentralized; there are only degrees.

That mirrors the position of other regulators  which treat decentralization as a factor in assessing accountability, not a binary switch.

In reality, most DeFi systems are partially decentralized. Smart contracts may execute automatically, but governance and control often concentrate in specific hands. From a regulatory standpoint, that partial centralization is enough to bring them back within scope.

MiCA’s experience therefore serves as a cautionary example: even when laws attempt to recognize decentralization, few systems qualify as “fully” decentralized in practice. The exemption exists more in theory than in market reality.

The Legal Grey Zone: DAOs and Accountability

Across jurisdictions, policymakers are grappling with how to classify DAOs — entities that organize economic activity without formal incorporation.

Most financial laws hinge on the existence of a legal person — a company, partnership, or association that can hold assets and be held accountable. DAOs complicate that logic. They can perform organized, continuous, and profit-generating activity without fitting any traditional legal form.

Some jurisdictions, such as Wyoming and the Marshall Islands, now allow DAOs to register as limited liability entities. Others, like Switzerland and Singapore, treat them as associations or cooperatives. These legal wrappers provide a corporate anchor — but they also dilute decentralization. Once incorporated, a DAO becomes a legal entity, and its members become subject to standard corporate and regulatory obligations.

For unincorporated DAOs, the situation is more precarious. They may fall within the perimeter of financial regulation — because they conduct economic activity — without having the structural tools of compliance. They have no legal seat, no management body, and no treasury that fits the format of a corporate balance sheet.

That creates what might be called the compliance paradox: DAOs can be deemed accountable under law, yet lack the institutional mechanisms to comply with it.

DAO Liability: When Decentralization Meets the Law

Decentralization was supposed to dissolve liability. Instead, it is redistributing it — often in ways that surprise even the participants.

Two recent U.S. court cases illustrate how regulators and courts are starting to look through the veil of decentralization and reassign accountability directly to DAO participants.

In CFTC v. Ooki DAO (2023), a California federal court held that a DAO could be sued as an unincorporated association. The case stemmed from a DeFi trading protocol that the Commodity Futures Trading Commission alleged was operating an illegal derivatives exchange. The court found that the DAO, although decentralized, qualified as an association of persons engaged in a common enterprise — and could therefore be held liable as a collective entity.

Perhaps most strikingly, the court ruled that service via the DAO’s online forum and governance platform was sufficient to meet due-process requirements. In other words, a DAO — a digital pseudonymous network — could be treated as a suable legal entity, and participants who voted on governance proposals could be bound by that liability.

In Samuels v. Lido DAO (2024), the U.S. District Court for the Northern District of California went further. It found that plaintiffs had plausibly alleged that the DAO operated as a partnership under state law. Because certain defendants had “meaningfully participated” in the DAO’s governance, they could be treated as general partners — personally liable for its obligations.

That framing is consequential. Under partnership law, every partner is jointly and severally liable for the actions of the enterprise. Transposed to DAOs, it suggests that active governance participants — even those merely voting with tokens — could face personal liability for the protocol’s acts.

These cases signal a broader shift: courts and regulators worldwide are increasingly willing to pierce the veil of decentralization and reattach accountability to identifiable actors.

The long-term viability of decentralized governance in a regulated environment may depend on new hybrid forms — structures that preserve distributed decision-making while embedding legal personality and limited liability. Until then, DAOs live in the narrow space between innovation and exposure: decentralized enough to disrupt, but centralized enough to be sued.

From Regulation to Design: Embedding Compliance in Code

If DeFi challenges today’s regulatory architecture, the answer is not to wait for the law to catch up. It is to design compliance into the system itself.

Across jurisdictions, regulators converge on one point: the absence of an intermediary does not remove the need for accountability. What changes is where that accountability lives. In traditional finance, it resides in governance structures and compliance departments. In DeFi, it must migrate into architecture — into the logic of smart contracts, governance mechanisms, and data flows.

Compliance as Infrastructure

Embedding compliance by design means treating regulatory obligations not as external burdens, but as functional properties of the protocol. Just as consensus mechanisms enforce integrity in transactions, compliance mechanisms can enforce integrity in participation.

That can take several forms:

  • Automated gatekeeping — proxy contracts that verify wallet or counterparty eligibility before execution.

  • Programmable disclosures — on-chain attestations of audits, reserves, or governance actions that mirror transparency requirements.

  • Contingent controls — built-in kill-switches or circuit breakers triggered by predefined compliance conditions (e.g., AML alerts, sanctions flags).

  • Cryptographic accountability — using zero-knowledge proofs or attestations to verify compliance actions without exposing personal data.

Each of these mechanisms translates a regulatory concept into code. It is not about replicating bureaucracy on-chain, but about making trust enforceable by design.

The Paradox of Embedded Controls

Does embedding compliance mechanisms into DeFi systems mean re-centralizing them? At first glance, yes: integrating identity checks or transaction gates can seem to recreate the very intermediaries DeFi set out to remove.

But the reality depends on where and how that control sits.

There’s a fundamental difference between centralized control and embedded rule enforcement. Centralized control relies on human discretion — an admin key, a multisig, or a company deciding which wallets can participate. Embedded rule enforcement, by contrast, transforms those decisions into code: open, auditable, and consistent.

In traditional finance, compliance happens after the fact — through audits, reports, and investigations. In DeFi, it can happen within the transaction itself. If those rules are transparently coded, applied uniformly, and governed collectively, they don’t necessarily reduce decentralization — they operationalize integrity.

The key lies in governance design: who can change the rules, who can override them, and how those powers are distributed. A compliance circuit built into a protocol doesn’t make it centralized. But a circuit that can be switched off by a single party does.

The challenge, then, is not to reject control, but to locate it properly. In a compliant DeFi model, control is not concentrated in a single authority; it is distributed, codified, and bounded by transparency.

That is where regulation and decentralization can converge. Regulation ensures accountability; decentralization ensures resilience.

Compliance by design doesn’t have to recreate the old system — it can re-encode its safeguards into new, open infrastructure.

From Theory to Infrastructure: The ComPilot Model

This is where ComPilot’s orchestration layer enters the picture — not as a centralized compliance hub, but as a way to translate regulatory expectations into programmable, adaptive infrastructure.

ComPilot enables on-chain gating — a proxy-based compliance mechanism that sits between users and protocols, verifying eligibility and risk conditions before execution. Unlike static enforcement, it does not require redeploying contracts or freezing logic. It acts as a flexible proxy layer that can be upgraded, adjusted, or parameterized as rules evolve.

This flexibility matters. The CFTC, in its 2024 remarks on DeFi oversight, explicitly cautioned that “static compliance logic” would be insufficient for adaptive financial systems. ComPilot’s approach directly answers that concern: compliance gates that can evolve with regulatory guidance, without hardcoding bureaucracy into smart contracts.

In practice, this means a protocol can:

  • Integrate real-time AML, sanctions, and counterparty checks on-chain before execution;

  • Update screening parameters as regulations change, without contract redeployment;

  • Demonstrate transparent, audit-traceable compliance behavior to regulators, directly within its code pathways.

By orchestrating multiple compliance services — identity, wallet screening, travel rule, and transaction monitoring— into a single programmable layer, ComPilot converts what used to be post-trade compliance into pre-trade assurance.

In effect, it turns regulatory expectations into executable policy logic — configurable, upgradeable, and natively interoperable across chains.

That is what “compliance by design” looks like when it becomes infrastructure: adaptive, auditable, and on-chain.

Regulation ensures accountability; decentralization ensures resilience. And between them lies a new layer — where compliance is not an afterthought, but a system function.

Author
Natalia Latka
Head of Regulatory Affairs