# Compliance · SEC and FINRA recordkeeping and supervision (/docs/compliance/sec-finra)



Broker-dealer examiners ask whether a record is complete, unaltered and
retrievable, and who reviewed it. This page summarizes, by topic, the Pleach
mechanisms that bear on the SEC books-and-records rules and the FINRA rules on
supervision, records and communications.

<Callout type="warn" title="Self-assessed, not legal advice">
  Pleach's maintainers published these grades. AI tools helped draft and check
  them. That check isn't legal, regulatory or audit review. No lawyer, regulator,
  auditor or registered firm has reviewed them.

  * **This page is orientation only.** Nothing here is legal advice, and nothing here
    says any system meets a rule. Confirm each topic with your compliance team
    and counsel.
  * **This page is vendor documentation.** The project it grades wrote it. It
    isn't your firm's compliance record.
  * **Pleach has no regulatory status.** It's a library. It isn't a registrant,
    a recordkeeping service or a certification.
  * **Grades read the source, not your deployment.** `@pleach/core` and
    `@pleach/compliance` are `0.0.1` placeholders on npm today, so no graded
    mechanism is available as a published release yet.
  * **Grades are dated.** Broker-dealer grades are dated November 8, 2026, and
    investment-adviser grades November 7, 2026. Rules change, so confirm current
    text with counsel.
</Callout>

