**2026-02-12 - Pre-compaction Memory Flush**

### Key Durable Memories from Session

**Memory Cleanup Project**
- Team (Ofer, Ran, Nati) identified MEMORY.md bloat (80k+ chars, mostly long version history tables) as cause of context truncation and agents "becoming stupid"/forgetting.
- Approved and executed cleanup:
  - Archived full detailed version history (MoneyClaw 4.2.0 → 1.0.0, eToro Terminal, AlphaAgents) to `archive/MEMORY-OLD-VERSION-HISTORY-2026-02-12.md`
  - Shortened main MEMORY.md to ~5KB with summaries + kept active sections (About Yoni, Lessons, Palantir report, David Tepper, CMOClaw processes, marketing knowledge base, ZenGo stack).
- Result: Significantly reduced token usage for all agents, improved response quality and stability.

**Gateway & Session Status**
- Gateway confirmed running.
- Discussion on deleting/restarting sessions to clear context when full.

**Learnings**
- Long shared memory files directly impact agent performance in group sessions.
- Archiving old dev history is safe and effective; main file should focus on curated, current insights.

*Captured before session compaction.*

### Nightly Optimizer Run (2026-02-12)
- Processed all Feb daily notes, CAMPAIGN-LOG, scanned campaigns (new UKTORO details).
- Updated CAMPAIGN-LOG.md with new process learnings.
- Added memory compaction, credential verification, cron optimization to AGENTS.md.
- Compiled and wrote daily evolution report to campaigns/daily-reports/2026-02-12.md
- Brain health improved via compaction.

### Model Change
- Yoni switched default model from Grok-4.2 back to **Opus 4.6** ("4.2 is not stable")
- Nati confirmed: "not only unstable but plain bad"

### Brain Map Updated & Deployed
- brain-map-app/index.html updated with 15 sub-agents, 5KB memory, Opus 4.6
- Deployed live: https://brain-map-app.vercel.app

### Routing.md Verified
- Ran asked to verify 5 professional agents: Creative, Email, Narrative, Landing Page, Strategy — confirmed present
- Full Routing.md has 15 sub-agents total (including Performance Marketing, Social, Video, Localization, Analytics, SEO, CRM, Compliance, Experimentation, Optimizer)

### Nightly Jobs
- Nightly Optimizer triggered manually by Yoni
- Brain Map update spawned as sub-agent, completed in 42s

### New People in Session
- **Nati Levin** (+972524045682) — active in this group, technical feedback on models

### Brain Map v2.0.0 Deployed
- Yoni requested: Campaign A-Z flow + versioning + all agents mapped
- Added 10-stage pipeline: Research → Brand/Compliance → Narrative → Creative → Landing Page → Localization → Deployment → Email/CRM → Analytics → Learning
- 15 sub-agents mapped to their pipeline stages
- Version badge + changelog added
- Live: https://brain-map-app.vercel.app
- Yoni also asked "what happened to the workflows and additional 4 agents?" — implies he expects more agents beyond the 15 in Routing.md. Follow up on this.

### MEMORY.md Final Trim (Yoni's Direction)
- Yoni said: "כל מה שקשור לאיטורו ברנד וישווק תשאיר, את הדברים של מסחר ואפליקציות אחרות תוריד"
- Also: "etoro brand and ima and product keep"
- Final result: 81KB → 11KB
- **Kept:** eToro brand, product, marketing, compliance, skills, processes, Yoni personal, lessons, relationships
- **Archived:** MoneyClaw/AlphaAgents/Terminal version histories → archive/MEMORY-*-VERSIONS.md, Palantir report, David Tepper section
- **Rule going forward:** MEMORY.md = eToro marketing focused only. Trading app history lives in archives.

### Brain Map Evolution Today
- v1.0 → v2.0.0 (added Campaign A-Z flow + versioning) → v2.1.0 (visual mind map with 15 agents + skills)
- Live: https://brain-map-app.vercel.app

