EngramEdge

Micro-Display Ambient Intelligence & Hybrid Agentic Memory (Tiny Phone & Full Android Watch • 4GB RAM)

#AndroidDevSummit Hackathon
Track: In-App Agents with ML Kit GenAI & Firebase AI Logic

ML Kit GenAI & Koog Agent Harness

Local Sub-30ms
  • JetBrains Koog Multi-Turn Harness Koog Agent

    Kotlin-native agent harness parsing SKILL.md catalogs into XML prompts, managing multi-turn state machines off the main thread.

  • Jetpack AppFunctions SDK @AppFunction

    7 outcome-oriented watch skills (Alarm, Timer, Flashlight, Panels, Vitals) invoked via ML Kit AgentRunner.

  • Zero-RAM System-1 Router Softmax T=0.08

    Reuses resident EmbeddingGemma text-head with route centroids for sub-30ms confidence gating without allocating extra RAM.

Firebase AI Logic Cloud Agents

Serverless
  • Direct Client SDK Zero Cloud Run

    Client-side Firebase AI Logic connection using BoM 35.1. Zero backend cold-starts and direct Gemini 2.5/3 Flash execution.

  • Autonomous Escalation P < 0.50 Trigger

    Escalates to cloud Gemini when local confidence falls below 50% or complex multimodal synthesis is required.

  • Chokepoint Security Shield Boundary Gates

    Sanitizes prompt injections, enforces delimiter boundaries, and blocks token exfiltration before cloud dispatch.

Hybrid Vault & Micro-Deck

256d MRL + RRF
  • 256d Matryoshka Vector Search ObjectBox 6 HNSW

    Slices 768d vectors to 256d + L2 unit norm, saving 66% vector RAM while maintaining retrieval precision.

  • Android 15 AppSearch BM25F RRF k=60

    Hardware-accelerated lexical search fused with HNSW vectors via Reciprocal Rank Fusion: Score = 1/(k + rank).

  • Micro-Deck & Jetpack AppState HUD AppState 1.0-a01

    80dp OLED deck with headless @Composable AppState Transform HUD & StateStore syncing UI with background AppFunctions.

1

Input Stream

Voice STT / Camera OCR

→
2

System-1 Router

< 30ms • 0MB Added RAM

→
3

Confidence Gate

P≥0.80 Local | P<0.50 Cloud

→
4

Agent Harness (Koog)

ML Kit AppFunctions OR Firebase

→
5

Micro-HUD Synthesis

AppState Transform Pill + TTS

Technical Integration

Convergence of ML Kit GenAI, JetBrains Koog, Firebase AI Logic (no Cloud Run), Jetpack AppState, AppFunctions, AppSearch, and ObjectBox 6 HNSW.

User Impact & Value

Solves 2-inch screen typing friction. Instant sub-30ms offline responses, zero cloud latency on local actions, zero battery drain from PPG health sensors.

Creativity & Innovation

Agentic memory designed for 4GB RAM tiny phones. 256d Matryoshka truncation fits full vector HNSW indexing inside a 1.2 GB PSS budget.

System-1 Route Latency < 30 ms
Routing Added RAM 0 MB (Reused Head)
HNSW Vector Truncation 256d (-66% RAM)
Architecture Tests 14 / 14 Passing