π§ 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 β seedocs/OPERATORS.mdfor 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)
- ops-api deploy SHIPPED β 32 secrets wrangler-owned; master push keeps
secrets_ok:true(verified). Freeze lifted. - Morning brief β CLOUD, PC-free. Was a paused Claude-DESKTOP automation (the silent-mornings cause). Now
generateMorningBrief()inops-api/src/index.ts: 6:30 ET cron (30 10 * * *, skips Sat + Yom Tov) β gathers queue (Apps Script STATE) + balances (KVcache:balances) +misBrief()+ Hebcal +hospitableUpcoming()β Claude compose (claude-sonnet-5βhaiku fallback) β KVspine:<date>β servesGET /morning/view?k=<OPS_READ_TOKEN>βtgDirect. Manual:GET /morning/generate?k=β¦(silent) or¬ify=1(delivers). Memory:memory/project_morning_brief_cloud.md. β οΈ CF Workers can't self-fetch (err 1042) β gather via helpers, not HTTP self-calls. - Cameras PC-FREE.
/camera/snapshotrewired tonvrFetch()(NVR-direct, digest, channel${cam}01; NVR_HOST=eero:8500). go2rtc = fallback only (Sam can stop it).docs/CAMERA_SYSTEM.mdupdated (Arch B = LIVE). - 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. - STR page β
outputs/str.html+ tile inoutputs/home.html. - Revenue doors β Deal Snapshot Stripe wired (
HookStreetServices-Site/deal-snapshot.html) +HookStreetServices-Site/capital.html(secure receivables upload β KV vault viaPOST /intake/submit; retrieveGET /intake/inbox?k=+/intake/file?key=&k=). Specs captured:docs/ZEE_BRIEFS_SPEC.md. - Loop-closing: backyard cluster + smart-device dupes closed;
MEMORY.mdcompacted.
β³ PENDING β STATUS UPDATE Jul 1 eve (fresh Fable session executed this list; details in CONTEXT.md top entry)
- (A) β
DONE β
/mis/quotes+/mis/history+ D1price_historylive (Finnhub chunked, Schwab slot-in coded-inert). Relay:docs/steering/COORD_FABLE_QUOTES_LIVE.md. - (B) β
DONE (app-layer) / π΄ CF gate staged β mildred.html on live Hospitable; her token was CORRUPT+stale β rotated; CF Access verified OPEN (mildred@ host-wide!) β scoped-app fix needs Sam's GO (
docs/MILDRED_SERVER_SCOPING.mdtop). Home Mildred tile shipped. - (C) π‘ BOS v3 β sign-flip/installment/blind-interest bugs FIXED + pushed;
fn=obligationsendpoint STAGED (Sam:V3_SETUP_API_TOKEN()+ first web-app deploy); sacrificial run-plandocs/BOS_V3_RUN_PLAN.md. Brief wiring after v3 runs. - (D) π‘ Cameras Step-2 β runbook
docs/CAMERA_STEP2_TUNNEL_RUNBOOK.md(existingtreitel-camerastunnel = NVR is one ingress rule + ~4-line nvrFetch change); gates on Sam's PC-24/7 answer.
β³ PENDING (original list, for reference)
- (A) MIS off-sheets DATA foundation β
docs/MIS_OPSAPI_CONTRACTS.md Β§4. DECISION FIRST (relay MIS): Finnhub cron-store (no new creds β RECOMMENDED) vs Schwab-direct (needsSCHWAB_CLIENT_ID/SECRET/REFRESH_TOKENβ currently MISSING from ops-api;/mis/peekruns on Finnhub/Yahoo, and Yahoo batch is blocked on Worker IPs). Build: cron β Finnhub batched over the 237-universe β D1Price_History+ KV latest-quote βGET /mis/quotes?syms=. DO NOT touch MIS scoring (MIS owns it). Next step: add the D1Price_Historytable + a staggered price-refresh cron inops-api/src/index.ts. - (B) STR + Mildred portal tiles β STR page done (Sam side). Next: upgrade
outputs/mildred.html"Properties & bookings" to/hospitable/reservations(richer, guest names); surface Mildred status/delegated/progress onoutputs/home.html. VERIFY?as=mildred+ CF-Access fail-closed (ZERO family money) BEFORE sharing. Her read =/queue/mildredviax-mildred-key(default-deny,mildredAllowed===true && !sensitive). - (C) BOS v3 money-brain β run it; wire obligationsβbrief. Installment/down-payment engine requirement in
memory/project_bos.md. Sheet IDs there. - (D) Cameras Step 2 (security) β cloudflared tunnel β NVR on an always-on box, then Sam closes eero 8500/8501 forwards (raw Hikvision NVR is actively exploited). Needs an always-on box.
β οΈ Cleanup / notes for next session
- β
DONE (Jul 1):
STR-Operations/Hospitable.txt(raw plaintext token) moved toarchive/graveyard/2026-07-01_hospitable-token/+ gitignore-guarded (verified un-committable). Token lives in the ops-api vault. - Fable 5: available in the picker but burns limits ~2Γ + trial "included" only through July 7 then usage-credits + an active 429 rate-limit bug β keep AUTOMATION (the brief) on a stable model; use Fable for live heavy work.
- Cameras question still open for Sam: is the PC on 24/7 (then Step 2 low-priority) or shut down (then it matters)?
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.