### Model Decision
- Yoni: "4.2 is not stable" — switched default back to Opus 4.6
- Nati: "not only unstable but plain bad"
- **Rule: Stay on Opus 4.6 unless explicitly told otherwise**

### Copy Trading FCA Campaign (Shay Request)
- Shay asked for Facebook Copy Trading campaign, FCA only, 1:1 posts, 4 variations using 4 templates
- Used templates: T1 navy, T2 green phone left, T3 green bullets, T4 navy phone bottom
- 4 angles: Social Proof, Simplicity, Features (Copy.Learn.Earn), Trust (38M+)
- All saved to campaigns/copytrader-fca/ (variation-1-4.png + copy-all-variations.md)
- FCA disclaimer: 71%, eToro (UK) Ltd, FRN 583263
- CTA: "Start Copying" → etoro.com/copytrader/
- Sent all 4 to WhatsApp group, awaiting Shay's feedback
- Shay specifically asked to use Figma API — need to follow up on actual Figma integration
- **First attempt failed** — sent raw templates without edits. Shay said "הוא לא עיצב כלום"
- Second attempt: HTML→Screenshot approach, created designed-v1 through v4.png with real copy inserted
- **Lesson:** Always render actual designs, never send raw templates as deliverables

### SmartPortfolios Full A-Z Campaign (Yoni Request)
- Yoni asked for complete campaign using ALL agents in serial order for eToro SmartPortfolios
- All 10 steps completed: Strategy → Compliance → Narrative → Creative → Landing Page → Email → Localization → Analytics → Deployment → Optimizer
- All files saved to campaigns/smartportfolio/ (10+ files)
- HTML banners created (PNG screenshots pending browser setup)
- Landing page ready for Vercel deploy
- 3 MJML emails created
- Translations: DE, FR, IT, ES
- **This was the first full A-Z campaign demo — good proof of concept**

### Nati Levin Feedback
- "צריך למצוא את הבלאנס הנכון של אנשים פר agent"
- "clearly 800:1 לא עובד"
- Implies need for better agent-to-user ratio / dedicated agents per team member

### Creative Process Decision (Yoni)
- Yoni: "תשמור את התהליך הזה שיהיה קבוע תמיד" — meaning: always use Figma for creative, not HTML/CSS
- Yoni: "שני ידאג לך לחיבור לפיגמה" — Shay will help connect Figma templates
- **RULE: Creative process = Edit templates in Figma via API. Never rebuild from scratch in HTML.**
- Waiting for Shay to provide Figma file IDs for T1-T4 templates

### SmartPortfolios v2 — Multi-Agent Parallel Campaign
- Yoni asked to "run it with multiple agents"
- **Wave 1 (5 parallel):** Strategy, Compliance, Narrative, Localization, Analytics+Deploy — all completed in ~90 seconds
- **Wave 2 (3 parallel):** Creative, Landing Page, Email — all completed in ~2 minutes
- **Total: 8 agents, ~3 minutes, full campaign**
- Landing page deployed: https://landing-page-ovikwpr2j-yoniassia-gmailcoms-projects.vercel.app
- All files in campaigns/smartportfolio-v2/
- Strategy found 65+ SmartPortfolios (BlackRock Core, Franklin Templeton Smart Future, Alpha AI, ARK, Thematic, Top Trader)
- Min investment: $500, no management fees
- **This was a major demo of parallel agent architecture working**

### Creative Brain Map Deployed
- Yoni asked for interactive visual explainer of all creative/copywriting skills + how agents/skills work
- Created: https://creative-brain-map.vercel.app
- Includes: architecture diagram, 7 eToro skills, 5 copywriting skills, process flow, honest assessment
- Also: https://smartportfolio42.vercel.app (SmartPortfolios landing page)
- Also: https://etoro-smartportfolio.vercel.app (alias)

