All case studies

Research packets that build themselves

The weekly property brief, call sheet and deal sheets behind a brokerage's owner calls, assembled by pipelines instead of by hand.

83 pages
in one week's brief, covering 65 parcels Source: page count of the Sep 14, 2026 brief
160 → 275
tenants found in one edition, after fixing how the search reads big lots Source: pipeline documentation
184
reports in one searchable library Source: project history, Sep 8, 2026

The problem

value to confirm

Every week Lornell’s brokers call the owners of commercial property. A call goes better when the broker already knows who owns the building, what else they own, who the tenants are, and what the deeds and permits say. That research was done by hand, one parcel at a time. value to confirm

The firm’s finished reports, 61 of them, sat in one folder on one laptop. Deal sheets generated in the app were shown in the browser and then thrown away. Nobody could search what the firm already knew.

What I built

Four tools, built around the weekly calls:

  • Property Vitals, the weekly brief. A 22-stage pipeline turns the week’s call list into a PDF: a cover roster, a block map, one page per parcel, and appendices for owner portfolios and tenants. Every row on the call sheet links to its own page. The four editions so far ran 28, 45, 47 and 83 pages; the September 14 edition covers 65 parcels.
  • The call sheet. A generator writes each week’s tab in the brokers’ existing format and adds everyone named on each owner’s state filing. It only appends, so hand edits survive. It groups owners by mailing address to find the sponsor behind several LLCs, and deliberately ignores zip codes, because assessor zips carry typos that split one sponsor in two.
  • Deal sheets on demand. One click produces a tearsheet for any property in the state: owner, portfolio, tenants, comparable sales, maps and decision makers. Decision makers come from the state registries first and AI research second. Researched sections are reused, so a repeat sheet costs nothing in AI fees.
  • The reports library. Every brief, study and deal sheet, searchable and linked to its parcels: 184 items today. Filing is automatic, through a single register() function, because one week’s brief once shipped unfiled when filing was a step someone had to remember.

The same approach rebuilt the 195-page Midtown Block report as a 37-page edition, one page per parcel.

The AI inside the product has a narrow job: research on deal sheets, after the registries have been asked.

Diagram: the call list enters on the left, the 22 stages run in phases, and out come the PDF, the linked call sheet and a library entry.

The hard parts

Finding the tenants on a big lot.

Asking Google for businesses near the center of a parcel works on a small lot. On a big lot the center can sit far from the storefronts: on one 12-acre lot a center-point search finds nothing, though five businesses sit on the parcel itself. So the search is sized to the parcel’s real shape, asks Google a second way to get past its 20-result cap, and keeps only businesses whose location falls inside the parcel boundary.

Under the hood
  • Nearby Search was anchored at the centroid with a 75 m radius. On that 50,346 m² lot the nearest tenant was 78 m from the centroid and 0 m from the polygon. Migration 214 sizes the radius from the geometry (120 m floor plus a 40 m frontage buffer, 350 m cap) and filters by distance to the polygon.
  • A Text Search pass asks for “businesses at” the address (a bare address returns only the building). Each listing’s point is then tested against the parcel polygon, and a candidate whose listed address is itself another parcel is refused, because containment over-collects along street fronts.

Fitting 83 pages without shrinking the type.

Each parcel gets one letter-size page. When a page runs over, the fit loop steps down a ladder of denser layouts. The rule in the pipeline’s own notes: anything still over budget “needs a rung on the density ladder… not a smaller font.” Printing to PDF had its own traps.

Under the hood
  • Headless Chrome needs a generous --virtual-time-budget, or it prints before the web font loads and the pagination the fit loop measured is not the pagination that prints.
  • It needs a fresh profile per run, and it doesn’t reliably exit, so the build waits on the file: a PDF whose size has stopped changing and that ends in the EOF marker.

Writing down where the machine is wrong.

Some facts the pipeline can’t get right alone. Instead of patching the PDF by hand each week, every correction lives in one file, and each entry records what the machine would have printed and why that was wrong. The next edition inherits the fix, and anyone can see why a page differs from the raw data.

Under the hood
  • overrides.py holds street aliases, broken parcel ids, registry searches that return nothing, and shared mailing addresses. An empty registry search is not a finding of no debt, and the page must not imply it is.
  • Standing rule: an ownership cluster wildly out of scale with its parcel is treated as a shared-address artifact until proved otherwise, because a mailing address can be an out-of-state tower the Massachusetts roll can’t see.

Finding an owner’s whole portfolio.

Owners often hold property through LLCs with different names, so matching on the owner’s name can find one parcel when there are dozens. The deal sheet groups entities that share a mailing address instead. For one owner that turned a single parcel into 61 parcels across 26 entities in 10 towns. The sheet labels them “entities sharing this mailing address”, never legal ownership, because that is all the data proves.

Under the hood
  • get_affiliated_holdings() (migration 251) groups by normalized mailing address, guarded against institutional mail drops: one state agency’s address covers 3,703 parcels across 231 entities. A functional index keeps it at 5.8 ms, where it would otherwise scan 2.58M rows against a 3-second timeout.
  • Rent figures that mix monthly and annual units are excluded rather than converted, because multiplying a suspected monthly figure by 12 invents data.

Results

  • Weekly since the week of August 24, 2026. Four editions of 28, 45, 47 and 83 pages. How measured: page counts of the PDFs on file.
  • 160 to 275 tenants in one edition after the three-stage sweep. How measured: the same week’s parcels, first stage alone vs all three (pipeline notes).
  • 184 reports in one library, including 110 older deal sheets filed from cached research at $0 in AI fees. How measured: the library’s own count on September 8, 2026; the backfill ran cache-only.
  • Midtown Block: 195 pages down to 37. How measured: PDF page counts.
  • value to confirm
  • value to confirm

What’s next

  • One command, on a server. The stages run in order today. Next: the whole week end to end from a single command.
  • Every registry district live. 17 of Massachusetts’ 21 deeds registries are supported and 9 return live results. Next: prove the other 8.
  • Outcome tracking. Next: tie each meeting and listing back to the edition that prepared the call.

Stack

Python · PostgreSQL + PostGIS · Supabase · Google Places API · Gemini · headless Chrome · openpyxl · Next.js 16 on Cloudflare Workers

If your team spends every Monday assembling the same research by hand, a pipeline can do the assembly and leave the judgment to you.

Have a similar problem? Book a call.