How daniellegons-afk/it-incident-simulator works
This is a small command-line IT incident-response simulator. A trainee responds to a randomly selected incident scenario; the program replies through an AWS Bedrock-backed engineer persona, falling back to scripted responses if the model call fails, then scores checkpoint coverage and order. The excerpts show the main workflow, but also contain apparent runtime issues in the model request and response handling; the graph describes the intended calls visible in code, not guaranteed successful execution.
Main entry points: sim.js CLI Simulator · bedrock.mjs Bedrock Client · persona.mjs Engineer Persona · scenarios.mjs Incident Scenarios
Components 7
Conversation
- CLI Simulator
sim.js - Engineer Persona
persona.mjs - Bedrock Client
bedrock.mjs
Scenario Content
- Incident Scenarios
scenarios.mjs
Assessment
- Checkpoint Grader
grader.mjs
Other components
- Trainee
- AWS Bedrock
Connections 8
- Trainee → CLI Simulator: submits responses
sim.js - CLI Simulator → Incident Scenarios: selects scenario
sim.js - CLI Simulator → Engineer Persona: builds prompt
sim.js - CLI Simulator → Bedrock Client: requests reply
sim.js - Bedrock Client → AWS Bedrock: sends request
bedrock.mjs - Bedrock Client → CLI Simulator: returns reply
sim.js - CLI Simulator → Checkpoint Grader: checks checkpoints
sim.js - CLI Simulator → Trainee: prints replies and score
sim.js