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.

Try it in your browserBrowse the rules

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, or, for the LEI checks, the LEIs found have valid check digits and the parties' LEIs agree across sections. From the next release, and already in the playground, the notification-date and language checks pass when the section names a calendar date, or one of the 24 official EU languages in English or German, and the contact checks of Annex I and III Part A point 6 pass when a telephone number, an e-mail address and a period in days are found; release 1.2.1 (PyPI and @v1) still checks the notification date and language by listed terms and length and has no contact checks. 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

SurfaceUse it forStart
PlaygroundA quick look at a JSON or XHTML draftOpen the playground
Command lineReports, review tables, review bundles and SARIFpip install micar-whitepaper-linter, then micar-lint draft.json
GitHub ActionChecks 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

First-pass screening for review by a qualified lawyer. Use synthetic or public material in the playground.