Skip to content
twinmind-incident-runbook logo

TwinMind Incident Runbook

twinmind-incident-runbook

Incident response procedures for TwinMind integration failures. Use when experiencing outages, debugging production issues, or responding to alerts related to TwinMind. Trigger with phrases like "twinmind incident", "twinmind outage", "twinmind down", "twinmind emergency", "twinmind runbook".

SKILL.md

Full skill instructions

TwinMind Incident Runbook

Overview

Procedures for diagnosing and resolving TwinMind integration incidents.

Prerequisites

  • Access to monitoring dashboards
  • Production environment credentials
  • On-call rotation contacts
  • TwinMind support contact

Incident Classification

SeverityDescriptionResponse TimeExamples
P1 - CriticalComplete service outage15 minutesAll transcriptions failing
P2 - HighMajor feature degraded1 hourSummaries not generating
P3 - MediumMinor functionality impacted4 hoursSlow transcription
P4 - LowCosmetic or edge case24 hoursOccasional timeout

Initial Response Checklist

## Incident Response - First 5 Minutes

### 1. Acknowledge Alert
- [ ] Acknowledge in PagerDuty/​Opsgenie
- [ ] Join incident Slack channel
- [ ] Note start time: __________

### 2. Quick Health Check
- [ ] Check TwinMind status page: https://status.twinmind.com
- [ ] Check our service health endpoint
- [ ] Check recent deployments
- [ ] Check infrastructure status

### 3. Initial Assessment
- [ ] Identify affected functionality
- [ ] Estimate user impact
- [ ] Classify severity (P1/​P2/​P3/​P4)

### 4. Communication
- [ ] Update status page (if P1/​P2)
- [ ] Notify stakeholders
- [ ] Create incident ticket

Diagnostic Commands

Check TwinMind API Status

# Quick health check
curl -s -o /​dev/​null -w "%{http_code}" \
  -H "Authorization: Bearer $TWINMIND_API_KEY" \
  https://api.twinmind.com/​v1/​health

# Detailed health check
curl -s -H "Authorization: Bearer $TWINMIND_API_KEY" \
  https://api.twinmind.com/​v1/​health | jq

# Check status page API
curl -s https://status.twinmind.com/​api/​v2/​status.json | jq '.status'

Check Our Service Health

# Application health
curl -s http://localhost:8080/​health | jq

# TwinMind-specific health
curl -s http://localhost:8080/​health/​twinmind | jq

# Check recent errors in logs
kubectl logs -l app=twinmind-service --tail=100 | grep -i error

# Check metrics endpoint
curl -s http://localhost:8080/​metrics | grep twinmind_errors

Check Rate Limits

# Get current rate limit status
curl -I -H "Authorization: Bearer $TWINMIND_API_KEY" \
  https://api.twinmind.com/​v1/​health 2>/​dev/​null | grep -i ratelimit

# Check our rate limit tracking
curl -s http://localhost:8080/​metrics | grep rate_limit

Common Incident Scenarios

Scenario 1: All Transcriptions Failing

Symptoms:

  • 100% error rate on transcriptions
  • twinmind_transcriptions_total{status="error"} spiking

Diagnosis Steps:

# 1. Check TwinMind API availability
curl -v -H "Authorization: Bearer $TWINMIND_API_KEY" \
  https://api.twinmind.com/​v1/​health

# 2. Check error types in logs
kubectl logs -l app=twinmind-service --tail=200 | \
  grep -E "(error|Error|ERROR)" | \
  awk '{print $NF}' | sort | uniq -c | sort -rn

# 3. Test a simple transcription
curl -X POST \
  -H "Authorization: Bearer $TWINMIND_API_KEY" \
  -H "Content-Type: application/​json" \
  -d '{"audio_url":"https://example.com/​test.mp3"}' \
  https://api.twinmind.com/​v1/​transcribe

# 4. Check if specific to our API key
# Try with a different key if available

Resolution Steps:

  1. If TwinMind API is down:

    • Update status page
    • Notify users
    • Wait for TwinMind resolution
    • Monitor status.twinmind.com
  2. If our API key is invalid:

    • Check key expiration
    • Regenerate key if needed
    • Update secrets manager
    • Restart services
  3. If network issue:

    • Check DNS resolution
    • Check firewall rules
    • Verify egress connectivity

Scenario 2: High Latency

Symptoms:

  • P95 latency > 5 seconds
  • Users reporting slow transcriptions
  • twinmind_api_latency_seconds histogram showing high values

