Skip to content

Data at rest

Part of the assurance pack. Covers how stored data is protected, temp-file hygiene, and disposal (including one-click "Delete transcript and audio" and the BitLocker warning).

Encryption model: rely on the firm's BitLocker (documented dependency)

The product does not implement application-level encryption of stored files. This is a deliberate design decision: the app relies on the firm's BitLocker full-disk encryption on the managed Windows laptop, avoiding the key-management liability and recovery-burden of a bespoke crypto layer. All data the app touches — input audio (read in place), in-memory working data, and any exports the user saves — therefore sits on the BitLocker-encrypted volume the firm already operates and controls.

This is a dependency, not a feature the vendor provides. For the data-at-rest protection to hold, the firm must ensure BitLocker is enabled on the laptops the app runs on. The non-processor / on-device posture (see non-processor-statement.md) is independent of BitLocker; BitLocker is what protects the locally-stored data from device theft/loss.

Launch-time BitLocker-status check — ✅ implemented (advisory)

The app checks BitLocker status on launch and warns the fee-earner if encryption is not confirmed, so privileged data is not stored unprotected. Implemented: on launch the app calls the volume_encryption_status command, which on Windows derives the drive and parses manage-bde -status; unless the volume is confirmed encrypted it shows a dismissible amber banner advising that recordings and transcripts be stored on an encrypted volume (app/src-tauri/src/system.rs, app/src/App.tsx). The check fails soft — if manage-bde cannot be run it reports unknown (and still warns), never erroring the app; on macOS/Linux it always reports unknown.

Known limitations (current behaviour): the app asks about the path ".", from which no drive letter can be derived, so the check currently always reports unknown and the banner shows even on an encrypted volume. It also does not target the drive holding the library, model cache, or recording, and manage-bde -status normally requires an elevated (administrator) prompt. Treat the banner as a reminder, not as evidence of encryption state.

This is an advisory prompt, not an enforcement gate — the firm should still enforce BitLocker through its device-management policy (Intune/SCCM) as the primary control; the in-app banner is a backstop, not a substitute.

Where data is stored

Data Location Notes
Input audio Wherever the user keeps it Read in place; not copied to a vendor-controlled location.
Recordings made in Folio Per-user app-data dir, on the BitLocker volume (app_data/library/recordings/) ✅ The Record page writes one 16 kHz mono WAV per recording (app/src-tauri/src/recorder.rs). It is written as the conversation happens, and its header is rewritten and forced to disk every 5 seconds, so a crash or power loss leaves a playable file; after recovery at most a fraction of a second is missing (spike S6). If the microphone disconnects, Folio reconnects to the default microphone and records silence for the gap, so the recording stays aligned with the clock. Live transcription runs in memory. The only other file is <recording>.notes.txt next to the WAV, holding the private notes typed during the recording (replaced atomically about a second after each edit, so a crash keeps them). Stop saves a transcript that references the WAV and holds the notes; the notes file is deleted once that transcript has been saved. Discard deletes the WAV and the notes file, and "Delete transcript and audio" also deletes a notes file left beside a recording by a crash. Purged by "Delete transcript and audio" like an imported file. If Folio is closed mid-recording, the WAV is finished and kept in that folder with any notes file (no transcript is created). At the next launch, every recording in that folder that no saved transcript uses (left by a crash, by closing Folio while recording, or by removing only its transcript) is listed in a notice offering Recover transcript or Delete. Recover first makes the WAV's header cover all the audio that reached the disk, then transcribes it and saves a transcript with the notes; Delete (after a confirmation) removes the WAV, its notes files and its deletion approval. Until the user chooses, the recording stays in the folder. Never leaves the device.
Working/decoded audio In memory during a run Current engine decodes to in-memory f32 samples (engine/src/decode.rs); see temp-file note below.
Saved transcripts (library) Per-user app-data dir, on the BitLocker volume ✅ Each transcript is auto-saved as a local JSON file (app_data/library/<id>.json, app/src-tauri/src/library.rs) so past transcripts reappear on reopen. It stores the transcript text/edits, the user's private notes ("Your notes"), metadata and a reference (path) to the source audio — the audio itself is NOT copied into the library (one copy on disk). Purged by one-click "Delete transcript and audio". Never leaves the device.
Models / model packs Verified, signed packs only ✅ Imported packs live in app_data/packs/. The transcribe path loads weights ONLY from a cryptographically verified signed pack, extracted into a per-user content-addressed cache (app_data/verified-models/). Release builds always enforce this; a debug-only KINDTECH_MODELS_DIR override exists for the dev/demo. See non-processor-statement.md / third-party-components.md.
Exports (DOCX/JSON/text) DOCX: the path chosen in a native save dialog. JSON/text: the webview's download location (typically the user's Downloads folder; behaviour depends on the OS webview) Expected to be on the BitLocker volume; carries the draft disclaimer.

