Typed Dependency Graphs for Ottawa Real Estate

From: maison-613 — a quicue.ca demonstration project
Date: February 2026
Context: Ottawa, Ontario — OREB / Matrix MLS / Royal LePage Team Realty
Open the Interactive Explorer →

What You're Looking At

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:

  1. Transaction Pipeline — a 16-stage dependency graph modelling a seller-side residential resale from listing agreement to closing
  2. Agent Operations — a 15-service topology graph modelling the business infrastructure an Ottawa real estate agent depends on
  3. Referral Network — a 15-contact dependency graph modelling the agent's professional contacts and referral chains
  4. Listing Launch — a 13-task checklist graph modelling the pre-listing preparation workflow from property assessment to go-live
  5. Compliance Tracker — a 12-requirement dependency graph modelling RECO regulatory obligations and continuing education
  6. Agent Onboarding — a 13-step pipeline modelling the process from pre-registration education to first open house
  7. Client Pipeline — a 13-stage funnel modelling the buyer journey from lead capture through closing to referral generation

Same engine. Same patterns. Seven fundamentally different shapes of work.


How This Actually Works (No Math Required)

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.

The Map

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.

The Questions

Once the map exists, the system can answer questions you'd normally have to think through manually:

Why Bother?

Three reasons:

  1. Shared understanding. When you hand a deal to a colleague, or explain your business dependencies to your brokerage, the map is the explanation. No ambiguity about what depends on what.
  2. Automatic answers. Change the map (add a stage, remove a dependency) and every analysis updates automatically. There's no spreadsheet formula to fix, no report to regenerate manually.
  3. The questions you don't think to ask. Most agents know their biggest risks intuitively. But "photography vendor is a single point of failure that blocks 11 downstream stages" — that's the kind of thing that only becomes visible when you map it explicitly.
The short version: You draw the arrows between steps. The system does the thinking about what those arrows mean.

Scenario 1: Transaction Pipeline

The Deal

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.

PhaseDurationStagesWhat's Happening
01 daylisting-agreementSigned OREA Form 200 — agency, commission, terms established
114 daysproperty-prep, market-analysisCMA research + declutter/staging/repairs run in parallel
23 daysphotography, pricing-strategyProfessional photos + list price decision (both need prep/CMA done first)
321 daysmls-listing, marketing-campaignProperty goes live on Matrix MLS + social/email campaign launches
421 daysshowingsBuyer showings, open houses, feedback collection
51 dayoffer-receivedBuyer submits OREA Form 100 (APS)
63 daysoffer-negotiationCounter-offers, sign-backs, irrevocable periods
71 dayaccepted-offerMutual acceptance — deposit due within 24h to brokerage trust
810 dayshome-inspection, financing-approval, lawyer-reviewThree buyer conditions run in parallel
91 dayconditions-waivedAll conditions satisfied or waived — deal is firm
101 dayclosingTitle transfer, funds disbursed, keys handed over

Cost and Risk Data

Each stage now includes real Ottawa cost estimates and failure rate percentages:

StageCostFailure RateWho Pays
listing-agreement$02%Commission due at closing
property-prep$500–$5,0005%Seller
photography$300–$6002%Agent
offer-received$020%
offer-negotiation$015%Agent labour
financing-approval$300–$500 appraisal15%Buyer
home-inspection$400–$60012%Buyer
closing$1,500–$2,5002%Seller (legal fees)

Ottawa Market Context

What This Answers

"Which stages delay closing the most if they slip?"

The graph computes downstream impact for every node:

StageDownstream AffectedOwner
listing-agreement15 (everything)Listing Agent
property-prep12Listing Agent + Seller
market-analysis12Listing Agent
photography11Photography Vendor
pricing-strategy11Listing Agent + Seller
showings8Listing Agent
accepted-offer5Both Agents
conditions-waived1Buyer'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.

"The buyer's financing fell through — what's the blast radius?"

In Ottawa's market, roughly 15% of conditional deals fail on financing. This is the single most common deal-killer after inspection issues. The blast radius query shows exactly what's at risk — and what work is safely independent.

"Inspector found foundation cracks — deal may not survive"

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.

"Which stages are single points of failure?"

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:

SPOFPhaseRiskMitigation
listing-agreement0CRITICAL — 15 downstreamPre-listing preparation buffer, backup vendor list
property-prep1CRITICAL — 12 downstreamPre-listing preparation buffer, backup vendor list
photography2CRITICAL — 11 downstreamPre-listing preparation buffer, backup vendor list
showings4HIGH — 8 downstreamWeekly status check, pre-qualify before scheduling
accepted-offer7MEDIUM — 5 downstreamMonitor timeline, have backup plan
Why so many SPOFs? A real estate transaction is inherently sequential — you can't show a house before it's listed, can't negotiate before receiving an offer. This linearity means most stages are structural bottlenecks. The graph makes this explicit rather than leaving it as tribal knowledge.

