Skip to content

Latest commit

 

History

History
43 lines (34 loc) · 1.29 KB

File metadata and controls

43 lines (34 loc) · 1.29 KB

Unit 003: Hermes The Bureaucrat - Subunit 001: Lambda Implementation

Objective

Implement Hermes Lambda function for event logging and status tracking across the CodeRipple pipeline.

Key Technical Decisions

Lambda Configuration

  • Runtime: Python 3.12
  • Memory: 256MB (minimal for logging operations)
  • Timeout: 30 seconds
  • Bundle deployment for faster cold starts
  • Project Tag: coderipple

Function Responsibilities

  • Receive EventBridge events from Telephonist
  • Parse event metadata (timestamp, component, event type)
  • Format log entries for storage
  • Write to Cabinet S3 bucket

Log Entry Format

2025-06-30T12:30:00Z | Receptionist | repo_ready | owner/repo-name
2025-06-30T12:31:15Z | Analyst | analysis_complete | owner/repo-name
2025-06-30T12:32:30Z | Deliverer | pr_created | owner/repo-name#123

Error Handling

  • CloudWatch logging for Lambda errors
  • Retry logic for S3 write failures
  • Dead letter queue for failed events

IAM Permissions Required

  • S3 write access to Cabinet bucket
  • CloudWatch logs write access
  • EventBridge receive permissions

Dependencies

  • Cabinet S3 bucket (Subunit 002)
  • EventBridge Telephonist (Unit 002 - Complete)

Status: Planning Complete

Ready for Lambda function implementation with event processing logic.