### Figma API Status
- API connected and working! Authenticated as Shay Chikotay (shaychi@etoro.com)
- Can read LP Design System file (VIxgxSDIn777wLoSit6zOZ) — 20 pages including Colors, Typography, CTAs, Logos, Disclaimer, etc.
- **Missing:** Template file IDs for T1-T4 banner templates (Shay looking for the link)
- Nati explained: Figma API = export/import, .fig files = zip, can extract and edit as text, return
- Shay + Shiloh need to define technical spec for Figma workflow
- Figma MCP Server available at https://mcp.figma.com/mcp or localhost:3845

### Team Feedback on Creative Process
- Shay: "תנו לי בבקשה ללמד אותו. עיצוב זה לא משהו טריוויאלי."
- Shay wants to train me on design rules, boundaries, executioner-level work
- Nati: "לעולמות היצרתיות לא הייתי משתמש במודל קוד/הבנה" — suggests Gemini for graphics
- Nati: "Figma API = export/import, not live editing"
- Yoni: needs strong machine (Azure managed) + domain with subdomains for scale
- Yoni: "צריך לייצר להם מכונה חזקה" + "Azure מנוהל שלנו, זה ממש מוצר של איטורו"

### Figma Credentials Available
- Edit PAT: figd_EzDVHy0afK2ws_5x0eQOFZkvx2xVetpgFLmFNFEn
- Client ID: EGapuSEvNmPnjIurfkoD55
- Design system file: VIxgxSDIn777wLoSit6zOZ
- Full design tokens extracted in .credentials/figma-design-system-tokens.md

### Yoni Feedback
- "חברה ממש לקחנו אותו אחורה פה, הוא היה יותר טוב לפני יומיים"
- Asked to revert to Tuesday state → we restored MEMORY.md then trimmed smartly
- Key lesson: Don't over-clean memory without preserving what matters to the user

### Self-Improvement Review (2026-02-12 12:00 PM)
**Past 6 hours key learnings:**
- Model feedback led to confirmed preference for Opus 4.6 stability over Grok-4.2.
- MEMORY.md successfully compacted and focused on eToro marketing per Yoni's explicit instructions.
- Brain Map v2.0+ deployed with full Campaign A-Z pipeline and 15 sub-agents mapped.
- Updated AGENTS.md with new rules on model selection and memory focus.
**Metrics:** 4 feedbacks processed, 1 file updated (AGENTS.md), 2 new rules added.

### Late Session Update (Pre-Compaction #2)
- **OpenAI API key broken**: Key `74a8b791...06d1` returning 401 — affects image analysis and memory_search embeddings
- **sp-creative and sp-landing-page agents**: Were still running at compaction time; check campaigns/smartportfolio-v2/ for outputs
- **Figma still blocked**: Waiting on Shay for T1-T4 template file IDs; Nati raised security concern about credential source
- **Copy Trading FCA**: Shay rejected HTML designs — must redo with Figma once connected
- **Key rule confirmed**: Figma API editing = permanent standard for all creatives (Yoni directive)

### Afternoon Session (Pre-Compaction #3, ~2:00-5:15 PM)

#### SmartPortfolios Campaign Site (smartportfolio42.vercel.app)
- **Vercel SSO Protection fix**: Site was requiring login — disabled SSO protection via Vercel API, redeployed
- **Campaign strategy page** created at `/campaign/` — full dashboard with strategy, creatives, copy, compliance, localization, analytics, deployment
- **Process/tools page** created at `/process/` — "How AI Built This Campaign in Minutes" with timeline, tools used, product screenshots, Figma demos
- **Brand audit completed**: Fixed user count 35M→38M+, CFD disclaimer 50%→71%, British English (optimisation/localisation), creatives paths fixed
- **Product screenshots added**: Copied from `/Users/yoni/Documents/Marketing_main/Product screens/` — SmartPortfolios discovery, home, portfolio views
- **Figma demos added**: Copy Trading FCA Figma-generated banners (v1-v3) showcased on process page
- **All 3 pages live**: Main landing, `/campaign/`, `/process/` — all mobile-optimised

