Updated project guidance to reflect V2 foundation completion:
Branch Structure:
- v2-master (production, protected)
- v2-master-dev (development, protected)
- feature/v2-prep (archived, foundation complete)
- feature/v2/* (feature branches from v2-master-dev)
Branch Hierarchy:
v2-master ← v2-master-dev ← feature/v2/*
Updated Sections:
- Project Status: V2 Foundation Complete ✅
- Git Workflow: New branch structure and workflow
- Example Workflow: Updated to use v2-master-dev
- What TO Do: Reflects foundation completion
- Key Files: Added V2 foundation files (100% coverage)
- Current Branches: New section documenting branch structure
- Contact and Resources: Updated with completion status
Workflow:
1. Create feature branch from v2-master-dev
2. Implement with 100% test coverage
3. Run make validate locally
4. PR to v2-master-dev (CI/CD enforces coverage)
5. Merge v2-master-dev → v2-master for production
Foundation Status:
- 3,300+ lines (1,500 implementation, 1,800 tests)
- 100% test coverage (enforced)
- CI/CD fully configured
- Ready for protocol parser implementations
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
- Created MODULARITY_REQUIREMENTS.md with component independence rules
- Created PROTOCOL_SUPPORT_REQUIREMENTS.md covering 13+ protocols
- Created TESTING_REQUIREMENTS.md enforcing 100% coverage
- Updated CLAUDE.md with strict feature/v2/* branch strategy
Requirements documented:
- Component modularity (standalone + integrated)
- 100% test coverage enforcement (non-negotiable)
- All DEX protocols (Uniswap V2/V3/V4, Curve, Balancer V2/V3, Kyber Classic/Elastic, Camelot V2/V3 with all Algebra variants)
- Proper decimal handling (critical for calculations)
- Pool caching with multi-index and O(1) mappings
- Market building with essential arbitrage detection values
- Price movement detection with decimal precision
- Transaction building (single and batch execution)
- Pool discovery and caching
- Comprehensive validation at all layers
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
- Added comprehensive bounds checking to prevent buffer overruns in multicall parsing
- Implemented graduated validation system (Strict/Moderate/Permissive) to reduce false positives
- Added LRU caching system for address validation with 10-minute TTL
- Enhanced ABI decoder with missing Universal Router and Arbitrum-specific DEX signatures
- Fixed duplicate function declarations and import conflicts across multiple files
- Added error recovery mechanisms with multiple fallback strategies
- Updated tests to handle new validation behavior for suspicious addresses
- Fixed parser test expectations for improved validation system
- Applied gofmt formatting fixes to ensure code style compliance
- Fixed mutex copying issues in monitoring package by introducing MetricsSnapshot
- Resolved critical security vulnerabilities in heuristic address extraction
- Progress: Updated TODO audit from 10% to 35% complete
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>