Technical Guide: Financial Services Recordkeeping

    Why n8n Execution Data Pruning Breaks FINRA and SEC 17a-4 Recordkeeping

    n8n stores execution data in a configurable database and can prune it by default settings or on a schedule to control storage growth. That store is mutable and built for operations, not for books and records. If a workflow creates or processes a record that SEC Rule 17a-4 or FINRA Rule 4511 requires a firm to preserve, pruning can remove it before the six-year retention period ends, and the store may not provide the audit trail, indexing or production capability an examiner expects. Retention for in-scope records needs a separate, deliberately designed system.

    Retention architecture outside the workflow tool

    1. 1

      Capture at execution time

      Write the record or evidence to a separate store as the workflow runs, not later from execution history.

    2. 2

      Separate lifecycle

      Retention and deletion in the external store are governed by the firm's schedule, not by workflow pruning.

    3. 3

      Change history

      Preserve modification and deletion events with timestamps and actor identity.

    4. 4

      Retrieval and production

      Support full viewing, download, indexing and prompt examiner production across the retention period.

    What to evaluate in a runtime enforcement layer

    • Can it retain the original record, log modifications and deletions with timestamps and actor identity, and recreate the original?
    • Is evidence stored outside the workflow tool's data store, and can workflow pruning or contract terms delete it?
    • Can records be viewed, downloaded, indexed and produced promptly across the full retention period?
    • Is retention configurable to the firm's schedule, and can the store be deployed in the firm's own cloud with the required data residency?
    • Which retention approach does the design rely on, and who attests to it?
    • What does the captured evidence prove about inputs, outputs and policy decisions, and what does it leave unproven?

    Operational execution data is not a books-and-records system

    Workflow platforms such as n8n keep execution data so teams can debug runs, inspect inputs and outputs, and retry failures. That data sits in a configurable database. To keep storage under control, the platform prunes it according to default settings or a schedule. This is sensible operational design. The problem arises when teams treat that operational store as the place where regulated records live.

    SEC Rule 17a-4(a) requires broker-dealers to preserve specified records for not less than six years, the first two in an easily accessible place. The records include those required under Rule 17a-3(a)(1) through (3), (5), (21) and (22), and analogous records created under 17a-3(e). FINRA Rule 4511 requires members to make and preserve the books and records required under FINRA rules, the Exchange Act and applicable Exchange Act rules. Records required under FINRA rules must be preserved in a format and media that complies with SEA Rule 17a-4. The rules are current as of November 2026 and can be amended.

    Nothing in this framework makes retention a side effect of execution storage. Any automated deletion that can remove an in-scope record before the retention period ends has to be assessed against the rule, whatever the operational reason for the deletion.

    Where the gaps appear

    The table maps characteristics of a prunable, mutable execution store to the recordkeeping elements an examiner may test. It describes design properties, not a finding about any specific deployment.

    • Retention period: Rule: at least six years for specified records. Gap: age-based or count-based pruning can delete data sooner unless the configured window is verified against the period.
    • Accessibility tiers: Rule: the first two years in an easily accessible place. Gap: operational storage does not distinguish the accessible tier from the full retention period.
    • Audit trail: Rule: record modifications and deletions, with date and time, actor identity where applicable, and enough information to recreate the original. Gap: a mutable store does not by default preserve the original after a change or a prune.
    • Viewing and download: Rule: an electronic recordkeeping system preserves records digitally so they can be viewed and downloaded. Gap: execution views are built for debugging, not for complete, indexed production.
    • Examiner production: Rule: records must be producible promptly. Gap: production depends on the same store that pruning and database maintenance act on.

    Which workflow outputs may qualify as required records

    The rules attach to records that a firm is required to make or preserve, such as the listed 17a-3 records and records required by FINRA rules. They do not attach to every piece of workflow data. Scoping therefore starts with classification, not with the tool.

    Inventory the workflows that create or process communications, AI outputs or other business records. For each output, map it to a specific 17a-3, 17a-4 or FINRA requirement, or document why it is out of scope. Whether an AI-generated output is a required record is a legal determination the firm must make and defend. The rule text does not settle it for you, so the rationale should be written down and owned jointly by compliance and platform teams.

    Where an output is in scope, the question is no longer how long the workflow tool keeps it. The question is which system is the designated place of record, and how the workflow delivers the record there at the time it is produced.

    What execution history can and cannot prove to an examiner

    An execution history shows that a run occurred and what the platform recorded about it. It is mutable, can be pruned, and was not designed to demonstrate that a record is complete, unaltered and retained for the required period. Without separate controls, it cannot show what a workflow was permitted to do, or that a record present today matches what existed when it was created.

    Evidence generated by enforcement answers a different question. Trussed enforces policy in the execution path across models, agents, tools and MCP servers, with actions to allow, redact, block, rate limit or escalate for human approval. Enforcement happens at runtime, not through review after the fact, and it generates audit-ready evidence of what was allowed and what occurred, with configurable retention and self-managed deployment in the customer cloud. Its scope is individual interactions and tool calls. It does not provide end-to-end tracing of a whole workflow, and it does not decide which outputs are required records or replace the firm's designated recordkeeping system.

    Trussed's deepest regulated experience is in insurance, and it does not claim financial-services deployments. The value for a compliance leader is narrower and practical: durable evidence of controlled AI behavior that does not rest on a workflow tool's prunable data. Whether that evidence satisfies a given 17a-4 or FINRA obligation remains the firm's determination, made against the full rule text and with counsel.

    Practical next steps: classify workflow outputs, compare every pruning or retention window against the six-year and two-year periods for in-scope records, test whether an original can be recreated after modification or deletion, and define who produces records when an examiner asks.

    Execution history versus a regulated record

    Execution data store

    Mutable, configurable and pruned to control storage growth.

    Required record

    Preserved for at least six years, the first two in an easily accessible place.

    Audit trail

    Modifications, deletions, timestamps and actor identity, with the original recreatable.

    External evidence store

    Written at execution time and independent of the workflow tool's prune cycle.

    Separate operational storage from regulated evidence

    Talk through where your AI workflows create records and how enforcement in the execution path can produce audit-ready evidence outside the workflow tool.

    Talk to an Expert