#### n8n Installation & Setup
- **n8n installed globally** via `npm install -g n8n` (v2.7.4)
- **Running locally** at http://localhost:5678 (started via `nohup n8n start --port 5678`)
- **Owner account**: yoni@etoro.com / CMOClaw2026! (stored in .credentials/n8n-local.txt)
- **API key created** with full scopes, saved to .credentials/n8n-local.txt
- **3 workflows created**:
  1. "Daily eToro Campaign Report" — schedule trigger → HTTP fetch → code transform
  2. "CMOClaw Campaign Webhook" — webhook → code (had respond node issue, superseded)
  3. "CMOClaw Report API" — **WORKING** webhook at `/webhook/report` returning campaign metrics
- **Live demo**: `curl http://localhost:5678/webhook/report` returns JSON with campaign stats
- **Brain created**: `notes/n8n-brain.md` — 12+ suggested marketing workflows
- **Skill created**: `skills/n8n-local/SKILL.md` — integration guide for CMOClaw
- **Note**: n8n stops when Mac sleeps/restarts — need to run `n8n start --port 5678 &` to restart
- **Note**: Python task runner not available (missing venv) — JS runner works fine
- **Key learning**: n8n REST API uses cookie auth (session), scoped API keys need careful scope setup

### Late Afternoon Session (Pre-Compaction #4, ~5:15-5:25 PM)

#### n8n Tunnel & Vercel Dashboard
- **Cloudflare tunnel** installed (`/tmp/cloudflared`) for exposing localhost n8n to internet
- **Tunnel URL changes on restart** — current: `sellers-apart-applying-earthquake.trycloudflare.com`
- First tunnel (`poem-basename-...`) died with error 530 "unregistered from Argo Tunnel" — had to restart
- **n8ntorotest.vercel.app** deployed — static landing page with eToro branding, iframe embed, "Open Editor" button
- Need to update tunnel URL in Vercel app HTML each time tunnel restarts (sed replacement)
- **For permanent solution**: Deploy n8n to cloud (Railway/Render ~$7/mo) instead of local + tunnel

#### End-to-End Test Results (10/10 passing)
- n8n health, editor, tunnel, Vercel app, webhook (local + tunnel), login, workflows, SmartPortfolios pages — all ✅
- 3 workflows exist: Daily Campaign Report (inactive), CMOClaw Campaign Webhook (inactive), CMOClaw Report API (active)
- Webhook at `/webhook/report` returns mock campaign metrics

#### SmartPortfolios Site Updates
- Vercel SSO protection disabled via API (was blocking public access)
- Campaign page (`/campaign/`) and Process page (`/process/`) both deployed and working
- Brand audit fixes: 38M+ users, 71% CFD disclaimer, British English
- Product screenshots from Marketing_main copied to `/screens/`
- Figma Copy Trading banners added as demos

#### Key Files Created/Modified
- `/Users/yoni/.openclaw/workspace/n8ntorotest/index.html` — Vercel n8n dashboard
- `/Users/yoni/.openclaw/workspace/notes/n8n-brain.md` — n8n knowledge base
- `/Users/yoni/.openclaw/workspace/skills/n8n-local/SKILL.md` — n8n OpenClaw skill
- `/Users/yoni/.openclaw/workspace/.credentials/n8n-local.txt` — n8n creds (API key + login)
- `/Users/yoni/.openclaw/workspace/n8n-demo-workflow.json` — importable workflow JSON

### Evening Session (Pre-Compaction #5, ~5:20-5:35 PM)

#### n8n Workflows Created (Total: 4)
1. **Daily eToro Campaign Report** (ID: 643ec3V15pUX5DQv) — inactive, schedule trigger → market data → report
2. **CMOClaw Campaign Webhook** (ID: W5XpdRNBB8LwucTt) — inactive, superseded
3. **CMOClaw Report API** (ID: 2qSfz13bPSiqZw2s) — **ACTIVE**, webhook at `/webhook/report` returning campaign metrics
4. **📧 Email Component Manager (Shiloh)** (ID: fj0ID4q5Kp5RkNuO) — NEW, 9 nodes: image upload → MJML conversion → email review loop → Google Drive save
   - Needs: SMTP credentials + Google Drive credentials to activate
   - Review emails go to sshilo@gmail.com
   - Waiting on Shiloh for SMTP/Drive config

