Skip to content

Instantly share code, notes, and snippets.

@SoMaCoSF
Created April 28, 2026 19:11
Show Gist options
  • Select an option

  • Save SoMaCoSF/5331ab493e7de69193aeab1c45992f28 to your computer and use it in GitHub Desktop.

Select an option

Save SoMaCoSF/5331ab493e7de69193aeab1c45992f28 to your computer and use it in GitHub Desktop.
SOMACOSF System State 2026-04-28 — Harvester Pipeline, Mission Control, UUID Architecture, Paper Stats, What Works, What's Next

SOMACOSF SYSTEM STATE — 2026-04-28

OMEN-01 | somacosf.com | Phlux | Session snapshot


┌─────────────────────────────────────────────────────────────────────────────┐
│  SOMACOSF MISSION CONTROL // OMEN-01 // 2026-04-28                         │
│  "IDENTITY IS INFRASTRUCTURE"                                               │
│                                                                             │
│  UUID:    5043aaef-c96f-81c0-8400-00ff8f53ac9e  [AGENT_EXECUTOR 0x504]     │
│  WALLET:  0x62Fc8FA61256B556bbbF7D335D7198158410db71                       │
│  STATUS:  HARVESTING ● PRICE-ONLY (no JWT)                                 │
└─────────────────────────────────────────────────────────────────────────────┘

SYSTEM ARCHITECTURE

┌──────────────────────────────────────────────────────────────────────────────┐
│                         SOMACOSF PLATFORM SPINE                              │
│                         https://somacosf.com                                 │
│                                                                              │
│  ┌─────────────────────────────────────────────────────────────────────┐   │
│  │  NEXT.JS 15 (Vercel Production)                                      │   │
│  │                                                                      │   │
│  │  ROUTES                           APIs                               │   │
│  │  ├── /                            ├── /api/poly/stats                │   │
│  │  ├── /admin/channels              ├── /api/poly/analyze ($0.05 x402)│   │
│  │  ├── /traders/dashboard           ├── /api/signals/hormuz/register   │   │
│  │  ├── /intelligence                ├── /api/signals/hormuz/ingest     │   │
│  │  ├── /market-lab                  ├── /api/forecast                  │   │
│  │  ├── /pulse (map)                 ├── /api/forecast/prompt           │   │
│  │  ├── /says (feed)                 ├── /api/admin/channels/status     │   │
│  │  ├── /uuid/harness                └── /api/trader/ingest             │   │
│  │  └── /locus/witness                                                  │   │
│  └──────────────────────────────────────────────────────────────────────┘   │
│                                                                              │
│  Latest deploy: 9ccee1a — /intelligence + /market-lab + wallet health grid  │
│  Currently:     Building next deploy (queued)                                │
└──────────────────────────────────────────────────────────────────────────────┘

┌──────────────────────────────────────────────────────────────────────────────┐
│                       HARVESTER PIPELINE (OMEN-01)                           │
│                                                                              │
│   .env                  parity_harvester.py           somacosf.com           │
│   ┌──────────┐          ┌─────────────────┐           ┌──────────────────┐  │
│   │HARVESTER_│  load    │  Cycle every    │  INGEST   │/api/signals/     │  │
│   │UUID=5043 │ ──────►  │  300 seconds    │ ────────► │hormuz/ingest     │  │
│   │PARITY_   │          │                 │           │                  │  │
│   │SESSION=  │          │  10 markets:    │           │  stores signal   │  │
│   │[INVALID] │          │  Xi Jinping     │           │  + paper trade   │  │
│   └──────────┘          │  Putin          │           │  intent          │  │
│                         │  BTC $1M        │           └──────────────────┘  │
│                         │  Taiwan         │                                  │
│                         │  MicroStrategy  │  price     gamma-api.polymarket │
│   run_harvester.bat     │  Jesus Returns  │ ◄───────── .com/markets/{id}    │
│   ┌──────────────────┐  │  Hurricanes Cup │                                  │
│   │1. load .env      │  │  Dallas Stars   │                                  │
│   │2. start          │  │  Trump out      │                                  │
│   │   log_server.py  │  │  Russia-Ukraine │                                  │
│   │3. python         │  └─────────────────┘                                  │
│   │   parity_        │                                                        │
│   │   harvester.py   │                                                        │
│   └──────────────────┘                                                        │
└──────────────────────────────────────────────────────────────────────────────┘

