2026 · REAL ESTATE INTEL

DealFinder

A paused pre-launch product whose explainable, confidence-weighted model kept the operator able to inspect each score.

PAUSED Designed the reviewed scoring model and resilient collection workflow.
On this page

WHAT IT IS

Lead scoring for San Diego real-estate wholesalers.

DealFinder scores leads for real-estate wholesalers in San Diego County, who are investors that put a property under contract and sell that contract on to another buyer, and it aims to find likely sellers before a home reaches the Multiple Listing Service (MLS), the shared database agents use to advertise homes for sale. It pulls distress signals, public records that suggest an owner may need to sell, such as unpaid property tax, probate (the court process that settles a dead owner's estate), code violations and vacancy, into one dashboard and turns them into a score from 0 to 100. It ranks leads and does no automated outreach.

DealFinder screenshot

WHAT CHANGED

The requirements were rewritten after a review, before any code existed.

The product requirements document (PRD) was rewritten as version 4 in the project's first commit, under a header calling it post-adversarial review, meaning a review meant to find faults in the plan, and the first code arrived the next day. It removed the owner-age signal, the one change the PRD ties to fair housing, the rules against housing discrimination, citing elder-targeting risk and unreliable age inference. Divorce became an unscored manual tag because the PRD found no API, or data service, for it and judged it not scalable. Exponential scoring became additive, each signal adding points weighted by how reliable its data is, and the AI street-imagery scan dropped from weight 5 to 3 and was labelled experimental.

CONTROL

Code enforces the scraper's limits and the audit log, while the fair-housing rule is written guidance.

Two safeguards are enforced in code. The tax-delinquency scraper keeps a cursor, the last parcel number it finished, so a crashed run resumes where it stopped, and a circuit breaker ends the run after 50 consecutive failed lookups. A database trigger, code the database runs on each change to a table, rejects any edit or deletion in the audit log. The rule against inferring owner age is written guidance: a checklist skill, saved instructions the coding agent follows only when invoked, and a hook that reprints the rule after the agent's history is compacted, or trimmed to fit its memory.

LESSONS

Two patterns from this build.

  • Set the links from an audit log to user accounts so they block deletion. In this repo the foreign keys, the columns that tie each log row to a user account, were changed from cascade, which deletes a user's log rows along with the account, to restrict, which refuses to delete an account that still has log rows, so removing a user cannot take that user's history with it.
  • Have any bulk function that switches records off refuse an empty list. A commit marked P0, the top priority, fixed a bug in which an empty list of IDs could have deactivated every tax signal. The fix added a check to the upload script that sends the list and made the database function itself reject a list that is empty or missing, so the guard holds for any caller.

PROJECT DESIGN

How it works.

Pre-MLS lead pipeline — Next.js dashboard, Supabase + PostGIS, scheduled ingest
Frontend
Next.js 14 (App Router)React + TypeScriptLeaflet mapZod validation
API / edge
Next.js API routes5 Supabase Edge Functions (Deno)pg_cron scheduled jobs
Data
Postgres + PostGIS (24 migration files)Append-only audit/activity logsPer-user row-level security
External
Tracerfy + ATTOM + Smarty (property/lead data)Google Street View + Claude Vision (experimental scan)

Key modules

Pipeline

Scoring engine

Additive, explainable lead score (0–100) from weighted distress signals with confidence multipliers.

Data

Entity resolution

Deduplicates the same parcel arriving as APN, address variant, or trust/LLC name on bulk ingest.

Pipeline

Ingest pipelines

Five edge workers populate and refresh properties from parcel, tax, and lead sources.

Pipeline

Tax-delinquency scraper

A county-scale scraper on pg_cron with cursor checkpoints and a circuit breaker that stops after 50 consecutive failures.

Auth

Compliance & audit

Append-only audit trail, per-user RLS, and do-not-call (DNC) status flagged on contact exports.

UI

Property dashboard

Lead table, signal filters, map view, notes, and an activity timeline for operators.

SECURITY & OPERATIONS

Security and operations.

Fair-housing-gated scoring
Distress signals · 11 sources
Fair-housing gate at design time: the owner-age signal was removed entirely
Additive scoring with confidence multipliers (High 1.0 / Med 0.75 / Low 0.5), default weights fixed in migrations and adjustable per user from 1 to 10
Explainable output: every lead score breaks down to the inputs that produced it
  • Fair-housing compliance was a design-time constraint, not a retrofit: the owner-age signal was removed from scoring entirely.
  • AI-inferred property-condition scores ship labeled experimental, weight-capped, dated, and feedback-instrumented.
  • Scoring is explainable by construction: an additive model with confidence multipliers, default weights fixed in migrations and adjustable per user from 1 to 10, so "why did this lead score 78?" always has an answer.
  • Each of 11 data sources carries an explicit freshness class so the product can't imply timeliness it doesn't have.

BUILDER NOTES

Builder notes.

  • The tax-delinquency scraper, built to walk about 566,000 parcels in the database, moved from a local CLI to an edge function on cron, with cursor-based pagination, a circuit breaker, and a plausibility check over the whole run at completion.
  • Entity resolution is load-bearing: the same parcel arrives as an APN, two address spellings, an LLC, and a family trust — an APN-primary resolution layer keeps scoring sane.
  • 24 idempotent migration files (~4.1k lines of SQL) with row-level security and an append-only audit layer supported a seven-day build without data-wipe risk.

WRITING

Field notes from this work.

No public field notes for this project yet.

Full build narrative

Pre-MLS lead intelligence for San Diego County real-estate wholesaling: tax delinquency, pre-foreclosure, probate, absentee ownership, and code violations aggregated into one operator dashboard with explainable lead scoring. Intelligence only, no automated outreach. 130 commits, 24 database migration files, and five external data integrations in 7 days.

Planned through an adversarial review, per the PRD's header: the PRD reached v4 before any code, and the review reshaped the product. The scoring model was swapped for an explainable one, and an entire signal class was removed on fair-housing grounds. When the county-scale tax scraper kept dying as a local script, it moved to a serverless function with cursor checkpoints, circuit breakers, and a plausibility check over the whole run at completion.

Trust belongs in the schema, not the application.
The operating principle behind every project here. A rule the database enforces can't be forgotten in a hurry. Constraints, denied-by-default access, append-only logs — the controls that hold are the ones the system won't run without.