CaseFlow Automation Ltd provides a SaaS platform that helps UK credit hire professionals analyse insurer correspondence, draft responses, and receive strategic case guidance, all supported by AI cross-referenced against a curated legal knowledge base.
Security and privacy are built into the platform's architecture, not bolted on. Our approach is grounded in data minimisation, privacy by design, and honest framing of what our controls achieve and where their limits lie.
Key Facts
โ Encryption: TLS in transit; AES-256 at rest; per-tenant data isolation via Row-Level Security.
โ Access: Role-based access control, invite-only registration, concurrent session detection, email-verified authentication.
โ Privacy: Three-layer PII protection โ browser-side PDF processing, mandatory server-side masking gateway (now including bare/untitled name detection in field-label, salutation and sign-off contexts), and database-level masking applied at rest. No client data used for AI model training.
โ AI Safety: Closed knowledge base, anti-hallucination controls, human-in-the-loop design. AI is decision-support only.
โ Compliance: UK GDPR / DPA 2018 alignment; ICO registered (ZC013423); DPIA-ready architecture.
CaseFlow Automation (CreditHire Assist) is a browser-based SaaS platform for UK credit hire professionals. Core features include:
| In Scope | Out of Scope |
|---|---|
| Web application (portal), server-side API functions, AI inference layer, data storage, PII masking gateway, authentication system | Client endpoints and devices, client on-premises networks, third-party integrations chosen by the client |
The platform is hosted in the European Union via managed cloud infrastructure. Data residency is EU-based.
| Role | Entity | Scope |
|---|---|---|
| Controller | Client organisation | Determines the purposes and means of processing claim data |
| Processor | CaseFlow Automation Ltd | Processes data on behalf of the client to provide the Service |
| Controller | CaseFlow Automation Ltd | Platform account data (user credentials, usage logs) |
Lawful basis: Contractual necessity for providing the Service; legitimate interest in providing efficient legal support tools.
| Class | Examples | Handling |
|---|---|---|
| Public | Marketing materials, published case law | Standard controls |
| Internal | Platform configuration, usage statistics | Access control, logging |
| Confidential | Correspondence content, case details, AI outputs | Encrypted at rest, RLS isolation, PII masking before AI processing |
| Restricted | Personal identifiers in uploaded correspondence | Masked before AI processing; original text stored in client's isolated partition only |
Layer 1: Local PDF Processing. Text-based PDF files are processed entirely in the user's browser using Mozilla's PDF.js (the same library used by Firefox). No PDF file is uploaded to any server. The user reviews extracted text before choosing to submit it for analysis. Exception: a scanned (image-only) PDF cannot be read by the browser; in that narrow case the file is uploaded to a private temporary storage bucket so it can be OCR'd, then deleted immediately after processing. A scheduled daily job removes any object older than 24 hours as a safety net.
Layer 2: PII Masking Gateway (in transit). Before any text is sent to the AI model, it passes through a mandatory server-side masking gateway that uses pattern-based rules tuned for UK claims data. Detected identifiers (titled names, bare/untitled names in labelled or salutation/sign-off contexts, emails, phone numbers, VRMs, NI numbers, driving licence numbers, IBAN, card numbers, sort codes, account numbers, policy/claim references such as POL, CLM, REF, CLAIM, POLICY, FILE, BHR, CHR, CHO, TPI and structured formats like 24-ABC-123456, street addresses) are replaced with neutral placeholders such as [NAME_REDACTED] or [VRM_REDACTED]. UK postcodes are deliberately preserved because they are material to basic-hire-rate and locality arguments; a separate output-side scrubber removes any postcode the AI introduces that was not present in the original input.
Layer 3: At-Rest Masking (in storage). The same masking patterns are reapplied via PostgreSQL BEFORE INSERT/UPDATE triggers using the database function public.mask_pii(). Records persisted to correspondence, ai_replies, case_advice, preemptive_letters and taxi_risk_assessments contain placeholders rather than raw identifiers, so saved history is masked even in the event of unauthorised database access.
The masking gateway is a mandatory processing step. There is no bypass path. Each invocation logs the count and categories of items masked. Original values are never logged.
โ ๏ธ Honest Limitation: Pattern-based detection is a strong first layer but not a perfect filter. Untitled names are detected only in high-precision contexts (field labels such as "Driver:" / "Renter Name:", salutations like "Dear โฆ", and sign-offs); free-form prose containing only a bare name with no surrounding cue may not be detected. Novel reference formats and information that is only identifiable in combination (e.g. "the claimant's blue Ford Focus") are also out of scope. The masking gateway is an automated safety net, not a substitute for sensible data hygiene โ users should send only the personal data the task actually needs. Anything that slips through is covered by the next layers: the AI provider operates under Zero Data Retention enterprise terms (data is not kept or used for training), and the data itself is deleted shortly after processing.
CreditHire Assist is designed not to retain personal case data. Uploaded text and the outputs the tool generates are deleted immediately when the user is finished, on session close. A continuous scheduled purge runs as a backstop, so nothing is ever retained beyond 24 hours. Users save anything they need to keep to their own systems (a copy button is provided in-app) and re-run the task if required.
| Data Type | Storage | Retention period |
|---|---|---|
| User account & profile | Encrypted, RLS-isolated | Life of account; deleted within 30 days of account closure |
| Uploaded text, AI replies, case advice, pre-emptive letters, taxi risk assessments and other case outputs | Encrypted at rest, PII-masked on write, RLS-isolated | Deleted immediately on session close; continuous scheduled purge ensures nothing is retained beyond 24 hours |
| Original (unmasked) PDF files | Not stored โ processed in browser | N/A. Scanned-PDF OCR fallback files: deleted immediately after parsing; safety-net purge within 24 hours. |
| AI prompts (after masking) | Transient at the AI provider | Not retained for training; provider Zero Data Retention contract path |
AI usage audit log (ai_usage_log) | Encrypted, masked metadata only (no PII payload) | 12 months |
| Activity log (feature usage events) | Encrypted | 12 months |
| Authentication / login attempt logs | Encrypted | 12 months |
| Database backups (disaster recovery) | Encrypted, EU region | Uploaded files are never included in any backup. Standard disaster-recovery backups exist for the database, but because case content is deleted within 24 hours those backups hold essentially no personal case data, and once a record is deleted there is nothing to restore it from. |
| Policy acknowledgements | Encrypted | Life of account + 6 years (legal accountability) |
We do not use client data to train AI models. Data is used solely to generate the specific output requested by the user.
Special category data: The Service is not intended for special-category data and users are asked not to submit it. We recognise that in credit hire work, health, injury or vulnerability information can incidentally appear in free-text correspondence. Where it does, the same safeguards apply (masking, data minimisation, encryption and immediate deletion), and as data controller the customer remains responsible for the Article 9 lawful basis.
If, after upload, a user identifies that personal data slipped past the masking gateway, the affected record can be:
mask_pii(), and the previous unmasked text is overwritten in place (no historical row is retained for masked tables).To request a bulk scrub or audit, contact info@caseflowautomation.co.uk; we aim to action within 5 working days.
The platform supports the exercise of data subject rights including access, rectification, erasure, and portability. Users can delete their own correspondence and AI outputs. Company-level data deletion is supported on contract termination.
Platform data is hosted in the EU. Where AI model inference involves processing outside the UK/EEA, this occurs under the provider's enterprise data processing terms which include Standard Contractual Clauses (SCCs) and prohibit the use of input/output data for model training.
| Control | Implementation |
|---|---|
| Registration | Invite-only. Users must be invited by a platform administrator. No self-registration. |
| Email Verification | Required before first login |
| Password Security | Salted hashing (bcrypt); minimum complexity enforced |
| Session Management | Concurrent session detection. Only one active session per user. Automatic expiry for inactive sessions. |
| Password Reset | Secure token-based reset via email |
| Account Suspension | Administrators can immediately suspend user accounts |
Roles are stored in a dedicated user_roles table, separate from user profiles, and enforced via database-level security functions.
| Role | Access Level |
|---|---|
| Handler / User | Own company's data: analyse, draft, view history |
| Senior | Company-wide visibility of team activity |
| Manager | Company-wide visibility, usage statistics, team management |
| Platform Admin | User management, company administration, platform configuration |
Every database table containing client data enforces Row-Level Security (RLS) policies. These policies are evaluated at the database level on every query and cannot be bypassed by the application layer. A user from Company A cannot access, view, or modify data belonging to Company B, even if they manipulate API requests.
AI is used exclusively for decision-support. It drafts, analyses, and suggests. It never makes legal decisions, sends correspondence, or takes autonomous action.
| Feature | AI Role | Human Role |
|---|---|---|
| Correspondence Analysis | Identify insurer arguments & cited cases | Review, verify, decide response strategy |
| Reply Generation | Draft response cross-referenced against curated case law | Edit, approve, send |
| Case Advice | Provide conditional strategic guidance | Apply professional judgement |
| BHR Challenge | Analyse locality availability data | Review branch data and distances |
Every AI output is presented as a draft requiring human review. Users must explicitly accept a disclaimer acknowledging this before accessing AI features.
| Control | Implementation |
|---|---|
| Closed Knowledge Base | AI can only cite cases from a curated, pre-loaded database. It is explicitly instructed not to cite anything outside this set. |
| Explicit System Prompts | Directives including "Do NOT invent case names", "Only cite cases from the provided knowledge base", "If no authority exists, say so." |
| Low Temperature | temperature: 0.3 on all AI calls, reducing creative output and favouring factual responses |
| Knowledge Isolation | GTA claims receive only GTA protocol data; non-GTA claims receive case law only. No cross-contamination of authority sources. |
| Mandatory Limitation Language | When no relevant authority exists, the AI states this explicitly rather than speculating |
โ ๏ธ No AI system can guarantee zero hallucination. These controls significantly reduce the risk, but users should always independently verify case law citations before relying on them.
| Log Type | Content | PII Included? |
|---|---|---|
| Activity Log | Feature usage events with timestamps, user IDs, company IDs | No |
| PII Masking Log | Count and categories of items redacted per invocation | No. Original values are never logged. |
| Authentication Log | Login events, session creation, concurrent session detection | Email addresses (for identification) |
| Error Logs | Application and function errors | Designed to exclude PII |
In the event of a suspected security or AI safety incident:
| Capability | Implementation |
|---|---|
| Database Backups | Automated daily backups with point-in-time recovery; encrypted backup storage |
| Data Redundancy | Managed by cloud infrastructure provider with multi-availability-zone resilience |
| Service Recovery | Stateless server-side functions can be redeployed rapidly; no single point of failure in the processing layer |
| Graceful Degradation | If AI inference is unavailable, the platform's non-AI features (case law library, templates, liability guide, guidance notes) remain operational |
| Data Portability | Client data can be exported on request |
โ ๏ธ Honest Limitation: CaseFlow does not currently maintain a formalised Business Continuity Plan (BCP) or conduct scheduled DR exercises. Recovery capabilities are provided by the underlying managed cloud infrastructure. We are evaluating formal BCP documentation as the platform matures.
We engage the following sub-processors to deliver CreditHire-Assist. Their processing is governed by data processing terms no less protective than those we owe our customers. The list is reviewed regularly and updated on material change.
| Sub-processor | Service provided | Location |
|---|---|---|
| Supabase Inc. (via Lovable Cloud) | Managed PostgreSQL, authentication, file storage; hosted on AWS | EU (eu-west-2, Ireland) |
| Lovable GmbH | Application hosting and AI gateway layer | EU |
| Google LLC (Gemini, via Lovable AI Gateway) | AI inference under zero-retention enterprise terms | EU routing via Lovable; transfers under UK IDTA / SCCs |
| Cloudflare, Inc. | CDN, TLS termination, traffic proxying | Global edge, EU-preferred |
| Resend, Inc. | Transactional email | EU / US, under DPA |
Lovable's published Data Processing Agreement, including the published sub-processor list, is available at trust.lovable.dev and is incorporated by reference. The hosting region for our project is EU (Europe, Ireland), evidenced at platform level. Transfers outside the EU at the AI inference layer are safeguarded through Standard Contractual Clauses at the Lovable-to-Google contractual layer, with the formal IDTA / UK Addendum to the EU SCCs and Transfer Impact Assessment documentation available via Lovable's Trust Center on B2B compliance request.
| Regulation / Framework | Status |
|---|---|
| UK GDPR / DPA 2018 | Aligned: data minimisation, privacy by design, transparency, accountability, lawful basis documented |
| ICO Registration | Registered (ZC013423) |
| EU AI Act (Decision-Support) | Aligned: human-in-the-loop design, AI outputs labelled as drafts, disclaimers enforced |
| ISO/IEC 27001 | Not certified. Controls are aligned with key domains (see mapping below). Formal certification is under consideration as the platform scales. |
| Cyber Essentials | Under consideration for future certification |
| Domain | Controls Implemented | Evidence / Reference |
|---|---|---|
| Access Control | RBAC, RLS, invite-only registration, session management | Database policies; Admin panel |
| Cryptography | TLS in transit, AES-256 at rest, salted password hashing | Infrastructure configuration |
| Operations Security | Activity logging, PII masking logs, usage dashboards | Activity log table; Admin dashboards |
| Supplier Relationships | Limited sub-processor set; DPAs in place | Sub-processor register (ยง10) |
| Incident Management | Feature-level kill switches, audit trail, notification procedures | Incident response plan (ยง8.3) |
| Business Continuity | Automated backups, PITR, stateless architecture | Infrastructure provider capabilities |
| Data Protection | Three-layer PII protection (local processing, in-transit masking, at-rest masking), data minimisation, no training on client data | PII Masking Architecture document |
| Area | CaseFlow Responsibility | Client Responsibility |
|---|---|---|
| Platform & Infrastructure | Secure hosting, encryption, monitoring, patching | - |
| Identity & Access | Authentication system, RBAC enforcement, session controls | Manage user invitations, remove leavers promptly, enforce strong passwords |
| Data Protection | Encryption, RLS isolation, PII masking, no-training policy | Classify data appropriately; redact/anonymise sensitive data before upload where possible |
| AI Usage | Anti-hallucination controls, closed knowledge base, disclaimers | Review all AI outputs before use; do not treat drafts as verified legal advice |
| Endpoints & Devices | - | Secure devices, keep browsers updated, use trusted networks |
| User Training | Platform guidance, in-app tooltips, onboarding materials | Ensure users understand the tool's purpose and limitations |
| Document | Purpose |
|---|---|
| AI Safety & Security Policy | Detailed AI governance, anti-hallucination controls, prompt security, and user safeguards |
| How We Protect Your Data | Plain-English guide to the three-layer privacy architecture (local processing, in-transit masking gateway, and at-rest masking), with IT verification steps |
| Data & AI Summary | One-page summary of data processing and AI usage |
| Privacy Policy | Full privacy policy including lawful basis, rights, and contact details |
| PII Masking Architecture: Technical Summary | DPIA-ready technical reference for the PII masking gateway |
| Term | Definition |
|---|---|
| RLS | Row-Level Security. Database-level access control that restricts which rows a user can read or modify. |
| PII | Personally Identifiable Information. Data that can identify a natural person. |
| RBAC | Role-Based Access Control. Access permissions determined by assigned roles. |
| GTA | General Terms of Agreement. ABI protocol governing credit hire rates. |
| BHR | Basic Hire Rate. Insurer argument challenging hire charges based on local availability. |
| PITR | Point-in-Time Recovery. Ability to restore a database to a specific moment. |
| SCCs | Standard Contractual Clauses. EU-approved mechanism for international data transfers. |
| DPA | Data Processing Agreement. Contract governing how a processor handles personal data. |
| DPIA | Data Protection Impact Assessment. Risk assessment required for high-risk processing. |
For security-related enquiries, DPIA collaboration, or to request further technical detail:
Email: info@caseflowautomation.co.uk
ICO Registration: ZC013423
Website: caseflowautomation.co.uk
This document is designed to be honest and specific about our security posture. We describe what we have implemented, acknowledge where we have limitations, and commit to continuous improvement as the platform matures. Trust is earned through transparency, not theatre.