command
Version:
v1.1.0
Opens a new window with list of versions in this module.
Published: Feb 10, 2026
License: AGPL-3.0
Opens a new window with license information.
Imports: 16
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Severance Processor
The severance processor Lambda function automatically detects federation relationship severances by monitoring DynamoDB streams for:
- Domain Blocks: When a domain is blocked, all relationships with users from that domain are severed
- Federation Issues: When critical federation issues are detected (unreachable instances, timeouts)
- Instance Health: When an instance becomes unhealthy based on federation metrics
Event Flow
- DynamoDB stream event triggers Lambda
- Processor examines the event for severance indicators
- If a severance is detected, affected relationships are counted
- A severance record is created with:
- Remote instance
- Reason (domain block, instance down, etc.)
- Affected followers/following counts
- Auto-detection flag
- Severity based on impact
- Event is emitted to streaming system for real-time notifications
Severity Levels
- High: > 1000 affected relationships
- Medium: 100-1000 affected relationships
- Low: < 100 affected relationships
Integration
The processor integrates with:
- Severance Service: Creates and manages severance records
- Event Bus: Publishes SEVERANCE_DETECTED events
- Federation Service: Monitors federation health
- Relationship Storage: Counts affected relationships
Deployment
Built and deployed as part of the CDK infrastructure stack:
- Triggered by DynamoDB stream events
- IAM permissions for DynamoDB, CloudWatch
- Environment variables from CDK config
Documentation
¶
Package main implements the severance-processor Lambda function for detecting federation severances.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.