# Worked example: a district privacy request (/docs/use-cases/education/records-request)



A district privacy officer can ask a tutoring vendor for one student's agent
records, and Pleach answers part of that request from the audit ledger. This
page walks through the steps an operator runs and names what Pleach can't show.

<Callout type="warn" title="Self-assessed, not legal advice">
  Pleach's maintainers wrote this example. AI tools helped draft and check it.
  That check isn't legal, privacy or audit review. No lawyer, regulator, auditor
  or school district has reviewed it.

  * **This page is orientation only.** Nothing here is legal advice, and nothing
    here says any system meets FERPA or COPPA. Confirm each step with the
    district and your counsel.
  * **This page is vendor documentation.** The project it describes wrote it. It
    isn't your district's or your company's compliance record.
  * **The steps read the source, not your deployment.** `@pleach/core` is a
    `0.0.1` placeholder on npm today, and no package these steps use has a
    published release yet.
</Callout>

**Example: one student's tutoring records.** A vendor runs a tutoring agent for
one district on [`educationAgent`](/docs/use-cases/education), with
`complianceProfile: "ferpa+coppa"`. The district's privacy officer asks for
every agent interaction involving one student between January and March. The
officer also asks for evidence that the student's personal information was
redacted before storage, and that the records weren't altered.

1. Show that the records are scoped to this district. The vendor builds one
   `educationAgent` per district, and `districtId` is stamped on the runtime
   tag. Ledger queries take it as `tenantId`
   ([Per-district tenant + cost-cap](/docs/use-cases/education/per-district-tenant#per-district-runtime-construction)).
   If you applied the tenant RLS tier, show the `auditRlsPolicies()` report
   from your CI
   ([Tenant isolation](/docs/compliance#wiring-tenant-isolation-into-your-own-ci)).
2. Find the student's chats in your own records. The runtime tag records the
   optional pseudonymous `studentId`, but `queryAudit` filters by tenant, chat
   and time, not by student. Your application maps the student to chat ids
   ([Config reference](/docs/use-cases/education#config-reference)).
3. Run `queryAudit` with `tenantId` and each `chatId`, plus `from` and `to` for
   the date range. A page with a `from` filter reads `incomplete` at best, so
   keep each page's `chainStatus` and page on with `cursor`
   ([Audit ledger](/docs/audit-ledger#querying--exporting-the-audit-log)).
4. Run `verifyAuditTrail` for each chat. It walks the chain from its first row
   and is the only check that can return `valid`. Report `chainStatus`, not
   `chainValid` alone
   ([Proving the audit trail is intact](/docs/compliance#proving-the-audit-trail-is-intact)).
   `createPgAuditStore` and `createSqliteAuditStore` supply the store for a
   Pleach event log.
5. Show the redaction configuration. `createStudentSafetyScrubber` redacts
   student ID numbers, grade bands, school-issued emails and labeled parent
   contact lines to `[STUDENT]`, plus any `extra` patterns you added
   ([Student safety](/docs/use-cases/education/student-safety#what-it-redacts-today)).
   The stored user message is the redacted text. Each scrub returns
   `matchedScrubberIds`, which names the pattern that fired if your ledger
   keeps it.
6. Show which profile ran. The runtime tag carries `requestedProfile` and
   `mappedProfile`, so the officer can see the `gdpr` bundle ran because
   `ferpa+coppa` was requested
   ([FERPA / COPPA scope](/docs/use-cases/education/ferpa-coppa#what-you-get-when-you-pass-ferpacoppa)).
7. Hand over `exportAuditPdf` output built from the `verifyAuditTrail` result.
   Pass `chainStatus` and `verifiedFrom`, or the badge never reads VALID. The
   audit-report surface is beta, and `pdfkit` is an optional peer you install
   ([Audit ledger](/docs/audit-ledger#querying--exporting-the-audit-log)).

Two limits belong in the reply to the officer. `educationAgent` scrubs only the
user message, so assistant replies and other event rows are scrubbed only if
you compose a `ComplianceRuntime` and pass `host.modules.eventLogWriter`
([Composing your posture](/docs/use-cases/education/ferpa-coppa#composing-your-posture)).
And the scrubber matches identifier shapes only. A student's name isn't a
default pattern, and there's no per-student directory-information opt-out.

`valid` grades the rows the store holds. Evidence that no chat or tail row is
missing needs an anchored head per chain and per tenant, which you keep
([What you provide alongside `valid`](/docs/compliance#what-you-provide-alongside-valid)).

Pleach shows the rows weren't edited after they were written, and that the
scrubbed fields were stored in redacted form. The district's retention
schedule, the data-processing addendum, the school-official designation,
parental consent and the parent-of-record identity gate take over from there
([What you provide](/docs/use-cases/education/ferpa-coppa#what-you-provide)).
The vendor authors the response to the officer and owns its validation. There's
no FERPA or COPPA profile yet, so the `gdpr` bundle is a stand-in, not FERPA or
COPPA adequacy.

## See also [#see-also]

* [Education](/docs/use-cases/education): the landing page.
* [Student safety](/docs/use-cases/education/student-safety): the shipped
  scrubber and how to extend it.
* [Per-district tenant + cost-cap](/docs/use-cases/education/per-district-tenant):
  per-district construction and ledger scoping.
* [Audit ledger](/docs/audit-ledger): the hash-chained event log.
