Implementation phases
The eleven build phases from foundation to controlled production — a single, sequenced source of truth, with live build progress.
The build progresses through eleven phases, centered on the early-token pipeline. This page is the single source of truth for the sequence — the landing timeline reads the same data. Trading only begins once detection, security, features and agents exist, and even then through shadow → paper → minimal capital.
In progress: Phase 3 · Integrations & observability foundation
The phases
- Phase 1 · FoundationMonorepo, web app, Convex, FastAPI, VPS + Traefik, CI/CD, logs & monitoring, tables
- Phase 2 · Application shell & consoleAuthenticated app shell: collapsible grouped sidebar, profile + logout, account/settings, dashboard & charts, dark mode
- Phase 3 · Integrations & observability foundationExternal connectors, secrets, provider budgets, AI/API usage logs, model registry, cost dashboards
- Phase 4 · Early token detectionChain / launchpad / pool collectors, first-liquidity & first-trade, lifecycle engine, tables & Parquet
- Phase 5 · Security & sellabilityDeterministic scanners, sell simulation, hard blockers — before any AI synthesis
- Phase 6 · Quantitative core & featuresDeterministic versioned formula engine, feature registry, Signal/Risk scores
- Phase 7 · Agent researchLangGraph workflows, launch/wallet/social agents, memory, debate & risk, AI score
- Phase 8 · Model routing & cost governanceDeterministic task detection, per-task benchmarks, validated hybrid routing, cost caps
- Phase 9 · Shadow explorationHypothetical decisions on live data, early snapshots, multi-window outcomes, weekly reports
- Phase 10 · Paper tradingRealistic event-driven execution simulation + strategy competition
- Phase 11 · Controlled productionIsolated execution, minimal capital, kill switch, reconciliation, human governance
Phase detail
Phase 1 · Foundation
Monorepo, web app, Convex, FastAPI, VPS + Traefik, CI/CD, logs & monitoring, tables
- pnpm workspaces + Turborepo
- Shared ESLint / TypeScript / Prettier presets (packages/config)
- ESLint architecture boundaries (feature isolation)
- Conventional Commits + commitlint + lint-staged + Husky
- SSR + file-based routing
- Landing, auth and docs surfaces (~60 docs pages: sidebar, search, ToC scrollspy)
- The "island" design system (Tailwind v4 + CSS tokens)
- Control plane: schema, queries, mutations, actions
- Auth (@convex-dev/better-auth) isolated behind features/auth + requireUser
- Generated API as the only frontend ↔ backend contract
- FastAPI service (/health, /ready) wired to Redis on the private clawlas_data network
- Shared Zod package (packages/shared) as the single source of types
- SQLite (local state), Redis (streams/queue), demo tasks table (reference slice)
- Docker Compose (clawlas project, isolated networks/volumes)
- Traefik reverse proxy on the Hostinger VPS (*.clawlas.com, TLS)
- CI/CD on push → main via GHCR (ci.yml → deploy.yml → deploy.sh)
- Structured logs
- Monitoring (service health, metrics)
- Off-host restic backups as the migration unit
Phase 2 · Application shell & console
Authenticated app shell: collapsible grouped sidebar, profile + logout, account/settings, dashboard & charts, dark mode
- Routed authenticated area (/app) gated by the auth boundary
- Collapsible icon rail + grouped sidebar nav, sticky header, mobile drawer
- User profile block (avatar, name, role) with Log out; role-gated nav items
- Identity (editable display name, verified email badge, role)
- Preferences (theme) and Security (change password, active sessions with revoke)
- Usage & Subscription stubs pending cost collection (Phase 3) and billing
- Sign out from the account footer
- Dashboard with stat cards and charts (ECharts + Lightweight Charts)
- SSR-safe chart wrappers reused across pages
- Console primitives: Button/Spinner in packages/ui; Badge, Card, Field, StatCard app-local until reused thrice
- Theme provider + dark-mode toggle (light/dark tokens already authored)
Phase 3 · Integrations & observability foundation
External connectors, secrets, provider budgets, AI/API usage logs, model registry, cost dashboards
- Connector / VenueAdapter layer driven by a discovery-source catalogue
- Chain RPC clients (Solana / EVM) and data providers
- Rate-limit handling, retries and provider fallback
- Per-service credential management (least privilege, read-only where possible)
- No execution keys at this stage
- Secrets live Convex-side / in env — never in code, prompts or logs
- AI usage logs and API usage logs
- Cash-cost and allocated-cost formulas
- Provider budgets and execution-cost estimates
- Versioned provider/model catalogue (capabilities, pricing, limits)
- No routing policy yet — that lands in Phase 8
- Cost, data-freshness and service/source health dashboards
- Alert thresholds (provider error rate, max API spend, stale data)
Phase 4 · Early token detection
Chain / launchpad / pool collectors, first-liquidity & first-trade, lifecycle engine, tables & Parquet
- collector-solana-launches, collector-evm-contracts, collector-dex-pools
- collector-launchpads, collector-liquidity, collector-cex-listings
- One source failing must not stop the others
- Contract deployment, mint, pool creation, bonding curve
- First liquidity, first swap, migration init/complete
- CEX listing/activation, abnormal transaction/liquidity growth
- Event normalization → token identity resolution (chain + contract)
- Lifecycle engine: DISCOVERED → CONTRACT_DEPLOYED → WAITING_FOR_LIQUIDITY → EARLY_TRADABLE → LAUNCHPAD_ACTIVE → MIGRATING → DEX_ACTIVE → CEX_* → ESTABLISHED / INACTIVE / FAILED / RUGGED
- Tables tokens / token_contracts / pools / events (immutable events) + lifecycle timestamps
- Parquet archive + DuckDB queries, data-maturity levels (MINIMAL / EARLY / PARTIAL / MATURE)
- Detection dashboard (live flow, lifecycle, data health)
Phase 5 · Security & sellability
Deterministic scanners, sell simulation, hard blockers — before any AI synthesis
- Contract/creator verification, token-program type
- Mint / freeze / upgrade authority, transfer restrictions, blacklist / pausable
- Hidden or dynamic taxes, buy/sell tax, honeypot detection
- Sell simulation + realistic sell quote
- Liquidity size, lock/burn status, LP concentration, pool age
- Holder concentration, deployer holdings, wash-trading signals
- A failed/blocked check prevents automatic entry regardless of score (machine-readable rejection codes)
- Position size bounded by executable liquidity, not reported market cap
Phase 6 · Quantitative core & features
Deterministic versioned formula engine, feature registry, Signal/Risk scores
- Versioned, tested formula catalogue (returns, PnL, ATR, volatility, momentum, breakout, liquidity, slippage, performance)
- Risk-first position sizing
- Invariant: the AI never computes an authoritative number
- Launch / liquidity / wallet / transaction feature groups
- Early momentum
- Adaptive observation cadence (T+5s … T+30d, accelerating on events)
- Signal Score and Risk Score (deterministic)
- Historical datasets
- Initial backtests (no look-ahead, realistic costs, walk-forward)
Phase 7 · Agent research
LangGraph workflows, launch/wallet/social agents, memory, debate & risk, AI score
- LangGraph orchestration
- Launch Analysis / Wallet / Social agents (evidence, never the sole trigger)
- The AI never executes (LLM-never-executes path)
- SQLite memory retrieval (+ vector memory)
- Structured research reports
- Debate & risk workflows, AI Score / Memory Score
Phase 8 · Model routing & cost governance
Deterministic task detection, per-task benchmarks, validated hybrid routing, cost caps
- Deterministic task detection before any model call
- Low-cost cloud baseline, local/OSS model in shadow mode
- Local-first routing only after benchmark validation, with one controlled escalation path
- Task-specific quality and latency benchmarks
- Per-task step, latency and cost ceilings
Phase 9 · Shadow exploration
Hypothetical decisions on live data, early snapshots, multi-window outcomes, weekly reports
- Hypothetical decisions on live data (Ignore / Watch / Simulate / Review)
- Detailed early snapshots, multi-window outcome tracking
- Strategy comparison and weekly knowledge reports
Phase 10 · Paper trading
Realistic event-driven execution simulation + strategy competition
- Event-driven simulator with realistic assumptions: slippage, latency, failed tx, gas, partial fills, emergency exits
- Simulated positions and strategy competition
- Performance reporting and reconciliation of theoretical fills
Phase 11 · Controlled production
Isolated execution, minimal capital, kill switch, reconciliation, human governance
- Isolated execution credentials (trading-only, withdrawals off, IP-restricted, code-only)
- Minimal capital, strict exposure limits, continuous sellability
- Global kill switch, full reconciliation, append-only audit log
- Human governance — the platform proposes, the human governs