Diagnosis Steps:

# 1. Check latency metrics
curl -s http://localhost:8080/​metrics | \
  grep twinmind_api_latency

# 2. Check for queuing
curl -s http://localhost:8080/​metrics | \
  grep queue

# 3. Check TwinMind processing times
# Look at recent transcription durations
curl -s http://localhost:8080/​metrics | \
  grep twinmind_transcription_duration

# 4. Check resource usage
kubectl top pods -l app=twinmind-service

Resolution Steps:

  1. If TwinMind is slow:

    • Check status.twinmind.com for degradation notice
    • Consider switching to faster model (ear-2)
    • Queue non-urgent requests
  2. If our service is overloaded:

    • Scale up replicas
    • Increase rate limiting
    • Queue requests
  3. If network latency:

    • Check regional connectivity
    • Consider caching DNS
    • Verify no proxy issues

Scenario 3: Rate Limiting

Symptoms:

  • 429 errors increasing
  • twinmind_errors_total{error_type="RATE_LIMITED"} > 0
  • Rate limit remaining gauge near 0

Diagnosis Steps:

# 1. Check current rate limit status
curl -I -H "Authorization: Bearer $TWINMIND_API_KEY" \
  https://api.twinmind.com/​v1/​health 2>/​dev/​null | grep -i ratelimit

# 2. Check request volume
curl -s http://localhost:8080/​metrics | \
  grep twinmind_api_requests_total

# 3. Identify heavy consumers
kubectl logs -l app=twinmind-service --tail=1000 | \
  grep -i "transcribe" | \
  awk '{print $4}' | sort | uniq -c | sort -rn | head -20

Resolution Steps:

  1. Immediate:

    • Enable request queue if not already
    • Reject non-critical requests
    • Implement stricter client-side limiting
  2. Short-term:

    • Request rate limit increase from TwinMind
    • Upgrade to higher tier
    • Distribute load across multiple API keys
  3. Long-term:

    • Implement smarter caching
    • Batch requests where possible
    • Optimize client request patterns

Scenario 4: Authentication Failures

Symptoms:

  • 401 errors
  • "Invalid API key" messages
  • All authenticated requests failing

Diagnosis Steps:

# 1. Verify API key is set
echo $TWINMIND_API_KEY | head -c 20

# 2. Test API key directly
curl -H "Authorization: Bearer $TWINMIND_API_KEY" \
  https://api.twinmind.com/​v1/​me

# 3. Check if key was rotated
# Check TwinMind dashboard for key history

# 4. Verify secrets manager
aws secretsmanager get-secret-value --secret-id twinmind-api-key | jq

Resolution Steps:

  1. If key expired/​revoked:

    • Generate new API key in TwinMind dashboard
    • Update secrets manager
    • Restart affected services
  2. If key leaked:

    • Immediately revoke key
    • Generate new key
    • Audit access logs
    • Update secrets
    • Review security practices

Escalation Path

Level 1: On-Call Engineer (0-15 min)
   ↓
Level 2: Team Lead (15-30 min)
   ↓
Level 3: Engineering Manager (30-60 min)
   ↓
Level 4: VP Engineering (60+ min)

TwinMind Support Contact

Post-Incident Checklist

## Post-Incident Review

### Immediate (Within 24 hours)
- [ ] Confirm issue fully resolved
- [ ] Update status page to resolved
- [ ] Notify stakeholders of resolution
- [ ] Document timeline in incident ticket

### Follow-up (Within 1 week)
- [ ] Schedule post-mortem meeting
- [ ] Write incident report
- [ ] Identify root cause
- [ ] Create action items
- [ ] Update runbook if needed

### Long-term
- [ ] Implement preventive measures
- [ ] Update monitoring/​alerting
- [ ] Share learnings with team
- [ ] Update documentation

Incident Report Template

# Incident Report: [TITLE]

**Date:** YYYY-MM-DD
**Duration:** HH:MM - HH:MM (X hours Y minutes)
**Severity:** P1/​P2/​P3/​P4
**Impact:** [Number of affected users/​requests]

## Summary
[Brief description of what happened]

## Timeline
- HH:MM - Alert triggered
- HH:MM - On-call acknowledged
- HH:MM - [Key actions taken]
- HH:MM - Issue resolved

## Root Cause
[Detailed explanation of why the incident occurred]

## Resolution
[How the issue was fixed]

## Action Items
- [ ] [Preventive measure 1]
- [ ] [Monitoring improvement]
- [ ] [Documentation update]

