run_legal_exposure_review
Find where a codebase creates legal exposure (privacy, consent, data handling).
Spawns a one-shot review machine that reads the checkout offline and maps
what the code DOES onto commonly cited legal obligations, filtered by the
project's saved compliance profile (jurisdictions plus eleven product
facts). Findings land on the project's Legal page for a human to triage,
and you read them with get_legal_exposure_findings. No change is ever
applied automatically.
THIS IS NOT LEGAL ADVICE AND IT IS NOT A LEGAL CLEARANCE. The result
carries a `disclaimer_md` field: repeat it to the user before you summarise
anything. The review is not exhaustive, so an empty result is never proof
that anything is in order.
Requires a saved compliance profile (409-shaped refusal without one),
a plan that carries the feature, and the project on the operator allowlist.
Billable; one review in flight per project. Every refusal comes back as
`ok: false` with an actionable `next_step`, and starts nothing.
Rate-limited per workspace.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |