Development Log

The Build Story

41 sessions. 111 source files. 29,740 lines of code. 423+ tests. Built across March 13-22, 2026 with Claude Code as the agent harness.

41

Sessions

111

Files

29.7k

Lines

423+

Tests

Architecture
Deployment
Audit
Optimization
1

Architecture & Full Scaffold

Architecture
  • 12-strategy Darwinian competition model with 3 main strategies x 4 roles
  • Dual-AI architecture: Claude for evolution, Venice AI for execution
  • 3 Solidity contracts (717 LOC) + full agent core, trading layer, chain layer

Click to expand

2

ERC-4626 Vault & React DApp

Deployment
  • ERC-4626 tokenized vault (DarwinVaultV2) -- deposit USDC, receive dvUSDC shares
  • Agent borrow/return pattern with high water mark performance fees
  • Full React DApp: Home, Portfolio, Tournament pages with Wagmi + RainbowKit

Click to expand

3

Full Test Suite & Audit Sprint

Audit
  • 59 tests across 4 modules: performance, circuit-breaker, strategy-manager, paper-engine
  • Proving Ground Rule: strategies must profit in paper before going live
  • Circuit breaker system with 3 independent trip conditions + stale price detection

Click to expand

4

DApp Frontend & Wallet Integration

Architecture
  • Dashboard redesign: dark navy + neon cyan/purple, Press Start 2P + JetBrains Mono fonts
  • Strategy Tournament Leaderboard, Recent Trades Feed, Evolution Timeline
  • Structured conversation log audit trail for hackathon judge review

Click to expand

5

Cost Optimization & Multi-AI Pipeline

Optimization
  • Three-tier loop: 30s rule-based (free), 2min Claude CLI (free), 4h Venice evolution (~$0.30/day)
  • Claude CLI as signal engine via ClaudeCliEngine (Haiku batch eval)
  • Venice API for evolution only -- sponsor showcase at minimal cost

Click to expand

6

IPFS, Filecoin & Sponsor Integrations

Deployment
  • IPFS genome pinning: CID recorded on-chain via PerformanceLog contract
  • Sponsor audit: 6 genuine integrations, 2 skipped as architectural mismatches
  • Verifiable evolution: genome JSON on IPFS -> keccak256 hash -> on-chain match

Click to expand

7

Brutal Audit Sprint

Audit
  • Root cause: RPC 503 -> no snapshots -> empty AI data -> zero buy signals -> no trades
  • Built technical indicators engine: RSI-14, MACD, Bollinger Bands, EMA-9/21
  • Added 4 high-volatility tokens (DEGEN, BRETT, VIRTUAL, HIGHER) + rule-based entry bypass

Click to expand

8

DApp UI/UX Overhaul

Architecture
  • 5-department biological model: Senses, Reflexes, Cortex, Nerves, Marrow
  • Adaptive evolution with 3 triggers: timer, emergency (accuracy < 30%), weight shift (> 20%)
  • Venice AI for Grok/X sentiment scraping, source fitness scoring

Click to expand

9

Live Deployment & Battle Testing

Deployment
  • 3 contracts deployed to Base mainnet, vault funded with 73 USDC
  • 7-division Immune System: Patrol, Antibodies, Thymus, Platelets, Membrane, Lymph, Genome
  • Self-healing engine with fix-then-verify pattern and 12h self-evolution

Click to expand

10

Frontier, Championship & Final Audit

Audit
  • 4 frontier archetypes: Abiogenesis (moonshots), Mitosis (HFT), Cambrian (volatility), Symbiont (whale following)
  • Multi-chain: ChainRegistry for Base, Arbitrum, Optimism with 1inch aggregation
  • Cross-team championship: Team 4 winner competes against Teams 1-3 champion

Click to expand

11

Instinct System

Architecture
  • 5 departments: Senses, Reflexes, Cortex, Nerves, Marrow
  • Multi-timeframe predictions (1m, 5m, 15m, 1h)
  • Adaptive evolution with emergency triggers on accuracy drops

Click to expand

12

Instinct Dashboard UI & Evolution Tuning

Architecture
  • Instinct dashboard with live prediction feeds
  • Source fitness scoring visible per department
  • Evolution cycle acceleration (4h -> 1h during qualification)

Click to expand

13

Immune System

Deployment
  • 7 divisions: Patrol, Antibodies, Thymus, Platelets, Membrane, Lymph, Genome
  • Self-healing with fix-then-verify pattern
  • 12h self-evolution cycle for threshold tuning

Click to expand

14

Frontier System

Architecture
  • 4 archetypes: Abiogenesis, Mitosis, Cambrian, Symbiont
  • ChainRegistry for multi-chain with 1inch aggregation
  • Cross-team championship bracket

Click to expand

15

DApp Deployment

Deployment
  • React SPA deployed at corduroycloud.com/darwinfi/
  • VaultV2 (ERC-4626) integration with deposit/withdraw
  • RainbowKit wallet connect + Base chain

Click to expand

16

VaultV3 Contract & Evolution Enhancements

Audit
  • VaultV3: 1% management fee + 5% performance fee (high water mark)
  • 51 contract tests passing
  • Deploy script ready for mainnet launch

Click to expand

17

Self-Evolution Engine & Frontier Freedom

Architecture
  • Venice AI code generation with git worktree sandboxing
  • Canary deploy with auto-rollback on degradation
  • 18 smoke tests gate every mutation

Click to expand

18

AI Router & Autonomy Gap Closures

Optimization
  • AI Router: Claude -> Ollama/Gemma2 -> rule-based fallback chain
  • Ollama engine for $0 local AI inference
  • Autonomy audit: 40% -> closing 6 critical gaps

Click to expand

19

VaultV4 Security Hardening

Deployment
  • 48-hour timelock on agent/feeRecipient changes
  • 80% maximum borrow ratio with bad debt write-off
  • 80 Solidity tests covering all V4 security features

Click to expand

20

Showcase Site v1

Architecture
  • Next.js 15 with App Router and Tailwind CSS
  • Interactive organism diagram with 6 organs
  • Live vault telemetry polling real API data

Click to expand

21

Lit Protocol Chipotle v3 Integration

Deployment
  • Programmable Key Pair (PKP) minted on Lit naga-dev network
  • IPFS-hosted Lit Action with whitelisted contracts and tokens
  • SwapRouter calls restricted to exactInputSingle and multicall

Click to expand

22

Judge Assessment Framework

Audit
  • 7 judge personas with distinct scoring rubrics
  • Automated HTML email report with score visualization
  • Score tracking across assessment rounds

Click to expand

23

Wave Sprint R1: Score 5.8 to 6.8

Audit
  • 4 parallel worktree agents executing simultaneously
  • Test suite expanded from 325 to 380+ tests
  • Circuit breaker documentation and Lit Protocol docs added

Click to expand

24

Wave Sprint R2: Score 6.8 to 7.7

Audit
  • VaultV4 security hardening (6 audit fixes)
  • DApp UI polish and responsive design
  • Code quality improvements across agent core

Click to expand

25

Wave Sprint R3: Score 7.7 to 8.0

Architecture
  • Darwin chatbot with Claude Haiku SSE streaming
  • Showcase organism diagram interactivity
  • Sponsor integration documentation

Click to expand

26

Wave Sprint R4: Score 8.0 to 8.3

Architecture
  • Self-Evolution Engine smoke tests and canary deploy
  • Live Results page with PnL chart and leaderboard
  • Under the Hood technical deep-dive sections

Click to expand

27

Wave Sprint R5: Score 8.3 to 8.4

Audit
  • Development log expanded to cover all 40 sessions
  • Product page with feature showcase and tech stack
  • Edge case test coverage for vault operations

Click to expand

28

Wave Swarm: 7 Parallel Agents

Deployment
  • 7 parallel worktree agents executing simultaneously
  • Showcase accuracy fixes across all pages
  • Dev log, Notion battle plan, and briefing page

Click to expand

29

Demo Video Pipeline

Architecture
  • ElevenLabs TTS narration with Daniel voice
  • Playwright-based DApp screen recording
  • ffmpeg video composition pipeline

Click to expand

30

Final Sprint: Deadline Day Polish

Optimization
  • Live Results migrated from showcase to DApp
  • Chatbot evolution thinking words
  • Logo spacing and organism diagram readability

Click to expand

What Comes Next

The Frontier bots are hunting across chains. The Immune System is self-healing. The vault is open. DarwinFi is a living financial organism -- and it never stops evolving.