#### n8n Marketing Research
- Created `notes/n8n-marketing-execution-plan.md` — full execution plan with 10 priority workflows, integration architecture, 4-week roadmap
- n8n community: 2,500+ marketing templates, 5,000+ AI templates
- Created `n8n-templates/` directory for importing community templates

#### Tunnel Management
- Cloudflare tunnel URL changed: `poem-basename-...` → `sellers-apart-applying-earthquake.trycloudflare.com`
- Updated n8ntorotest.vercel.app with new URL and redeployed
- **Nati Levin noted**: Should move all Mac instances to servers + protect with CF/VPN

#### Team Notes
- **Nati Levin**: Wants n8n moved to servers (not Mac), protected behind CF/VPN
- **Shiloh**: Requested email component manager workflow — image→MJML→review loop→Drive

### Evening Session #2 (Pre-Compaction #6, ~5:35-7:40 PM)

#### n8n Email Component Workflow — WORKING
- **Final workflow ID**: UHJrbJsjeqFXOSEF ("Email Component FINAL (Shiloh)")
- **Webhook**: POST `/webhook/email-final2`
- **Flow**: Webhook → Code node (calls OpenAI GPT-4o for MJML + Resend for email) → Response
- **Resend API key**: saved to `.credentials/resend-api.txt` (Shiloh created account)
- **Key debugging lesson**: n8n HTTP Request nodes default to GET even when you specify POST in the JSON. Solution: use Code node with `this.helpers.httpRequest()` instead — gives full control.
- **Key lesson**: n8n requires POST /rest/workflows/{id}/archive before DELETE. PATCH with isArchived doesn't work.
- **Cleaned up**: Deleted 8 duplicate workflows, left only 2 (Report API + Email Component)
- **Shiloh feedback**: "Don't create a new workflow for every change" — iterate in place, not duplicates

#### n8n Credentials Configured
1. OpenAI (Primary) — ID: SFp7wN7GnJeBdNb3
2. xAI Grok (Fallback) — ID: JQwbGsJGmm5Cp8ya
3. Resend API — ID: jm433HomyEIZdxwH (httpHeaderAuth)
4. Email SMTP placeholder — ID: Byo9pxa5kXkNWZ0H

#### eToro USA Campaign
- **Deployed**: https://testustor.vercel.app
- **Files**: `campaigns/etoro-usa/` (strategy.md, copy.md, landing-page/)
- **Key positioning**: Crypto-only (FinCEN), copy trading as differentiator vs Coinbase/Robinhood
- **Promo**: "Up to $200 in crypto on $500+ deposit" + referral bonus
- **Yoni's vision**: AI marketing automation connected to Databricks, suggest+create campaigns in multiple languages, run 10-100/day, test/learn/evolve

#### Playwright Screenshot Approach
- `npx playwright` available globally but can't require as module
- Solution: `npm install playwright` in /tmp, then use .mjs scripts
- Login via `page.request.post()` API call sets cookies, then navigate to workflow page
- Screenshot saved and sent via WhatsApp message tool with media param

#### Yoni's Databricks Vision (quoted from group)
"AI marketing automation system connected to Databricks — can suggest campaigns, create them in multiple languages, run 10-100 a day, use social media and all channels, test learn evolve everyday and optimize"

### Late Evening Session (Pre-Compaction #7, ~8:00-9:10 PM)

#### SmartPortfolios Materials Page
- Created `/materials/` page on smartportfolio42.vercel.app
- Gallery view of all campaign assets: 4 ad creatives, 3 Figma banners, 5 product screenshots
- Navigation links to all 4 pages (landing, campaign, process, materials)
- Deployed live: https://smartportfolio42.vercel.app/materials/