Sample Listings

The transaction model includes real Ottawa inventory from Royal LePage Team Realty to ground the analysis in concrete data:

AddressAreaTypePriceBedsBaths
7 Manorgate PlaceBarrhavenDetached$999,99054
1409 Mory StreetAlta VistaDetached$995,00044
224 Rivertree StreetStittsvilleDetached$939,90054
1704 - 200 Rideau StreetByWard MarketCondo$849,90042
133 Chevron PlaceFindlay CreekDetached$649,90033
27 Sandcliffe TerraceBarrhavenTownhouse$639,90043
136 Main Halyard LaneBarrhavenDetached$619,90033
776 Miikana RoadFindlay CreekDetached$609,90033
703 - 242 Rideau StreetSandy HillCondo$329,00011

Scenario 2: Agent Operations

The Platform

15 services across 6 deployment layers, modelling the complete technology and compliance infrastructure an Ottawa real estate agent depends on:

LayerServicesWhat It Is
0 (Regulatory)reco-registration, brokerageRECO license + brokerage affiliation — non-negotiable prerequisites
1 (Board + Insurance + Trust)oreb-membership, errors-omissions, trust-accountingOREB membership, mandatory E&O insurance, brokerage trust account
2 (Core Platforms)mls-matrix, crm-systemMatrix MLS + CRM (kvCORE/Follow Up Boss)
3 (Operations)transaction-mgmt, e-signing, website, photography-vendor, email-marketingDeal tracking, DocuSign, IDX website, media vendors, CASL email campaigns
4 (Marketing + Compliance)social-media, document-archiveSocial channels + RECO-mandated 6-year document retention
5 (Analytics)lead-trackingLead attribution and ROI analysis

Cost and Alternatives

Each service includes monthly cost estimates and backup options:

ServiceMonthly CostRenewalAlternative
RECO registration$155/monthEvery 2 yearsN/A — mandatory
Brokerage$200–$1,000/monthAnnualRE/MAX, eXp, KW, C21
OREB membership$150/monthAnnualN/A — required for MLS
CRM system$50–$300/monthMonthly/annualkvCORE, FUB, LionDesk
Website + IDX$50–$200/monthAnnualRealtyNinja, AgentFire
Photography$300–$600/listingPer listingMultiple vendors

Regulatory Context

What This Answers

"Matrix MLS is down — what can't I do?"

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.

"My CRM crashed — what's broken?"

"Which services are single points of failure?"

SPOFLayerDownstreamWhy It's a SPOF
oreb-membership110 servicesOnly board membership at its layer — MLS, CRM, and everything downstream depends on it
social-media41 serviceOnly marketing channel feeding lead-tracking at its layer
Why only 2 SPOFs? Unlike the transaction pipeline (which is mostly linear), the operations graph has redundancy built in. RECO and brokerage are both at layer 0 — they provide parallel regulatory foundations. MLS, trust accounting, and CRM are three services at layer 2 — no single one is the sole dependency at that depth. The SPOF detector accounts for this: a node is only a SPOF if it has dependents and no peer of the same type at its layer.
That said, RECO registration and brokerage are still functionally critical — lose either one and you can't practice. They just aren't structural SPOFs because they provide redundancy for each other in the graph. The distinction matters: a structural SPOF like oreb-membership has no peer to absorb its loss.

Scenario 3: Referral Network

The Network

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.

LayerContactsWhat They Are
0 (Primary)sarah-chen, james-wu, mike-kowalski, jen-hall, dave-arnott, tom-zhangCore relationships — independent contacts with no upstream dependencies
1 (Downstream)lisa-tran, kate-brown, amy-wilson, raj-patel, title-plus, ottawa-moving, mark-reid, clean-sweepContacts who get work through referral chains from primary contacts
2 (End of chain)social-boostSocial media marketing — depends on photographer who depends on stager

What This Answers

"My mortgage broker is on vacation — what stalls?"

"What if my lawyer retires?"

"Tom is booked solid — what's the cascade?"

Tom Zhang anchors the longest chain in the network (depth 3):

"Who are my most critical contacts?"

ContactDownstream AffectedRole
mike-kowalski3 contactsReal estate lawyer — title, moving, surveyor all route through him
tom-zhang3 contactsHome stager — photographer, social media, cleaning all depend on staging
sarah-chen2 contactsMortgage broker — appraiser and insurance referrals
jen-hall2 contactsHome inspector — contractor and surveyor depend on inspection findings
amy-wilson1 contactPhotographer — social media campaign depends on her photos

