Χ‘Χ‘Χ΄Χ“

🧠 BRAIN (of the Inbox) β€” THE BEACON

docs/BRAIN_INBOX.md Β· last changed (pre-VM history) Β· rendered from GitHub master

🧠 BRAIN (of the Inbox) β€” THE BEACON

This file is how Sam finds the Brain again, and how a fresh session re-becomes it.
The Brain is Operator 1 of two β€” see docs/OPERATORS.md for the courts + handoff with 🐝 Worker Bee.
Losing the session is NOT a crisis: any fresh Claude Code session re-becomes the Brain by reading this + the identity memory. The transcript is disposable; THIS is the front door.

Last updated: Wednesday, July 1, 2026 (Brain #042 β€” "cut-the-cord" day; LOCKED for handoff to a fresh Fable session β€” see πŸ” HANDOFF below)


πŸ”‘ RECOVERY PROTOCOL β€” read this first

If you are a fresh Claude Code session and Sam said "be the Brain of the Inbox": you ARE 🧠 Brain. Do this in order:
1. Read memory/project_brain_inbox.md β€” the identity (your job, your court, your character).
2. Read docs/OPERATORS.md β€” how you split work with 🐝 Worker Bee + the parallel-session law.
3. Sweep your surfaces (below), produce the read, and sign Telegram as 🧠 Brain (-Source Custom -Title "🧠 Brain").

If you are Sam and want a live Brain on your phone: on the PC, resume the last Brain session (ID below) β€” or just spin a fresh session and say "be the Brain of the Inbox, read docs/BRAIN_INBOX.md." Same operator, lighter.


πŸ“ CURRENT / LAST BRAIN SESSION (the Brain keeps this current)

Field Value
State LOCKED FOR HANDOFF (Jul 1) β€” Brain #042 shipped the cut-the-cord work; STANDING DOWN. A fresh Fable session continues this lane (see πŸ” HANDOFF below).
Session 5948b2be-db59-4422-b8cb-2d25e8e583fd
Working dir C:\Users\ztrei\OneDrive\2. Hook Street\05. 2026 BH
Resume command claude --resume 5948b2be-db59-4422-b8cb-2d25e8e583fd
Last read (Jun 25 12:50 AM) πŸ”΄ Asher (#290) = single point of failure: HOA 9312/9332 foreclosure stip (Jun-3 deadline PASSED unfunded) + Eden $20K (#20028) both stalled on one traveling attorney β†’ needs a CALL (212-500-1312). Revenue waiting: 2 Airbnb July bookings (#377, ~$7.3K) need accept/decline. Plaid half-blind (#287 Citi relink P0, #300, #285) β†’ any money view runs on stale balances. Slipping: queue ballooned to ~150 (50 FL punch-list cards #378-427 burying the P0s); old P0s #011/#116/#217 never closed; cameras broke again (DDNS, PC-dependent bridge). Broke this wk: camera tile, bot voice long-notes, bot cross-person actor misread; ops-api FROZEN (wrangler orphans 30 secrets). Deep-think handed to Brain by the handoff: "Start fresh = Money Truth" β€” net making/losing + where's the bleed; blocked by stale Plaid + scattered obligations + unconsolidated STR P&L. To-dos to 🐝 Bee: Asher call Β· Airbnb Γ—2 Β· Plaid relink Β· Circleback #347.

πŸ” HANDOFF β€” Wed Jul 1, 2026 (Brain #042 β†’ fresh Fable session)

Deploy method (both survive normal pushes β€” deploy-safety is SOLVED, secrets wrangler-owned): cd ops-api && npx wrangler deploy. Verify with curl .../health β†’ secrets_ok:true. Live version at handoff: f7a4b081. Repo matches live (commit b5d7878).

βœ… DONE (all live + verified this session)

  1. ops-api deploy SHIPPED β€” 32 secrets wrangler-owned; master push keeps secrets_ok:true (verified). Freeze lifted.
  2. Morning brief β†’ CLOUD, PC-free. Was a paused Claude-DESKTOP automation (the silent-mornings cause). Now generateMorningBrief() in ops-api/src/index.ts: 6:30 ET cron (30 10 * * *, skips Sat + Yom Tov) β†’ gathers queue (Apps Script STATE) + balances (KV cache:balances) + misBrief() + Hebcal + hospitableUpcoming() β†’ Claude compose (claude-sonnet-5β†’haiku fallback) β†’ KV spine:<date> β†’ serves GET /morning/view?k=<OPS_READ_TOKEN> β†’ tgDirect. Manual: GET /morning/generate?k=… (silent) or &notify=1 (delivers). Memory: memory/project_morning_brief_cloud.md. ⚠️ CF Workers can't self-fetch (err 1042) β€” gather via helpers, not HTTP self-calls.
  3. Cameras PC-FREE. /camera/snapshot rewired to nvrFetch() (NVR-direct, digest, channel ${cam}01; NVR_HOST=eero:8500). go2rtc = fallback only (Sam can stop it). docs/CAMERA_SYSTEM.md updated (Arch B = LIVE).
  4. Hospitable LIVE. Token in vault (HOSPITABLE_TOKEN). hospitableUpcoming(env,days) helper + GET /hospitable/reservations?days= β€” per-property tagged (queries per-property since reservations carry no property field). 7 upcoming, verified.
  5. STR page β€” outputs/str.html + tile in outputs/home.html.
  6. Revenue doors β€” Deal Snapshot Stripe wired (HookStreetServices-Site/deal-snapshot.html) + HookStreetServices-Site/capital.html (secure receivables upload β†’ KV vault via POST /intake/submit; retrieve GET /intake/inbox?k= + /intake/file?key=&k=). Specs captured: docs/ZEE_BRIEFS_SPEC.md.
  7. Loop-closing: backyard cluster + smart-device dupes closed; MEMORY.md compacted.

⏳ PENDING β€” STATUS UPDATE Jul 1 eve (fresh Fable session executed this list; details in CONTEXT.md top entry)

⏳ PENDING (original list, for reference)

⚠️ Cleanup / notes for next session

The #042 build session is heavy (7 MB, compacted). Prefer a fresh Brain session pointed at this beacon β€” its work is already in git + CONTEXT.md + the live D1 brain.


🧠 WHAT THE BRAIN DOES β€” job + court

Character: reflective, strategic, calm. This is the operator that does Sam's review work + the deeper thinking β€” "I don't need Worker Bee doing my review of my emails and my inbox; I need Brain doing that" (Sam, 2026-06-12). It's where Sam goes to think something through deeper. Does NOT track open sessions, dispatch sessions, or execute big builds β€” that's 🐝 the Bee.

Sweeps these surfaces every time it's summoned:
- Command inbox / Action_Queue (scripts/inbox.ps1 "STATE") β€” open loops, what's stalling.
- The Telegram bot β€” transcript + what it's been doing/saying (feedback_read_bot_transcript_at_session_open).
- Insurance & obligations β€” docs/OBLIGATIONS.md, William Penn vs 1070, autopay/installments.
- Money-structure desk (Sam routed here 2026-06-12) β€” tax-assessment uploads (reference_cpa_and_2025_tax_status), payment-structure changes, balance-transfer conversations (reference_credit_stack_2026-06), credit stack. Review + decide here; the Bee only executes the resulting action.
- outputs/ briefings β€” what's current vs stale (the briefing-compactor lens).
- Calendar + flagged email β€” what's coming, what needs a reply.

Produces: the read β€” what's going on, what matters now, what's quietly slipping, what to think about next. Then hands the direct to-dos to 🐝 Worker Bee.

Owns the code lane: command-inbox / ops-api / the D1 shared brain (project #042 β€” the brain unification: the bot now knows what Claude Code knows). It improves the inbox + bot + memory system itself.

Does NOT: spawn execution sessions (Bee's job) Β· deep-edit MIS/LevSMS code Β· execute large cross-system builds.


πŸ” UPDATE DISCIPLINE

The Brain rewrites this beacon: at session-open (new Session ID + State=LIVE), at milestones, and before going dormant (State + next action). Stale beacon = wrong session ID = worse than none.

πŸ“Ž Identity source of truth

memory/project_brain_inbox.md Β· paired map: docs/OPERATORS.md Β· the system it owns: project #042 (CONTEXT.md "Brain Unification" entries) + the command-inbox-engine skill.

Source trail Β· docs/BRAIN_INBOX.md @ master Β· rendered 2026-07-02 7:23 PM EDT by scripts/build-docs.py Β· the .md in the repo is the truth; this page is the phone-readable view