Skip to content

Structured RCA report export (Markdown, PDF, Slack-formatted) #14

@nomadicmehul

Description

@nomadicmehul

Summary

Generate polished, structured RCA reports from investigation results that can be shared with stakeholders, posted in Slack, or archived as PDF.

Current State

The Communication Drafter generates text-based RCA. Needs structured, exportable formatting.

Desired Output Format

# Incident RCA: [Title]
**Severity:** Critical | **Duration:** 23 min | **MTTR:** 4 min 12s

## Timeline
- 14:02 — OOMKill detected on payment-service-7b4f (pod restart #3)
- 14:02 — Investigation started (TheNightOps)
- 14:03 — Correlated with deployment payment-service:v2.4.1 (deployed 14:00)
- 14:04 — Sentry: new error "OutOfMemoryError in BatchProcessor.run()"
- 14:05 — RCA: Memory leak in v2.4.1 BatchProcessor — unbounded list growth

## Root Cause
...

## Remediation
...

## Prevention
...

Acceptance Criteria

  • Structured Markdown RCA with timeline, root cause, remediation, prevention sections
  • Include evidence links (trace IDs, dashboard URLs, Sentry issue URLs)
  • Export formats: Markdown (file), Slack blocks (for posting), PDF (for archival)
  • CLI: nightops rca export --incident <id> --format pdf
  • Auto-post to Slack channel after resolution (if configured)

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:agentAgent architecture and orchestrationarea:dxDeveloper experience and CLIphase:3-remediationPhase 3 — Advanced Remediation & Outputpriority:highImportant, do if time allowstype:featureNew feature or capability

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions