# FERPA / COPPA scope (/docs/use-cases/education/ferpa-coppa)



This page is for the procurement conversation. Read it before signing a
district agreement that names FERPA or COPPA as the governing framework.

## TL;DR [#tldr]

The shipped `@pleach/compliance` profiles are
`"hipaa" | "gdpr" | "pci-dss" | "soc2"`. There is no `ferpa` or `coppa` profile.
The [`educationAgent`](/docs/use-cases/education) factory accepts `ferpa`,
`coppa` and `ferpa+coppa`, and applies the `gdpr` bundle as the closest shipped
analog. The runtime tag records the mapping and a `warn-once` notice prints to
your console. This is **not** full FERPA or COPPA adequacy.
[What you provide](#what-you-provide) separates your duties under the rules,
your setup, and what Pleach doesn't cover yet.

## What you get when you pass `ferpa+coppa` [#what-you-get-when-you-pass-ferpacoppa]

1. **The student-safety scrubber** runs on the user message before the runtime
   sees it. See [Student safety](/docs/use-cases/education/student-safety) for
   the patterns.
2. **The `gdpr` profile bundle** runs on top. Today it is `SsnUsScrubber` plus
   `CreditCardScrubber`; see
   [`compliantChatbot` config](/docs/recipes/compliant-chatbot). It stands in
   because FERPA and COPPA both lean on data minimization and identifier
   redaction.
3. **A per-session cost-cap policy** on the runtime (see
   [Per-district tenant + cost-cap](/docs/use-cases/education/per-district-tenant)).
4. **An audit ledger**, when you wire
   [`@pleach/compliance/audit`](/docs/audit-ledger). Scope it to `districtId`
   through `tenantId` for end-of-year retention review.
5. **Substitution transparency.** The runtime tag carries `requestedProfile` and
   `mappedProfile`, so a district auditor can see at row level that `gdpr` ran
   because `ferpa+coppa` was requested.

## What you provide [#what-you-provide]

Pleach supplies evidence. The rest is one of three kinds of work.

### Your duties under the rules [#your-duties-under-the-rules]

FERPA and COPPA place these on the school, the district or the operator,
whatever software runs.

* **Educational-record retention policy (FERPA).** Rules vary by state and
  district, so the schedule is yours.
* **Vendor data-processing addendums (FERPA).** You author the DPA.
* **School-official designation (FERPA).** That designation is contractual
  between you and the school.
* **Parental consent (COPPA).** Your consumer-facing application is the consent
  boundary.
* **Under-13 age determination (COPPA).** Your front door decides whether COPPA
  applies. Pleach treats every session the same.
* **Safe-harbor enrollment (COPPA).** Joining a COPPA Safe Harbor program is
  yours.
* **Student Privacy Pledge.** Signing it is yours.
* **Attestation reports.** The audit ledger supplies hash-chained evidence. You
  author the report and own the validation.
* **Model-provider terms.** Provider enterprise terms may not cover under-13
  data. Choose a provider whose terms permit education workloads.

### Setup [#setup]

* **Parent-of-record gating.** Your auth layer enforces the parent-of-record
  identity gate. The runtime tag records `studentId`. FERPA rights pass from
  the parent to the student at 18, or earlier when the student enrolls in a
  postsecondary institution, so the gate has to follow that change.
* **Ledger pruning.** Prune the audit ledger on your policy's schedule.
* **Provider routing.** Route education workloads to the provider you chose.

### Not in Pleach yet [#not-in-pleach-yet]

* **A FERPA or COPPA profile.** The factory applies the `gdpr` bundle instead,
  as [TL;DR](#tldr) explains.
* **Directory-information mediation.** The scrubber redacts on identifier shape
  and has no per-student opt-out. Until one ships, wire a pre-`ask()`
  classifier or a custom `Scrubber` against your opt-out registry.

## The profile-mapping notice [#the-profile-mapping-notice]

Constructing an `educationAgent` with a `complianceProfile` logs this once per
process:

```
[educationAgent] requested compliance profile 'ferpa+coppa' is
not yet shipped — mapped to 'gdpr' (closest shipped analog). See
module JSDoc honest scope-limit.
```

To route it to your audit ledger instead of stderr, wrap the factory and rewrite
`console.warn` for that construction call.

## Composing your posture [#composing-your-posture]

1. **Pre-`ask()` moderation.** Wire a moderation API or kid-safety classifier and
   reject the turn on a category flag.
2. **District-extended scrubber.** Pass an `extra` array to
   `createStudentSafetyScrubber` (see
   [Student safety](/docs/use-cases/education/student-safety)) for SIS IDs,
   locker numbers, or IEP filenames.
3. **Scrubbing persisted events.** `educationAgent` scrubs only the user message.
   To scrub every persisted event row too, compose a `ComplianceRuntime`
   directly, as [`compliantChatbot`](/docs/recipes/compliant-chatbot) does, and
   pass `host.modules.eventLogWriter`.

## Where to import [#where-to-import]

* `@pleach/recipes/education`: the substitution map and notice.
* `@pleach/compliance`: the `ComplianceRuntime` and shipped profile bundles.

## See also [#see-also]

* [Education](/docs/use-cases/education): the landing page.
* [Student safety](/docs/use-cases/education/student-safety): the shipped scrubber.
* [Per-district tenant + cost-cap](/docs/use-cases/education/per-district-tenant):
  multi-tenant composition for districts.
* [`compliantChatbot`](/docs/recipes/compliant-chatbot): the HIPAA / GDPR /
  PCI-DSS / SOC 2 sibling recipe.
* [`@pleach/compliance`](/docs/compliance): the full compliance reference.
* [Audit ledger](/docs/audit-ledger): hash-chained evidence for compliance review.