Investment adviser recordkeeping is summarized in
[Investment advisers](#investment-advisers).

## Who this is for [#who-this-is-for]

* **Broker-dealers** adding agents to research, customer communications or
  back-office work.
* **Wealth and advisory platforms** running agents that act on rules a
  customer sets. See [Investment advisers](#investment-advisers).
* **Fintechs and agent builders** working on brokerage APIs or selling agent
  features to regulated firms, who get asked for the same evidence.

**Example: one client's drafted communications.** A firm's advisory agent
drafts client communications, and a gated tool publishes them. An examiner asks
for every agent-drafted communication to one client between March and June.
The examiner also asks whether each is complete and unaltered, and who reviewed
it before it went out.

1. Run `queryAudit` scoped to the firm's tenant over the date range. A page
   with a `from` filter reads `incomplete` at best, so grade each page
   `valid`, `incomplete` or `tampered` and keep the verdicts
   ([Audit ledger](/docs/audit-ledger#querying--exporting-the-audit-log)).
2. Run `verifyAuditTrail` on the client's chains. It walks each from the first
   row and is the check that can return `valid`
   ([Proving the audit trail is intact](/docs/compliance#proving-the-audit-trail-is-intact)).
3. Read the `message.assistant` row for each draft, or rebuild it with
   `messageProjection`. The text is the redacted form that was stored
   ([Event log](/docs/event-log)).
4. Read the gate decision on the publishing tool with `getInterruptChain`. It
   names who decided and when, if your host passed an actor id
   ([Query](/docs/query), [Interrupts](/docs/interrupts)).
5. Show the retention setting and any legal hold covering these chains
   ([WORM tier](/docs/worm)).
6. Hand over `exportAuditPdf` output, which is beta. It carries ledger rows,
   not message bodies, so the drafts travel separately.

Pleach shows the rows weren't edited after they were written. Your firm's own
books-and-records archive, its supervision procedures and its storage format
take over from there. The WORM tier isn't graded as non-rewriteable storage,
so a second copy and the format decision stay yours.

## How to read the grades [#how-to-read-the-grades]

| Grade            | Meaning                                                                                     |
| ---------------- | ------------------------------------------------------------------------------------------- |
| **Supports**     | A mechanism in the source is designed to support this topic. Your firm still owns the rule  |
| **Partial**      | A mechanism covers part of the topic. The row names the part it doesn't                     |
| **Not provided** | Pleach has no mechanism here, and the topic asks for one a runtime could carry              |
| **Firm duty**    | The rule places this on your firm's own systems or people. A library isn't where it belongs |

Two kinds of work stay with your firm, and neither lowers a grade:

* **Setup** is what any deployment does: run the database, schedule the
  passes, turn on the opt-in parts.
* **Firm duties** are what the rules assign to your firm whatever software it
  runs: a supervisory system, principal review, a second copy of the records.

The **Your firm's part** column lists both. The **Gap in Pleach** column lists
only what a runtime could carry and Pleach doesn't. A grade comes from that
column alone.

Grades assume one of two ways an agent takes part in a trade:

* **A. The agent acts itself.** It recommends an order and places it.
* **B. The agent recommends to a person.** A registered principal decides
  and places the order.

Grades assume A unless a row says otherwise. Pleach was built for an agent
that acts itself. A row that grades differently under B shows both, as
`A: … · B: …`.

There's no finance recipe or compliance profile yet.
The compliance plugin has profiles for HIPAA, GDPR, PCI DSS and SOC 2.
`@pleach/compliance` is beta in source, and attestation envelopes stay
unsigned until you wire a key store. The [compliance docs](/docs/compliance)
cover the API behind each row.

## Topic summary [#topic-summary]

Grades are self-assessed. They don't say any system meets a rule. Each grade is
the weakest grade among the requirements the topic covers.

| Topic                     | Grade                                             | Pleach provides                                                                                                                                                                                                                    | Your firm's part                                                                                                                                                                                                            | Gap in Pleach                                                                        |
| ------------------------- | ------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------ |
| Call record (audit trail) | Partial                                           | Hash-chained call rows, so a changed row is detected. The [WORM tier](/docs/worm) records each disposal outcome.                                                                                                                   | The database the rows live in, and a second copy. Communications in other channels. Order terms, written to your own order table.                                                                                           | Change history. Order-specific fields, such as a discretionary designation.          |
| Change protection         | Not provided                                      | Opt-in database triggers that block changes while enabled.                                                                                                                                                                         | Turning the triggers on. Limiting who holds table ownership and superuser access. Deciding whether your storage is non-rewriteable, with media, backup and redundancy design.                                               | Writes to object-lock storage.                                                       |
| Verification              | Supports                                          | On-demand checks of stored rows. [`@pleach/eval`](/docs/eval) compares test reports. A change made through a gated tool leaves a chained decision row naming the reviewer who approved it.                                         | A schedule and alerting for the checks, and reconciling stored rows against the calls that ran. Strategy testing, and approvals for changes your team deploys outside the agent.                                            | —                                                                                    |
| Export                    | Partial                                           | Readable and machine exports of what the ledger holds.                                                                                                                                                                             | The optional dependency for PDF export. Undertakings your firm files, and access to records an outside entity holds.                                                                                                        | Message bodies in the export. A stable report format, since the export is beta.      |
| Retention and erasure     | Partial                                           | Opt-in [erasure](/docs/compliance/gdpr-erasure) and retention passes.                                                                                                                                                              | Your retention schedule, and a scheduler that runs the passes.                                                                                                                                                              | Periods by record class. An erasure check against the retention period.              |
| Human review              | A: Partial · B: Supports                          | An approval gate that holds a call, such as placing an order, until someone decides, recording who decided and when. `resolveGateReviewer` (experimental) binds a gate to an outside reviewer. See [Interrupts](/docs/interrupts). | A gate on each tool that needs review. `runtime.tools.listByApprovalRequired(false)` lists the tools without one. Sampling, principal review after execution, and registration. Under B, the principal's decision to place. | A: gates on incoming and internal communications.                                    |
| AI-agent oversight        | Partial. Model version tracking alone is Supports | One typed record per model call, failed attempts included, with provider, model and time.                                                                                                                                          | The database for those records, and their review. Your AI policy, monitoring and model inventory.                                                                                                                           | The reasoning text the provider returns. Only its size and token count are recorded. |

### Limits that apply to every topic [#limits-that-apply-to-every-topic]

* **Records live in a database you run.** Pleach ships the adapters — Postgres
  with any pg client, Supabase, SQLite, IndexedDB or memory
  ([Storage](/docs/storage)). Call rows and the agent's own message bodies go
  to Postgres or Supabase, or to the SQLite or Supabase store; the IndexedDB
  adapter holds session state only. It operates no service and holds nothing for you,
  so the database, its backup and its media design are your firm's. The runtime
  defaults to memory, so nothing survives a restart until you wire a durable
  adapter.
* Call rows are not a message archive. The agent's own message bodies are
  written to the event log, so the event log sets how complete your prompt and
  output logs are. Communications in other channels — email, chat, anything a
  client sends elsewhere — have no ingestion path here.
* Gates and database triggers are opt-in. A tool with no gate runs without one.
  `runtime.tools.listByApprovalRequired(false)` lists those tools, counting
  the names your interrupt config gates. An `interruptOn` predicate decides
  per call, so the list flags it as `hasPredicateGate` instead; see
  [What gates a tool](/docs/interrupts#what-gates-a-tool). Nothing checks
  that list for you, reconciles stored rows against the calls that ran, or runs
  either check on a schedule.

### Limits by topic [#limits-by-topic]

**Call record**

* No amendment history. An altered or deleted row can't be re-created from the
  ledger.
* An owner or superuser who disables the triggers can edit a row without
  leaving a trail, and the chain can't restore the original.
* Default redaction rewrites some text before a row is stored. Review whether
  that fits your duty to keep the original.
* Pleach has no order model. Under A, the call that places an order names the
  agent and the time but keeps no order-specific fields. Its arguments are kept
  in full only when a reviewer edits the gated call. Write the order terms to
  your own order table. Under B, the order ticket and the principal who placed
  it are yours.
* You also provide communications that happen outside the agent, including
  internal messages, since nothing here ingests them.

**Change protection**

* A table owner or superuser can disable the triggers.
* Triggers reduce risk. We don't grade them as a non-rewriteable format.
* Opt-in disposal can remove rows during a retention period.
* The tier is Postgres only, and Pleach doesn't write to object-lock storage.
* Rows live in your database, so backups follow your database setup.
* Whether the format meets your records duty is your decision.

**Verification**

* Detecting a removed tail needs a recorded chain head, or anchors (see
  [Detecting a removed tail](/docs/hash-chain#detecting-a-removed-tail)).
* Nothing runs these checks on a schedule for you.
* `@pleach/eval` tests agent output, not order flow or market conditions.
* A change made through a gated tool leaves a chained decision row naming the
  reviewer. Changes your team deploys outside the agent need your own approval
  record. For trading strategies you provide testing, change process, test
  records, code archive and a way to disable the strategy quickly. Ask counsel whether an agent counts as an
  algorithmic strategy.

**Export**

* The report export is beta, and the PDF export needs an optional dependency.
* Pleach writes records to a database you run, not to a service its maintainers
  operate, so your database or cloud vendor may be the outside entity that holds
  your records.
* You provide the undertakings your firm files, the people it designates for
  them, and independent access to records held by an outside entity.
* The export covers ledger rows, not message bodies. Those come out of
  session storage.

**Retention and erasure**

* An erasure request refuses under an active legal hold but doesn't check a
  retention period.
* Retention removes data only after a period you set and skips legal holds.
* A pass works on whole chains or sessions. There's no period per record
  class, and pruning of saved run state doesn't check holds.
* You provide a rule that keeps erasure away from records you must retain.

**Human review**

* A gate doesn't reach incoming or internal communications. Pleach doesn't
  sample.
* By default the turn's own actor decides. The gate refuses the call if
  nobody answers within a set window.
* A host callback can name a different reviewer per gate, and a gate whose
  reviewer is the same actor the call would be reviewed for is refused. The
  callback is experimental, and it names who may decide, not who may answer.
  Answering is bound to the turn's approver: the one-time credential is issued
  only on the stream that raised the gate, to the actor `approverOf` names. A
  gate bound to someone `approverOf` doesn't also name ends unanswered when its
  window closes.
* With the experimental `onReviewerGate` route option, the named reviewer gets
  its own one-time credential through a channel you supply and answers as
  itself. Out of the box, that's the only way a separately named reviewer can
  answer, and the gate must be pending on the same server instance.
* A gate on the tool that places an order holds it until the bound reviewer
  decides. That's review before execution. A principal's review after
  execution is yours.
* The approval row records an approver reference and time. The reference can
  be erased, and the row doesn't record registration status.
* Pleach doesn't keep dates of use. You provide the communication, its dates
  of use, and the approving principal's name and registration.
* FINRA has proposed replacing pre-use approval of retail communications with
  written procedures, plus evidence that those procedures ran. It's out for
  comment, not in force, so check the rule's current status.

**AI-agent oversight**

* The record shows what ran. It keeps the size and token count of the
  reasoning a provider returns, not the text.
* A refusal nobody gave is recorded as a policy decision, never under a
  person's name.
* Controls are approval gates, recorded permission grants, and
  [provider routing](/docs/family-lock) constrained at session start. A
  bundled audit checks tenant isolation.
* You provide which actions need a person and who that person is, the policy
  the controls enforce, data-access review, the database these records are
  written to, and whatever prompt and output text the call rows don't carry.

FINRA says its rules are technology neutral, and its oversight guidance lists
considerations for firms exploring AI agents. Those are considerations, not
rules. The rules don't name AI agents, and we found no SEC or FINRA guidance
applying the order-record or market-access rules to them. Ask counsel how an
agent fits.

## Investment advisers [#investment-advisers]

This section summarizes, by topic, the Pleach mechanisms that bear on the SEC
books-and-records rules for registered investment advisers. The grades use the
same scale and the same caveats as the rest of this page.

| Topic                               | Grade                   | Pleach provides                                                                                                                                    | Your firm's part                                                                                              | Gap in Pleach                                                                                               |
| ----------------------------------- | ----------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- |
| Retention                           | Partial                 | Retention passes that remove data only after a period you set, and skip anything under a legal hold.                                               | The retention period, the database records are kept in, and a scheduler.                                      | Periods by record class. Counting by fiscal year.                                                           |
| Written communications              | Supports                | One typed record per model call, and session storage that keeps the agent's own messages in your database.                                         | The database. An archive for communications in other channels — email, chat, anything clients send elsewhere. | —                                                                                                           |
| Performance and advertising records | Not provided            | An [approval gate](/docs/interrupts) on the tool that publishes can hold the call until someone decides.                                           | A gate on the publishing tool. The records behind any performance shown.                                      | A copy of each communication as disseminated.                                                               |
| Order records                       | A: Partial · B: Partial | A: the placing call names the agent's model, provider, session and actor, and the time. B: the recorded recommendation and the model that made it. | Order terms, written to your own order table. B: the order ticket and the principal who placed it.            | Order-specific fields, such as a discretionary designation. B: a link from the recommendation to its order. |
| Index and examiner production       | Partial                 | Tenant-scoped queries with a chain check, plus readable and machine exports of what the ledger holds.                                              | An index of records held outside the ledger, and prompt production to examiners.                              | A time filter without a host-supplied lookup. A finance report framework.                                   |
| Duplicate copy                      | Firm duty               | Rows live in your database. Timestamped chain anchors are proofs, not copies.                                                                      | A second copy, and the replication or backup that fills it.                                                   | —                                                                                                           |
| Safeguarding and access             | Partial                 | Hash-chained rows, opt-in database triggers that block changes while enabled, and row-level read policies scoped to the session owner.             | Backup, authorization, turning the triggers on, and the rest of your safeguards.                              | An examiner role. Read policies scoped to a tenant.                                                         |

### Limits for investment advisers [#limits-for-investment-advisers]

* Every limit under [Limits by topic](#limits-by-topic) also applies here.
* A retention pass uses one period for whole chains or sessions, counted from
  the newest row. It doesn't know fiscal years or record classes.
* An erasure request refuses under an active legal hold but doesn't check a
  retention period, so you provide a rule that keeps it away from records you
  must retain.
* An approval decision records the names of the call's arguments, not their
  values. It doesn't keep a copy of what was published.
* The audit report is JSON or Markdown and has no finance framework. It
  filters by time only when your host supplies the lookup. The PDF export needs
  an optional dependency.
* The service role reads and writes every row. Row-level policies scope reads
  for signed-in users to the session owner, not to a tenant, and Pleach has no
  examiner role.
* The library makes no separate copy of any record.
* If your firm is also a broker-dealer, the same rows serve both sections. Ask
  counsel whether records kept for the broker-dealer rules can serve for the
  adviser rules.
* We found no SEC guidance on whether an agent's reasoning trace is a written
  communication, or whether an order an agent starts needs a person named as
  the recommender. Ask counsel.

## What your firm provides [#what-your-firm-provides]

* **Supervisory system and written procedures.** Pleach records what your
  system can draw on. It supplies no supervisory system, no procedures and no
  compliance or supervisory manuals. Final responsibility for supervision
  stays with your firm.
* **The books and records decision.** Whether your storage meets SEC
  recordkeeping rules, a second copy of the records, and any filed
  undertakings.
* **The retention schedule.** Which records you keep, and for how long.
* **Message retention.** The complete store of customer communications,
  including channels the agent never touches.
* **Order records when a principal places the order.** Under B, the order
  ticket and who placed it are yours. Under A, write the order terms from the
  placing call to your own order table.
* **Principal review.** Review of transactions and communications by a
  registered principal, evidenced in writing, is yours.
* **Risk controls.** Pleach has no pre-trade checks. An
  [approval gate](/docs/interrupts) isn't a market-access control. Risk
  controls and supervisory procedures for market access stay under your
  firm's own control.
* **Registration and qualification.** Pleach records an identity. It
  doesn't know whether that person is a registered principal. We found nothing
  from FINRA applying the registration duty for people responsible for an
  automated system to AI agents, so ask counsel who must register.
* **Vendor oversight.** Supervisory obligations extend to outsourced
  activities, and FINRA rules apply when you use a third party's technology.
  That includes this library and any model provider, so assess each as you
  would any recordkeeping vendor.
* **Customer information.** The library runs in your infrastructure, and the
  runtime sends nothing to its maintainers. Your firm decides how the SEC
  privacy rules for customer information apply to a service provider. Don't
  send customer information in bug reports.
* **Evaluation before deployment.** A firm should evaluate Gen AI tools
  before deploying them.

## Related [#related]

* [WORM tier](/docs/worm): the triggers, destroy functions and their limits.
* [Interrupts](/docs/interrupts): who can decide a gate, and for how long.
* [Regulated-domain agent](/docs/regulated-domain-agent): the agent shape this
  page assumes.
* [Part 11 and ALCOA+](/docs/compliance/part-11-alcoa): the same mechanisms
  mapped to life-sciences rules.
