Skip to content

Random spot review of court filings. Each filter request is selected for human

Source: review-sampling.phisql (spec v1.3.0)

PhiSQL

-- Random spot review of court filings. Each filter request is selected for human
-- review with probability samplingRate, independent of what was detected, so a
-- reviewer also sees documents where a value was missed entirely. Selection is per
-- request and never changes the redacted output; the runtime reports it with the
-- filter result. REVIEW is matched contextually and is not a reserved keyword.
-- Added to schema 1.3.0 in place (additive). Compiles to review-sampling.json.

POLICY review_sampling;

REDACT SSN, CREDIT_CARD WITH LAST_4;
REDACT EMAIL_ADDRESS WITH REDACT;

CONFIGURE REVIEW (samplingRate = 0.25);

Compiles to

{
  "identifiers": {
    "ssn": {
      "ssnFilterStrategies": [
        {
          "strategy": "LAST_4"
        }
      ]
    },
    "creditCard": {
      "creditCardFilterStrategies": [
        {
          "strategy": "LAST_4"
        }
      ]
    },
    "emailAddress": {
      "emailAddressFilterStrategies": [
        {
          "strategy": "REDACT"
        }
      ]
    }
  },
  "config": {
    "review": {
      "samplingRate": 0.25
    }
  }
}