Response Times and Capacity

Each contact now includes operational data — how fast they respond and how much work they can handle:

ContactRoleResponse TimeCapacityLast Used
sarah-chenMortgage BrokerSame day15 active filesFeb 2026
mike-kowalskiReal Estate LawyerSame day20 closing filesFeb 2026
jen-hallHome Inspector2–3 business days3/weekJan 2026
tom-zhangHome Stager1 week lead time2/weekJan 2026
lisa-tranAppraiser3–5 business days2/weekJan 2026
mark-reidLand Surveyor1–2 weeks1/weekOct 2025
raj-patelContractor3–5 business days1 projectDec 2025
Capacity bottlenecks: Tom (stager) at 2/week and Raj (contractor) at 1 project at a time are the tightest capacity constraints. In a busy spring market, these become the actual blockers — not just the dependency chain, but the physical throughput of the people in it.
The insight no CRM gives you: Every agent has a mental list of their go-to contacts. But no tool asks "what happens if Tom is booked?" and traces it forward to show that your photographer can't shoot, your social media campaign can't launch, and your listing sits without professional marketing for three weeks. The referral network graph makes these hidden chains visible.

Scenario 4: Listing Launch

The Checklist

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:

PhaseDurationTasksWhat's Happening
01 dayproperty-assessmentInitial walkthrough — identify repairs, staging needs, unique features
110 dayscma-report, declutter, pre-listing-repairs, floor-planFour parallel tracks: CMA research, seller declutters, contractor repairs, floor plans measured
21 daydeep-clean, pricing-decisionProfessional deep clean (after repairs) + final price decision (from CMA)
32 daysstagingProfessional home staging — furniture, accessories, curb appeal
42 daysphotography, virtual-tourProfessional photos, drone aerials + Matterport 3D tour
51 daymls-entryConvergence gate — listing goes live on Matrix MLS
61 daysocial-campaign, signageSocial media launch + yard sign and lockbox installed

What This Answers

"The photographer cancelled — what's delayed?"

"Tom is booked and can't stage this week — what cascades?"

Launch timeline: The critical path from assessment to go-live is approximately 3–4 weeks, assuming no vendor delays. The graph shows that 4 tasks can run in parallel at phase 1, which is where the most time is saved.

Scenario 5: Compliance & Education

The Requirements

12 regulatory requirements across 4 layers modelling the compliance obligations an Ontario real estate agent must maintain:

LayerRequirementsWhat They Are
0 (Foundation)reco-registration, pre-registration-courseRECO license + Humber College program — mandatory prerequisites
1 (Core)articling-phase, mce-credits, eo-insurance, brokerage-agreement24-month articling, MCE credits, E&O insurance, brokerage affiliation
2 (Obligations)fintrac-compliance, privacy-compliance, anti-spam-compliance, annual-declarationFINTRAC, PIPEDA, CASL, annual RECO declaration
3 (Downstream)trust-account-procedures, document-retentionTrust account compliance + 6-year document retention

What This Answers

"My RECO registration lapses — what cascades?"

"I'm behind on MCE credits — what's at risk?"

The hidden chain: RECO registration is the root node with 10 downstream dependents. If it lapses, the entire compliance tree collapses. Unlike a transaction (which can be restarted), a lapsed registration means you cannot show houses, write offers, or earn commissions until reinstated.

Scenario 6: New Agent Onboarding

The Pipeline

13 steps across 8 phases modelling the full onboarding journey for a new real estate agent joining Royal LePage Team Realty:

PhaseDurationStepsWhat's Happening
0150 dayspre-registration-courseHumber College Real Estate Salesperson Program (4–6 months)
114 daysreco-applicationSubmit RECO application with background check, proof of education
221 daysreco-approvalRECO processes application (2–4 weeks) — external dependency
37 daysbrokerage-interviewInterview with brokerage — commission split, desk fees, mentorship
43 daysbrokerage-agreementSign agreement — widest fan-out (8 downstream steps)
57 daysoreb-registration, crm-setup, email-setup, headshot-branding, mentor-assignmentFive concurrent setup tasks
614 daysmls-training, website-profileMatrix MLS orientation + personal website setup
77 daysfirst-open-houseFirst supervised open house — the milestone that says "you're productive"

What This Answers

"RECO is slow processing the application — what's blocked?"

"Brokerage paperwork is delayed — what's bottlenecked?"