The webview's file access is narrow (app/src-tauri/capabilities/default.json): core:default, the native open/save dialogs (dialog:allow-open, dialog:allow-save), and fs:allow-write-file (used to write the DOCX to the path the user picked). The webview has no fs read permission; audio playback uses the asset protocol scoped to $AUDIO/* and $DOCUMENT/* (tauri.conf.json), plus the recordings folder above, which the backend adds at startup for playback of Folio's own recordings. Library, pack, and model-cache files are read and written by the Rust backend only.

Temp-file hygiene

Intent: working/temp files (audio decode scratch, model scratch) must live on the encrypted volume in the app's own directory — never an arbitrary system temp location — and be wiped on completion.

Honest current state: the implemented engine decodes audio in memory (Symphonia → Rubato → f32 samples) and does not write a separate decode scratch file to disk (no tempfile/temp_dir/scratch writes appear in engine/src/). So today there is no decode temp file to leak, which is a stronger position than a wipe-on-completion routine. The recorder writes only the recording itself (above), which is the user's record of the conversation, not a scratch file. However:

  • A formal, app-owned scratch directory with a guaranteed wipe-on-completion routine is 🚧 roadmap, for any future code path that does spill to disk (e.g. very long inputs, or if a future engine path requires on-disk intermediates).
  • Reviewers should treat "no temp files written today" as the verifiable fact, and "explicit app-owned scratch + wipe" as committed direction — not claim the wipe routine exists.

Disposal: one-click "Delete transcript and audio" — ✅ implemented

A one-click action removes a transcript and its audio when the fee-earner is done. Implemented: a "Delete transcript and audio" button (in the header of an open transcript) calls the backend, which resolves the saved source path, requires it to be exactly a file the user picked in the native file dialog or a recording Folio made, rejects symlinks, and displays the path in a native confirmation dialog before deletion. It then purges the saved library entry for that transcript (delete_session) and clears the in-memory transcript (app/src-tauri/src/system.rs, library.rs, app/src/App.tsx). The deletion helper is idempotent (an already-gone file counts as deleted) and reports any genuine failure rather than crashing.

Honest scope: the on-disk footprint of a transcript is the source audio (the user's own file, referenced not copied, or the recording Folio made) plus the saved transcript JSON in the library — "Delete transcript and audio" removes both. The engine writes no temp/scratch file (in-memory decode, above) and there is no vendor-side copy. Exports the user separately saved elsewhere are deleted by the user through the OS. A saved transcript can also be removed from the Transcripts view (this leaves the source audio in place). Because the vendor never receives the data, there is no vendor-side deletion to request or verify.

Summary for the reviewer

  • ✅ No app-level crypto by design; relies on firm BitLocker (documented dependency).
  • ✅ Webview file access is limited to the open/save dialogs and writing the user-chosen DOCX path; no fs read permission.
  • ✅ No decode temp/scratch file is written today (in-memory decode). The recorder writes only the recording WAV and, while recording, a notes file next to it, both crash-safe, in app data.
  • ✅ Exports carry the machine-draft disclaimer.
  • ✅ Transcripts are auto-saved to a local on-device library (app-data dir, on the BitLocker volume); the source audio is referenced by path, not copied.
  • ✅ Launch-time BitLocker-status banner (advisory) and one-click "Delete transcript and audio" (removes the source audio + purges the saved library entry + clears the transcript) are implemented.
  • ✅ Models load ONLY from cryptographically verified signed packs at transcription time (enforced in release builds).
  • 🚧 An explicit app-owned scratch dir with wipe-on-completion remains roadmap for any future code path that spills intermediates to disk (none does today).