┌──────────────────────────────────────────────────────────────────────────────┐
│                   MISSION CONTROL DASHBOARD (localhost:7420)                 │
│                                                                              │
│   log_server.py — ThreadingHTTPServer — FIXED 2026-04-28                   │
│                                                                              │
│   ┌──────────────────────────────────────────────────────────────────────┐  │
│   │  SOMACOSF // OMEN-01  [UUID OK] [PRICE-ONLY]  Cycle:1  PnL:-$4.92   │  │
│   │─────────────────────────────────────────────────────────────────────│  │
│   │  LIVE LOG STREAM (SSE)        │ LIVE MARKET PRICES (60s refresh)    │  │
│   │  ┌────────────────────────┐  │ ┌───────────────────────────────┐   │  │
│   │  │ 08:38 Cycle 1 ─────── │  │ │ Bitcoin $1M before GTA VI?    │  │
│   │  │ 08:38 wallets=0       │  │ │  YES: 2.1%  NO: 97.9%  $8.2M │   │  │
│   │  │ 08:38 INGEST OK       │  │ │ Xi Jinping out before 2027?   │  │
│   │  │ 08:38 ...             │  │ │  YES: 4.5%  NO: 95.5%  $450K │   │  │
│   │  └────────────────────────┘  │ │ ...8 more markets...          │  │
│   │                               │ └───────────────────────────────┘   │  │
│   │                               │ PLATFORM // PAPER STATS             │  │
│   │                               │ paper PnL   -$4.92                  │  │
│   │                               │ win rate    0%                      │  │
│   │                               │ resolved    1 / 11 intents          │  │
│   │                               │ forecasts   88                      │  │
│   │                               │ avg edge    50.23%                  │  │
│   └──────────────────────────────────────────────────────────────────────┘  │
│                                                                              │
│  Endpoints: / (HTML) /stream (SSE) /stats (JSON) /markets (JSON)           │
│             /platform (JSON)                                                 │
└──────────────────────────────────────────────────────────────────────────────┘

GYST UUID v8 BIT LAYOUT

128 bits:
 ┌──────────────┬──────────────┬────────────────────────┬───────┬──────┬──────┬──────────┬──────┬─────────────────────────────────────────┐
 │  type (12b)  │ namespace(12)│    timestamp (24b)      │ver(4) │ depth│domain│generation│var(2)│            random (62b)                 │
 └──────────────┴──────────────┴────────────────────────┴───────┴──────┴──────┴──────────┴──────┴─────────────────────────────────────────┘

HARVESTER_UUID: 5043aaef-c96f-81c0-8400-00ff8f53ac9e
  type:       0x504 = AGENT_EXECUTOR
  namespace:  0x3aa = HORMUZ_PIPELINE
  timestamp:  0xefc96f (registration time)
  version:    8 (UUID v8 compliant)
  domain:     0x0 = core
  random:     62 bits of entropy

Entity type map (relevant):
  0x001 - SIGNAL_INSTANCE
  0x002 - MARKET_OBSERVATION  
  0x010 - INGEST_BATCH
  0x101 - TRADER_WALLET
  0x200 - ORDER_INTENT        ← minted in /api/execution
  0x201 - POSITION_TRACK
  0x400 - LOCUS_PAYMENT
  0x501 - AGENT_HARVESTER
  0x504 - AGENT_EXECUTOR      ← this UUID
  0x510 - AGENT_CONTRACT

PAPER TRADING STATE

╔═══════════════════════════════════════════════════════╗
║  PAPER P&L  (as of 2026-04-28)                       ║
║                                                       ║
║  Total Forecasts:  88                                 ║
║  Total Intents:    11                                 ║
║  Resolved:          1  (1 settled market)             ║
║  Correct:           0                                 ║
║  Win Rate:        0.0%                                ║
║  Paper PnL:      -$4.92                               ║
║  Avg Edge:       50.23%  ← model thinks it sees edge  ║
║  Avg Kelly:       $4.92  ← avg suggested bet size     ║
║  Last Scan:      2026-04-27 21:12:23 UTC              ║
║                                                       ║
║  WHY WE'RE DOWN:                                      ║
║  • avg_edge 50.23% means model is ~coin-flip          ║
║  • 1 resolved market, lost it                         ║
║  • No real money — pure paper validation phase        ║
║  • Need PARITY_SESSION JWT for real order flow        ║
╚═══════════════════════════════════════════════════════╝

WHAT IS ACTUALLY BUILT AND WORKING

✅ BUILT & LIVE
───────────────────────────────────────────────────────────
✅ somacosf.com — Vercel production (Next.js 15)
     Latest: 9ccee1a feat(intelligence): investor page + market-lab
     Auth: SomacoSF! password gate (middleware.ts)
     x402: $0.05 USDC gate on /api/poly/analyze

✅ /admin/channels — 40-channel ops Bloomberg dashboard
     15s auto-refresh, SOM-PAG-0051
     Canonical registry: app/api/lib/channels.ts (SOM-LIB-0050)

✅ /traders/dashboard — trading intelligence ops panel
     Wallet health grid, position tracking scaffold
     Deployed: b35d248

✅ /intelligence — investor portal + /market-lab
     Deployed: 9ccee1a

