Skip to main content

MiCAR Whitepaper Linter

CI License: MIT Python >=3.13

Flag missing and thin disclosures in draft MiCAR white papers before substantive legal review, using deterministic Annex I, II and III checks with pinpoint citations.

A deterministic Python linter for draft white papers under MiCAR (Regulation (EU) 2023/1114). It checks Annex I, II and III requirements as code, accepts JSON, XHTML (incl. numbered-field iXBRL layouts) and DOCX, and runs as a CLI, a GitHub Action, or in your browser.

Review-gated first-pass tooling. It flags candidate gaps for a lawyer; it does not decide whether a white paper is lawful or complete. Not legal advice. Bundled examples are synthetic.

Screenshot/GIF placeholder — to be added

Who it's for

  • Lawyers and compliance teams reviewing a MiCAR white paper draft who want a cited first-pass list of candidate disclosure gaps before the substantive legal review.
  • Teams drafting a white paper in a Git repository who want every push checked in CI.

Rule sets cover all three white paper regimes under MiCAR (Regulation (EU) 2023/1114): crypto-assets other than ARTs and EMTs (Annex I), asset-referenced tokens (Annex II) and e-money tokens (Annex III). It is a screening tool, not a sign-off: whether a white paper is lawful or complete remains a lawyer's judgment. Not legal advice.

Try it now

  • In the browser, nothing leaves the page: live playground (Pyodide).
  • GitHub Action: add sebastianfoerste/micar-whitepaper-linter@v1 to a workflow in the repository that holds your draft. Findings and their citations appear in the job log, and by default (strict: 'true') the job fails while BLOCKER-severity findings are open. See GitHub Action for the snippet and inputs, or start from the micar-whitepaper-template repo, which ships the workflow preconfigured.
  • Local CLI: follow the Quick start below. The core linter runs locally and does not require external LLM or network processing.

Quick start

From PyPI (Python 3.13+). One command, no install (needs uv):

uvx micar-whitepaper-linter your-draft.json

Or install the micar-lint command:

pip install micar-whitepaper-linter
micar-lint your-draft.json

DOCX drafts need the docx extra: pip install 'micar-whitepaper-linter[docx]' or uvx --from 'micar-whitepaper-linter[docx]' micar-lint your-draft.docx.

From a clone of this repository (requires Python 3.13+, uv and make):

make install   # uv sync --extra dev
make demo      # lint examples/incomplete.json, a synthetic ART draft with open blockers
uv run micar-lint examples/incomplete.json --review-bundle-dir /tmp/micar-incomplete-review-bundle

The last command also writes a review bundle to /tmp/micar-incomplete-review-bundle: compliance and remediation checklists, a coverage matrix, a review table, a reviewer sign-off record and an artifact manifest.

To check your own draft, pass its path to uv run micar-lint instead of an example file:

  • A JSON draft states its regime in its type field. For an XHTML or DOCX draft, add --type other|art|emt; the numbered-field XHTML layout requires it.
  • --strict exits with status 1 while any BLOCKER finding is open.
  • --json prints machine-readable JSON instead of text.

Example output

Real output of uv run micar-lint examples/incomplete.json (a synthetic, deliberately incomplete ART draft), first findings only:

MiCAR Whitepaper Linter - Incomplete Synthetic EuroStable ART Draft
Whitepaper type: ART
==============================================================================
Pass: 0  |  Review: 13  |  Missing: 5  |  Blockers: 15

[REVIEW] [BLOCKER] COMMON.SUMMARY  Plain-language summary
           Cite:  Art. 6 Abs. 7, Art. 19 Abs. 6, Art. 51 Abs. 6 MiCAR
           Section: 'summary'  (4 words)
           -  Section is thin: 4 words, expected at least 80.
           -  Missing review terms: summary, key information.

[MISS  ] [BLOCKER] COMMON.RISK_WARNING  Mandatory risk warning statement
           Cite:  Art. 6 Abs. 5, Art. 19 Abs. 4, Art. 51 Abs. 4 MiCAR
           Section: 'risk_warning'  (0 words)
           -  Section is empty or absent.

