Skip to content

Isolation in the database, not just in the app.

Registrars are competitors, and a case holds death certificates, IDs and bank details. Selvage keeps each registrar apart with rules the database enforces, and records every step in a log nobody can edit.

A corridor between wooden shelves stacked with white boxes marked archive, leading to a panelled door.

Each registrar kept apart

  • Row level security on every table, keyed on the registrar and the person's memberships there.
  • Roles belong to each registrar, so access at one gives nothing at another.
  • Automated tests sign in as each kind of user and check that someone at one registrar gets zero rows and zero files from another, for every table and the storage bucket.
  • Platform admins set up registrars, but can't see case documents.

Outside users see their own cases

  • Heirs and shareholders see only the cases they opened or are named on.
  • Lender users see their own lender's cases and pledges.
  • A test checks that one submitter can't see another submitter's cases or documents.

Files behind a permission check

  • Kept in a private storage bucket, under the registrar's own path.
  • Opened only through short-lived signed links, issued after a permission check.
  • Opening a document writes its audit row first.
  • Each upload's SHA-256 hash is stored, so a changed file can be detected.

Uploads checked by content

  • PDF, JPEG and PNG only, up to 10 MB, judged by what the file is rather than its name.
  • Images must decode.
  • PDFs must be well formed, with no scripts, launch actions, attached files or password.

Two people for every approval

  • Whoever sent a case to second approval can't approve it, and the database refuses it if they try.
  • A walk-in case is reviewed by someone other than the member of staff who opened it.
  • Approving, executing and recording an heir's shareholder record need a code from the staff member's authenticator app.
  • Signatures are compared by a person, who records match, mismatch or unclear. Nothing is approved by software matching.

Every step leaves a row, and nobody can edit it.

Every state change, document view and signature check writes a row with who did it, their role, the time, any reason and the IP address. Each state change goes through one function, which writes its row in the same transaction.

A case's audit log with Export as CSV above it.
The database's answer when anyone tries to delete a row of the audit log: case_events is append-only: DELETE is not allowed.
  • Refused by the database

    An update or delete on the log fails in the database itself, not only in the app.

  • Exported as CSV

    Any staff member can download a case's log. The export is a row in the log too.

  • Safe to open

    Spreadsheet formulas in the exported cells are neutralised, so the file can't run anything.

The open drawer of a metal filing cabinet, packed with index cards.

Only what a case needs, for as long as it's needed.

  • Each case type collects only what it needs, and submitters read a privacy notice before they submit.
  • Bank details are kept as a reference and the last four digits, not a full account number.
  • A registrar admin sets how many years each case type keeps its document files once a case is closed.
  • Deleting the files of a case past its period is a step an admin confirms, and it's audited. The case, its details and its audit log stay.
  • A closed case's documents are never deleted automatically.