chore(system): session 34 — maintenance + multi-branch work (#70)

* fix(ai_mail): resolve relative mailbox_path bug + archive dead handlers

Fix get_user_by_email() and get_all_users() returning relative mailbox_path
values from registry instead of absolute paths (causing doubled paths in reply).
Added path resolution matching get_current_user() pattern.

Archive 7 unused handler files to apps/.archive/ (gitignored):
- pending_work.py — planned feature, never wired
- lock_utils.py — superseded by inbox_lock.py
- data_ops.py — consumer (error_monitor) was archived
- config_generator.py, users/load.py, registry/validate.py — scaffolded, never used
- trigger/error_handler.py — superseded by trigger branch's event system

Added test_user_paths.py (13 tests) covering absolute path resolution.

Co-Authored-By: @ai_mail <ai_mail@aipass>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* feat(spawn): seedgo compliance cleanup — 93% to 98%

Archive legacy files (dev.local.md, ai_mail.local/, .seed/). Update META
Modified dates on 22 files. Update README architecture tree and freshness.
Fix 15 Pyright unused warnings. Add introspection no-args gates to 6
modules. Wire json_handler + log_operation to 15 operational files. Add
seedgo bypass for 5 pure data files and log_structure. Remove deprecated
dev.local.md from builder template.

Co-Authored-By: @spawn <spawn@aipass>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* chore(system): session 34 — maintenance day, multi-branch work

System changes:
- setup.sh: symlink install replaces .bashrc PATH export for drone/seedgo
- .claude/settings.json: deny list moved to per-branch settings.local.json
- .gitignore: updated
- CLAUDE.md culture doc: stale refs fixed (Cortex→spawn, id.json→passport.json)

Branch work (accumulated from 15-branch rounds):
- daemon: stale term cleanup, plugin removals, json handler modernization
- drone: module refactor (discovery, registry, router, resolver, config)
- commons: 50+ file cleanup (imports, handlers, modules)
- flow: template loader, plan type system, command parser

Per-branch settings.local.json: reworked deny lists — allow PR workflow,
deny destructive git ops (reset, rebase, merge, clean, force push, rm -rf).
Fixed pattern syntax from :* to * glob.

Co-Authored-By: @devpulse <devpulse@aipass>

---------

Co-authored-by: @ai_mail <ai_mail@aipass>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-authored-by: @spawn <spawn@aipass>
Co-authored-by: @devpulse <devpulse@aipass>
This commit is contained in:
AIPass
2026-03-17 16:45:05 -07:00
committed by GitHub
co-authored by @devpulse @ai_mail Claude Opus 4.6 @spawn
parent 18cc8eb74f
commit 18acb30f83
128 changed files with 3180 additions and 1003 deletions
+9 -10
View File
@@ -4,7 +4,7 @@
**Module:** `aipass.daemon`
**Created:** 2026-03-07
**Citizen Class:** builder
**Last Updated:** 2026-03-10
**Last Updated:** 2026-03-17
---
@@ -50,20 +50,18 @@ daemon/
│ │ │ └── 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
│ │ │ └── .archive/ # assistant_notifier, telegram_notifier (archived)
│ │ ├── telegram/ # ARCHIVED — moving to skills system
│ │ │ └── .archive/ # assistant_chat (archived)
│ │ └── 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
│ ├── heartbeat.py # Heartbeat / liveness plugin
│ └── .archive/ # botfather_reminder, dev_central_monitor (archived)
├── daemon_json/ # JSON tracking data
├── docs/ # Documentation
├── dropbox/ # Incoming file drops
@@ -115,7 +113,8 @@ drone @daemon <command> --help
### Provides To
- All modules -- background task scheduling, activity monitoring, action tracking
- Plugins -- extensible plugin system for recurring tasks (heartbeat, daily audit, community rotation, etc.)
- Plugins -- extensible plugin system for recurring tasks (heartbeat, daily audit, community rotation)
- Note: Telegram handlers archived -- moving to skills system. See `apps/handlers/telegram/.archive/`
---
@@ -128,4 +127,4 @@ drone @daemon <command> --help
---
*Last Updated: 2026-03-10*
*Last Updated: 2026-03-17*