RAIA™ Specification

1.5 Portal Incumbent vs RAIA™ (Real estate Artificial Intelligence Agent) Sovereign Model (Comparison)

A side-by-side comparison of two approaches for rendering diagrams in the RAIA portal.

Option A — Inline SVG

Hand-coded vector graphics

Embedded directly in the HTML. No JS, no library, no network request. Renders at page load instantly.

~4–8KB per diagram0ms render time0 dependencies
Staff clicks"View Identity Document"Purpose modalSelect reason from 6 optionstbl_pii_access_log writeuser · person · purpose · timestampGCS signed URL15-min expiry · watermarked viewerACCESS FLOW
Option B — Mermaid.js

Text-definition diagrams

Write plain text, JS library renders to SVG at load time. Self-hosted. No CDN.

~200 bytes per diagram~50ms render time1 shared JS file

Side-by-side verdict

CriterionSVGMermaid.js
Tokens to generateHigh — AI writes pixel coordinatesLow — AI writes plain text
Render speedInstant — no JS needed~50ms — JS renders on load
Works offline (Tailscale)Yes — self-containedYes — JS file on our server
CDN dependencyNoneNone (self-hosted)
Visual qualityFull control, pixel-perfectGood, less control over layout
Editable by humansHard — XML coordinatesEasy — plain text
Diagram typesAny (manual coding)Flow, sequence, Gantt, mindmap, ERD
ConsistencyVaries by subagent qualityAlways consistent output
Complex swim lanesBetter controlSupported but less flexible

Repository Code

The live codebase implementation for this textbook logic sits within the following repository folder: