Skip to content

OPP architecture

OPP is an open standard for describing what a company treats as private or confidential, and an open toolkit that builds that description from the company's own data and answers agents' questions about it. It is to privacy what Apache Ossie is to metrics: a vendor-neutral representation that any tool can read.

The problem

Agents and AI tools move company data around: they query databases, read documents and send text to cloud models. None of them knows what this particular company considers confidential. Privacy rules live in people's heads, policies written in prose, and scattered catalog tags. Existing semantic standards (Apache Ossie) and ontology generators (NVIDIA Auto Ontology) describe what data means; they carry at most a yes/no PII flag, and Ossie's own issue tracker (#55, #58, #59,

87) asks for a privacy representation that does not exist yet.

Three parts

   any source                     privacy model                    any agent
 ┌─────────────┐   generate   ┌──────────────────┐    serve     ┌─────────────┐
 │ databases   │ ───────────► │  <org>.opp.yaml  │ ───────────► │ MCP / HTTP  │
 │ files, docs │   (local)    │  + catalog       │  (local)     │ check,      │
 │ web pages   │              │  (the standard)  │              │ explain     │
 └─────────────┘              └──────────────────┘              └─────────────┘
       OPP Engine                 OPP Spec                       OPP Engine
  1. The standard (open-privacy-protocol repository). Three document kinds, YAML or JSON:
  2. Catalog: the shared vocabulary of classes (personal data, special categories, credentials, business-confidential), each with a default sensitivity and handling and its references to GDPR, HIPAA, PCI DSS and CCPA. One baseline catalog ships with the standard.
  3. Privacy model: one company's representation. It says which fields of which sources hold which classes, the company's own confidential concepts, its identifier formats and terms, and its sharing rules by destination.
  4. Mapping to Ossie: a privacy model can point at the fields of an Ossie semantic model, so companies that already maintain Ossie add privacy on top instead of describing their data twice.
  5. The generator (open-privacy-protocol-engine). Connects to a source, profiles it locally, classifies each field and document against the catalog, and writes a draft privacy model plus a review report. People review and certify the draft; certified entries are kept on the next run.
  6. The query engine (open-privacy-protocol-engine). Loads a privacy model and answers, over HTTP or MCP: "I am about to send this content to this destination: is it safe, and what in it is confidential?" It returns a verdict, the findings with their reasons, and a version that is safe to send.

Design rules

  • Nothing leaves the company. The generator reads sample values only to classify them and never writes a value into the model, the report or a log. The query engine runs next to the agent. Neither needs a network connection.
  • The standard does not depend on the tools. Any vendor can produce or consume a privacy model; the toolkit is one implementation.
  • Explainable. Every classification carries its evidence (a column-name hint, the share of sampled values matching a pattern, a detector) and a status (proposed or certified).
  • Stricter wins. When several entries apply to the same content, the strictest sensitivity and handling apply. A company model can tighten the baseline catalog, never loosen a class's references.
  • Pluggable detection. The query engine finds values with built-in rules (checksummed cards and IBANs, emails, phones, keys, the company's own identifier patterns and terms). A detector interface lets a machine-learning model add names, addresses, free-text categories and company-specific concepts. OPP Model, the project's open-weight model, is the reference detector.

Repository layout

Three repositories, one project:

Repository Part Holds Released as
open-privacy-protocol OPP Spec specification, JSON Schemas, baseline catalog, industry presets, examples, validator Python package open-privacy-protocol, versioned with the spec
open-privacy-protocol-engine OPP Engine connectors, generator, review report, query engine with HTTP and MCP servers, Docker image Python package open-privacy-protocol-engine and a Docker image
open-privacy-protocol-model OPP Model the open-weight model, its training pipeline, evaluation and model card ONNX model releases (opp-model-v1, ...)

The kit works without the model (rules only) and uses OPP Model when it is installed (open-privacy-protocol-engine[model]): names, addresses and organizations in free text, confidential topics without cue words, and the organization's own concepts matched by meaning. The model is trained only on synthetic and openly licensed data, never on any organization's data.

How Shadow uses it

Shadow is one product built on the standard, not part of it:

  • Hub onboarding runs the generator (or imports a company's existing privacy model) and turns the model into a Shadow policy: classes become kinds and categories, concepts become company categories, identifiers and terms carry over.
  • Shadow Core loads OPP Model like any other adopter and reports its findings as OPP class ids.
  • Shadow Core enforces. The query engine is for agents that ask; the proxy covers the ones that do not.

Path to Apache

The repositories start private under one account. Before any announcement: a trademark search on the name, a public repository with the Apache License 2.0, and two or three outside contributors. An Apache Incubator proposal then needs a champion and mentors from the ASF; the project may only call itself "Apache Open Privacy Protocol" once the incubator accepts it.