NBLM Thread · Full-Scope · 2026-05-17/18

The NotebookLM Build Doc

qi's distilled architectural canon from the M4 Mac Mini Professional Audio Stability and Maintenance Guide. 26 sources, 1292 lines, every load-bearing lock-in from the May 17/18 working session. Per qi 2026-05-19: "nblm txt was the full scope."
Sections

TL;DR — The Spine

The Xen stack lives at /Volumes/tech_/qi_data/exedus/xen/. Voice is the operating system; STT down = P0 stop-the-line. Every service exposes a URL that just works upon pasting — possessing the LAN/tunnel URL grants full access. Three-channel collapse: Spark · Beside · Beeper. The 9934 Beside line is the primary Xen agent number. Personal contacts (Ashe, Diamond, Pinkyy, LaQuita, Josie, Kem) route exclusively through Beeper under the East persona — they never touch Beside.

"completely open, zero-config, frictionless" is the architectural mandate. HTTP 200 ≠ verified. Visual evidence required. Idle is blasphemy.

1P0 Stability + Medical Lifeline

Hardware Resource Assertion

Medical-Grade Fallbacks

Safe-Mode Testing

Godmode Hardening Drills

2Five System Overhauls

Overhaul 1 — TTS Queue

FIFO HTTP server on :4444 to manage the TTS queue and fix "I didn't hear you" failures.

Overhaul 2 — Cloudflared Singleton

Resolve site flapping. Isolate com.cloudflare.godmode-mac.plist as canonical tunnel, disable duplicates.

Overhaul 3 — Voice-Priority Injection

Add priority="voice" flag to socket injection so voice transcripts bypass the quiet-poll and fire immediately during long tool calls.

Overhaul 4 — Audio Healthcheck Daemon

Poll SwitchAudioSource every 30s and fire automatic passwordless killall coreaudiod recovery if it hangs.

Overhaul 5 — UI Automator (Jogger)

Migrate from slow ADB tap/sleep scripts to uiautomator2 driver — heavily reduces execution time.

3Architecture + Infrastructure Upgrades

Multiplayer Desktop

Separate input session (via CGEventTap or virtual HID device) — two cursors operate in parallel on the same Mac, solving Xen stealing foreground focus during UI automation.

XenBrowser Shared Sessions

WebRTC/WebSocket bridge mirrors desktop XB tab state to web.xlrd.org in real-time. Anyone with URL can view + remotely control browser without authentication wall.

Universal Integration · UI Sandbox Elimination

Enumerate every app qi opens manually. Actively build MCPs, APIs, or WebViews for them. Goal: completely stop fighting UI sandboxes before hospitalization.

Universal A2A Mesh Router

OS-universal device mesh syncs pane %0 transcript, agent-to-agent voice between Mac and Windows, standardized routing so messages reach the device qi is actively using.

Hot-Reloading Enforcement

xen-hot-watcher daemon for Python + Node. Refactor xen-claude-wrapper.js into supervisor split — code changes deploy in under 2 seconds without manual respawns.

4Zero-Auth · URL = Credential

"All-or-nothing trust" model — possessing the LAN or tunnel URL itself grants full access. No bearer tokens. No headers. No login walls.

Hermes MCP Universal Install

Global install of hermes-agent MCP server binding to 127.0.0.1 completely auth-less. Claude Code, Codex, Copilot, Cursor seamlessly switch context without cross-CLI auth.

Beeper Proxy Zero-Auth Bridge

Local proxy on :23374 transparently auto-injects Beeper API tokens. Any client hits http://127.0.0.1:23374/v0/mcp without bearer tokens.

XenBrowser Auth-less Remote Control

WebRTC/WebSocket bridge mirrors desktop XB to web.xlrd.org. No authentication wall — URL holder controls the browser.

Persistent PWA · Mac-Death Failover

