Skip to content
pleach
Compliance

Compliance · FDA Part 11 and ALCOA+

Topic summary of how Pleach mechanisms bear on FDA Part 11 and ALCOA+, whether each is on by default, and what your QMS provides.

Regulated reviews ask who did it, when, whether the record can be changed, and whether you can prove it. This page summarizes, by topic, the Pleach mechanisms that bear on Part 11 and ALCOA+.

Pleach is a library, not a validated system or a certification. Validation, procedures and signatures come from your quality management system (QMS).

Records live in a database you run. Pleach ships the adapters — Postgres, Supabase, SQLite, a file, IndexedDB or memory — and writes session state through them (Storage). Call rows and the event log go to Postgres or Supabase, or to the SQLite or Supabase store; the file and IndexedDB adapters hold session state only. It operates no service and holds nothing for you, so the database, its backup and its archival design are your firm's. The runtime defaults to memory, so nothing survives a restart until you wire a durable adapter.

When the record is asked for

No regulation names an agent runtime or requires you to adopt one. Part 11 applies to the electronic records your predicate rules already require, whatever software writes them. The question usually arrives later, with a complaint, an inspection or a change to the model.

The record that answers it has to exist first. A trail can't be rebuilt for calls that ran before it was written.

Example: one patient's output across a model change. A team ships software as a medical device under a predetermined change control plan. A clinician questions the output the device gave one patient in March. Since then the team has shipped two modifications under the plan. The reviewer asks which version produced that output, and whether that version was an authorized change.

  1. Read the event-log rows for that patient's session in March. Each row carries the config-manifest hash that was active when it was written (Config manifest).
  2. Run npx @pleach/core audit changes <hash> --tenant <id>. The change record names the commit and its approvers, and reports whether its chain verified (Recording who approved a change).
  3. Read the call row behind each output for the provider and model that served it (The auditable call row).

Pleach records the change. It doesn't check that change against your plan, and it doesn't write the plan. Today the manifest hash covers the plugin set only, so two equal hashes don't prove the same prompts or model.

For what happened inside one turn, see the diabetes-coach worked example.

Topic summary

Two kinds of work stay with you. Setup is what any deployment does: run the database, schedule the passes, turn on the opt-in parts. QMS duties are what Part 11 and your predicate rules assign to your organization whatever software it runs, such as validation and signature procedures. The Your QMS's part column lists both. The Gap in Pleach column lists only what a runtime could carry and Pleach doesn't.

TopicWhat Pleach providesDefaultYour QMS's partGap in Pleach
ValidationChain verification and replay of recorded turns, usable as part of your validation evidence.Built inRisk-based validation of your configured system (CSV, GAMP 5), device checks, training, policies and documentation controls.—
Audit trailOne hash-chained row per model call, plus a chained event log. Every attempt writes a row, including aborts and errors. A turn whose row can't be stored ends with an error, not as complete, on the quickstart route, on a SessionRuntime for writes your emitter hands to the turn, and on a gateway call (details).Call-row chain on. Fail-closed writes on by default. Keyed chaining, anchors and time-stamp tokens opt-inAn anchoring schedule.A reason-for-change field, where your procedure asks for one.
Record integrity and protectionEach row is written once into your database and chained. The WORM tier makes the event log and call rows append-only for application roles.Chain built in. WORM opt-inThe database itself, its backup and a restore test, plus archival copies including cold storage. Limiting who holds table ownership and superuser access.—
SignaturesEach gate decision is a chained row recording who decided and when. Permission grants above read-only access are signed rows (experimental).Gates opt-in per toolYour signing system, and the meaning each signature carries.A signature made with the approver's own credential, with its meaning recorded.
Access and identityTenant-scoped audit queries, row-level security policies with a bundled audit, approval gates, and recorded permission grants.Opt-in. Identity recording built inYour authentication, identity provider, credential procedures and role assignments.An implementation of @pleach/rbac-contract.
Export and reviewAn audit query, plus report and PDF exports, in human-readable and machine form.Opt-inConfirmation that the export covers your record definition, and a signature on the exported file if your procedure requires one.A stable report format, since the export is beta.
RetentionRetention that removes data only after a period you set and skips anything under a hold.Opt-in, no default periodThe retention period, a scheduler, and an archival copy of the record.—

Limits by topic

Validation

  • Pleach does not validate your system. It supplies no device checks, training, written policies or documentation controls.

Audit trail

  • A rollback adds a row rather than removing history.
  • On Postgres, a committed chain head catches a removed tail by default. A table owner can rewrite the rows and the head together, so anchors or a copy of the head kept elsewhere are the stronger evidence (Detecting a removed tail).
  • Anchoring call rows is experimental.
  • An approval is a chained row that records who decided. A refusal no person gave is recorded as a policy decision, never under a person's name. What gates a tool lists the settings that raise a gate.

Record integrity and protection

  • Rows leave only through opt-in disposal that honours legal holds, and each outcome is recorded. The event-log retention pass refuses by default when the disposal record is missing.
  • The WORM tier constrains application roles. A table owner or superuser can still disable it, as the WORM page explains.

Signatures

  • Signed rows are signed with the install's key, not the approver's own credential, and they don't record what a signature means.
  • A gate decision records who decided as an erasable reference. Grants carry an approver reference that survives erasure of the person.

Access and identity

  • Pleach records the identity your host passes in. It does not identify users or manage credentials.
  • Permission grants above read-only access are recorded as signed ledger rows. Each gate decision is a chained row recording who decided.
  • Pleach ships no implementation of @pleach/rbac-contract yet, so you write one. You also provide the signing key for grants your own host writes.

Export and review

  • The report export is beta. The PDF export needs an optional dependency.

Time-stamping, in detail

Pleach can request a time-stamp token from an authority you choose and check it against your trust anchors. Scheduled time-stamping is experimental. See Attestation and the hash chain.

Other standards

The same mechanisms support requirements outside Part 11. Each is a mechanism, not a claim that your system meets the standard.

RegimeMechanismDefault
HIPAAAudit controls and integrity: the call-row and event-log chains. Access control: tenant-scoped audit queries and row-level security policies, checked by a bundled audit. Encryption: per-subject keys over personal fieldsChain on. Access control opt-in. Encryption opt-in, needs a KMS
GDPRMinimisation: the PII redactor on call rows. Storage limitation: retention with a period you set. Erasure: crypto-shredding that keeps the chain verifyingRedactor on. Retention opt-in. Erasure opt-in, needs a KMS
EU AI ActRecord-keeping: a row per model call, including attempts that end in an abort or error. Human oversight: approval gates, each decision a chained row. Log retention: rows in your own database, removed only by retention you scheduleRows on. Gates opt-in per tool. Retention opt-in
SOC 2Logical access: tenant-scoped queries and row-level security policies. Monitoring: the call-row chain and its verificationAccess opt-in. Chain on