Lesson 10: Privacy & Security

Goal of this lesson

Know what stays on the phone, what can leave it and when, which permissions LAFINA uses, and how AI actions are kept safe.

What leaves the phone?

Guest, offline NOTHING leaves the phone
Signed in Sync sends the 7 record types to the backend
Online Mode, per request Only what the request needs: the message, relevant context, or audio
FeatureWhat is sentTo whom
SyncProfile, tasks, events, time blocks, reminders, notes, categoriesLAFINA backend (Neon)
Online chatMessage, recent history, memories (if on), planner context only for questions about your plansBackend → DeepSeek
Online Ask USTPQuestion + passagesBackend → Pinecone / DeepSeek
Online voice callLive mic audio, after consent, during a call you startedElevenLabs (signed session)
AI meeting notesTranscript text (not the audio), after consentBackend → DeepSeek
Push-to-talk, reminder calls, offline callNothing. Transcribed on the phone(none)

Permissions

PermissionWhyRequired?
MicrophonePush-to-talk, calls, recordingOnly for voice features
NotificationsReminder alertsFor reminders
Exact alarmsRing at the exact timeFor reliable timing
Full-screen intentCall screen over the lock screenFor call-style reminders
Display over other appsFloating LAFINA bubbleOptional, off by default
Battery “Unrestricted”Avoid delayed alarms on some brandsRecommended

No wake word and no always-on listening. The microphone opens only after a user action (push-to-talk, answering a call, starting a voice session, or starting a recording).

AI safety and data protection

Safeguards

  • Confirm before save: AI changes are review cards. Revision checks stop outdated cards from being confirmed.
  • Exhaustive routing: every intent has a fixed route. Unknown or invalid output falls back to conversation, which never writes.
  • No model-only deletes: deletion is never prepared from model output alone.
  • Prompt-injection defense: notes, memories, and retrieved passages are treated as untrusted data, not instructions. Prompts are sanitized, and tool arguments are validated against schemas.
  • Bounded tools: the Chat agent is limited to 4 steps and 5 tool calls per step. Tools run on the phone.
  • Memory guard: passwords, PINs, OTPs, payment cards, and bank or GCash numbers are blocked from Memory.
  • Server-side secrets: provider API keys live only on the backend. Live voice uses short-lived signed sessions.
  • Account isolation: chats, sync, and calls are bound to the owning account. Switching accounts cancels in-flight work.
  • USTP content gate: school answers are rechecked before publishing in case the student’s eligibility changed mid-request.
Honest limits

Online features send data to third-party providers (DeepSeek, ElevenLabs, Pinecone) through the backend. LAFINA says so clearly and asks for consent where audio is involved.

Check yourself

  • What leaves the phone for a guest who never goes online?
  • When is planner context sent to DeepSeek, and when isn’t it?
  • Which feature streams microphone audio off the phone, and under what conditions?
  • Name five AI safeguards.
  • Why must API keys stay on the backend?