Onboarding timeline: From starting the Humber College course to hosting your first open house is approximately 8–9 months in the best case. Phase 5 (five concurrent setup tasks) is where parallelism matters most — getting all five done simultaneously saves 3–4 weeks versus doing them sequentially.

Scenario 7: Client Pipeline

The Journey

13 stages across 11 phases modelling the full buyer client lifecycle — from lead capture through qualification, showings, and closing to post-sale referral generation:

PhaseStagesConversion RateWhat's Happening
0referral-lead, online-lead, open-house-lead35%, 2–5%, 8–12%Three lead sources feed the pipeline
1initial-consultation60% proceedFirst meaningful conversation — qualify buyer readiness
2needs-assessment80% proceedDetailed buyer profile — neighbourhoods, must-haves, budget
3pre-approval-referral85% approvedRefer to Sarah Chen for mortgage pre-approval
4property-search70% find matchesActive search — MLS auto-alerts, off-market opportunities
5showings60% make offerTypically 5–15 homes over 2–6 weeks
6offer-preparation50% acceptedOREA Form 100 with conditions and strategy
7under-contract88% closeManage conditions, coordinate parties
8closing-day99%Title transfer, key handover, closing gift
9post-closing-nurture30-day check-in, 6-month follow-up, anniversary card
10referral-generation40% refer within 2 yearsThe pipeline becomes circular — happy clients generate new leads

What This Answers

"My mortgage broker is backed up — what stalls in the client pipeline?"

"Where do I lose the most clients?"

The conversion rates tell the story. The biggest drops:

The referral loop: The pipeline is actually circular — 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.

Seven Shapes, One Engine

ScenarioNodesShapeLayersKey Question
Transaction16Linear pipeline with parallel conditions11"What delays closing?"
Operations15Service topology with regulatory roots6"What breaks when MLS goes down?"
Referral15Referral chains with redundancy gaps3"My lawyer retires — what breaks?"
Listing13Checklist with parallel prep tracks7"What's blocking go-live?"
Compliance12Regulatory tree from RECO root4"Registration lapses — what cascades?"
Onboarding13Deep pipeline with external gates8"RECO is slow — what's blocked?"
Client13Conversion funnel with referral loop11"Where do I lose clients?"

97 total nodes, 104 edges, 7 scenarios — all from the same pattern library.

The core idea: The same graph engine that computes "financing fell through — what stages are affected?" also computes "MLS is down — what services break?", "my lawyer retires — what contacts are orphaned?", "RECO registration lapses — what cascades?", and "where do I lose clients in the pipeline?" The analytical queries — blast radius, health propagation, SPOF detection, schedule phasing — are derived automatically from the dependency structure.

What This Offers That Existing Tools Don't

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.

CapabilitySpreadsheet / ChecklistCRM / Transaction MgmtThis 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 Explorer

Open the Explorer →

The interactive graph explorer renders all seven scenarios as layered or force-directed network diagrams:

All graph analytics are pre-computed and served as static JSON. The explorer is a pure renderer — no server, no database, no login required.


Technical Notes

What This Is Built On

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.

Running Queries Locally

With CUE v0.15.3 installed:

QueryCommand
Transaction schedulecue eval ./transaction/ -e schedule
Critical pathcue eval ./transaction/ -e critical_path
Financing falls throughcue eval ./transaction/ -e financing_falls_through
Risk register (SPOF)cue eval ./transaction/ -e risk_register
Deal healthcue eval ./transaction/ -e deal_health
MLS outagecue eval ./operations/ -e mls_down
CRM failurecue eval ./operations/ -e crm_failure
Compliance SPOFcue eval ./operations/ -e compliance_spof
Broker unavailablecue eval ./referral/ -e broker_unavailable
Lawyer retirescue eval ./referral/ -e lawyer_retires
Stager bookedcue eval ./referral/ -e stager_booked
Critical contactscue eval ./referral/ -e critical_contacts
Listing launch plancue eval ./listing/ -e launch_plan
Photography delayedcue eval ./listing/ -e photography_delayed
Staging unavailablecue eval ./listing/ -e staging_unavailable
RECO lapsecue eval ./compliance/ -e reco_lapse
MCE credits overduecue eval ./compliance/ -e ce_overdue
Compliance plancue eval ./compliance/ -e compliance_plan
Onboarding plancue eval ./onboarding/ -e onboarding_plan
RECO processing delayedcue eval ./onboarding/ -e reco_delayed
Client pipeline plancue eval ./client/ -e pipeline_plan
Pre-approval blockedcue eval ./client/ -e pre_approval_blocked
Showing fatiguecue eval ./client/ -e showing_fatigue
Token-efficient (LLM)cue eval ./transaction/ -e toon --out text