DenialOS
Docs / AI and PHI data flow
IMPLEMENTED DOCUMENTED — PROVIDER APPROVAL REQUIRED
⏱️ 2 min read · 232 words

AI and PHI data flow

The current AI provider abstraction is backed by Anthropic when configured.

The runtime:

  1. resolves a scoped security context;
  2. resolves an enabled AI capability;
  3. enforces capability limits;
  4. requires minimum-necessary context;
  5. creates an authorization/context manifest;
  6. calls the configured provider;
  7. validates the output;
  8. records only control metadata and hashes in the context manifest.

Field classification and minimization

Context is not redacted by matching a list of names. Every field offered to a capability is classified before it can be sent:

ClassTreatment
Direct identifierdropped before provider access
Free textscanned for known identifiers, which are removed
Financialsent only where the capability's policy allows it
Coded clinicalpermitted as coded data, not free text
Non-PHIpermitted

Fields are classified explicitly rather than by keyword guessing. Patient names, subscriber and member identifiers, medical record numbers, dates of birth, contact details, and the account or guarantor number that identifies the person responsible for the bill are all treated as direct identifiers. Claim number, payer, and service date are classified explicitly instead of being redacted blindly.

Each AI capability carries its own policy, so the minimum-necessary context for one capability is not automatically available to another.

Important boundary

Redaction is not de-identification.

The repository does not establish provider BAA status, retention terms, or external telemetry behavior. Those are contractual/deployment prerequisites.