← Back to Skills

Data classification: one vocabulary for policy and enforcement

other part is the [retention schedule](retention-schedule.md)). Voyager launch row 19. Part of the [WISP](wisp.md).

Commandplatform

About

other part is the [retention schedule](retention-schedule.md)). Voyager launch row 19. Part of the [WISP](wisp.md).

Skill Content

This is the raw markdown that gets installed as a Claude Code command.

---
name: tawa-data-classification
description: "Data classes C0-C4 (public to secret), what each may do (logs, model providers, chain, non-prod), and known gaps. Use when handling NPI, FEINs, payment data, or deciding where data may go."
---

# Data classification: one vocabulary for policy and enforcement

**Status: DRAFT for Derek and counsel review (2026-10-22).** Issue: tawa-docs#162 (part 1 of 2; the
other part is the [retention schedule](retention-schedule.md)). Voyager launch row 19. Part of the
[WISP](wisp.md).

The aim: the word an auditor reads in a policy is the same word the code enforces. Today the platform
has two tier vocabularies that almost match. This page names five classes, maps each to both, and lists
what has to change to make them one.

## 1. The two vocabularies in code

| Where | Tiers (least to most restrictive) | Source |
|---|---|---|
| bio-api and SpiceDB (`bio-authz`) | `public` → `profile` → `standard` → `sensitive` (relations `read_public`, `read_profile`, `read_standard`, `read_sensitive`) | `iec-bio-api/schema/schema.zed` v1 |
| bio-vault question sensitivity | `public` → `standard` → `sensitive` → `pii` (default for an unclassified question: `sensitive`) | `iec-bio-vault/src/lib/sensitivity.ts` |

They differ in two places. SpiceDB has `profile` and no `pii`. The vault has `pii` and no `profile`.
**GAP:** unify them. Proposal: keep the SpiceDB names and add `secret` as a non-readable class; map the
vault's `pii` to `sensitive`. Owner: agent (iec-bio-api, iec-bio-vault). Until then this page's mapping
table is the reference.

## 2. The classes

| Class | SpiceDB tier | Vault tier | Meaning |
|---|---|---|---|
| **C0 Public** | `read_public` | `public` | Safe for anyone, including anonymous callers. |
| **C1 Profile** | `read_profile` | `public` / `standard` (no match) | Business identity an appointed or related party may see. |
| **C2 Standard** | `read_standard` | `standard` | Underwriting and book facts shared inside a relationship. |
| **C3 Sensitive (NPI)** | `read_sensitive` | `sensitive`, `pii` | Non-public personal or financial information. Highest care. |
| **C4 Secret** | none: never readable through the Bio API | none | Credentials and keys. Lives in the Locker or Vault, never in a record. |

## 3. What belongs in each class

| Class | Examples on this platform |
|---|---|
| **C0** | Agency name, city, state, zip, website, description, public phone and email (the registry publishes these on purpose, `PUBLIC_PROFILE_KEYS`); the active states and verified badge of a licence (not the licence numbers); `descOfOperations`; anchored Merkle roots and explorer data; marketing copy. |
| **C1** | Agency profile fields past the public list; program and appointment records; appetite guides; carrier and MGA names; org branding; licence evidence (numbers, lines of authority). |
| **C2** | Policy facts without personal identifiers; loss history summaries; class and payroll; premium by line; underwriting answers marked `standard`; deal state. |
| **C3** | An insured's name and contact with their policy; FEIN; bank and card references; premium-finance agreement terms and installment schedules; loss runs naming claimants; signed documents; claim details; DOB and any SSN; Senior.bio profiles (a family member's records about a senior, `profile.senior`); the E-SIGN consent record; mailing addresses. |
| **C4** | OAuth client secrets, `BIO_SERVICE_KEY`, Locker items, Vault tokens, `CONFIG_ENCRYPTION_KEY`, SSH keys, chain signing keys, API keys for FWD, FinancePro, SendGrid, Lob and Anthropic, persona and access tokens. |

Rules for deciding:

- **Unsure means one class up.** The vault already defaults an unclassified question to `sensitive` for this reason: a withheld answer is loud and fixable, an exposed one is not.
- **A FEIN is C3**, even though it is a business identifier. It is a taxpayer id and the public registry must not serve it. `identity.fein` is `isPublic: false` in the agency Bio field list, and the entity matcher has `maskFein`.
- **Combining raises the class.** A C2 loss history joined to a named insured is C3.
- **Free text is the highest class of anything it might hold.** Notes, uploaded PDFs and extraction output are C3 unless a person has classified them.

## 4. Handling rules per class

