1.5.4 Autonomous Asset Lifecycle & Status Self-Healing Protocol
How RAIA™ (Real estate Artificial Intelligence Agent) OS continuously monitors, audits, and self-heals asset lifecycle status across five independent data vectors to eliminate human-in-the-loop errors.
How RAIA™ (Real estate Artificial Intelligence Agent) OS continuously monitors, audits, and self-heals asset lifecycle status across five independent data vectors to eliminate human-in-the-loop errors.
Autonomous Lifecycle Self-Healing
The RAIA (Real estate Artificial Intelligence Agent) OS continuously monitors, audits, and self-heals asset lifecycle status across five independent data vectors, eliminating human-in-the-loop errors and status drift.
1 The Human-in-the-Loop Challenge & Status Drift
In legacy systems, the lifecycle of a property asset is entirely dependent on manual human data entry. If a client-facing agent wins back a lost instruction, secures a new tenancy, or starts collecting rent, they must remember to manually open a CRM or AppSheet card and toggle the status from Lost to Instructed.
⚠️ Case Study: The "Flat 5 Great Newport Street" Regression
A human operator accidentally set the property status of Flat 5, 12 Great Newport Street (PR000533) as Lost during a spreadsheet migration on October 15, 2024. In reality, the property had an active, periodic tenancy running until August 13, 2026, with an agreed rent of £3,300 PCM.
Despite a background sync engine trying to restore the property to active, a strict, legacy database trigger (trg_enforce_lost_status) intercepted the update on every run and silently forced the status back to Lost based on the historic date. This caused the property to disappear from active maps and search bars—causing a massive data drift.
To prevent this, RAIA™ (Real estate Artificial Intelligence Agent) OS operates an Autonomous Status Self-Healing Loop. Instead of trusting manual status fields, the platform continuously queries and scores live operational activity, automatically promoting or healing properties back to active states whenever real-world action is detected.
2 The 5-Vector Status Validation Engine
Every night, the Asset Lifecycle & Drift Check Service (asset-lifecycle-drift-check.cjs) executes a full audit of all properties on record. It evaluates five independent commercial vectors to determine if a property is physically active:
Is rent actively being collected?
The absolute ultimate measure of an active property is monetary movement. RAIA (Real estate Artificial Intelligence Agent) queries the nightly automated bank reconciliation gateway bank reconciliation table (tbl_rents) for the asset.
➔ FORCE asset_status = 'Instructed', asset_occupancy = 'Occupied', date_lost = NULL
Is there an active tenancy agreement?
If there is an active, legally binding tenancy agreement stored in the database whose running dates cover the current day, the property is operationally active, regardless of any manual "Lost" setting.
➔ FORCE asset_status = 'Instructed', date_lost = NULL
Repository Code
The live codebase implementation for this specification sits within the following repository folder:
Are prospective tenants going through referencing?
Properties with incoming applicants undergoing active vetting (referencing, credit scoring, ID checks) are strictly active on our pipeline and represent an upcoming tenancy.
➔ FORCE asset_status = 'Instructed' (Prevents archiving during onboarding gaps)
Is the property currently advertised for let or sale?
If an asset is being actively pushed to dominant listing aggregator, incumbent property portal, or MoveHome via our automated feed manager (tbl_portal_send_log), the property status is forced to `Instructed`.
➔ FORCE asset_status = 'Instructed'
Signed Services
If there are active, signed services in tbl_services, the property is considered actively managed by RAIA™ (Real estate Artificial Intelligence Agent) OS.
➔ FORCE asset_status = 'Instructed'
The Auto-Healer Lifecycle Engine
Under **SJT Stage 11 (Audit Loop)**, RAIA™ (Real estate Artificial Intelligence Agent) OS runs a nightly reconciliation cron job. If any property has its status set to Lost but passes **any one** of the five active vectors, the system automatically triggers a healing transaction.
UPDATE tbl_assets SET asset_status = 'Instructed', asset_occupancy = 'Occupied', date_lost = NULL, lost_reason = NULL
WHERE asset_status = 'Lost' AND asset_id IN (SELECT asset_id FROM tbl_tenancies WHERE tenancy_status = 'active');
Architecture 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.