Architectural Monograph By Mohammed KM Rev 2026.11

One personal brain across voice, messaging, and cloud — zero hardware lock-in, zero metered API drift.

A production blueprint for running a local-first Markdown memory system behind a 2-lane telephony bridge. Verified owner calls resolve against personal context in two seconds and offload heavy work to Telegram; unrecognized callers meet an air-gapped multilingual desk with zero execution tools.

2.0s
Fast-path memory recall
Flat Markdown index, zero vector DB hop
8 kHz
Native ulaw telephony
End-to-end G.711 mu-law, zero transcoding
0 INR
Extra cloud hosting
Runs on always-free ARM VM and existing node
2-lane
Caller isolation
Immutable E.164 split before prompt assembly
01 / SYSTEM TOPOLOGY

Interactive Architecture Diagram

Select any node in the call path to inspect its engineering trade-offs, millisecond latency budget, and enforced security invariant.

CALL PIPELINE — CLICK NODE TO INSPECT
Edge & Routing Owner Lane Public Desk Lane
02 / ACCESS CONTROL

Public vs Private Permission Simulator

Switch caller profiles to observe how the Caller-ID Lane Router enforces data boundaries, tool access, and voice response budgets in real time.

03 / ECONOMICS

Cost & Token Discipline

Flat-rate CLI subscriptions absorb reasoning volume; telephony and voice synthesis stay bounded by hard protocol guards.

Subsystem Production Choice Blueprint Cost Metered API Equivalent Discipline Mechanism
GUARD 01

Native 8 kHz ulaw Passthrough

ElevenLabs streams directly in ulaw_8000 format matching Plivo's PSTN leg. Eliminating PCM transcoding cuts CPU burn and removes 100 ms of audio buffer overhead per turn.

GUARD 02

16-Second Telegram Offload

Voice is expensive per minute and poor for dense tables or multi-step logs. Any Owner Lane task passing 16 seconds speaks a 6-word acknowledgement and delivers the full artifact to Telegram at zero voice cost.

GUARD 03

Hard Ceiling on Unknown Callers

Public Desk sessions cap output length and enforce a 45-second ceiling (12 seconds for telemarketing patterns), preventing runaway TTS character drain from spam or robocalls.

04 / IMPLEMENTATION

Open-Source Starter Blueprint

A minimal, reproducible layout designed to run on any single Linux VM with zero proprietary lock-in. Select any path in the repository tree to inspect its contract.

REPOSITORY ARCHITECTURE Click any node
PRIVACY & HYGIENE INVARIANTS
  • Never commit real E.164 numbers, home addresses, or government IDs (PAN / Aadhaar) to version control.
  • Keep OWNER_E164 and API tokens in host-local .env with chmod 600.
  • Store public-profile.md in a physically separate directory from memory/ so the Public Desk process never mounts private files.