Cloudflare Pages Functions (/events SSE relay, /api/omni/* proxies) + GitHub Pages static UI. XenPhone PWA + Omni-inbox stay live even if Mac crashes. No re-auth, no manual refresh.

Paste-and-Go Initialization

Zero manual config. No env vars, no token files to populate, no manual OS permission grants. Single command: curl https://xen.xlrd.org/install.sh | bash — auto-generates LaunchAgents, auto-discovers tokens, spins up entire system on a fresh Mac without a single setup menu.

5Voice Pipeline · Apple STT Canon

Apple STT (specifically apple-stt-v2.py) is the always-on frictionless listener. "STT down is always fatal."

Architectural Patches Locked In

If Apple STT breaks, system does NOT gracefully degrade to TUI menu. P0 stop-the-line. User is cut off.

Audio Overview Name Fidelity

Pre-pass sanitizer for NotebookLM replaces names (qi, Xen, Luckie, Anthony) with phonetic spellings so Audio Overviews pronounce them correctly for clients.

6Beside API Integration

The Beside platform has been fully reverse-engineered. XP gets complete programmatic remote control without the native Beside mobile/desktop app.

Auth + Infrastructure

Core Capabilities

xen-reply-vvs Pipeline Patch

SMS leg no longer drives Google Voice or Android UI. Inline delivery posts JSON directly to Beside REST in background with idempotencyKey via uuidgen.

Mac-Death/DOM Fallback

If Beside API drops or returns 503, Xen autonomously launches XenBrowser, navigates to app.beside.com/calls, extracts transcripts from live DOM.

Per-Caller Memory

/api/call-end hook writes date-stamped session recap to callers.db. Any agent audits via /api/calls/<e164>/last. AI greets returning callers with immediate recognition.

7FCC Elimination · Native Twilio Merge

The FreeConferenceCall bridge (727-731-8395) is being torn down. Bridging migrates natively into Beside's Twilio infrastructure.

Implementation

  1. Native Twilio Merging — Twilio Voice SDK 2.16 replay inside headless Chrome with captured JWT. XP PWA already has add_call and merge_calls voice verbs.
  2. Twilio Conference Resource — For 3+ party calls, escalate merge_calls to spin up a Twilio Conference via Beside's proxy. Direct Twilio API usage is banned.
  3. Deprecate Android FCC Anchor — Sever Beside Android app's 24/7 FCC connection once native conference is wired.
Result: "ONE phone + Mac handles every inbound." No more brittle Android phone sleeping on a free conference line.

8Email Wired into MMM Omninbox

All 26 active accounts (xlrdtech, selfexec, L7S, personal) aggregate via Spark CLI + Spark Desktop. Mapped seamlessly into the unified comms pane.

Inbound Pipeline

Terminology canon: this channel is "Spark" — not "Mail" or "Email" — in all system parlance.

Outbound Pipeline

Master Person Notebooks

Every Spark thread auto-appends to contact's ~/.xen/notebooks/<slug>.md. Email merges with WhatsApp, texts, Beside call transcripts in one historical timeline per contact.

9XP v3 · Three-Panel Canonical Layout

mmm.xlrd.org (MIRROR omninbox) is the canonical left panel of the XenPhone OS.

The Layout

Always-Hot Guarantee · Mac-Death Survival

Client connects to serverless Cloudflare Pages Functions, not directly to the Mac. functions/events.js SSE relay keeps feed open infinitely. If Mac drops:

10Muse Spark Chat · Center Panel

The Meta AI artifact (453e77a0) — 10MB HTML featuring glass shell + focus-reactive orb background — is the permanent home of the XP center panel.

Wiring

Hyper-polished Meta AI aesthetic + Zero-Human Stack mandate. Talking directly to terminal layer through the UI without fighting third-party sandboxes.

11Persona Routing · Ashe + Kem · Personal Lock

Personal contacts NEVER cross into Beside API or Beside CRM. They are managed exclusively through Beeper under the East persona.

This ensures personal relationships stay completely isolated in the Beeper firehose and never contaminate the 9934 Beside business line.

12The D.I.E. List · Banned Engines

SOURCE: /Volumes/tech_/sync_/notes_/logs_/nblmthread.txt · 1292 lines · 2026-05-17/18 session
Per qi 2026-05-19: "Nblm txt was the full scope."