ARIA Platform Architecture
ARIA

Context-Adaptive Fast-Track
& Proactive Intelligence Engine

How ARIA autonomously monitors the world around you, classifies what matters, and delivers insights before you need to ask — in under 60 seconds for time-critical events.

Three-Gate Autonomous Pipeline

The Proactive Intelligence Engine (PIE) operates as a three-gate pipeline that auto-chains through increasingly expensive analysis stages. Each gate acts as a filter — only genuinely significant changes reach the final, costliest stage.

Gate 1

Context Accumulate

Polls 16 data sources against watermarks. Detects changes.

$0 — Pure SQL
Every 5 minutes
Gate 2

Significance Check

Gemini Flash-Lite classifies changes as noise or signal.

Free Tier
Auto-chained
Gate 3

Anticipation Analyze

Claude Sonnet performs deep analysis on significant changes.

Auto-chained
Deliver

Insight Delivery

Routes actionable insights via push, email, or in-app inbox.

Variable
Auto-chained
The pipeline is cost-optimized by design. Gate 1 is free SQL. Gate 2 uses the free Gemini tier. Only genuinely significant events reach Gate 3's paid Claude analysis — typically less than 5% of all detected changes.

16 Monitored Data Sources

The Context Accumulator polls each source using a watermark system — it remembers the last item seen and only processes changes since then. This ensures zero duplicate processing and O(1) per-source overhead.

Core Memory
Conversations
Device Reminders
Contacts
Health Data
Device Location
Twilio SMS
Twilio Calls
ARIA Emails
Social Network
Google Calendar
Gmail
Tempo Jobs
Looki Wearable
Event Log
Device Activity

Significance Levels

Gate 2 uses Gemini Flash-Lite (free tier) to classify each context snapshot. Only significant and urgent changes pass through to Gate 3 for deep analysis.

Insignificant

Routine noise. No action, no logging. Quietly discarded.

~70% of changes

Notable

Worth logging for pattern detection. Not worth alerting on.

~20% of changes

Significant

Passes to Gate 3 for deep analysis. May generate an insight.

~8% of changes

Urgent

High priority. Passes to Gate 3 immediately. Time-sensitive delivery.

~2% of changes

Context-Adaptive Fast-Track (CAFT)

CAFT is a regex-pattern-based acceleration layer that bypasses the 5-minute batch window for time-critical events. It reduces end-to-end latency from ~5–10 minutes to under 60 seconds — without compromising the safety of Gates 2 and 3.

Universal Patterns

Always-on safety patterns that never change. Hardcoded triggers for emergency scenarios.

// Always active — cannot be disabled \b911\b \bSOS\b \bemergency\b \bfall\b \bfell\b \baccident\b \bcrash\b

Adaptive Patterns

Context-aware patterns regenerated every 10 minutes by Gemini Flash-Lite based on current situation.

// Hiking at 2:30 PM → terrain hazards \bsteep\b \bslippery\b \bwildlife\b // Driving at 8:00 AM → traffic events \bcollision\b \bswerving\b \bbraking\b
Looki Wearable Event
Pattern Match?
YES — Match found
Immediate Snapshot
fast_tracked = true, priority = 3
Gate 2 → Gate 3 → Deliver
< 60 seconds end-to-end
NO — No match
Batch Queue
Next 5-min accumulation cycle
Gate 1 → Gate 2 → Gate 3
5–10 min typical
CAFT does not bypass safety gates. Fast-tracked events still pass through Gate 2 (significance) and Gate 3 (analysis). CAFT only eliminates the 5-minute wait — it reduces latency, not rigor.

Normal Flow vs. Fast-Track

AspectNormal PipelineFast-Tracked
Trigger 5-minute polling cycle Immediate on pattern match
Source Context Accumulator (16 sources) Looki Realtime Poll (~60s)
Snapshot Batched with other changes Isolated, single-event snapshot
Entry Point Gate 1 → Gate 2 → Gate 3 Direct to Gate 2 (skip batching)
DB Marker fast_tracked = false fast_tracked = true
Job Priority 1–2 (standard) 3 (high)
End-to-End Latency 5–10 minutes < 60 seconds
Significance Gate Gemini classifies normally Same — no bypass
Risk Enforcement Applied in Gate 3 Same — no bypass
ARIA giving a presentation on proactive intelligence

Adaptive Pattern Regeneration

Every 10 minutes, CAFT rebuilds its pattern library using Gemini Flash-Lite and current context. The patterns adapt to where you are, what you're doing, and what time it is.

Context Signals Used for Regeneration

Time of Day (ET)
Always
Current Location
< 2 hours
Activity State
Latest
Recent Looki Events
Last 3
Health Vitals
HR, Steps

Pattern Categories (10–25 generated per cycle)

  • Safety & Urgency \bsteep\b \bslippery\b \bhigh.*altitude\b
  • Social & Comms \bcall.*from\b \bmeeting\b \blate\b
  • Work & Productivity \bdeadline\b \bblocked\b \bmerge\b
  • Home & Environment \bdoor.*open\b \bpackage\b \btemperature\b
  • Health & Wellness \bhigh.*heart\b \bsedentary\b \bhydration\b
  • Location & Movement \bgeofence\b \btraffic\b \barriv(ed|ing)\b
Patterns are compiled to RegExp objects and cached in memory with a 60-second TTL. The match test runs in microseconds per event. If pattern loading fails, CAFT falls back to universal safety patterns only.

Risk Level Enforcement

Even when an insight is generated, ARIA's actions are bounded by the user's configured risk level. Every insight declares the minimum risk level needed to act on it.

Low — Inform Only

ARIA can observe, analyze, and notify. Cannot take action.

✓ Surface insights
✓ Send notifications
✓ Update memory
✗ Cannot act on your behalf

Medium — Inform + Prepare

ARIA can draft content and prepare actions for your review.

✓ Draft emails
✓ Research context
✓ Create reminders
✗ Cannot send to others

High — Full Autonomy

ARIA can act independently — send messages, create events, post.

✓ Send follow-ups
✓ Create calendar events
✓ Post to social
✗ No financial actions

Pattern Lifecycle

Gate 3 detects behavioral patterns over time. These patterns have a lifecycle — they grow with evidence, decay without reinforcement, and can be promoted to permanent core memory.

Pattern Detected
confidence: 0.3, observations: 1
Evidence Grows
confidence ↑, observations ↑
Promotion Threshold
confidence ≥ 0.85, observations ≥ 5
Core Memory
Permanent fact

Not Observed 24h
confidence -= decay_rate
Negative Feedback
decay_rate += 0.1 (accelerated)
Deactivated
confidence < 0.1 → is_active = false

Confidence Threshold Tuning

The system automatically adjusts how aggressive it is based on your feedback over the last 7 days.

Dismiss rate > 50% → Raise threshold +0.05 (less noise)
Accept rate > 80% → Lower threshold -0.03 (more insights)
Range: 0.40 — 0.95

Pattern Types

Six behavioral pattern categories detected by Gate 3.

temporal — Time-based habits
preparatory — Pre-event behaviors
sequential — Action chains
contextual — Situational responses
absence — Missing expected behaviors
correlation — Co-occurring events

Complete System Flow

Calendar
Gmail
SMS
Health
Location
Looki
Contacts
+9 more

Gate 1: Context Accumulate
Gate 2: Significance Check
Gate 3: Anticipation Analyze
Insight Delivery
Pattern Match
universal + adaptive regex
Gate 2: Significance Check
Gate 3: Anticipation Analyze
Urgent Delivery

User Feedback
Threshold Tuning
Pattern Maintenance
Core Memory