Worked example: a district privacy request
The steps a tutoring vendor runs when a district privacy officer asks for one student's agent interactions, evidence of redaction before storage, and proof the records weren't altered, and where the district's and vendor's own duties take over.
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.
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/coreis a0.0.1placeholder on npm today, and no package these steps use has a published release yet.
Example: one student's tutoring records. A vendor runs a tutoring agent for
one district on educationAgent, 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.
- Show that the records are scoped to this district. The vendor builds one
educationAgentper district, anddistrictIdis stamped on the runtime tag. Ledger queries take it astenantId(Per-district tenant + cost-cap). If you applied the tenant RLS tier, show theauditRlsPolicies()report from your CI (Tenant isolation). - Find the student's chats in your own records. The runtime tag records the
optional pseudonymous
studentId, butqueryAuditfilters by tenant, chat and time, not by student. Your application maps the student to chat ids (Config reference). - Run
queryAuditwithtenantIdand eachchatId, plusfromandtofor the date range. A page with afromfilter readsincompleteat best, so keep each page'schainStatusand page on withcursor(Audit ledger). - Run
verifyAuditTrailfor each chat. It walks the chain from its first row and is the only check that can returnvalid. ReportchainStatus, notchainValidalone (Proving the audit trail is intact).createPgAuditStoreandcreateSqliteAuditStoresupply the store for a Pleach event log. - Show the redaction configuration.
createStudentSafetyScrubberredacts student ID numbers, grade bands, school-issued emails and labeled parent contact lines to[STUDENT], plus anyextrapatterns you added (Student safety). The stored user message is the redacted text. Each scrub returnsmatchedScrubberIds, which names the pattern that fired if your ledger keeps it. - Show which profile ran. The runtime tag carries
requestedProfileandmappedProfile, so the officer can see thegdprbundle ran becauseferpa+coppawas requested (FERPA / COPPA scope). - Hand over
exportAuditPdfoutput built from theverifyAuditTrailresult. PasschainStatusandverifiedFrom, or the badge never reads VALID. The audit-report surface is beta, andpdfkitis an optional peer you install (Audit ledger).
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).
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).
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).
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
- Education: the landing page.
- Student safety: the shipped scrubber and how to extend it.
- Per-district tenant + cost-cap: per-district construction and ledger scoping.
- Audit ledger: the hash-chained event log.
Per-district tenant + cost-cap
Composing educationAgent per-district with hard cost ceilings enforced at the gateway boundary via @pleach/gateway/swarm's CostCeilingMiddleware, plus audit ledger scoping by districtTenantId via @pleach/compliance/audit.
Redistribution rights
What FSL-1.1-Apache-2.0 lets you do when embedding Pleach into your commercial product, the per-SKU license matrix, and the 2-year Apache 2.0 transition.