Skip to main content

model-wtf

Compliance as code for Model W projects.

Why

A GDPR register, a rights matrix and a threat model are descriptions of what the code does. Written by hand they are wrong the week after; written once, they never meet the pull request that breaks them.

model-wtf derives them from the repository instead. It introspects the application (Django models and URL confs, task registries, SvelteKit routes) into inventories — data items, the touchpoints that handle them, where the data flows, the stores it lives in — and lets humans or agents record the judgements the code cannot carry (is this field personal? does this endpoint serve the subject or the staff? is that threat mitigated?) in a SQLite database committed next to the code. Everything downstream — the Art. 30 register, rights coverage, the weighed findings — is computed from that. A gate runs on every pull request and fails the change that introduces a gap; a challenger agent reads the diff and re-opens the reviews it undermines. The to-do list is, at all times, exactly the distance between the code and its declarations.

How

In the root of a Model W repository (a snow.yml, or a .model-wtf.yml), with an OpenRouter key in OPENROUTER_API_KEY — or a Scaleway IAM key in SCALEWAY_SECRET_KEY, plus SCALEWAY_INFERENCE_ENDPOINT for a dedicated inference deployment of your own:

uvx model-wtf compliance init                     # compliance.db, snow.yml blocks, CI workflow
uvx model-wtf compliance data auto-review         # agents classify every field, model by model
uvx model-wtf compliance touchpoints auto-review  # and declare what each route / task / screen does
uvx model-wtf compliance activities list          # the register of processing activities, from the code
uvx model-wtf compliance check                    # what is still open — and the gate on your next PR

Nothing is overwritten, what the agents cannot know is left as !todo for a human, and every row they wrote is queryable and diffable. Without an API key the same commands work by hand (data review, touchpoints set-data, threats stamp).

Learn more

https://modelw.github.io/wtf/

Misc

  • Install for good: uv add --dev model-wtf, then uv run model-wtf ….
  • The gate in CI: uses: ModelW/wtf@v1 (see action.yml; init writes the workflow).
  • Contributing and releasing: docs/contributing.md.
  • Changes: CHANGELOG.md. License: MIT.

Metadata

Release files for model-wtf 1.2.0

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

Source distribution (sdist)

Source distribution for model-wtf 1.2.0
File Size Uploaded Provenance Actions
model_wtf-1.2.0.tar.gz 370.2 kB With provenance Details for model_wtf-1.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for model-wtf 1.2.0
File Interpreter ABI Platform Actions
model_wtf-1.2.0-py3-none-any.whl Python 3 none any Details for model_wtf-1.2.0-py3-none-any.whl

Total release size: 882.1 kB

Release files / model_wtf-1.2.0.tar.gz

Download URL model_wtf-1.2.0.tar.gz
Size 370.2 kB
Tags Source
SHA-256 checksum
How to use checksums
0830a686aba7c7ba0532a743d65e277cb03e3126e2cc76c5d63db47a5c9f2c6c
BLAKE2b-256 checksum
How to use checksums
00427f513c04b1b0547310ba94b221b6c30f3d6a7b1a52fab386b14c0c03b6db
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 16, 2026.

Transparency log

Release files / model_wtf-1.2.0-py3-none-any.whl

Download URL model_wtf-1.2.0-py3-none-any.whl
Size 511.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cbf8950239d9ecb9012e137d340b153e839222462746f1d5c1a5525237c38983
BLAKE2b-256 checksum
How to use checksums
8400ad966e97eac301fb3c605095d8359b4b5511d1a54c9a2885b56868912772
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 16, 2026.

Transparency log

Security for model-wtf 1.2.0

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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for model_wtf-1.2.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 16, 2026.

Transparency log

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