## Lessons Learned
[Key takeaways for the team]

Output

  • Incident classification guide
  • Diagnostic commands
  • Common scenario playbooks
  • Escalation procedures
  • Post-incident checklist
  • Report template

Resources

Next Steps

For data handling procedures, see twinmind-data-handling.

More skills from Dicklesworthstone

environment-setup-guide logo
Dicklesworthstone/pi_agent_rust

environment-setup-guide

Guide developers through setting up development environments with proper tools, dependencies, and configurations

1.8K 0
View
exa-policy-guardrails logo
Dicklesworthstone/pi_agent_rust

exa-policy-guardrails

Implement Exa lint rules, policy enforcement, and automated guardrails. Use when setting up code quality rules for Exa integrations, implementing pre-commit hooks, or configuring CI policy checks for Exa best practices. Trigger with phrases like "exa policy", "exa lint", "exa guardrails", "exa be...

1.8K 0
View
documenso-ci-integration logo
Dicklesworthstone/pi_agent_rust

documenso-ci-integration

Configure CI/CD pipelines for Documenso integrations. Use when setting up automated testing, deployment pipelines, or continuous integration for Documenso projects. Trigger with phrases like "documenso CI", "documenso GitHub Actions", "documenso pipeline", "documenso automated testing".

1.8K 0
View
openrouter-model-availability logo
Dicklesworthstone/pi_agent_rust

openrouter-model-availability

Build check model availability and implement fallback chains. Use when building resilient systems or handling model outages. Trigger with phrases like 'openrouter availability', 'openrouter fallback', 'openrouter model down', 'openrouter health check'.

1.8K 0
View
langfuse-enterprise-rbac logo
Dicklesworthstone/pi_agent_rust

langfuse-enterprise-rbac

Configure Langfuse enterprise organization management and access control. Use when implementing team access controls, configuring organization settings, or setting up role-based permissions for Langfuse projects. Trigger with phrases like "langfuse RBAC", "langfuse teams", "langfuse organization"...

1.8K 0
View
cursor-compliance-audit logo
Dicklesworthstone/pi_agent_rust

cursor-compliance-audit

Execute compliance and security auditing for Cursor usage. Triggers on "cursor compliance", "cursor audit", "cursor security review", "cursor soc2", "cursor gdpr". Use when analyzing or auditing cursor compliance audit. Trigger with phrases like "cursor compliance audit", "cursor audit", "cursor".

1.8K 0
View
apollo-ci-integration logo
Dicklesworthstone/pi_agent_rust

apollo-ci-integration

Configure Apollo.io CI/CD integration. Use when setting up automated testing, continuous integration, or deployment pipelines for Apollo integrations. Trigger with phrases like "apollo ci", "apollo github actions", "apollo pipeline", "apollo ci/cd", "apollo automated tests".

1.8K 0
View
python-script logo
Dicklesworthstone/pi_agent_rust

python-script

Create robust Python automation with full logging and safety checks. Use when tasks need complex data processing, authenticated API work, conditional file operations, or error handling beyond simple shell commands.

1.8K 0
View
posthog-multi-env-setup logo
Dicklesworthstone/pi_agent_rust

posthog-multi-env-setup

Configure PostHog across development, staging, and production environments. Use when setting up multi-environment deployments, configuring per-environment secrets, or implementing environment-specific PostHog configurations. Trigger with phrases like "posthog environments", "posthog staging", "po...

1.8K 0
View
ai-agents-architect logo
Dicklesworthstone/pi_agent_rust

ai-agents-architect

Expert in designing and building autonomous AI agents. Masters tool use, memory systems, planning strategies, and multi-agent orchestration. Use when: build agent, AI agent, autonomous agent, tool use, function calling.

1.8K 0
View
insecure-deserialization-checker logo
Dicklesworthstone/pi_agent_rust

insecure-deserialization-checker

Validate insecure deserialization checker operations. Auto-activating skill for Security Fundamentals. Triggers on: insecure deserialization checker, insecure deserialization checker Part of the Security Fundamentals skill category. Use when working with insecure deserialization checker functiona...

1.8K 0
View
path-traversal-finder logo
Dicklesworthstone/pi_agent_rust

path-traversal-finder

Manage path traversal finder operations. Auto-activating skill for Security Fundamentals. Triggers on: path traversal finder, path traversal finder Part of the Security Fundamentals skill category. Use when working with path traversal finder functionality. Trigger with phrases like "path traversa...

1.8K 0
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View