Files
ajarbot/_gen_workflow.py
Jordan Ramos 916f86725d feat: RSO observation system, child safety, Discord adapter, Telegram watchdog, email attachments
Core agent improvements:
- RSO (Relevance Scoring & Observation) system: interaction_logger, memory_scorer, signal_detector
- Memory access logging (memory_access_log table) for relevance scoring; high-signal turn detection
- Rich conversation storage for notable turns; compact_conversation truncates long user messages
- Task-type classifier (query/action/analysis/creative) for observation tagging
- Nested sub-agent visibility: deep delegations now register against the main agent's manager

Child safety (Gabriel profile):
- child_safety.py: filtering, audit logging, prompt constants for restricted sessions
- .kiro/specs/child-safety-profile: requirements, design, tasks specs
- GABRIEL_BOT_PROPOSAL.md: initial proposal doc
- Reduced context window (10 msgs) and tutor-mode identity for restricted users

Telegram adapter:
- Polling watchdog: auto-restarts updater if polling drops unexpectedly
- get_me() with exponential-backoff retry on NetworkError at startup
- Correct stop() ordering: signal watchdog before cancelling tasks

Email / Gmail:
- send_email: supports file attachments (attachments list param)
- get_email: surfaces attachment metadata in response

Scheduled tasks / weather:
- Remove OpenWeatherMap API calls from morning-weather task; use wttr.in exclusively
- New scheduled tasks and scheduler state persistence

Discord:
- adapters/discord/__init__.py scaffold
- discord-plugin: MCP plugin for Claude Code Discord integration (server.ts, skills, config)

Infrastructure:
- n8n workflow exports (garvis_webhook, content_pipeline variants)
- memory_workspace: context, homelab-repo-updates, weekly observation summaries, error logs
- UCS C240 migration plan doc
- requirements.txt: new deps
- .claude/settings.json, fix_hooks.py: hook/permission tuning
2026-04-23 07:54:01 -06:00

11 lines
740 B
Python

import json, sys
def E(expr):
return chr(61) + chr(123) + chr(123) + chr(32) + expr + chr(32) + chr(125) + chr(125)
def ref(node_name, path):
return chr(36) + chr(40) + chr(34) + node_name + chr(34) + chr(41) + chr(46) + chr(105) + chr(116) + chr(101) + chr(109) + chr(46) + chr(106) + chr(115) + chr(111) + chr(110) + chr(46) + path
workflow = {
chr(110)+chr(97)+chr(109)+chr(101): chr(67)+chr(111)+chr(110)+chr(116)+chr(101)+chr(110)+chr(116)+chr(32)+chr(80)+chr(105)+chr(112)+chr(101)+chr(108)+chr(105)+chr(110)+chr(101)+chr(32)+chr(45)+chr(32)+chr(66)+chr(108)+chr(101)+chr(110)+chr(100)+chr(101)+chr(100)+chr(70)+chr(97)+chr(109)+chr(105)+chr(108)+chr(121)+chr(75)+chr(105)+chr(116)+chr(99)+chr(104)+chr(101)+chr(110),
}