Documentation
This is how the Developer Guide is organised. First we explain the why, then how we build, then what is built, and finally how this is rolled out along with the success and testing criteria we use.
This is how the Developer Guide is organised. First we explain the why, then how we build, then what is built, and finally how this is rolled out along with the success and testing criteria we use.
Developer Guide Introduction
This introduction explains the 4-tier standard used across all EstateAigents specifications — mapping high-level business goals directly to development processes, code specs, and QA test criteria.
💡 ELI5 Summary
This introduction explains the 4-tier standard we use across all EstateAigents specifications—mapping high-level business goals (The Why) directly down to development processes (How), code repository specs (What), and QA test criteria (Success).
The Four-Tier Framework
Concept For HumansTo make this guide highly effective for both senior human engineers and autonomous AI coding agents (Vibe Coding), we employ a universal, 4-tier project management standard that maps directly from high-level business logic down to individual process SOPs:
1. The WHY (The Vibe)
The Strategy: Why we build. This covers anti-monopoly legal defenses, GTM positioning, and the market-economic forces driving the protocol.
2. The HOW (The Method)
The Method: How we build. This defines our coding patterns, automated gating compilers, and the core SJT state-machine execution flow.
3. The WHAT (The Code)
The Specs: What is built. This maps the filesystem directories, API routing, and the active specifications inside the repository.
4. VIBE CHECK (Success)
The Success: How we test. This covers verification criteria, manual scenario playbooks, and automated gating validation (SOP level).
Chronological Execution Pathway
Visual Standard MapArchitecture Details
The security architecture implements a defence-in-depth model with perimeter authentication, internal authorisation, data encryption, and audit logging at every layer. Access is gated through a two-gate system: Tailscale identity verification at the network level, followed by role-based access control within the application.
- Core Component: Security gate guard and RBAC enforcement
- Data Flow: Request → Tailscale Gate → Authentication → Authorisation → Audit Log → Response
- Integration Points: Tailscale ACLs, Supabase Row-Level Security, session tokens, and audit log sinks
Configuration Reference
Key configuration parameters for this system:
| Parameter | Type | Default | Description |
|---|---|---|---|
| gate_enabled | boolean | true | Enable Tailscale gate guard for all pages |
| allowed_hosts | string[] | dev.estateaigents.com, localhost | Whitelist of permitted hostnames |
| session_ttl_minutes | integer | 60 | Session token time-to-live |
Figure 2: Security architecture — component interaction and data flow.
Troubleshooting
| Issue | Cause | Resolution |
|---|---|---|
| 401 Unauthorized on tailnet | Tailscale not running or wrong node | Verify Tailscale is connected and node is authorised |
| Gate guard redirect loop | Hostname not in allowed_hosts list | Add hostname to the gate guard whitelist |
This component is part of the RAIA (Real estate Artificial Intelligence Agent) platform mono-repo. Implementation details, API contracts, and integration tests are available in the repository.