How it works

From an amended provision to a fix PR in your repository.

Rulebert has five parts. The first two run on your own GitHub 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.

Five parts, two on your runner

The scanner reads your repository on your own GitHub runner. Only the resulting inventory is matched against the law.

Architecture of the compliance botInside your GitHub runner, the repository and project profile feed the scanner. The scanner's inventory, without source code, goes to the rule engine, which resolves provisions through LexAPI. The reviewer turns matches into a pull-request summary and line comments flagged for review, which return to GitHub as pull-request comments, fix pull requests and an evidence report. Separately, the law-change watcher follows amendments in LexAPI and updates the rule pack. A scheduled run on your runner picks it up, re-checks the repository there, and opens a fix pull request where a code change can be proposed or an urgent issue where a decision is needed.YOUR GITHUB RUNNER — SOURCE CODE STAYS HEREBACK IN GITHUBinventory only, no source codeamendmentsscheduled re-check on your runnerRepository + project profilebuild files, manifests, HTML and tags, marketsScannerSDKs, trackers, cookies, permissions, start order vs consentRule enginerules tied to EU and national provisionsLexAPIarticles, amendmentsReviewersummary + line comments, flagged for reviewLaw-change watcherfollows cited provisionsPR commentsFix PRsEvidence reportFix PR or urgent issueprovision, applies from

Step by step

  1. Runs on your runner

    Your repository and project profile

    A small rulebert.yml file describes the app: which markets it is sold in, the age of its audience if relevant, and where consent is collected. Nothing else needs configuring.

  2. Runs on your runner

    Scanner

    The scanner reads build and dependency files (Gradle, Swift Package Manager, CocoaPods, pubspec.yaml, package.json), app and privacy manifests, HTML templates and tag-manager configuration, and the code paths that initialise SDKs or set cookies. It produces an inventory of SDKs, trackers, cookies and permissions, and the order in which they start relative to consent.

  3. Inventory only

    Rule engine, backed by LexAPI

    This is the part that is hard to copy. Each rule ties one code artefact (an SDK, a permission, a cookie, an initialisation order) to specific provisions: the EU article and its national counterpart in each member state we cover. The engine matches your inventory against the rules, then asks LexAPI for the current text of each provision in your markets. LexAPI parses legislation to article level and keeps a typed citation graph, so an amendment is linked to every rule that cites the amended provision. National legislation is covered for all 27 EU member states, the UK and the US.

  4. Like a code-review bot

    Reviewer

    Posts a summary on the pull request, then a comment on each line concerned: what was detected, which provision it relates to, and a suggested change. Findings are flagged for review; they are not legal conclusions.

  5. Back in GitHub

    Outputs

    Pull-request review comments on the lines concerned. Fix pull requests where the code can be brought back in line with the provision (for example, moving an SDK's initialisation behind your consent check). Urgent issues where a product or legal decision is needed. An evidence report your DPO can file.

Law-change watcher

Like Dependabot, but for the law.

Rulebert follows amendments to every provision its rules cite, through LexAPI's citation graph, together with the date each amendment applies from. When a provision is amended, the rule pack is updated. A scheduled run of the same Action on your runner picks up the new pack and re-checks the affected repositories there. Each finding then takes one of two lanes.

Lane 1 · fix PR

Fixable in code

Where a code change can be proposed, Rulebert opens a pull request that brings the code back in line with the provision and cites it. You review and merge it, or close it.

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 · urgent issue

Needs a decision

A purpose, a legal basis, a retention period or a new market cannot be settled by a diff. Rulebert opens an issue labelled urgent, 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.

Where Rulebert sits next to the tools you have

Rulebert does not replace your consent platform, scanner or GRC tool. It covers the part none of them sees, the code in the pull request, measured against the provision in each market.

  • Next to a consent platform

    A consent platform records the user's choice. Rulebert checks whether your code respects it, before release.

  • Next to a privacy scanner

    A scanner reports what a released app or live site does. Rulebert reports it in the pull request, with the provision for each market.

  • Next to a GRC platform

    GRC tools collect evidence about your organisation. Rulebert produces evidence about your code.

  • Next to a general AI reviewer

    A general model can mention GDPR. It cannot tell you which article of which national act applies in Germany today, or that it was amended last month.

What Rulebert does not do

  • It does not give legal advice

    It provides information and links to legal sources. Decisions remain with you and your legal counsel.

  • It does not upload your code

    Source code never leaves your runner, on pull requests and on scheduled re-checks alike. The open-source tier needs no network access beyond GitHub.

  • It does not merge anything on its own

    Fix pull requests are proposals. You approve every change, and nothing changes in your code until you merge it.

  • It does not fix what code cannot fix

    A legal basis, a purpose or a retention period is a decision. Rulebert routes it to its owner with a deadline and does not open a pull request for it.

See it on one of your apps.

Apply for a free early-access audit of one app or site and receive a report with SDK findings and citations.