Documentation
The Finite Principle Forensic data backfilling—attempting to extract, parse, and structure years of unstructured, dusty legacy files, WhatsApp chains, and G S
The Finite Principle Forensic data backfilling—attempting to extract, parse, and structure years of unstructured, dusty legacy files, WhatsApp chains, and G S
Forensic Data Backfilling Finite Principle
Forensic data backfilling means extracting, parsing, and structuring years of unstructured legacy files, WhatsApp chains, and G Suite emails into a clean, queryable format — a one-time cleanup that brings order to historical data.
The Finite Principle
Forensic data backfilling—attempting to extract, parse, and structure years of unstructured, dusty legacy files, WhatsApp chains, and G Suite emails—is **finite**.
Treating an AI engine as an archaeological team digging up legacy files is an **operational and financial trap**. It triggers high token consumption costs, introduces historical database noise, and delivers diminishing returns.
Knowing who complained about a dripping tap in 2018 is worthless. The trailing 12-month compliance window is all we legally and operationally need.
Running deep Sonnet-4.6 extraction swarms over gigabytes of 8-year-old threads is strategically wasteful. Keep archive files in cold storage.
The "Cutover" Rule
We draw a hard line in the sand. All data older than 12 months is pushed into read-only BigQuery cold storage.
From the **Cutover Date** forward, our automated live pipelines (automated bank reconciliation gateway bank match, Paperclip triage, Compliance Guard) maintain 100% data health autonomously in real-time.
"We don't fix the historic mess with more manual cleaning. We freeze the past, secure the 12-month legal baseline, and let the AI run clean forward."
The 6-Layer Mandatory Onboarding Checklist
These relations must be linked in Supabase before an asset goes live. Missing items trigger a hard -10 pts DQS penalty each.
Concierge Link
Mapped in tbl_entity_roles with role concierge. Essential for building access, parcel deliveries, and physical key log handovers.
Freeholder Company
Mapped in tbl_entity_roles with role freeholder. Crucial for leasehold disputes, sublet licences, and block-level legal matters.
Management Company
Mapped in tbl_entity_roles with role building_manager. Used for communal water/roof repairs, service charges, and fire risk logs.
Maintenance Contractors
Mapped in tbl_addresses_organisations. Pre-assigned approved regional gas safety engineers, electricians, and plumbers.
Utilities (Gas/Elec/Water/Wifi)
Mapped in tbl_addresses_organisations with supplier roles and tracked in tbl_supplier_accounts. Essential for void transfers and smart meters.
Council (Local Authority)
Mapped in tbl_addresses_organisations as council_tax_authority. Enforces selective HMO licensing and billing audits.
DQS Code Integration
Our active Data Quality Score (DQS) engine in compute-score.ts has been patched to query these tables in parallel and enforce these checks automatically:
// Enforce penalty for missing onboarding records: // -10 points per missing item on total score let onboardingPenalty = 0; if (!hasFreeholder) onboardingPenalty += 10; if (!hasConcierge) onboardingPenalty += 10; if (!hasManager) onboardingPenalty += 10; if (!hasElectricityGas) onboardingPenalty += 10; if (!hasWater) onboardingPenalty += 10; if (!hasCouncil) onboardingPenalty += 10; let score_total = dim_asset + dim_address + dim_amenities + dim_media + dim_meters + dim_documents + dim_tenancy + dim_marketing + dim_development + dim_keys + dim_services - onboardingPenalty;
Staff Compliance Impact
By making this check algorithmic rather than qualitative:
- Properties with blank freehold, concierge, or council tax data will **drop from Green to Amber/Red** on the dashboard.
- Staff are immediately alerted in the **Universal Inbox** of the exact missing relation codes (e.g.
onboarding.freeholder_missing). - Forces on-the-ground agents to seek and input these details *during* onboarding rather than discovering hole
Repository Code
The live codebase implementation for this specification sits within the following repository folder:
DQS Audit Active: The scoring engine runs nightly on all 3,464 assets and on-demand whenever a property record receives a write event.
The Forensic Audit & Reconciliation SOP
A consistent, 4-step methodology for cross-referencing unstructured document uploads with automated bank reconciliation gateway transactional data for absolute truth.
Always reconstruct the expected property address from granular database fields (unit_number, building_number, street_name). Never rely on unstructured user-generated text inputs.
Query the raw transaction ledger directly via automated bank reconciliation gateway Private API. Validate that payment references, amounts collected, and dates matches the exact values in tbl_rents.
Match historical PDFs strictly to the active tenancy contract running on that payment date (start_date <= payment_date <= end_date) instead of merging them under a single root.
If an address mismatch occurs (e.g. "Flat 1" vs "Flat 1, 25"), use a 10-day payment date tolerance and the tenancy fallback rent rate (rent_pcm_agreed) to auto-reconcile and fix the mismatch.
Empirical Portfolio Audit Results
Results of the background portfolio-wide backfill data health audit executed on May 29, 2026.
Rent statement documents flagged with address mismatches due to missing granular address parameters (such as building_number) in extraction queries.
Orphaned rent transactions in tbl_rents missing an explicit association to their parent asset ID or active tenancy ID.
Non-cancelled tenancy agreements in tbl_tenancies with no mapped lead tenant person (leaving lead_person_id set to null).
Audit Insight: The audit proves that we cannot rely on raw human uploads in AppSheet. Address parsing must be programmatic. By running our newly healed extraction and linking scripts globally, we can bulk-reconcile and heal these 1,000+ mismatches automatically!