How bhargvv/ai_powered_cp_stress_tester works
This is an AI-powered competitive-programming stress tester. A user submits a problem, language, test count, and solution in the React UI; the backend builds workflow state, generates a brute-force reference, testcase generator, and executable wrapper, verifies the generated artifacts, then repeatedly compares executions and reports a verdict. ChromaDB memory informs generation and stores learning; Docker execution and the UI’s result views are documented capabilities. Edges reflect shown calls, imports, or README statements; stress-test internals were not sampled.
Main entry points: graph.js Workflow graph · prepare_generation.js AI generation · verify_generation.js Artifact verification · server.js Stress API
Components 14
User interface
- Test interface
frontend/src/App.jsx
Backend entry
- Stress API
backend/server.js
Generation workflow
- Workflow graph
backend/graph.js - AI generation
backend/nodes/prepare_generation.js - Learning memory
backend/memory.js - Tag extraction
backend/utils.js - Workflow routing
backend/nodes/router.js
Verification and execution
- Artifact verification
backend/nodes/verify_generation.js - Python syntax checks
backend/validators.js - Stress comparison
backend/nodes
Other components
- Problem solver
- Gemini model
- Docker sandbox
- ChromaDB service
Connections 16
- Problem solver → Test interface: submits inputs
README.md - Test interface → Stress API: posts test request
frontend/src/App.jsx - Stress API → Workflow graph: streams workflow
backend/server.js - Workflow graph → AI generation: dispatches
backend/graph.js - Workflow graph → Artifact verification: dispatches
backend/graph.js - Workflow graph → Stress comparison: dispatches
backend/graph.js - Workflow graph → Workflow routing: routes through
backend/graph.js - AI generation → Learning memory: loads context
backend/nodes/prepare_generation.js - AI generation → Tag extraction: extracts tags
backend/nodes/prepare_generation.js - AI generation → Gemini model: generates artifacts
README.md - Artifact verification → Python syntax checks: checks syntax
backend/nodes/verify_generation.js - Artifact verification → Learning memory: saves failures
backend/nodes/verify_generation.js - Artifact verification → Stress comparison: passes verified artifacts
README.md - Stress comparison → Docker sandbox: runs code safely
README.md - Learning memory → ChromaDB service: stores and retrieves
backend/memory.js - Stress API → Test interface: returns verdict
backend/server.js