Data Handling Architecture

Version: 3.2 · Effective: 2026-11-20 · Owner: security@paciolus.com · Classification: Public

(v3.2, 2026-11-20: checked against the code — flagged account names are saved with engagement tool runs, not every summary; adjusting entries are saved without their accounts and amounts; the currency tool's rate rows named as the one upload kept; Render Key Value's security counters listed. v3.1, 2026-11-14: renamed from its earlier filename, database backups added, and the deletion section corrected for them. Earlier versions are in archive/.)

In one sentence

Your uploaded files are processed in memory and not kept after analysis; we save your account, client list, analysis summaries and anything you enter in an engagement.

The life of an upload

  1. Receive. The file arrives in the request body (capped at 110 MB; files at 100 MB / 500,000 rows). Multipart parts are kept in memory up to the request cap rather than spooled to disk.
  2. Validate. Signature, size, row/column/cell-length limits, archive-bomb limits per format, defusedxml.
  3. Analyse in memory. If you previewed the file first, its bytes are held in an in-memory cache for up to 10 minutes, bound to your account and consumable once.
  4. Respond with the results.
  5. Release. The file and its rows leave memory. A summary is saved to your history: category totals, ratios, row counts, total debits and credits, materiality, anomaly counts, the first characters of the filename and its hash. When the run is recorded in an engagement and the tool flags accounts, their names (no amounts) are saved with that engagement's tool run.

The file itself and its line-level rows are not saved to the database or to file storage, except the exchange-rate rows of a rate table you load into the currency tool (§2.2, Tool Sessions). Nothing from the upload reaches the logs or Sentry: application logs carry counts and exception type names, not values from the file, and Sentry events have request bodies, local variables, exception messages and breadcrumbs removed before they are sent.

2. What is stored, and where

2.1 Summary

DataStoreRetention
Accounts and settingsNeon PostgreSQL, us-east-1Until account deletion
Client metadataNeonUntil deleted
Analysis summariesNeon365 days, then archived; deleted with the account
Tool Run RecordsNeonRun status, score and the flagged account names (no amounts) for each tool run in an engagement
Engagement entries (materiality, follow-ups, intercompany mappings, analytical expectations, uncorrected misstatements)NeonUntil you delete them or the account
Upload allowance usage (Free and lapsed plans)NeonOne row per successful analysis: tool name and time, nothing from the file. Not affected by "Clear history"; deleted with the account
Sessions and security eventsNeonSession tokens hashed, until expiry; security events (hashed IP) 365 days
Shared report filesCloudflare R2 paciolus-exports, keyed by a hash of the share token24 h (Professional) / 48 h (Enterprise); the DB row is removed only after R2 confirms deletion
Rate-limit and security counters — request counts by user or IP address, failed sign-ins by IP address, revoked admin-impersonation tokensRender Key ValueShort-lived
Database backups — a daily copy of everything in Neon aboveCloudflare R2 paciolus-backups (a separate provider), written by a GitHub Actions job using a read-only database role30 daily and 12 monthly copies. A deleted account stays in older backups until they age out

Exported PDFs, Excel and CSV files are generated on request and sent to the browser without being saved — except a report you share by link, as above.

2.2 Controlled Storage Exceptions

Every table that holds amounts or account identifiers, so nothing is stored that this page does not name. (backend/tests/test_zero_storage_disclosure.py fails the build if a table with money or account columns is missing here.)

Users Table

Email, name, bcrypt password hash, tier, settings. Until account deletion.

Clients Table

Client name, industry, fiscal year-end. Until deleted.

Activity Logs Table

Per analysis: row count, total debits and credits, materiality, balanced flag, anomaly counts, first characters of the filename and its hash. Archived after 365 days.

Diagnostic Summaries Table

Per analysis: category totals (assets, liabilities, revenue, expenses …), ratios, total debits and credits. Archived after 365 days.

Tool Sessions Table

Adjusting entries you save: reference, description, type, status, notes, preparer, reviewer and approver names and the number of accounts — the account and amount on each line are removed before saving. Currency rate tables you load: each rate (date, currencies, rate). For 1–2 hours.

Engagements Table

Period, status, materiality amounts the user sets. Until deleted.

Tool Runs Table

Per tool run in an engagement: status, composite score and the names of flagged accounts (no amounts).

Follow-Up Items Table

Narratives the user writes about flagged items, and comments.

Subscriptions Table

Plan, status, seats, Stripe IDs, upload counts.

Billing Events Table

Plan changes and payments (tier, interval, amounts in metadata); kept with the user unlinked after erasure.

Uncorrected Misstatements Table

What the user enters: accounts affected with debit/credit and amount, F/S impact.

Analytical Expectations Table

What the user enters: expected values, precision thresholds, actual values and variances.

Admin Audit Logs Table

Superadmin actions, including credit and refund amounts. Append-only.

Tool Activities Table

Per tool use: tool name, first characters of the filename, and a short caller-supplied summary (up to 2,000 characters).

2.3 What is not kept

Uploaded files, and the line-level rows in them — individual balances, journal entries, invoices, payments and payroll records — except where those rows are inside a report a user shares by link (§2.1).

Deletion

"Clear history" and "delete engagement" archive records. Deleting your account (Settings → Profile → Your Data) physically removes everything above that belongs to you from the database, cancels your subscription with Stripe and removes your shared files from R2; billing history is kept with your identity removed. You can download everything first from the same page.

Backups. Copies of the database made before the deletion still contain your data until those backups age out under the retention in §2.1 (up to 12 months for the oldest monthly copy). Backups are used only to restore the service and to test, once a month, that a restore works.

Why it matters, accurately stated

Not keeping uploads means uploaded files are not at rest to leak — except the rows inside a report a user shares by link, for its 24 or 48 hours. It does not mean there is nothing to protect: the summaries, engagement entries and backups above are client financial content and are protected as described in the Security Policy.