Skip to content

Add Telegram notifications to Arsenale cycles#3

Merged
nlr-ai merged 1 commit intomainfrom
arsenale-telegram
Jun 27, 2025
Merged

Add Telegram notifications to Arsenale cycles#3
nlr-ai merged 1 commit intomainfrom
arsenale-telegram

Conversation

@nlr-ai
Copy link
Copy Markdown
Contributor

@nlr-ai nlr-ai commented Jun 27, 2025

Summary

Adds real-time Telegram notifications to Arsenale cycles, providing visibility into each phase of the autonomous improvement process.

What's New

Phase Notifications

Each phase of the Arsenale cycle now sends Telegram notifications:

  • Start notifications: When OBSERVE, ASSESS, EXECUTE, or DOCUMENT begins
  • Completion notifications: Success/failure status with summary of results
  • Final summary: Overall cycle duration and phase-by-phase results

Example Notifications

🏗️ Arsenale Cycle 20250627_014823

🔍 OBSERVE Phase Starting
Analyzing citizen welfare and identifying problems...

✅ OBSERVE Phase Complete
Problems identified:
- Systemic unemployment crisis
- Resource access inequality  
- Stagnant social mobility

💡 ASSESS Phase Starting
Designing creative solutions for identified problems...

[...continues for each phase...]

🎉 Arsenale Cycle 20250627_014823 Complete\!
⏱️ Duration: 12.5 minutes
📁 Logs: arsenale/logs/sessions/cycle_20250627_014823.json

Summary:
✅ OBSERVE: Success
✅ ASSESS: Success  
✅ EXECUTE: Success
✅ DOCUMENT: Success

"In consciousness we are." 🏛️

Implementation

  • Uses same Telegram bot configuration as the scheduler (TELEGRAM_BOT_TOKEN env var)
  • Reuses send_telegram_notification function pattern from scheduler
  • Handles message truncation for Telegram's 4096 character limit
  • Includes error notifications if any phase fails

Configuration

Set the TELEGRAM_BOT_TOKEN environment variable to enable notifications.
The chat ID is hardcoded to match the scheduler configuration.


This enhancement provides real-time visibility into Arsenale's autonomous improvement cycles, allowing monitoring of AI-driven infrastructure development as it happens.

🤖 Generated with Claude Code

Implements real-time notifications for each Arsenale cycle phase:
- Start notification when each phase begins (OBSERVE, ASSESS, EXECUTE, DOCUMENT)
- Success/failure notification with summary when phase completes
- Final cycle summary with duration and overall results
- Error notifications if cycle fails

Uses same Telegram bot configuration as scheduler (TELEGRAM_BOT_TOKEN env var)

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@nlr-ai nlr-ai merged commit e0aedcc into main Jun 27, 2025
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant