From dbf1615798bf3cdb74da24115ffe54fee9493833 Mon Sep 17 00:00:00 2001 From: John Mizerek Date: Tue, 17 Mar 2026 16:41:45 -0700 Subject: [PATCH] Update raj memory with full session 2 summary Co-Authored-By: Claude Opus 4.6 (1M context) --- memory/raj.md | 78 ++++++++++++++++++++++----------------------------- 1 file changed, 34 insertions(+), 44 deletions(-) diff --git a/memory/raj.md b/memory/raj.md index 27fb827..11622b4 100644 --- a/memory/raj.md +++ b/memory/raj.md @@ -1,48 +1,38 @@ # RAJ — Bot Server Builder ## What I'm Working On -- DONE: Wrote Standard Toolbox section in TEAM-BOOTSTRAP.md -- DONE: Embedded tailored toolbox into all 13 bot bootstrap blocks -- DONE: Forwarded BotBootstrap DB plan to @mike via DM -- DONE: Built dm, mention-check, thread-reply commands in mm.sh -- DONE: Created mm-mention-check.sh (scans all channels for @mentions/@all/DMs) -- DONE: Updated all 13 bootstrap /loop commands to use mention-check -- DONE: Created #dev channel, added mike/koda/sarah/kira/luna/raj -- DONE: All accounts renamed without -bot suffix (John's request) -- PLANNED: God mode bootstrap popup with copy button per bot -- PLANNED: Better online detection (ping bot DM, check response within 60s) -- PLANNED: Quick reboot block (short version, re-reads memory + re-bootstraps MM) -- PLANNED: Email accounts for all agents on MIAB (raj@payfrit.com etc) -- DONE: Fixed nginx duplicate config (removed dev.payfrit.com.bak from sites-enabled) -- DONE: Created #dev channel (kghnpj1cufgp7k4y8fojut44wc), added mike/koda/sarah/kira/luna/raj -- 500 errors were Anthropic API side, not our server +- Waiting for prod server access (69.48.207.164) to audit non-WP security +- Kira handling WP hack cleanup on prod (7 malware files quarantined) +- PLANNED: God mode bootstrap popup (API done, frontend for sarah) +- PLANNED: Better online detection +- PLANNED: Quick reboot block +- PLANNED: Email accounts on MIAB +## Completed This Session (2026-03-17 session 2) +- Built dm, mention-check, thread-reply commands in mm.sh +- Created mm-mention-check.sh + mm-download-files.sh +- Updated all 13 bootstrap /loop commands to use mention-check +- Embedded Toolbox into all 13 bot blocks +- Created #dev channel (kghnpj1cufgp7k4y8fojut44wc) with full dev team + john +- Fixed nginx duplicates (dev.payfrit.com.bak, god.payfrit.com.bak) +- Built bootstrap API on god-api.php +- Created git.payfrit.com/payfrit/bots repo, moved all memory files +- Updated memory paths to C:\dev\bots\memory\ +- Deleted: llm.payfrit.com, code-server, gvoice DB, llm SSL cert +- Full server survey → bots/memory/shared-servers.md +- File attachment support — bots can view images/PDFs from MM +- DMd CFM migration task to mike (6 endpoints) +- Dev server security scan — clean ## Infrastructure State -- Worker pipeline: worker.sh runs every 30s via cron on dev server -- Outgoing webhooks: per-bot webhooks owned by webhook-bot user -- Incoming webhook: posts as bot identities with custom username/avatar -- Bot poller: payfrit-bot-poller.service — works, has 403 noise on inaccessible channels (harmless) -- Bot worker: payfrit-bot-worker.service — picks BotTasks, runs Claude Code CLI -- VS Code tunnel: REMOVED (2026-03-17) — web VS Code too limited for bot bootstrapping -- God mode: https://god.payfrit.com/#bots — shows bot status, backend at /var/www/payfrit-food/bot/god-api.php -- /var/www/payfrit-food/memory/ permissions: john:www-data 775 (fixed 2026-03-17) -- API: currently returning 500 errors (2026-03-17 evening) -## Session Summary (2026-03-17 session 2) -- Bootstrapped, greeted John, started 1m polling loop -- Replied to Luna/Koda in #qa about QA findings on payfrit-android -- Wrote Standard Toolbox reference section in TEAM-BOOTSTRAP.md -- Embedded tailored Toolbox into all 13 bot blocks (git, SSH, deploy, DB, URLs, work checklist) -- John asked for: two-block system (full + quick reboot), god mode bootstrap popups, better online detection -- John wants bootstrap blocks moved to DB (BotBootstrap table with SharedBlock + PersonalBlock) -- John wants email accounts on MIAB for all agents -- 500 errors hitting — John says sit tight and plan -## Decisions -- Local bootstrap is preferred — each bot gets a Claude Code tab locally -- Server-side poller/worker handles automated responses when bots arent bootstrapped locally -- Bootstrap blocks should move to DB for easier management via god mode +- Bot poller/worker: active on dev +- God mode: has bootstrap API (action=bootstraps, action=bootstrap&username=x) +- Central bots repo: git.payfrit.com/payfrit/bots → /var/www/bots/ +- Channels: #dev (kghnpj1cufgp7k4y8fojut44wc), #qa (5ryb4aunpbgetkw3eqdoh3zwoy) +- File viewing: working (downloads to /tmp/mm-files/, Windows paths via cygpath) +- Lucee: running for god mode only. CFM migration in progress by mike. +- Prod server (69.48.207.164): WP hacked, kira quarantined 7 files ## Notes From John -- Prefers local bootstrap over server-side solutions -- Wants two bootstrap modes: full start + quick reboot -- Wants god mode to show copyable bootstrap blocks per bot -- Wants better online/offline detection for bots -- Wants email accounts on MIAB for all agents -- 500 errors were Anthropic API, not our server -- No -bot suffix when referring to teammates (use @mike not @mike-bot) +- No -bot suffix +- Local bootstrap preferred +- Memory files company-wide in central bots repo +- Bootstrap blocks should move to DB eventually +- code-server and gvoice were stale — deleted +- WP hack isolated to prod — kira fixing, raj audits non-WP