AI Administrative Agent Platform
Self-hosted executive operations platform for IANA timezone scheduling, travel policy compliance, cited meeting briefings, and P0–P3 correspondence triage.
01. Problem & Context
Founders, executives, and chiefs of staff lose hours coordinating cross-timezone meetings, auditing corporate travel bookings against policy, assembling context before back-to-back calls, and triaging urgent P0–P3 inbox threads—while consumer AI assistants risk sending unapproved external invites or leaking executive correspondence.
02. Engineering Solution
Engineered a self-hosted production release-candidate platform combining a FastAPI + async SQLAlchemy 2.0 backend with a React 18 TypeScript console. Integrates `scrypt` + HS256 JWT RBAC, an IANA timezone multi-party slot solver, corporate travel quote & disruption management, cited pre-meeting briefings, P0–P3 SLA correspondence triage, scheduled sweeps, and pluggable Calendar/Email/TMC adapters behind centralized HITL approvals and a SHA-256 audit ledger.
03. System Architecture
Modular FastAPI endpoints (`/api/v1/auth/*`, `/scheduling/*`, `/travel/*`, `/briefings/*`, `/triage/*`, `/jobs/*`, `/integrations/*`, `/approvals/*`, `/audit/*`, `/metrics`) run on async SQLAlchemy 2.0 with Alembic migrations, Redis-backed rate limiting with fallback, Prometheus metrics, OpenTelemetry instrumentation, and a SHA-256 hash-chained audit ledger.
Core Architectural Components
IANA Timezone Multi-Party Scheduling Solver (`/api/v1/scheduling/*`)
Computes optimal meeting slots across global IANA timezones while enforcing buffer rules, conflict checks, recurring focus-block protection, and mandatory HITL approval before issuing external calendar invites.
Corporate Travel Policy & Disruption Engine (`/api/v1/travel/*`)
Evaluates travel itineraries against corporate policy ceilings, compares airfare quotes with quantified savings, ingests HMAC-SHA256 Travel TMC disruption webhooks, and drafts contingency rebooking plans behind HITL sign-off.
Hybrid-RAG Cited Meeting Briefings (`/api/v1/briefings/*`)
Combines vector and lexical retrieval (`pgvector`-ready) to compile pre-meeting dossiers featuring source citations, extracted open action items, and risk callouts.
P0–P3 Correspondence Triage & Sweeps (`/api/v1/triage/*`, `/jobs/*`, `/integrations/*`)
Classifies incoming messages by urgency (`P0`–`P3`) with dynamic SLA breach alerts and approval-gated AI reply drafts, backed by scheduled sweeps (`sla_escalation_sweep`, `auto_premeeting_briefings`, `travel_disruption_poll`) and Google/MS Graph Calendar + SMTP/Gmail adapters.
04. Notable Engineering Decisions
Centralized HITL Queue with Verified Reviewer Attribution
Sending external calendar invites, booking travel, or replying to VIP correspondence carries high reputational cost. `/api/v1/approvals/*` enforces `executive`/`chief_of_staff`/`assistant`/`admin` RBAC with `scrypt` + JWT attribution.
Timezone-Safe IANA Solver & Recurring Focus-Block Protection
Offset-based scheduling breaks across DST transitions. Evaluating native IANA timezone rules alongside focus-block protection prevents accidental calendar fragmentation.
Pluggable Calendar, Email & HMAC Travel TMC Adapters
Abstracting Google Calendar, Microsoft Graph, SMTP/Gmail, and HMAC-SHA256 TMC webhooks allows teams to test offline and swap enterprise providers without touching core scheduling or triage logic.
05. Engineering Challenges & Solutions
Challenge: Preventing pre-meeting briefings from omitting open risks or hallucinating attendee commitments.
Engineering Solution: Paired hybrid vector + lexical context retrieval with explicit source citations and dedicated extraction of open action items and risk callouts.
Challenge: Surfacing urgent P0/P1 executive emails and live flight disruptions without polling bottlenecks.
Engineering Solution: Added scheduled automation sweeps (`sla_escalation_sweep`, `auto_premeeting_briefings`, `travel_disruption_poll`) and HMAC-SHA256 Travel TMC webhook ingestion.
06. Implementation Highlights
- `scrypt` password hashing, HS256 JWT sessions, and 4-tier RBAC (`executive`, `chief_of_staff`, `assistant`, `admin`)
- Multi-party IANA timezone scheduling solver with buffer enforcement, focus-block protection, and HITL invite gating
- Travel policy compliance checks, airfare quote savings comparator, and live TMC disruption contingency plans
- Hybrid vector + lexical pre-meeting briefings with citations, open action items, and risk callouts
- P0–P3 correspondence triage with SLA breach alerts, approval-gated draft replies, and Google/MS Graph/SMTP/Gmail adapters
- Prometheus `/api/v1/metrics`, OpenTelemetry tracing, Redis rate limiting, SHA-256 audit ledger, and React 18 UI