Files
Agentswarm/test-data/complexity-dataset.json
T
2026-06-08 17:32:34 +08:00

309 lines
11 KiB
JSON

[
{
"task": "Fix syntax error in main.py line 42",
"expectedAgents": 1,
"complexity": "low",
"reasoning": "Single file, single line fix. No dependencies or side effects."
},
{
"task": "Add type hints to the calculate_total function",
"expectedAgents": 1,
"complexity": "low",
"reasoning": "Single function modification in one file."
},
{
"task": "Update README.md with installation instructions",
"expectedAgents": 1,
"complexity": "low",
"reasoning": "Documentation update, no code changes."
},
{
"task": "Rename variable 'data' to 'user_data' in auth.py",
"expectedAgents": 1,
"complexity": "low",
"reasoning": "Simple refactoring in single file."
},
{
"task": "Fix import statement missing requests library",
"expectedAgents": 1,
"complexity": "low",
"reasoning": "Single line addition at top of file."
},
{
"task": "Add docstring to the process_payment function",
"expectedAgents": 1,
"complexity": "low",
"reasoning": "Documentation addition to single function."
},
{
"task": "Remove unused import statements from utils.py",
"expectedAgents": 1,
"complexity": "low",
"reasoning": "Simple cleanup in one file."
},
{
"task": "Change default timeout from 30 to 60 seconds",
"expectedAgents": 1,
"complexity": "low",
"reasoning": "Single constant value change."
},
{
"task": "Fix indentation error in the for loop",
"expectedAgents": 1,
"complexity": "low",
"reasoning": "Formatting fix in single location."
},
{
"task": "Add missing return statement in validate_email function",
"expectedAgents": 1,
"complexity": "low",
"reasoning": "Single line addition to fix logic error."
},
{
"task": "Refactor the user authentication module to use JWT tokens",
"expectedAgents": 3,
"complexity": "medium",
"reasoning": "Affects multiple functions in auth module, requires updating login/logout flows and adding token validation."
},
{
"task": "Add input validation to all API endpoints",
"expectedAgents": 5,
"complexity": "medium",
"reasoning": "Multiple endpoints across different route files need validation logic."
},
{
"task": "Implement caching layer using Redis for database queries",
"expectedAgents": 4,
"complexity": "medium",
"reasoning": "Requires Redis setup, cache invalidation logic, and updating multiple query functions."
},
{
"task": "Add logging to all service layer functions",
"expectedAgents": 3,
"complexity": "medium",
"reasoning": "Multiple service files need consistent logging patterns."
},
{
"task": "Migrate database from SQLite to PostgreSQL",
"expectedAgents": 6,
"complexity": "medium",
"reasoning": "Schema migration, connection updates, query syntax changes across multiple files."
},
{
"task": "Implement rate limiting for API endpoints",
"expectedAgents": 3,
"complexity": "medium",
"reasoning": "Middleware implementation and configuration for multiple routes."
},
{
"task": "Add error handling to all async functions",
"expectedAgents": 4,
"complexity": "medium",
"reasoning": "Multiple async functions across different modules need try-catch blocks."
},
{
"task": "Refactor monolithic app.py into separate route modules",
"expectedAgents": 5,
"complexity": "medium",
"reasoning": "Code organization across multiple new files with proper imports."
},
{
"task": "Add pagination to all list endpoints",
"expectedAgents": 4,
"complexity": "medium",
"reasoning": "Multiple endpoints need offset/limit logic and response formatting."
},
{
"task": "Implement user role-based access control",
"expectedAgents": 5,
"complexity": "medium",
"reasoning": "Decorator implementation, role checks across multiple endpoints, database schema update."
},
{
"task": "Add comprehensive unit tests to the entire project",
"expectedAgents": 12,
"complexity": "high",
"reasoning": "Testing all modules, functions, edge cases. Requires understanding entire codebase and writing hundreds of test cases."
},
{
"task": "Refactor entire codebase to follow clean architecture principles",
"expectedAgents": 15,
"complexity": "high",
"reasoning": "Major restructuring: separate layers (domain, application, infrastructure), update all imports, maintain functionality."
},
{
"task": "Implement microservices architecture splitting monolith into 5 services",
"expectedAgents": 18,
"complexity": "high",
"reasoning": "Service separation, API contracts, inter-service communication, deployment configs, data consistency."
},
{
"task": "Add end-to-end tests for all user workflows",
"expectedAgents": 10,
"complexity": "high",
"reasoning": "Multiple user journeys, test setup, teardown, data fixtures, UI interactions."
},
{
"task": "Migrate from REST API to GraphQL",
"expectedAgents": 14,
"complexity": "high",
"reasoning": "Schema definition, resolver implementation, client updates, query optimization across entire API."
},
{
"task": "Implement real-time features using WebSockets",
"expectedAgents": 8,
"complexity": "high",
"reasoning": "WebSocket server setup, connection management, event broadcasting, client integration across features."
},
{
"task": "Add internationalization support for 10 languages",
"expectedAgents": 9,
"complexity": "high",
"reasoning": "Extract all strings, translation files, locale switching, date/number formatting across entire app."
},
{
"task": "Implement comprehensive security audit fixes",
"expectedAgents": 11,
"complexity": "high",
"reasoning": "SQL injection prevention, XSS protection, CSRF tokens, secure headers, input sanitization across all endpoints."
},
{
"task": "Refactor to use async/await throughout the codebase",
"expectedAgents": 13,
"complexity": "high",
"reasoning": "Convert synchronous code to async, update all function signatures, handle async context across entire project."
},
{
"task": "Build CI/CD pipeline with automated testing and deployment",
"expectedAgents": 7,
"complexity": "high",
"reasoning": "Pipeline configuration, test automation, deployment scripts, environment management, rollback strategy."
},
{
"task": "Add a new user registration endpoint",
"expectedAgents": 2,
"complexity": "low",
"reasoning": "Single endpoint with validation and database insert."
},
{
"task": "Update email template for password reset",
"expectedAgents": 1,
"complexity": "low",
"reasoning": "Template file modification only."
},
{
"task": "Add environment variable for API key",
"expectedAgents": 1,
"complexity": "low",
"reasoning": "Config file update and usage in one location."
},
{
"task": "Fix broken link in navigation menu",
"expectedAgents": 1,
"complexity": "low",
"reasoning": "Single URL correction in template."
},
{
"task": "Add favicon to the website",
"expectedAgents": 1,
"complexity": "low",
"reasoning": "Add file and reference in HTML head."
},
{
"task": "Implement search functionality across user profiles",
"expectedAgents": 3,
"complexity": "medium",
"reasoning": "Search endpoint, query optimization, result formatting."
},
{
"task": "Add file upload feature with validation",
"expectedAgents": 3,
"complexity": "medium",
"reasoning": "Upload endpoint, file validation, storage handling, error cases."
},
{
"task": "Implement email notification system",
"expectedAgents": 4,
"complexity": "medium",
"reasoning": "Email service integration, template system, queue management, multiple trigger points."
},
{
"task": "Add OAuth2 authentication with Google and GitHub",
"expectedAgents": 5,
"complexity": "medium",
"reasoning": "OAuth flow implementation, provider integration, user linking, token management."
},
{
"task": "Create admin dashboard with analytics",
"expectedAgents": 6,
"complexity": "medium",
"reasoning": "Dashboard UI, data aggregation queries, charts, multiple admin views."
},
{
"task": "Optimize database queries for performance",
"expectedAgents": 5,
"complexity": "medium",
"reasoning": "Identify slow queries, add indexes, refactor N+1 queries across multiple models."
},
{
"task": "Implement data export feature in CSV and JSON formats",
"expectedAgents": 3,
"complexity": "medium",
"reasoning": "Export endpoints, format serialization, large dataset handling."
},
{
"task": "Add two-factor authentication",
"expectedAgents": 4,
"complexity": "medium",
"reasoning": "TOTP implementation, QR code generation, backup codes, login flow updates."
},
{
"task": "Implement audit logging for all data changes",
"expectedAgents": 6,
"complexity": "medium",
"reasoning": "Audit table design, triggers/hooks across models, query interface, retention policy."
},
{
"task": "Add real-time notifications using Server-Sent Events",
"expectedAgents": 4,
"complexity": "medium",
"reasoning": "SSE endpoint, event broadcasting, client connection management, notification types."
},
{
"task": "Rewrite frontend from jQuery to React",
"expectedAgents": 16,
"complexity": "high",
"reasoning": "Complete frontend rewrite, component architecture, state management, API integration, routing."
},
{
"task": "Implement distributed tracing with OpenTelemetry",
"expectedAgents": 8,
"complexity": "high",
"reasoning": "Instrumentation across all services, trace context propagation, exporter configuration, dashboard setup."
},
{
"task": "Add machine learning model for recommendation system",
"expectedAgents": 10,
"complexity": "high",
"reasoning": "Model training pipeline, feature engineering, inference API, model versioning, A/B testing."
},
{
"task": "Implement event sourcing architecture",
"expectedAgents": 14,
"complexity": "high",
"reasoning": "Event store setup, aggregate design, event handlers, projections, migration from current state."
},
{
"task": "Build mobile app with React Native",
"expectedAgents": 12,
"complexity": "high",
"reasoning": "Mobile app setup, screen components, navigation, API integration, platform-specific features, testing."
},
{
"task": "Implement comprehensive monitoring and alerting",
"expectedAgents": 9,
"complexity": "high",
"reasoning": "Metrics collection, alert rules, dashboard creation, on-call integration, SLO definition."
}
]