* feat(system): stderr routing migration Phase 3 — 10 branches migrated (FPLAN-0033) Autonomous 3-wave migration: 15+ agents across 10 branches converted error/warning prints to CLI stderr functions. Seedgo stderr_routing checker refined (false positive fix for section headers). System avg 49%→94%. Skills self-fixed (100%). Credential model DPLAN updated. AIPASS.md moved to ~/.claude/CLAUDE.md (global culture layer). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * fix(system): stderr routing cleanup — remaining violations fixed Final wave: ai_mail, backup, seedgo, commons, daemon migrated to CLI stderr functions. System stderr_routing avg now 97% (11 branches at 100%). Seedgo checker refinement confirmed (false positives eliminated). Only backup/google_drive_sync has remaining prints. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * feat(system): /prep command + cleanup memo and pre-compact hook New /prep slash command for pre-compact preparation: saves memories, updates plans, checks git/inbox, flags loose ends. Workflow: /prep then /compact. Cleaned up /memo (stale field refs, flow.local.md → STATUS.local.md). Pre-compact hook: removed misleading Notepad reference, points to local.json and STATUS.local.md instead. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * docs(flow): DPLAN/FPLAN distinction in global prompt + DPLAN template self-documentation Global prompt now explains DPLAN vs FPLAN with brief breadcrumbs and adds the missing `master` command. DPLAN template now opens with a "What is a DPLAN?" section so agents understand the plan type on first read. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
DAEMON
Purpose: Cron-triggered task scheduler with plugin system. Routes commands to modules for scheduled tasks, activity reports, action management, and status digests.
Module: aipass.daemon
Created: 2026-03-07
Citizen Class: builder
Last Updated: 2026-03-10
Overview
Builder citizen -- full 3-layer architecture with identity and memory. DAEMON serves as the background orchestration branch: it discovers modules at startup, routes CLI commands to them, and provides introspection and help output via Rich console.
What I Do
- Route CLI commands to discovered modules (update, schedule, activity_report, actions)
- Provide scheduled task management and follow-ups
- Generate activity reports across branches
- Manage an action registry with toggle, info, reminders, and schedules
- Produce status digest updates
Architecture
daemon/
├── __init__.py
├── README.md
├── DASHBOARD.local.json
├── apps/
│ ├── daemon.py # Entry point (CLI) — module discovery + command routing
│ ├── daemon_wakeup.py # Wakeup / cron trigger
│ ├── scheduler_cron.py # Cron scheduler
│ ├── modules/
│ │ ├── update.py # Status digest module — summarizes DAEMON activity
│ │ ├── schedule.py # Scheduled follow-ups — fire-and-forget task management
│ │ ├── activity_report.py # Branch activity report generator
│ │ ├── actions.py # Action registry CLI — list, toggle, info, reminders
│ │ ├── scheduler_ops.py # Scheduler cron operations facade
│ │ └── wakeup_ops.py # Wake-up cron operations facade
│ ├── handlers/
│ │ ├── actions/
│ │ │ └── actions_registry.py # Action registry implementation
│ │ ├── json/
│ │ │ └── json_handler.py # JSON data operations
│ │ ├── monitoring/
│ │ │ ├── activity_collector.py # Collects branch activity data
│ │ │ ├── memory_health.py # Memory health checks
│ │ │ └── red_flag_detector.py # Detects anomalies / red flags
│ │ ├── schedule/
│ │ │ ├── task_registry.py # Task registry for scheduled items
│ │ │ ├── assistant_notifier.py # Assistant notification dispatch
│ │ │ └── telegram_notifier.py # Telegram notification dispatch
│ │ ├── telegram/
│ │ │ └── assistant_chat.py # Telegram assistant chat handler
│ │ └── update/
│ │ └── data_loader.py # Data loading for status digests
│ ├── extensions/ # Extension point for additional capabilities
│ ├── json_templates/ # JSON template definitions
│ └── plugins/
│ ├── botfather_reminder.py # BotFather reminder plugin
│ ├── community_rotation.py # Community rotation plugin
│ ├── daily_audit.py # Daily audit plugin
│ ├── dev_central_monitor.py # Dev-Central monitor plugin
│ └── heartbeat.py # Heartbeat / liveness plugin
├── daemon_json/ # JSON tracking data
├── docs/ # Documentation
├── dropbox/ # Incoming file drops
├── logs/ # Prax log output
├── tools/ # Branch verification utilities
└── tests/ # Test suite
Commands / Usage
drone @daemon # Show discovered modules (introspection)
drone @daemon --help # Rich-formatted help with all commands
drone @daemon --version # Print version
drone @daemon update [args...] # Status digest — summarize DAEMON activity
drone @daemon schedule [args...] # Manage scheduled follow-ups and tasks
drone @daemon activity_report [args...] # Generate branch activity reports
drone @daemon actions [args...] # Action registry — list, toggle, info, set reminder/schedule
Each module accepts --help for module-specific usage:
drone @daemon <command> --help
Modules
| Module | Description |
|---|---|
update |
Status digest of DAEMON activity |
schedule |
Fire-and-forget scheduled follow-ups and task management |
activity_report |
Branch activity report generator (plain text output) |
actions |
Action registry CLI -- list, toggle, info, set reminder, set schedule, plugin migration |
scheduler_ops |
Scheduler cron operations facade for scheduler_cron.py |
wakeup_ops |
Wake-up cron operations facade for daemon_wakeup.py |
Integration Points
Depends On
rich-- Console output and formatted display- Python stdlib (
sys,typing,logging)
Provides To
- All modules -- background task scheduling, activity monitoring, action tracking
- Plugins -- extensible plugin system for recurring tasks (heartbeat, daily audit, community rotation, etc.)
Identity
- Passport:
.trinity/passport.json - Session History:
.trinity/local.json - Observations:
.trinity/observations.json - Branch Prompt:
.aipass/branch_system_prompt.md
Last Updated: 2026-03-10