Resident Communications & AI Drafting Lifecycle

Resident Communications & AI Drafting Lifecycle A data-flow diagram generated by Archify. 01 / UI & Prompts 02 / Messaging APIs 03 / Audience & AI Engines 04 / Durable Storage 05 / Delivery & Settlement Admin Portal · Notice wizard · 01 / UI & Prompts · CommunicationsView Admin Portal Notice wizard CommunicationsView AI Assistant · Context injector · 01 / UI & Prompts · AiComposerModal AI Assistant Context injector AiComposerModal Resident App · Inbox & alerts · 01 / UI & Prompts · ResidentMobileApp Resident App Inbox & alerts ResidentMobileApp Messages API · POST /messages · 02 / Messaging APIs · Scope guards Messages API POST /messages Scope guards AI Compose API · POST /ai/compose · 02 / Messaging APIs · Prompt sanitize AI Compose API POST /ai/compose Prompt sanitize Read Receipt API · POST /read · 02 / Messaging APIs · Timestamped ack Read Receipt API POST /read Timestamped ack Audience Sieve · Scope resolver · 03 / Audience & AI Engines · Condo / Unit Role Audience Sieve Scope resolver Condo / Unit Role AI Engine · Claude & Ollama · 03 / Audience & AI Engines · Formal Italian AI Engine Claude & Ollama Formal Italian Delivery Engine · Receipt matrix · 03 / Audience & AI Engines · Read Aggregator Delivery Engine Receipt matrix Read Aggregator Messages DB · Thread headers · 04 / Durable Storage · messages Messages DB Thread headers messages AI Audit Logs · Prompts & tokens · 04 / Durable Storage · ai_audit_logs AI Audit Logs Prompts & tokens ai_audit_logs Recipients DB · Per-user state · 04 / Durable Storage · message_recipients Recipients DB Per-user state message_recipients Notice Feed · Broadcast board · 05 / Delivery & Settlement · Push & Email Notice Feed Broadcast board Push & Email Draft Preview · Human in the loop · 05 / Delivery & Settlement · Admin approval Draft Preview Human in the loop Admin approval Delivery Proof · Legal audit trail · 05 / Delivery & Settlement · Convocation proof Delivery Proof Legal audit trail Convocation proof send notice payload evaluate scope targeting persist thread records push to feed broadcast request draft prompt context stream draft inference log tokens telemetry render draft review open message read event record read receipts update state timestamps certify proofs convocation Legend primary data policy / PII data store data flow

Targeted Scope Broadcasts

  • • Enforces scope boundaries (Condo, Building, Person) preventing notification leakage
  • • Validates admin role authorization and message payload sanitization
  • • Publishes to real-time resident noticeboards and email dispatch queues

Context-Aware AI Drafting

  • • Injects condominium financial balances or meeting dates into system prompts
  • • Calls Claude 3.5 Sonnet or local Ollama LLM to draft formal Italian notices
  • • Enforces human review before any AI draft can be committed or sent

Verifiable Read Tracking & Proof

  • • Captures exact resident read timestamps via POST /api/messages/:id/read
  • • Records individual delivery states in message_recipients table
  • • Produces certified delivery and receipt reports for condominium assemblies