✅ /api/poly/stats — paper trading stats endpoint
     Returns: forecasts/intents/resolved/PnL/edge/kelly
     Live: {"total_forecasts":88,"paper_pnl_usd":-4.92}

✅ /api/poly/analyze — signal analysis with x402 gate
     $0.05 Base USDC per call
     Wallet: 0x62Fc8FA61256B556bbbF7D335D7198158410db71

✅ /api/signals/hormuz/ingest — signal ingestion endpoint
     Receives parity_harvester.py payloads every 300s
     Stores to SQLite + paper trade intent

✅ /api/forecast + /api/forecast/prompt
     T9a/T9b prediction lattice
     Evidence Map cardlet + Leni Memo v2

✅ parity_harvester.py — OMEN-01 daemon
     UUID=5043aaef SET ✅
     10 live Polymarket markets ✅  
     300s cycle, price-only mode (no JWT)
     Logs: parity_harvester.log

✅ log_server.py — Mission Control dashboard
     http://localhost:7420
     ThreadingHTTPServer FIXED (was hanging all requests)
     SSE log tail, live market prices, platform stats
     PID: 17060

✅ run_harvester.bat — launcher
     Loads .env, starts log_server, starts harvester
     Kill-stale-instances logic included

✅ GYST UUID v8 — 128-bit semantic addressing
     58+ entity types, 920+ live instances (austinsays-platform)
     ORDER_INTENT (0x200) minting in execution scaffold

✅ T10 meta.role tagging — fact/analysis/opinion/counter
     Across HN/Reddit/Farcaster ingesters

✅ SPOCTALK — inter-node message bus
     9 endpoints, 33/33 tests, 7.6x bandwidth reduction

⚠️  BUILT BUT DEGRADED
───────────────────────────────────────────────────────────
⚠️  PARITY_SESSION — set to "privy.predictparity.com" (domain name, NOT a JWT)
     Should be: eyJ... (100+ char JWT from privy-session cookie)
     Impact: harvester runs price-only, cannot submit real intents
     Fix: predictparity.com → DevTools → Application → Cookies
          Copy 'privy-session' value → paste into .env

⚠️  Paper stats stale — last_scan_at: 2026-04-27 21:12:23
     (12+ hours ago, harvester may not be ingesting properly)

❌  NOT YET BUILT
───────────────────────────────────────────────────────────
❌  poly_trader.py — not running on Mac Mini
     Needs: SSH to rentamacs-mac-mini-4.tail7ca8d7.ts.net
     Start: python scripts/poly_trader.py

❌  Real money deployment
     Bank → Coinbase ACH → allocate:
       $45  → Kalshi
       $35  → Base USDC (x402 float)
       $20  → Anthropic API
       $30  → Reserve
     Requires: fund accounts manually

❌  Electron service app
     Spec: harvester + secrets vault + headless Chrome + Claude AI
     Status: not started

❌  GH corpus CSV
     Spec: all gists + repos via gh CLI → ES.exe-indexed CSV
           with Ghost Catalog fields (file_id, description, category,
           agent_id, agent_model, created_at, url, stack)
     Status: not started

❌  GBrain Phase 4
     gbrain apply-migrations --yes
     gbrain import ~/somaco_brain/ --no-embed
     gbrain embed --stale

CRITICAL BLOCKER: PARITY_SESSION JWT

CURRENT VALUE (broken):
  PARITY_SESSION=privy.predictparity.com    ← this is a domain name

WHAT IT SHOULD BE:
  PARITY_SESSION=eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9...  (200+ chars)

HOW TO FIX (2 minutes):
  1. Open Chrome → https://predictparity.com
  2. Sign in to your account
  3. Press F12 → Application tab → Cookies → https://predictparity.com
  4. Find cookie named: privy-session
  5. Copy the Value field (starts with eyJ)
  6. Edit: D:\somacosf\outputs\hormuz_convergence_harvester\.env
     Change: PARITY_SESSION=privy.predictparity.com
     To:     PARITY_SESSION=eyJhbGciO....<paste value>
  7. Restart harvester: run_harvester.bat

WITHOUT THIS: harvester is price-only, no trade intents reach PredictParity
WITH THIS:    harvester becomes a full signal → intent → order pipeline

FUNDING ALLOCATION (PENDING)

  Total budget target: ~$130

  ┌─────────────────────────────────────────────────────┐
  │  Platform          Amount   Purpose                  │
  ├─────────────────────────────────────────────────────┤
  │  Kalshi            $45      US-regulated predictions │
  │  Base USDC (x402)  $35      On-chain signal payments │
  │  Anthropic API     $20      Claude inference         │
  │  Reserve           $30      Buffer                   │
  └─────────────────────────────────────────────────────┘

  Flow: Bank → Coinbase ACH (2-3 days) → split above
  Coinbase: deposit first, USDC bridge to Base L2