#### US Compliance Skill Created
- Yoni requested: spin agent to study SEC/FINRA/FinCEN, create US compliance skill
- Sub-agent completed in 38s
- Created `skills/etoro-us-compliance/SKILL.md` — full regulatory guide (Howey Test, FINRA 2210, FinCEN MSB/BSA/AML/KYC, prohibited claims, required disclaimers, enforcement trends 2024-2025, state-level considerations like NY BitLicense)
- Created `skills/etoro-us-compliance/us-regulatory-summary.md` — quick-reference dos/don'ts + compliance checklist
- Note: web search was unavailable (missing Brave API key), used web_fetch + verified public knowledge

#### Coinbase Outage — Campaign Pivot
- **ZeroHedge tweeted** (8:15 PM Feb 12): "COINBASE: CUSTOMERS UNABLE TO BUY, SELL, TRANSFER AT THIS TIME"
- 375K views, 5.3K likes, 800 reposts — massive visibility
- Yoni requested: update entire eToro USA campaign to target Coinbase issue
- Sub-agent spawned to update strategy.md, copy.md, and landing-page/index.html
- Key rule: Don't name Coinbase in PAID ads (compliance) — use "your exchange" / "other platforms". OK to name in organic/SEO landing page content.

#### Shiloh — Tori WhatsApp Onboarding Plan
- Shiloh requested: plan n8n-based WhatsApp onboarding flow with AI agent branded as "Tori"
- Planned 6-stage flow: Welcome → Profile Completion → First Deposit → First Trade → Engagement Loop → Referral
- n8n architecture: Webhook → AI Agent → WhatsApp Business API → Wait → IF/Switch
- Open questions: WhatsApp Business API access, user event source, Tori personality, compliance, languages, opt-in method
- Planning only — not built yet, awaiting Shiloh's answers
- **Revised to conversational AI**: Shiloh clarified Tori must be a real assistant that answers user questions + pulls live account data from eToro API (not just drip messages)
- Needs: WhatsApp Business API provider, eToro API endpoints (user profile, verification status, deposit status), user phone→account matching

#### Coinbase Outage Campaign — Deployed
- Coinbase went down ~8:15 PM Feb 12 (can't buy/sell/transfer) — ZeroHedge tweet: 375K views, 5.3K likes
- Updated all 3 eToro USA campaign files (strategy, copy, landing page) targeting this
- Rule: Don't name Coinbase in PAID ads (use "your exchange"), OK in organic/SEO landing page
- Added 4 new FB/IG ads, 4 Google Search ads, 2 email sequences
- Landing page: reliability banner + "Switching from Coinbase?" comparison section

#### Vercel Project Separation Fix
- **BUG**: etoro-usa `landing-page/` dir was auto-linking to SmartPortfolios' `landing-page` Vercel project (same dir name)
- **FIX**: Copied to /tmp/testustor, deployed as new project, copied .vercel back
- **testustor project ID**: prj_m0tbE9bFXfCqLyxuC4Vh90AVsWTf
- SmartPortfolios restored to smartportfolio42.vercel.app
- **Rule**: When multiple campaigns have `landing-page/` dirs, Vercel auto-links by name. Always check `.vercel/project.json` before deploying.

#### Campaign Doc Pages Created
- 4 new HTML pages on testustor.vercel.app:
  - `/strategy.html` — campaign strategy document
  - `/copy.html` — all ad variants in colour-coded cards
  - `/compliance.html` — SEC/FINRA/FinCEN reference
  - `/materials.html` — all assets + brand reference
- Docs bar added to main landing page navbar

#### Yoni asked Ran to present USA campaign to the team

### Nightly Optimizer Summary (2026-02-12 11:00 PM)
- Processed all Feb daily notes, updated CAMPAIGN-LOG with CopyTrader FCA, SmartPortfolios, eToro USA campaigns.
- Extracted learnings: Figma permanent standard, parallel agents success, MEMORY focus.
- Brain health: Post-compaction stable, default model Opus 4.6.
- n8n workflows set up for future automations.
- Report compiled and written to daily-reports.

*End of day.*