Skip to content

Step 3 of 7: Generate the privacy model

Your model exists after step 2. Now add the other places your data lives. Each scan adds to the model in the folder; it never starts over.

opp-engine scan ./exports ./policies https://intranet.example/handbook

The four commands

Command What it does
opp-engine scan SOURCE... Reads the sources into the model. Sources scanned before and not named again stay exactly as they are. A source named again is read afresh and keeps the entries people certified. Concepts, terms and rules are never touched.
opp-engine sources Lists the sources in the model and what was found in each.
opp-engine remove ID... Takes sources out, by the id sources shows or by locator. Identifier formats that only they used go with them, unless certified.
opp-engine send LINK Sends the model to a Hub as a draft, with the link the Hub shows. scan SOURCE --hub LINK scans and sends in one go.

All four work on the .opp.yaml in the current folder. Name another with --model FILE.

opp-engine sources
opp-engine remove exports          # scanned the wrong folder? take it out
opp-engine scan ./exports-2026     # and scan the right one

Options of scan

Option What it does
--org, --name Your organization's name and the model's name. Asked for, or taken from the Hub, when the model is new; not needed afterwards
--industry A NAICS code (622110) or a preset (healthcare, finance, legal, hr, ...). The review report then lists the classes your industry usually holds that were not found
--report FILE Also write a Markdown review report for people to check
--sample N Rows or documents read per table (default 200, kept in memory only)
--hub LINK Send the model to a Hub when the scan is done
--no-opp-model Read with the rule detectors only

What you get

  • acme.opp.yaml, your privacy model. It lists each source, each field with the classes found in it (personal.email, special.health, ...) and a confidence, the topics of each document, and the evidence for each finding. Every entry starts as status: proposed. No data value is ever written into it. The last lines record which detectors read the data, for example detectors: rule detectors + OPP Model v1.
  • A review report, with --report review.md or later with opp-engine report acme.opp.yaml: the same findings as tables, for a person to read and decide.

The file is rewritten in a fixed layout on every scan and removal, so keep your notes in the model's description fields rather than in YAML comments.

In scripts

opp-engine generate writes a whole model from the sources named in one go, which suits a job that rebuilds the model from scratch:

opp-engine generate "$CRM_URL" ./exports --name acme --org "Acme" -o acme.opp.yaml --report review.md

Pass --merge acme.opp.yaml to keep what people certified or added. Sources not named are dropped; use scan when you want them kept.

Check that it worked

opp-engine sources
opp validate acme.opp.yaml
opp-engine explain acme.opp.yaml email

sources lists every source you scanned. opp validate prints ok. explain shows what the model now says about a field, a value format or a class, and the action for each destination.

Next: 4. Review and customize →