First-pass review tooling
Find candidate gaps in a MiCAR white paper draft before legal review.
The linter applies fixed rules for Annexes I, II and III of Regulation (EU) 2023/1114 to a draft and lists what is missing or needs review, each with a citation. The same input always gives the same result. No language model is in the checking path.
What it is
- A checklist that flags absent or thin disclosures, per Annex Part.
- A citation and a rule page for every finding.
- Offline LEI checks: check digits and agreement across sections. No registry is queried.
- Statuses: Missing Review Pass. Severity: blocker, major, minor.
What it is not
- Not legal advice, and not a compliance opinion.
- A pass means a check matched: listed terms appear and the section is long enough; for the LEI checks, the LEIs found have valid check digits and the parties' LEIs agree across sections; for the notification-date and language checks, the section names a calendar date or one of the 24 official EU languages in English or German; and for the contact checks of Annex I and III Part A point 6, a telephone number, an e-mail address and a period in days are found. Accuracy and sufficiency need a lawyer.
- Not an iXBRL validator. The format check never passes; tag completeness needs a taxonomy validator.
Your draft stays with you
- The playground runs the rules in your browser. Nothing you paste leaves the page, and it is not stored.
- The CLI and the GitHub Action run where you run them.
- The CI summary, annotations and SARIF log carry rule IDs, citations and line numbers, never draft text. The job log still prints the full report, including the draft title and quoted figures.
Three ways to run it
| Surface | Use it for | Start |
|---|---|---|
| Playground | A quick look at a JSON or XHTML draft | Open the playground |
| Command line | Reports, review tables, review bundles and SARIF | pip install micar-whitepaper-linter, then micar-lint draft.json |
| GitHub Action | Checks a draft in your CI workflow (for example on push or pull request), with a job summary, line annotations and optional code-scanning upload (v1.2.0 or later) | uses: sebastianfoerste/micar-whitepaper-linter@v1 |
Known limits
- Rules work at Annex Part level, with topic rules for an ART's reserve of assets and valuation, for the safeguarding of an e-money token's funds, and for the first-page statement of Art. 6(3) and 51(3) MiCAR for other crypto-assets and EMTs. Point rules check each Annex point that a field of the template of Implementing Regulation (EU) 2024/2984 carries: whether the fields are filled, under the template's conditions (an LEI or DTI given, a flag true or false). Only the contact details of Annex I and III Part A point 6 are also searched for in a draft without field numbers; every other point rule does not run there, and the report says in one note how many did not. They check whether a field is filled, not what it says, and have not yet been run against a real notified white paper.
- Six field-level rules check a white paper in the numbered-field layout against the templates of Implementing Regulation (EU) 2024/2984 and Delegated Regulations (EU) 2025/421 and 2025/422: the predefined texts, the date of notification, the data formats, the code lists, the sustainability indicators and the data for classifying the white paper in the ESMA register, with the LEI and DTI conditions of Delegated Regulation (EU) 2025/421. Whether an LEI is listed in the GLEIF database is not checked: no registry is queried. On a draft without field numbers only the date check runs; the others do not run and are counted in the same note, never passed. They have not yet been run against a real notified white paper.
- The Annex II and III rules have not yet been run against a real ART or EMT white paper.
- No accuracy rate is published: the pilot study's results await human review.
- Citations link to the acts on EUR-Lex at act level.
First-pass screening for review by a qualified lawyer. Use synthetic or public material in the playground.