| | C0 | C1 | C2 | C3 | C4 |
|---|---|---|---|---|---|
| Who may read | Anyone | Related or appointed party through SpiceDB | Same org or appointed party; insured `self`; granted scope | `self`, platform admin, org members with `grants_sensitive` | Only the service the Locker item is bound to |
| Where it may live | Anywhere | Prod databases, bio-vault | Prod databases, bio-vault, bio-ingest | Prod databases and MinIO on the platform; backups; **not** logs, tickets, chat, tests, fixtures or non-prod | Locker, Vault, builder managed secrets (AES-256-GCM) |
| Encrypted in transit | TLS at the edge | TLS at the edge; VPC links plaintext today | same | same, **GAP** (see WISP §3.2) | Locker → builder over TLS; never through a terminal |
| Encrypted at rest | n/a | Unconfirmed | Unconfirmed | **GAP: unconfirmed** for volumes, MinIO and the off-site droplet; application-level encryption of C3 fields does not exist | AES-256-GCM in the config store; Locker model per its encryption doc |
| Logs and audit | May appear | IDs only | IDs only | **Never in a log line, error message or Septor payload.** Use an id or a masked value (`maskFein`). | Never. A test scans for `eyJ` after persona runs. |
| Model provider (Anthropic) | Yes | Yes | Yes | Only through the purpose-built paths (iec-extract, iec-loss-run), with a human confirming every money field, the source PDF stored and every answer logged. **GAP:** written zero-retention terms from Anthropic. Owner: Derek. | Never |
| On a public chain | Roots and hashes | Hashes only | Hashes only | **Never**, not even hashed on its own: a hash of a low-entropy value (phone, FEIN, SSN) can be guessed. Anchor Merkle roots of batches. **GAP:** confirm what `pbc-chain-anchor` hashes before launch. Owner: agent. | Never |
| Non-prod | Yes | Seeded fixtures | Seeded fixtures | **Never real data** in sandbox, UAT, previews or local dev | Never |
| Email and SMS | Yes | Yes | Yes | Avoid. Send a link to sign in, not the data. BCC copies are stored in relay logs. | Never |

## 5. How it is enforced today

- **SpiceDB** answers "may X read Y at tier T" and fails closed (200 ms timeout, error, or an open circuit all return `503`, no data). A caller without permission gets `404`, not `403`.
- **Projection** at each tier is an allowlist; sensitive and internal keys are removed at any depth. The record type must match the type that was checked.
- **Public agency reads** serve only `PUBLIC_PROFILE_KEYS` (email, phone, website, city, state, zip, description, `eoExpiresAt`, a narrowed `license`) and a single `bioFormSheet` key (`descOfOperations`). The code comments record that contact detail is public on purpose.
- **`profile.bioFormSheet` on an entity** is a denormalised copy of legacy Q&A that carries no tiers. The public path picks one key from it for exactly that reason. Any new path that returns the blob whole leaks underwriting answers.
- **Agency access after a claim.** The filing agency keeps access when the insured claims. The insured can revoke it with 90 days' notice (`represents_revoking` carries the expiry).
- **Personas** are a separate subject type and can never hold platform power.

## 6. Known gaps

| # | Gap | Owner |
|---|---|---|
| 1 | The 3 Oct review reported public reads exposing FEINs and external ids. A read of `origin/main` on 22 Oct finds neither on the public whitelist, so the leak is **not reproduced in code**. It has not been probed on prod. Probe an anonymous `GET /v1/entities/:iecHash` and the registry pages for FEIN, `externalIds` and legacy `bioFormSheet` keys, and record the result here. | agent |
| 2 | Two tier vocabularies (section 1). | agent |
| 3 | Legacy callers (ballantyne, byte-mga, bd-cliselect, bd-servemga) apply their own rules, not SpiceDB. Their classification is whatever each app's code does. Cut-over is tracker row 26. | agent |
| 4 | No scanner looks for C3 or C4 values in logs, Septor payloads, tickets or fixtures. | agent |
| 5 | Encryption at rest unconfirmed (WISP §3.2). Public copy must not claim it until it is. | Derek |
| 6 | No data inventory. Which collections hold C3 is known to each owner and written nowhere. The system-of-record matrix (tawa-docs#165, tracker row 7) is the place to add a class column. | agent + Derek |
| 7 | Privacy-rights requests (access, deletion) have no process. Retention duties and deletion rights conflict (see [retention schedule](retention-schedule.md) §5). Counsel to rule. | Derek + counsel |
| 8 | The Agency Owner Snapshot strips names, addresses, FEINs and policy numbers in the browser before upload (ask-jefferson #332). That control is not built (status Open). Until it ships, an uploaded book is C3. | agent |

## 7. Common mistakes

- Putting a FEIN, a bank account or a claimant name in an error message "to help debugging".
- Logging a request body. Redaction covers named headers and keys, not free text.
- Seeding a sandbox with a copy of prod.
- Treating a hash as safe. A hash of a guessable value is the value.
- Sending a raw carrier PDF to a model outside iec-extract.
- Calling a field C2 because it is "just business data". Ask what it identifies.

## 8. Cross-links

[WISP](wisp.md) · [Retention schedule](retention-schedule.md) · [Incident response](incident-response.md) ·
[Locker](locker.md) · [Claude access](claude-access.md) · [Septor](septor.md) · [Passport & branding](passport-branding.md).

Install

Copy the skill content and save it to:

~/.claude/commands/tawa-data-classification.md
Download .md

Coming soon via CLI:

tawa chaac install tawa-data-classification

Details

Format
Command
Category
platform
Version
1.0.46698
Tokens
~2,429
Updated
2026-11-25
platformcompliancesecuritydata-classificationspicedbnpivoyager