Skip to content

Release v1.2.0

Choose a tag to compare

@larchanka larchanka released this 05 Nov 11:16
· 8 commits to main since this release

🚀 New Features

New Skill: email-triage

An autonomous multi-agent email triage skill powered by a dedicated Python wrapper suite around the Google Workspace CLI (gog gmail).

  • Multi-Agent Thread Delegation:
    • The orchestrator scans the inbox and delegates each email thread to an isolated Thread Triage Agent subagent, preventing context bloat and eliminating cross-thread contamination.
    • Subagents categorize threads into SPAM, REGULAR, or NEEDS_ATTENTION, perform the corresponding action, and return a standardized structured report (Summary, Performed Action, Proposed Next Action).
  • Dynamic Account Discovery & Multi-Account Triage:
    • Automatically queries Google accounts via gog auth status, gog auth alias list, and gog auth list (no hardcoded accounts or aliases).
    • Automatically prioritizes the configured default account first, then iterates across all connected Gmail accounts.
    • Supports account aliases (work_account, personal_account).
  • Human-in-the-Loop Safe Communication:
    • No Auto-Send: Inbound messages requiring a reply generate Gmail Drafts (draft_reply.py) for user review before sending.
    • Safe Deletion: Low-value/spam emails are moved to Gmail Trash (--trash) retaining a 30-day recovery safety net. Permanent deletion requires explicit --force.
    • Dry-Run Mode: Full --dry-run simulation support across all mutating scripts (apply_triage.py, draft_reply.py, manage_labels.py).
  • Curated Python Helper Script Suite (email-triage/scripts/):
    • common.py: Subprocess runner with JSON parsing, dynamic account resolver, and HTML-to-markdown text cleansing (strips CSS, tracking pixels, scripts, and legal disclaimers).
    • scan_inbox.py: Queries unread inbox threads across all accounts with normalized headers and snippets.
    • read_email.py: Parses multipart/base64 bodies, extracts headers and attachments, and outputs clean readable plain text.
    • apply_triage.py: Executes batch thread mutations (--mark-read, --archive, --trash, --add-label, --remove-label).
    • draft_reply.py: Creates draft replies linked to original messages with auto-populated subjects and threading headers.
    • manage_labels.py: Idempotently sets up default triage labels (Triage/Action-Needed, Triage/Waiting, Triage/FYI).
  • Classification & Action Playbooks (email-triage/references/):
    • classification_rules.md: Heuristics, positive/negative signals, and examples for phishing, spam, automated alerts, and action items.
    • actions_policy.md: Standard operating procedures, draft writing guidelines, and report schemas.

🔄 Enhancements

agent-loop (v1.2.0)

  • Strict Pure Orchestration: Enforced coordinator disciplines ensuring the orchestrator thread does zero codebase inspection, searching, or direct editing, leaving all exploration and implementation strictly to subagents.
  • Enforced Workspace Skill Delegation: Coordinators must explicitly pass skill paths (SKILL.md) to subagents rather than inlining or summarizing prompt instructions.

📚 Documentation & Catalog

  • Root README.md: Added email-triage as skill #4, updated total skills count to 12, and documented features and security invariants.
  • Skill Documentation: Authored email-triage/SKILL.md (orchestration protocol, subagent prompt templates, CLI tables) and email-triage/README.md (quick start and developer CLI usage).
  • Strict Path Discipline: Standardized all documentation and references to use strictly relative paths (./scripts/..., references/...).
  • Generic Account Naming: Normalized all CLI examples and test fixtures to generic naming (work_account, personal_account).

🧪 CI & Automated Testing

  • GitHub Actions CI Workflow (.github/workflows/ci.yml):
    • Added automated test discovery step for email-triage/tests.
    • Added email-triage/ to the Python SAST Bandit security scan.
  • Test Suite:
    • Added 66 comprehensive unit tests across email-triage/tests/test_common.py and email-triage/tests/test_scripts.py (100% pass rate in <0.1s).
    • Isolated account discovery unit tests with mocks for headless CI environments where local gog binaries are not pre-installed.