# Launch all contract tests together:
Task: "Contract test IUniversalHttpClient.request() in tests/contract/httpClient.contract.test.ts"
Task: "Contract test IUniversalHttpClient.batchRequest() in tests/contract/httpClientBatch.contract.test.ts"
Task: "Contract test IUniversalHttpClient.registerPlatform() in tests/contract/platformRegistration.contract.test.ts"
Task: "Contract test IPlatformAdapter.request() for all platforms in tests/contract/platformAdapter.contract.test.ts"
Task: "Contract test IPlatformAdapter.prepareRequest() authentication in tests/contract/platformAuth.contract.test.ts"
Task: "Contract test ProxyConfig functionality in tests/contract/proxyConfig.contract.test.ts"
Integration Tests (T011-T014)
# Launch all integration tests together:
Task: "Integration test scenario 1: multi-platform balance query in tests/integration/multiPlatformBalance.test.ts"
Task: "Integration test scenario 2: platform-specific orders in tests/integration/platformOrders.test.ts"
Task: "Integration test scenario 3: proxy configuration scenarios in tests/integration/proxyScenarios.test.ts"
Task: "Integration test scenario 4: performance monitoring in tests/integration/performanceMonitoring.test.ts"
Type Definitions (T015-T019)
# Launch all type definition tasks together:
Task: "HttpClient core entity types in src/types/httpClient.ts"
Task: "PlatformAccount and authentication types in src/types/platformAdapter.ts"
Task: "HTTPRequest and HTTPResponse types in src/types/common.ts"
Task: "ProxyConfig and proxy-related types in src/types/common.ts"
Task: "Error handling types in src/types/common.ts"
Platform Adapters (T023-T025)
# Launch all platform adapter implementations together:
Task: "PacificaAdapter implementation in src/adapters/pacifica/PacificaAdapter.ts"
Task: "AsterAdapter implementation in src/adapters/aster/AsterAdapter.ts"
Task: "BinanceAdapter implementation in src/adapters/binance/BinanceAdapter.ts"
Unit Tests (T034-T036)
# Launch all unit tests together:
Task: "Unit tests for proxy rotation in tests/unit/proxyRotation.test.ts"
Task: "Unit tests for error handling in tests/unit/errorHandling.test.ts"
Task: "Unit tests for connection pooling in tests/unit/connectionPool.test.ts"
Task Implementation Guidelines
Setup Tasks (T001-T004)
Integrate with existing project structure in src/
Ensure TypeScript configuration supports new directories
Use existing Jest configuration and testing infrastructure
Maintain compatibility with current build process
Contract Tests (T005-T010)
Import interface definitions from contracts/ documents
Write tests that MUST FAIL initially (no implementation exists)
Cover all public methods defined in http-client.contract.md and platform-adapter.contract.md
Test proxy configuration scenarios from quickstart.md
Use existing testing patterns from the codebase
Type Definitions (T015-T019)
Implement interfaces from contracts/ exactly as specified
Include all entities from data-model.md (6 core entities)
Support TypeScript strict mode compliance
Organize types logically across httpClient.ts, platformAdapter.ts, and common.ts files
Platform Adapters (T023-T025)
Implement IPlatformAdapter interface exactly
Integrate with libs/credential-manager for authentication
Support platform-specific authentication: Ed25519 (Pacifica), EIP-191 (Aster), HMAC-SHA256 (Binance)
Include platform-specific error mapping as defined in contracts
Use existing httpClient.ts as reference for HTTP implementation patterns
Integration Tests (T011-T014)
Validate all 4 quickstart.md scenarios work end-to-end
Test with real API endpoints (as specified in plan.md constitution check)
Include performance benchmarks (<100ms response time)
Verify extensive proxy switching scenarios from quickstart.md
Cover proxy pool, failover, and health checking functionality
Advanced Features (T026-T029)
Implement proxy pool management with round-robin, health checks, and failover
Support connection pooling for performance optimization
Provide comprehensive health monitoring across all platforms
Enable batch request processing with concurrency control
Validation Checklist
GATE: Checked before task completion
All contracts (2 files) have corresponding tests (T005-T010)
All entities (6 core entities) have type definitions (T015-T019)
All tests come before implementation (T005-T014 before T015+)