Self-healing compliance for app and website repositories

When the law changes, your code follows.

Rulebert reviews every pull request and watches the provisions your code depends on. When one is amended, it opens a fix pull request that cites the exact EU and national provision for each market you sell in. You approve every change.

Compliance findings in a pull request. Think CodeRabbit for the review and Dependabot for the law, on legal data we built ourselves.

feat: add analytics events #218

Openmaya-dev wants to merge 3 commits into main from feat/analytics-events

app/src/main/java/com/example/shop/ShopApplication.kt+2 −0
class ShopApplication : Application() {
override fun onCreate() {
super.onCreate()
FirebaseAnalytics.getInstance(this)
.setAnalyticsCollectionEnabled(true)

rulebert bot now

Analytics SDK initialised before consent

Flagged for review · Markets: France, Germany

The SDK can store or read information on the device as soon as the app starts. The cited provisions make storing or accessing such information subject to the user's consent, unless it is strictly necessary for a service the user requested.

Suggested change

FirebaseAnalytics.getInstance(this)
.setAnalyticsCollectionEnabled(true)
ConsentManager.onGranted {
FirebaseAnalytics.getInstance(this)
.setAnalyticsCollectionEnabled(true)
}

Rulebert · Suggested change is a design preview · Not legal advice

Sentry.init(this)
// Consent prompt is shown from MainActivity
ConsentManager.init(this)

Every finding takes one of two lanes

A provision is amended, or a pull request introduces a problem. Rulebert sorts each finding by what it takes to resolve it.

Lane 1

Fixable in code gets a fix PR

An SDK started before consent. A tracker not gated behind the banner. An over-broad permission, cookie attributes, a missing reject path. Rulebert opens a pull request that brings the code back in line with the provision, and cites it. You approve every change.

Start analytics only after consent, following an amended provision #231

Openrulebert wants to merge 1 commit into main from rulebert/law-change-de

rulebert bot commented now

Brings the code back in line with:

Rule pack eu-privacy 0.4 → 0.5. Re-checked: Example Shop (Android), example-shop.com.

Review required
At least 1 approving review is required to merge.

All checks have passed
rulebert / scan: 0 findings open

Early access Fictional amendment. Nothing merges until you approve it.

Lane 2

Needs a decision gets an urgent issue

A new purpose. A legal basis. A retention period. A new market. Rulebert opens an issue labelled urgent and assigned to its owner, with the provision, what changed and the date it applies from.

Decision needed: legal basis for attribution after an amended provision #232

Open rulebert opened this issue now · 0 comments

rulebert bot opened now

A provision cited by 2 open findings has been amended. This needs a decision from its owner before it applies.

Amendment details
ProvisionTDDDG, § 25 (DE)
What changedConsent exemption for audience measurement narrowed to first-party, aggregate statistics
Applies from1 March 2027
AffectedExample Shop (Android, iOS)
Assignees
dpo-example
Labels
urgent needs decision DE
Milestone
Before 1 March 2027
Design preview Not a fix PR: choosing a legal basis is a decision for its owner, not a code change. Fictional amendment.

Not everything can be fixed in code, and Rulebert says so. It never merges on its own.

Not "GDPR". The article, in each market.

One line of code, one row per jurisdiction. Each finding links to the exact EU provision and to the national provision in every market in your project profile.

F-01 · Analytics SDK initialised before consent
Provisions cited for the example finding, by jurisdiction
JurisdictionProvisionStatus
EU European UnionDirective 2002/58/EC, Art. 5(3)Flagged for review
FR FranceLoi n° 78-17 du 6 janvier 1978, art. 82Flagged for review
DE GermanyTDDDG, § 25Flagged for review
NL NetherlandsTelecommunicatiewet, art. 11.7aFlagged for review

Fictional app, real provisions. Links go to EUR-Lex and national publishers.

Source: LexAPI, our own API for EU and member-state legislation and case law. Each provision is resolved to its current text when the scan runs.

Two jobs: review the change, follow the law

Reviews every pull request against the law that applies

Like CodeRabbit, but for privacy law. A summary of what changed, then line-by-line comments on new SDKs, trackers, cookies and permissions, each with the provisions behind it and a suggested change.

rulebert bot commented now

Review summary for #218

4 files reviewed · 2 flagged for review · 1 finding closed · Markets: FR, DE

Example: changes in this pull request and their review status
FileChangeStatus
android/app/build.gradleadds firebase-analytics⚠ Flagged
web/src/app/layout.tsxadds gtag.js before consent banner⚠ Flagged
ios/Podfileupdates AppsFlyerFrameworkNo new finding
web/src/consent.tsreject button addedFinding closed

rulebert / scan
Neutral: 2 findings flagged for review

Design preview Fictional repository and findings.

Re-checks your code when the law changes

Like Dependabot, but for legislation. When a provision your code depends on is amended, Rulebert re-checks the affected repositories and opens a fix pull request where a code change can be proposed, or an issue where a decision is needed.

LexAPI · amendment Example

Provision
DE TDDDG, § 25
Amended by
Second Act amending the TDDDG (fictional)
Applies from
1 March 2027
Cited by
3 rules in eu-privacy
  • 2 repositories re-checked on their own runners
  • 1 fix PR opened, 1 urgent issue assigned

Built on our own legal data

We built the legal data layer first. Everything else sits on top of it.

Detecting an SDK is not hard. Posting a pull-request comment is not hard. Knowing which provision applies to that SDK in each member state today, noticing the day it is amended, and knowing the date the new wording applies from, is. Rulebert runs on LexAPI, the legal data API we built and operate.

  • Law parsed to the article

    EU and member-state legislation and case law, addressable by article and paragraph. A finding cites a provision, not a statute.

  • Amendments, with the date they apply

    Every reference between acts is a typed edge in a citation graph, amendments included, each with the date it applies from. That is what turns a change in the law into a fix PR in your repository and a deadline on an issue.

What we maintain is the mapping: from code artefact (SDK, permission, cookie, initialisation order) to provision, for each member state, kept current through the citation graph.

rule pack · eu-privacy 0.4
27 EU member states with national legislation
Plus the United Kingdom and the United States, all held in LexAPI today. EU provisions and the national provision are cited for every market.
140 rules in the current pack
Each rule ties one code artefact to the provisions that apply to it, per member state.
870 provisions watched for amendments
Every provision a rule cites is followed through the citation graph.

It compounds

  1. Every audit sharpens the rule pack

    Each audit and each dismissed finding adds or corrects an SDK-to-provision mapping. The next customer starts with all of them.

  2. Every new country reaches every customer

    When a member state is added, customers selling there get national citations on the next run, with no change on their side.

  3. Every amendment is traced once

    One change in the law, followed through the graph once, reaches every repository that depends on it.

Other tools see part of it. Rulebert connects code to law.

Other tools cover parts of this. None of them connects a line of code to the provision that applies in each market, or proposes the fix when that provision changes.

What each category of tool does
AI code reviewConsent platform (CMP)App or website privacy scannerGRC platformRulebert
Runs on each pull request, before releaseYesNoIn partNoYes
Reads source and build filesYesNoIn partNoYes
Detects SDKs, trackers and cookiesNoIn partYesNoYes
Cites the article, per member stateNoNoNoNoYes
Re-checks your code when a provision is amendedNoNoNoNoYes
Opens a fix PR when a provision changesNoNoNoNoYes
Routes product decisions to an owner with a deadlineNoNoNoIn partYes
Source code stays on your runnerNoNot applicableIn partNot applicableYes

Categories, not products. Individual tools differ. "In part" means that some tools in the category do this, or that they do it for part of the scope.

Where Rulebert sits next to each →

Runs where your code is. No source code uploaded.

  • Mobile, web and websites

    Android, iOS, React Native and Flutter apps, plus web apps and websites. Build and dependency files, app and privacy manifests, script tags, tag managers and cookies set before consent.

  • Your code stays on your runner

    Source code never leaves your runner. What leaves it is an inventory: the names of the SDKs, trackers, cookies and permissions detected, the identifiers of the rules they match, and your list of markets.

  • One workflow file

    Add the Action and a short project profile listing the markets you sell in. The evidence report traces each finding from pull request to provision, so your DPO does not have to read code.

WORKS WITH

  • GitHub Actions
  • Android
  • iOS
  • React Native
  • Flutter
  • Web apps
  • Websites

Why now

Regulators are looking inside apps.

On 22 October 2026 the CNIL fined two Fnac Darty companies a total of €7 million for tracking app users who had refused consent.

The question in that case was what the app's code did after a refusal. That is visible in a pull request.

Read the CNIL summary (external site) →

  • Enforcement has moved from websites to app internals

    Cookie banners came first. The questions now concern what an app's SDKs do once the user has answered.

  • The SDK supply chain changes with every release

    A dependency update can add a tracker nobody chose. A yearly audit does not see it. A pull-request check does.

  • National rules diverge

    The same SDK call falls under a different national provision in each member state, and each is amended on its own schedule.

Who it is for

  • First customers

    Product teams shipping a consumer app or site in two or more EU markets

    Several third-party SDKs, a release every week or two, and a DPO who cannot read every diff. Rulebert puts the question in the pull request, where an engineer can answer it, and leaves the DPO a record of what was flagged and what was decided. Entering a new member state is one line in the project profile.

  • Channel

    Agencies and studios

    One studio brings many client apps and sites. Each gets the same review step, and the client receives a report under the studio's name.

  • Who reads the output

    DPOs and counsel

    An evidence trail from line of code to provision, without reading code. The decisions stay with them.

Read more for agencies →

Who is behind this

Built by the team behind LexAPI

  • Arieta Labs

    Rulebert and LexAPI are built and operated by Arieta Labs Ltd, registered in England and Wales. A small engineering team working across London and Ljubljana.

  • LexAPI, in production since 2025

    The legal data API that Rulebert runs on, used by legal-tech teams to search, cite and track EU and national law at article level.

  • Founder-led, engineer-built

    Rulebert is built by the engineers who built LexAPI's parsers and citation graph. Years of legal data and production software, not a slide deck.

  • Rule packs reviewed by data-protection counsel

    Before a rule pack is released, counsel reviews each rule's mapping from code artefact to provision, and the wording of every finding.

Early access so far: 24 audits delivered, 6 design partners, 180 repositories scanned.

Where this goes

Every regulated codebase, reviewed against the law that applies to it. Kept current automatically.

Dependencies update themselves. The law a codebase depends on should be no different. We start with privacy law for apps and websites in the EU, because that is where enforcement meets code today. LexAPI already holds EU legislation and case law at article level, so each further rule pack is mapping work on data we already operate.

Frequently asked questions

Will this make my app compliant?

No tool can do that, and we do not claim to. Rulebert flags SDKs, permissions and consent handling for review and links each finding to the EU and national provisions that may apply. It provides information and links to legal sources; it is not legal advice.

Can every finding be fixed automatically?

No, and we say so. Findings take one of two lanes. Where the code can be brought back in line with the provision (an SDK started before consent, a tracker not gated behind the banner, an over-broad permission), Rulebert opens a fix pull request that cites the provision. Where a product or legal decision is needed (a new purpose, a legal basis, a retention period, a new market), it opens an urgent issue assigned to its owner, with the provision, what changed and the date it applies from. In both lanes a person decides. You approve every change, and nothing is merged automatically.

How is this different from a consent management platform?

A consent management platform shows the banner and records the user's choice. It does not read your source code, so it cannot see an SDK that starts before the banner is answered, or one that keeps sending events after a refusal. Rulebert checks whether your code respects the choice, in the pull request, before release, and cites the provision for each market. The two work side by side.

Could a general AI reviewer do this?

A general model can find an SDK and mention GDPR. It cannot tell you which article of which national act applies in Germany today, or that it was amended last month. That is a data problem, not a reasoning problem. Rulebert's rules are tied to provisions in LexAPI, our own legal data API, which parses law to article level and tracks amendments through a citation graph. Each citation is resolved against the current text, not recalled from training data.

Pricing and more questions →

Compliance that ships with the code.

Compliance findings in a pull request, and a fix PR when the law moves. Apply for a free early-access audit of one app or site and receive a report with SDK findings and citations. We never ask for private code.