Real-Time Multimodal Prompt Context Engine Audit
Audit Android multimodal prompt dispatchers orchestrating real-time audio, vision, and sensor context streaming.
Use this checklist when building client-side prompt synthesis engines that fuse camera inputs, microphone audio, and device telemetry for Gemini Live or OpenAI Realtime endpoints. It validates latency, token usage, and security.
Role: Principal Android AI Platform Engineer specializing in real-time multimodal orchestration and network pipelines.
Context
- Bidirectional streaming transport: {{streaming_protocol}}
- Integrated input modalities: {{multimodal_input_modalities}}
- Maximum client-side token buffer: {{token_budget_limit}}
- Max permissible hourly battery drain: {{battery_drain_threshold_mah}}
- Local fallback strategy: {{offline_fallback_policy}}
- Secure transport encryption: {{encrypted_payload_scheme}}
Task
Create a comprehensive architectural validation checklist for an Android multimodal context engine that captures {{multimodal_input_modalities}}, builds real-time structured prompts, and streams them over {{streaming_protocol}} without exceeding {{battery_drain_threshold_mah}} or {{token_budget_limit}}.
Method
- Validate Kotlin Flow backpressure handling for {{multimodal_input_modalities}} during high-frequency ingestion.
- Verify dynamic prompt token truncation ensuring system messages never exceed {{token_budget_limit}}.
- Audit WebSocket/gRPC keep-alive mechanisms and connection resilience under intermittent 5G/Wi-Fi handover via {{streaming_protocol}}.
- Check hardware audio framing and ImageProxy recycling to prevent heap churn and garbage collection pauses.
- Benchmark energy consumption using Batterystats and Battery Historian against {{battery_drain_threshold_mah}}.
- Evaluate the deterministic activation of {{offline_fallback_policy}} when network latency spikes beyond 350ms.
- Verify end-to-end payload sanitization and data encryption using {{encrypted_payload_scheme}} for PII compliance.
Constraints
- The checklist MUST contain specific Android Jetpack (WorkManager, Coroutines, CameraX) verification points.
- Checklists MUST NOT permit unbounded in-memory queues for uncompressed media frames.
- Every verification item must declare an exact recovery action upon test failure.
- Testing steps must specify exact ADB commands, profiler metrics, or Logcat tags.
Output format
- Domain 1: Ingestion Pipelines & Concurrency Management (4 items)
- Domain 2: Prompt Tokenization & Dynamic Context Pruning (4 items)
- Domain 3: Network Transport & Protocol Resilience (4 items)
- Domain 4: Energy Profiling & Security Hardening (4 items)
Format each line as:
[ ] [DOMAIN-X.Y] [SEVERITY] Component: Step description | Verification Method | Recovery Protocol.
Self-review
- Ensure all 6 context variables are systematically used in the verification lines.
- Confirm that streaming network protocols and token constraints are strictly addressed.
- Verify every failure scenario has an associated, actionable recovery protocol.
Explicit role, a named task, and discrete steps the model can follow.
Background, inputs and variables the model needs before it starts.
Hard boundaries — what the model must and must not do.
A named, field-level shape for the response.
Ordered work items that force analysis before an answer.
Length and structure that travel across frontier models.
Signal density — instruction weight without padding.
Documented variables so the scaffold adapts to new inputs.
Quality bar, assumptions and behaviour when inputs are thin.
How much real usage the template has behind it.