Privacy

Privacy

OpenCaseLaw logs requests to operate the service and to support research, but sets no cookies and runs no third-party tracking. Every published count is aggregated, k-anonymous, and differentially private.

§01 Summary

The short version

OpenCaseLaw is a public research project. There is no user account and no persistent identifier that automatically links a request to a person. That is not a claim that we collect no data: query text, timestamps, session and client identifiers, and server access logs are all recorded, as set out in full below. This page states what is actually collected, why, and for how long.

  • No cookies. The site sets no cookies at all, neither necessary nor optional.
  • No fingerprinting. No canvas, font, audio, or WebGL fingerprinting. No third-party analytics.
  • No Google Analytics, no Plausible Cloud, no Sentry. All analysis runs on our own server in Germany. We serve fonts and scripts ourselves (except Microsoft’s Office.js in the Word add-in); the static pages of opencaselaw.ch are hosted on GitHub Pages (§02).
  • Development data: full capture. To improve search, for research and to train our own models, we record complete request data: tool, parameters including query text, timestamp, client class and a session identifier. No IP address is stored with any request; sessions cannot be linked to persons — there is no account, no login, and the identifier rotates with every connection. Document text (for example from the Word add-in or from attest_response) is not stored, only its length. These records stay on our servers; how long is at the developer’s discretion, within these purposes. What persists permanently is aggregate statistics and models trained from them. The collection code is open source (mcp_server.py).
  • No user account, no persistent identifier. There is no login. Identifiers that do exist are time-limited and rotate: the MCP session id with every connection, the cost-ledger pseudonym daily, the Word add-in install-cohort hash monthly (details below, §02 and §04).
  • All published counts are differentially private (ε = 1.0) and subject to a k-anonymity threshold of k = 10.

§02 Logs & retention

What is logged, and for how long

Every web server logs requests — that is technically unavoidable. Part of our logging decays into harmless aggregates within days; the exceptions with longer or indefinite retention are below.

Tier 1 — tier1.log (72 hours)

Holds, per request, the IP address, timestamp, method and path (no query string), HTTP status, response time and User-Agent. Legal basis: legitimate interest in defending against DDoS and abuse. Retention: the log is rotated hourly; every rotated file is cryptographically shredded (shred -u) before its oldest entry is 72 hours old. It is read only to fend off abuse and to detect commercial use (integrator report and automatic blocks, below), never for usage statistics.

Error log and catch-all server (15 days)

nginx’s error log (error.log) records, for failed or aborted requests, the IP address, timestamp, requested address and host name. The catch-all server’s log (access.log) records requests the server only redirects or rejects, such as plain HTTP or unknown host names: IP address, timestamp, full requested address, referer and User-Agent. Both serve troubleshooting and defence against attacks; they are rotated daily and deleted after 15 days at the latest.

Integrator report (no fixed deletion date)

Once a day a script reads the tier-1 log of the last 24 hours and writes a report file on the server listing the IP addresses that made unusually many or programmatic requests: IP address, request counts (total, MCP, REST), client class, most frequent User-Agent, data volume, number of distinct paths, time span of access and the flags raised. Purpose: detecting commercial use and defending against abuse. We keep these reports with no fixed deletion date. Notifications sent to us carry no IP addresses.

Automatic blocks (24 hours)

Network ranges from which decisions are exported in bulk within a short time are blocked from the export by a script for 24 hours. The script reads the tier-1 log for this; only the blocked range (e.g. 203.0.113.0/24) is recorded, with its expiry. On expiry the script removes it from the block list; the server’s system journal keeps the block as an event.

System and security logs (at most five weeks)

Like every server, ours keeps system logs. SSH login attempts (auth.log), connections blocked by the firewall (ufw.log, also in the general system log) and the bans fail2ban imposes after repeated failed SSH logins (fail2ban.log) each record the IP address and time. These logs are rotated weekly and deleted after at most five weeks. The same events also go to the system journal (journald), which deletes entries after 14 days at the latest. Until 10 November 2026 the API server also wrote its access lines (IP address, time, requested address) to the system log and journal; we removed them from the system logs on 10 November 2026, and those still in the journal will be deleted by 24 November 2026.

Cost and abuse control

Two separate systems are at work here. First, per-IP daily limits for LLM-backed endpoints (attest, verify-claim, check_claim_support and others): IP address, endpoint and call count per day are recorded. No automatic deletion currently applies to these counters. Second, a per-call cost ledger: it holds a daily-rotating pseudonym of the IP address (never the address itself), the tool called, and the cost of the call. Retention: 90 days on the serving systems. Entries from 24 August to 9 November 2026 are also kept for a limited period in an access-restricted private archive, to improve the quality of our functions; those from 24 to 26 August 2026 still carry the plain IP address there. Purpose of both systems: daily limits, cost control, defence against and documentation of commercial abuse. Higher limits: team@jonashertner.com.

Search-quality traces (30 days)

