This system models real estate workflows as typed dependency graphs — every stage, service, or milestone is a node, and every prerequisite relationship is a directed edge. A graph engine computes phase ordering, impact propagation, risk analysis, and health status automatically from the structure.
Seven scenarios demonstrate the approach:
Same engine. Same patterns. Seven fundamentally different shapes of work.
Imagine you're explaining a real estate deal to a brand new assistant. You'd say things like:
You already think this way. Every experienced agent carries a mental map of what depends on what.
What this system does is write that map down — once — and then ask it questions.
Each stage in a deal (or each tool in your business) becomes a dot on a map. You draw arrows between them: "this can't start until that's done." That's it. That's the whole input.
You don't tell the system which phase something is in. You don't manually number the steps. You just say "photography depends on property prep" and "MLS listing depends on photography and pricing." The system figures out the rest.
Once the map exists, the system can answer questions you'd normally have to think through manually:
Three reasons:
A seller-side residential resale in Ottawa — from signed listing agreement through to closing. 16 stages across 11 transaction phases, with dependencies computed (not manually assigned) from the graph structure.
| Phase | Duration | Stages | What's Happening |
|---|---|---|---|
| 0 | 1 day | listing-agreement | Signed OREA Form 200 — agency, commission, terms established |
| 1 | 14 days | property-prep, market-analysis | CMA research + declutter/staging/repairs run in parallel |
| 2 | 3 days | photography, pricing-strategy | Professional photos + list price decision (both need prep/CMA done first) |
| 3 | 21 days | mls-listing, marketing-campaign | Property goes live on Matrix MLS + social/email campaign launches |
| 4 | 21 days | showings | Buyer showings, open houses, feedback collection |
| 5 | 1 day | offer-received | Buyer submits OREA Form 100 (APS) |
| 6 | 3 days | offer-negotiation | Counter-offers, sign-backs, irrevocable periods |
| 7 | 1 day | accepted-offer | Mutual acceptance — deposit due within 24h to brokerage trust |
| 8 | 10 days | home-inspection, financing-approval, lawyer-review | Three buyer conditions run in parallel |
| 9 | 1 day | conditions-waived | All conditions satisfied or waived — deal is firm |
| 10 | 1 day | closing | Title transfer, funds disbursed, keys handed over |
Each stage now includes real Ottawa cost estimates and failure rate percentages:
| Stage | Cost | Failure Rate | Who Pays |
|---|---|---|---|
| listing-agreement | $0 | 2% | Commission due at closing |
| property-prep | $500–$5,000 | 5% | Seller |
| photography | $300–$600 | 2% | Agent |
| offer-received | $0 | 20% | — |
| offer-negotiation | $0 | 15% | Agent labour |
| financing-approval | $300–$500 appraisal | 15% | Buyer |
| home-inspection | $400–$600 | 12% | Buyer |
| closing | $1,500–$2,500 | 2% | Seller (legal fees) |
The graph computes downstream impact for every node:
| Stage | Downstream Affected | Owner |
|---|---|---|
| listing-agreement | 15 (everything) | Listing Agent |
| property-prep | 12 | Listing Agent + Seller |
| market-analysis | 12 | Listing Agent |
| photography | 11 | Photography Vendor |
| pricing-strategy | 11 | Listing Agent + Seller |
| showings | 8 | Listing Agent |
| accepted-offer | 5 | Both Agents |
| conditions-waived | 1 | Buyer's Agent |
The listing agreement is the ultimate dependency — everything cascades from it. Market analysis and property prep are the next-highest leverage items because the entire marketing and showing sequence depends on both being complete.
Health propagation through the graph: home-inspection marked as down, everything upstream stays healthy, everything downstream (conditions-waived, closing) propagates to at_risk. The buyer can walk away, renegotiate, request repairs, or waive.
Because the transaction pipeline is largely linear (each stage depends on the previous), most stages are structural SPOFs — there's no parallel path around them. The graph identifies 10 SPOFs, with the highest-leverage ones being:
| SPOF | Phase | Risk | Mitigation |
|---|---|---|---|
| listing-agreement | 0 | CRITICAL — 15 downstream | Pre-listing preparation buffer, backup vendor list |
| property-prep | 1 | CRITICAL — 12 downstream | Pre-listing preparation buffer, backup vendor list |
| photography | 2 | CRITICAL — 11 downstream | Pre-listing preparation buffer, backup vendor list |
| showings | 4 | HIGH — 8 downstream | Weekly status check, pre-qualify before scheduling |
| accepted-offer | 7 | MEDIUM — 5 downstream | Monitor timeline, have backup plan |
The transaction model includes real Ottawa inventory from Royal LePage Team Realty to ground the analysis in concrete data:
| Address | Area | Type | Price | Beds | Baths |
|---|---|---|---|---|---|
| 7 Manorgate Place | Barrhaven | Detached | $999,990 | 5 | 4 |
| 1409 Mory Street | Alta Vista | Detached | $995,000 | 4 | 4 |
| 224 Rivertree Street | Stittsville | Detached | $939,900 | 5 | 4 |
| 1704 - 200 Rideau Street | ByWard Market | Condo | $849,900 | 4 | 2 |
| 133 Chevron Place | Findlay Creek | Detached | $649,900 | 3 | 3 |
| 27 Sandcliffe Terrace | Barrhaven | Townhouse | $639,900 | 4 | 3 |
| 136 Main Halyard Lane | Barrhaven | Detached | $619,900 | 3 | 3 |
| 776 Miikana Road | Findlay Creek | Detached | $609,900 | 3 | 3 |
| 703 - 242 Rideau Street | Sandy Hill | Condo | $329,000 | 1 | 1 |
15 services across 6 deployment layers, modelling the complete technology and compliance infrastructure an Ottawa real estate agent depends on:
| Layer | Services | What It Is |
|---|---|---|
| 0 (Regulatory) | reco-registration, brokerage | RECO license + brokerage affiliation — non-negotiable prerequisites |
| 1 (Board + Insurance + Trust) | oreb-membership, errors-omissions, trust-accounting | OREB membership, mandatory E&O insurance, brokerage trust account |
| 2 (Core Platforms) | mls-matrix, crm-system | Matrix MLS + CRM (kvCORE/Follow Up Boss) |
| 3 (Operations) | transaction-mgmt, e-signing, website, photography-vendor, email-marketing | Deal tracking, DocuSign, IDX website, media vendors, CASL email campaigns |
| 4 (Marketing + Compliance) | social-media, document-archive | Social channels + RECO-mandated 6-year document retention |
| 5 (Analytics) | lead-tracking | Lead attribution and ROI analysis |
Each service includes monthly cost estimates and backup options:
| Service | Monthly Cost | Renewal | Alternative |
|---|---|---|---|
| RECO registration | $155/month | Every 2 years | N/A — mandatory |
| Brokerage | $200–$1,000/month | Annual | RE/MAX, eXp, KW, C21 |
| OREB membership | $150/month | Annual | N/A — required for MLS |
| CRM system | $50–$300/month | Monthly/annual | kvCORE, FUB, LionDesk |
| Website + IDX | $50–$200/month | Annual | RealtyNinja, AgentFire |
| Photography | $300–$600/listing | Per listing | Multiple vendors |
MLS is the backbone of daily operations. When it goes down (OREB reports scheduled maintenance windows), the blast radius is significant but not total — the graph shows exactly what's safe to keep working on.
| SPOF | Layer | Downstream | Why It's a SPOF |
|---|---|---|---|
| oreb-membership | 1 | 10 services | Only board membership at its layer — MLS, CRM, and everything downstream depends on it |
| social-media | 4 | 1 service | Only marketing channel feeding lead-tracking at its layer |
15 professional contacts modelling the agent's referral relationships — mortgage brokers, lawyer, inspectors, stager, photographer, appraiser, insurance agent, contractor, title insurance, moving company, surveyor, cleaning service, and social media marketing. Dependencies represent referral chains and workflow ordering.
| Layer | Contacts | What They Are |
|---|---|---|
| 0 (Primary) | sarah-chen, james-wu, mike-kowalski, jen-hall, dave-arnott, tom-zhang | Core relationships — independent contacts with no upstream dependencies |
| 1 (Downstream) | lisa-tran, kate-brown, amy-wilson, raj-patel, title-plus, ottawa-moving, mark-reid, clean-sweep | Contacts who get work through referral chains from primary contacts |
| 2 (End of chain) | social-boost | Social media marketing — depends on photographer who depends on stager |
Tom Zhang anchors the longest chain in the network (depth 3):
| Contact | Downstream Affected | Role |
|---|---|---|
| mike-kowalski | 3 contacts | Real estate lawyer — title, moving, surveyor all route through him |
| tom-zhang | 3 contacts | Home stager — photographer, social media, cleaning all depend on staging |
| sarah-chen | 2 contacts | Mortgage broker — appraiser and insurance referrals |
| jen-hall | 2 contacts | Home inspector — contractor and surveyor depend on inspection findings |
| amy-wilson | 1 contact | Photographer — social media campaign depends on her photos |
Each contact now includes operational data — how fast they respond and how much work they can handle:
| Contact | Role | Response Time | Capacity | Last Used |
|---|---|---|---|---|
| sarah-chen | Mortgage Broker | Same day | 15 active files | Feb 2026 |
| mike-kowalski | Real Estate Lawyer | Same day | 20 closing files | Feb 2026 |
| jen-hall | Home Inspector | 2–3 business days | 3/week | Jan 2026 |
| tom-zhang | Home Stager | 1 week lead time | 2/week | Jan 2026 |
| lisa-tran | Appraiser | 3–5 business days | 2/week | Jan 2026 |
| mark-reid | Land Surveyor | 1–2 weeks | 1/week | Oct 2025 |
| raj-patel | Contractor | 3–5 business days | 1 project | Dec 2025 |
13 tasks across 7 phases modelling the pre-listing preparation workflow — from initial property assessment through staging, photography, and MLS entry to social media launch:
| Phase | Duration | Tasks | What's Happening |
|---|---|---|---|
| 0 | 1 day | property-assessment | Initial walkthrough — identify repairs, staging needs, unique features |
| 1 | 10 days | cma-report, declutter, pre-listing-repairs, floor-plan | Four parallel tracks: CMA research, seller declutters, contractor repairs, floor plans measured |
| 2 | 1 day | deep-clean, pricing-decision | Professional deep clean (after repairs) + final price decision (from CMA) |
| 3 | 2 days | staging | Professional home staging — furniture, accessories, curb appeal |
| 4 | 2 days | photography, virtual-tour | Professional photos, drone aerials + Matterport 3D tour |
| 5 | 1 day | mls-entry | Convergence gate — listing goes live on Matrix MLS |
| 6 | 1 day | social-campaign, signage | Social media launch + yard sign and lockbox installed |
12 regulatory requirements across 4 layers modelling the compliance obligations an Ontario real estate agent must maintain:
| Layer | Requirements | What They Are |
|---|---|---|
| 0 (Foundation) | reco-registration, pre-registration-course | RECO license + Humber College program — mandatory prerequisites |
| 1 (Core) | articling-phase, mce-credits, eo-insurance, brokerage-agreement | 24-month articling, MCE credits, E&O insurance, brokerage affiliation |
| 2 (Obligations) | fintrac-compliance, privacy-compliance, anti-spam-compliance, annual-declaration | FINTRAC, PIPEDA, CASL, annual RECO declaration |
| 3 (Downstream) | trust-account-procedures, document-retention | Trust account compliance + 6-year document retention |
13 steps across 8 phases modelling the full onboarding journey for a new real estate agent joining Royal LePage Team Realty:
| Phase | Duration | Steps | What's Happening |
|---|---|---|---|
| 0 | 150 days | pre-registration-course | Humber College Real Estate Salesperson Program (4–6 months) |
| 1 | 14 days | reco-application | Submit RECO application with background check, proof of education |
| 2 | 21 days | reco-approval | RECO processes application (2–4 weeks) — external dependency |
| 3 | 7 days | brokerage-interview | Interview with brokerage — commission split, desk fees, mentorship |
| 4 | 3 days | brokerage-agreement | Sign agreement — widest fan-out (8 downstream steps) |
| 5 | 7 days | oreb-registration, crm-setup, email-setup, headshot-branding, mentor-assignment | Five concurrent setup tasks |
| 6 | 14 days | mls-training, website-profile | Matrix MLS orientation + personal website setup |
| 7 | 7 days | first-open-house | First supervised open house — the milestone that says "you're productive" |
13 stages across 11 phases modelling the full buyer client lifecycle — from lead capture through qualification, showings, and closing to post-sale referral generation:
| Phase | Stages | Conversion Rate | What's Happening |
|---|---|---|---|
| 0 | referral-lead, online-lead, open-house-lead | 35%, 2–5%, 8–12% | Three lead sources feed the pipeline |
| 1 | initial-consultation | 60% proceed | First meaningful conversation — qualify buyer readiness |
| 2 | needs-assessment | 80% proceed | Detailed buyer profile — neighbourhoods, must-haves, budget |
| 3 | pre-approval-referral | 85% approved | Refer to Sarah Chen for mortgage pre-approval |
| 4 | property-search | 70% find matches | Active search — MLS auto-alerts, off-market opportunities |
| 5 | showings | 60% make offer | Typically 5–15 homes over 2–6 weeks |
| 6 | offer-preparation | 50% accepted | OREA Form 100 with conditions and strategy |
| 7 | under-contract | 88% close | Manage conditions, coordinate parties |
| 8 | closing-day | 99% | Title transfer, key handover, closing gift |
| 9 | post-closing-nurture | — | 30-day check-in, 6-month follow-up, anniversary card |
| 10 | referral-generation | 40% refer within 2 years | The pipeline becomes circular — happy clients generate new leads |
The conversion rates tell the story. The biggest drops:
referral-generation feeds back into referral-lead. Sphere referrals convert at 35–40%, which is 7× the rate of online leads. The graph makes the case for investing in post-closing nurture rather than ad spend: one happy client generates 1.5 referrals on average, each with a 35% conversion rate.
| Scenario | Nodes | Shape | Layers | Key Question |
|---|---|---|---|---|
| Transaction | 16 | Linear pipeline with parallel conditions | 11 | "What delays closing?" |
| Operations | 15 | Service topology with regulatory roots | 6 | "What breaks when MLS goes down?" |
| Referral | 15 | Referral chains with redundancy gaps | 3 | "My lawyer retires — what breaks?" |
| Listing | 13 | Checklist with parallel prep tracks | 7 | "What's blocking go-live?" |
| Compliance | 12 | Regulatory tree from RECO root | 4 | "Registration lapses — what cascades?" |
| Onboarding | 13 | Deep pipeline with external gates | 8 | "RECO is slow — what's blocked?" |
| Client | 13 | Conversion funnel with referral loop | 11 | "Where do I lose clients?" |
97 total nodes, 104 edges, 7 scenarios — all from the same pattern library.
This system doesn't replace Dotloop, kvCORE, or Matrix MLS. It does something different — it models the relationships between stages and services, not just the stages themselves.
| Capability | Spreadsheet / Checklist | CRM / Transaction Mgmt | This System |
|---|---|---|---|
| Blast radius ("financing fell through — what's affected?") | Manual tracing | Not modelled | Automatic — traces full downstream failure set |
| Health propagation ("MLS is slow — what's degraded?") | Not possible | Not built-in | Cascading health states from dependency structure |
| Single point of failure detection | Tribal knowledge | Not built-in | Computed — no redundancy + high impact = SPOF |
| Phase ordering from structure | Manual assignment | Preset pipeline | Derived from dependencies — recomputes when structure changes |
| Cross-domain analysis (deals + operations) | Separate models | Deal tracking only | Same engine, same patterns, same queries |
| Version-controlled, diffable, auditable | Limited | Database records | Plain text CUE files, git-tracked |
| Deal stage tracking / CRM contacts | Basic | Built for this | Not a CRM — models structure, not execution |
The key insight: agents already know intuitively that "if financing falls through, we lose the deal." What they don't have is a tool that quantifies it — shows exactly which 2 downstream stages are affected, which 2 peer conditions are safe, and what the recovery sequence looks like. The graph makes implicit knowledge explicit and queryable.
The interactive graph explorer renders all seven scenarios as layered or force-directed network diagrams:
#transaction/financing-approval, #listing/staging, #compliance/reco-registration, #client/showingsAll graph analytics are pre-computed and served as static JSON. The explorer is a pure renderer — no server, no database, no login required.
The system uses CUE, a typed configuration language originally developed at Google for infrastructure management. The same graph patterns that model datacenter dependency networks are applied here to model real estate transaction workflows and agent business infrastructure.
The patterns are reusable: the graph engine computes depth, ancestors, and topology; the deployment planner generates phased execution sequences; the impact query traces failure propagation; and the SPOF detector finds nodes with no redundancy. These patterns work identically whether the nodes are transaction stages, business services, work packages, or any typed resource with dependencies.
With CUE v0.15.3 installed:
| Query | Command |
|---|---|
| Transaction schedule | cue eval ./transaction/ -e schedule |
| Critical path | cue eval ./transaction/ -e critical_path |
| Financing falls through | cue eval ./transaction/ -e financing_falls_through |
| Risk register (SPOF) | cue eval ./transaction/ -e risk_register |
| Deal health | cue eval ./transaction/ -e deal_health |
| MLS outage | cue eval ./operations/ -e mls_down |
| CRM failure | cue eval ./operations/ -e crm_failure |
| Compliance SPOF | cue eval ./operations/ -e compliance_spof |
| Broker unavailable | cue eval ./referral/ -e broker_unavailable |
| Lawyer retires | cue eval ./referral/ -e lawyer_retires |
| Stager booked | cue eval ./referral/ -e stager_booked |
| Critical contacts | cue eval ./referral/ -e critical_contacts |
| Listing launch plan | cue eval ./listing/ -e launch_plan |
| Photography delayed | cue eval ./listing/ -e photography_delayed |
| Staging unavailable | cue eval ./listing/ -e staging_unavailable |
| RECO lapse | cue eval ./compliance/ -e reco_lapse |
| MCE credits overdue | cue eval ./compliance/ -e ce_overdue |
| Compliance plan | cue eval ./compliance/ -e compliance_plan |
| Onboarding plan | cue eval ./onboarding/ -e onboarding_plan |
| RECO processing delayed | cue eval ./onboarding/ -e reco_delayed |
| Client pipeline plan | cue eval ./client/ -e pipeline_plan |
| Pre-approval blocked | cue eval ./client/ -e pre_approval_blocked |
| Showing fatigue | cue eval ./client/ -e showing_fatigue |
| Token-efficient (LLM) | cue eval ./transaction/ -e toon --out text |