๐ BugMortem โ Digital Incident Morgue & Automated Post-Mortem Studio
"Where dead services come for their autopsy."
BugMortem is an interactive, cyber-gothic digital morgue and automated post-mortem studio for catastrophic software incidents. Instead of panic and finger-pointing in the terminal at 3 AM, BugMortem conducts a forensic, blameless autopsy of production disasters โ featuring a real-time reactive ECG heart monitor, zero-asset procedural audio telemetry with clinical defibrillator resuscitation, an architectural blast radius heatmap, a live chaos engineering sandbox, interactive 5-Whys root-cause trees, automated SRE remediation prescriptions with downloadable Infrastructure-as-Code (IaC), voice forensic verdicts, and one-click incident exports (Markdown, Slack Broadcast & printable A4 PDF Death Certificates).
๐ก Inspiration
Every Site Reliability Engineer (SRE), DevOps lead, and software engineer knows the waking nightmare: production goes down at 3:00 AM, Slack channels ignite into chaotic war rooms, and the terminal vomits an unreadable, 200-line stack trace. The monitor is flatlining, adrenaline is spiking, and teams reflexively devolve into fear, exhaustion, and personal blame.
We asked ourselves: What if diagnosing catastrophic software crashes felt like conducting a high-stakes forensic autopsy in a cyber-gothic operating theater?
What if, instead of cold JSON logs, engineers had:
- An auditory and visual vital signs monitor: A medical ECG that flatlines on P0 outages and sings an emerald recovery pulse upon applying a fix.
- A forensic reconstruction engine: Dissects cursed code side-by-side with clean SRE resilience patterns.
- A blameless investigation protocol: Uncovers systemic architectural root causes rather than blaming the engineer who pushed the commit.
- Instant remediation prescriptions: Generates production-ready Infrastructure-as-Code (IaC) to ensure the system is permanently vaccinated against reinfection.
Thus, BugMortem was born for the Kiroween 2026 hackathon: turning production dread into an engaging, educational, and actionable forensic science.
โก What it does
BugMortem transforms abstract runtime catastrophes into an immersive, end-to-end incident investigation workflow:
1. Seven Canonical Production Nightmares (Interactive Case Studies)
Engineers can explore forensic autopsies across 7 real-world distributed systems disasters:
- ๐ React Hydration Mismatch & DOM Tree Collapse: Dynamic client timestamps colliding with SSR server render trees, triggering full client re-render cascade (P0).
- ๐ PostgreSQL Connection Pool Exhaustion: Unindexed analytics queries exhausting max pool limits on Amazon RDS Aurora, causing cascading HTTP 503 gateway timeouts (P0).
- ๐ Asynchronous Event Loop Starvation & Memory Leak: Unbounded in-memory telemetry buffers blocking the Node.js single thread until out-of-memory (OOM) termination (P0).
- โก Cascading Microservice Timeout & Retry Storm: Aggressive exponential backoff without jitter creating a self-inflicted denial of service across database clusters (P1).
- โก CORS Preflight Authorization Black Hole: Misconfigured API Gateway headers stripping authorization tokens during OPTIONS preflights (P1).
- ๐ Serverless Cold-Start Connection Spike: Lambda instances overwhelming downstream database limits during traffic bursts without connection proxying (P0).
- ๐ฅ AWS S3 โ Lambda Recursive Loop Death Spiral: S3 object trigger without prefix filter causing Lambda to write thumbnails back into the same bucket, spawning 142,000 recursive invocations in 4 minutes and depleting AWS account concurrency (P0).
2. Vital Signs Telemetry, ECG Monitor & Procedural Audio Defibrillator
- Procedural Web Audio Engine: Zero MP3/WAV files (0 KB network overhead). Emits a continuous sinus-rhythm ECG pulse, switches dynamically to a piercing 750 Hz flatline drone on P0 outages, and features a two-stage clinical defibrillator sequence (800 ms capacitor charge sweep 280โ1400 Hz + 250 ms sub-bass thump 120โ35 Hz with white noise chest-contact texture) preceding the triumphant C-major resurrection chord.
- 60 FPS Real-Time Canvas ECG: Dynamic visual electrocardiogram plotting sinus wave pulses, warning arrhythmias, or a flatline baseline tracking active incident severity.
3. Forensic Side-by-Side Code Autopsy
- Cursed Code vs. Resurrected SRE Code: Line-by-line syntax-highlighted diff illustrating the exact anti-pattern that caused the fatality alongside the resilient, production-hardened fix.
- 1-Click Clipboard Action: Copy verified, safe code implementations directly into your IDE.
4. Interactive Timeline & Forensic Incident Replayer
- Forensic Event Chronology: Step-by-step timeline of the fatal seconds preceding the crash (anomaly detection, threshold breach, fatal terminus).
- Automated Playback Simulation: Scrub and play through the incident step-by-step, observing real-time telemetry degradation and recovery.
5. Architectural Blast Radius Heatmap
- Microservice Topology: Visualizes 5 critical infrastructure tiers (
Client SPA,Edge Gateway,Auth Service,Database, andWorker Pool). - Cascading Contamination: Traces "Patient Zero" and tracks failure propagation across network boundaries.
- Dynamic Recovery State: Services visually heal from alarm crimson to emerald
200 OKas fixes are applied.
6. Live Chaos Engineering Sandbox
- Inject live outages into the running session:
- Edge Latency Spike (+2540ms simulated edge delay).
- DB Connection Pool Exhaustion (100% capacity exhaustion).
- Worker Memory Leak (OOM) (unbounded RAM saturation).
- Auth Token Storm (mass JWT validation failures).
- Watch real-time metric gauges (Latency, Error Rate, CPU Saturation, Memory Pressure) react and trigger audible warnings.
7. Blameless 5-Whys Root-Cause Tree
- Interactive 5-tier investigation tree based on Toyota/Google SRE blameless methodology.
- Drills down from the immediate symptom down to the underlying systemic process failure.
- Includes one-click Markdown export for post-incident review meetings.
8. Official SRE Remediation Prescription & IaC Generator (Rx)
- Medical-style SRE prescription specifying exact dosage, SLA commitments, and preventive rules.
- Generates downloadable, production-ready infrastructure configurations tailored to each incident:
s3-lambda-circuit-breaker.tf&aws-lambda-resilience.yaml(Terraform bucket isolation & AWS SAM with nativeRecursiveLoop: Terminateand CloudWatch throttle alarms).eslint.config.mjs&playwright-ssr.config.ts(Hydration guards).pgbouncer.ini&001_sre_pool_guard.sql(Database pool fencing).k8s-pod-resilience.yaml&stream-export-pipeline.ts(Memory leak isolation).envoy-circuit-breaker.yaml&resilience-retry.ts(Circuit breakers & jitter).api-gateway-cors.tf&nginx-cors.conf(Terraform & NGINX CORS rules).serverless-template.yaml&rds-proxy.tf(AWS SAM & RDS Proxy configs).
9. Custom Incident Ingestion Form
- Paste any real-world stack trace, specify severity and architecture category, and instantly generate an autopsy case study persisted in
localStorage.
10. Voice Verdict & Official Death Certificate Export
- Web Speech API Coroner Verdict: Auditory speech synthesis delivering the official SRE forensic verdict.
- Markdown Export: Formatted 7-section SRE post-mortem report following Google SRE best practices.
- Printable A4 Death Certificate: Medical-style printable certificate with barcode telemetry, fatal timestamps, and blast radius sign-off.
11. 1-Click Slack Incident Broadcast
- Dedicated ๐ข Broadcast to Slack action in the Post-Mortem report toolbar.
- Instant, 1-click generator compiling a standardized Slack Markdown / BlockKit message (๐จ alert header, severity indicators, Executive Summary, Blast Radius impact, and numbered Action Items) copied to the system clipboard for immediate war-room dispatch.
๐ ๏ธ How we built it
BugMortem was architected as a high-performance, zero-latency static web application engineered for maximum reliability under chaotic conditions:
- Framework & Core: Next.js 16.4 with React 19 and Turbopack compiler, deployed as a pure static export (
output: "export") on Vercel Edge. - Language & Type Safety: 100% TypeScript 5.9 with strict mode, zero
anyallocations, and comprehensive type contracts across all state stores and telemetry models. - Styling & Theme Engine: Tailwind CSS v4 with custom cyber-gothic palette. Dual theme architecture: Dracula Morgue (dark high-contrast cyber-gothic) and Clinical Daylight (sterile hospital white).
- Procedural Telemetry & Audio Synthesis: Native browser
AudioContext(Web Audio API) generating custom multi-frequency sine, square, and triangle oscillators, bandpass filters, and noise envelopes. Zero external audio asset dependencies. - Real-time Canvas Rendering: HTML5 Canvas 2D engine executing a 60 FPS ECG pulse trajectory with historical trace persistence and dynamic amplitude damping.
- Property-Based Testing (PBT): Built with Vitest 2.1 and fast-check. Fuzz-tested with 33 rigorous invariant suites mathematically proving engine crash-resistance, severity determinism, chronological timeline monotonicity, and export fidelity.
- Internationalization (i18n): Complete English and Polish language coverage with custom typographic orphan elimination (
fixOrphans) to maintain Polish typographic rules. - Kiro CLI & Spec-Driven Development: Engineered using Kiro CLI V3 (AWS Builder ID), featuring automated agent hooks (
.kiro/hooks/pbt-test-runner.json), custom agents (.kiro/agents/sre-autopsy-agent.json), architectural steering rules (.kiro/steering/rules.md), and 23 verified tasks across 5 phases in.kiro/specs/bugmortem/tasks.md.
๐ง Challenges we ran into
- Procedural Web Audio Telemetry & ECG Synchronization: Generating realistic, panic-inducing SRE acoustic telemetry (continuous ECG pulse modulated by live BPM, piercing flatline alarm on P0 outages, capacitor charge sweeps, and chaos noise bursts) purely through the browser's native
AudioContextwithout relying on external MP3/WAV assets. Ensuring seamless transitions without audio pop/click artifacts during millisecond-level state toggles required strict gain-envelope smoothing and oscillator cleanup. - Deterministic Property-Based Invariant Testing: Real-world stack traces are noisy, malformed, and unpredictable. Designing a property-based test harness (
fast-check+Vitest) that mathematically proves the forensic autopsy engine never throws, always resolves severity strictly toP0|P1, and guarantees non-decreasing chronological timeline integrity required rigorous invariant modelling. - Architectural Decoupling without State Drift: Refactoring a 750-line monolithic incident war room into modular sub-components (
TopNavbar,IncidentReplayer,FiveWhysTree,SrePrescriptionModal,PostMortemSection) while maintaining perfect bidirectional reactivity between the audio synthesizer, ECG canvas, chaos sandbox, and full Polish/English i18n dictionaries. - Pixel-Perfect Forensic IaC & Prescription Viewport: Designing a medical-style Rx prescription overlay that serves 14 production-grade configurations across Kubernetes, AWS SAM, Terraform, and PgBouncer without viewport overflow on mobile and laptop screens.
๐ Accomplishments that we're proud of
- 33/33 Property-Based Invariant Tests Passing in <450ms: Proved via
fast-checkfuzzing that BugMortem's core forensic autopsy pipeline never crashes, even when fed null bytes, arbitrary unicode, or completely corrupt stack traces. - Zero-Asset Procedural Audio & Dynamic 60 FPS ECG Monitor: Engineered a standalone Web Audio synthesizer and canvas electrocardiogram that dynamically flatlines on catastrophic production failure and restores sinus rhythm upon applying SRE fixes.
- From 3 AM Crash to Production IaC in One Click: Built the SRE Prescription Engine, which doesn't just explain the bug โ it generates downloadable, production-ready infrastructure code (
terraform,aws-sam,kubernetes,pgbouncer.ini,playwright-ssr.config.ts,eslint.config.mjs) to permanently vaccinate the codebase. - Blameless SRE Culture by Design: Embedded the 5-Whys Root-Cause Tree and Web Speech API forensic coroner verdict to systematically guide engineers from panic and finger-pointing toward systemic, architectural resilience.
- Ultra-Fast Turbopack Static Delivery: Clean Next.js 16.4 static export running on Vercel Edge with zero server latency, instant theme toggling (Dracula Morgue vs. Clinical Daylight), and full bilingual support (English & Polish with typographic orphan elimination).
๐ง What we learned
- Blameless Engineering Changes Perspectives: Structuring post-mortems through forensic and medical metaphors removes personal guilt. An incident becomes an opportunity for system-level immunization rather than career jeopardy.
- Web Audio API is Undervalued for Developer Tools: Procedural audio telemetry gives developers an instantaneous ambient sense of system state without having to parse complex graphs or read textual alerts.
- Property-Based Testing is Indispensable for Parser Engines: Traditional unit tests test what you anticipate; property-based testing with
fast-checkexposes the bizarre edge-cases that only happen in production at 3 AM.
๐ What's next for BugMortem
- Direct OpenTelemetry & Prometheus Ingestion: Live webhook intake receiving real production alerts from Datadog, PagerDuty, and Grafana to auto-populate the autopsy operating table in real-time.
- AI-Assisted Root Cause Diagnosis: Integration with LLM reasoning agents to ingest proprietary logs and generate tailored 5-Whys analysis and Terraform remediation blueprints automatically.
- Multi-Engineer Collaborative War Room: Real-time WebRTC/WebSocket collaboration where distributed SRE teams can scrub the incident timeline together during active severity triage.
- eBPF Kernel Crash Tracing: Ingesting Linux kernel panic logs and eBPF traces for deep operating-system level forensic autopsies.
๐งฐ Built With
aws-sam ยท devops ยท fast-check ยท incident-response ยท kiro ยท kubernetes ยท next.js ยท pgbouncer ยท playwright ยท post-mortem ยท pwa ยท react ยท sre ยท tailwind-css ยท tailwind-css-v4 ยท terraform ยท typescript ยท vercel ยท vitest ยท web-audio-api
Built With
- aws-sam
- devops
- fast-check
- incident-response
- kiro
- kubernetes
- next.js
- pgbouncer
- playwright
- post-mortem
- pwa
- react
- sre
- tailwind-css
- tailwind-css-v4
- terraform
- typescript
- vercel
- vitest
- web-audio-api