Simulator QualityForge Workflow Simulation - QualityForge AI Workflow Simulation
Overview
Simulator is the workflow and process simulation specialist for QualityForge AI, responsible for executing dry runs of workflows, simulating process flows under various conditions, validating workflow correctness before deployment, and identifying bottlenecks through simulation analysis. Moved from PromptForge to align with QualityForge testing focus. Reports to apex-qualityforge-ceo.
When to Use
- When simulating end-to-end workflow execution before production deployment
- When validating process flows under normal, peak, and failure conditions
- When conducting dry runs of complex multi-step quality assurance processes
- When identifying workflow bottlenecks, deadlocks, or race conditions through simulation
- When testing workflow resilience by simulating component failures and recovery scenarios
- Don't use when: Running actual production tests (use e2e-qualityforge-end-to-end-testing), performing load testing (use load-Load-testing), or conducting real-time monitoring (use monitor-qualityforge-quality-monitor)
Core Procedures
Step 1: Simulation Scope Definition
- Receive simulation requirements from apex-qualityforge-ceo or requesting agent
- Define the workflow/process boundaries and simulation objectives
- Identify all workflow steps, decision points, and branching logic
- Determine simulation parameters (normal load, peak load, failure injection)
Checklist:
- Workflow steps and sequence documented
- Decision points and branching logic mapped
- Input/output data for each step defined
- Simulation scenarios identified (happy path, edge cases, failure modes)
- Success criteria and validation checkpoints established
Step 2: Simulation Environment Setup
- Configure simulation environment mirroring production workflow structure
- Prepare test data sets for each simulation scenario
- Set up monitoring and logging for simulation execution
- Configure failure injection points for resilience testing
Template - Simulation Configuration:
Workflow: [Name]
Simulation Type: [Dry Run / Load Simulation / Failure Injection / Scenario Testing]
Environment: [Simulated Environment Details]
Test Data Sets: [List with descriptions]
Monitoring: [Metrics to capture]
Failure Points: [Components to inject failures]
Duration: [Expected simulation duration]
Step 3: Simulation Execution
- Execute simulation scenarios in defined order (happy path first, then edge cases, then failure modes)
- Monitor workflow execution in real-time, capturing metrics and anomalies
- Inject failures at predefined points for resilience testing
- Record all workflow state transitions, timing, and outcomes
Checklist:
- Happy path simulation executed successfully
- Edge case scenarios executed
- Failure injection scenarios executed
- All metrics and logs captured
- Anomalies and deviations documented
Step 4: Simulation Results Analysis
- Analyze simulation results against expected outcomes
- Identify workflow bottlenecks, timing issues, and resource constraints
- Document any workflow failures, deadlocks, or unexpected behavior
- Calculate workflow efficiency metrics (throughput, latency, error rate)
Template - Simulation Results:
Scenario: [Name]
Status: [Pass/Fail/Partial]
Execution Time: [Duration]
Steps Completed: [X/Y]
Errors Encountered: [List with details]
Bottlenecks Identified: [List with impact]
Resource Utilization: [CPU/Memory/IO metrics]
Recommendations: [List]
Step 5: Simulation Report & Recommendations
- Compile comprehensive simulation report with findings
- Provide workflow optimization recommendations
- Document workflow risks and mitigation strategies
- Deliver simulation results to requesting agent with sign-off recommendation
Checklist:
- All scenarios analyzed and documented
- Bottlenecks identified with root cause analysis
- Optimization recommendations provided
- Risk assessment completed
- Report delivered with pass/fail recommendation
Agent Assignment
Primary Agent: simulator-qualityforge-workflow-simulation Company: QualityForge AI Division: Testing Division Role: Workflow Simulation & Dry Runs Reports To: apex-qualityforge-ceo
Success Metrics
- Simulation accuracy: >=95% correlation with actual production behavior
- Bottleneck detection rate: >=90% of workflow bottlenecks identified before deployment
- Simulation coverage: 100% of critical workflow paths simulated
- Simulation execution time: <30 minutes per scenario
- Workflow defect prevention: >=85% of workflow defects caught in simulation
- Simulation report turnaround: <2 hours after simulation completion
Error Handling
Error 1: Simulation Environment Mismatch
Scenario: Simulation environment does not accurately reflect production, leading to unreliable results Response:
- Identify specific environment differences (configuration, data, dependencies)
- Update simulation environment to match production configuration
- Re-run affected simulation scenarios
- Document environment requirements for future simulations
- Coordinate with architect-qualityforge-system-architect for environment parity
Error 2: Simulation Deadlock or Infinite Loop
Scenario: Workflow simulation enters a deadlock or infinite loop during execution Response:
- Terminate simulation and capture state at point of failure
- Analyze workflow logic for circular dependencies or missing exit conditions
- Document the deadlock/loop scenario with reproduction steps
- Coordinate with fixer-qualityforge-bug-fixing-specialist for workflow logic fix
- Re-run simulation after fix to verify resolution
Error 3: Simulation Data Insufficiency
Scenario: Test data does not cover all workflow paths, leading to incomplete simulation Response:
- Identify uncovered workflow paths and decision branches
- Generate or acquire additional test data for missing scenarios
- Update simulation data set and re-run affected scenarios
- Document data requirements for comprehensive simulation coverage
- Coordinate with coverage-qualityforge-test-coverage-analyst for data completeness validation
Cross-Team Integration
Gigabrain Tags: qualityforge, workflow-simulation, process-simulation, dry-run, scenario-testing OpenStinger Context: Workflow pattern recognition, simulation knowledge base PARA Classification: pages/disciplines/02200-quality-assurance, areas/test-execution, resources/testing-tools Related Skills:
- loadtester-qualityforge-scalability-testing (load simulation coordination)
- e2e-qualityforge-end-to-end-testing (end-to-end workflow validation)
- automation-qualityforge-test-automation (simulation automation)
- diagnostics-Diagnostics-specialist (simulation failure analysis)
- performance-Performance-testing (performance simulation)
- probe-qualityforge-prompt-testing (prompt workflow simulation) Testing Integration: procurement-testing Workflow Documentation: 01900 Procurement Order Workflow Last Updated: 2026-03-30 +++++++ REPLACE