SIGNAL FLOW (COMPLETE PIPELINE)

  Polymarket (gamma API)
        │
        ▼ every 300s
  parity_harvester.py (OMEN-01)
        │  price[YES/NO], liquidity, volume
        │  HARVESTER_UUID header
        ▼
  /api/signals/hormuz/ingest  (somacosf.com)
        │
        ├─► SQLite: signals table
        │   (market_id, price_yes, price_no, liq, volume, ts, uuid)
        │
        └─► /api/forecast  (inference layer)
                │  compares price vs model probability
                │  edge = |model_p - market_p|
                │  kelly = bankroll × edge / (1-edge)
                ▼
            ORDER_INTENT UUID (0x200 type)
                │  minted if edge > threshold
                │  stored: intents table
                ▼
            [BLOCKED: no PARITY_SESSION JWT]
                │
                ▼ (when unblocked)
            PredictParity API — place limit order
                │
                ▼
            POSITION_TRACK UUID (0x201)
            tx_hash stored, P&L tracked

ACTIVE MARKET WATCHLIST

  Market ID  │ Question                              │ Status
  ───────────┼───────────────────────────────────────┼──────────
  559651     │ Xi Jinping out before 2027?           │ Active
  560317     │ Putin out as President by Dec 31?     │ Active
  540844     │ Bitcoin hits $1M before GTA VI?       │ Active
  540843     │ China invades Taiwan before GTA VI?   │ Active
  824952     │ MicroStrategy sells BTC by Dec 31?    │ Active
  540819     │ Jesus Christ returns before GTA VI?   │ Active
  553824     │ Carolina Hurricanes win 2026 NHL Cup? │ Active
  553827     │ Dallas Stars win 2026 Stanley Cup?    │ Active
  540820     │ Trump out before GTA VI?              │ Active
  540816     │ Russia-Ukraine Ceasefire before GTA VI│ Active

  Previous Hormuz markets (resolved/inactive) replaced 2026-04-28

VERCEL DEPLOYMENT HISTORY (LAST 10)

  9ccee1a  feat(intelligence): /intelligence + /market-lab + UUID chip v2
  643fa1e  feat(dashboard): v2 wallet health grid + trading dashboard
  b58447a  fix(gyst): rand42 → deterministic SHA-256 content hash
  c5c665d  fix(dashboard): C.surface -> C.panel  ← CURRENT PROD
  b35d248  feat(dashboard): /traders/dashboard
  4ac3892  feat(execution): ORDER_INTENT UUID minting, Kalshi signals
  1e8ebea  fix(auth): poly/* endpoints → PUBLIC_API allow-list
  21b1757  fix(middleware): allow harvester + trader ingest routes
  7f4a918  feat(harvester): global market feed + elite wallet discovery
  199443e  feat(spoctalk): OOB inter-agent message bus via Turso/HTTP

FILES MODIFIED THIS SESSION

  D:\somacosf\outputs\hormuz_convergence_harvester\
    log_server.py          ← REWRITTEN: ThreadingHTTPServer, SSE, market prices,
                                         platform stats, UUID badges, paper PnL
                             FIXED 2026-04-28: was hanging all HTTP requests
    log_server.py.bk       ← original backup (pre-rewrite)
    run_harvester.bat      ← UPDATED: auto-starts log_server before harvester
    run_harvester.bat.bk   ← original backup
    signals/parity_signals.py ← UPDATED: 10 active Polymarket markets

  D:\somacosf\outputs\somacosf-platform\
    .env.local             ← AWAL_WALLET_ADDRESS set for x402
    middleware.ts          ← poly/* routes marked public
    app/api/poly/stats/    ← paper trading stats endpoint
    app/api/poly/analyze/  ← x402-gated signal analysis

NEXT ACTIONS (PRIORITY ORDER)

  1. [5 min] GET PARITY_SESSION JWT
     predictparity.com → F12 → Cookies → privy-session → copy → .env

  2. [15 min] RESTART HARVESTER
     run_harvester.bat (after JWT set)
     Verify: log shows "session=VALID" not "price-only"

  3. [30 min] FUND ACCOUNTS
     Bank ACH → Coinbase → Base USDC + Kalshi + Anthropic

  4. [2 hours] ELECTRON SERVICE APP
     Spec in summary: harvester + secrets vault + headless Chrome + Claude

  5. [1 hour] GH CORPUS CSV
     gh gist list --limit 300 + gh repo list SoMaCoSF --limit 300
     → ES.exe-indexed CSV with Ghost Catalog fields

  6. [30 min] GBrain Phase 4
     gbrain apply-migrations + import somaco_brain + embed --stale

Generated: 2026-04-28 | SOMACOSF // OMEN-01 | somaco_protocol@proton.me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment