Skip to content
Maxwell CollinsContact

Property data API, a permanent condition record for every building

The data layer under every product in the property suite, holding each building's condition history for owners and partners.

What it achieved

Gives every building one permanent condition history that buyers and insurers can verify and the owner controls.

The short version

Every building gets one permanent condition history that buyers and insurers can verify and the owner controls: inspectors, contractors, property managers and owners all add to it, and the owner decides who sees each part. Maxwell built this data API, a "Carfax for properties", as the layer every product in the property software suite is built on. Each property keeps one identity through changes of address and owner. Inspection findings join a signed history that can be added to but never edited. Partner software connects through one secure gateway, hears the moment something changes, sends records in bulk and keeps working offline (API keys, webhooks, batch operations and offline sync). It is planned for 500 million properties, 10 billion observations and 100,000 users at once.

The problem

Nobody keeps a permanent record of a building's condition. Inspection reports sit in one company's software and repair records in another's, and both are lost when the property sells or the address changes. Buyers and insurers can't trust a history they can't verify. Owners have no say over who sees data that reveals their finances and security.

In use

  1. Every property gets one identity that survives changes of address and owner. Duplicate records are found and merged four different ways.
  2. An inspector records an observation with its evidence. It joins a signed history that can be added to but never edited.
  3. The owner decides exactly who may see which part of that history, and anything not granted is denied.
  4. Partner software connects with API keys and gets webhooks, batch operations and offline sync.

What it achieved

  • A building's history can be trusted by a buyer or an insurer: every inspection finding joins a signed record that can be added to but never edited, and each attached photo or document carries a fingerprint that shows any tampering.
  • Owners decide who sees what. Anything not granted is denied, an HVAC contractor can be shown the HVAC history and nothing else, and every access attempt is logged where the owner can read it.
  • Every other product in the suite is built on it, so a building has one record across all of them, found and merged four ways when duplicates appear.
  • Its tests run against a real database, not a stand-in.

The full record

On this page
In one sentence

Maxwell built the suite's data API, a population-scale property-condition backend described as "a Carfax for properties," capacity-planned for 500 million properties, 10 billion observations and 100,000 concurrent users, with an append-only observation ledger carrying tamper-evident signatures, a fail-closed seven-step default-deny permission kernel and a four-method PostGIS deduplication engine, spanning 32 tables, 45 API controllers and 40 published event types in an API of 149,000 lines, validated by 6,469 test cases (174,213 lines of tests in 699 files) run against a real PostgreSQL database in Docker. He builds by directing AI agents, and he built this system that way.

tests
6,469
tables
32
properties planned for
500M
permission steps
7

What it does

The property suite gives every property a permanent identity that survives address changes and changes of owner, records everything ever observed about it as a history that cannot be edited, and lets the owner decide exactly who may see which part of that history. Its own summary is "DNS for properties," "OAuth for property data" and "Plaid for property info." Inspection companies, service contractors, property managers and owners all write to it and read from it through one API, and the whole ecosystem of products is built on top of it.

Permanent property identity

  • The property is the anchor. A property keeps one identity, a time-ordered UUIDv7, no matter how many addresses, owners or parcel numbers it has over its life.
  • Addresses and aliases. Addresses are their own records, linked to properties, with aliases so "Unit 4B" and "Apt 4B" resolve to the same place.
  • External identifiers. Parcel numbers, Google Place IDs and other outside identifiers attach to a property with their issuing jurisdiction.
  • Address search with a full-text search index kept current by a database trigger.

Finding and merging duplicates

The same building arrives from many sources written many ways. The deduplication engine looks for matches four ways:

  1. Exact hash of the normalized address.
  2. Same parcel number in the same jurisdiction.
  3. Geographic proximity within 30 meters, using PostGIS on WGS 84 coordinates.
  4. Fuzzy address similarity above 0.85 within the same city and state.

Each candidate gets a weighted score (address similarity plus parcel, proximity and property-type bonuses, minus unit and parcel-mismatch penalties). Candidates are stored for review, a duplicate report lists them, a batch detection endpoint scans in bulk, and confirmed matches merge through a merge record and an auto-merge saga so nothing is lost.

The observation ledger

  • Append-only. Every inspection finding, repair, installation or photo is an observation, and observations are never edited or deleted. A correction is a new observation that supersedes the old one, linked in both directions, and queries show the current version by default while the full history stays provable. A PostgreSQL trigger and a hookify rule both block deletes.
  • Evidence. Photos and documents attach to observations with a SHA-256 hash of each file, so a tampered file is detectable and a duplicate upload is recognized.
  • Signatures. Observations can be signed with electronic, cryptographic or biometric signatures over a hash of the signed content. Signatures can be verified later through their own endpoint, and every signature by one signer can be listed.
  • Assets and property systems. HVAC units, water heaters, roofs and other systems are tracked as assets with their own lifecycle and analytics, linked to the observations about them.
  • Observation vocabulary. A controlled list of observation types and categories keeps data from different companies comparable.

The permission kernel

Every request runs the same seven-step resolution, and the first match wins:

  1. Is the user the property's owner, through a party record? Admin.
  2. Is the user's company the owner? Admin.
  3. Is the user a steward, with no verified owner? Manage or contribute.
  4. Does the user hold an active grant? The grant's level, filtered by its scope.
  5. Did the user's company create the property? Contribute if there is no verified owner, otherwise read on its own observations.
  6. Did the user's company contribute observations? Read on its own observations.
  7. Otherwise: deny, and log the attempt.

Permission levels run from none through discover, read, contribute and manage to admin. Grants can be scoped by observation type, date range and property system together, so an HVAC contractor sees HVAC history and nothing else. Grants can be delegated and revoked under revocation policies, ownership can be claimed, verified and transferred, stewards can be assigned, and every access attempt, allowed or denied, is written to an access log the owner can read. The target is a permission decision in under 10 milliseconds.

Identity, companies and apps

  • Users, parties and representatives. People and organizations are parties; representatives can act for a party.
  • Companies and memberships with invitations and roles.
  • Apps and API keys so outside software can connect, with keys generated and revoked per app.
  • Authentication with password rules, Google sign-in and multi-device sessions with refresh-token families that are invalidated together if one token is stolen.

Webhooks, batches and offline sync

  • 40 event types published to subscribers, from property created to observation signed to grant revoked, with a delivery log, replay protection, a bounded retry queue and checks against server-side request forgery at delivery time.
  • Batch operations and offline sync. Field apps that work without signal upload batches later; seven sync handlers apply observation creation, supersession, evidence, grants, claims and property updates in order, protected by batch locks.
  • Idempotency on write endpoints so a retried request never creates a duplicate.

Built for population scale

Capacity planning covers four tiers from under one million properties to 500 million, with partitioning by month for observations, by year for properties and by day for access logs with 90-day retention, read replicas, connection pooling and a Redis cluster at the top tier. The targets are 500 million properties, 10 billion observations, 50 billion events, 100,000 concurrent users and 50,000 requests a second at peak.

AI with a human in charge

AI features return suggestions with confidence scores at overall and per-field levels; nothing AI produces becomes an observation until a person submits it, and the system works fully without AI.

What it achieved

  • 6,469 test cases in 174,213 lines of tests across 699 files, covering unit, integration, revert, end-to-end, journey, performance and contract tests against a real PostgreSQL database with PostGIS in Docker.
  • 32 tables across four domain layers (identity, property, observation and permission) plus infrastructure, built through 23 migrations.
  • 45 API controllers and 40 event types, in an API that reached 149,000 lines.
  • Capacity-planned for 500 million properties, 10 billion observations and 100,000 concurrent users.
  • Built across 44 numbered specifications and 353 commits, and the data layer every other product in the ecosystem is built on.

The problem it solves

There is no permanent record of a building's condition. Inspection reports sit in one company's software, repair records in another's, and both are lost when the property sells or the address changes. Buyers, insurers and owners cannot trust history they cannot verify, and owners have no say over who sees data that reveals their finances and security. The property suite gives the building itself a lasting identity, keeps a history that can be proven untouched, and puts the owner in control of every view of it.

How he built it

Maxwell wrote a constitution for the API first: immutability, owner consent, UUIDv7 everywhere, time-zone-aware timestamps, WGS 84 coordinates, fail-closed security and the exact seven-step permission order. He then directed AI agents through 44 numbered specifications using a six-gate process (specification check, research, data-flow check, failing tests, implementation, and a fresh-reviewer audit), with one agent writing each failing test and a different agent writing the code that passes it. 54 hookify rules block known mistakes as they are typed, from deleting an observation to using the wrong coordinate system, and more than 30 shell hooks guard commands, protect files and stop work after a failed gate. pnpm gate runs ast-grep pattern checks, dependency-cruiser layer-boundary checks, coverage and type checks before every commit, and a 54-rule testing standard with 15 named anti-patterns governs how every test is written.