To measure ranking quality (BM25, cross-encoder, Haiku rerank) we log candidate ids and timings per search; Haiku-rerank entries additionally carry the first 200 characters of the query text. This record holds no IP address and no session id; the result_set_id it carries can, when full capture (above) is on, be joined to a session-linked fetch event from the same day. Retention: 30 days, then deleted automatically. Entries from 20 July to 19 August 2026 are kept for a limited period in the same private archive, to improve the quality of our functions.

AI processing via the Anthropic API (per request)

Several functions send text to Anthropic's API (api.anthropic.com, Claude models) for processing at request time: query parsing, query expansion and re-ranking of search results send the query text and short excerpts of the candidate decisions; check_claim_support sends the submitted claim together with the passage it is checked against; attest_response with audit_grounding=true sends the sentences around each citation together with the cited Erwägung; the Word add-in's Verify, Ground and Mirror features (/billing/verify, /billing/find-support, /billing/reflect) send the selected text or the document text; Audit (/attest) and Strengthen stay on our server. All five Pro endpoints receive the text only after the add-in has replaced nine categories of personal data with placeholders (e-mail, AHV number, IBAN, UID, phone, date of birth, address, postal code/city, titled names; pattern-based, no guarantee of completeness — scope and limits at word.opencaselaw.ch/privacy.html); the server re-checks the five structured patterns and otherwise rejects the request. Never sent: IP address, session id, client class, or any identifier. The transmission is subject to Anthropic's commercial API terms and privacy policy; retention at Anthropic is not under our control. On our side we record per call the model, token counts and cost (see cost ledger above), and for re-ranking the first 200 characters of the query (see search-quality traces). Legal basis: performance of the requested function; these functions cannot run without this processing.

Lookups at LexFind and Fedlex

For cantonal legislation the server queries LexFind (lexfind.ch, the directory of cantonal law) depending on the request: the search term, the canton and, where applicable, the act’s identifier are sent. Federal legislation is fetched from Fedlex (fedlex.admin.ch) when needed; only the address of the requested act is sent. In both cases the request comes from our server, without the IP address, session id or any other identifier of the person who asked.

Tier 2 — tier2.log (14 days, no personal data)

Contains only class labels: client class (e.g. “cursor”, “claude_hosted”, “word_addin”), endpoint class (e.g. “rest_search_decisions”), HTTP status, response time, response size and, if the Word add-in sends it, the 8-character cohort hash that changes every month (§04). No IPs. No User-Agents. No query strings. No referer. This file is structurally incapable of identifying a person. Retention: 14 days as a safety net, then deleted.

Tier 3 — analytics.db (forever, aggregated & private)

Daily aggregates per (client class, endpoint class). No per-user rows, no finer-than-daily granularity. Cells with n < 10 are suppressed in the public column. Published counts carry Laplace noise at ε = 1.0 (formal (ε, 0)-differential privacy). What is published from it is the values in stats.json (§03), not the file itself.

Unique-user counts (counting sketch)

To determine daily and monthly numbers of unique direct consumers, IP addresses are hashed in memory only, with a rotating secret, and fed into a HyperLogLog counting sketch. Only sketch registers and totals reach disk; they mathematically cannot reveal whether any particular address was present. The secret is deleted at each day and month boundary, which also rules out any after-the-fact linkage across windows. Also in memory only, and only for the life of the window, the program judges from the pace, rhythm and kind of requests whether an address more likely belongs to a person or to a program; only the result is kept, as a count.

Microsoft 365 Copilot agent (/mcp-edu)

The OpenCaseLaw agent for Microsoft 365 Copilot calls its own endpoint, /mcp-edu. For requests through this endpoint there is no full capture (no query text, no session id, no model training), no search-quality traces and no per-IP cost ledger. What remains is the tier-1 log with the reports and blocks derived from it and the daily limits (here with Microsoft’s IP address), tiers 2 and 3 without personal data, and cost accounting without IP address or query text (model, tokens, cost). Query analysis and re-ranking via Anthropic and the lookups at LexFind and Fedlex work as described above.

Website: GitHub Pages

The static pages of opencaselaw.ch are served by GitHub Pages (GitHub, Inc., USA). In doing so GitHub processes your browser’s IP address to deliver the pages and fend off attacks; GitHub’s privacy statement applies. We receive no access data from GitHub. We serve fonts and scripts ourselves. The one exception is Microsoft’s Office.js library, which the Word add-in, like every Office add-in, loads from Microsoft’s servers (appsforoffice.microsoft.com) when it starts in Word. Search, the API and the MCP server (mcp.opencaselaw.ch) and the Word add-in (word.opencaselaw.ch) run on our server at Hetzner in Germany.

The rollup code is open source and auditable: scripts/rollup_analytics.py. The nginx logging config is at ops/nginx/ocl-logging.conf, the retention settings at ops/logrotate/.

§03 Aggregation & DP