[MISS  ] [BLOCKER] COMMON.IXBRL_TAGGING  Inline XBRL (iXBRL) compliance and ESMA metadata tagging
           Cite:  Art. 2 VO (EU) 2024/2984
           -  Draft format: notification requires XHTML with Inline XBRL tagging. ...

(The third finding is trimmed with ...; the "Abs." citation style is as the tool prints it.) XHTML in the numbered-field layout of Implementing Regulation (EU) 2024/2984 works too; state the regime, since it is not inferred:

uv run micar-lint examples/numbered-other-draft.xhtml --type other

Browser workbench (local preview)

The repository includes a browser workbench in docs/playground/. The full linter runs client-side via Pyodide. Nothing you paste leaves the page.

For local preview, run python3 -m http.server 8765 --bind 127.0.0.1 --directory docs and open http://127.0.0.1:8765/playground/. The first runtime load needs an internet connection. The app does not persist drafts in browser storage.

Details in docs/DETAILS.md.

GitHub Action

- uses: actions/checkout@v4
- uses: sebastianfoerste/micar-whitepaper-linter@v1
  with:
    whitepaper: drafts/whitepaper.json
    strict: 'true'

The job fails while BLOCKER findings are open. Starter repo with this preconfigured: micar-whitepaper-template. Details in docs/DETAILS.md.

Status and limits

Area State
Table 2 (crypto-assets other than ART/EMT) Run against public ESMA-register documents
Table 3 / Table 4 (ART / EMT) Follows the Official Journal text; not yet run against a real ART or EMT white paper
iXBRL check Well-formedness, Inline XBRL 1.1 and ESMA MiCA taxonomy namespaces only; never reports Pass
Reserve-floor check Extracts candidates; never returns PASS
Pilot study 10 documents, 15 rules each, 21 machine-flagged candidate gaps, pending human review; convenience sample, no precision/recall claim

Pilot study

A reproducible study over Title II white papers in ESMA's MiCA register publishes document hashes, extraction metadata, limitations and a 150-cell human-review matrix. Flags are unreviewed machine output, not legal findings. Raw white papers are not committed. Start at findings-summary.md.

Develop with make check (lint, tests, CLI smoke check).

Part of the EU regulation as code suite

Deterministic, review-gated tools by sebastianfoerste:

Also: micar-whitepaper-template, dpa-and-data-transfer-review.

Metadata

Release files for micar-whitepaper-linter 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for micar-whitepaper-linter 0.2.1
File Size Uploaded Provenance Actions
micar_whitepaper_linter-0.2.1.tar.gz 403.0 kB Without provenance Details for micar_whitepaper_linter-0.2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for micar-whitepaper-linter 0.2.1
File Interpreter ABI Platform Actions
micar_whitepaper_linter-0.2.1-py3-none-any.whl Python 3 none any Details for micar_whitepaper_linter-0.2.1-py3-none-any.whl

Total release size: 479.0 kB

Release files / micar_whitepaper_linter-0.2.1.tar.gz

Download URL micar_whitepaper_linter-0.2.1.tar.gz
Size 403.0 kB
Tags Source
SHA-256 checksum
How to use checksums
6259b821b8f99203f397565e7929168eb773b85ce18834d8151d7af59b2f697f
BLAKE2b-256 checksum
How to use checksums
7e42be40817028331a63360d49a0e03c17f3b67233ec9c8944ec69a72daf6f8b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Release files / micar_whitepaper_linter-0.2.1-py3-none-any.whl

Download URL micar_whitepaper_linter-0.2.1-py3-none-any.whl
Size 76.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
da6d8161e0a8c74086c22f4aec98059cd171b1d12069c9ec7eb41172acaa3eda
BLAKE2b-256 checksum
How to use checksums
0efa1cff428ac2131f7db91159394e911f4bb3d7c9d80a2394f9d9ef6f382c3d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Security for micar-whitepaper-linter 0.2.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page