What we measure, and how

We measure only what is necessary for operational decisions — and we measure it at aggregate level, never per user. The following metrics are computed nightly and published at opencaselaw.ch/stats.json:

  • Requests over the last 30 days, broken down by client class and endpoint.
  • p50 and p95 response time per endpoint.
  • Error rate per endpoint (4xx, 5xx, 429).
  • Approximate active installations per client class (via a HyperLogLog sketch that rotates monthly).
  • HTTP status distribution across all requests.

What we never collect

  • Permanent individual profiles — no IP address with requests, no user account, no link between a session and a person. During the evaluation period, requests within the same session are linked to one another; how long those raw records are kept is at the developer’s discretion and follows the stated purposes. What is kept permanently carries no session or personal reference.
  • Profiles of which decisions or laws a specific person looks up. The tier-1 log does hold the requested path for 72 hours, but it is not analysed for that.
  • Raw IP addresses in aggregates or Tier-3 data.
  • Full User-Agent strings beyond 72 hours (only the class), except the most frequent User-Agent of flagged addresses in the integrator report and the catch-all server’s log (§02).
  • Referer header — would reveal which chat or document a tool was called from. Exception: the catch-all server’s log, which holds only redirected or rejected requests (§02).
  • Fingerprinting (canvas, fonts, WebGL, audio) — never, under any circumstances.
  • Linking Stripe customer data (Word add-in Pro) to usage data.

§04 Word add-in

Word add-in — a special case

The Word add-in is the only part of OpenCaseLaw that optionally sends an install cohort hash so we can estimate the approximate number of active installations per month. The mechanism is deliberately built so that cross-month tracking is cryptographically impossible:

  1. On first run, the add-in generates a random UUID and stores it locally in localStorage.
  2. On every API request it computes SHA-256(uuid + "YYYY-MM") and sends the first 8 hex chars as an X-Install-Cohort header.
  3. The monthly salt changes each month. April and May hashes are cryptographically unlinkable — even if we kept all hashes forever (which we don’t).
  4. We use these hashes only to fill a daily HyperLogLog sketch per client class; they sit in the tier-2 log for 14 days. The sketch yields an estimated count — the input values are not recoverable from it.

Opt-out: in the add-in menu under “Settings → Anonymous usage signal” you can disable this header at any time. The add-in works identically without it.

Pro subscriptions are handled by Stripe. OpenCaseLaw sees only the license key and matches it during Pro requests. There is no link between Stripe customer data and usage statistics.

§05 Suggestions

Suggestions through the form

Sending a suggestion at opencaselaw.ch/vorschlag transmits the text, the chosen kind and, if you give one, an e-mail address. Recognisable personal data (names after a title, AHV numbers, IBANs, phone numbers and more) is already replaced by your browser; the server checks a second time. We use the e-mail address only to write to you personally when the status changes.

Against abuse we keep, instead of the IP address, a hash formed with a secret key and the day’s date: it cannot be linked across days or traced back to the address. Suggestions are not published and not used to train models. On request we delete a suggestion together with the e-mail address; tell us its number or status link.

While you type, the page looks for matching material in the collection. To do so it sends up to three keywords from your text, after removing recognised personal data, as ordinary search requests to the public API; they are handled like any other request (§02). The suggestion itself is only transmitted when you send it.

§06 Your rights

Your rights (nFADP / GDPR)

The revised Swiss Federal Act on Data Protection (nFADP, in force since September 2023) and the European GDPR grant you rights of access, rectification, and deletion. OpenCaseLaw keeps no user account and no persistent identifier that automatically links a request to a person. That limits what we can attribute to you in practice, but it does not remove these rights:

  • Right of access: without an account or persistent identifier, we generally cannot connect a request to you on our own. If you give us your session id, an approximate time and the tool used (for example from your own client logs), we search the systems described in §02 for matching entries and tell you what we find.
  • Right to deletion: entries that can be attributed to you this way are deleted on request, to the extent deletion is technically possible in the system holding them. If you installed the Word add-in, uninstalling it additionally removes the local install UUID from your device.
  • Portability: where entries can be attributed to you, we provide them on request in a common format.
  • Objection: you can object to the 72-hour Tier-1 logs by not using the services; an exception is technically impossible, because web servers must log requests in order to respond to abuse. For the other systems described in §02, send your objection to the contact address below.

Data controller under the nFADP: Jonas Hertner, email team@jonashertner.com. Servers are operated by Hetzner Online GmbH in Germany; the static pages of opencaselaw.ch are served by GitHub Pages (§02).

§07 Contact

Questions, concerns, audits

Every mechanism described here is open source and auditable in the GitHub repository. If you spot a discrepancy between this page and the system’s actual behaviour, treat it as a bug — report it and we will fix it.

Email: team@jonashertner.com
Privacy questions get a reply within a few days.

Last updated: 2026-11-10 · Versioned in Git, changes publicly visible.